Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
@CosminNechifor

This comment has been minimized.

Copy link
Owner Author

commented May 29, 2019

Deployment and link
Contract name Gas Used Eth used
ManagerContract 5886150.02944963 0.117723000588993
ComponentFactory 3418170.01624207 0.068363400324842
Registry 1684178.00958771 0.033683560191754
MarketPlace 1479794.04511805 0.029595880902361
SafeMath 74305.9406979072 0.001486118813958
Token 771283.999313101 0.015425679986262
Operation Gas Used Ether Used
Link function 94011 0.00188022
Each account mints 1 000 000 tokens and withdraws 50
Operation Gas Used Ether Used
Account[0] deposit 67032 0.00134064
Account[1] deposit 52032 0.00104064
Account[2] deposit 52032 0.00104064
Account[3] deposit 52032 0.00104064
Account[4] deposit 52032 0.00104064
Account[5] deposit 52032 0.00104064
Account[6] deposit 52032 0.00104064
Account[7] deposit 52032 0.00104064
Account[8] deposit 52032 0.00104064
Account[9] deposit 52032 0.00104064
Account[0] withdraw 44728 0.00089456
Account[1] withdraw 44728 0.00089456
Account[2] withdraw 44728 0.00089456
Account[3] withdraw 44728 0.00089456
Account[4] withdraw 44728 0.00089456
Account[5] withdraw 44728 0.00089456
Account[6] withdraw 44728 0.00089456
Account[7] withdraw 44728 0.00089456
Account[8] withdraw 44728 0.00089456
Account[9] withdraw 44728 0.00089456
First 5 accounts will register as producers.
Operation Gas Used Ether Used
Account[0] registers as Producer 90958 0.00181916
Account[1] registers as Producer 90958 0.00181916
Account[2] registers as Producer 90958 0.00181916
Account[3] registers as Producer 90958 0.00181916
Account[4] registers as Producer 90958 0.00181916
Account[0] confirmed as Producer 32873 0.00065746
Account[1] confirmed as Producer 32873 0.00065746
Account[2] confirmed as Producer 32873 0.00065746
Account[3] confirmed as Producer 32873 0.00065746
Account[4] confirmed as Producer 32873 0.00065746
Last 5 accounts will register as recyclers.
Operation Gas Used Ether Used
Account[0] registers as Recycler 96003 0.00192006
Account[1] registers as Recycler 96003 0.00192006
Account[2] registers as Recycler 96003 0.00192006
Account[3] registers as Recycler 96003 0.00192006
Account[4] registers as Recycler 96003 0.00192006
Account[0] confirmed as Recycler 32503 0.00065006
Account[1] confirmed as Recycler 32503 0.00065006
Account[2] confirmed as Recycler 32503 0.00065006
Account[3] confirmed as Recycler 32503 0.00065006
Account[4] confirmed as Recycler 32503 0.00065006
Creation of 20 simple components.
Operation Gas Used Ether Used
Producer[0] creates component[0] 2460626 0.04921252
Producer[0] creates component[1] 2445626 0.04891252
Producer[0] creates component[2] 2445626 0.04891252
Producer[0] creates component[3] 2445626 0.04891252
Producer[0] creates component[4] 2445626 0.04891252
Producer[0] creates component[5] 2445626 0.04891252
Producer[0] creates component[6] 2445626 0.04891252
Producer[0] creates component[7] 2445626 0.04891252
Producer[0] creates component[8] 2445626 0.04891252
Producer[0] creates component[9] 2445626 0.04891252
Producer[0] creates component[10] 2445626 0.04891252
Producer[0] creates component[11] 2445626 0.04891252
Producer[0] creates component[12] 2445626 0.04891252
Producer[0] creates component[13] 2445626 0.04891252
Producer[0] creates component[14] 2445626 0.04891252
Producer[0] creates component[15] 2445626 0.04891252
Producer[0] creates component[16] 2445626 0.04891252
Producer[0] creates component[17] 2445626 0.04891252
Producer[0] creates component[18] 2445626 0.04891252
Producer[0] creates component[19] 2445626 0.04891252
Producer[0] creates component[20] 2445626 0.04891252
Producer[0] creates component[21] 2445626 0.04891252
Producer[0] creates component[22] 2445626 0.04891252
Producer[0] creates component[23] 2445626 0.04891252
Producer[0] creates component[24] 2445626 0.04891252
Creation of complex components.
Operation Gas Used Ether Used
Producer[0] creates Root Component 2444922 0.04889844
Producer[0] creates component 2444922 0.04889844
Producer[0] adds the created component to the root component 120596 0.00241192
Producer[0] creates component 2444922 0.04889844
Producer[0] adds the created component to the root component 106183 0.00212366
Producer[0] creates component 2444922 0.04889844
Producer[0] adds the created component to the root component 106834 0.00213668
Producer[0] creates component 2444922 0.04889844
Producer[0] adds the created component to the root component 107421 0.00214842
Producer[0] creates component 2444922 0.04889844
Producer[0] adds the created component to the root component 108008 0.00216016
Producer[0] creates component 2444922 0.04889844
Producer[0] adds the created component to the root component 108595 0.0021719
Producer[0] creates component 2444922 0.04889844
Producer[0] adds the created component to the root component 109182 0.00218364
Producer[0] creates component 2444922 0.04889844
Producer[0] adds the created component to the root component 109769 0.00219538
Producer[0] creates component 2444922 0.04889844
Producer[0] adds the created component to the root component 110356 0.00220712
Producer[0] creates component 2444922 0.04889844
Producer[0] adds the created component to the root component 110943 0.00221886
Producer[0] creates component 2444922 0.04889844
Producer[0] adds the created component to a leaf component 125502 0.00251004
Producer[0] creates component 2444922 0.04889844
Producer[0] adds the created component to a leaf component 111089 0.00222178
Producer[0] creates component 2444922 0.04889844
Producer[0] adds the created component to a leaf component 111612 0.00223224
Producer[0] creates component 2444922 0.04889844
Producer[0] adds the created component to a leaf component 112263 0.00224526
Producer[0] creates component 2444922 0.04889844
Producer[0] adds the created component to a leaf component 112786 0.00225572
Producer[0] updates the root component name. 46961 0.00093922
Producer[0] updates the root component expiration time. 38173 0.00076346
Producer[0] updates the root component other information field. 47470 0.0009494
Producer[0] updates the root component price. 38908 0.00077816
Producer[0] sends the root component to market 157022 0.00314044
Account[1] adds offer of 40000 tokens for the component 119138 0.00238276
Account[2] adds offer of 40000 tokens for the component 104138 0.00208276
Account[3] adds offer of 40000 tokens for the component 104138 0.00208276
Account[4] adds offer of 40000 tokens for the component 104138 0.00208276
Account[5] adds offer of 40000 tokens for the component 104138 0.00208276
Account[6] adds offer of 40000 tokens for the component 104138 0.00208276
Account[7] adds offer of 40000 tokens for the component 104138 0.00208276
Account[8] adds offer of 40000 tokens for the component 104138 0.00208276
Account[9] adds offer of 40000 tokens for the component 104138 0.00208276
Account[10] removes it's offer for the component 41242 0.00082484
Owner rejects 2 offersfor the component 43164 0.00086328
Owner rejects 2 offersfor the component 43164 0.00086328
Owner rejects 2 offersfor the component 43164 0.00086328
Owner rejects 2 offersfor the component 43164 0.00086328
Owner accepts offer for the component 91460 0.0018292
New Owner (Accounts[5]) updates the price as he wants 38908 0.00077816
New Owner (Accounts[5]) decides to sell the component 157022 0.00314044
New Owner (Accounts[5]) decides to remove the component from market 52196 0.00104392
New Owner (Accounts[5]) decides to remove a child component from root component 63563 0.00127126
New Owner (Accounts[5]) decides to flag new root component. 38072 0.00076144
New Owner (Accounts[5]) decides to submit the new root component for recycling. 41077 0.00082154
Accounts[3] decides to recycle the submitted component. 81634 0.00163268
Accounts[5] flags component as broken. 38072 0.00076144
Accounts[2] registred as repairer. 91577 0.00183154
Accounts[0] confirmed Account[2] as repairer. 32654 0.00065308
Accounts[2] repairs the component. 35360 0.0007072
Accounts[5] decides to submit the rootComponent for recycling. 41077 0.00082154
Accounts[5] decides to destroy the rootComponent. 66923 0.00133846
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.