Skip to content

Commit

Permalink
Merge pull request #83 from KPrasch/dkg-dev
Browse files Browse the repository at this point in the history
Updates coordinator deployment scripting
  • Loading branch information
KPrasch authored Jun 6, 2023
2 parents c0c29aa + 35011f1 commit 5395250
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
9 changes: 9 additions & 0 deletions ape-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ contracts_folder: contracts

plugins:
- name: solidity
- name: polygon
- name: ape-etherscan
config:
api_key: ${ETHERSCAN_API_KEY}

dependencies:
- name: openzeppelin
Expand Down Expand Up @@ -54,6 +58,11 @@ deployments:
max_dkg_size: 8
pre_application: '0x685b8Fd02aB87d8FfFff7346cB101A5cE4185bf3'
verify: True
mumbai:
- stake_info_contract: '0xC1379866Fb0c100DCBFAb7b470009C4827D47DD8'
max_dkg_size: 16
ritual_timeout: 86400 # one day in seconds
verify: True
mainnet:
- nu_token: '0x4fE83213D56308330EC302a8BD641f1d0113A4Cc'
t_staking: '0x01B67b1194C75264d06F808A921228a95C765dd7'
Expand Down
6 changes: 4 additions & 2 deletions scripts/deploy_coordinator.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
#!/usr/bin/python3
from ape import project
from ape.cli import get_user_selected_account

from scripts.utils import DEPLOYMENTS_CONFIG, get_account


def main(account_id=None):
deployer = get_account(account_id)
deployer = get_user_selected_account()
deployments_config = DEPLOYMENTS_CONFIG

coordinator = project.Coordinator.deploy(
deployments_config.get("pre_application"),
deployments_config.get("stake_info_contract"),
deployments_config.get("ritual_timeout"),
deployments_config.get("max_dkg_size"),
sender=deployer,
Expand Down
4 changes: 4 additions & 0 deletions scripts/verify_contract.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
from ape import networks

etherscan = networks.provider.network.explorer
etherscan.publish_contract("0xc7590Ba497d1A7AB82c1BD61f7Dcd2685990986e")

0 comments on commit 5395250

Please sign in to comment.