Repository for internal scripts.
By default, all scripts run in mainnet fork mode (don't forget to edit fork param at brownie config). To run scripts on actually mainnet you need to add param --network mainnet to the end of the command and set the following env variables:
export DEPLOYER=<brownie_wallet_name>
export WEB3_INFURA_PROJECT_ID=<infura_key>
Script to pack up adding new node operators in one vote
NODE_OPERATORS_JSON=node_operators.json brownie run add_node_operators{
"node_operators": [
{
"name": "Test",
"address": "0x000..."
},
...
]
}
Script to pack up setting node operators staking limits in one vote
NODE_OPERATORS_JSON=node_operators.json brownie run set_node_operators_limit{
"node_operators": [
{
"id": 1,
"limit": 20
},
...
]
}