Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Infrastructure deployment script #225

Open
wants to merge 6 commits into
base: develop
Choose a base branch
from
Open

Conversation

sajanrajdev
Copy link
Collaborator

  • Infrastructure deployment script for new chains (Deploys all the required infrastructure to get started on a new chain and sets the initial configuration).
  • Added new BadgerRegistry and changed names accordingly.
  • Added logic contracts' JSON file for Arbitrum (Also for ETH for testing purposes).

@sajanrajdev
Copy link
Collaborator Author

Example of run output:

Transaction sent: 0x7bbab6e91bf12c9ca279ebf64ee68f8f20df979ef89766a12992172333f1a49f
  Gas price: 0.0 gwei   Gas limit: 12000000   Nonce: 55
  BadgerRegistry.constructor confirmed - Block: 13148387   Gas used: 1371984 (11.43%)
  BadgerRegistry deployed at: 0xcb21F5b497D5c2b6d0f8295211Ad1a97d0cC60a0

BadgerRegistry logic deployed!
KeeperAccessControl logic fetched!
Controller logic fetched!
RewardsLogger logic fetched!
BadgerTreeV2 logic fetched!
WarRoomGatedProxy logic fetched!
VipCappedGuestListBbtcUpgradeable logic fetched!
SettV3 logic fetched!
Deploying proxies...
BadgerRegistry arguments:
['0xeE8b29AA52dD5fF2559da2C50b1887ADee257556']
Transaction sent: 0x84c4270ae3f65a4832d8766a09053ff1172c33c24fd0e31770aec72ac94dac98
  Gas price: 0.0 gwei   Gas limit: 12000000   Nonce: 56
  AdminUpgradeabilityProxy.constructor confirmed - Block: 13148388   Gas used: 436622 (3.64%)
  AdminUpgradeabilityProxy deployed at: 0x7AfB2E386b7990507009f81B3c486c8C596501a4

BadgerRegistry proxy deployed at 0x7AfB2E386b7990507009f81B3c486c8C596501a4
KeeperAccessControl arguments:
['0xeE8b29AA52dD5fF2559da2C50b1887ADee257556']
Transaction sent: 0x09a6c2f2137e04386b793f99ec013d611fc47d692e67cd8fe4cdd0656a09d471
  Gas price: 0.0 gwei   Gas limit: 12000000   Nonce: 57
  AdminUpgradeabilityProxy.constructor confirmed - Block: 13148389   Gas used: 454368 (3.79%)
  AdminUpgradeabilityProxy deployed at: 0x809990849D53a5109e0cb9C446137793B9f6f1Eb

KeeperAccessControl proxy deployed at 0x809990849D53a5109e0cb9C446137793B9f6f1Eb
Controller arguments:
[
    '0xeE8b29AA52dD5fF2559da2C50b1887ADee257556',
    '0xeE8b29AA52dD5fF2559da2C50b1887ADee257556',
    '0x809990849D53a5109e0cb9C446137793B9f6f1Eb',
    '0xeE8b29AA52dD5fF2559da2C50b1887ADee257556'
]
Transaction sent: 0x549ed1468bf13d5e3f9b617d7cdf7de9e9d041cb30ae5ea632fddc22e7903edb
  Gas price: 0.0 gwei   Gas limit: 12000000   Nonce: 58
  AdminUpgradeabilityProxy.constructor confirmed - Block: 13148390   Gas used: 455818 (3.80%)
  AdminUpgradeabilityProxy deployed at: 0x20f3bAc1092804f8bE36aD2fEF76535a2312CF04

Controller proxy deployed at 0x20f3bAc1092804f8bE36aD2fEF76535a2312CF04
RewardsLogger arguments:
['0xeE8b29AA52dD5fF2559da2C50b1887ADee257556', '0xeE8b29AA52dD5fF2559da2C50b1887ADee257556']
Transaction sent: 0x5d789a48b087c2d17c71795a74704f948673fe186aea2bbbff7c42ecf6dfd361
  Gas price: 0.0 gwei   Gas limit: 12000000   Nonce: 59
  AdminUpgradeabilityProxy.constructor confirmed - Block: 13148391   Gas used: 475064 (3.96%)
  AdminUpgradeabilityProxy deployed at: 0x7feCCc72aE222e0483cBDE212F5F88De62132546

