0xjuaan / contracts

smart contracts

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Supermigrate

Deployments

If you encounter this error:

Error: "./shell/deploy.base.sh: Permission denied"

Run this command:

chmod +x shell/deploy.*.sh

Deploy

sh shell/deploy.sh --network=<NETWORK>

where can be anything between ["base", "scroll", "mode", "op"]

Help in deployment

sh shell/deploy.sh ---help

Adding new network

  1. Duplicate any deploy.NETWORK.sh file and name it deploy.DESIRED_NETWORK.sh
  2. Add two enviornment variables to .env and .env.example file
DESIRED_NETWORKSCAN_API_KEY=
DESIRED_NETWORK_RPC_URL=
  1. In the file deploy.DESIRED_NETWORK.sh file update the following variables
export ETHERSCAN_API_KEY=$DESIRED_NETWORKSCAN_API_KEY
export RPC_URL=$DESIRED_NETWORK_RPC_URL
  1. Add the network to array of allowed_networks in file deploy.sh.
  2. Run the command
sh shell/deploy.sh --network=DESIRED_NETWORK

About

smart contracts


Languages

Language:Solidity 95.3%Language:Shell 4.7%