- Foundry
Clone project and install dependencies.
# clone the repository
git clone https://github.com/SocketDotTech/socketDL-examples
# move to repository folder
cd socketDL-examples
# install forge dependencies
forge install
Tests are run using the Forge tool of Foundry.
forge test
Deployments use Hardhat
Local deployments:
- Copy
.env.example
and add the values - Run command to load env:
source .env
- To deploy
forge create --rpc-url $ETHEREUM_RPC_URL --private-key $PRIVATE_KEY --etherscan-api-key $ETHERSCAN_API_KEY src/Counter.sol:Counter --constructor-args <SOCKET_ADDRESS>