Skip to content

Repository for deploying Operator.sol to various EVM-based blockchains

License

Notifications You must be signed in to change notification settings

translucent-link/operator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

operator

Repository for deploying Operator.sol to various EVM-based blockchains

Environment Variables

You need to setup a .env file in this folder to support the indidual scripts.

WEB3_INFURA_PROJECT_ID=...
ETHERSCAN_TOKEN=...
POLYGONSCAN_TOKEN=...

Before you start

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>

Step 1. Deploy

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

Step 2. Verify

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

Step 3. Permissions

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

Testing your node with Get > Uint256

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

Support & Help

Feel free to open a Github Issue or come find us in the Translucent Discord.

About

Repository for deploying Operator.sol to various EVM-based blockchains

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages