Skip to content
/ scripts Public

Repo for routine and ad-hoc deployment/configuration scripts

Notifications You must be signed in to change notification settings

DmitIv/scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
      },
    ...
  ]
}

About

Repo for routine and ad-hoc deployment/configuration scripts

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 5

Languages