Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rainlanguage/rain-deploy-scripts
https://github.com/rainlanguage/rain-deploy-scripts
Last synced: 17 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/rainlanguage/rain-deploy-scripts
- Owner: rainlanguage
- Created: 2023-07-06T20:41:45.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-07-07T17:19:57.000Z (over 1 year ago)
- Last Synced: 2024-04-14T10:29:15.339Z (10 months ago)
- Language: TypeScript
- Size: 226 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Deploying Rain Contracts
Set up the environment by creating a .env file and populating it with
```sh
DEPLOYMENT_KEY=ALCHEMY_KEY_MUMBAI=
ALCHEMY_KEY_POLYGON=
ALCHEMY_KEY_SEPOLIA=
ALCHEMY_KEY_GORELI=POLYGONSCAN_API_KEY=
ETHERSCAN_API_KEY=
AVALANCHE_KEY=
```Once you have ennvironment setup, follow the steps :
#### Deploying Contracts
The script clones the contract deployed on one network to another.
To deploy contracts **run** the following command in shell from the **root of the project**.To deploy contract to **Avalanche Mainnet** run :
```sh
ts-node scripts/1-pilot/deployContracts.ts --from mumbai --to avalanche
```To deploy contract to **Avalanche Testnet** run :
```sh
ts-node scripts/1-pilot/deployContracts.ts --from mumbai --to fuji
```To deploy contract to **Goerli Testnet** run :
```sh
ts-node scripts/1-pilot/deployContracts.ts --from mumbai --to goerli
```Where arguments for the script are:
- `--from, -f ` : Network name of originating network. Any of ["goerli","fuji","mumbai","sepolia","polygon","avalanche"]. Usally this will be a test network.
- `--to, -t ` : Network name of target network where new contract is to be deployed.Any of ["goerli","fuji","mumbai","sepolia","polygon","avalanche"]. Usally this will be a main network for a chain.Wait for all the contracts to be deployed and verified.