@layerzerolabs/oft-upgradeable-evm-contracts 0.2.96 → 0.2.98
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +6 -6
- package/.turbo/turbo-test.log +234 -234
- package/package.json +14 -14
package/.turbo/turbo-build.log
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
✅ forge-1.3.6-hardhat-2.26.3
|
|
13
13
|
🔧 hardhat version: 2.26.3
|
|
14
14
|
$ docker image inspect --format {{.Id}} 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3
|
|
15
|
-
(node:
|
|
15
|
+
(node:46705) [MODULE_TYPELESS_PACKAGE_JSON] Warning: Module type of file:///home/runner/work/monorepo-internal/monorepo-internal/configs/vm-tooling/values/docker-image-repo.ts is not specified and it doesn't parse as CommonJS.
|
|
16
16
|
Reparsing as ES module because module syntax was detected. This incurs a performance overhead.
|
|
17
17
|
To eliminate this warning, add "type": "module" to /home/runner/work/monorepo-internal/monorepo-internal/package.json.
|
|
18
18
|
(Use `node --trace-warnings ...` to show where the warning was created)
|
|
@@ -70,7 +70,7 @@ Warning: Contract code size is 27524 bytes and exceeds 24576 bytes (a limit intr
|
|
|
70
70
|
|
|
71
71
|
|
|
72
72
|
Successfully compiled 76 Solidity files
|
|
73
|
-
⏳ hardhat compile --config /hardhat/hardhat.default.config.js:
|
|
73
|
+
⏳ hardhat compile --config /hardhat/hardhat.default.config.js: 13.338s
|
|
74
74
|
WARN Issue while reading "/home/runner/work/monorepo-internal/monorepo-internal/.npmrc". Failed to replace env in config: ${NPM_TOKEN}
|
|
75
75
|
|
|
76
76
|
> @layerzerolabs/oft-upgradeable-evm-contracts@0.0.0 compile:zksync /home/runner/work/monorepo-internal/monorepo-internal/apps/oft-app/contracts/evm/upgradeable
|
|
@@ -80,7 +80,7 @@ Successfully compiled 76 Solidity files
|
|
|
80
80
|
✅ forge-1.3.6-hardhat-2.26.3
|
|
81
81
|
🔧 hardhat version: 2.26.3
|
|
82
82
|
$ docker image inspect --format {{.Id}} 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3
|
|
83
|
-
(node:
|
|
83
|
+
(node:50815) [MODULE_TYPELESS_PACKAGE_JSON] Warning: Module type of file:///home/runner/work/monorepo-internal/monorepo-internal/configs/vm-tooling/values/docker-image-repo.ts is not specified and it doesn't parse as CommonJS.
|
|
84
84
|
Reparsing as ES module because module syntax was detected. This incurs a performance overhead.
|
|
85
85
|
To eliminate this warning, add "type": "module" to /home/runner/work/monorepo-internal/monorepo-internal/package.json.
|
|
86
86
|
(Use `node --trace-warnings ...` to show where the warning was created)
|
|
@@ -92,7 +92,7 @@ The zksolc compiler version in your Hardhat config file (1.3.22) is not the late
|
|
|
92
92
|
Compiling contracts for ZKsync Era with zksolc v1.3.22 and zkvm-solc v0.8.23-1.0.1
|
|
93
93
|
Compiling 76 Solidity files
|
|
94
94
|
Successfully compiled 76 Solidity files
|
|
95
|
-
⏳ hardhat compile --config /hardhat/hardhat.default.config.js --network zksync-mainnet: 1:
|
|
95
|
+
⏳ hardhat compile --config /hardhat/hardhat.default.config.js --network zksync-mainnet: 1:40.220 (m:ss.mmm)
|
|
96
96
|
WARN Issue while reading "/home/runner/work/monorepo-internal/monorepo-internal/.npmrc". Failed to replace env in config: ${NPM_TOKEN}
|
|
97
97
|
|
|
98
98
|
> @layerzerolabs/oft-upgradeable-evm-contracts@0.0.0 compile:tron /home/runner/work/monorepo-internal/monorepo-internal/apps/oft-app/contracts/evm/upgradeable
|
|
@@ -102,7 +102,7 @@ Successfully compiled 76 Solidity files
|
|
|
102
102
|
✅ forge-1.3.6-hardhat-2.26.3
|
|
103
103
|
🔧 hardhat version: 2.26.3
|
|
104
104
|
$ docker image inspect --format {{.Id}} 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3
|
|
105
|
-
(node:
|
|
105
|
+
(node:73752) [MODULE_TYPELESS_PACKAGE_JSON] Warning: Module type of file:///home/runner/work/monorepo-internal/monorepo-internal/configs/vm-tooling/values/docker-image-repo.ts is not specified and it doesn't parse as CommonJS.
|
|
106
106
|
Reparsing as ES module because module syntax was detected. This incurs a performance overhead.
|
|
107
107
|
To eliminate this warning, add "type": "module" to /home/runner/work/monorepo-internal/monorepo-internal/package.json.
|
|
108
108
|
(Use `node --trace-warnings ...` to show where the warning was created)
|
|
@@ -163,4 +163,4 @@ Warning: Contract code size is 29394 bytes and exceeds 24576 bytes (a limit intr
|
|
|
163
163
|
|
|
164
164
|
|
|
165
165
|
Successfully compiled 76 Solidity files
|
|
166
|
-
⏳ hardhat compile --config /hardhat/hardhat.default.config.js --network tron-mainnet:
|
|
166
|
+
⏳ hardhat compile --config /hardhat/hardhat.default.config.js --network tron-mainnet: 43.842s
|
package/.turbo/turbo-test.log
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
✅ forge-1.3.6-hardhat-2.26.3
|
|
6
6
|
🔧 forge version: 1.3.6
|
|
7
7
|
$ docker image inspect --format {{.Id}} 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3
|
|
8
|
-
(node:
|
|
8
|
+
(node:90169) [MODULE_TYPELESS_PACKAGE_JSON] Warning: Module type of file:///home/runner/work/monorepo-internal/monorepo-internal/configs/vm-tooling/values/docker-image-repo.ts is not specified and it doesn't parse as CommonJS.
|
|
9
9
|
Reparsing as ES module because module syntax was detected. This incurs a performance overhead.
|
|
10
10
|
To eliminate this warning, add "type": "module" to /home/runner/work/monorepo-internal/monorepo-internal/package.json.
|
|
11
11
|
(Use `node --trace-warnings ...` to show where the warning was created)
|
|
@@ -13,200 +13,21 @@ To eliminate this warning, add "type": "module" to /home/runner/work/monorepo-in
|
|
|
13
13
|
👤 Running container as UID:GID 1001:1001
|
|
14
14
|
$ docker run --rm --add-host=host.docker.internal:host-gateway -e LOCAL_UID=1001 -e LOCAL_GID=1001 -v /home/runner/work/monorepo-internal/monorepo-internal:/workspace -w /workspace/apps/oft-app/contracts/evm/upgradeable 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3 forge test
|
|
15
15
|
Compiling 185 files with Solc 0.8.22
|
|
16
|
-
Solc 0.8.22 finished in
|
|
16
|
+
Solc 0.8.22 finished in 45.05s
|
|
17
17
|
Compiler run successful!
|
|
18
18
|
|
|
19
|
-
Ran 39 tests for test/OFTNativeExtendedRBAC.t.sol:OFTNativeExtendedRBACTest
|
|
20
|
-
[PASS] test_approvalRequired() (gas: 13426)
|
|
21
|
-
[PASS] test_credit() (gas: 62369)
|
|
22
|
-
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 65933, ~: 65954)
|
|
23
|
-
[PASS] test_credit_Revert_CreditFailed() (gas: 91478)
|
|
24
|
-
[PASS] test_debit() (gas: 36831)
|
|
25
|
-
[PASS] test_debit_Dust() (gas: 76272)
|
|
26
|
-
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 79543, ~: 79886)
|
|
27
|
-
[PASS] test_debit_PushesFees() (gas: 101339)
|
|
28
|
-
[PASS] test_debit_Revert_SlippageExceeded() (gas: 54229)
|
|
29
|
-
[PASS] test_debit_SmallAmount_DustOnly() (gas: 76226)
|
|
30
|
-
[PASS] test_debit_WithFee() (gas: 101145)
|
|
31
|
-
[PASS] test_debit_WithFee_Dust() (gas: 102376)
|
|
32
|
-
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 105590, ~: 107585)
|
|
33
|
-
[PASS] test_initialize() (gas: 22406)
|
|
34
|
-
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92778)
|
|
35
|
-
[PASS] test_pause_unpause() (gas: 61117)
|
|
36
|
-
[PASS] test_quoteOFT() (gas: 70779)
|
|
37
|
-
[PASS] test_quoteOFT_GloballyDisabled() (gas: 80649)
|
|
38
|
-
[PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59220)
|
|
39
|
-
[PASS] test_quoteOFT_Paused() (gas: 56703)
|
|
40
|
-
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 97744)
|
|
41
|
-
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 160139)
|
|
42
|
-
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 137860, ~: 137697)
|
|
43
|
-
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84387)
|
|
44
|
-
[PASS] test_rateLimit_Inflow() (gas: 87713)
|
|
45
|
-
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 80123)
|
|
46
|
-
[PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 116713)
|
|
47
|
-
[PASS] test_send() (gas: 352734)
|
|
48
|
-
[PASS] test_send_PushesFees() (gas: 415282)
|
|
49
|
-
[PASS] test_send_Revert_FeeTransferFailed() (gas: 157067)
|
|
50
|
-
[PASS] test_send_Revert_IncorrectMessageValue_TooHigh() (gas: 30287)
|
|
51
|
-
[PASS] test_send_Revert_IncorrectMessageValue_TooLow() (gas: 30257)
|
|
52
|
-
[PASS] test_send_Revert_IncorrectMessageValue_ZeroValue() (gas: 22753)
|
|
53
|
-
[PASS] test_send_Revert_MsgInspection() (gas: 221169)
|
|
54
|
-
[PASS] test_send_WithFee() (gas: 415240)
|
|
55
|
-
[PASS] test_setFeeDeposit() (gas: 28425)
|
|
56
|
-
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22627)
|
|
57
|
-
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38941, ~: 39011)
|
|
58
|
-
[PASS] test_token() (gas: 13483)
|
|
59
|
-
Suite result: ok. 39 passed; 0 failed; 0 skipped; finished in 970.73ms (1.90s CPU time)
|
|
60
|
-
|
|
61
|
-
Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACRedeemIssueTest
|
|
62
|
-
[PASS] test_credit() (gas: 89907)
|
|
63
|
-
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93299, ~: 93339)
|
|
64
|
-
[PASS] test_debit() (gas: 98305)
|
|
65
|
-
[PASS] test_debit_Dust() (gas: 139763)
|
|
66
|
-
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 142478, ~: 143477)
|
|
67
|
-
[PASS] test_debit_PushesFees() (gas: 165812)
|
|
68
|
-
[PASS] test_debit_Revert_SlippageExceeded() (gas: 131894)
|
|
69
|
-
[PASS] test_debit_SmallAmount_DustOnly() (gas: 139827)
|
|
70
|
-
[PASS] test_debit_WithFee() (gas: 165286)
|
|
71
|
-
[PASS] test_debit_WithFee_Dust() (gas: 165900)
|
|
72
|
-
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 168550, ~: 171220)
|
|
73
|
-
[PASS] test_initialize() (gas: 24722)
|
|
74
|
-
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
|
|
75
|
-
[PASS] test_pause_unpause() (gas: 130445)
|
|
76
|
-
[PASS] test_quoteOFT() (gas: 70712)
|
|
77
|
-
[PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
|
|
78
|
-
[PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59195)
|
|
79
|
-
[PASS] test_quoteOFT_Paused() (gas: 56570)
|
|
80
|
-
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 185614)
|
|
81
|
-
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 233430)
|
|
82
|
-
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 200500, ~: 200315)
|
|
83
|
-
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84276)
|
|
84
|
-
[PASS] test_rateLimit_Inflow() (gas: 108772)
|
|
85
|
-
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
|
|
86
|
-
[PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 179385)
|
|
87
|
-
[PASS] test_send() (gas: 400494)
|
|
88
|
-
[PASS] test_send_Revert_MsgInspection() (gas: 308847)
|
|
89
|
-
[PASS] test_send_WithFee() (gas: 477358)
|
|
90
|
-
[PASS] test_setFeeDeposit() (gas: 28359)
|
|
91
|
-
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
|
|
92
|
-
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38856, ~: 38967)
|
|
93
|
-
Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 983.12ms (2.43s CPU time)
|
|
94
|
-
|
|
95
|
-
Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACCrosschainTest
|
|
96
|
-
[PASS] test_credit() (gas: 89874)
|
|
97
|
-
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93178, ~: 93306)
|
|
98
|
-
[PASS] test_debit() (gas: 98332)
|
|
99
|
-
[PASS] test_debit_Dust() (gas: 139763)
|
|
100
|
-
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 142843, ~: 143477)
|
|
101
|
-
[PASS] test_debit_PushesFees() (gas: 165812)
|
|
102
|
-
[PASS] test_debit_Revert_SlippageExceeded() (gas: 131894)
|
|
103
|
-
[PASS] test_debit_SmallAmount_DustOnly() (gas: 139827)
|
|
104
|
-
[PASS] test_debit_WithFee() (gas: 165286)
|
|
105
|
-
[PASS] test_debit_WithFee_Dust() (gas: 165900)
|
|
106
|
-
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 169065, ~: 171220)
|
|
107
|
-
[PASS] test_initialize() (gas: 24722)
|
|
108
|
-
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
|
|
109
|
-
[PASS] test_pause_unpause() (gas: 130472)
|
|
110
|
-
[PASS] test_quoteOFT() (gas: 70712)
|
|
111
|
-
[PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
|
|
112
|
-
[PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59195)
|
|
113
|
-
[PASS] test_quoteOFT_Paused() (gas: 56570)
|
|
114
|
-
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 185667)
|
|
115
|
-
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 233430)
|
|
116
|
-
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 200473, ~: 200315)
|
|
117
|
-
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84276)
|
|
118
|
-
[PASS] test_rateLimit_Inflow() (gas: 108739)
|
|
119
|
-
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
|
|
120
|
-
[PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 179385)
|
|
121
|
-
[PASS] test_send() (gas: 400527)
|
|
122
|
-
[PASS] test_send_Revert_MsgInspection() (gas: 308880)
|
|
123
|
-
[PASS] test_send_WithFee() (gas: 477358)
|
|
124
|
-
[PASS] test_setFeeDeposit() (gas: 28359)
|
|
125
|
-
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
|
|
126
|
-
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38871, ~: 38967)
|
|
127
|
-
Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 1.02s (3.37s CPU time)
|
|
128
|
-
|
|
129
|
-
Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACTest
|
|
130
|
-
[PASS] test_credit() (gas: 89871)
|
|
131
|
-
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93027, ~: 93303)
|
|
132
|
-
[PASS] test_debit() (gas: 98327)
|
|
133
|
-
[PASS] test_debit_Dust() (gas: 139747)
|
|
134
|
-
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 142254, ~: 143461)
|
|
135
|
-
[PASS] test_debit_PushesFees() (gas: 165796)
|
|
136
|
-
[PASS] test_debit_Revert_SlippageExceeded() (gas: 131894)
|
|
137
|
-
[PASS] test_debit_SmallAmount_DustOnly() (gas: 139811)
|
|
138
|
-
[PASS] test_debit_WithFee() (gas: 165270)
|
|
139
|
-
[PASS] test_debit_WithFee_Dust() (gas: 165884)
|
|
140
|
-
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 168665, ~: 171204)
|
|
141
|
-
[PASS] test_initialize() (gas: 24722)
|
|
142
|
-
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
|
|
143
|
-
[PASS] test_pause_unpause() (gas: 130467)
|
|
144
|
-
[PASS] test_quoteOFT() (gas: 70712)
|
|
145
|
-
[PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
|
|
146
|
-
[PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59195)
|
|
147
|
-
[PASS] test_quoteOFT_Paused() (gas: 56570)
|
|
148
|
-
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 185657)
|
|
149
|
-
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 233398)
|
|
150
|
-
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 200468, ~: 200299)
|
|
151
|
-
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84276)
|
|
152
|
-
[PASS] test_rateLimit_Inflow() (gas: 108736)
|
|
153
|
-
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
|
|
154
|
-
[PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 179369)
|
|
155
|
-
[PASS] test_send() (gas: 400518)
|
|
156
|
-
[PASS] test_send_Revert_MsgInspection() (gas: 308871)
|
|
157
|
-
[PASS] test_send_WithFee() (gas: 477338)
|
|
158
|
-
[PASS] test_setFeeDeposit() (gas: 28359)
|
|
159
|
-
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
|
|
160
|
-
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38871, ~: 38967)
|
|
161
|
-
Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 1.02s (2.66s CPU time)
|
|
162
|
-
|
|
163
|
-
Ran 32 tests for test/OFTBurnSelfMintExtendedRBAC.t.sol:OFTBurnSelfMintExtendedRBACTest
|
|
164
|
-
[PASS] test_credit() (gas: 89873)
|
|
165
|
-
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93097, ~: 93305)
|
|
166
|
-
[PASS] test_debit() (gas: 120710)
|
|
167
|
-
[PASS] test_debit_Dust() (gas: 143616)
|
|
168
|
-
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 145858, ~: 146486)
|
|
169
|
-
[PASS] test_debit_PushesFees() (gas: 164384)
|
|
170
|
-
[PASS] test_debit_Revert_SlippageExceeded() (gas: 131872)
|
|
171
|
-
[PASS] test_debit_SmallAmount_DustOnly() (gas: 143579)
|
|
172
|
-
[PASS] test_debit_TokensTransferredToSelfThenBurned() (gas: 122517)
|
|
173
|
-
[PASS] test_debit_WithFee() (gas: 166449)
|
|
174
|
-
[PASS] test_debit_WithFee_Dust() (gas: 164455)
|
|
175
|
-
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 166686, ~: 168645)
|
|
176
|
-
[PASS] test_initialize() (gas: 24700)
|
|
177
|
-
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
|
|
178
|
-
[PASS] test_pause_unpause() (gas: 151598)
|
|
179
|
-
[PASS] test_quoteOFT() (gas: 70712)
|
|
180
|
-
[PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
|
|
181
|
-
[PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59173)
|
|
182
|
-
[PASS] test_quoteOFT_Paused() (gas: 56570)
|
|
183
|
-
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 242240)
|
|
184
|
-
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 268746)
|
|
185
|
-
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 192060, ~: 191921)
|
|
186
|
-
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84254)
|
|
187
|
-
[PASS] test_rateLimit_Inflow() (gas: 108738)
|
|
188
|
-
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
|
|
189
|
-
[PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 175225)
|
|
190
|
-
[PASS] test_send() (gas: 387136)
|
|
191
|
-
[PASS] test_send_Revert_MsgInspection() (gas: 335267)
|
|
192
|
-
[PASS] test_send_WithFee() (gas: 462592)
|
|
193
|
-
[PASS] test_setFeeDeposit() (gas: 28445)
|
|
194
|
-
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
|
|
195
|
-
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38933, ~: 39034)
|
|
196
|
-
Suite result: ok. 32 passed; 0 failed; 0 skipped; finished in 1.12s (3.47s CPU time)
|
|
197
|
-
|
|
198
19
|
Ran 32 tests for test/OFTLockUnlockExtendedRBACAlt.t.sol:OFTLockUnlockExtendedRBACAltTest
|
|
199
20
|
[PASS] test_credit() (gas: 91882)
|
|
200
|
-
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ:
|
|
21
|
+
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 95109, ~: 95314)
|
|
201
22
|
[PASS] test_debit() (gas: 113036)
|
|
202
23
|
[PASS] test_debit_Dust() (gas: 137551)
|
|
203
|
-
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ:
|
|
24
|
+
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 139943, ~: 141029)
|
|
204
25
|
[PASS] test_debit_PushesFees() (gas: 163342)
|
|
205
26
|
[PASS] test_debit_Revert_SlippageExceeded() (gas: 133828)
|
|
206
27
|
[PASS] test_debit_SmallAmount_DustOnly() (gas: 137513)
|
|
207
28
|
[PASS] test_debit_WithFee() (gas: 163924)
|
|
208
29
|
[PASS] test_debit_WithFee_Dust() (gas: 163430)
|
|
209
|
-
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ:
|
|
30
|
+
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 162715, ~: 162567)
|
|
210
31
|
[PASS] test_initialize() (gas: 24656)
|
|
211
32
|
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92822)
|
|
212
33
|
[PASS] test_pause_unpause() (gas: 145524)
|
|
@@ -216,7 +37,7 @@ Ran 32 tests for test/OFTLockUnlockExtendedRBACAlt.t.sol:OFTLockUnlockExtendedRB
|
|
|
216
37
|
[PASS] test_quoteOFT_Paused() (gas: 56637)
|
|
217
38
|
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 200448)
|
|
218
39
|
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 242784)
|
|
219
|
-
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ:
|
|
40
|
+
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 198104, ~: 197912)
|
|
220
41
|
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84299)
|
|
221
42
|
[PASS] test_rateLimit_Inflow() (gas: 132710)
|
|
222
43
|
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 159652)
|
|
@@ -227,55 +48,56 @@ Ran 32 tests for test/OFTLockUnlockExtendedRBACAlt.t.sol:OFTLockUnlockExtendedRB
|
|
|
227
48
|
[PASS] test_send_WithFee() (gas: 516566)
|
|
228
49
|
[PASS] test_setFeeDeposit() (gas: 28423)
|
|
229
50
|
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22583)
|
|
230
|
-
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ:
|
|
231
|
-
Suite result: ok. 32 passed; 0 failed; 0 skipped; finished in
|
|
51
|
+
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38949, ~: 39012)
|
|
52
|
+
Suite result: ok. 32 passed; 0 failed; 0 skipped; finished in 471.44ms (1.30s CPU time)
|
|
232
53
|
|
|
233
|
-
Ran
|
|
234
|
-
[PASS] test_credit() (gas:
|
|
235
|
-
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ:
|
|
236
|
-
[PASS] test_debit() (gas:
|
|
237
|
-
[PASS] test_debit_Dust() (gas:
|
|
238
|
-
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ:
|
|
239
|
-
[PASS] test_debit_PushesFees() (gas:
|
|
240
|
-
[PASS] test_debit_Revert_SlippageExceeded() (gas:
|
|
241
|
-
[PASS] test_debit_SmallAmount_DustOnly() (gas:
|
|
242
|
-
[PASS]
|
|
243
|
-
[PASS]
|
|
244
|
-
[PASS]
|
|
245
|
-
[PASS]
|
|
246
|
-
[PASS]
|
|
247
|
-
[PASS]
|
|
248
|
-
[PASS]
|
|
249
|
-
[PASS]
|
|
250
|
-
[PASS]
|
|
251
|
-
[PASS]
|
|
252
|
-
[PASS]
|
|
253
|
-
[PASS]
|
|
254
|
-
[PASS]
|
|
255
|
-
[PASS]
|
|
256
|
-
[PASS]
|
|
257
|
-
[PASS]
|
|
258
|
-
[PASS]
|
|
259
|
-
[PASS]
|
|
260
|
-
[PASS]
|
|
261
|
-
[PASS]
|
|
262
|
-
[PASS]
|
|
263
|
-
[PASS]
|
|
264
|
-
[PASS]
|
|
265
|
-
|
|
54
|
+
Ran 32 tests for test/OFTBurnSelfMintExtendedRBAC.t.sol:OFTBurnSelfMintExtendedRBACTest
|
|
55
|
+
[PASS] test_credit() (gas: 89873)
|
|
56
|
+
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93248, ~: 93305)
|
|
57
|
+
[PASS] test_debit() (gas: 120710)
|
|
58
|
+
[PASS] test_debit_Dust() (gas: 143616)
|
|
59
|
+
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 145193, ~: 146486)
|
|
60
|
+
[PASS] test_debit_PushesFees() (gas: 164384)
|
|
61
|
+
[PASS] test_debit_Revert_SlippageExceeded() (gas: 131872)
|
|
62
|
+
[PASS] test_debit_SmallAmount_DustOnly() (gas: 143579)
|
|
63
|
+
[PASS] test_debit_TokensTransferredToSelfThenBurned() (gas: 122517)
|
|
64
|
+
[PASS] test_debit_WithFee() (gas: 166449)
|
|
65
|
+
[PASS] test_debit_WithFee_Dust() (gas: 164455)
|
|
66
|
+
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 166674, ~: 168645)
|
|
67
|
+
[PASS] test_initialize() (gas: 24700)
|
|
68
|
+
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
|
|
69
|
+
[PASS] test_pause_unpause() (gas: 151598)
|
|
70
|
+
[PASS] test_quoteOFT() (gas: 70712)
|
|
71
|
+
[PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
|
|
72
|
+
[PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59173)
|
|
73
|
+
[PASS] test_quoteOFT_Paused() (gas: 56570)
|
|
74
|
+
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 242240)
|
|
75
|
+
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 268746)
|
|
76
|
+
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 192074, ~: 191921)
|
|
77
|
+
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84254)
|
|
78
|
+
[PASS] test_rateLimit_Inflow() (gas: 108738)
|
|
79
|
+
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
|
|
80
|
+
[PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 175225)
|
|
81
|
+
[PASS] test_send() (gas: 387136)
|
|
82
|
+
[PASS] test_send_Revert_MsgInspection() (gas: 335267)
|
|
83
|
+
[PASS] test_send_WithFee() (gas: 462592)
|
|
84
|
+
[PASS] test_setFeeDeposit() (gas: 28445)
|
|
85
|
+
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
|
|
86
|
+
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38957, ~: 39034)
|
|
87
|
+
Suite result: ok. 32 passed; 0 failed; 0 skipped; finished in 499.43ms (1.51s CPU time)
|
|
266
88
|
|
|
267
89
|
Ran 32 tests for test/OFTBurnMintExtendedRBACAlt.t.sol:OFTBurnMintExtendedRBACAltTest
|
|
268
90
|
[PASS] test_credit() (gas: 89871)
|
|
269
|
-
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ:
|
|
91
|
+
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93359, ~: 93303)
|
|
270
92
|
[PASS] test_debit() (gas: 98327)
|
|
271
93
|
[PASS] test_debit_Dust() (gas: 141836)
|
|
272
|
-
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ:
|
|
94
|
+
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 144297, ~: 145461)
|
|
273
95
|
[PASS] test_debit_PushesFees() (gas: 167796)
|
|
274
96
|
[PASS] test_debit_Revert_SlippageExceeded() (gas: 133872)
|
|
275
97
|
[PASS] test_debit_SmallAmount_DustOnly() (gas: 141789)
|
|
276
98
|
[PASS] test_debit_WithFee() (gas: 165270)
|
|
277
99
|
[PASS] test_debit_WithFee_Dust() (gas: 167884)
|
|
278
|
-
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ:
|
|
100
|
+
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 170458, ~: 173204)
|
|
279
101
|
[PASS] test_initialize() (gas: 24700)
|
|
280
102
|
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
|
|
281
103
|
[PASS] test_pause_unpause() (gas: 132067)
|
|
@@ -285,7 +107,7 @@ Ran 32 tests for test/OFTBurnMintExtendedRBACAlt.t.sol:OFTBurnMintExtendedRBACAl
|
|
|
285
107
|
[PASS] test_quoteOFT_Paused() (gas: 56570)
|
|
286
108
|
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 187257)
|
|
287
109
|
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 235398)
|
|
288
|
-
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ:
|
|
110
|
+
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 202492, ~: 202299)
|
|
289
111
|
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84254)
|
|
290
112
|
[PASS] test_rateLimit_Inflow() (gas: 108824)
|
|
291
113
|
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 159696)
|
|
@@ -296,22 +118,22 @@ Ran 32 tests for test/OFTBurnMintExtendedRBACAlt.t.sol:OFTBurnMintExtendedRBACAl
|
|
|
296
118
|
[PASS] test_send_WithFee() (gas: 493959)
|
|
297
119
|
[PASS] test_setFeeDeposit() (gas: 28445)
|
|
298
120
|
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
|
|
299
|
-
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ:
|
|
300
|
-
Suite result: ok. 32 passed; 0 failed; 0 skipped; finished in
|
|
121
|
+
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38966, ~: 39034)
|
|
122
|
+
Suite result: ok. 32 passed; 0 failed; 0 skipped; finished in 515.32ms (1.52s CPU time)
|
|
301
123
|
|
|
302
124
|
Ran 33 tests for test/OFTBurnSelfMintExtendedRBACAlt.t.sol:OFTBurnSelfMintExtendedRBACAltTest
|
|
303
125
|
[PASS] test_credit() (gas: 89873)
|
|
304
|
-
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ:
|
|
126
|
+
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93134, ~: 93305)
|
|
305
127
|
[PASS] test_debit() (gas: 120710)
|
|
306
128
|
[PASS] test_debit_Dust() (gas: 145216)
|
|
307
|
-
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ:
|
|
129
|
+
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 147507, ~: 148086)
|
|
308
130
|
[PASS] test_debit_PushesFees() (gas: 165984)
|
|
309
131
|
[PASS] test_debit_Revert_SlippageExceeded() (gas: 133872)
|
|
310
132
|
[PASS] test_debit_SmallAmount_DustOnly() (gas: 145179)
|
|
311
133
|
[PASS] test_debit_TokensTransferredToSelfThenBurned() (gas: 122500)
|
|
312
134
|
[PASS] test_debit_WithFee() (gas: 166449)
|
|
313
135
|
[PASS] test_debit_WithFee_Dust() (gas: 166055)
|
|
314
|
-
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ:
|
|
136
|
+
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 168321, ~: 170245)
|
|
315
137
|
[PASS] test_initialize() (gas: 24700)
|
|
316
138
|
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
|
|
317
139
|
[PASS] test_pause_unpause() (gas: 153198)
|
|
@@ -321,7 +143,7 @@ Ran 33 tests for test/OFTBurnSelfMintExtendedRBACAlt.t.sol:OFTBurnSelfMintExtend
|
|
|
321
143
|
[PASS] test_quoteOFT_Paused() (gas: 56570)
|
|
322
144
|
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 243840)
|
|
323
145
|
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 270346)
|
|
324
|
-
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ:
|
|
146
|
+
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 193668, ~: 193521)
|
|
325
147
|
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84254)
|
|
326
148
|
[PASS] test_rateLimit_Inflow() (gas: 108826)
|
|
327
149
|
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 159696)
|
|
@@ -332,8 +154,186 @@ Ran 33 tests for test/OFTBurnSelfMintExtendedRBACAlt.t.sol:OFTBurnSelfMintExtend
|
|
|
332
154
|
[PASS] test_send_WithFee() (gas: 504694)
|
|
333
155
|
[PASS] test_setFeeDeposit() (gas: 28445)
|
|
334
156
|
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
|
|
335
|
-
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ:
|
|
336
|
-
Suite result: ok. 33 passed; 0 failed; 0 skipped; finished in
|
|
157
|
+
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38952, ~: 39034)
|
|
158
|
+
Suite result: ok. 33 passed; 0 failed; 0 skipped; finished in 528.05ms (1.62s CPU time)
|
|
159
|
+
|
|
160
|
+
Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACCrosschainTest
|
|
161
|
+
[PASS] test_credit() (gas: 89874)
|
|
162
|
+
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93139, ~: 93306)
|
|
163
|
+
[PASS] test_debit() (gas: 98332)
|
|
164
|
+
[PASS] test_debit_Dust() (gas: 139763)
|
|
165
|
+
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 142591, ~: 143477)
|
|
166
|
+
[PASS] test_debit_PushesFees() (gas: 165812)
|
|
167
|
+
[PASS] test_debit_Revert_SlippageExceeded() (gas: 131894)
|
|
168
|
+
[PASS] test_debit_SmallAmount_DustOnly() (gas: 139827)
|
|
169
|
+
[PASS] test_debit_WithFee() (gas: 165286)
|
|
170
|
+
[PASS] test_debit_WithFee_Dust() (gas: 165900)
|
|
171
|
+
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 168450, ~: 171220)
|
|
172
|
+
[PASS] test_initialize() (gas: 24722)
|
|
173
|
+
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
|
|
174
|
+
[PASS] test_pause_unpause() (gas: 130472)
|
|
175
|
+
[PASS] test_quoteOFT() (gas: 70712)
|
|
176
|
+
[PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
|
|
177
|
+
[PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59195)
|
|
178
|
+
[PASS] test_quoteOFT_Paused() (gas: 56570)
|
|
179
|
+
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 185667)
|
|
180
|
+
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 233430)
|
|
181
|
+
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 200496, ~: 200315)
|
|
182
|
+
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84276)
|
|
183
|
+
[PASS] test_rateLimit_Inflow() (gas: 108739)
|
|
184
|
+
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
|
|
185
|
+
[PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 179385)
|
|
186
|
+
[PASS] test_send() (gas: 400527)
|
|
187
|
+
[PASS] test_send_Revert_MsgInspection() (gas: 308880)
|
|
188
|
+
[PASS] test_send_WithFee() (gas: 477358)
|
|
189
|
+
[PASS] test_setFeeDeposit() (gas: 28359)
|
|
190
|
+
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
|
|
191
|
+
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38871, ~: 38967)
|
|
192
|
+
Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 528.15ms (1.41s CPU time)
|
|
193
|
+
|
|
194
|
+
Ran 39 tests for test/OFTNativeExtendedRBAC.t.sol:OFTNativeExtendedRBACTest
|
|
195
|
+
[PASS] test_approvalRequired() (gas: 13426)
|
|
196
|
+
[PASS] test_credit() (gas: 62369)
|
|
197
|
+
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 65938, ~: 65954)
|
|
198
|
+
[PASS] test_credit_Revert_CreditFailed() (gas: 91478)
|
|
199
|
+
[PASS] test_debit() (gas: 36831)
|
|
200
|
+
[PASS] test_debit_Dust() (gas: 76272)
|
|
201
|
+
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 79484, ~: 79886)
|
|
202
|
+
[PASS] test_debit_PushesFees() (gas: 101339)
|
|
203
|
+
[PASS] test_debit_Revert_SlippageExceeded() (gas: 54229)
|
|
204
|
+
[PASS] test_debit_SmallAmount_DustOnly() (gas: 76226)
|
|
205
|
+
[PASS] test_debit_WithFee() (gas: 101145)
|
|
206
|
+
[PASS] test_debit_WithFee_Dust() (gas: 102376)
|
|
207
|
+
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 105001, ~: 107585)
|
|
208
|
+
[PASS] test_initialize() (gas: 22406)
|
|
209
|
+
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92778)
|
|
210
|
+
[PASS] test_pause_unpause() (gas: 61117)
|
|
211
|
+
[PASS] test_quoteOFT() (gas: 70779)
|
|
212
|
+
[PASS] test_quoteOFT_GloballyDisabled() (gas: 80649)
|
|
213
|
+
[PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59220)
|
|
214
|
+
[PASS] test_quoteOFT_Paused() (gas: 56703)
|
|
215
|
+
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 97744)
|
|
216
|
+
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 160139)
|
|
217
|
+
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 137878, ~: 137703)
|
|
218
|
+
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84387)
|
|
219
|
+
[PASS] test_rateLimit_Inflow() (gas: 87713)
|
|
220
|
+
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 80123)
|
|
221
|
+
[PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 116713)
|
|
222
|
+
[PASS] test_send() (gas: 352734)
|
|
223
|
+
[PASS] test_send_PushesFees() (gas: 415282)
|
|
224
|
+
[PASS] test_send_Revert_FeeTransferFailed() (gas: 157067)
|
|
225
|
+
[PASS] test_send_Revert_IncorrectMessageValue_TooHigh() (gas: 30287)
|
|
226
|
+
[PASS] test_send_Revert_IncorrectMessageValue_TooLow() (gas: 30257)
|
|
227
|
+
[PASS] test_send_Revert_IncorrectMessageValue_ZeroValue() (gas: 22753)
|
|
228
|
+
[PASS] test_send_Revert_MsgInspection() (gas: 221169)
|
|
229
|
+
[PASS] test_send_WithFee() (gas: 415240)
|
|
230
|
+
[PASS] test_setFeeDeposit() (gas: 28425)
|
|
231
|
+
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22627)
|
|
232
|
+
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38886, ~: 39011)
|
|
233
|
+
[PASS] test_token() (gas: 13483)
|
|
234
|
+
Suite result: ok. 39 passed; 0 failed; 0 skipped; finished in 545.13ms (1.10s CPU time)
|
|
235
|
+
|
|
236
|
+
Ran 31 tests for test/OFTLockUnlockExtendedRBAC.t.sol:OFTLockUnlockExtendedRBACTest
|
|
237
|
+
[PASS] test_credit() (gas: 89882)
|
|
238
|
+
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93232, ~: 93314)
|
|
239
|
+
[PASS] test_debit() (gas: 113036)
|
|
240
|
+
[PASS] test_debit_Dust() (gas: 135880)
|
|
241
|
+
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 138486, ~: 138823)
|
|
242
|
+
[PASS] test_debit_PushesFees() (gas: 161342)
|
|
243
|
+
[PASS] test_debit_Revert_SlippageExceeded() (gas: 131850)
|
|
244
|
+
[PASS] test_debit_SmallAmount_DustOnly() (gas: 135931)
|
|
245
|
+
[PASS] test_debit_WithFee() (gas: 163924)
|
|
246
|
+
[PASS] test_debit_WithFee_Dust() (gas: 161430)
|
|
247
|
+
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 161654, ~: 160967)
|
|
248
|
+
[PASS] test_initialize() (gas: 24678)
|
|
249
|
+
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92822)
|
|
250
|
+
[PASS] test_pause_unpause() (gas: 143924)
|
|
251
|
+
[PASS] test_quoteOFT() (gas: 70757)
|
|
252
|
+
[PASS] test_quoteOFT_GloballyDisabled() (gas: 80605)
|
|
253
|
+
[PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59262)
|
|
254
|
+
[PASS] test_quoteOFT_Paused() (gas: 56637)
|
|
255
|
+
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 198848)
|
|
256
|
+
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 241184)
|
|
257
|
+
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 196075, ~: 195912)
|
|
258
|
+
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84321)
|
|
259
|
+
[PASS] test_rateLimit_Inflow() (gas: 130622)
|
|
260
|
+
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157652)
|
|
261
|
+
[PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 174915)
|
|
262
|
+
[PASS] test_send() (gas: 418929)
|
|
263
|
+
[PASS] test_send_Revert_MsgInspection() (gas: 325718)
|
|
264
|
+
[PASS] test_send_WithFee() (gas: 474453)
|
|
265
|
+
[PASS] test_setFeeDeposit() (gas: 28337)
|
|
266
|
+
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22583)
|
|
267
|
+
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38844, ~: 38945)
|
|
268
|
+
Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 545.22ms (1.70s CPU time)
|
|
269
|
+
|
|
270
|
+
Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACTest
|
|
271
|
+
[PASS] test_credit() (gas: 89871)
|
|
272
|
+
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 92901, ~: 93303)
|
|
273
|
+
[PASS] test_debit() (gas: 98327)
|
|
274
|
+
[PASS] test_debit_Dust() (gas: 139747)
|
|
275
|
+
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 142798, ~: 143461)
|
|
276
|
+
[PASS] test_debit_PushesFees() (gas: 165796)
|
|
277
|
+
[PASS] test_debit_Revert_SlippageExceeded() (gas: 131894)
|
|
278
|
+
[PASS] test_debit_SmallAmount_DustOnly() (gas: 139811)
|
|
279
|
+
[PASS] test_debit_WithFee() (gas: 165270)
|
|
280
|
+
[PASS] test_debit_WithFee_Dust() (gas: 165884)
|
|
281
|
+
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 169008, ~: 171204)
|
|
282
|
+
[PASS] test_initialize() (gas: 24722)
|
|
283
|
+
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
|
|
284
|
+
[PASS] test_pause_unpause() (gas: 130467)
|
|
285
|
+
[PASS] test_quoteOFT() (gas: 70712)
|
|
286
|
+
[PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
|
|
287
|
+
[PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59195)
|
|
288
|
+
[PASS] test_quoteOFT_Paused() (gas: 56570)
|
|
289
|
+
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 185657)
|
|
290
|
+
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 233398)
|
|
291
|
+
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 200461, ~: 200299)
|
|
292
|
+
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84276)
|
|
293
|
+
[PASS] test_rateLimit_Inflow() (gas: 108736)
|
|
294
|
+
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
|
|
295
|
+
[PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 179369)
|
|
296
|
+
[PASS] test_send() (gas: 400518)
|
|
297
|
+
[PASS] test_send_Revert_MsgInspection() (gas: 308871)
|
|
298
|
+
[PASS] test_send_WithFee() (gas: 477338)
|
|
299
|
+
[PASS] test_setFeeDeposit() (gas: 28359)
|
|
300
|
+
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
|
|
301
|
+
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38866, ~: 38967)
|
|
302
|
+
Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 653.86ms (1.45s CPU time)
|
|
303
|
+
|
|
304
|
+
Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACRedeemIssueTest
|
|
305
|
+
[PASS] test_credit() (gas: 89907)
|
|
306
|
+
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93060, ~: 93339)
|
|
307
|
+
[PASS] test_debit() (gas: 98305)
|
|
308
|
+
[PASS] test_debit_Dust() (gas: 139763)
|
|
309
|
+
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 142486, ~: 143477)
|
|
310
|
+
[PASS] test_debit_PushesFees() (gas: 165812)
|
|
311
|
+
[PASS] test_debit_Revert_SlippageExceeded() (gas: 131894)
|
|
312
|
+
[PASS] test_debit_SmallAmount_DustOnly() (gas: 139827)
|
|
313
|
+
[PASS] test_debit_WithFee() (gas: 165286)
|
|
314
|
+
[PASS] test_debit_WithFee_Dust() (gas: 165900)
|
|
315
|
+
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 168115, ~: 171220)
|
|
316
|
+
[PASS] test_initialize() (gas: 24722)
|
|
317
|
+
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
|
|
318
|
+
[PASS] test_pause_unpause() (gas: 130445)
|
|
319
|
+
[PASS] test_quoteOFT() (gas: 70712)
|
|
320
|
+
[PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
|
|
321
|
+
[PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59195)
|
|
322
|
+
[PASS] test_quoteOFT_Paused() (gas: 56570)
|
|
323
|
+
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 185614)
|
|
324
|
+
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 233430)
|
|
325
|
+
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 200502, ~: 200315)
|
|
326
|
+
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84276)
|
|
327
|
+
[PASS] test_rateLimit_Inflow() (gas: 108772)
|
|
328
|
+
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
|
|
329
|
+
[PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 179385)
|
|
330
|
+
[PASS] test_send() (gas: 400494)
|
|
331
|
+
[PASS] test_send_Revert_MsgInspection() (gas: 308847)
|
|
332
|
+
[PASS] test_send_WithFee() (gas: 477358)
|
|
333
|
+
[PASS] test_setFeeDeposit() (gas: 28359)
|
|
334
|
+
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
|
|
335
|
+
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38856, ~: 38967)
|
|
336
|
+
Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 653.94ms (1.30s CPU time)
|
|
337
337
|
|
|
338
|
-
Ran 9 test suites in
|
|
339
|
-
⏳ forge test:
|
|
338
|
+
Ran 9 test suites in 767.46ms (4.94s CPU time): 292 tests passed, 0 failed, 0 skipped (292 total tests)
|
|
339
|
+
⏳ forge test: 48.280s
|
package/package.json
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@layerzerolabs/oft-upgradeable-evm-contracts",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.98",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "LayerZero Labs reference EVM upgradeable OFT implementation",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"devDependencies": {
|
|
8
|
-
"@layerzerolabs/lz-evm-messagelib-v2": "3.0.
|
|
9
|
-
"@layerzerolabs/lz-evm-protocol-v2": "3.0.
|
|
10
|
-
"@layerzerolabs/lz-evm-v1-0.7": "3.0.
|
|
8
|
+
"@layerzerolabs/lz-evm-messagelib-v2": "3.0.168",
|
|
9
|
+
"@layerzerolabs/lz-evm-protocol-v2": "3.0.168",
|
|
10
|
+
"@layerzerolabs/lz-evm-v1-0.7": "3.0.168",
|
|
11
11
|
"@layerzerolabs/test-devtools-evm-foundry": "8.0.1",
|
|
12
12
|
"@layerzerolabs/toolbox-foundry": "^0.1.13",
|
|
13
13
|
"@openzeppelin/contracts": "^5.0.2",
|
|
14
14
|
"@openzeppelin/contracts-upgradeable": "^5.0.2",
|
|
15
15
|
"ethers": "^5.8.0",
|
|
16
16
|
"solhint": "^6.0.1",
|
|
17
|
-
"@layerzerolabs/
|
|
18
|
-
"@layerzerolabs/oapp-
|
|
19
|
-
"@layerzerolabs/oft-evm-contracts": "0.2.
|
|
20
|
-
"@layerzerolabs/
|
|
21
|
-
"@layerzerolabs/
|
|
22
|
-
"@layerzerolabs/tsup-configuration": "0.2.
|
|
23
|
-
"@layerzerolabs/typescript-configuration": "0.2.
|
|
24
|
-
"@layerzerolabs/utils-evm-contracts": "0.2.
|
|
25
|
-
"@layerzerolabs/
|
|
26
|
-
"@layerzerolabs/
|
|
17
|
+
"@layerzerolabs/test-utils-evm-contracts": "0.2.98",
|
|
18
|
+
"@layerzerolabs/oapp-evm-contracts": "0.2.98",
|
|
19
|
+
"@layerzerolabs/oft-evm-contracts": "0.2.98",
|
|
20
|
+
"@layerzerolabs/solhint-configuration": "0.2.98",
|
|
21
|
+
"@layerzerolabs/oapp-upgradeable-evm-contracts": "0.2.98",
|
|
22
|
+
"@layerzerolabs/tsup-configuration": "0.2.98",
|
|
23
|
+
"@layerzerolabs/typescript-configuration": "0.2.98",
|
|
24
|
+
"@layerzerolabs/utils-evm-contracts": "0.2.98",
|
|
25
|
+
"@layerzerolabs/vm-tooling-evm": "0.2.98",
|
|
26
|
+
"@layerzerolabs/utils-upgradeable-evm-contracts": "0.2.98"
|
|
27
27
|
},
|
|
28
28
|
"publishConfig": {
|
|
29
29
|
"access": "public",
|