Deploy using Foundry
Foundry is a Solidity framework for deploying smart contracts, built by Paradigm and written in Rust to be blazingly fast.
Before you Begin
Check if you are using the right network configuration
Have enough test tokens in your wallet
Foundry Setup
Simply follow their "Getting Started" documentation to install and run Foundry, then follow their "Projects" documentation to create a new project.
Run the following commands in your terminal:
curl -L https://foundry.paradigm.xyz | bash
foundryupSetup your project
To start a new project with Foundry, use forge init:
forge init plumeLet's install the OpenZeppelin dependency required for our sample smart contract.
forge install openzeppelin/openzeppelin-contractsThen, compile the project using forge build:
Deploy your Contract
Follow the instructions on in the "Deploying" documentation and set your PLUME_RPC_URL environment variable similar to the ETH RPC URL. The below command will deploy the sample smart contract provided above on Plume Testnet for instance (switch the RPC and verifier URL to Mainnet to deploy on Plume Mainnet).
The below command will verify the contract and deploy it simultaneously.
Make sure to replace the details in the <contract_file>:<contract_name> with your contract details.
Sample Output
You can view the deployed contract on the Plume Testnet Explorer.
Last updated