RewardsLogger proxy deployed at 0x7feCCc72aE222e0483cBDE212F5F88De62132546
BadgerTreeV2 arguments:
['0xeE8b29AA52dD5fF2559da2C50b1887ADee257556', '0xeE8b29AA52dD5fF2559da2C50b1887ADee257556', '0xeE8b29AA52dD5fF2559da2C50b1887ADee257556']
Transaction sent: 0xec7cd3e242291da71c757d9f30a4ada51c03450d2bbc597b18ab752d76450ed0
  Gas price: 0.0 gwei   Gas limit: 12000000   Nonce: 60
  AdminUpgradeabilityProxy.constructor confirmed - Block: 13148392   Gas used: 488307 (4.07%)
  AdminUpgradeabilityProxy deployed at: 0x0315Bed26c173Da79Bc43aB0C7A09E51Db8Cf3CD

BadgerTreeV2 proxy deployed at 0x0315Bed26c173Da79Bc43aB0C7A09E51Db8Cf3CD
WarRoomGatedProxy arguments:
['0xeE8b29AA52dD5fF2559da2C50b1887ADee257556', []]
Transaction sent: 0xb163c7a46a038c321dc94db2299d3c8a16fbb866cf9fc4f7881ae2288ca258c3
  Gas price: 0.0 gwei   Gas limit: 12000000   Nonce: 61
  AdminUpgradeabilityProxy.constructor confirmed - Block: 13148393   Gas used: 455282 (3.79%)
  AdminUpgradeabilityProxy deployed at: 0x80348f4430F80b69F8f893B0f0d658e2e7053C1a

WarRoomGatedProxy proxy deployed at 0x80348f4430F80b69F8f893B0f0d658e2e7053C1a
Setting keys on registry...
Transaction sent: 0xdb658384e3aece115b2531dcb0ac919394bbc526445838d048362e814f8a58ad
  Gas price: 0.0 gwei   Gas limit: 12000000   Nonce: 62
  BadgerRegistry.set confirmed - Block: 13148394   Gas used: 49526 (0.41%)

Transaction sent: 0x0e2cf48be09dd123e4f33c2b4ffc67c3f1dc0d61b300ac251662addfe928bbed
  Gas price: 0.0 gwei   Gas limit: 12000000   Nonce: 63
  BadgerRegistry.set confirmed - Block: 13148395   Gas used: 52220 (0.44%)

Transaction sent: 0xfe6902b5d8d2db6af79c39d8bfa75690b91fb57130d3f8e34dc6e9dff1628b2a
  Gas price: 0.0 gwei   Gas limit: 12000000   Nonce: 64
  BadgerRegistry.set confirmed - Block: 13148396   Gas used: 55154 (0.46%)

Transaction sent: 0x8307acbcfabafb3d8e5694c057c0a2a6dd924a374b5f1917ce24209de45e9dcd
  Gas price: 0.0 gwei   Gas limit: 12000000   Nonce: 65
  BadgerRegistry.set confirmed - Block: 13148397   Gas used: 57968 (0.48%)

Transaction sent: 0x747b0ec3cc71527645ef48a160946c78ecf4c0cd582b71bb71f825dfe5857f3d
  Gas price: 0.0 gwei   Gas limit: 12000000   Nonce: 66
  BadgerRegistry.set confirmed - Block: 13148398   Gas used: 60818 (0.51%)

Transaction sent: 0xbc142ff657d1af0cfdc2a03c1cb4692431e2806f4e719864ab9962fa6e2f1c39
  Gas price: 0.0 gwei   Gas limit: 12000000   Nonce: 67
  BadgerRegistry.set confirmed - Block: 13148399   Gas used: 63644 (0.53%)

Transaction sent: 0xa4ab20d6bb49256967876d59fa928b5a790e57d97715dc41522a96a4c4b63032
  Gas price: 0.0 gwei   Gas limit: 12000000   Nonce: 68
  BadgerRegistry.set confirmed - Block: 13148400   Gas used: 66554 (0.55%)

Transaction sent: 0x46de0435c3d038584256326415cd85226449548f6e0532732a05278a388ca05a
  Gas price: 0.0 gwei   Gas limit: 12000000   Nonce: 69
  BadgerRegistry.set confirmed - Block: 13148401   Gas used: 69464 (0.58%)```

@sajanrajdev sajanrajdev linked an issue Sep 6, 2021 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Deploy Script: Arbitrum
1 participant