Verona 백서

Verona

원문

bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 54쪽 중 8쪽

ion (Treasury, OAuth2 clients):** [`verona-toolkit`](/en/build-on-verona/tools/verona-toolkit) — complementary to the Dev Plugin, not a replacement for its skills Human-oriented Dev Plugin install: [For AI Agents](/en/about-verona/ai-agents). CLI walkthrough: [verona-toolkit](/en/build-on-verona/tools/verona-toolkit). ### Stack selection Pick a default package or tool from the table below. Full decision rules (DR-1–DR-8) live in the Dev Plugin only — do not duplicate them here: [**verona-dev-plugin `skills/verona-dev/references/`**](https://github.com/burnt-labs/verona-dev-plugin/tree/main/skills/verona-dev/references) | Need | Package / tool | | ----------------------------------- | ------------------------------------------------------------------------------------------ | | React web | `@burnt-labs/abstraxion-react` | | Non-React JS (Svelte, Vue, vanilla) | `@burnt-labs/abstraxion-js` | | React Native / Expo | `@burnt-labs/abstraxion-react-native` | | Native / server signing | [mob](https://github.com/burnt-labs/mob) | | Headless OAuth2 | oauth2 flows — see plugin `references/` | | Agent CLI | `verona-toolkit` ([releases](https://github.com/burnt-labs/verona-agent-toolkit/releases)) | | Chain node / validator ops | `xiond` ([daemon CLI](/en/build-on-verona/tools/daemon-cli)) | `@burnt-labs/abstraxion-core` is the connector and iframe protocol layer — use for headless or custom UI wiring, not as the primary React install. ### Tools & SDKs Libraries and CLIs for app and automation workflows: * [Tools & SDKs overview](/en/build-on-verona/tools) * [xion.js](https://github.com/burnt-labs/xion.js) — Web App and Mobile App guides under [Accounts](/en/build-on-verona/accounts) * [Mob signing library](/en/build-on-verona/tools/mob-signing-client) * [verona-dev-plugin](https://github.com/burnt-labs/verona-dev-plugin) — Code Agent skills ([INSTALL.md](https://github.com/burnt-labs/verona-dev-plugin/blob/main/INSTALL.md)); stack rules in plugin `references/` * [For AI Agents](/en/about-verona/ai-agents) — human-oriented Verona Dev Plugin install * [Verona Agent Toolkit](/en/build-on-verona/tools/verona-toolkit) — CLI for Treasury, OAuth2 clients, and gasless automation * [Daemon CLI (`xiond`)](/en/build-on-verona/tools/daemon-cli) ### Key Concepts for Web2 Developers If you're coming from Web2, here are some concepts that map to what you already know: | Network Term | Web2 Equivalent | What It Means | | --------------------- | --------------------------------- | -------------------------------------------------------------------- | | **Meta Account** | User Account | A user identity that can own assets and authorize actions | | **Treasury Contract** | App Permissions & Billing Config | Manages what your app can do on behalf of users and who pays for gas | | **Fee Grant** | Computing Points | Your app pays transaction fees so users don't have to | | **Authz Grant** | Delegated Permissions | Users grant your app permission to perform specific actions | | **Smart Contract** | Backend API / Serverless Function | Trustless code that runs on the blockchain | | **Abstraxion** | Auth & Transaction SDK | The JavaScript SDK for integrating Meta Accounts into your app | ### Why Build on Verona? The network is designed for developers building consumer and verification-heavy applications—not only DeFi protocols. Here's what makes it different: * **Familiar UX**: Your users don't need to know they're using blockchain technology * **No Gas Fees for Users**: You can sponsor transactions or use fee grants * **Multiple Payment Methods**: Accept credit cards, stablecoins, or cross-chain assets * **Privacy-Preserving Verification**: Verify user credentials without exposing sensitive data * **Composable Architecture**: Mix and match pillars to build exactly what you need * **Production Ready**: Battle-tested infrastructure with OAuth2, Treasury Contracts, and more ### Next Steps * Explore the [Accounts](/en/build-on-verona/accounts) section for platform-specific guides * Check out [Computation](/en/build-on-verona/computation) to learn about smart contracts * Review [Verification](/en/build-on-verona/verification) for identity verification options * See [Payments](/en/build-on-verona/payments) for payment integration guides Ready to build? Start with [Meta Accounts](/en/build-on-verona/accounts/getting-started) and add more features as you go! # Accounts Meta Accounts, auth, and gasless transactions on Verona Welcome to **Build on Verona — Accounts**. This section covers Meta Accounts, authentication methods, gasless transactions, and building web, mobile, backend, or agent-driven applications on the **Verona** network. ### What are Meta Accounts? Meta Accounts are the foundation of the Verona network experience. They provide: * **Multiple Authentication Methods**: Email, social login, and more * **Gasless Transactions**: Users can interact with apps without holding native tokens * **Treasury Contracts**: Enable delegated authorization and fee grants * **Seamless Integration**: Works with web, mobile, and backend applications ### Getting Started Paths Choose your path based on what you want to build: #### Overview Learn about Meta Account settings, features, and authentication methods. * [Meta Accounts Overview](/en/build-on-verona/accounts/getting-started) - Learn about Meta Account features, authentication methods, and capabilities * [Treasury Contracts for Gasless UX](/en/build-on-verona/accounts/getting-started/treasury-contracts) - Deploy and configure Treasury Contracts for gasless transactions and permission grants #### Web App Development Build React applications with account abstraction and gasless transactions. * [Web App Development — integration hub](/en/build-on-verona/accounts/web-app) - Authentication modes (`auto`, `signer`, `embedded`), env vars, and links to the xion.js demo app * [Account Abstraction with Gasless Transactions](/en/build-on-verona/accounts/web-app/build-react-dapp-with-account-abstraxion) - Build a React dApp using the Abstraxion library with gasless transactions * [Abstraxion modes and opportunities](/en/build-on-verona/accounts/web-app/abstraxion-modes-opportunities) - Dashboard-first defaults, then signer + session vs signer + `requireAuth`; verify in `demo-app` * [Abstraxion signer mode](/en/build-on-verona/accounts/web-app/abstraxion-signer-mode) - `type: "signer"`, `getSignerConfig`, and wallet-led integrations * [Custom UI and Abstraxion loading states](/en/build-on-verona/accounts/web-app/custom-ui-abstraxion-authentication) - Hook-first UX, loading flags, and session lifecycle #### Mobile App Development Create mobile applications with React Native and Meta Account authentication. * [Set up your Mobile Development Environment](/en/build-on-verona/accounts/mobile-app/set-up-mobile-development-environment) - Configure your development environment for mobile app development * [Building a React Native Mobile App with Abstraxion](/en/build-on-verona/accounts/mobile-app/building-a-react-native-mobile-app-with-abstraxion) - Build a React Native mobile app with Meta Account login and gasless UX * [Create Mobile App and Integrate Meta Account Authentication](/en/build-on-verona/accounts/mobile-app/create-mobile-app-and-integrate-meta-account-authentication) - Integrate Meta Account authentication into your mobile app * [Mobile Development – Common Errors & Fixes](/en/build-on-verona/accounts/mobile-app/mobile-development-common-errors-and-fixes) - Troubleshoot common issues in mobile development #### **OAuth2 App Development** * ​[Build a Verona OAuth2 Application](https://app.gitbook.com/o/-MYHVr_KzNLwJObSYyGU/s/B5Z5ijJgMx0GJO3l1Il9/~/diff/~/revisions/IKVpY4b27hWnM9vm8zy9/build-on-verona/accounts/oauth2-app) - Build an application with a Web2 experience using Verona OAuth2 Fully-Managed API #### Backend App Development Integrate Verona with your backend services using RESTful APIs or CosmJS. * [Interact with Verona via your Backend Service ](/en/build-on-verona/accounts/backend-app/backend-using-cosmjs)- Learn how to interact with the Verona network from a backend environment using CosmJS * [Account Abstraction for RESTful API with Backend Session](/en/build-on-verona/accounts/backend-app/build-restapi-with-account-abstraction-and-backend-session) - Build an application with a Web2 experience using Verona Integration in backend #### AI Agent and CLI Path Use this path if your team works from terminal-first workflows or coding agents: * [AI Agent Quick Start](/en/about-verona/ai-agents) - One-step copy instruction for Verona Agent Toolkit skills * [Verona Agent Toolkit Tutorial](/en/build-on-verona/tools/verona-toolkit) - Guided setup for auth, Treasury management, and OAuth2 client management # Getting Started with Meta Accounts Onboarding is one of the biggest barriers in Blockchain adoption. For many users, the need to manage seed phrases, install wallets, and acquire tokens just to interact with a app is a dealbreaker. At Verona, we believe that **streamlining this experience is critical to bringing the next wave of users into the ecosystem**. Verona **Meta Accounts** are designed to solve this. Unlike traditional externally owned accounts (EOAs), Meta Accounts are **smart contract accounts,** which allow users can sign up and log in using familiar authenticators like **email, social login, wallets, or passkeys**. This removes the complexity of key management and lets users focus on what really matters: using your app. You can learn more about Verona's Meta Accounts [here](/en/about-verona/generalized-abstraction/meta-accounts). ### Key Features * **Multiple Authentication Methods**: Email, social login (Google, Apple, etc.) * **Gasless Transactions**: Users don't need to hold native tokens * **Treasury Contracts**: Enable delegated authorization * **Permission Grants**: Control what actions apps can perform on behalf of users To make this experience seamless, we’ve introduced the **Treasury contract**, which plays a crucial dual role: * **Gasless Transactions** – It manages **Fee Grants**, so users don’t need tokens to pay for gas. This enables fully gasless interactions from the very first click. * **Smart Permissions** – It simplifies app configuration by issuing **Authorization Grants**, which allow your frontend (via session keys) to execute pre-approved smart contract calls on behalf of the user’s Meta Account. Together with our **OAuth2-style authentication** and **Abstraxion library** for generating secure, temporary session keys, these tools enable frictionless, secure, and user-friendly app experiences, **without compromising on decentralization or control**. The following guides will help you understand how the Treasury contract works and how to set it up and configure it to power your app’s transaction flow: <table data-view="cards"><thead><tr><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><a href="/en/build-on-verona/accounts/getting-started/treasury-contracts"><strong>Enabling Gasless Transactions with Treasury Contracts</strong></a><br>Deploying your Treasury Contract for Delegated Authorization and Gasless Transactions.</td><td><a href="/en/build-on-verona/accounts/getting-started/treasury-contracts">Enabling Gasless Transactions with Treasury</a></td></tr></tbody></table> # Enabling Gasless Transactions with Treasury Deploying your Treasury Contract for Delegated Authorization and Gasless Transactions Treasury contracts introduce an OAuth-like authentication flow fully on-chain, allowing developers to create intricate allowance systems that enable delegated authorization. This allows an account (the granter who is the end user) to grant permission to another account (the grantee, the treasury contract) to execute specific types of transactions on their behalf. These contracts also enable a gasless experience for end users via fee grants. This guide walks you through using the developer portal to deploy your app’s first treasury contract. {% hint style="info" %} Each treasury contract deployment is designed for a single app. Think of it like setting up OAuth for your application, where your app requests access to data from the Verona chain on behalf of the user, without accessing any private information. {% endhint %} ## **Understanding Fee Grants and Authorizations** Treasury contracts leverage two key modules to provide their core functionality: **Fee Grants** and **Authz**. These modules enable **gasless transactions** and **delegated authorization**, enhancing the user experience. ### **Fee Grants** The **Fee Grant module** allows an account (**granter**) to cover gas fees for another account (**grantee**), making transactions **gasless** for the end user. This feature is particularly useful for **onboarding users**, as it removes the need for them to **hold native tokens** to pay for transaction fees. #### **How Fee Grants Work?** 1. The **treasury contract holds a balance of $VERONA tokens** to cover gas fees. 2. The **contract grants fee sponsorship** for specific transactions. 3. The **user (grantee) submits a transaction**, and the **treasury contract pays the gas fee automatically**. #### **Key Benefits of Fee Grants** * **Frictionless onboarding** – Users can interact with the app immediately without needing $VERONA tokens. * **Better user experience** – Reduces complexity and improves adoption for non-crypto-native users. * **Controlled sponsorship** – apps can define limits on gas fee coverage. ### **Authorizations (Authz)** The **Authz module** enables **delegated authorization**, allowing one account (**granter**) to grant another account (**grantee**) permission to execute specific transactions on its behalf. #### **How Authz Works in Treasury Contracts?** * **The user acts as the granter**, granting permission to the **treasury contract (grantee)** to execute transactions on their behalf. * **The treasury contract defines allowed actions**, for exmple token transfers. * **Users approve the treasury contract** to execute these actions on their behalf. * **The app allows users to trigger transactions**, which the **treasury contract then executes on their behalf**. #### **Key Benefits of Authz** * **Security and control** – Users define exactly which actions the treasury contract can perform. * **Automation** – Transactions can be executed without requiring constant user approval. * **Efficiency** – Reduces manual signing and streamlines app interactions. By combining **Fee Grants** and **Authz**, **Treasury Contracts** offer **a seamless and user-friendly blockchain experience**, eliminating gas fees while maintaining security and control over transaction execution. ## Developer Portal We have developed a **Developer Portal** to provide resources that developers can leverage within their apps. The first feature available is the **creation and management of Treasury Contracts**. You can access the Developer Portal using the following links: * **Testnet**: [https://dev.testnet.burnt.com](https://dev.testnet.burnt.com/) * **Mainnet**: <https://dev.burnt.com> To perform any actions, you must **log in to the portal**. After logging in, you will be automatically redirected to the **Dashboard**, where you can create and manage your deployed Treasury Contracts. ### The Dashboard The **Dashboard** displays all your deployed **Treasury Contracts**. Once you create a contract, it will appear in your list of active deployments. #### **Important Note:** * Contract details are **stored in your browser's local storage**. * Switching **browsers or devices will not retain your deployed contract list**. <figure><img src="https://3630978198-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FB5Z5ijJgMx0GJO3l1Il9%2Fuploads%2FyrmeIYhMlCW82ZW30HdY%2Fimage.png?alt=media&amp;token=7fe56db8-e8c0-48a4-a0b1-01a995aa5697" alt=""><figcaption></figcaption></figure> ## Creating a Treasury Contract To create a new **Treasury Contract**, follow these steps: 1. Click the **"New Treasury"** button located at the **top right corner** of the Dashboard. 2. A setup screen will appear, prompting you to configure the contract settings. <figure><img src="https://3630978198-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FB5Z5ijJgMx0GJO3l1Il9%2Fuploads%2FnN4g04de8z7fTqyt1mhT%2Fimage.png?alt=media&amp;token=015a6950-1555-4caa-ba85-e77984581ed8" alt=""><figcaption></figcaption></figure> You must complete the required fields for each module: * **Allowance Configuration:** At least **one fee grant** is required to enable gasless transactions. * **Permissions:** At least **one authorization grant** must be set up to define transaction permissions. In the next sections, we'll go through each module in more detail. ### **Allowance Configuration (**&#x46;ee Grant) The **Fee Grant** section allows you to set up a mechanism to cover gas fees for user interactions within your app. There are three types of fee allowances available: **1. Basic Allowance (`/cosmos.feegrant.v1beta1.BasicAllowance`)** * Defines a **fixed spend limit per transaction**. * Ideal for simple fee grants where users have a predefined gas budget. **2. Periodic Allowance (`/cosmos.feegrant.v1beta1.PeriodicAllowance`)** * Allows users to access the grant **at set intervals**. * You can specify: * **Period duration** (time users must wait before reusing the grant). * **Spend limit per period** to control gas consumption. **3. Allowed Message Allowance (`/cosmos.feegrant.v1beta1.AllowedMsgAllowance`)** * Restricts the fee grant to cover **only specific transaction types**. * You can apply either a **Basic Allowance** or **Periodic Allowance** to the specified transaction type. #### **Configuring the Fee Grant** 1. **Enter a description** explaining what the grant will cover. 2. **Select the allowance type** (Basic, Periodic, or Allowed Message Allowance). 3. **Fill in the required fields** based on the selected allowance type. 4. Click **"Save"** to finalize and store the Fee Grant configuration. Once saved, the Fee Grant settings will be applied, which you can see in the "T**reasury Instance Preview**": <figure><img src="https://3630978198-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FB5Z5ijJgMx0GJO3l1Il9%2Fuploads%2FozDgxc9qrHLhYMbRuY8U%2Fimage.png?alt=media&amp;token=29637014-25ca-489d-a4ef-a4ec5ca612b2" alt=""><figcaption></figcaption></figure> ### Permissions This section allows you to define **transaction permissions (allowances)** that users must agree to before your app can execute actions on their behalf. #### **Setting Up Authorization** 1. **Enter a Description** * Provide a **clear and concise description** explaining the purpose of the authorization. * This description will be shown to users when they click **"Allow"** after connecting their account. 2. **Select a Permission Type** * The **Permission** **Type** determines the kind of transactions your app will be authorized to perform. * **Example**: Selecting "`Execute on a smart contract`" allows your app to execute transactions on a smart contract on behalf of the user. * **Define Contract Execution Authorization** * **Select the authorization type** (currently, "`Contract execution authorization`" is the only option). * **Enter the contract address** that your app will interact with on behalf of the user. * **Set Transaction Limits (Optional)** * You can impose restrictions on: * **Total number of allowed contract calls**. * **Maximum fund spending limit**. * **Both call count and fund spending limits** for added security. * **Configure Message Filters** * **Allow all messages** – Grants permission to execute any message within the contract. * **Accepted message keys** – Specify which message types can be executed. * **Accepted raw messages** – Define precise mess
프로젝트로 돌아가기