Verona 백서

Verona

원문

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

g contracts instead of deploying new ones. Many of these contracts are pre-audited or have been around so long that they are considered battle tested. ### What You'll Find You can view a full list of these deployed contracts and their **code IDs** in the [**burnt-labs/contracts**](https://github.com/burnt-labs/contracts) repository. If you go to the [**Readme**](https://github.com/burnt-labs/contracts/blob/main/README.md) file under the "**Active Contracts**" section you will see a table listing: * **Contract name** * **Descriotion** of the contract * The **release tag** on github of the source code that was deployed on-chain * The creators of the smart contract * **Code ID** for **Mainnet** and **Testnet** * The **governance proposal** that was executed to deploy the contract **Before using a contract on Mainnet, you should first test its equivalent on Testnet.** Ensure your integration works correctly before submitting a governance proposal for Mainnet deployment. There should always be a respective **Code ID** of each contract deployment on **Testnet** that you can instantiate and test out. # Non-Fungible Tokens (NFTs) NFTs are unique digital assets, and similar to the ERC-721 standard on Ethereum, the CosmWasm ecosystem uses the CW721 standard. Verona supports this NFT standard, with several ready-to-use contracts available in the [**cw-nfts**](https://github.com/public-awesome/cw-nfts) repository. These contracts enable teams to deploy NFT collections with minimal customization while benefiting from enhanced security and reliability. {% hint style="success" %} Reusing these contracts **without modification** may reduce or eliminate the need for a security audit before deploying to Verona Mainnet. {% endhint %} ## Available CW721 Contract Variants | Contract | Transferable | On-Chain Metadata | Updatable Metadata | Use Case Examples | | -------------------------- | ------------ | ---------------------- | -------------------- | ----------------------------------------------------- | | **cw721-base** | Yes | No | No | Basic NFT collections with off-chain metadata | | **cw721-updatable** | Yes | No | Yes | Dynamic NFTs (e.g., avatars that evolve, gaming NFTs) | | **cw721-metadata-onchain** | Yes | Yes | No | Fully on-chain generative art, digital collectibles | | **cw721-soulbound** | No | No | No | Identity badges, certificates, proof-of-participation | | **cw721-expiration** | Yes | No | Yes (via expiration) | Subscription NFTs, time-limited memberships | | **cw721-fixed-price** | Yes | No (usually off-chain) | Yes (price config) | Simple marketplaces with fixed price sales | | **cw721-non-transferable** | No | No | No | Achievements, diplomas, SBTs (Soulbound Tokens) | | **cw721-receiver-tester** | Yes | No | No | Utility contract used for testing receive hooks | | **cw2981-royalties** | Yes | Yes | No | Royalty-enabled NFTs for artists and creators | #### 1. **cw721-base** The standard implementation of the CW721 specification.\ **Features:** * Minting, transferring, burning * Token-level ownership and metadata * Approved operators **Ideal for:**\ Basic NFT collections with off-chain metadata 📦 **Repo:** [`cw721-base`](https://github.com/public-awesome/cw-nfts/tree/main/contracts/cw721-base) #### 2. **cw721-updatable** An extension of `cw721-base` that allows metadata to be updated after minting.\ **Features:** * All `cw721-base` features * Supports updating token metadata **Ideal for:**\ Dynamic NFTs such as evolving avatars, game characters, or NFTs that change over time 📦 **Repo:** [`cw721-updatable`](https://crates.io/crates/cw721-updatable) #### 3. **cw721-metadata-onchain** A variant of `cw721-base` where full metadata is stored directly on-chain.\ **Features:** * All `cw721-base` features * Stores metadata (name, description, image) directly in state **Ideal for:**\ NFTs where immutability and decentralization of metadata are critical (e.g., generative art, collectibles) 📦 **Repo:** [`cw721-metadata-onchain`](https://github.com/public-awesome/cw-nfts/tree/main/contracts/cw721-metadata-onchain) #### 4. **cw721-soulbound** Implements non-transferable NFTs, often referred to as Soulbound Tokens (SBTs).\ **Features:** * Minting only * Disables transfer and approval functionality **Ideal for:**\ Credentials, identity, certifications, badges, or non-transferable memberships 📦 **Repo:** [`cw721-soulbound`](https://crates.io/crates/cw721-soulbound) #### 5. **cw721-expiration** Extends `cw721-base` with support for setting expiration times on NFTs.\ **Features:** * All `cw721-base` features * Optional expiration timestamp per token * Hooks for expiration-based behavior **Ideal for:**\ Time-based NFTs such as subscriptions, memberships, or event passes 📦 **Repo:** [`cw721-expiration`](https://github.com/public-awesome/cw-nfts/tree/main/contracts/cw721-expiration) #### 6. **cw721-fixed-price** A contract combining NFT minting with a built-in fixed-price marketplace.\ **Features:** * Minting and transferring * Price configuration per token * Direct buy functionality **Ideal for:**\ Launching NFT collections with fixed-price sales without needing a separate marketplace contract 📦 **Repo:** [`cw721-fixed-price`](https://github.com/public-awesome/cw-nfts/tree/main/contracts/cw721-fixed-price) #### 7. **cw721-non-transferable** A stricter soulbound implementation with enforced immutability.\ **Features:** * No transferring or burning * Tokens are permanent and non-movable once minted **Ideal for:**\ Highly permanent identity artifacts such as diplomas, licenses, or irreversible credentials 📦 **Repo:** [`cw721-non-transferable`](https://github.com/public-awesome/cw-nfts/tree/main/contracts/cw721-non-transferable) #### 8. **cw721-receiver-tester** A testing utility contract for verifying the `cw721` `Receive` hook functionality.\ **Features:** * Implements `cw721::Receiver` interface * Logs or validates token reception **Ideal for:**\ Testing and verifying behavior of contracts that send or receive NFTs 📦 **Repo:** [`cw721-receiver-tester`](https://github.com/public-awesome/cw-nfts/tree/main/contracts/cw721-receiver-tester) #### 9. **cw2981-royalties** Implements the CW2981 royalty standard for NFT creators.\ **Features:** * Attaches royalty info to CW721 tokens * Royalty enforcement during sales (via marketplaces) **Ideal for:**\ NFT collections where artists or creators want automatic royalty support\ 📦 Repo: [`cw2981-royalties`](https://github.com/public-awesome/cw-nfts/tree/main/contracts/cw2981-royalties) # Fungible Tokens The CW20 standard defines a fungible token interface for smart contracts in the CosmWasm ecosystem, similar to Ethereum’s ERC-20. On Verona, you can deploy your own CW20 contracts or use the built-in [Token Factory module](/en/build-on-verona/computation/integrations/token-factory) to create native tokens without writing custom logic. This guide explains when and how to deploy CW20 token contracts using production-ready implementations from the [cw-plus](https://github.com/CosmWasm/cw-plus) and [cw-tokens](https://github.com/CosmWasm/cw-tokens) repositories. {% hint style="success" %} Reusing these contracts **without modification** may reduce or eliminate the need for a security audit before deploying to Verona Mainnet. {% endhint %} ## When to use CW20 Contracts vs Token Factory | Use Case | Use CW20 Contract | Use Token Factory | | --------------------------------------------------- | --------------------------------- | ----------------- | | Need custom logic (e.g., bonding, vesting) | Yes | No | | Just need a **simple native token** | No | Yes | | Allows for transferring tokens across chain via IBC | No (Requires cw20-ics20 contract) | Yes | If you're just minting a governance or utility token with no special rules, use **Token Factory**. If you need full control and customization, go with CW20 contracts. See the following [Token Factory guide](/en/build-on-verona/computation/integrations/token-factory/creating-minting-and-interacting-with-a-token-factory-token) for more details. ### Available CW20 Contract Variants #### 1. `cw20-base` Standard CW20 implementation with all basic functionality. **Features:** * Minting and burning * Transfer and allowance logic * Query total supply, balances 📦 Repo: [`cw20-base`](https://github.com/CosmWasm/cw-plus/tree/main/contracts/cw20-base) **Ideal for:** * Standalone utility tokens * Basic reward and governance tokens #### 2. `cw20-ics20` Wraps a CW20 token to be compatible with **IBC (Interchain Standard 20)**. **Features:** * Builds on `cw20-base` * Adds IBC packet handling for token transfers across Cosmos chains 📦 Repo: [`cw20-ics20`](https://github.com/CosmWasm/cw-plus/tree/main/contracts/cw20-ics20) **Ideal for:** * Interchain assets * Apps that rely on token bridging #### 3. `cw20-bonding` CW20 token with **bonding curve logic** for dynamic token pricing. **Features:** * Automatic pricing based on supply * Mint/burn tokens via bonding curve * Customizable curve function 📦 Repo: [`cw20-bonding`](https://github.com/CosmWasm/cw-plus/tree/main/contracts/cw20-bonding) **Ideal for:** * Fundraising apps * Creator economy tokens * Algorithmic supply control #### 4. **cw20-atomic-swap** Implements atomic swaps between native and CW20 tokens in a trust-minimized way.\ **Features:** * Supports atomic swaps between native tokens and CW20 tokens * Time-locked contracts ensure either party can claim or refund * Hash-based secret verification (HTLC-style) **Ideal for:**\ Cross-party token swaps without intermediaries, simple DEX-like functionality\ 📦 Repo: [`cw20-atomic-swap`](https://github.com/CosmWasm/cw-tokens/tree/main/contracts/cw20-atomic-swap) #### 5. **cw20-staking** Provides staking derivatives by staking native tokens and issuing CW20 representations.\ **Features:** * Stakes native tokens on behalf of the user * Issues CW20 tokens as liquid staking derivatives * Integrates with the staking module for rewards * Based on `cw20-base` **Ideal for:**\ Liquid staking solutions, DeFi integrations, enabling composability of staked assets\ 📦 Repo: [`cw20-staking`](https://github.com/CosmWasm/cw-tokens/tree/main/contracts/cw20-staking) #### 6. **cw20-escrow** A simple escrow contract compatible with both native and CW20 tokens.\ **Features:** * Funds are held until an arbiter approves release or refund * Supports multiple token types (CW20 and native) * Basic access control for disbursement **Ideal for:**\ Trust-minimized payments, freelance work, over-the-counter trades\ 📦 Repo: [`cw20-escrow`](https://github.com/CosmWasm/cw-tokens/tree/main/contracts/cw20-escrow) #### 7. **cw20-merkle-airdrop** Efficient CW20 token airdrop mechanism using Merkle proofs.\ **Features:** * Airdrop claim eligibility via Merkle root verification * Reduces gas cost for mass distribution * Claim tracking to prevent double claims **Ideal for:**\ Token launches, community rewards, incentivized campaigns\ 📦 Repo: [`cw20-merkle-airdrop`](https://github.com/CosmWasm/cw-tokens/tree/main/contracts/cw20-merkle-airdrop) # Marketplace NFT **marketplaces** are smart contracts that allow users to **buy, sell, and list NFTs** in a decentralized way. They function as digital storefronts where NFTs can be exchanged using smart contract logic, without the need for a centralized intermediary. In the context of the **Verona ecosystem**, marketplaces are critical because: * They **enable discovery and liquidity** for NFTs * They **automate trustless transactions** using smart contracts * They **support royalty enforcement**, helping creators earn on secondary sales * They offer **customization and access control**, allowing developers to tailor the buying/selling experience By deploying a marketplace contract, developers can either create a **permissionless open market** for many collections or a **curated shop** for a single NFT series. ## Contract Comparison | Contract | Multi-Collection Support | Permissioned Access | Royalties | Ideal For | | --------------------------------------- | --------------------------- | -------------------------------- | --------- | -------------------------------------------------------- | | **cw721-marketplace** | Yes | No (open to all collections) | Yes | General-purpose, open NFT marketplaces | | **cw721-marketplace-permissioned** | Yes | Yes (admin approves collections) | Yes | Curated galleries, permissioned or verified marketplaces | | **cw721-marketplace-single-collection** | No (single collection only) | No (open within one collection) | Yes | Dedicated storefronts for one collection | These smart contracts provide marketplace functionality for CW721 NFTs on the Verona network. Each is tailored for specific use cases, whether you're creating an open market, a curated gallery, or a single-collection storefront. #### 1. **cw721-marketplace** A full-featured, open NFT marketplace contract that supports multiple collections.\ **Features:** * List, buy, and cancel NFTs across many CW721 collections * Supports royalties (CW2981) * Uses native or CW20 tokens for payment * Collection-level and token-level approvals * Designed for broad, permissionless markets **Ideal for:**\ General-purpose NFT marketplaces with support for multiple projects\ 📦 Repo: [`cw721-marketplace`](https://crates.io/crates/cw721-marketplace) #### 2. **cw721-marketplace-permissioned** A variation of the `cw721-marketplace` contract that adds access controls for curated listings.\ **Features:** * All features of `cw721-marketplace` * Admin approval required before collections can be listed * Better suited for curated or private markets * Roles and access permissions baked into marketplace logic **Ideal for:**\ Art galleries, curated drops, or marketplaces with verified creators only\ 📦 Repo: [`cw721-marketplace-permissioned`](https://crates.io/crates/cw721-marketplace-permissioned) #### 3. **cw721-marketplace-single-collection** A lightweight marketplace contract designed for a single NFT collection.\ **Features:** * Fixed-price sales within one collection * Simplified logic, no need to manage multiple collections * Minimal setup and configuration * Royalties and fees configurable per contract **Ideal for:**\ Creators launching a dedicated storefront for one collection, or small-scale sales\ 📦 Repo: [`cw721-marketplace-single-collection`](https://crates.io/crates/cw721-marketplace-single-collection) # Multisig **Multisigs** short for *multi-signature contracts* are smart contracts that require **multiple parties to approve an action** before it can be executed. Instead of relying on a single private key, control is distributed among a group, increasing **security**, **transparency**, and **collaborative governance**. In the **Verona** ecosystem and broader **CosmWasm** world, multisigs are commonly used for: * **Decentralized treasury management** * **Protocol upgrades or governance decisions** * **Secure deployment of smart contracts** * **Joint ownership of high-value assets** ## Multisig Contracts CW3 is the CosmWasm standard for multisig contracts. There are two main implementations: one for **static membership** and one for **dynamic membership**. | Contract | Voter Set Type | On-Chain Proposal Flow | Dynamic Membership | Ideal For | | ---------------------- | ------------------- | ---------------------- | ------------------ | ----------------------------------------- | | **cw3-fixed-multisig** | Fixed (K-of-N) | Yes | No | Small, static groups | | **cw3-flex-multisig** | Linked to cw4-group | Yes | Yes | DAOs, evolving teams, flexible governance | #### 1. **cw3-fixed-multisig** A straightforward multisig implementation with a fixed list of members defined at instantiation.\ **Features:** * Fixed set of voters with configurable weights * On-chain proposal and approval tracking * Simple K-of-N signature logic * No dependency on external contracts **Ideal for:**\ Small teams or DAOs with a known and unchanging voter set\ 📦 Repo: [`cw3-fixed-multisig`](https://crates.io/crates/cw3-fixed-multisig) #### 2. **cw3-flex-multisig** An advanced multisig contract backed by a `cw4-group` contract for flexible, updateable membership.\ **Features:** * Dynamic voter set via linked `cw4-group` contract * Adjustable weights and thresholds * Allows adding/removing members without redeploying the multisig * More modular and governance-ready **Ideal for:**\ DAOs and organizations where the voting group may change over time\ 📦 Repo: [`cw3-flex-multisig`](https://crates.io/crates/cw3-flex-multisig) # Proxy Contracts **Proxy contracts** act on behalf of one or more users, allowing controlled execution of transactions or actions under specific conditions. Instead of a user calling contracts directly, they can delegate that responsibility to a proxy, which then executes the desired operations, either automatically or with certain restrictions. In the **CosmWasm** and **Verona** ecosystem, proxy contracts are commonly used for: * **Delegating transaction execution** * **Granting limited permissions to third parties or apps** * **Enabling programmable account logic** * **Simulating multisig-like behavior without full governance** ## Proxy Contracts The **CW1 standard** defines a generic proxy interface for executing messages on behalf of others. Two primary CW1-based contracts demonstrate its flexibility. | Contract | Access Control | Allowance Tracking | Use Case | | ----------------- | ---------------------- | ------------------ | ------------------------------------- | | **cw1-whitelist** | Whitelisted addresses | No | Admin execution, limited delegation | | **cw1-subkeys** | Per-address allowances | Yes | Spend limits, delegated token control | #### 1. **cw1-whitelist** A minimal, reference implementation of a CW1 proxy contract where only **whitelisted addresses** can execute messages through the proxy.\ **Features:** * Owner controls the list of allowed executors * Whitelisted users can call `Execute` on the proxy, forwarding messages * Simple access control pattern for demonstration or lightweight usage **Ideal for:**\ Use cases where only trusted addresses (like admins or bots) should trigger transactions on behalf of the contract\ 📦 Repo: [`cw1-whitelist`](https://crates.io/crates/cw1-whitelist) #### 2. **cw1-subkeys** A practical CW1 proxy that allows setting **spending allowances** (especially for native tokens) per address.\ **Features:** * Assigns per-address allowances for native tokens * Tracks balance usage and enforces limits * Enables more granular control without modifying the bank module * Allows users to delegate spend permissions without sharing private keys **Ideal for:**\ Gasless UX, spend limits, delegated spending by apps or services (e.g. subscription models, wallets)\ 📦 Repo: [`cw1-subkeys`](https://crates.io/crates/cw1-subkeys) # Membership Management **On-chain group membership management** can be useful in governance systems, access control, and permissioned modules. These contracts track **who is in a group** and **how much voting weight** each member has, forming the backbone for more complex systems like multisigs (CW3), DAOs, and role-based permissions. ### Membership Contracts | Contract | Membership Type | Voting Power Source | Admin Controlled | Staking Required | Use Case | | ------------- | --------------------- | ------------------- | ---------------- | ---------------- | --------------------------------------------------- | | **cw4-group** | Appointed (manual) | Configured weights | Yes | No | Static groups, multisig backends, role-based access | | **cw4-stake** | Dynamic (via staking) | Token stake | No (stake-based) | Yes | Token-based DAOs, governance by stake | #### 1. **cw4-group** A core implementation of the CW4 specification for managing static or admin-controlled groups.\ **Features:** * Manages a list of members and
프로젝트로 돌아가기