@layerzerolabs/oft-upgradeable-evm-contracts 0.2.99 → 0.2.101
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-lint.log +1 -50
- package/.turbo/turbo-test.log +198 -198
- package/package.json +11 -11
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:270914) [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)
|
|
@@ -71,7 +71,7 @@ Warning: Contract code size is 27524 bytes and exceeds 24576 bytes (a limit intr
|
|
|
71
71
|
|
|
72
72
|
|
|
73
73
|
Successfully compiled 76 Solidity files
|
|
74
|
-
⏳ hardhat compile --config /hardhat/hardhat.default.config.js:
|
|
74
|
+
⏳ hardhat compile --config /hardhat/hardhat.default.config.js: 10.952s
|
|
75
75
|
WARN Issue while reading "/home/runner/work/monorepo-internal/monorepo-internal/.npmrc". Failed to replace env in config: ${NPM_TOKEN}
|
|
76
76
|
|
|
77
77
|
> @layerzerolabs/oft-upgradeable-evm-contracts@0.0.0 compile:zksync /home/runner/work/monorepo-internal/monorepo-internal/apps/oft-app/contracts/evm/upgradeable
|
|
@@ -81,7 +81,7 @@ Successfully compiled 76 Solidity files
|
|
|
81
81
|
✅ forge-1.3.6-hardhat-2.26.3
|
|
82
82
|
🔧 hardhat version: 2.26.3
|
|
83
83
|
$ 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
|
|
84
|
-
(node:
|
|
84
|
+
(node:272177) [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.
|
|
85
85
|
Reparsing as ES module because module syntax was detected. This incurs a performance overhead.
|
|
86
86
|
To eliminate this warning, add "type": "module" to /home/runner/work/monorepo-internal/monorepo-internal/package.json.
|
|
87
87
|
(Use `node --trace-warnings ...` to show where the warning was created)
|
|
@@ -94,7 +94,7 @@ The zksolc compiler version in your Hardhat config file (1.3.22) is not the late
|
|
|
94
94
|
Compiling contracts for ZKsync Era with zksolc v1.3.22 and zkvm-solc v0.8.23-1.0.1
|
|
95
95
|
Compiling 76 Solidity files
|
|
96
96
|
Successfully compiled 76 Solidity files
|
|
97
|
-
⏳ hardhat compile --config /hardhat/hardhat.default.config.js --network zksync-mainnet: 1:
|
|
97
|
+
⏳ hardhat compile --config /hardhat/hardhat.default.config.js --network zksync-mainnet: 1:26.573 (m:ss.mmm)
|
|
98
98
|
WARN Issue while reading "/home/runner/work/monorepo-internal/monorepo-internal/.npmrc". Failed to replace env in config: ${NPM_TOKEN}
|
|
99
99
|
|
|
100
100
|
> @layerzerolabs/oft-upgradeable-evm-contracts@0.0.0 compile:tron /home/runner/work/monorepo-internal/monorepo-internal/apps/oft-app/contracts/evm/upgradeable
|
|
@@ -104,7 +104,7 @@ Successfully compiled 76 Solidity files
|
|
|
104
104
|
✅ forge-1.3.6-hardhat-2.26.3
|
|
105
105
|
🔧 hardhat version: 2.26.3
|
|
106
106
|
$ 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
|
|
107
|
-
(node:
|
|
107
|
+
(node:296884) [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.
|
|
108
108
|
Reparsing as ES module because module syntax was detected. This incurs a performance overhead.
|
|
109
109
|
To eliminate this warning, add "type": "module" to /home/runner/work/monorepo-internal/monorepo-internal/package.json.
|
|
110
110
|
(Use `node --trace-warnings ...` to show where the warning was created)
|
|
@@ -166,4 +166,4 @@ Warning: Contract code size is 29394 bytes and exceeds 24576 bytes (a limit intr
|
|
|
166
166
|
|
|
167
167
|
|
|
168
168
|
Successfully compiled 76 Solidity files
|
|
169
|
-
⏳ hardhat compile --config /hardhat/hardhat.default.config.js --network tron-mainnet:
|
|
169
|
+
⏳ hardhat compile --config /hardhat/hardhat.default.config.js --network tron-mainnet: 38.174s
|
package/.turbo/turbo-lint.log
CHANGED
|
@@ -448,53 +448,4 @@ test/OFTNativeExtendedRBAC.t.sol
|
|
|
448
448
|
149:9 warning Check result of "send" call check-send-result
|
|
449
449
|
155:5 warning Missing @notice tag in function 'test_send_Revert_FeeTransferFailed' use-natspec
|
|
450
450
|
178:9 warning Check result of "send" call check-send-result
|
|
451
|
-
183:5 warning Missing @notice tag in function 'test_send'
|
|
452
|
-
192:41 warning Check result of "send" call check-send-result
|
|
453
|
-
198:5 warning Missing @notice tag in function 'test_send_WithFee' use-natspec
|
|
454
|
-
211:41 warning Check result of "send" call check-send-result
|
|
455
|
-
220:5 warning Missing @notice tag in function 'test_send_Revert_IncorrectMessageValue_TooLow' use-natspec
|
|
456
|
-
238:9 warning Check result of "send" call check-send-result
|
|
457
|
-
241:5 warning Missing @notice tag in function 'test_send_Revert_IncorrectMessageValue_TooHigh' use-natspec
|
|
458
|
-
259:9 warning Check result of "send" call check-send-result
|
|
459
|
-
262:5 warning Missing @notice tag in function 'test_send_Revert_IncorrectMessageValue_ZeroValue' use-natspec
|
|
460
|
-
274:9 warning Check result of "send" call check-send-result
|
|
461
|
-
279:5 warning Missing @notice tag in function 'test_credit_Revert_CreditFailed' use-natspec
|
|
462
|
-
297:5 warning Missing @notice tag in function 'test_token' use-natspec
|
|
463
|
-
301:5 warning Missing @notice tag in function 'test_approvalRequired' use-natspec
|
|
464
|
-
310:5 warning Missing @notice tag in function 'test_send_Revert_MsgInspection' use-natspec
|
|
465
|
-
328:9 warning Check result of "send" call check-send-result
|
|
466
|
-
|
|
467
|
-
test/shared/OFTExtendedRBACTestBase.sol
|
|
468
|
-
25:1 warning Missing @title tag in contract 'IOFTExtendedHarness' use-natspec
|
|
469
|
-
25:1 warning Missing @author tag in contract 'IOFTExtendedHarness' use-natspec
|
|
470
|
-
26:5 warning Missing @notice tag in function 'debit' use-natspec
|
|
471
|
-
26:5 warning Missing @param tag in function 'debit' use-natspec
|
|
472
|
-
26:5 warning Mismatch in @param names for function 'debit'. Expected: [_from, _amountLD, _minAmountLD, _dstEid], Found: [] use-natspec
|
|
473
|
-
26:5 warning Missing @return tag in function 'debit' use-natspec
|
|
474
|
-
26:5 warning Mismatch in @return names for function 'debit'. Expected: [amountSentLD, amountReceivedLD], Found: [] use-natspec
|
|
475
|
-
33:5 warning Missing @notice tag in function 'credit' use-natspec
|
|
476
|
-
33:5 warning Missing @param tag in function 'credit' use-natspec
|
|
477
|
-
33:5 warning Mismatch in @param names for function 'credit'. Expected: [_to, _amountLD, _srcEid], Found: [] use-natspec
|
|
478
|
-
33:5 warning Missing @return tag in function 'credit' use-natspec
|
|
479
|
-
33:5 warning Mismatch in @return names for function 'credit'. Expected: [amountReceivedLD], Found: [] use-natspec
|
|
480
|
-
41:1 warning Missing @title tag in contract 'OFTExtendedRBACTestBase' use-natspec
|
|
481
|
-
41:1 warning Missing @author tag in contract 'OFTExtendedRBACTestBase' use-natspec
|
|
482
|
-
42:5 warning Explicitly mark visibility of state state-visibility
|
|
483
|
-
44:5 warning Explicitly mark visibility of state state-visibility
|
|
484
|
-
45:5 warning Explicitly mark visibility of state state-visibility
|
|
485
|
-
46:5 warning Explicitly mark visibility of state state-visibility
|
|
486
|
-
48:5 warning Explicitly mark visibility of state state-visibility
|
|
487
|
-
49:5 warning Explicitly mark visibility of state state-visibility
|
|
488
|
-
50:5 warning Explicitly mark visibility of state state-visibility
|
|
489
|
-
66:5 warning Missing @return tag in function '_adapter' use-natspec
|
|
490
|
-
66:5 warning Mismatch in @return count for function '_adapter'. Expected: 1, Found: 0 use-natspec
|
|
491
|
-
72:5 warning Missing @param tag in function '_fundForDebit' use-natspec
|
|
492
|
-
72:5 warning Mismatch in @param names for function '_fundForDebit'. Expected: [_amount], Found: [] use-natspec
|
|
493
|
-
78:5 warning Missing @param tag in function '_fundAdapterForCredit' use-natspec
|
|
494
|
-
78:5 warning Mismatch in @param names for function '_fundAdapterForCredit'. Expected: [_amount], Found: [] use-natspec
|
|
495
|
-
84:5 warning Missing @param tag in function '_readBalance' use-natspec
|
|
496
|
-
84:5 warning Mismatch in @param names for function '_readBalance'. Expected: [_account], Found: [] use-natspec
|
|
497
|
-
84:5 warning Missing @return tag in function '_readBalance' use-natspec
|
|
498
|
-
84:5 warning Mismatch in @return count for function '_readBalance'. Expected: 1, Found: 0 use-natspec
|
|
499
|
-
89:5 warning Missing @return tag in function '_harness' use-natspec
|
|
500
|
-
89:5 warning Mismatch in @return count for function '_harness'. Expected: 1, Found: 0
|
|
451
|
+
183:5 warning Missing @notice tag in function 'test_send'
|
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:457380) [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,90 +13,97 @@ 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 70.60s
|
|
17
17
|
Compiler run successful!
|
|
18
18
|
|
|
19
|
-
Ran
|
|
20
|
-
[PASS]
|
|
21
|
-
[PASS]
|
|
22
|
-
[PASS]
|
|
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, μ: 65789, ~: 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, μ: 79415, ~: 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, μ: 105692, ~: 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, μ: 137876, ~: 137703)
|
|
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, μ: 38924, ~: 39011)
|
|
58
|
+
[PASS] test_token() (gas: 13483)
|
|
59
|
+
Suite result: ok. 39 passed; 0 failed; 0 skipped; finished in 702.86ms (1.93s 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, μ: 93300, ~: 93339)
|
|
64
|
+
[PASS] test_debit() (gas: 98305)
|
|
23
65
|
[PASS] test_debit_Dust() (gas: 139763)
|
|
24
|
-
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ:
|
|
66
|
+
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 142414, ~: 143477)
|
|
25
67
|
[PASS] test_debit_PushesFees() (gas: 165812)
|
|
26
68
|
[PASS] test_debit_Revert_SlippageExceeded() (gas: 131894)
|
|
27
69
|
[PASS] test_debit_SmallAmount_DustOnly() (gas: 139827)
|
|
28
70
|
[PASS] test_debit_WithFee() (gas: 165286)
|
|
29
71
|
[PASS] test_debit_WithFee_Dust() (gas: 165900)
|
|
30
|
-
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ:
|
|
72
|
+
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 168410, ~: 171220)
|
|
31
73
|
[PASS] test_initialize() (gas: 24722)
|
|
32
74
|
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
|
|
33
|
-
[PASS] test_pause_unpause() (gas:
|
|
75
|
+
[PASS] test_pause_unpause() (gas: 130445)
|
|
34
76
|
[PASS] test_quoteOFT() (gas: 70712)
|
|
35
77
|
[PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
|
|
36
78
|
[PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59195)
|
|
37
79
|
[PASS] test_quoteOFT_Paused() (gas: 56570)
|
|
38
|
-
[PASS] test_quoteOFT_RateLimiterUsage() (gas:
|
|
80
|
+
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 185614)
|
|
39
81
|
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 233430)
|
|
40
|
-
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ:
|
|
82
|
+
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 200482, ~: 200312)
|
|
41
83
|
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84276)
|
|
42
|
-
[PASS] test_rateLimit_Inflow() (gas:
|
|
84
|
+
[PASS] test_rateLimit_Inflow() (gas: 108772)
|
|
43
85
|
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
|
|
44
86
|
[PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 179385)
|
|
45
|
-
[PASS] test_send() (gas:
|
|
46
|
-
[PASS] test_send_Revert_MsgInspection() (gas:
|
|
87
|
+
[PASS] test_send() (gas: 400494)
|
|
88
|
+
[PASS] test_send_Revert_MsgInspection() (gas: 308847)
|
|
47
89
|
[PASS] test_send_WithFee() (gas: 477358)
|
|
48
90
|
[PASS] test_setFeeDeposit() (gas: 28359)
|
|
49
91
|
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
|
|
50
|
-
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ:
|
|
51
|
-
Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in
|
|
52
|
-
|
|
53
|
-
Ran 32 tests for test/OFTBurnMintExtendedRBACAlt.t.sol:OFTBurnMintExtendedRBACAltTest
|
|
54
|
-
[PASS] test_credit() (gas: 89871)
|
|
55
|
-
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93141, ~: 93303)
|
|
56
|
-
[PASS] test_debit() (gas: 98327)
|
|
57
|
-
[PASS] test_debit_Dust() (gas: 141836)
|
|
58
|
-
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 144841, ~: 145461)
|
|
59
|
-
[PASS] test_debit_PushesFees() (gas: 167796)
|
|
60
|
-
[PASS] test_debit_Revert_SlippageExceeded() (gas: 133872)
|
|
61
|
-
[PASS] test_debit_SmallAmount_DustOnly() (gas: 141789)
|
|
62
|
-
[PASS] test_debit_WithFee() (gas: 165270)
|
|
63
|
-
[PASS] test_debit_WithFee_Dust() (gas: 167884)
|
|
64
|
-
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 170976, ~: 173204)
|
|
65
|
-
[PASS] test_initialize() (gas: 24700)
|
|
66
|
-
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
|
|
67
|
-
[PASS] test_pause_unpause() (gas: 132067)
|
|
68
|
-
[PASS] test_quoteOFT() (gas: 70712)
|
|
69
|
-
[PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
|
|
70
|
-
[PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59173)
|
|
71
|
-
[PASS] test_quoteOFT_Paused() (gas: 56570)
|
|
72
|
-
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 187257)
|
|
73
|
-
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 235398)
|
|
74
|
-
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 202493, ~: 202299)
|
|
75
|
-
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84254)
|
|
76
|
-
[PASS] test_rateLimit_Inflow() (gas: 108824)
|
|
77
|
-
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 159696)
|
|
78
|
-
[PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 181347)
|
|
79
|
-
[PASS] test_send() (gas: 421733)
|
|
80
|
-
[PASS] test_send_Revert_MsgInspection() (gas: 310849)
|
|
81
|
-
[PASS] test_send_Revert_OnlyAltToken() (gas: 198819)
|
|
82
|
-
[PASS] test_send_WithFee() (gas: 493959)
|
|
83
|
-
[PASS] test_setFeeDeposit() (gas: 28445)
|
|
84
|
-
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
|
|
85
|
-
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38981, ~: 39034)
|
|
86
|
-
Suite result: ok. 32 passed; 0 failed; 0 skipped; finished in 787.76ms (2.22s CPU time)
|
|
92
|
+
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38871, ~: 38967)
|
|
93
|
+
Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 697.92ms (1.79s CPU time)
|
|
87
94
|
|
|
88
95
|
Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACTest
|
|
89
96
|
[PASS] test_credit() (gas: 89871)
|
|
90
|
-
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ:
|
|
97
|
+
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93339, ~: 93303)
|
|
91
98
|
[PASS] test_debit() (gas: 98327)
|
|
92
99
|
[PASS] test_debit_Dust() (gas: 139747)
|
|
93
|
-
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ:
|
|
100
|
+
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 142399, ~: 143461)
|
|
94
101
|
[PASS] test_debit_PushesFees() (gas: 165796)
|
|
95
102
|
[PASS] test_debit_Revert_SlippageExceeded() (gas: 131894)
|
|
96
103
|
[PASS] test_debit_SmallAmount_DustOnly() (gas: 139811)
|
|
97
104
|
[PASS] test_debit_WithFee() (gas: 165270)
|
|
98
105
|
[PASS] test_debit_WithFee_Dust() (gas: 165884)
|
|
99
|
-
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ:
|
|
106
|
+
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 168399, ~: 171204)
|
|
100
107
|
[PASS] test_initialize() (gas: 24722)
|
|
101
108
|
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
|
|
102
109
|
[PASS] test_pause_unpause() (gas: 130467)
|
|
@@ -106,7 +113,7 @@ Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACTest
|
|
|
106
113
|
[PASS] test_quoteOFT_Paused() (gas: 56570)
|
|
107
114
|
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 185657)
|
|
108
115
|
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 233398)
|
|
109
|
-
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ:
|
|
116
|
+
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 200480, ~: 200299)
|
|
110
117
|
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84276)
|
|
111
118
|
[PASS] test_rateLimit_Inflow() (gas: 108736)
|
|
112
119
|
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
|
|
@@ -116,203 +123,160 @@ Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACTest
|
|
|
116
123
|
[PASS] test_send_WithFee() (gas: 477338)
|
|
117
124
|
[PASS] test_setFeeDeposit() (gas: 28359)
|
|
118
125
|
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
|
|
119
|
-
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ:
|
|
120
|
-
Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in
|
|
126
|
+
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38899, ~: 38967)
|
|
127
|
+
Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 744.95ms (2.62s CPU time)
|
|
121
128
|
|
|
122
|
-
Ran
|
|
123
|
-
[PASS] test_credit() (gas:
|
|
124
|
-
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ:
|
|
125
|
-
[PASS] test_debit() (gas:
|
|
126
|
-
[PASS] test_debit_Dust() (gas:
|
|
127
|
-
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ:
|
|
128
|
-
[PASS] test_debit_PushesFees() (gas:
|
|
129
|
+
Ran 32 tests for test/OFTBurnMintExtendedRBACAlt.t.sol:OFTBurnMintExtendedRBACAltTest
|
|
130
|
+
[PASS] test_credit() (gas: 89871)
|
|
131
|
+
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 92857, ~: 93303)
|
|
132
|
+
[PASS] test_debit() (gas: 98327)
|
|
133
|
+
[PASS] test_debit_Dust() (gas: 141836)
|
|
134
|
+
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 144355, ~: 145461)
|
|
135
|
+
[PASS] test_debit_PushesFees() (gas: 167796)
|
|
129
136
|
[PASS] test_debit_Revert_SlippageExceeded() (gas: 133872)
|
|
130
|
-
[PASS] test_debit_SmallAmount_DustOnly() (gas:
|
|
131
|
-
[PASS]
|
|
132
|
-
[PASS]
|
|
133
|
-
[PASS]
|
|
134
|
-
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 168745, ~: 170250)
|
|
137
|
+
[PASS] test_debit_SmallAmount_DustOnly() (gas: 141789)
|
|
138
|
+
[PASS] test_debit_WithFee() (gas: 165270)
|
|
139
|
+
[PASS] test_debit_WithFee_Dust() (gas: 167884)
|
|
140
|
+
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 170803, ~: 173204)
|
|
135
141
|
[PASS] test_initialize() (gas: 24700)
|
|
136
142
|
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
|
|
137
|
-
[PASS] test_pause_unpause() (gas:
|
|
143
|
+
[PASS] test_pause_unpause() (gas: 132067)
|
|
138
144
|
[PASS] test_quoteOFT() (gas: 70712)
|
|
139
145
|
[PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
|
|
140
146
|
[PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59173)
|
|
141
147
|
[PASS] test_quoteOFT_Paused() (gas: 56570)
|
|
142
|
-
[PASS] test_quoteOFT_RateLimiterUsage() (gas:
|
|
143
|
-
[PASS] test_quoteOFT_RateLimiterWithFee() (gas:
|
|
144
|
-
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ:
|
|
148
|
+
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 187257)
|
|
149
|
+
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 235398)
|
|
150
|
+
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 202480, ~: 202299)
|
|
145
151
|
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84254)
|
|
146
|
-
[PASS] test_rateLimit_Inflow() (gas:
|
|
152
|
+
[PASS] test_rateLimit_Inflow() (gas: 108824)
|
|
147
153
|
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 159696)
|
|
148
|
-
[PASS] test_rateLimit_Outflow_WithFee_Success() (gas:
|
|
149
|
-
[PASS] test_send() (gas:
|
|
150
|
-
[PASS] test_send_Revert_MsgInspection() (gas:
|
|
151
|
-
[PASS] test_send_Revert_OnlyAltToken() (gas:
|
|
152
|
-
[PASS] test_send_WithFee() (gas:
|
|
154
|
+
[PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 181347)
|
|
155
|
+
[PASS] test_send() (gas: 421733)
|
|
156
|
+
[PASS] test_send_Revert_MsgInspection() (gas: 310849)
|
|
157
|
+
[PASS] test_send_Revert_OnlyAltToken() (gas: 198819)
|
|
158
|
+
[PASS] test_send_WithFee() (gas: 493959)
|
|
153
159
|
[PASS] test_setFeeDeposit() (gas: 28445)
|
|
154
160
|
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
|
|
155
|
-
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ:
|
|
156
|
-
Suite result: ok.
|
|
161
|
+
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38947, ~: 39034)
|
|
162
|
+
Suite result: ok. 32 passed; 0 failed; 0 skipped; finished in 761.46ms (1.47s CPU time)
|
|
157
163
|
|
|
158
|
-
Ran
|
|
159
|
-
[PASS] test_credit() (gas:
|
|
160
|
-
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ:
|
|
164
|
+
Ran 32 tests for test/OFTLockUnlockExtendedRBACAlt.t.sol:OFTLockUnlockExtendedRBACAltTest
|
|
165
|
+
[PASS] test_credit() (gas: 91882)
|
|
166
|
+
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 94947, ~: 95314)
|
|
161
167
|
[PASS] test_debit() (gas: 113036)
|
|
162
|
-
[PASS] test_debit_Dust() (gas:
|
|
163
|
-
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ:
|
|
164
|
-
[PASS] test_debit_PushesFees() (gas:
|
|
165
|
-
[PASS] test_debit_Revert_SlippageExceeded() (gas:
|
|
166
|
-
[PASS] test_debit_SmallAmount_DustOnly() (gas:
|
|
168
|
+
[PASS] test_debit_Dust() (gas: 137551)
|
|
169
|
+
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 140158, ~: 140423)
|
|
170
|
+
[PASS] test_debit_PushesFees() (gas: 163342)
|
|
171
|
+
[PASS] test_debit_Revert_SlippageExceeded() (gas: 133828)
|
|
172
|
+
[PASS] test_debit_SmallAmount_DustOnly() (gas: 137513)
|
|
167
173
|
[PASS] test_debit_WithFee() (gas: 163924)
|
|
168
|
-
[PASS] test_debit_WithFee_Dust() (gas:
|
|
169
|
-
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ:
|
|
170
|
-
[PASS] test_initialize() (gas:
|
|
174
|
+
[PASS] test_debit_WithFee_Dust() (gas: 163430)
|
|
175
|
+
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 163250, ~: 162567)
|
|
176
|
+
[PASS] test_initialize() (gas: 24656)
|
|
171
177
|
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92822)
|
|
172
|
-
[PASS] test_pause_unpause() (gas:
|
|
178
|
+
[PASS] test_pause_unpause() (gas: 145524)
|
|
173
179
|
[PASS] test_quoteOFT() (gas: 70757)
|
|
174
180
|
[PASS] test_quoteOFT_GloballyDisabled() (gas: 80605)
|
|
175
|
-
[PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas:
|
|
181
|
+
[PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59240)
|
|
176
182
|
[PASS] test_quoteOFT_Paused() (gas: 56637)
|
|
177
|
-
[PASS] test_quoteOFT_RateLimiterUsage() (gas:
|
|
178
|
-
[PASS] test_quoteOFT_RateLimiterWithFee() (gas:
|
|
179
|
-
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ:
|
|
180
|
-
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas:
|
|
181
|
-
[PASS] test_rateLimit_Inflow() (gas:
|
|
182
|
-
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas:
|
|
183
|
-
[PASS] test_rateLimit_Outflow_WithFee_Success() (gas:
|
|
184
|
-
[PASS] test_send() (gas:
|
|
185
|
-
[PASS] test_send_Revert_MsgInspection() (gas:
|
|
186
|
-
[PASS]
|
|
187
|
-
[PASS]
|
|
183
|
+
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 200448)
|
|
184
|
+
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 242784)
|
|
185
|
+
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 198101, ~: 197912)
|
|
186
|
+
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84299)
|
|
187
|
+
[PASS] test_rateLimit_Inflow() (gas: 132710)
|
|
188
|
+
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 159652)
|
|
189
|
+
[PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 176893)
|
|
190
|
+
[PASS] test_send() (gas: 465637)
|
|
191
|
+
[PASS] test_send_Revert_MsgInspection() (gas: 327696)
|
|
192
|
+
[PASS] test_send_Revert_OnlyAltToken() (gas: 241148)
|
|
193
|
+
[PASS] test_send_WithFee() (gas: 516566)
|
|
194
|
+
[PASS] test_setFeeDeposit() (gas: 28423)
|
|
188
195
|
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22583)
|
|
189
|
-
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ:
|
|
190
|
-
Suite result: ok.
|
|
196
|
+
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38920, ~: 39012)
|
|
197
|
+
Suite result: ok. 32 passed; 0 failed; 0 skipped; finished in 868.97ms (2.40s CPU time)
|
|
191
198
|
|
|
192
|
-
Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:
|
|
193
|
-
[PASS] test_credit() (gas:
|
|
194
|
-
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ:
|
|
195
|
-
[PASS] test_debit() (gas:
|
|
199
|
+
Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACCrosschainTest
|
|
200
|
+
[PASS] test_credit() (gas: 89874)
|
|
201
|
+
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93222, ~: 93306)
|
|
202
|
+
[PASS] test_debit() (gas: 98332)
|
|
196
203
|
[PASS] test_debit_Dust() (gas: 139763)
|
|
197
|
-
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ:
|
|
204
|
+
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 142476, ~: 143477)
|
|
198
205
|
[PASS] test_debit_PushesFees() (gas: 165812)
|
|
199
206
|
[PASS] test_debit_Revert_SlippageExceeded() (gas: 131894)
|
|
200
207
|
[PASS] test_debit_SmallAmount_DustOnly() (gas: 139827)
|
|
201
208
|
[PASS] test_debit_WithFee() (gas: 165286)
|
|
202
209
|
[PASS] test_debit_WithFee_Dust() (gas: 165900)
|
|
203
|
-
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ:
|
|
210
|
+
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 168950, ~: 171220)
|
|
204
211
|
[PASS] test_initialize() (gas: 24722)
|
|
205
212
|
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
|
|
206
|
-
[PASS] test_pause_unpause() (gas:
|
|
213
|
+
[PASS] test_pause_unpause() (gas: 130472)
|
|
207
214
|
[PASS] test_quoteOFT() (gas: 70712)
|
|
208
215
|
[PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
|
|
209
216
|
[PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59195)
|
|
210
217
|
[PASS] test_quoteOFT_Paused() (gas: 56570)
|
|
211
|
-
[PASS] test_quoteOFT_RateLimiterUsage() (gas:
|
|
218
|
+
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 185667)
|
|
212
219
|
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 233430)
|
|
213
|
-
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ:
|
|
220
|
+
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 200524, ~: 200315)
|
|
214
221
|
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84276)
|
|
215
|
-
[PASS] test_rateLimit_Inflow() (gas:
|
|
222
|
+
[PASS] test_rateLimit_Inflow() (gas: 108739)
|
|
216
223
|
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
|
|
217
224
|
[PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 179385)
|
|
218
|
-
[PASS] test_send() (gas:
|
|
219
|
-
[PASS] test_send_Revert_MsgInspection() (gas:
|
|
225
|
+
[PASS] test_send() (gas: 400527)
|
|
226
|
+
[PASS] test_send_Revert_MsgInspection() (gas: 308880)
|
|
220
227
|
[PASS] test_send_WithFee() (gas: 477358)
|
|
221
228
|
[PASS] test_setFeeDeposit() (gas: 28359)
|
|
222
229
|
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
|
|
223
|
-
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ:
|
|
224
|
-
Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in
|
|
230
|
+
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38895, ~: 38967)
|
|
231
|
+
Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 865.66ms (2.07s CPU time)
|
|
225
232
|
|
|
226
|
-
Ran
|
|
227
|
-
[PASS] test_credit() (gas:
|
|
228
|
-
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ:
|
|
233
|
+
Ran 31 tests for test/OFTLockUnlockExtendedRBAC.t.sol:OFTLockUnlockExtendedRBACTest
|
|
234
|
+
[PASS] test_credit() (gas: 89882)
|
|
235
|
+
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93120, ~: 93314)
|
|
229
236
|
[PASS] test_debit() (gas: 113036)
|
|
230
|
-
[PASS] test_debit_Dust() (gas:
|
|
231
|
-
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ:
|
|
232
|
-
[PASS] test_debit_PushesFees() (gas:
|
|
233
|
-
[PASS] test_debit_Revert_SlippageExceeded() (gas:
|
|
234
|
-
[PASS] test_debit_SmallAmount_DustOnly() (gas:
|
|
237
|
+
[PASS] test_debit_Dust() (gas: 135880)
|
|
238
|
+
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 138480, ~: 138823)
|
|
239
|
+
[PASS] test_debit_PushesFees() (gas: 161342)
|
|
240
|
+
[PASS] test_debit_Revert_SlippageExceeded() (gas: 131850)
|
|
241
|
+
[PASS] test_debit_SmallAmount_DustOnly() (gas: 135931)
|
|
235
242
|
[PASS] test_debit_WithFee() (gas: 163924)
|
|
236
|
-
[PASS] test_debit_WithFee_Dust() (gas:
|
|
237
|
-
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ:
|
|
238
|
-
[PASS] test_initialize() (gas:
|
|
243
|
+
[PASS] test_debit_WithFee_Dust() (gas: 161430)
|
|
244
|
+
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 161668, ~: 160967)
|
|
245
|
+
[PASS] test_initialize() (gas: 24678)
|
|
239
246
|
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92822)
|
|
240
|
-
[PASS] test_pause_unpause() (gas:
|
|
247
|
+
[PASS] test_pause_unpause() (gas: 143924)
|
|
241
248
|
[PASS] test_quoteOFT() (gas: 70757)
|
|
242
249
|
[PASS] test_quoteOFT_GloballyDisabled() (gas: 80605)
|
|
243
|
-
[PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas:
|
|
250
|
+
[PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59262)
|
|
244
251
|
[PASS] test_quoteOFT_Paused() (gas: 56637)
|
|
245
|
-
[PASS] test_quoteOFT_RateLimiterUsage() (gas:
|
|
246
|
-
[PASS] test_quoteOFT_RateLimiterWithFee() (gas:
|
|
247
|
-
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ:
|
|
248
|
-
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas:
|
|
249
|
-
[PASS] test_rateLimit_Inflow() (gas:
|
|
250
|
-
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas:
|
|
251
|
-
[PASS] test_rateLimit_Outflow_WithFee_Success() (gas:
|
|
252
|
-
[PASS] test_send() (gas:
|
|
253
|
-
[PASS] test_send_Revert_MsgInspection() (gas:
|
|
254
|
-
[PASS]
|
|
255
|
-
[PASS]
|
|
256
|
-
[PASS] test_setFeeDeposit() (gas: 28423)
|
|
252
|
+
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 198848)
|
|
253
|
+
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 241184)
|
|
254
|
+
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 196086, ~: 195912)
|
|
255
|
+
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84321)
|
|
256
|
+
[PASS] test_rateLimit_Inflow() (gas: 130622)
|
|
257
|
+
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157652)
|
|
258
|
+
[PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 174915)
|
|
259
|
+
[PASS] test_send() (gas: 418929)
|
|
260
|
+
[PASS] test_send_Revert_MsgInspection() (gas: 325718)
|
|
261
|
+
[PASS] test_send_WithFee() (gas: 474453)
|
|
262
|
+
[PASS] test_setFeeDeposit() (gas: 28337)
|
|
257
263
|
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22583)
|
|
258
|
-
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ:
|
|
259
|
-
Suite result: ok.
|
|
260
|
-
|
|
261
|
-
Ran 39 tests for test/OFTNativeExtendedRBAC.t.sol:OFTNativeExtendedRBACTest
|
|
262
|
-
[PASS] test_approvalRequired() (gas: 13426)
|
|
263
|
-
[PASS] test_credit() (gas: 62369)
|
|
264
|
-
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 65917, ~: 65954)
|
|
265
|
-
[PASS] test_credit_Revert_CreditFailed() (gas: 91478)
|
|
266
|
-
[PASS] test_debit() (gas: 36831)
|
|
267
|
-
[PASS] test_debit_Dust() (gas: 76272)
|
|
268
|
-
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 79654, ~: 79886)
|
|
269
|
-
[PASS] test_debit_PushesFees() (gas: 101339)
|
|
270
|
-
[PASS] test_debit_Revert_SlippageExceeded() (gas: 54229)
|
|
271
|
-
[PASS] test_debit_SmallAmount_DustOnly() (gas: 76226)
|
|
272
|
-
[PASS] test_debit_WithFee() (gas: 101145)
|
|
273
|
-
[PASS] test_debit_WithFee_Dust() (gas: 102376)
|
|
274
|
-
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 105867, ~: 107585)
|
|
275
|
-
[PASS] test_initialize() (gas: 22406)
|
|
276
|
-
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92778)
|
|
277
|
-
[PASS] test_pause_unpause() (gas: 61117)
|
|
278
|
-
[PASS] test_quoteOFT() (gas: 70779)
|
|
279
|
-
[PASS] test_quoteOFT_GloballyDisabled() (gas: 80649)
|
|
280
|
-
[PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59220)
|
|
281
|
-
[PASS] test_quoteOFT_Paused() (gas: 56703)
|
|
282
|
-
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 97744)
|
|
283
|
-
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 160139)
|
|
284
|
-
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 137897, ~: 137703)
|
|
285
|
-
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84387)
|
|
286
|
-
[PASS] test_rateLimit_Inflow() (gas: 87713)
|
|
287
|
-
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 80123)
|
|
288
|
-
[PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 116713)
|
|
289
|
-
[PASS] test_send() (gas: 352734)
|
|
290
|
-
[PASS] test_send_PushesFees() (gas: 415282)
|
|
291
|
-
[PASS] test_send_Revert_FeeTransferFailed() (gas: 157067)
|
|
292
|
-
[PASS] test_send_Revert_IncorrectMessageValue_TooHigh() (gas: 30287)
|
|
293
|
-
[PASS] test_send_Revert_IncorrectMessageValue_TooLow() (gas: 30257)
|
|
294
|
-
[PASS] test_send_Revert_IncorrectMessageValue_ZeroValue() (gas: 22753)
|
|
295
|
-
[PASS] test_send_Revert_MsgInspection() (gas: 221169)
|
|
296
|
-
[PASS] test_send_WithFee() (gas: 415240)
|
|
297
|
-
[PASS] test_setFeeDeposit() (gas: 28425)
|
|
298
|
-
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22627)
|
|
299
|
-
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38924, ~: 39011)
|
|
300
|
-
[PASS] test_token() (gas: 13483)
|
|
301
|
-
Suite result: ok. 39 passed; 0 failed; 0 skipped; finished in 913.99ms (1.94s CPU time)
|
|
264
|
+
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38868, ~: 38945)
|
|
265
|
+
Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 897.06ms (2.02s CPU time)
|
|
302
266
|
|
|
303
267
|
Ran 32 tests for test/OFTBurnSelfMintExtendedRBAC.t.sol:OFTBurnSelfMintExtendedRBACTest
|
|
304
268
|
[PASS] test_credit() (gas: 89873)
|
|
305
|
-
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ:
|
|
269
|
+
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 92988, ~: 93305)
|
|
306
270
|
[PASS] test_debit() (gas: 120710)
|
|
307
271
|
[PASS] test_debit_Dust() (gas: 143616)
|
|
308
|
-
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ:
|
|
272
|
+
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 146001, ~: 146486)
|
|
309
273
|
[PASS] test_debit_PushesFees() (gas: 164384)
|
|
310
274
|
[PASS] test_debit_Revert_SlippageExceeded() (gas: 131872)
|
|
311
275
|
[PASS] test_debit_SmallAmount_DustOnly() (gas: 143579)
|
|
312
276
|
[PASS] test_debit_TokensTransferredToSelfThenBurned() (gas: 122517)
|
|
313
277
|
[PASS] test_debit_WithFee() (gas: 166449)
|
|
314
278
|
[PASS] test_debit_WithFee_Dust() (gas: 164455)
|
|
315
|
-
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ:
|
|
279
|
+
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 166749, ~: 168641)
|
|
316
280
|
[PASS] test_initialize() (gas: 24700)
|
|
317
281
|
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
|
|
318
282
|
[PASS] test_pause_unpause() (gas: 151598)
|
|
@@ -322,7 +286,7 @@ Ran 32 tests for test/OFTBurnSelfMintExtendedRBAC.t.sol:OFTBurnSelfMintExtendedR
|
|
|
322
286
|
[PASS] test_quoteOFT_Paused() (gas: 56570)
|
|
323
287
|
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 242240)
|
|
324
288
|
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 268746)
|
|
325
|
-
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ:
|
|
289
|
+
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 192053, ~: 191921)
|
|
326
290
|
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84254)
|
|
327
291
|
[PASS] test_rateLimit_Inflow() (gas: 108738)
|
|
328
292
|
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
|
|
@@ -332,8 +296,44 @@ Ran 32 tests for test/OFTBurnSelfMintExtendedRBAC.t.sol:OFTBurnSelfMintExtendedR
|
|
|
332
296
|
[PASS] test_send_WithFee() (gas: 462592)
|
|
333
297
|
[PASS] test_setFeeDeposit() (gas: 28445)
|
|
334
298
|
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
|
|
335
|
-
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ:
|
|
336
|
-
Suite result: ok. 32 passed; 0 failed; 0 skipped; finished in
|
|
299
|
+
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38959, ~: 39034)
|
|
300
|
+
Suite result: ok. 32 passed; 0 failed; 0 skipped; finished in 890.07ms (2.90s CPU time)
|
|
301
|
+
|
|
302
|
+
Ran 33 tests for test/OFTBurnSelfMintExtendedRBACAlt.t.sol:OFTBurnSelfMintExtendedRBACAltTest
|
|
303
|
+
[PASS] test_credit() (gas: 89873)
|
|
304
|
+
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93082, ~: 93305)
|
|
305
|
+
[PASS] test_debit() (gas: 120710)
|
|
306
|
+
[PASS] test_debit_Dust() (gas: 145216)
|
|
307
|
+
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 147169, ~: 148086)
|
|
308
|
+
[PASS] test_debit_PushesFees() (gas: 165984)
|
|
309
|
+
[PASS] test_debit_Revert_SlippageExceeded() (gas: 133872)
|
|
310
|
+
[PASS] test_debit_SmallAmount_DustOnly() (gas: 145179)
|
|
311
|
+
[PASS] test_debit_TokensTransferredToSelfThenBurned() (gas: 122500)
|
|
312
|
+
[PASS] test_debit_WithFee() (gas: 166449)
|
|
313
|
+
[PASS] test_debit_WithFee_Dust() (gas: 166055)
|
|
314
|
+
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 168548, ~: 170245)
|
|
315
|
+
[PASS] test_initialize() (gas: 24700)
|
|
316
|
+
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
|
|
317
|
+
[PASS] test_pause_unpause() (gas: 153198)
|
|
318
|
+
[PASS] test_quoteOFT() (gas: 70712)
|
|
319
|
+
[PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
|
|
320
|
+
[PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59173)
|
|
321
|
+
[PASS] test_quoteOFT_Paused() (gas: 56570)
|
|
322
|
+
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 243840)
|
|
323
|
+
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 270346)
|
|
324
|
+
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 193667, ~: 193521)
|
|
325
|
+
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84254)
|
|
326
|
+
[PASS] test_rateLimit_Inflow() (gas: 108826)
|
|
327
|
+
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 159696)
|
|
328
|
+
[PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 176825)
|
|
329
|
+
[PASS] test_send() (gas: 456534)
|
|
330
|
+
[PASS] test_send_Revert_MsgInspection() (gas: 337267)
|
|
331
|
+
[PASS] test_send_Revert_OnlyAltToken() (gas: 250697)
|
|
332
|
+
[PASS] test_send_WithFee() (gas: 504694)
|
|
333
|
+
[PASS] test_setFeeDeposit() (gas: 28445)
|
|
334
|
+
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
|
|
335
|
+
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38899, ~: 39034)
|
|
336
|
+
Suite result: ok. 33 passed; 0 failed; 0 skipped; finished in 932.60ms (3.36s CPU time)
|
|
337
337
|
|
|
338
|
-
Ran 9 test suites in 1.
|
|
339
|
-
⏳ forge test: 1:
|
|
338
|
+
Ran 9 test suites in 1.12s (7.36s CPU time): 292 tests passed, 0 failed, 0 skipped (292 total tests)
|
|
339
|
+
⏳ forge test: 1:15.527 (m:ss.mmm)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@layerzerolabs/oft-upgradeable-evm-contracts",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.101",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "LayerZero Labs reference EVM upgradeable OFT implementation",
|
|
6
6
|
"license": "MIT",
|
|
@@ -14,16 +14,16 @@
|
|
|
14
14
|
"@openzeppelin/contracts-upgradeable": "^5.0.2",
|
|
15
15
|
"ethers": "^5.8.0",
|
|
16
16
|
"solhint": "^6.0.1",
|
|
17
|
-
"@layerzerolabs/oapp-evm-contracts": "0.2.
|
|
18
|
-
"@layerzerolabs/
|
|
19
|
-
"@layerzerolabs/
|
|
20
|
-
"@layerzerolabs/
|
|
21
|
-
"@layerzerolabs/test-utils-evm-contracts": "0.2.
|
|
22
|
-
"@layerzerolabs/
|
|
23
|
-
"@layerzerolabs/
|
|
24
|
-
"@layerzerolabs/utils-
|
|
25
|
-
"@layerzerolabs/vm-tooling-evm": "0.2.
|
|
26
|
-
"@layerzerolabs/utils-evm-contracts": "0.2.
|
|
17
|
+
"@layerzerolabs/oapp-evm-contracts": "0.2.101",
|
|
18
|
+
"@layerzerolabs/oapp-upgradeable-evm-contracts": "0.2.101",
|
|
19
|
+
"@layerzerolabs/solhint-configuration": "0.2.101",
|
|
20
|
+
"@layerzerolabs/oft-evm-contracts": "0.2.101",
|
|
21
|
+
"@layerzerolabs/test-utils-evm-contracts": "0.2.101",
|
|
22
|
+
"@layerzerolabs/tsup-configuration": "0.2.101",
|
|
23
|
+
"@layerzerolabs/typescript-configuration": "0.2.101",
|
|
24
|
+
"@layerzerolabs/utils-evm-contracts": "0.2.101",
|
|
25
|
+
"@layerzerolabs/vm-tooling-evm": "0.2.101",
|
|
26
|
+
"@layerzerolabs/utils-upgradeable-evm-contracts": "0.2.101"
|
|
27
27
|
},
|
|
28
28
|
"publishConfig": {
|
|
29
29
|
"access": "public",
|