Skip to content

Commit

Permalink
Chore: Update aragonOS to v4.3.0 (#152)
Browse files Browse the repository at this point in the history
* chore: update aragonOS to v4.3.0

* tests: update gas cost tests
  • Loading branch information
facuspagnuolo committed Sep 4, 2019
1 parent cc1eb11 commit 42dfdb7
Show file tree
Hide file tree
Showing 11 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"@aragon/apps-vault": "^4.1.0",
"@aragon/apps-voting": "^2.1.0",
"@aragon/id": "2.0.3",
"@aragon/os": "4.2.0",
"@aragon/os": "4.3.0",
"eth-ens-namehash": "^2.0.8",
"yargs": "^13.2.4"
},
Expand Down
2 changes: 1 addition & 1 deletion templates/bare/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"publish:mainnet": "aragon apm publish major $(npm run deploy:mainnet | tail -n 1) --environment mainnet"
},
"dependencies": {
"@aragon/os": "4.2.0",
"@aragon/os": "4.3.0",
"@aragon/id": "2.0.3",
"@aragon/apps-shared-minime": "^1.0.0",
"@aragon/templates-shared": "^1.0.0-rc.1"
Expand Down
2 changes: 1 addition & 1 deletion templates/company-board/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"publish:mainnet": "aragon apm publish major $(npm run deploy:mainnet | tail -n 1) --environment mainnet"
},
"dependencies": {
"@aragon/os": "4.2.0",
"@aragon/os": "4.3.0",
"@aragon/id": "2.0.3",
"@aragon/apps-agent": "^1.0.0",
"@aragon/apps-vault": "^4.1.0",
Expand Down
2 changes: 1 addition & 1 deletion templates/company/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"@aragon/apps-vault": "^4.1.0",
"@aragon/apps-voting": "^2.1.0",
"@aragon/id": "2.0.3",
"@aragon/os": "4.2.0",
"@aragon/os": "4.3.0",
"@aragon/templates-shared": "^1.0.0-rc.1"
},
"devDependencies": {
Expand Down
8 changes: 4 additions & 4 deletions templates/company/test/company.js
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ contract('Company', ([_, owner, holder1, holder2, someone]) => {
const USE_AGENT_AS_VAULT = true

createDAO(USE_AGENT_AS_VAULT, FINANCE_PERIOD)
itCostsUpTo(6.71e6)
itCostsUpTo(6.72e6)
itSetupsDAOCorrectly(FINANCE_PERIOD)
itSetupsAgentAppCorrectly()
})
Expand All @@ -261,7 +261,7 @@ contract('Company', ([_, owner, holder1, holder2, someone]) => {
const USE_AGENT_AS_VAULT = false

createDAO(USE_AGENT_AS_VAULT, FINANCE_PERIOD)
itCostsUpTo(6.52e6)
itCostsUpTo(6.53e6)
itSetupsDAOCorrectly(FINANCE_PERIOD)
itSetupsVaultAppCorrectly()
})
Expand All @@ -274,7 +274,7 @@ contract('Company', ([_, owner, holder1, holder2, someone]) => {
const USE_AGENT_AS_VAULT = true

createDAO(USE_AGENT_AS_VAULT, FINANCE_PERIOD)
itCostsUpTo(6.71e6)
itCostsUpTo(6.72e6)
itSetupsDAOCorrectly(FINANCE_PERIOD)
itSetupsAgentAppCorrectly()
})
Expand All @@ -283,7 +283,7 @@ contract('Company', ([_, owner, holder1, holder2, someone]) => {
const USE_AGENT_AS_VAULT = false

createDAO(USE_AGENT_AS_VAULT, FINANCE_PERIOD)
itCostsUpTo(6.52e6)
itCostsUpTo(6.53e6)
itSetupsDAOCorrectly(FINANCE_PERIOD)
itSetupsVaultAppCorrectly()
})
Expand Down
2 changes: 1 addition & 1 deletion templates/membership/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"publish:mainnet": "aragon apm publish major $(npm run deploy:mainnet | tail -n 1) --environment mainnet"
},
"dependencies": {
"@aragon/os": "4.2.0",
"@aragon/os": "4.3.0",
"@aragon/id": "2.0.3",
"@aragon/apps-agent": "^1.0.0",
"@aragon/apps-vault": "^4.1.0",
Expand Down
4 changes: 2 additions & 2 deletions templates/membership/test/membership.js
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ contract('Membership', ([_, owner, member1, member2, someone]) => {
const USE_AGENT_AS_VAULT = true

createDAO(USE_AGENT_AS_VAULT, FINANCE_PERIOD)
itCostsUpTo(5e6)
itCostsUpTo(5.01e6)
itSetupsDAOCorrectly(FINANCE_PERIOD)
itSetupsAgentAppCorrectly()
})
Expand All @@ -366,7 +366,7 @@ contract('Membership', ([_, owner, member1, member2, someone]) => {
const USE_AGENT_AS_VAULT = true

createDAO(USE_AGENT_AS_VAULT, FINANCE_PERIOD)
itCostsUpTo(5e6)
itCostsUpTo(5.01e6)
itSetupsDAOCorrectly(FINANCE_PERIOD)
itSetupsAgentAppCorrectly()
})
Expand Down
2 changes: 1 addition & 1 deletion templates/reputation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"publish:mainnet": "aragon apm publish major $(npm run deploy:mainnet | tail -n 1) --environment mainnet"
},
"dependencies": {
"@aragon/os": "4.2.0",
"@aragon/os": "4.3.0",
"@aragon/id": "2.0.3",
"@aragon/apps-agent": "^1.0.0",
"@aragon/apps-vault": "^4.1.0",
Expand Down
4 changes: 2 additions & 2 deletions templates/reputation/test/reputation.js
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ contract('Reputation', ([_, owner, holder1, holder2, someone]) => {
const USE_AGENT_AS_VAULT = true

createDAO(USE_AGENT_AS_VAULT, FINANCE_PERIOD)
itCostsUpTo(5e6)
itCostsUpTo(5.01e6)
itSetupsDAOCorrectly(FINANCE_PERIOD)
itSetupsAgentAppCorrectly()
})
Expand All @@ -377,7 +377,7 @@ contract('Reputation', ([_, owner, holder1, holder2, someone]) => {
const USE_AGENT_AS_VAULT = true

createDAO(USE_AGENT_AS_VAULT, FINANCE_PERIOD)
itCostsUpTo(5e6)
itCostsUpTo(5.01e6)
itSetupsDAOCorrectly(FINANCE_PERIOD)
itSetupsAgentAppCorrectly()
})
Expand Down
2 changes: 1 addition & 1 deletion templates/trust/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"publish:mainnet": "aragon apm publish major $(npm run deploy:mainnet | tail -n 1) --environment mainnet"
},
"dependencies": {
"@aragon/os": "4.2.0",
"@aragon/os": "4.3.0",
"@aragon/id": "2.0.3",
"@aragon/apps-agent": "^1.0.0",
"@aragon/apps-vault": "^4.1.0",
Expand Down
4 changes: 2 additions & 2 deletions templates/trust/test/trust.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ contract('Trust', ([_, owner, beneficiaryKey1, beneficiaryKey2, heir1, heir2, mu
})

it('costs ~12.51e6 gas', async () => {
assert.isAtMost(prepareReceipt.receipt.gasUsed, 5.00e6, 'prepare script should cost almost 5.00e6 gas')
assert.isAtMost(setupReceipt.receipt.gasUsed, 5.67e6, 'setup script should cost almost 5.67e6 gas')
assert.isAtMost(prepareReceipt.receipt.gasUsed, 5e6, 'prepare script should cost almost 5.00e6 gas')
assert.isAtMost(setupReceipt.receipt.gasUsed, 5.7e6, 'setup script should cost almost 5.67e6 gas')
assert.isAtMost(multiSigSetupReceipt.receipt.gasUsed, 1.85e6, 'multisig script should cost almost 1.85e6 gas')
})

Expand Down

0 comments on commit 42dfdb7

Please sign in to comment.