-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gas-report
181 lines (181 loc) · 21.2 KB
/
.gas-report
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
| lib/openzeppelin-contracts/contracts/mocks/token/ERC20Mock.sol:ERC20Mock contract | | | | | |
|-----------------------------------------------------------------------------------|-----------------|-------|--------|-------|---------|
| Deployment Cost | Deployment Size | | | | |
| 794363 | 3978 | | | | |
| Function Name | min | avg | median | max | # calls |
| approve | 45894 | 46004 | 45942 | 46266 | 768 |
| balanceOf | 533 | 533 | 533 | 533 | 256 |
| mint | 68205 | 68205 | 68205 | 68205 | 33 |
| lib/openzeppelin-contracts/contracts/proxy/ERC1967/ERC1967Proxy.sol:ERC1967Proxy contract | | | | | |
|-------------------------------------------------------------------------------------------|-----------------|--------|--------|--------|---------|
| Deployment Cost | Deployment Size | | | | |
| 240290 | 958 | | | | |
| Function Name | min | avg | median | max | # calls |
| DEFAULT_ADMIN_ROLE | 5502 | 5660 | 5739 | 5739 | 768 |
| FULFILLER_ROLE | 738 | 738 | 738 | 738 | 526 |
| OPERATOR_ROLE | 1635 | 1635 | 1635 | 1635 | 9 |
| allowance | 3891 | 3891 | 3891 | 3891 | 256 |
| approve | 30517 | 50675 | 50657 | 51017 | 2562 |
| balanceOf | 1042 | 2919 | 1547 | 10047 | 4241 |
| burn(address,uint256) | 35841 | 42376 | 43955 | 57175 | 1280 |
| burn(uint256) | 35203 | 39394 | 39441 | 43906 | 512 |
| burningCurrentLimitOf | 1481 | 2895 | 1481 | 7908 | 1310 |
| burningMaxLimitOf | 1608 | 1998 | 1608 | 3608 | 1310 |
| cancel | 28614 | 47026 | 39479 | 73080 | 768 |
| checkTransferRestricted | 4664 | 10368 | 7872 | 15583 | 1026 |
| decimals | 5211 | 5886 | 5211 | 7236 | 3 |
| deposit(address,uint256,address) | 27207 | 72034 | 29554 | 160023 | 769 |
| deposit(uint256,address) | 100794 | 101117 | 100830 | 135270 | 258 |
| fulfill | 28790 | 62375 | 57772 | 105571 | 1024 |
| getApprovedReceiver | 858 | 858 | 858 | 858 | 256 |
| getApprovedSender | 821 | 821 | 821 | 821 | 256 |
| getFee | 18855 | 18855 | 18855 | 18855 | 256 |
| getRouter | 889 | 914 | 889 | 7389 | 257 |
| grantRole | 55757 | 55808 | 55757 | 55888 | 23 |
| isBlacklisted | 1917 | 3398 | 3191 | 5087 | 2304 |
| mint(address,uint256) | 35393 | 81154 | 87876 | 97483 | 2472 |
| mint(address,uint256,address) | 26826 | 71693 | 29176 | 159759 | 769 |
| mintingCurrentLimitOf | 1305 | 5226 | 7726 | 7726 | 1310 |
| mintingMaxLimitOf | 818 | 1990 | 2818 | 2818 | 1310 |
| nextTicket | 3174 | 3174 | 3174 | 3174 | 1 |
| pause | 28420 | 40049 | 40049 | 51679 | 2 |
| paused | 741 | 741 | 741 | 741 | 2 |
| paymentRecipient | 629 | 629 | 629 | 629 | 255 |
| paymentTokenOracle | 950 | 1071 | 1071 | 1193 | 512 |
| previewDeposit(address,uint256) | 7551 | 16862 | 21499 | 21750 | 768 |
| previewDeposit(uint256) | 23141 | 23141 | 23141 | 23141 | 256 |
| previewMint | 21679 | 21697 | 21679 | 21930 | 256 |
| previewRedeem | 7904 | 19078 | 21849 | 22100 | 1280 |
| previewWithdraw | 7860 | 17251 | 21925 | 22176 | 768 |
| rebaseAdd | 34855 | 54562 | 54611 | 54755 | 256 |
| requestRedeem | 27220 | 185334 | 238046 | 238884 | 1025 |
| requestWithdraw | 27158 | 132571 | 27542 | 238941 | 513 |
| requests | 1947 | 1947 | 1947 | 1947 | 512 |
| rescue | 28942 | 48472 | 29591 | 75493 | 1024 |
| sendUsdPlus | 183256 | 184947 | 184797 | 185754 | 256 |
| setApprovedReceiver | 29010 | 41088 | 52699 | 53011 | 521 |
| setApprovedSender | 28636 | 40703 | 52304 | 52616 | 521 |
| setIssuerLimits | 60370 | 82619 | 87517 | 187091 | 470 |
| setPaymentRecipient | 28433 | 31660 | 28661 | 34835 | 511 |
| setPaymentTokenOracle | 28657 | 49107 | 52855 | 52855 | 3328 |
| setRouter | 28759 | 31970 | 28987 | 35124 | 513 |
| setTransferRestrictor | 28833 | 31081 | 30138 | 35178 | 1024 |
| setTreasury | 29627 | 32816 | 30396 | 35966 | 512 |
| totalSupply | 1005 | 1007 | 1005 | 1011 | 768 |
| transfer | 34904 | 50715 | 47767 | 69420 | 1796 |
| transferRestrictor | 1571 | 1571 | 1571 | 1571 | 256 |
| treasury | 1043 | 1043 | 1043 | 1043 | 256 |
| unpause | 28244 | 28860 | 28860 | 29476 | 2 |
| usdplus | 7393 | 7591 | 7591 | 7790 | 2 |
| src/TransferRestrictor.sol:TransferRestrictor contract | | | | | |
|--------------------------------------------------------|-----------------|-------|--------|-------|---------|
| Deployment Cost | Deployment Size | | | | |
| 1354284 | 6259 | | | | |
| Function Name | min | avg | median | max | # calls |
| isBlacklisted | 892 | 892 | 892 | 892 | 1024 |
| requireNotRestricted | 861 | 4416 | 4861 | 4874 | 8255 |
| restrict | 47206 | 47288 | 47218 | 47434 | 1024 |
| unrestrict | 25136 | 25136 | 25136 | 25136 | 512 |
| src/UsdPlus.sol:UsdPlus contract | | | | | |
|----------------------------------|-----------------|--------|--------|--------|---------|
| Deployment Cost | Deployment Size | | | | |
| 3743063 | 17252 | | | | |
| Function Name | min | avg | median | max | # calls |
| DEFAULT_ADMIN_ROLE | 941 | 941 | 941 | 941 | 512 |
| OPERATOR_ROLE | 1337 | 1337 | 1337 | 1337 | 9 |
| allowance | 3587 | 3587 | 3587 | 3587 | 256 |
| approve | 4369 | 24064 | 24269 | 24269 | 2818 |
| balanceOf | 1240 | 2159 | 1246 | 5323 | 3985 |
| burn(address,uint256) | 9680 | 20646 | 14686 | 42230 | 1536 |
| burn(uint256) | 9197 | 18068 | 18051 | 27132 | 1024 |
| burningCurrentLimitOf | 1180 | 2594 | 1180 | 7607 | 1310 |
| burningMaxLimitOf | 1307 | 1697 | 1307 | 3307 | 1310 |
| checkTransferRestricted | 3071 | 6697 | 4363 | 10778 | 1026 |
| decimals | 413 | 413 | 413 | 413 | 2 |
| grantRole | 29359 | 29359 | 29359 | 29359 | 9 |
| initialize | 118091 | 118091 | 118091 | 118091 | 44 |
| isBlacklisted | 1616 | 2465 | 2890 | 2890 | 1536 |
| mint | 9232 | 53799 | 61695 | 71230 | 3240 |
| mintingCurrentLimitOf | 1004 | 4925 | 7425 | 7425 | 1310 |
| mintingMaxLimitOf | 517 | 1689 | 2517 | 2517 | 1310 |
| rebaseAdd | 8673 | 28495 | 28573 | 28573 | 256 |
| setIssuerLimits | 38168 | 55906 | 60638 | 160644 | 470 |
| setTransferRestrictor | 2833 | 7419 | 8948 | 8948 | 1024 |
| setTreasury | 3627 | 6681 | 6681 | 9736 | 512 |
| totalSupply | 707 | 709 | 707 | 713 | 768 |
| transfer | 8755 | 27581 | 29145 | 42672 | 1796 |
| transferFrom | 25905 | 43510 | 47005 | 47232 | 1538 |
| transferRestrictor | 1273 | 1273 | 1273 | 1273 | 256 |
| treasury | 745 | 745 | 745 | 745 | 256 |
| src/UsdPlusMinter.sol:UsdPlusMinter contract | | | | | |
|----------------------------------------------|-----------------|-------|--------|--------|---------|
| Deployment Cost | Deployment Size | | | | |
| 1574364 | 7187 | | | | |
| Function Name | min | avg | median | max | # calls |
| deposit | 708 | 46994 | 2971 | 137917 | 769 |
| initialize | 94793 | 94793 | 94793 | 94793 | 10 |
| mint | 327 | 46653 | 2593 | 137653 | 769 |
| paymentRecipient | 331 | 331 | 331 | 331 | 255 |
| paymentTokenOracle | 649 | 649 | 649 | 649 | 256 |
| previewDeposit | 2746 | 15057 | 21195 | 21446 | 768 |
| previewMint | 21375 | 21393 | 21375 | 21626 | 256 |
| setPaymentRecipient | 2424 | 5508 | 2441 | 8605 | 511 |
| setPaymentTokenOracle | 2517 | 21365 | 26097 | 26097 | 1280 |
| usdplus | 2595 | 2595 | 2595 | 2595 | 1 |
| src/UsdPlusRedeemer.sol:UsdPlusRedeemer contract | | | | | |
|--------------------------------------------------|-----------------|--------|--------|--------|---------|
| Deployment Cost | Deployment Size | | | | |
| 2829787 | 13027 | | | | |
| Function Name | min | avg | median | max | # calls |
| DEFAULT_ADMIN_ROLE | 704 | 704 | 704 | 704 | 256 |
| FULFILLER_ROLE | 440 | 440 | 440 | 440 | 526 |
| cancel | 2614 | 27063 | 13413 | 65359 | 768 |
| fulfill | 2790 | 42935 | 31586 | 105973 | 1024 |
| grantRole | 29228 | 29228 | 29228 | 29228 | 14 |
| initialize | 97467 | 97467 | 97467 | 97467 | 14 |
| nextTicket | 2876 | 2876 | 2876 | 2876 | 1 |
| paymentTokenOracle | 892 | 892 | 892 | 892 | 256 |
| previewRedeem | 3099 | 17874 | 21545 | 21796 | 1280 |
| previewWithdraw | 3055 | 15447 | 21621 | 21872 | 768 |
| requestRedeem | 563 | 162130 | 216142 | 216620 | 1025 |
| requestWithdraw | 501 | 108167 | 520 | 216677 | 513 |
| requests | 1628 | 1628 | 1628 | 1628 | 512 |
| setPaymentTokenOracle | 2693 | 23289 | 26254 | 26254 | 2048 |
| usdplus | 2992 | 2992 | 2992 | 2992 | 1 |
| src/WrappedUsdPlus.sol:WrappedUsdPlus contract | | | | | |
|------------------------------------------------|-----------------|--------|--------|--------|---------|
| Deployment Cost | Deployment Size | | | | |
| 3494062 | 16099 | | | | |
| Function Name | min | avg | median | max | # calls |
| balanceOf | 741 | 741 | 741 | 741 | 256 |
| decimals | 2438 | 2438 | 2438 | 2438 | 1 |
| deposit | 79434 | 79699 | 79434 | 113634 | 258 |
| initialize | 176329 | 176329 | 176329 | 176329 | 2 |
| isBlacklisted | 3512 | 4361 | 4786 | 4786 | 768 |
| previewDeposit | 18340 | 18340 | 18340 | 18340 | 256 |
| transfer | 19196 | 27820 | 21378 | 42888 | 768 |
| src/bridge/CCIPWaypoint.sol:CCIPWaypoint contract | | | | | |
|---------------------------------------------------|-----------------|--------|--------|--------|---------|
| Deployment Cost | Deployment Size | | | | |
| 2155635 | 9885 | | | | |
| Function Name | min | avg | median | max | # calls |
| ccipReceive | 37032 | 37078 | 37032 | 37259 | 256 |
| getApprovedReceiver | 557 | 557 | 557 | 557 | 256 |
| getApprovedSender | 520 | 520 | 520 | 520 | 256 |
| getFee | 14039 | 14039 | 14039 | 14039 | 256 |
| getRouter | 591 | 598 | 591 | 2591 | 257 |
| initialize | 97369 | 97369 | 97369 | 97369 | 9 |
| pause | 2554 | 14187 | 14187 | 25820 | 2 |
| paused | 443 | 443 | 443 | 443 | 2 |
| rescue | 2465 | 23014 | 2564 | 53390 | 1024 |
| sendUsdPlus | 202379 | 204739 | 204594 | 205502 | 256 |
| setApprovedReceiver | 2858 | 14757 | 26554 | 26554 | 521 |
| setApprovedSender | 2484 | 14373 | 26159 | 26159 | 521 |
| setRouter | 2750 | 5816 | 2782 | 8894 | 513 |
| unpause | 2378 | 5397 | 5397 | 8417 | 2 |
| src/mocks/CCIPRouterMock.sol:CCIPRouterMock contract | | | | | |
|------------------------------------------------------|-----------------|------|--------|------|---------|
| Deployment Cost | Deployment Size | | | | |
| 819043 | 3591 | | | | |
| Function Name | min | avg | median | max | # calls |
| getFee | 3760 | 3760 | 3760 | 3760 | 512 |