Skip to content

Instantly share code, notes, and snippets.

@davidatwhiletrue
Last active February 1, 2024 15:48
Show Gist options
  • Save davidatwhiletrue/a77e9f7242a05c2745a67cabe4742fc2 to your computer and use it in GitHub Desktop.
Save davidatwhiletrue/a77e9f7242a05c2745a67cabe4742fc2 to your computer and use it in GitHub Desktop.
Gas comparison -> v152 vs gh-4382-lowering-costs

CEP-78

Task v152 gh-4382-lowering-costs Gas reduction
Install 267_841_863_240 254_525_031_240 95,03 %
mint 1st token 2_894_138_030 750_959_030 25,95 %
mint 2nd token 2_912_645_350 753_356_350 25,86 %
mint 3rd token 2_912_645_350 753_356_350 25,86 %
transfer 2_054_723_390 554_360_390 26,98 %
approve 1_175_644_810 279_370_810 23,76 %
set_token_metadata 2_120_545_790 462_601_790 21,81 %

CEP-47

Task v152 gh-4382-lowering-costs Gas reduction
Install 134_747_337_610 137_060_553_610 101,71 %
mint 1 token 3_236_038_880 824_470_880 25,47 %
update_token_meta 1_296_440_220 303_740_220 23,42 %
mint_copies 8_822_552_400 2_335_019_400 26,46 %
mint 3 tokens 8_837_840_040 2_339_480_040 26,47 %
transfer_from 5_354_707_420 1_337_638_420 24,98 %
burn 8_122_888_190 1_189_153_230 14,63 %

CEP-18

Task v152 gh-4382-lowering-costs Gas reduction
Install (& mint) 96_640_759_720 99_085_465_720 102,53 %
Transfer 765_492_010 209_949_010 27,43 %
Approve 619_557_560 145_122_560 23,42 %
Transfer from 1_515_507_050 364_893_050 24,08 %

Payments contract (Beast League)

Task v152 gh-4382-lowering-costs Gas reduction
Install (& mint) 102_599_121_220 98_953_779_220 96,45 %
Pay with BOIN token 4_160_312_260 748_925_260 18,00 %
Pay with CSPR 1_813_960_060 308_521_060 17,01 %

CEP-78

New contract deployed directly on 1.5.5

Task v155 (testnet)
Install 254_644_698_800
mint 1st token 645_810_540
mint 2nd token 654_572_440
mint 3rd token 652_220_220
transfer 548_750_250
burn 334_739_970

Contract deployed on 1.4.15

Transactions on 1.5.5

Task v155 (testnet)
transfer 2_571_651_550
mint 2_563_211_670

Contract upgraded to CEP-78 1.5.0 on Casper node 1.5.5

Task v155 (testnet)
migration 253_147_136_240

Transactions on upgraded contract

note: CES events disabled by mistake during contract migration

Task v155 (testnet)
transfer of existing token 406_410_680
mint of new token 491_857_230
transfer of newly minted token 404_618_270

CEP-18

Task v152 v156 Gas reduction
Install (& mint) 96_640_759_720 241_604_352_838 -150%
Transfer 765_492_010 551_137_768 28%
Approve 619_557_560 465_269_396 25%
Transfer from 1_515_507_050 834_185_609 45%

Payments contract (Beast League)

Task v152 v156 Gas reduction
Install (& mint) 102_599_121_220 180_054_833_474 -75%
Pay with BOIN token 4_160_312_260 2_771_741_216 33%
Pay with CSPR 1_813_960_060 1_090_885_241 40%
@cspramit
Copy link

cspramit commented Nov 1, 2023

awesome stuff, what about CEP-78?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment