Skip to content

Commit

Permalink
Refact governance simulationbackend (#107)
Browse files Browse the repository at this point in the history
  • Loading branch information
felix-shin-wt authored Jun 7, 2024
2 parents a4c1c89 + 12c8e74 commit 752b49f
Show file tree
Hide file tree
Showing 736 changed files with 278 additions and 128,705 deletions.
6 changes: 6 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,9 @@
[submodule "etcd"]
path = etcd
url = https://github.com/metadium/etcd
[submodule "wemix/governance-contract/contracts/openzeppelin/contracts-upgradeable"]
path = wemix/governance-contract/contracts/openzeppelin/contracts-upgradeable
url = https://github.com/OpenZeppelin/openzeppelin-contracts-upgradeable
[submodule "wemix/governance-contract/contracts/openzeppelin/contracts"]
path = wemix/governance-contract/contracts/openzeppelin/contracts
url = https://github.com/OpenZeppelin/openzeppelin-contracts
7 changes: 3 additions & 4 deletions cmd/geth/governancedeploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ func deployGovernance(cli Client, ownerOpts *bind.TransactOpts, lockAmount *big.
}

// deploy & set domains
contracts, impAddress, err := gov.DeployGovContracts(ownerOpts, cli, domains)
contracts, err := gov.DeployGovContracts(ownerOpts, cli, domains)
if err != nil {
return err
}
Expand All @@ -151,11 +151,10 @@ func deployGovernance(cli Client, ownerOpts *bind.TransactOpts, lockAmount *big.
"STAKING_ADDRESS": "%s",
"ENV_STORAGE_ADDRESS": "%s",
"BALLOT_STORAGE_ADDRESS": "%s",
"GOV_ADDRESS": "%s",
"GOV_IMP_ADDRESS": "%s",
"GOV_ADDRESS": "%s"
}
`,
address.Registry, address.Staking, address.EnvStorage, address.BallotStorage, address.Gov, impAddress["GovImp"])
address.Registry, address.Staking, address.EnvStorage, address.BallotStorage, address.Gov)

return nil
}
Expand Down
2 changes: 1 addition & 1 deletion wemix/bind/backends/wemix_simulated.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ func NewWemixSimulatedBackend(pk *ecdsa.PrivateKey, datadir string, alloc core.G
return nil, err
}

contracts, _, err := gov.DeployGovContracts(opts, ethClient, map[string]common.Address{
contracts, err := gov.DeployGovContracts(opts, ethClient, map[string]common.Address{
"StakingReward": opts.From,
"Ecosystem": opts.From,
"Maintenance": opts.From,
Expand Down
4 changes: 2 additions & 2 deletions wemix/bind/ballotStorage.go

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions wemix/bind/envStorage.go

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions wemix/bind/gov.go

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions wemix/bind/ncpExit.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion wemix/bind/registry.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 752b49f

Please sign in to comment.