Skip to content

Commit

Permalink
Merge pull request #30 from AugustoL/initial-xdai-deployment
Browse files Browse the repository at this point in the history
feat(networks-contracts): Initial xdai contracts deployment
  • Loading branch information
Augusto Lemble authored Oct 29, 2021
2 parents 40804f0 + 1b708e5 commit d3237fb
Show file tree
Hide file tree
Showing 2 changed files with 244 additions and 13 deletions.
20 changes: 8 additions & 12 deletions .contracts.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@
"dxdVestingFactory": "0x0000000000000000000000000000000000000000"
},
"votingMachines": {
"dxd": {
"address": "0x0000000000000000000000000000000000000000",
"token": "0xa1d65E8fB6e87b60FECCBc582F7f97804B725521"
},
"gen": {
"address": "0x332B8C9734b4097dE50f302F7D9F273FFdB45B84",
"token": "0x543Ff227F64Aa17eA132Bf9886cAb5DB55DCAddf"
Expand All @@ -33,23 +29,23 @@
"reputation": "0xED77eaA9590cfCE0a126Bab3D8A6ada9A393d4f6",
"token": "0xf255B9d83db924820ee23A7dCC30b7542e201Bb1",
"controller": "0xfBEcdD3360E2A9040383980AB3863BE9d57256fd",
"permissionRegistry": "0x0000000000000000000000000000000000000000",
"schemes": {},
"schemes": {
"QuickWalletScheme": "0x0A08ECa47C56C305F4FeB4fa062AEcd5807BeBb8"
},
"utils": {
"multicall": "0xDD032cd0dfCB54050E1FA30Be59056403e292700",
"dxDaoNFT": "0x0000000000000000000000000000000000000000",
"dxdVestingFactory": "0x0000000000000000000000000000000000000000"
"multicall": "0xDD032cd0dfCB54050E1FA30Be59056403e292700"
},
"votingMachines": {
"dxd": {
"address": "0x0000000000000000000000000000000000000000",
"token": "0xb90D6bec20993Be5d72A5ab353343f7a0281f158"
"token": "0xb90D6bec20993Be5d72A5ab353343f7a0281f158",
"address": "0x053f406aD40c9Eb8eB43aFf28DA0D0EC17dF8e44"
},
"gen": {
"address": "0xDA309aDF1c84242Bb446F7CDBa96B570E901D4CF",
"token": "0x543ff227f64aa17ea132bf9886cab5db55dcaddf"
}
}
},
"permissionRegistry": "0x757bbdC3dF870202f28e5cF92a0005158D5e0786"
},
"rinkeby": {
"fromBlock": 9234792,
Expand Down
237 changes: 236 additions & 1 deletion scripts/deployment-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ const schemesConfig = {
},
],

