@kleros/vea-contracts v0.6.0
@kleros/vea-contracts
Smart contracts for Vea.
Deployed Addresses
Refresh the list of deployed contracts by running ./scripts/generateDeploymentsMarkdown.sh.
Current version
Sepolia
Arbitrum Sepolia
Chiado
- VeaInboxGnosisToArbDevnet
- VeaInboxGnosisToArbTestnet
- VeaOutboxArbToGnosisDevnet
- VeaOutboxArbToGnosisTestnet
Getting Started
Install the Dependencies
yarn installRun Tests
yarn testCompile the Contracts
yarn buildRun Linter on Files
yarn checkDeployment
NOTICE: the commands below work only if you are inside the contracts/ directory.
0. Set the Environment Variables
Copy .env.example file as .env and edit it accordingly.
cp .env.example .envThe following env vars are required:
PRIVATE_KEY: the private key of the deployer account used for the testnets.MAINNET_PRIVATE_KEY: the private key of the deployer account used for Mainnet.INFURA_API_KEY: the API key for infura.
The ones below are optional:
ETHERSCAN_API_KEY: to verify the source of the newly deployed contracts on Etherscan.ARBISCAN_API_KEY: to verify the source of the newly deployed contracts on Arbitrum.
1. Update the Constructor Parameters (optional)
If some of the constructor parameters (such as the Meta Evidence) needs to change, you need to update the files in the deploy/ directory.
2. Deploy to a Local Network
yarn start-local3. Deploy to Public Networks
Testnets
# arbitrumSepolia -> Sepolia
yarn deploy --network sepolia --tags ArbSepoliaToSepoliaOutbox
yarn deploy --network arbitrumSepolia --tags ArbSepoliaToSepoliaInbox
# arbitrumSepolia -> Chiado
yarn deploy --network chiado --tags ArbSepoliaToChiadoOutbox
yarn deploy --network arbitrumSepolia --tags ArbSepoliaToChiadoInboxMainnets
# Arbitrum -> Ethereum
yarn deploy --network mainnet --tags ArbToEthOutbox
yarn deploy --network arbitrum --tags ArbToEthInbox
# Arbitrum -> Gnosis chain
yarn deploy --network gnosischain --tags ArbToGnosisOutbox
yarn deploy --network arbitrum --tags ArbToGnosisInboxThe deployed addresses should be output to the screen after the deployment is complete.
If you miss that, you can always go to the deployments/<network> directory and look for the respective file.
Running Test Fixtures
yarn test4. Verify the Source Code
This must be done for each network separately.
# explorer
yarn etherscan-verify --network <arbitrumSepolia|arbitrum|sepolia|mainnet|chiado|gnosischain>
# sourcify
yarn sourcify --network <arbitrumSepolia|arbitrum|sepolia|mainnet|chiado|gnosischain>9 months ago
8 months ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago