Verona 백서

Verona

원문

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

smos/chain-registry). * **Mainnet Explorers** * <https://www.mintscan.io/xion> * <https://explorer.burnt.com/xion-mainnet-1> * <https://staking-explorer.com/explorer/xion> * <https://explorer.nodestake.org/xion> * <https://xion.explorers.guru> * **Testnet Explorers** * [https://www.mintscan.io/xion-testnet](https://www.mintscan.io/xion-testnet.) * <https://explorer.burnt.com/xion-testnet-2> *** ### How to Add or Update Explorers If you operate a block explorer or notice outdated explorer information, please consider opening a Pull Request (PR) in the [Cosmos chain registry](https://github.com/cosmos/chain-registry). You can update or add explorers by modifying the relevant Verona files: * [Mainnet `xion/chain.json`](https://github.com/cosmos/chain-registry/blob/master/xion/chain.json) * [Testnet 1 `xiontestnet/chain.json`](https://github.com/cosmos/chain-registry/blob/master/testnets/xiontestnet/chain.json) * [Testnet 2 `xiontestnet2/chain.json`](https://github.com/cosmos/chain-registry/blob/master/testnets/xiontestnet2/chain.json) For more details on how to submit a PR or update existing entries, refer to the [Cosmos chain registry guidelines](https://github.com/cosmos/chain-registry#contributing). If you have any questions or need more help, feel free to reach out in our [Discord channel](https://discord.gg/verona) or open an issue on [GitHub](https://github.com/burnt-labs/xion). # Developer Tools: Abstract Abstract is an application development platform specially built for applications that are chain-agnostic (or abstracted 😉). The best place to read more about Abstract would be their documentation at: {% embed url="<https://docs.abstract.money>" %} Abstract Money Documentation {% endembed %} In this page we will be introducing the tools provided by Abstracted that can help you speedrun through development on Verona {% hint style="success" %} If you’re a brand new dev, Abstract infrastructure may be overwhelming to start with, so we recommend just checking out the [CosmWasm documentation](https://docs.cosmwasm.com/core) and starting with the basic [CosmWasm template](https://github.com/AbstractSDK/cw-template). {% endhint %} {% hint style="info" %} **Smart contracts = Modules** (in Abstract lingo) {% endhint %} ## Contracts: Build and Deploy Abstract provides tools to build a re-usable or a standalone contract. Re-usable contracts are also referred as "Modules". ### Bootstrap Codebase: Abstract Module Template > The Abstract Module Template is a starting point for developing composable smart-contracts, or "Modules" on the Abstract platform. To learn more about Abstract Accounts, please see the [abstract accounts documentation](https://docs.abstract.money/3_framework/3_architecture.html). To read more about modules, please see the [module documentation](https://docs.abstract.money/3_framework/6_module_types.html). Spin up a new project using: ```bash cargo generate --git https://github.com/AbstractSDK/templates.git ``` {% hint style="warning" %} Refer the [repository](https://github.com/AbstractSDK/templates) for latest updates and instructions on spinning up. This documentation and the repository's updates might go out of sync. {% endhint %} ### Test contracts: CW-Orchestrator > cw-orchestrator is an advanced testing and deployment tool for CosmWasm smart-contracts. It’s designed to make it easy to test and deploy contracts in a variety of environments including cw-multi-test, local, testnet, and mainnet. > > [Read more here](https://orchestrator.abstract.money/) If you bootstrap the codebase using the Abstract module template mentioned above you should have cw-orchestrator setup already. ### Generate Schemas: \``just schema`\` `just` is a command line tool to manage and execute project specific commands. A project bootstrapped using Abstract Module Template (above) comes with handy `just` commands defined. eg., `just schema` will generate schema files in the project (should be executed if any changes are made to messages and responses) See `/justfile` in project root for all commands ## Client Abstract's JS SDK works well with both Verona's meta-accounts and EOAs. Abstract provides templates to build and debug using regular EOAs on the Verona network. However in production environment we highly recommend using meta-accounts to be able to leverage the true power of the chain and UX :) #### Documentation: {% embed url="<https://js.abstract.money/>" %} Abstract's Javascript / Typescript SDK Documentation {% endembed %} The [app templates repo](https://github.com/AbstractSDK/templates) includes a frontend folder scaffolded with React, next.js, and graz as the Cosmos wallet connector. #### Example Frontend An example frontend of a betting app deployed on Verona can be found here: <https://github.com/AbstractSDK/abstract.js/tree/believathon/examples/wagemos-xion-nextjs> **Notes:** * This example has a “dev mode” which uses EOAs as the executor using `grazProvider`. This should be used when developing the application else you will run into permissions errors. * The example also demonstrates a “user mode” using the Verona modal. We recommend having separate `AbstractProvider`s for developer and user routes. ## Client <> Contract 1. Codegen 1. When your contract devs have defined the messages for your contracts, run `just schema` to make the schemas available for codegen. 2. Ensure that the `abstract.config.js` is configured with the proper folders 3. Run `abstract generate` (CLI docs [here](https://js.abstract.money/cli/introduction)). 2. Use the generated code (`src/_generated`) to interact with your app. There is already an example for use of `cw20` contract. Refer the `wagemos` examples: <https://github.com/AbstractSDK/abstract.js/tree/believathon/examples> 3. Use the autogenerated module code to interact with the contracts ## Debugging 1. Get ready to publish 1. Add a seed phrase in the `TEST_MNEMONIC` in `.env` 1. This can be from Keplr or another Cosmos Wallet. Add Verona [here](https://explorer.burnt.com/wallet/suggest) or by connecting to the [Abstract Console](https://believathon.console.abstract.money/). 2. Ensure that you have funds in the address. On testnet, new Verona Meta accounts all have 1 Verona so sign-in [to the Verona dashboard](https://testnet.dashboard.burnt.com) and send funds to this address. 2. Publish your contract onchain with `just publish` 1. This will create a new Abstract Account, claim the namespace (configured in your app), and publish the contracts on-chain to the [contract registry](https://believathon.console.abstract.money/modules). 3. Publish your schemas with `just publish-schemas <namespace> <name> <version>` . This will give your contract auto-generated UIs in the Console. # IBC Denoms IBC denoms are unique identifiers for tokens that can be transferred between different blockchains using the IBC protocol. A **denom** typically looks something like `ibc/...`, where `...` is a hash representing the specific token and its path through the IBC channels. Below, we provide a list of popular IBC denoms for each network, along with an endpoint to access all available IBC denoms within the respective network. ## Mainnet Here is a list of IBC denoms currently active on Verona **mainnet**: <table><thead><tr><th>Denom</th><th>Symbol</th><th width="186">Network</th><th>IBC Channel Info</th></tr></thead><tbody><tr><td>ibc/F082B65C88E4B6D5EF1DB243CDA1D331D002759E938A0F5CD3FFDC5D53B3E349</td><td>UUSDC</td><td>Noble</td><td><a href="https://github.com/cosmos/chain-registry/blob/master/_IBC/noble-xion.json">View</a></td></tr></tbody></table> **Note:** This list is subject to change as new IBC denoms are established. You can find the full list of IBC denoms [here](https://api.xion-mainnet-1.burnt.com/cosmos/bank/v1beta1/denoms_metadata). You can also view the [asset list](https://github.com/cosmos/chain-registry/blob/master/xion/assetlist.json) in the chain registry. ## Testnet Here is a list of IBC denoms currently active on Verona **testnet**: <table><thead><tr><th>Denom</th><th>Symbol</th><th width="186">Network</th><th>IBC Channel Info</th></tr></thead><tbody><tr><td>ibc/6490A7EAB61059BFC1CDDEB05917DD70BDF3A611654162A1A47DB930D40D8AF4</td><td>UUSDC</td><td>Noble</td><td><a href="https://github.com/cosmos/chain-registry/blob/master/testnets/_IBC/nobletestnet-xiontestnet2.json">View</a></td></tr></tbody></table> **Note:** This list is subject to change as new IBC denoms are established. You can find the full list of IBC denoms [here](https://api.xion-testnet-2.burnt.com/cosmos/bank/v1beta1/denoms_metadata). You can also view the [asset list](https://github.com/cosmos/chain-registry/blob/master/testnets/xiontestnet2/assetlist.json) in the chain registry. # Frequently Asked Questions Covers common questions about Verona, including its ecosystem, development, security, governance, and user interactions. <details> <summary>Is Testnet permissioned for smart contract deployment?</summary> No, our Testnet is fully permissionless, allowing anyone to deploy and instantiate contracts. </details> <details> <summary>Is Mainnet permissioned for smart contract deployment?</summary> Yes, Mainnet is permissioned, requiring governance approval for contract deployment. However, once a contract is deployed, anyone can create an instance of that contract if it permits. You can find a list of such contracts along with their respective CODE IDs [here](https://github.com/burnt-labs/contracts). </details> <details> <summary>How do I submit a proposal to deploy a contract on Mainnet?</summary> This [guide](/en/build-on-verona/building-for-production/deploying-to-mainnet) provides step-by-step instructions for deploying your contract on Mainnet. </details> <details> <summary>What’s the preferred way to create a token on Verona?</summary> We recommend using our **Token Factory** module for creating tokens. You can find details on why it’s the preferred method, along with instructions on creating, managing, and using tokens within your apps, [here](/en/build-on-verona/computation/integrations/token-factory). </details> <details> <summary>Can we get the user's email from the Abstraxion Library?</summary> No, you cannot access the user’s email from the Abstraxion library, as the library does not have access to the user's email address. You can however request the user’s email as part of your new user onboarding process. </details> <details> <summary>How can my smart contract communicate with a Web2 service?</summary> Due to the deterministic nature of blockchains, a smart contract on Verona cannot interact with the web directly. The most common way to enable this is via an Oracle. The Pyth Oracle should be available on Testnet. Alternatively, you can create a custom Oracle service where a Web2 backend fetches data from an external API and submits transactions to a smart contract to store the data on-chain which can then be accessed by your contracts. </details> # For Web2 Developers It can be a challenge coming from a pure Web2 background to fully understand how to build on Web3 infrastructure like Verona. Building on Web3 requires a mindset shift. While the core principles of software development still apply, the architecture, tooling, and user interaction models are different. This guide bridges the gap. {% hint style="info" %} **The good news:** Verona's abstraction layer means your users' experience will feel exactly like a Web2 app. Email login, credit card payments, no crypto terminology. The differences are primarily in how you structure your backend logic and data storage. {% endhint %} ### **Key architectural differences** You'll start by understanding the fundamental architectural differences between Web2 and Web3 applications: * **Backend vs Smart Contracts:** In Web2, your backend logic lives in frameworks like Laravel, Express, or Django. On Verona, core business logic is deployed on-chain via CosmWasm smart contracts (Rust). Your traditional backend can still exist for off-chain operations, API integrations, and caching. * **Databases vs On-Chain State:** Instead of MySQL or MongoDB, persistent data lives within the smart contract's storage, which is public and immutable. For private data, you use off-chain storage with on-chain attestation hashes. Verona's verification infrastructure means you can reference real-world data without storing it on-chain. * **Centralized Auth vs Meta Accounts:** Authentication moves from traditional JWT/session systems to Meta Accounts. But because Meta Accounts support email and social login via the Abstraxion SDK, the user-facing experience is nearly identical to Web2 auth. The underlying mechanism is different (cryptographic signatures vs. password hashes), but your users will not notice. ### **What Verona adds that Web2 cannot do** * **Verification without data access.** Your app can confirm a user's real-world credentials (income, reputation, identity) without ever accessing the sensitive data. This is impossible in Web2 without trusted third parties. * **Trustless automation.** Smart contracts execute automatically when conditions are met. No server downtime, no manual intervention, no single point of failure. * **User data ownership.** Users own their accounts and data. They can take their verified reputation to any app on the Verona network. This creates a network effect that benefits all applications in the ecosystem. ### In This Section * [Web2 vs Web3 App Architecture: A Comparison](/en/build-on-verona/references/for-web2-developers/web2-vs-web3-app-architecture-a-comparison) * [Misconceptions and Misapplied Web2 Patterns](/en/build-on-verona/references/for-web2-developers/misconceptions-and-misapplied-web2-patterns) * [Recommended Architecture for Apps on Verona](/en/build-on-verona/references/for-web2-developers/recommended-architecture-for-dapps) # Web2 vs Web3 App Architecture: A Comparison As a developer transitioning from Web2 to Web3, one of the most important things to understand is how the application architecture changes. In Web2, applications are typically built using centralized infrastructure. Backend servers handle business logic, authentication, and data storage, while the frontend communicates with these servers through calling files that exist on the server(s). Developers have full control over the infrastructure and data, and security is managed through centralized access controls. In contrast, Web3 applications follow a decentralized architecture. Business logic is moved into **smart contracts** that run on the blockchain. Data is stored **on-chain**, and users authenticate using **wallets** instead of traditional login systems. The frontend plays a much larger role, directly interacting with smart contracts and blockchain APIs without relying on a centralized backend. Additionally, in Web3 **every interaction with the blockchain incurs a transaction fee**, known as **gas**. This fee is required to execute smart contract logic, store data, or trigger on-chain changes, adding an economic layer to app interactions that developers must account for. The table below outlines how the core components of a Web2 app compare to those in a Web3 app built on Verona: | Component | Web2 Architecture | Web3 Architecture (on Verona) | | ------------------- | ----------------------------- | ---------------------------------------------------- | | Backend Logic | Laravel, Express.js, Django | CosmWasm Smart Contracts | | Database | MySQL, PostgreSQL, MongoDB | On-chain Contract State | | Auth | Email/Password, OAuth | Wallet-based Authentication, Smart Contract Accounts | | Frontend | React, Vue, Ember.js | Vue, React, `xion.js`, `cosmjs` | | Hosting | Nginx, Heroku, AWS | Vercel, Netlify, IPFS | | Business Logic | Runs server-side | Runs in smart contracts | | API Layer | REST, GraphQL | RPC, gRPC, API services via blockchain nodes | | User Identity | Centralized user records | Wallet addresses + signatures | | Data Privacy | Server-side protected data | Public, on-chain state | | Cost of Interaction | Free to users or subscription | User or app pays gas per blockchain tx | ## Architectural Mindset Shift Shifting from **Web2** to **Web3** development, especially on Verona, requires a new way of thinking about **infrastructure**, **data**, **trust**, and **control**. ### Web2 * **You control everything**: Servers, databases, and user accounts are all managed by you or your team. * **Data is private by default**: User and application data is stored in centralized, access-controlled databases. * **Trust is enforced by infrastructure**: Firewalls, authentication systems, and permission models are used to establish and maintain security. * **Users expect free or subscription-based access**: Most Web2 applications are free to use (ad-supported) or follow a subscription-based model where users pay for premium features or services. Users generally aren’t charged per interaction. ### Web3 (on Verona) * **The blockchain becomes your backend**: Your application logic is deployed as smart contracts on the Verona network, not hosted on private servers. * **Data is public by default**: All state is stored on-chain and is accessible to anyone, ensuring transparency and auditability. * **Users are in control**: There are no centralized accounts, users manage their own wallets and sign transactions to interact with your app. * **Logic is deterministic and immutable**: Smart contracts stores the business logic of your app and run exactly as written. Changes require deliberate migrations/upgrades. * **Each interaction has a cost**: All meaningful changes to blockchain state require **gas**, paid either by the user or the app. *** As you transition to building on Verona, your focus shifts away from traditional backend services and toward designing smart contracts that define the core logic of your application. You no longer need to manage user accounts or credentials, wallets handle authentication, authorization and identity natively. The frontend takes on a more central role, often interacting directly with smart contracts to trigger application logic. Every interaction with the blockchain incurs a gas fee and results in an immutable state change once confirmed. Because of this, testing, versioning, and managing contract migrations become essential skills for maintaining and evolving your app over time. Transitioning from Web2 to Web3 development requires more than new tools, it requires a new **mental model**. Instead of thinking in terms of centralized logic, storage, and identity, think in terms of **decentralized contracts**, **public state**, and **user-owned keys**. By leaving behind these Web2 patterns and embracing Web3-native architecture, you’ll build apps on Verona that are secure, trustless, and truly user-centric. # Misconceptions and Misapplied Web2 Patterns As **Web2** developers begin building in **Web3**, it's natural to lean on familiar tools, frameworks, and mental models. This however often lead to **misapplied patterns** that don’t align with the decentralized nature of blockchain development, especially when working with Verona. This guide outlines common misconceptions and design patterns brought over from Web2 that **don’t translate well to Web3**, and explains how to rethink your approach for building secure, performant, and user-friendly apps on Verona. ### Misconception #1: "I need a backend server to run my app" In Web2, your backend is the heart of your application, handling routing, business logic, database queries, and more. But in Web3, **your smart contracts replace the backend**. There is no centralized server between your frontend and the blockchain. #### The Web3 mindset: * **Business logic** lives in CosmWasm smart contracts. * **State** is managed and stored on-chain. * The **frontend communicates directly with the blockch
프로젝트로 돌아가기