Initia 백서

Initia

원문

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

ient) returns (bool) ``` #### Parameters | Name | Type | Description | | ----------- | --------- | --------------------------------- | | `recipient` | `address` | The address receiving the tokens. | | `amount` | `uint256` | The amount of tokens to transfer. | #### Returns | Type | Description | | ------ | -------------------------------------- | | `bool` | `true` if the transfer was successful. | ### `approve` Approves an address to spend a specified amount of tokens on behalf of the caller. ```solidity theme={null} function approve(address spender, uint256 amount) external returns (bool) ``` #### Parameters | Name | Type | Description | | --------- | --------- | ---------------------------------------- | | `spender` | `address` | The address allowed to spend the tokens. | | `amount` | `uint256` | The amount of tokens to approve. | #### Returns | Type | Description | | ------ | -------------------------------------- | | `bool` | `true` if the approval was successful. | ### `transferFrom` Transfers tokens from one address to another on behalf of the sender, ensuring the recipient is not a blocked address. ```solidity theme={null} function transferFrom(address sender, address recipient, uint256 amount) external transferable(recipient) returns (bool) ``` #### Parameters | Name | Type | Description | | ----------- | --------- | --------------------------------- | | `sender` | `address` | The address sending the tokens. | | `recipient` | `address` | The address receiving the tokens. | | `amount` | `uint256` | The amount of tokens to transfer. | #### Returns | Type | Description | | ------ | -------------------------------------- | | `bool` | `true` if the transfer was successful. | ### `mint` Mints new tokens to a specified address, ensuring the recipient is not a blocked address. This function can only be called by the owner. ```solidity theme={null} function mint(address to, uint256 amount) external mintable(to) onlyOwner ``` #### Parameters | Name | Type | Description | | -------- | --------- | --------------------------------- | | `to` | `address` | The address receiving the tokens. | | `amount` | `uint256` | The amount of tokens to mint. | ### `burn` Burns tokens from a specified address, ensuring the sender is not a module address. This function can only be called by the owner. ```solidity theme={null} function burn(address from, uint256 amount) external burnable(from) onlyOwner ``` #### Parameters | Name | Type | Description | | -------- | --------- | ------------------------------------ | | `from` | `address` | The address whose tokens are burned. | | `amount` | `uint256` | The amount of tokens to burn. | ### `sudoTransfer` Transfers tokens from one address to another, bypassing the usual access control checks. This function can only be called by the chain signer. ```solidity theme={null} function sudoTransfer(address sender, address recipient, uint256 amount) external onlyChain ``` #### Parameters | Name | Type | Description | | ----------- | --------- | --------------------------------- | | `sender` | `address` | The address sending the tokens. | | `recipient` | `address` | The address receiving the tokens. | | `amount` | `uint256` | The amount of tokens to transfer. | ### `sudoMint` Mints new tokens to a specified address, bypassing the usual access control checks. This function can only be called by the chain signer. ```solidity theme={null} function sudoMint(address to, uint256 amount) external onlyChain ``` #### Parameters | Name | Type | Description | | -------- | --------- | --------------------------------- | | `to` | `address` | The address receiving the tokens. | | `amount` | `uint256` | The amount of tokens to mint. | ### `sudoBurn` Burns tokens from a specified address, bypassing the usual access control checks. This function can only be called by the chain signer. ```solidity theme={null} function sudoBurn(address from, uint256 amount) external onlyChain ``` #### Parameters | Name | Type | Description | | -------- | --------- | ------------------------------------ | | `from` | `address` | The address whose tokens are burned. | | `amount` | `uint256` | The amount of tokens to burn. | # Deployed Contracts (Initia) Source: https://docs.initia.xyz/resources/developer/deployed-contracts/initia ### VIP Contract <Tabs> <Tab title="Mainnet (interwoven-1)"> <table> <thead> <tr> <th>Contract Name</th> <th>Address</th> </tr> </thead> <tbody> <tr> <td> <a href="/home/core-concepts/vip/introduction">VIP</a> </td> <td> <a href="https://scan.initia.xyz/interwoven-1/modules/0x3a886b32a802582f2e446e74d4a24d1d7ed01adf46d2a8f65c5723887e708789/vip"> <code> 0x3a886b32a802582f2e446e74d4a24d1d7ed01adf46d2a8f65c5723887e708789 </code> </a> </td> </tr> </tbody> </table> </Tab> <Tab title="Testnet (initiation-2)"> <table> <thead> <tr> <th>Contract Name</th> <th>Address</th> </tr> </thead> <tbody> <tr> <td> <a href="/home/core-concepts/vip/introduction">VIP</a> </td> <td> <a href="https://scan.testnet.initia.xyz/initiation-2/modules/0x81c3ea419d2fd3a27971021d9dd3cc708def05e5d6a09d39b2f1f9ba18312264/vip"> <code> 0x81c3ea419d2fd3a27971021d9dd3cc708def05e5d6a09d39b2f1f9ba18312264 </code> </a> </td> </tr> </tbody> </table> </Tab> </Tabs> # Deployed Contracts (MiniEVM) Source: https://docs.initia.xyz/resources/developer/deployed-contracts/minievm <Tabs> <Tab title="Devnet (minievm-2)"> <table> <thead> <tr> <th>Contract Name</th> <th>Address</th> <th>ABI</th> </tr> </thead> <tbody> <tr> <td> <a href="/resources/developer/contract-references/evm/cosmos"> Cosmos </a> </td> <td> <code>0xf1</code> </td> <td>TBA</td> </tr> <tr> <td> <a href="/resources/developer/contract-references/evm/erc20-registry"> ERC20Registry </a> </td> <td> <code>0xf2</code> </td> <td>TBA</td> </tr> <tr> <td> <a href="/resources/developer/contract-references/evm/erc20-factory"> ERC20Factory </a> </td> <td> <code>0xd53506E20eA25122aC6adc6462D9D1cf810Ef5a4</code> </td> <td>TBA</td> </tr> <tr> <td> <a href="/resources/developer/contract-references/evm/connect"> ConnectOracle </a> </td> <td> <code>0x031ECb63480983FD216D17BB6e1d393f3816b72F</code> </td> <td>TBA</td> </tr> </tbody> </table> </Tab> </Tabs> # Initia L1 Networks Source: https://docs.initia.xyz/resources/developer/initia-l1 ## Network Details <Tabs> <Tab title="Mainnet (interwoven-1)"> | Item | Value | | ------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Chain ID | `interwoven-1` | | REST | [https://rest.initia.xyz](https://rest.initia.xyz) | | RPC | [https://rpc.initia.xyz](https://rpc.initia.xyz) | | Genesis Hash (sha256sum) | `f2521b5130e0b26ff47d6155e42e3a0e1e3e1a2676727a317ba34069f3650955` | | Genesis File | [https://storage.googleapis.com/init-common-genesis/interwoven-1/genesis.json](https://storage.googleapis.com/init-common-genesis/interwoven-1/genesis.json) | | Peers | `80e8870743458d1a28ce9f9da939e4ddcb7cedfe@34.142.172.124:26656,c02d9c632bcbc7af974399c122eae36a8ed466bb@34.126.106.6:26656,b58e3dacc8c8009514c14e36730b564962028adc@34.124.183.130:26656` | | Seeds | `80e8870743458d1a28ce9f9da939e4ddcb7cedfe@34.142.172.124:26656` | | Address Book | TBA | </Tab> <Tab title="Testnet (initiation-2)"> | Item | Value | | ------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Chain ID | `initiation-2` | | REST | [https://rest.testnet.initia.xyz](https://rest.testnet.initia.xyz) | | RPC | [https://rpc.testnet.initia.xyz](https://rpc.testnet.initia.xyz) | | Genesis Hash (sha256sum) | `a342fa276722bc90b3bf1ff8cc028102ccd9e897cd7a4ad55161998359a1cde3` | | Genesis File | [https://storage.googleapis.com/init-common-genesis/initiation-2/genesis.json](https://storage.googleapis.com/init-common-genesis/initiation-2/genesis.json) | | Peers | `3715cdb41efb45714eb534c3943c5947f4894787@34.143.179.242:26656` | | Seeds | `3715cdb41efb45714eb534c3943c5947f4894787@34.143.179.242:26656` | | Address Book | [https://storage.googleapis.com/init-common-addrbook/initiation-2/addrbook.json](https://storage.googleapis.com/init-common-addrbook/initiation-2/addrbook.json) | </Tab> </Tabs> ## Network Parameters <Tabs> <Tab title="Mainnet (interwoven-1)"> | Item | Value | | ------------------------ | ----------- | | Minimum Gas Prices | 0.015uinit | | Block Gas Limit | 200,000,000 | | Staking Unbonding Period | 21 days | | Governance Voting Period | 7 days | </Tab> <Tab title="Testnet (initiation-2)"> | Item | Value | | ------------------------ | ----------- | | Minimum Gas Prices | 0.015uinit | | Block Gas Limit | 200,000,000 | | Staking Unbonding Period | 7 days | | Governance Voting Period | 2 days | </Tab> </Tabs> ## Endpoints You can find a number of RPCs, APIs, and gRPCs for the network in the [Initia Registry](https://github.com/initia-labs/initia-registry) repository. * [Mainnet (interwoven-1)](https://github.com/initia-labs/initia-registry/blob/main/mainnets/initia/chain.json) * [Testnet (initiation-2)](https://github.com/initia-labs/initia-registry/blob/main/testnets/initia/chain.json) ## Explorers <Tabs> <Tab title="Mainnet (interwoven-1)"> * [InitiaScan](https://scan.initia.xyz) </Tab> <Tab title="Testnet (initiation-2)"> * [InitiaScan](https://scan.testnet.initia.xyz) </Tab> </Tabs> ## VIP Parameters <Tabs> <Tab title="Mainnet (interwoven-1)"> | Category | Parameter | Mainnet | Explanation | | ------------------ | ----------------------------- | ------------------------ | ------------------------------------------------------------------------------------------------------------------------------- | | VIP | `stage_interval` | 2 weeks | Length of one stage (frequency of esINIT distribution) | | VIP | `vesting_period` | 26 stages | Total vesting period for esINIT | | VIP | `minimum_lock_staking_period` | 26 weeks | Minimum lock period for an esINIT lock-staking position ("zapping") | | VIP | `challenge_period` | 3 days | Window during which a score-snapshot challenge may be submitted | | VIP | `min_score_ratio` | 0.5 | Multiplier applied to the previous stage's score to determine the minimum score required to fully vest esINIT in the next stage | | VIP | `pool_split_ratio` | 0.2 | Portion of total rewards directed to the balance pool | | VIP | `minimum_eligible_tvl` | 0 | Minimum INIT TVL required for whitelisting and eligibility for stage rewards | | VIP | `maximum_weight_ratio` | 0.4 | Maximum share of gauge votes from a single L2, relative to total votes, counted for esINIT distribution | | VIP (Operator) | `max_commission_rate` | 0.25 | Maximum esINIT commission rate a rollup can set | | VIP (TVL manager) | `snapshot_interval` | 1 hour | Frequency of TVL snapshots for all L2s | | VIP (Lock Staking) | `min_lock_period` | 30 days | Minimum lock period for any lock-staking position | | VIP (Lock Staking) | `max_lock_period` | 2 years | Maximum lock period for all lock-staking positions (including esINIT positions) | | VIP (Lock Staking) | `max_delegation_slot` | 60 | Maximum number of unique lock-staking positions per user | | VIP (gauge vote) | `cycle_start_time` | Same as stage start time | Start time of the first gauge-vote cycle | | VIP (gauge vote) | `cycle_interval` | 2 weeks | Length of a gauge-vote cycle | | VIP (gauge vote) | `voting_period` | 13 days | Duration of the voting window within a cycle | | VIP (gauge vote) | `max_lock_period_multiplier` | 4 | Voting-power multiplier for the maximum lock duration | | VIP (gauge vote) | `min_lock_period_multiplier` | 1 | Voting-power multiplier for the minimum lock duration | | VIP (gauge vote) | `pair_multipliers` | 1 for all pools | Voting-power multiplier applied to each enshrined liquidity pair | </Tab> <Tab title="Testnet (initiation-2)"> | Category | Parameter | Testnet | Explanation | | ------------------ | ----------------------------- | ------------------------ | ------------------------------------------------------------------------------------------------------------------------------- | | VIP | `stage_interval` | 1 day | Length of one stage (frequency of esINIT distribution) | | VIP | `vesting_period` | 26 stages | Total vesting period for esINIT | | VIP | `minimum_lock_staking_period` | 1 day | Minimum lock period for an esINIT lock-staking position ("zapping") | | VIP | `challenge_period` | none | Window during which a score-snapshot challenge may be submitted | | VIP | `min_score_ratio` | 0.5 | Multiplier applied to the previous stage's score to determine the minimum score required to fully vest esINIT in the next stage | | VIP | `pool_split_ratio` | 0.5 | Portion of total rewards directed to the balance pool | | VIP | `minimum_eligible_tvl` | 0 | Minimum INIT TVL required for whitelisting and eligibility for stage rewards | | VIP | `maximum_weight_ratio` | 1 | Maximum share of gauge votes from a single L2, relative to total votes, counted for esINIT distribution | | VIP (Operator) | `max_commission_rate` | none | Maximum esINIT commission rate a rollup can set | | VIP (TVL manager) | `snapshot_interval` | 4 hours | Frequency of TVL snapshots for all L2s | | VIP (Lock Staking) | `min_lock_period` | 12 hours | Minimum lock period for any lock-staking position | | VIP (Lock Staking) | `max_lock_period` | 6 days | Maximum lock period for all lock-staking positions (including esINIT positions) | | VIP (Lock Staking) | `max_delegation_slot` | 50 | Maximum number of unique lock-staking positions per user | | VIP (gauge vote) | `cycle_start_time` | Same as stage start time | Start time of the first gauge-vote cycle | | VIP (gauge vote) | `cycle_interval` | 1 day | Length of a gauge-vote cycle | | VIP (gauge vote) | `voting_period` | 23 hours | Duration of the voting window within a cycle | | VIP (gauge vote) | `max_lock_period_multiplier` | 4 | Voting-power multiplier for the maximum lock duration | | VIP (gauge vote) | `min_lock_period_multiplier` | 1 | Voting-power multiplier for the minimum lock duration | | VIP (gauge vote) | `pair_multipliers` | 1 for all pairs | Voting-power multiplier applied to each enshrined liquidity pair | </Tab> </Tabs> # Audits Source: https://docs.initia.xyz/resources/security/audits You can find the audit reports for all of Initia's codebase in our [audits repository](https://github.com/initia-labs/audits). # Getting Started Source: https://docs.initia.xyz/user-guides/wallet/auto-signing/getting-started What is a Ghost Wallet? A Ghost Wallet is a temporary, delegated wallet that acts on behalf of your main wallet for a limited time or scope. It allows auto-signing of approved transactions, such as swaps, in-game actions, or staking, without asking you to confirm every step. Think of it as granting a short-term assistant key to your wallet. You stay the owner; the Ghost Wallet only performs what you explicitly allow. ### Key Benefits * **No More Pop-Ups**: Remove repetitive signature windows for smoother gameplay, trading, or other on-chain actions. * **Full Control**: You decide the duration of delegation. Adjusting the scope of granted actions will be implemented in the future. * **Chain-Agnostic**: Works across supported Initia appchains and supported VMs. * **Secure Delegation**: Built with Privy, ensuring cryptographic-grade key management and privacy. # Introduction Source: https://docs.initia.xyz/user-guides/wallet/auto-signing/introduction Auto-signing and Ghost Wallets are Initia’s next evolution in blockchain user experience, designed to make on-chain actions feel as smooth as browsing the internet. Ghost Wallets function as temporary delegated wallets that allow for auto-signing, where approved on-chain transactions run on behalf of your main wallet. Ghost Wallets use Privy's embedded wallet infrastructure to eliminate repetitive signature pop-ups. You maintain full custody of your main wallet, private keys, and assets while enjoying faster, smoother on-chain interactions across all Initia appchains and supported apps. <Note> For guides on how to integrate with Ghost Wallets, please refer to the [InterwovenKit section](/interwovenkit) of the documentation. </Note> # Enabling Auto-signing Source: https://docs.initia.xyz/user-guides/wallet/auto-signing/using-auto-signing/enabling-auto-signing <img alt="ghost wallet.png" /> On an application that supports auto-signing: 1. Click "Connect Wallet" and select your wallet of choice. 2. Activate auto-signing from the app. 3. This will open a permission window with the following information and options: * Requested by: The name and logo of the chain requesting to enable auto-signing * Auto-signing duration: How long auto-signing will be active Approve and confirm using your main wallet signature. Enjoy uninterrupted on-chain use. All transactions within that scope will be auto-signed. # Revoking Auto-signing Source: https://docs.initia.xyz/user-guides/wallet/auto-signing/using-auto-signing/revoking-auto-signing On a wallet with auto-signing enabled: 1. Open the Initia Wallet Settings in the top right corner and click "Manage Auto-signing". 2. Review all active sessions by chain name, logo, and how long they will remain active. 3. To revoke an auto-signing session, click the "Revoke" button next to the session. 4. You'll be prompted to sign with your main wallet to confirm the revocation.
프로젝트로 돌아가기