Skip to content

Latest commit

 

History

History
59 lines (42 loc) · 1 KB

File metadata and controls

59 lines (42 loc) · 1 KB

scripts

Repository for internal scripts.

Mainnet setup

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>

Adding node operators

Script to pack up adding new node operators in one vote

NODE_OPERATORS_JSON=node_operators.json brownie run add_node_operators

node_operators.json

{
  "node_operators": [
    {
      "name": "Test", 
      "address": "0x000..."
      },
    ...
  ]
}

Setting node operators limits

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.json

{
  "node_operators": [
    {
      "id": 1, 
      "limit": 20
      },
    ...
  ]
}