Plume 백서

Plume

원문

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

able(msg.sender) ERC721("Rolex Yacht-Master 40", "") {} function mint() public onlyOwner returns (uint256) { if (_minted) { revert NFTAlreadyMinted(); } _safeMint(owner(), 0); _minted = true; return 0; } } ``` {% endcode %} </details> Compile the contract(s) using the below command: ```sh npx hardhat compile ``` Let's create a ignition module to deploy the contract(s). Create a file as `<Your-Contract>.js` at `ignition/modules/<Your-Contract>.js` . Here's a sample module we used with the above sample contract. {% code title="RolexYachtMaster40.js" overflow="wrap" %} ```javascript const { buildModule } = require("@nomicfoundation/hardhat-ignition/modules"); module.exports = buildModule("DeployRolexYachtMaster40", (m) => { const RolexYachtMaster40 = m.contract("RolexYachtMaster40", [ /** constructor args */ ]); return { RolexYachtMaster40 }; }); ``` {% endcode %} Deploy your contract(s) to the Plume Testnet using the following command: ``` npx hardhat ignition deploy ./ignition/modules/<Your-Contract>.js --network plume-testnet ``` {% hint style="info" %} To verify your contract while deploying, add a `--verify` flag in the command or go to [Verify using Hardhat](/plume/developers/how-to-guides/how-to-verify-smart-contracts/verify-using-hardhat) to learn more about post-verification steps. {% endhint %} ### Sample Output ``` √ Confirm deploy to network plume-testnet (98867)? ... yes Hardhat Ignition 🚀 Deploying [ DeployRolexYachtMaster40 ] Batch #1 Executed DeployRolexYachtMaster40#RolexYachtMaster40 [ DeployRolexYachtMaster40 ] successfully deployed 🚀 Deployed Addresses DeployRolexYachtMaster40#RolexYachtMaster40 - 0x0c14F7df7f2B0c6F55851610849BA09f97732C9B ``` You can view the deployed contract on the [Plume Testnet Explorer](http://testnet-explorer.plume.org). # How to Verify Smart Contracts {% content-ref url="/pages/kEOFkzeDP9DSVcPugURu" %} [Verify using Foundry](/plume/developers/how-to-guides/how-to-verify-smart-contracts/verify-using-foundry) {% endcontent-ref %} {% content-ref url="/pages/8vX9P2jIhDWRSCO6j2PJ" %} [Verify using Hardhat](/plume/developers/how-to-guides/how-to-verify-smart-contracts/verify-using-hardhat) {% endcontent-ref %} # Verify using Foundry ## Verify your Contract To verify your smart contract that is already deployed, refer the instructions in [Blockscout's Foundry Contract Verification](https://docs.blockscout.com/devs/verification/foundry-verification) page.&#x20; Run the following command to verify on **Plume Testnet** for instance (switch the RPC and verifier URL to Mainnet to deploy on Plume Mainnet): ```sh export PLUME_RPC_URL=https://testnet-rpc.plume.org export VERIFIER_URL=https://testnet-explorer.plume.org/api/ export CONTRACT_ADDRESS=<your_contract_address> export CONTRACT_PATH=<contract_file>:<contract_name> forge verify-contract $CONTRACT_ADDRESS $CONTRACT_PATH \ --rpc-url $PLUME_RPC_URL \ --verifier blockscout \ --verifier-url $VERIFIER_URL ``` {% hint style="warning" %} Make sure to replace the details in the `<contract address>` and `<contract_file>:<contract_name>` with your contract details. {% endhint %} ### Sample Output ```sh Start verifying contract `0x4b98e3767DB95C5D30834E1261Ea4Caa96081160` deployed on 98867 Submitting verification for [src/RolexYachtMaster40.sol:RolexYachtMaster40] 0x4b98e3767DB95C5D30834E1261Ea4Caa96081160. Submitted contract for verification: Response: `OK` GUID: `4b98e3767db95c5d30834e1261ea4caa9608116067b396ba` URL: https://testnet-explorer.plume.org/address/0x4b98e3767db95c5d30834e1261ea4caa96081160 ``` # Verify using Hardhat ## Verify your Contract To verify your smart contract(s) that are already deployed, refer the instructions in [Blockscout's Hardhat Contract Verification](https://docs.blockscout.com/devs/verification/hardhat-verification-plugin#verify) page.&#x20; Run the following command on **Plume Testnet** for instance (switch the RPC and verifier URL to Mainnet to deploy on Plume Mainnet): ```sh npx hardhat verify --network plume-testnet <your-contract-address> ``` {% hint style="warning" %} Make sure to replace the details in the `<your-contract-address>` with your contract address. {% endhint %} ### Sample Output ``` Successfully submitted source code for contract contracts/RolexYachtMaster40.sol:Lock at 0x0c14F7df7f2B0c6F55851610849BA09f97732C9B for verification on the block explorer. Waiting for verification result... Successfully verified contract Lock on the block explorer. https://testnet-explorer.plume.org/address/0x0c14F7df7f2B0c6F55851610849BA09f97732C9B#code ``` # How to Run a Node This guide provides a step-by-step walkthrough for running a Plume Mainnet or Testnet node using Docker Compose. ## Hardware Requirements Please visit the [Minimum hardware configuration](https://docs.arbitrum.io/run-arbitrum-node/run-full-node#minimum-hardware-configuration) for checking the hardware requirements for running a orbit chain node. ## Prerequisites * [Docker Engine](https://docs.docker.com/engine/install) * [Docker Compose](https://docs.docker.com/compose/install) ## Configuration ### Set up your environment Create a directory for your node and enter it: ```sh mkdir plume-node cd plume-node ``` ### Initialize the configuration {% tabs %} {% tab title="Plume Mainnet" %} Create your `plume-mainnet.yaml` file with the below configuration. #### **Docker Compose Snippet** <pre class="language-yaml" data-title="plume-mainnet.yaml" data-line-numbers><code class="lang-yaml">services: plume-mainnet: image: offchainlabs/nitro-node:v3.9.5-66e42c4-validator container_name: plume-mainnet restart: unless-stopped ports: - "8547:8547" - "6070:6070" command: - --chain.id=98866 - --chain.name=conduit-orbit-deployer - --http.addr=0.0.0.0 - --http.corsdomain=* - --http.vhosts=* - --ws.expose-all - --ws.rpcprefix=/ - --ws.port=8547 - --ws.addr=0.0.0.0 - --ws.origins=* - --http.api=net,web3,eth,txpool,debug,admin,arb,arbdebug,arbtrace - --ws.api=net,web3,eth,txpool,debug - --chain.info-json=[{"chain-id":98866,"parent-chain-id":1,"chain-name":"conduit-orbit-deployer","chain-config":{"chainId":98866,"homesteadBlock":0,"daoForkBlock":null,"daoForkSupport":true,"eip150Block":0,"eip150Hash":"0x0000000000000000000000000000000000000000000000000000000000000000","eip155Block":0,"eip158Block":0,"byzantiumBlock":0,"constantinopleBlock":0,"petersburgBlock":0,"istanbulBlock":0,"muirGlacierBlock":0,"berlinBlock":0,"londonBlock":0,"clique":{"period":0,"epoch":0},"arbitrum":{"EnableArbOS":true,"AllowDebugPrecompiles":false,"DataAvailabilityCommittee":true,"InitialArbOSVersion":32,"InitialChainOwner":"0x5Ec32984332eaB190cA431545664320259D755d8","GenesisBlockNum":0}},"rollup":{"bridge":"0x35381f63091926750F43b2A7401B083263aDEF83","inbox":"0x943fc691242291B74B105e8D19bd9E5DC2fcBa1D","sequencer-inbox":"0x85eC1b9138a8b9659A51e2b51bb0861901040b59","rollup":"0x4eD3F488a5a4417839BbC39712EB76D8Aaee6eE8","validator-wallet-creator":"0x0A5eC2286bB15893d5b8f320aAbc823B2186BA09","deployed-at":21887008,"stake-token":"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"}}] - --node.data-availability.enable=true - --node.data-availability.rest-aggregator.enable=true - --node.data-availability.rest-aggregator.urls=https://das-plume-mainnet-1.t.conduit.xyz <strong> - --node.data-availability.parent-chain-node-url=&#x3C;ETH_RPC_URL> </strong> - --execution.forwarding-target=https://rpc.plume.org - --execution.caching.archive <strong> - --parent-chain.connection.url=&#x3C;ETH_RPC_URL> </strong><strong> - --parent-chain.blob-client.beacon-url=&#x3C;ETH_BEACON_RPC_URL> </strong> - --node.staker.enable=false - --node.feed.input.url=wss://relay-plume-mainnet-1.t.conduit.xyz - --node.sequencer=false - --execution.rpc.tx-fee-cap=100 - --execution.rpc.gas-cap=500000000 - --metrics - --metrics-server.addr=0.0.0.0 - --metrics-server.port=6070 - --metrics-server.update-interval=5s </code></pre> {% hint style="warning" %} Replace `ETH_RPC_URL` and `ETH_BEACON_RPC_URL` with your RPC URLs. * ETH\_RPC\_URL = execution layer client like Geth, Erigon, Nethermind, or Reth * ETH\_BEACON\_RPC\_URL = consensus layer client like Lighthouse, Prysm, Nimbus, or Teku {% endhint %} {% endtab %} {% tab title="Plume Testnet" %} Create your `plume-testnet.yaml` file with the below configuration. #### **Docker Compose Snippet** <pre class="language-yaml" data-title="plume-testnet.yaml" data-line-numbers><code class="lang-yaml">services: plume-testnet: image: offchainlabs/nitro-node:v3.9.5-66e42c4-validator container_name: plume-testnet restart: unless-stopped ports: - "8547:8547" - "6070:6070" command: - --chain.id=98867 - --chain.name=conduit-orbit-deployer - --http.addr=0.0.0.0 - --http.corsdomain=* - --http.vhosts=* - --ws.expose-all - --ws.rpcprefix=/ - --ws.port=8547 - --ws.addr=0.0.0.0 - --ws.origins=* - --http.api=net,web3,eth,txpool,debug,admin,arb,arbdebug,arbtrace - --ws.api=net,web3,eth,txpool,debug - --chain.info-json=[{"chain-id":98867,"parent-chain-id":11155111,"chain-name":"conduit-orbit-deployer","chain-config":{"chainId":98867,"homesteadBlock":0,"daoForkBlock":null,"daoForkSupport":true,"eip150Block":0,"eip150Hash":"0x0000000000000000000000000000000000000000000000000000000000000000","eip155Block":0,"eip158Block":0,"byzantiumBlock":0,"constantinopleBlock":0,"petersburgBlock":0,"istanbulBlock":0,"muirGlacierBlock":0,"berlinBlock":0,"londonBlock":0,"clique":{"period":0,"epoch":0},"arbitrum":{"EnableArbOS":true,"AllowDebugPrecompiles":false,"DataAvailabilityCommittee":true,"InitialArbOSVersion":32,"InitialChainOwner":"0x09a24DD120676EA4034cD47BfA4432a6a87A8a42","GenesisBlockNum":0}},"rollup":{"bridge":"0xC55b89c17d7a35877FA4ea818fea2a70d5765f1c","inbox":"0xb48cdff890199f5De31514024B95F8664F8Af222","sequencer-inbox":"0xbCa991f1831bE1F1E7e5576d5F84A645e70F3E4d","rollup":"0x3B37BeD1c38c6283A56E60340FE813C0BBA031C3","validator-wallet-creator":"0x684A827456373a0C0379B1C82BA31Ee5E4F88F62","deployed-at":7889627,"stake-token":"0x7b79995e5f793A07Bc00c21412e50Ecae098E7f9"}}] - --node.data-availability.enable=true - --node.data-availability.rest-aggregator.enable=true - --node.data-availability.rest-aggregator.urls=https://das-plume-testnet-1.t.conduit.xyz <strong> - --node.data-availability.parent-chain-node-url=&#x3C;ETH_SEPOLIA_RPC_URL> </strong> - --execution.forwarding-target=https://testnet-rpc.plume.org - --execution.caching.archive <strong> - --parent-chain.connection.url=&#x3C;ETH_SEPOLIA_RPC_URL> </strong><strong> - --parent-chain.blob-client.beacon-url=&#x3C;ETH_SEPOLIA_BEACON_RPC_URL> </strong> - --node.staker.enable=false - --node.feed.input.url=wss://relay-plume-testnet-1.t.conduit.xyz - --node.sequencer=false - --execution.rpc.tx-fee-cap=100 - --execution.rpc.gas-cap=500000000 - --metrics - --metrics-server.addr=0.0.0.0 - --metrics-server.port=6070 - --metrics-server.update-interval=5s </code></pre> {% hint style="warning" %} Replace `ETH_SEPOLIA_RPC_URL` and `ETH_SEPOLIA_BEACON_RPC_URL` with your RPC URLs. * ETH\_SEPOLIA\_RPC\_URL = execution layer client like Geth, Erigon, Nethermind, or Reth * ETH\_SEPOLIA\_BEACON\_RPC\_URL = consensus layer client like Lighthouse, Prysm, Nimbus, or Teku {% endhint %} {% endtab %} {% endtabs %} ### Start the Node Run the following command to start your Plume node: {% tabs %} {% tab title="Plume Mainnet" %} ```sh docker-compose -f plume-mainnet.yaml up -d ``` {% endtab %} {% tab title="Plume Testnet" %} ```sh docker-compose -f plume-testnet.yaml up -d ``` {% endtab %} {% endtabs %} ### Verify Operations Check the logs to ensure the node is syncing successfully: {% tabs %} {% tab title="Plume Mainnet" %} ```bash docker logs plume-mainnet ``` {% endtab %} {% tab title="Plume Testnet" %} ```bash docker logs plume-testnet ``` {% endtab %} {% endtabs %} ## Node Snapshot To speed up syncing your node, you can use the latest Plume chain snapshots instead of syncing from genesis. Download and extract the snapshot from the link below before starting your node: <table data-header-hidden data-first-column-sticky><thead><tr><th></th><th></th><th data-hidden></th></tr></thead><tbody><tr><td>Plume Mainnet</td><td><a href="https://storage.googleapis.com/conduit-networks-snapshots/plume-mainnet-1/latest.tar">Snapshot</a></td><td></td></tr><tr><td>Plume Testnet</td><td><a href="https://storage.googleapis.com/conduit-network-snapshots-plume/plume-testnet-1/latest.tar">Snapshot</a></td><td></td></tr></tbody></table> This provides a fast, reliable starting point and ensures your node is aligned with the current Plume chain state. *** ## Troubleshooting #### Running on MacOS (Apple Silicon)/Linux If you are running this setup on an Apple Silicon (M1/M2/M3)/Linux machine, Docker usually handles emulation automatically. However, if you encounter platform errors, you can force the platform by adding the following line to the `plume-mainnet` service in your YAML file: ```yaml platform: linux/amd64 ``` # How to Use NightFall Nightfall is an L3 privacy blockchain originally incubated by EY and the Ethereum community, designed to bring enterprise-grade privacy to tokenized assets. <figure><img src="https://4283780171-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcaO8bqNQ5CJfDyLKmEZF%2Fuploads%2FdpEefCuo14ADlhfsbtxo%2Fimage.png?alt=media&amp;token=10aa8077-e2ec-4650-893f-12bb7faf0b18" alt=""><figcaption></figcaption></figure> **Nightfall\_4 (NF\_4)** uses a Zero-Knowledge Proof (ZKP)-based protocol for private transfers of ERC-standard tokens: * **ERC-20**: fungible tokens * **ERC-721**: NFTs * **ERC-1155**: multi-token standard * **ERC-3525**: semi-fungible tokens NF\_4 incorporates a **Layer-2 ZK-ZK rollup**, allowing transactions to be grouped into succinct proofs. Key properties: * **Scalable:** private transfers typically cost \~6,000 gas * **Fast finality:** finality is aligned with the underlying blockchain (EVM or SVM) * **Rust-based:** implementation written in Rust, while preserving NF\_3’s API for compatibility In order to run Nightfall you must run two applications: a `client` and a `proposer`. \ The purpose of the `proposer` is to make Layer 2 blocks. It makes an endpoint available to `clients`. Clients are the application that normal users will employ to make transactions that are hidden by ZKP. Full instructions for How to Run a Proposer on Plume Testnet can be found [here](https://github.com/EYBlockchain/nightfall_4_CE/blob/master/doc/Plume_Testnet_Docs/plume_testnet_proposer_playbook.md).\ \ `clients` are the application that normal users will employ to make transactions that are hidden by ZKP. the user can intitiate three types of transaction via the `client`: Deposit, Transfer, and Withdraw. Full instructions for How to Run a Client Application on Plume Testnet can be found [here](https://github.com/EYBlockchain/nightfall_4_CE/blob/master/doc/Plume_Testnet_Docs/plume_testnet_client_playbook.md). # Tools & Services {% content-ref url="/pages/CW0gCEjl9FO2bWzp4rfK" %} [Account Abstraction](/plume/developers/tools-and-services/account-abstraction) {% endcontent-ref %} {% content-ref url="/pages/SerAHhprCXdygLgr9fhc" %} [Bridges](/plume/developers/tools-and-services/bridges) {% endcontent-ref %} {% content-ref url="/pages/QyP6MP9BXEYJxemcykBC" %} [Oracles](/plume/developers/tools-and-services/oracles) {% endcontent-ref %} {% content-ref url="/pages/qFIjAthl1TiPpaGolF1W" %} [Data Indexers](/plume/developers/tools-and-services/data-indexers) {% endcontent-ref %} {% content-ref url="/pages/iZ8oL73L962fqZ4rV2wW" %} [Node/RPC Providers](/plume/developers/tools-and-services/node-rpc-providers) {% endcontent-ref %} {% content-ref url="/pages/nIrb8IPeUdV4E2yuOsr3" %} [OnRamps](/plume/developers/tools-and-services/onramps) {% endcontent-ref %} {% content-ref url="/pages/KVtcmWKV8d6Q0pFFn1KF" %} [Analytics](/plume/developers/tools-and-services/analytics) {% endcontent-ref %} {% content-ref url="/pages/Zhoax8NDOkA96VLn0LmH" %} [Custodians & Multisigs](/plume/developers/tools-and-services/custodians-and-multisigs) {% endcontent-ref %} {% content-ref url="/pages/CUkluCMg1jbOzMJKJXZM" %} [Misc Tools](/plume/developers/tools-and-services/misc-tools) {% endcontent-ref %} # Account Abstraction Account Abstraction available on Plume Mainnet and Testnet ## [Conduit](https://conduit.xyz/) The Conduit Bundler is a component of Conduit's Account Abstraction solution that streamlines complex blockchain operations via ERC-4337 UserOperations, enabling one-click transactions by bundling multi-step actions into a single, user-friendly interaction <details> <summary>Quick Links</summary> **Docs:** <https://docs.conduit.xyz/account-abstraction/conduit-bundler> Plume Bundler URL: <https://bundler.plume.org> </details> ### Smart Contracts Here are smart contracts for Plume Mainnet <table><thead><tr><th width="221.0234375">Contract Name</th><th>Contract Address</th></tr></thead><tbody><tr><td>Entry Point</td><td>0x0000000071727De22E5E9d8BAf0edAc6f37da032</td></tr><tr><td>Safe 4337 Module</td><td>0x75cf11467937ce3F2f357CE24ffc3DBF8fD5c226</td></tr><tr><td>Safe Module Setup</td><td>0x2dd68b007B46fBe91B9A7c3EDa5A7a1063cB5b47</td></tr><tr><td>Simple Account Factory</td><td>0x0ACDDd4868E24aad6A16573b416133F58795A916</td></tr><tr><td>Test Counter</td><td>0x475d5a5B128c1846b86493b357e75E27201447B7</td></tr></tbody></table> ## [Pimlico](http://pimlico.io/) Pimlico is the world's most advanced ERC-4337 account abstraction infrastructure platform. Pimlico provides a suite of tools and services to help you build, deploy, and manage smart accounts on Ethereum and other EVM-compatible chains. <details> <summary>Quick Links</summary> **Docs:** <https://docs.pimlico.io/> **Dashboard:** <https://dashboard.pimlico.io/> </details> # Bridges Bridges that support Plume Mainnet and Testnet ## Plume Mainnet Visit the Plume Bridge Page to see all supported bridges. {% embed url="<https://portal.plume.org/bridge>" fullWidth="false" %} ### [Arbitrum Bridge](https://portal.arbitrum.io/bridge?sourceChain=ethereum\&destinationChain=plume-mainnet\&tab=bridge\&sanitized=true) The Arbitrum native bridge supports bridging of PLUME and WETH between Plume Mainnet and Ethereum Mainnet. {% embed url="<https://bridge.arbitrum.io/?destinationChain=plume-mainnet&sourceChain=ethereum&tab=bridge>" %} ### [pUSD Bridge](https://pusd.plume.org/) The pUSD Bridge supports bridging of USDC.e and pUSD betweeen Ethereum and Plume Mainnet. {% embed url="<https://pusd.plume.org>" %} ### [Stargate](https://stargate.finance/bridge) Stargate (powered by LayerZero) supports bridging of USDC.e and USDT between Plume Mainnet and 100+ Stargate-enabled chains. {% embed url="<https://stargate.finance/bridge?dstChain=plumephoenix&dstToken=0x78adD880A697070c1e765Ac44D65323a0DcCE913&srcChain=ethereum&srcToken=0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48>" %} ### [LayerZero](https://layerzero.network/) LayerZero is the omnichain infrastructure that powers bridges like Stargate. <table><thead><tr><th width="189.13671875">DVN Name</th><th>Contract Deployment Address</th></tr></thead><tbody><tr><td>LayerZero Labs</td><td><a href="https://explorer.plume.org/address/0x4208d6e27538189bb48e603d6123a94b8abe0a0b">0x4208d6e27538189bb48e603d6123a94b8abe0a0b</a></td></tr></tbody></table> The Plume Mainnet has **EID 30370** for its [LayerZero V2 Endpoint](https://docs.layerzero.network/v2/deployments/deployed-contracts?chains=plumephoenix). The V2 contract addresses are: <table data-full-width="false"><thead><tr><th width="189.58984375">Contract Name</th><th>Contract Deployment Address</th></tr></thead><tbody><tr><td>EndpointV2</td><td><a href="https://explorer.plume.org/address/0xC1b15d3B262bEeC0e3565C11C9e0F6134BdaCB36">0xC1b15d3B262bEeC0e3565C11C9e0F6134BdaCB36</a></td></tr><tr><td>SendUln302</td><td><a href="https://explorer.plume.or
프로젝트로 돌아가기