Repository for deploying Operator.sol to various EVM-based blockchains
You need to setup a .env file in this folder to support the indidual scripts.
WEB3_INFURA_PROJECT_ID=...
ETHERSCAN_TOKEN=...
POLYGONSCAN_TOKEN=...
To see a list support networks
brownie networks list
To add a new network
brownie networks add Arbitrum arbitrum-rinkeby host=https://rinkeby.arbitrum.io/rpc chainid=421611 explorer=https://api-testnet.arbiscan.io/api
or
brownie networks add Arbitrum arbitrum-goerli host=https://goerli-rollup.arbitrum.io/rpc chainid=421613 explorer=https://goerli-rollup-explorer.arbitrum.io
or
brownie networks add Optimism optimism-main host=https://mainnet.optimism.io chainid=10 explorer=https://api-optimistic.etherscan.io/api
You need to setup a "deployer" account
brownie accounts new deployer
<you'll now be asked for the private key>
To deploy run:
brownie run scripts/mumbai/deploy.py --network polygon-test
brownie run scripts/arbitrum/deploy.py --network arbitrum-main
brownie run scripts/arbitrum-rinkeby/deploy.py --network arbitrum-rinkeby
brownie run scripts/arbitrum-goerli/deploy.py --network arbitrum-goerli
brownie run scripts/optimism/deploy.py --network optimism-main
To verify the contract:
brownie run scripts/mumbai/verify.py --network polygon-test
brownie run scripts/arbitrum/verify.py --network arbitrum-main
brownie run scripts/arbitrum-rinkeby/verify.py --network arbitrum-rinkeby
brownie run scripts/optimism/verify.py --network optimism-main
To grant your node access to submit transactions through this Oracle:
brownie run scripts/mumbai/permissions.py --network polygon-test
brownie run scripts/arbitrum/permissions.py --network arbitrum-main
brownie run scripts/arbitrum-rinkeby/permissions.py --network arbitrum-rinkeby
Assuming you've got a Get > Uint256 job deployed to the node you can run the test contract and script to test the job execution.
First deploy the test client contract:
brownie run scripts/mumbai/test_deploy.py --network polygon-test
Then customise the test_run.py script to match your environment, before running run it:
brownie run scripts/mumbai/test_run.py --network polygon-test
Feel free to open a Github Issue or come find us in the Translucent Discord.