rinkeby: [
xdai: [
{
name: "QuickWalletScheme",
callToController: false,
Expand Down Expand Up @@ -328,6 +328,241 @@ const schemesConfig = {
},
],

rinkeby: [
{
name: "RegistrarWalletScheme",
callToController: true,
maxSecondsForExecution: moment.duration(1, "days").asSeconds(),
maxRepPercentageChange: 0,
controllerPermissions: {
canGenericCall: true,
canUpgrade: true,
canChangeConstraints: true,
canRegisterSchemes: true,
},
permissions: [],
queuedVoteRequiredPercentage: 50,
boostedVoteRequiredPercentage: 10 * 100,
queuedVotePeriodLimit: moment.duration(3, "hours").asSeconds(),
boostedVotePeriodLimit: moment.duration(2, "hours").asSeconds(),
preBoostedVotePeriodLimit: moment.duration(30, "minutes").asSeconds(),
thresholdConst: 2000,
quietEndingPeriod: moment.duration(30, "minutes").asSeconds(),
proposingRepReward: 0,
votersReputationLossRatio: 10,
minimumDaoBounty: web3.utils.toWei("1"),
daoBountyConst: 10,
},
{
name: "QuickWalletScheme",
callToController: false,
maxSecondsForExecution: moment.duration(1, "days").asSeconds(),
maxRepPercentageChange: 0,
controllerPermissions: {
canGenericCall: false,
canUpgrade: false,
canChangeConstraints: false,
canRegisterSchemes: false,
},
permissions: [
{
asset: NULL_ADDRESS,
to: ANY_ADDRESS,
functionSignature: ANY_FUNC_SIGNATURE,
value: MAX_UINT_256,
allowed: true,
},
{
asset: TOKENS.rinkeby.DXD,
to: ANY_ADDRESS,
functionSignature: ANY_FUNC_SIGNATURE,
value: MAX_UINT_256,
allowed: true,
},
{
asset: TOKENS.rinkeby.WETH,
to: ANY_ADDRESS,
functionSignature: ANY_FUNC_SIGNATURE,
value: MAX_UINT_256,
allowed: true,
},
{
asset: TOKENS.rinkeby.SWPR,
to: ANY_ADDRESS,
functionSignature: ANY_FUNC_SIGNATURE,
value: MAX_UINT_256,
allowed: true,
},
],
queuedVoteRequiredPercentage: 50,
boostedVoteRequiredPercentage: 1 * 100,
queuedVotePeriodLimit: moment.duration(2, "hours").asSeconds(),
boostedVotePeriodLimit: moment.duration(1, "hours").asSeconds(),
preBoostedVotePeriodLimit: moment.duration(30, "minutes").asSeconds(),
thresholdConst: 1100,
quietEndingPeriod: moment.duration(30, "minutes").asSeconds(),
proposingRepReward: 0,
votersReputationLossRatio: 10,
minimumDaoBounty: web3.utils.toWei("0.05"),
daoBountyConst: 10,
},
{
name: "SWPRWalletScheme",
callToController: false,
maxSecondsForExecution: moment.duration(1, "days").asSeconds(),
maxRepPercentageChange: 0,
controllerPermissions: {
canGenericCall: false,
canUpgrade: false,
canChangeConstraints: false,
canRegisterSchemes: false,
},
permissions: [
{
asset: NULL_ADDRESS,
to: ANY_ADDRESS,
functionSignature: ANY_FUNC_SIGNATURE,
value: MAX_UINT_256,
allowed: true,
},
{
asset: TOKENS.rinkeby.DXD,
to: ANY_ADDRESS,
functionSignature: ANY_FUNC_SIGNATURE,
value: MAX_UINT_256,
allowed: true,
},
{
asset: TOKENS.rinkeby.WETH,
to: ANY_ADDRESS,
functionSignature: ANY_FUNC_SIGNATURE,
value: MAX_UINT_256,
allowed: true,
},
{
asset: TOKENS.rinkeby.SWPR,
to: ANY_ADDRESS,
functionSignature: ANY_FUNC_SIGNATURE,
value: MAX_UINT_256,
allowed: true,
},
],
queuedVoteRequiredPercentage: 50,
boostedVoteRequiredPercentage: 10 * 100,
queuedVotePeriodLimit: moment.duration(2, "hours").asSeconds(),
boostedVotePeriodLimit: moment.duration(30, "hours").asSeconds(),
preBoostedVotePeriodLimit: moment.duration(30, "minutes").asSeconds(),
thresholdConst: 1300,
quietEndingPeriod: moment.duration(30, "minutes").asSeconds(),
proposingRepReward: 0,
votersReputationLossRatio: 10,
minimumDaoBounty: web3.utils.toWei("0.1"),
daoBountyConst: 10,
},
{
name: "MasterWalletScheme",
callToController: true,
maxSecondsForExecution: moment.duration(1, "days").asSeconds(),
maxRepPercentageChange: 40,
controllerPermissions: {
canGenericCall: true,
canUpgrade: false,
canChangeConstraints: false,
canRegisterSchemes: false,
},
permissions: [
{
asset: NULL_ADDRESS,
to: "DXDVotingMachine",
functionSignature: ANY_FUNC_SIGNATURE,
value: MAX_UINT_256,
allowed: true,
},
{
asset: NULL_ADDRESS,
to: "RegistrarWalletScheme",
functionSignature: ANY_FUNC_SIGNATURE,
value: MAX_UINT_256,
allowed: true,
},
{
asset: NULL_ADDRESS,
to: "ITSELF",
functionSignature: ANY_FUNC_SIGNATURE,
value: MAX_UINT_256,
allowed: true,
},
{
asset: NULL_ADDRESS,
to: "QuickWalletScheme",
functionSignature: ANY_FUNC_SIGNATURE,
value: MAX_UINT_256,
allowed: true,
},
{
asset: NULL_ADDRESS,
to: "SWPRWalletScheme",
functionSignature: ANY_FUNC_SIGNATURE,
value: MAX_UINT_256,
allowed: true,
},
{
asset: TOKENS.rinkeby.DXD,
to: "QuickWalletScheme",
functionSignature: ANY_FUNC_SIGNATURE,
value: MAX_UINT_256,
allowed: true,
},
{
asset: TOKENS.rinkeby.DXD,
to: "SWPRWalletScheme",
functionSignature: ANY_FUNC_SIGNATURE,
value: MAX_UINT_256,
allowed: true,
},
{
asset: TOKENS.rinkeby.WETH,
to: "QuickWalletScheme",
functionSignature: ANY_FUNC_SIGNATURE,
value: MAX_UINT_256,
allowed: true,
},
{
asset: TOKENS.rinkeby.WETH,
to: "SWPRWalletScheme",
functionSignature: ANY_FUNC_SIGNATURE,
value: MAX_UINT_256,
allowed: true,
},
{
asset: TOKENS.rinkeby.SWPR,
to: "QuickWalletScheme",
functionSignature: ANY_FUNC_SIGNATURE,
value: MAX_UINT_256,
allowed: true,
},
{
asset: TOKENS.rinkeby.SWPR,
to: "SWPRWalletScheme",
functionSignature: ANY_FUNC_SIGNATURE,
value: MAX_UINT_256,
allowed: true,
},
],
queuedVoteRequiredPercentage: 50,
boostedVoteRequiredPercentage: 2 * 100,
queuedVotePeriodLimit: moment.duration(3, "hours").asSeconds(),
boostedVotePeriodLimit: moment.duration(2, "hours").asSeconds(),
preBoostedVotePeriodLimit: moment.duration(30, "minutes").asSeconds(),
thresholdConst: 1500,
quietEndingPeriod: moment.duration(30, "minutes").asSeconds(),
proposingRepReward: 0,
votersReputationLossRatio: 5,
minimumDaoBounty: web3.utils.toWei("0.1"),
daoBountyConst: 10,
},
],

arbitrumTestnet: [
{
name: "RegistrarWalletScheme",
Expand Down

0 comments on commit d3237fb

Please sign in to comment.