Skip to content

Commit 2dd247a

Browse files
committed
Updating performnce gas consumption for solidity 0.8.7
1 parent ea38c54 commit 2dd247a

File tree

6 files changed

+23
-23
lines changed

6 files changed

+23
-23
lines changed

distribution/test/BatchTransfer.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ const NULL_ADDRESS = '0x'.padEnd(42, '0');
1414
const ETH_TRANSFER_MIN_GAS = '230000';
1515

1616
const GAS_SAFETY_FACTOR_PERCENT = '110';
17-
const TWO_ETH_TRANSFERS_GAS = 128373;
18-
const THREE_ETH_TRANSFERS_GAS = 161442;
19-
const TWO_ERC20_TRANSFERS_GAS = 137970;
20-
const THREE_ERC20_TRANSFERS_GAS = 170097;
17+
const TWO_ETH_TRANSFERS_GAS = 128231;
18+
const THREE_ETH_TRANSFERS_GAS = 161258;
19+
const TWO_ERC20_TRANSFERS_GAS = 137563;
20+
const THREE_ERC20_TRANSFERS_GAS = 169645;
2121

2222
contract('BatchTransfer', function (accounts) {
2323
let batch, vaultETH, emptyAccounts;

distribution/test/tokensale/BaseTokensale.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ const Tokensale = artifacts.require('tokensale/BaseTokensale.sol');
1010
const Token = artifacts.require('mock/TokenERC20Mock.sol');
1111
const BN = require('bn.js');
1212

13-
const INVEST_ETH_GAS_ESTIMATE = 179078;
14-
const REFUND_GAS_ESTIMATE = 64956;
13+
const INVEST_ETH_GAS_ESTIMATE = 178705;
14+
const REFUND_GAS_ESTIMATE = 64855;
1515
const REFUND_REAL_COST = '-390656000000000';
1616

1717
contract('BaseTokensale', function (accounts) {

governance/test/Performance.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,18 @@ const DECIMALS = '2';
2323

2424
const SESSION_RETENTION_COUNT = 10;
2525

26-
const VOTING_DELEGATE_DEPLOYMENT_COST = 4544821;
27-
const VOTING_DEPLOYMENT_COST = 2468995;
28-
const DEFINE_FIRST_PROPOSAL_COST = 348505;
29-
const DEFINE_SECOND_PROPOSAL_COST = 211741;
30-
const DEFINE_MIN_PROPOSAL_COST = 151373;
26+
const VOTING_DELEGATE_DEPLOYMENT_COST = 4463367;
27+
const VOTING_DEPLOYMENT_COST = 2468247;
28+
const DEFINE_FIRST_PROPOSAL_COST = 348642;
29+
const DEFINE_SECOND_PROPOSAL_COST = 211878;
30+
const DEFINE_MIN_PROPOSAL_COST = 151510;
3131
const FIRST_VOTE_COST = 354641;
3232
const SECOND_VOTE_COST = 164163;
3333
const VOTE_ON_BEHALF_COST = 220536;
3434
const EXECUTE_ONE_COST = 80674;
3535
const EXECUTE_ALL_COST = 480680;
3636
const ARCHIVE_SESSION_COST = 259188;
37-
const DEFINE_PROPOSAL_WITH_ARCHIVING_COST = 258604;
37+
const DEFINE_PROPOSAL_WITH_ARCHIVING_COST = 258739;
3838

3939
contract('Performance', function (accounts) {
4040
let core, delegate, token, votingSession, votingDelegate;

oracle/test/RatesProvider.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ contract('RatesProvider', function (accounts) {
2222
const rateOffset = new BN('10').pow(new BN('18'));
2323
const aWEICHFSample = '48257890165041';
2424
const aETHCHFSample = '20722';
25-
const DEFINE_RATES_ESTIMATE = 84546;
25+
const DEFINE_RATES_ESTIMATE = 84451;
2626

2727
beforeEach(async function () {
2828
provider = await RatesProvider.new('Test');

token/test/Performance.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ const CHF_ADDRESS = web3.utils.toHex('CHF').padEnd(42, '0');
2323
const NEXT_YEAR = Math.floor(new Date().getTime() / 1000) + (24 * 3600 * 365);
2424

2525
// Contract Deployments Gas Cost
26-
const CORE_GAS_COST = 4138085;
27-
const MINTABLE_DELEGATE_GAS_COST = 1748845;
28-
const KYCONLY_DELEGATE_GAS_COST = 2888270;
29-
const DELEGATE_GAS_COST = 3225667;
30-
const PROXY_GAS_COST = 774344;
26+
const CORE_GAS_COST = 4140647;
27+
const MINTABLE_DELEGATE_GAS_COST = 1747590;
28+
const KYCONLY_DELEGATE_GAS_COST = 2879418;
29+
const DELEGATE_GAS_COST = 3212439;
30+
const PROXY_GAS_COST = 776602;
3131

3232
// Contract Interactions Gas Cost
3333
const MINTABLE_FIRST_TRANSFER_COST = 65369;

token/test/delegate/OracleEnrichedDelegate.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ const NULL_ADDRESS = '0x'.padEnd(42, '0');
2020
const EMPTY_ADDRESS = '0x'.padEnd(42, '0');
2121
const NEXT_YEAR = Math.floor(new Date().getTime() / 1000) + (24 * 3600 * 365);
2222

23-
const FETCH_SENDER_ID_ESTIMATE = 33435;
24-
const FETCH_SENDER_ESTIMATE = 103664;
25-
const FETCH_RECEIVER_ID_ESTIMATE = 33475;
26-
const FETCH_RECEIVER_ESTIMATE = 103690;
27-
const FETCH_CONVERT_RATE = 39872;
23+
const FETCH_SENDER_ID_ESTIMATE = 33307;
24+
const FETCH_SENDER_ESTIMATE = 103627;
25+
const FETCH_RECEIVER_ID_ESTIMATE = 33280;
26+
const FETCH_RECEIVER_ESTIMATE = 103609;
27+
const FETCH_CONVERT_RATE = 39948;
2828

2929
contract('OracleEnrichedDelegate', function (accounts) {
3030
let delegate, userRegistry, ratesProvider;

0 commit comments

Comments
 (0)