@layerzerolabs/oft-upgradeable-evm-contracts 0.2.90 → 0.2.91

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.
@@ -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:161076) [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.
15
+ (node:113725) [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: 16.474s
73
+ ⏳ hardhat compile --config /hardhat/hardhat.default.config.js: 14.960s
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:171394) [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.
83
+ (node:119627) [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:33.585 (m:ss.mmm)
95
+ ⏳ hardhat compile --config /hardhat/hardhat.default.config.js --network zksync-mainnet: 1:50.359 (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:260519) [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.
105
+ (node:148178) [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: 33.755s
166
+ ⏳ hardhat compile --config /hardhat/hardhat.default.config.js --network tron-mainnet: 38.048s
@@ -448,112 +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' use-natspec
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 use-natspec
501
- 95:5 warning Missing @notice tag in function '_deployTransparentProxy' use-natspec
502
- 95:5 warning Missing @param tag in function '_deployTransparentProxy' use-natspec
503
- 95:5 warning Mismatch in @param names for function '_deployTransparentProxy'. Expected: [_impl, _proxyAdmin, _initData], Found: [] use-natspec
504
- 95:5 warning Missing @return tag in function '_deployTransparentProxy' use-natspec
505
- 95:5 warning Mismatch in @return count for function '_deployTransparentProxy'. Expected: 1, Found: 0 use-natspec
506
- 103:5 warning Missing @notice tag in function '_buildSendParam' use-natspec
507
- 103:5 warning Missing @param tag in function '_buildSendParam' use-natspec
508
- 103:5 warning Mismatch in @param names for function '_buildSendParam'. Expected: [_dstEid, _to, _amountLD, _minAmountLD], Found: [] use-natspec
509
- 103:5 warning Missing @return tag in function '_buildSendParam' use-natspec
510
- 103:5 warning Mismatch in @return count for function '_buildSendParam'. Expected: 1, Found: 0 use-natspec
511
- 121:5 warning Missing @notice tag in function '_buildDefaultRateLimitConfig' use-natspec
512
- 121:5 warning Missing @param tag in function '_buildDefaultRateLimitConfig' use-natspec
513
- 121:5 warning Mismatch in @param names for function '_buildDefaultRateLimitConfig'. Expected: [_id, _limit, _window], Found: [] use-natspec
514
- 121:5 warning Missing @return tag in function '_buildDefaultRateLimitConfig' use-natspec
515
- 121:5 warning Mismatch in @return names for function '_buildDefaultRateLimitConfig'. Expected: [configs], Found: [] use-natspec
516
- 143:5 warning Missing @notice tag in function '_buildRateLimitConfig' use-natspec
517
- 143:5 warning Missing @param tag in function '_buildRateLimitConfig' use-natspec
518
- 143:5 warning Mismatch in @param names for function '_buildRateLimitConfig'. Expected: [_id, _outboundLimit, _inboundLimit, _outboundWindow, _inboundWindow], Found: [] use-natspec
519
- 143:5 warning Missing @return tag in function '_buildRateLimitConfig' use-natspec
520
- 143:5 warning Mismatch in @return names for function '_buildRateLimitConfig'. Expected: [configs], Found: [] use-natspec
521
- 169:5 warning Missing @notice tag in function 'test_quoteOFT' use-natspec
522
- 189:5 warning Missing @notice tag in function 'test_quoteOFT_Paused' use-natspec
523
- 201:5 warning Missing @notice tag in function 'test_quoteOFT_RateLimiterUsage' use-natspec
524
- 228:5 warning Missing @notice tag in function 'test_quoteOFT_OutboundRateLimitDisabled' use-natspec
525
- 256:5 warning Missing @notice tag in function 'test_quoteOFT_GloballyDisabled' use-natspec
526
- 272:5 warning Missing @notice tag in function 'test_quoteOFT_RateLimiterWithFee' use-natspec
527
- 302:5 warning Missing @notice tag in function 'test_quoteOFT_RateLimiterWithMaxFee' use-natspec
528
- 316:5 warning Missing @notice tag in function 'test_quoteOFT_RateLimiterWithFee_Fuzz' use-natspec
529
- 316:5 warning Missing @param tag in function 'test_quoteOFT_RateLimiterWithFee_Fuzz' use-natspec
530
- 316:5 warning Mismatch in @param names for function 'test_quoteOFT_RateLimiterWithFee_Fuzz'. Expected: [_limit, _feeBps], Found: [] use-natspec
531
- 340:5 warning Missing @notice tag in function 'test_setRateLimitConfig_Fuzz' use-natspec
532
- 340:5 warning Missing @param tag in function 'test_setRateLimitConfig_Fuzz' use-natspec
533
- 340:5 warning Mismatch in @param names for function 'test_setRateLimitConfig_Fuzz'. Expected: [_limit], Found: [] use-natspec
534
- 349:5 warning Missing @notice tag in function 'test_rateLimit_Inflow' use-natspec
535
- 363:5 warning Missing @notice tag in function 'test_rateLimit_Outflow_WithFee_Success' use-natspec
536
- 376:5 warning Missing @notice tag in function 'test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit' use-natspec
537
- 392:5 warning Missing @notice tag in function 'test_pause_unpause' use-natspec
538
- 412:5 warning Missing @notice tag in function 'test_setFeeDeposit' use-natspec
539
- 418:5 warning Missing @notice tag in function 'test_setFeeDeposit_Revert_Unauthorized' use-natspec
540
- 430:5 warning Missing @notice tag in function 'test_debit_PushesFees' use-natspec
541
- 444:5 warning Missing @notice tag in function 'test_send_Revert_MsgInspection' use-natspec
542
- 463:9 warning Check result of "send" call check-send-result
543
- 468:5 warning Missing @notice tag in function 'test_credit' use-natspec
544
- 478:5 warning Missing @notice tag in function 'test_credit_Fuzz' use-natspec
545
- 478:5 warning Missing @param tag in function 'test_credit_Fuzz' use-natspec
546
- 478:5 warning Mismatch in @param names for function 'test_credit_Fuzz'. Expected: [_amount], Found: [] use-natspec
547
- 491:5 warning Missing @notice tag in function 'test_debit_Revert_SlippageExceeded' use-natspec
548
- 504:5 warning Missing @notice tag in function 'test_debit_Dust' use-natspec
549
- 515:5 warning Missing @notice tag in function 'test_debit_WithFee_Dust' use-natspec
550
- 534:5 warning Missing @notice tag in function 'test_debit_SmallAmount_DustOnly' use-natspec
551
- 547:5 warning Missing @notice tag in function 'test_debit_NoFee_Fuzz' use-natspec
552
- 547:5 warning Missing @param tag in function 'test_debit_NoFee_Fuzz' use-natspec
553
- 547:5 warning Mismatch in @param names for function 'test_debit_NoFee_Fuzz'. Expected: [_amount], Found: [] use-natspec
554
- 562:5 warning Missing @notice tag in function 'test_debit_WithFee_Fuzz' use-natspec
555
- 562:5 warning Missing @param tag in function 'test_debit_WithFee_Fuzz' use-natspec
556
- 562:5 warning Mismatch in @param names for function 'test_debit_WithFee_Fuzz'. Expected: [_amount, _feeBps], Found: [] use-natspec
557
-
558
- ✖ 514 problems (0 errors, 514 warnings)
559
-
451
+ 183:5 warning Missing @notice tag in function 'test_send'
@@ -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:444533) [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.
8
+ (node:574559) [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,21 +13,63 @@ 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 65.95s
16
+ Solc 0.8.22 finished in 44.49s
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
+
19
61
  Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACRedeemIssueTest
20
62
  [PASS] test_credit() (gas: 89907)
21
- [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93218, ~: 93339)
63
+ [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93299, ~: 93339)
22
64
  [PASS] test_debit() (gas: 98305)
23
65
  [PASS] test_debit_Dust() (gas: 139763)
24
- [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 142311, ~: 143477)
66
+ [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 142478, ~: 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, μ: 168941, ~: 171220)
72
+ [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 168550, ~: 171220)
31
73
  [PASS] test_initialize() (gas: 24722)
32
74
  [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
33
75
  [PASS] test_pause_unpause() (gas: 130445)
@@ -37,7 +79,7 @@ Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACRedee
37
79
  [PASS] test_quoteOFT_Paused() (gas: 56570)
38
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, μ: 200495, ~: 200315)
82
+ [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 200500, ~: 200315)
41
83
  [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84276)
42
84
  [PASS] test_rateLimit_Inflow() (gas: 108772)
43
85
  [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
@@ -47,92 +89,55 @@ Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACRedee
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, μ: 38877, ~: 38967)
51
- Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 938.42ms (2.14s CPU time)
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)
52
94
 
53
- Ran 33 tests for test/OFTBurnSelfMintExtendedRBACAlt.t.sol:OFTBurnSelfMintExtendedRBACAltTest
54
- [PASS] test_credit() (gas: 89873)
55
- [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93031, ~: 93305)
56
- [PASS] test_debit() (gas: 120710)
57
- [PASS] test_debit_Dust() (gas: 145216)
58
- [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 147598, ~: 148086)
59
- [PASS] test_debit_PushesFees() (gas: 165984)
60
- [PASS] test_debit_Revert_SlippageExceeded() (gas: 133872)
61
- [PASS] test_debit_SmallAmount_DustOnly() (gas: 145179)
62
- [PASS] test_debit_TokensTransferredToSelfThenBurned() (gas: 122500)
63
- [PASS] test_debit_WithFee() (gas: 166449)
64
- [PASS] test_debit_WithFee_Dust() (gas: 166055)
65
- [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 168456, ~: 170245)
66
- [PASS] test_initialize() (gas: 24700)
67
- [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
68
- [PASS] test_pause_unpause() (gas: 153198)
69
- [PASS] test_quoteOFT() (gas: 70712)
70
- [PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
71
- [PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59173)
72
- [PASS] test_quoteOFT_Paused() (gas: 56570)
73
- [PASS] test_quoteOFT_RateLimiterUsage() (gas: 243840)
74
- [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 270346)
75
- [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 193679, ~: 193521)
76
- [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84254)
77
- [PASS] test_rateLimit_Inflow() (gas: 108826)
78
- [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 159696)
79
- [PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 176825)
80
- [PASS] test_send() (gas: 456534)
81
- [PASS] test_send_Revert_MsgInspection() (gas: 337267)
82
- [PASS] test_send_Revert_OnlyAltToken() (gas: 250697)
83
- [PASS] test_send_WithFee() (gas: 504694)
84
- [PASS] test_setFeeDeposit() (gas: 28445)
85
- [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
86
- [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38938, ~: 39034)
87
- Suite result: ok. 33 passed; 0 failed; 0 skipped; finished in 966.76ms (2.43s CPU time)
88
-
89
- Ran 32 tests for test/OFTBurnSelfMintExtendedRBAC.t.sol:OFTBurnSelfMintExtendedRBACTest
90
- [PASS] test_credit() (gas: 89873)
91
- [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93105, ~: 93305)
92
- [PASS] test_debit() (gas: 120710)
93
- [PASS] test_debit_Dust() (gas: 143616)
94
- [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 145620, ~: 146486)
95
- [PASS] test_debit_PushesFees() (gas: 164384)
96
- [PASS] test_debit_Revert_SlippageExceeded() (gas: 131872)
97
- [PASS] test_debit_SmallAmount_DustOnly() (gas: 143579)
98
- [PASS] test_debit_TokensTransferredToSelfThenBurned() (gas: 122517)
99
- [PASS] test_debit_WithFee() (gas: 166449)
100
- [PASS] test_debit_WithFee_Dust() (gas: 164455)
101
- [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 166880, ~: 168645)
102
- [PASS] test_initialize() (gas: 24700)
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)
103
108
  [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
104
- [PASS] test_pause_unpause() (gas: 151598)
109
+ [PASS] test_pause_unpause() (gas: 130472)
105
110
  [PASS] test_quoteOFT() (gas: 70712)
106
111
  [PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
107
- [PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59173)
112
+ [PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59195)
108
113
  [PASS] test_quoteOFT_Paused() (gas: 56570)
109
- [PASS] test_quoteOFT_RateLimiterUsage() (gas: 242240)
110
- [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 268746)
111
- [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 192084, ~: 191924)
112
- [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84254)
113
- [PASS] test_rateLimit_Inflow() (gas: 108738)
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)
114
119
  [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
115
- [PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 175225)
116
- [PASS] test_send() (gas: 387136)
117
- [PASS] test_send_Revert_MsgInspection() (gas: 335267)
118
- [PASS] test_send_WithFee() (gas: 462592)
119
- [PASS] test_setFeeDeposit() (gas: 28445)
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)
120
125
  [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
121
- [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38947, ~: 39034)
122
- Suite result: ok. 32 passed; 0 failed; 0 skipped; finished in 968.83ms (2.99s CPU time)
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)
123
128
 
124
129
  Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACTest
125
130
  [PASS] test_credit() (gas: 89871)
126
- [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93073, ~: 93303)
131
+ [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93027, ~: 93303)
127
132
  [PASS] test_debit() (gas: 98327)
128
133
  [PASS] test_debit_Dust() (gas: 139747)
129
- [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 142739, ~: 143461)
134
+ [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 142254, ~: 143461)
130
135
  [PASS] test_debit_PushesFees() (gas: 165796)
131
136
  [PASS] test_debit_Revert_SlippageExceeded() (gas: 131894)
132
137
  [PASS] test_debit_SmallAmount_DustOnly() (gas: 139811)
133
138
  [PASS] test_debit_WithFee() (gas: 165270)
134
139
  [PASS] test_debit_WithFee_Dust() (gas: 165884)
135
- [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 169040, ~: 171204)
140
+ [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 168665, ~: 171204)
136
141
  [PASS] test_initialize() (gas: 24722)
137
142
  [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
138
143
  [PASS] test_pause_unpause() (gas: 130467)
@@ -152,63 +157,56 @@ Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACTest
152
157
  [PASS] test_send_WithFee() (gas: 477338)
153
158
  [PASS] test_setFeeDeposit() (gas: 28359)
154
159
  [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
155
- [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38866, ~: 38967)
156
- Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 996.05ms (2.78s CPU time)
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)
157
162
 
158
- Ran 39 tests for test/OFTNativeExtendedRBAC.t.sol:OFTNativeExtendedRBACTest
159
- [PASS] test_approvalRequired() (gas: 13426)
160
- [PASS] test_credit() (gas: 62369)
161
- [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 65758, ~: 65954)
162
- [PASS] test_credit_Revert_CreditFailed() (gas: 91478)
163
- [PASS] test_debit() (gas: 36831)
164
- [PASS] test_debit_Dust() (gas: 76272)
165
- [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 79379, ~: 79886)
166
- [PASS] test_debit_PushesFees() (gas: 101339)
167
- [PASS] test_debit_Revert_SlippageExceeded() (gas: 54229)
168
- [PASS] test_debit_SmallAmount_DustOnly() (gas: 76226)
169
- [PASS] test_debit_WithFee() (gas: 101145)
170
- [PASS] test_debit_WithFee_Dust() (gas: 102376)
171
- [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 105599, ~: 107585)
172
- [PASS] test_initialize() (gas: 22406)
173
- [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92778)
174
- [PASS] test_pause_unpause() (gas: 61117)
175
- [PASS] test_quoteOFT() (gas: 70779)
176
- [PASS] test_quoteOFT_GloballyDisabled() (gas: 80649)
177
- [PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59220)
178
- [PASS] test_quoteOFT_Paused() (gas: 56703)
179
- [PASS] test_quoteOFT_RateLimiterUsage() (gas: 97744)
180
- [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 160139)
181
- [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 137896, ~: 137703)
182
- [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84387)
183
- [PASS] test_rateLimit_Inflow() (gas: 87713)
184
- [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 80123)
185
- [PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 116713)
186
- [PASS] test_send() (gas: 352734)
187
- [PASS] test_send_PushesFees() (gas: 415282)
188
- [PASS] test_send_Revert_FeeTransferFailed() (gas: 157067)
189
- [PASS] test_send_Revert_IncorrectMessageValue_TooHigh() (gas: 30287)
190
- [PASS] test_send_Revert_IncorrectMessageValue_TooLow() (gas: 30257)
191
- [PASS] test_send_Revert_IncorrectMessageValue_ZeroValue() (gas: 22753)
192
- [PASS] test_send_Revert_MsgInspection() (gas: 221169)
193
- [PASS] test_send_WithFee() (gas: 415240)
194
- [PASS] test_setFeeDeposit() (gas: 28425)
195
- [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22627)
196
- [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38934, ~: 39011)
197
- [PASS] test_token() (gas: 13483)
198
- Suite result: ok. 39 passed; 0 failed; 0 skipped; finished in 990.02ms (2.41s CPU time)
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)
199
197
 
200
198
  Ran 32 tests for test/OFTLockUnlockExtendedRBACAlt.t.sol:OFTLockUnlockExtendedRBACAltTest
201
199
  [PASS] test_credit() (gas: 91882)
202
- [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 95123, ~: 95314)
200
+ [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 95092, ~: 95314)
203
201
  [PASS] test_debit() (gas: 113036)
204
202
  [PASS] test_debit_Dust() (gas: 137551)
205
- [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 140231, ~: 141029)
203
+ [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 140037, ~: 140423)
206
204
  [PASS] test_debit_PushesFees() (gas: 163342)
207
205
  [PASS] test_debit_Revert_SlippageExceeded() (gas: 133828)
208
206
  [PASS] test_debit_SmallAmount_DustOnly() (gas: 137513)
209
207
  [PASS] test_debit_WithFee() (gas: 163924)
210
208
  [PASS] test_debit_WithFee_Dust() (gas: 163430)
211
- [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 163148, ~: 162567)
209
+ [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 163346, ~: 162567)
212
210
  [PASS] test_initialize() (gas: 24656)
213
211
  [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92822)
214
212
  [PASS] test_pause_unpause() (gas: 145524)
@@ -218,7 +216,7 @@ Ran 32 tests for test/OFTLockUnlockExtendedRBACAlt.t.sol:OFTLockUnlockExtendedRB
218
216
  [PASS] test_quoteOFT_Paused() (gas: 56637)
219
217
  [PASS] test_quoteOFT_RateLimiterUsage() (gas: 200448)
220
218
  [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 242784)
221
- [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 198097, ~: 197912)
219
+ [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 198109, ~: 197912)
222
220
  [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84299)
223
221
  [PASS] test_rateLimit_Inflow() (gas: 132710)
224
222
  [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 159652)
@@ -229,55 +227,55 @@ Ran 32 tests for test/OFTLockUnlockExtendedRBACAlt.t.sol:OFTLockUnlockExtendedRB
229
227
  [PASS] test_send_WithFee() (gas: 516566)
230
228
  [PASS] test_setFeeDeposit() (gas: 28423)
231
229
  [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22583)
232
- [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38896, ~: 39012)
233
- Suite result: ok. 32 passed; 0 failed; 0 skipped; finished in 996.89ms (3.34s CPU time)
230
+ [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38944, ~: 39012)
231
+ Suite result: ok. 32 passed; 0 failed; 0 skipped; finished in 1.13s (2.82s CPU time)
234
232
 
235
- Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACCrosschainTest
236
- [PASS] test_credit() (gas: 89874)
237
- [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93192, ~: 93306)
238
- [PASS] test_debit() (gas: 98332)
239
- [PASS] test_debit_Dust() (gas: 139763)
240
- [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 142287, ~: 143477)
241
- [PASS] test_debit_PushesFees() (gas: 165812)
242
- [PASS] test_debit_Revert_SlippageExceeded() (gas: 131894)
243
- [PASS] test_debit_SmallAmount_DustOnly() (gas: 139827)
244
- [PASS] test_debit_WithFee() (gas: 165286)
245
- [PASS] test_debit_WithFee_Dust() (gas: 165900)
246
- [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 168948, ~: 171220)
247
- [PASS] test_initialize() (gas: 24722)
248
- [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
249
- [PASS] test_pause_unpause() (gas: 130472)
250
- [PASS] test_quoteOFT() (gas: 70712)
251
- [PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
252
- [PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59195)
253
- [PASS] test_quoteOFT_Paused() (gas: 56570)
254
- [PASS] test_quoteOFT_RateLimiterUsage() (gas: 185667)
255
- [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 233430)
256
- [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 200481, ~: 200315)
257
- [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84276)
258
- [PASS] test_rateLimit_Inflow() (gas: 108739)
259
- [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
260
- [PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 179385)
261
- [PASS] test_send() (gas: 400527)
262
- [PASS] test_send_Revert_MsgInspection() (gas: 308880)
263
- [PASS] test_send_WithFee() (gas: 477358)
264
- [PASS] test_setFeeDeposit() (gas: 28359)
265
- [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
266
- [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38871, ~: 38967)
267
- Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 1.00s (2.98s CPU time)
233
+ Ran 31 tests for test/OFTLockUnlockExtendedRBAC.t.sol:OFTLockUnlockExtendedRBACTest
234
+ [PASS] test_credit() (gas: 89882)
235
+ [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93156, ~: 93314)
236
+ [PASS] test_debit() (gas: 113036)
237
+ [PASS] test_debit_Dust() (gas: 135880)
238
+ [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 138390, ~: 138823)
239
+ [PASS] test_debit_PushesFees() (gas: 161342)
240
+ [PASS] test_debit_Revert_SlippageExceeded() (gas: 131850)
241
+ [PASS] test_debit_SmallAmount_DustOnly() (gas: 135931)
242
+ [PASS] test_debit_WithFee() (gas: 163924)
243
+ [PASS] test_debit_WithFee_Dust() (gas: 161430)
244
+ [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 161616, ~: 160967)
245
+ [PASS] test_initialize() (gas: 24678)
246
+ [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92822)
247
+ [PASS] test_pause_unpause() (gas: 143924)
248
+ [PASS] test_quoteOFT() (gas: 70757)
249
+ [PASS] test_quoteOFT_GloballyDisabled() (gas: 80605)
250
+ [PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59262)
251
+ [PASS] test_quoteOFT_Paused() (gas: 56637)
252
+ [PASS] test_quoteOFT_RateLimiterUsage() (gas: 198848)
253
+ [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 241184)
254
+ [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 196083, ~: 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)
263
+ [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22583)
264
+ [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38849, ~: 38945)
265
+ Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 1.16s (3.87s CPU time)
268
266
 
269
267
  Ran 32 tests for test/OFTBurnMintExtendedRBACAlt.t.sol:OFTBurnMintExtendedRBACAltTest
270
268
  [PASS] test_credit() (gas: 89871)
271
- [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93152, ~: 93303)
269
+ [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93024, ~: 93303)
272
270
  [PASS] test_debit() (gas: 98327)
273
271
  [PASS] test_debit_Dust() (gas: 141836)
274
- [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 144794, ~: 145461)
272
+ [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 144571, ~: 145461)
275
273
  [PASS] test_debit_PushesFees() (gas: 167796)
276
274
  [PASS] test_debit_Revert_SlippageExceeded() (gas: 133872)
277
275
  [PASS] test_debit_SmallAmount_DustOnly() (gas: 141789)
278
276
  [PASS] test_debit_WithFee() (gas: 165270)
279
277
  [PASS] test_debit_WithFee_Dust() (gas: 167884)
280
- [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 171207, ~: 173204)
278
+ [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 170611, ~: 173204)
281
279
  [PASS] test_initialize() (gas: 24700)
282
280
  [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
283
281
  [PASS] test_pause_unpause() (gas: 132067)
@@ -287,7 +285,7 @@ Ran 32 tests for test/OFTBurnMintExtendedRBACAlt.t.sol:OFTBurnMintExtendedRBACAl
287
285
  [PASS] test_quoteOFT_Paused() (gas: 56570)
288
286
  [PASS] test_quoteOFT_RateLimiterUsage() (gas: 187257)
289
287
  [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 235398)
290
- [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 202484, ~: 202299)
288
+ [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 202501, ~: 202299)
291
289
  [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84254)
292
290
  [PASS] test_rateLimit_Inflow() (gas: 108824)
293
291
  [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 159696)
@@ -298,42 +296,44 @@ Ran 32 tests for test/OFTBurnMintExtendedRBACAlt.t.sol:OFTBurnMintExtendedRBACAl
298
296
  [PASS] test_send_WithFee() (gas: 493959)
299
297
  [PASS] test_setFeeDeposit() (gas: 28445)
300
298
  [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
301
- [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38930, ~: 39034)
302
- Suite result: ok. 32 passed; 0 failed; 0 skipped; finished in 1.00s (2.51s CPU time)
299
+ [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38947, ~: 39034)
300
+ Suite result: ok. 32 passed; 0 failed; 0 skipped; finished in 1.17s (3.80s CPU time)
303
301
 
304
- Ran 31 tests for test/OFTLockUnlockExtendedRBAC.t.sol:OFTLockUnlockExtendedRBACTest
305
- [PASS] test_credit() (gas: 89882)
306
- [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93187, ~: 93314)
307
- [PASS] test_debit() (gas: 113036)
308
- [PASS] test_debit_Dust() (gas: 135880)
309
- [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 137904, ~: 138926)
310
- [PASS] test_debit_PushesFees() (gas: 161342)
311
- [PASS] test_debit_Revert_SlippageExceeded() (gas: 131850)
312
- [PASS] test_debit_SmallAmount_DustOnly() (gas: 135931)
313
- [PASS] test_debit_WithFee() (gas: 163924)
314
- [PASS] test_debit_WithFee_Dust() (gas: 161430)
315
- [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 161909, ~: 160967)
316
- [PASS] test_initialize() (gas: 24678)
317
- [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92822)
318
- [PASS] test_pause_unpause() (gas: 143924)
319
- [PASS] test_quoteOFT() (gas: 70757)
320
- [PASS] test_quoteOFT_GloballyDisabled() (gas: 80605)
321
- [PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59262)
322
- [PASS] test_quoteOFT_Paused() (gas: 56637)
323
- [PASS] test_quoteOFT_RateLimiterUsage() (gas: 198848)
324
- [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 241184)
325
- [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 196089, ~: 195912)
326
- [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84321)
327
- [PASS] test_rateLimit_Inflow() (gas: 130622)
328
- [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157652)
329
- [PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 174915)
330
- [PASS] test_send() (gas: 418929)
331
- [PASS] test_send_Revert_MsgInspection() (gas: 325718)
332
- [PASS] test_send_WithFee() (gas: 474453)
333
- [PASS] test_setFeeDeposit() (gas: 28337)
334
- [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22583)
335
- [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38839, ~: 38945)
336
- Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 1.03s (2.08s CPU time)
302
+ Ran 33 tests for test/OFTBurnSelfMintExtendedRBACAlt.t.sol:OFTBurnSelfMintExtendedRBACAltTest
303
+ [PASS] test_credit() (gas: 89873)
304
+ [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93256, ~: 93305)
305
+ [PASS] test_debit() (gas: 120710)
306
+ [PASS] test_debit_Dust() (gas: 145216)
307
+ [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 147294, ~: 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, μ: 168302, ~: 170243)
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, μ: 193673, ~: 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, μ: 38947, ~: 39034)
336
+ Suite result: ok. 33 passed; 0 failed; 0 skipped; finished in 1.25s (3.32s CPU time)
337
337
 
338
- Ran 9 test suites in 1.37s (8.89s CPU time): 292 tests passed, 0 failed, 0 skipped (292 total tests)
339
- ⏳ forge test: 1:11.077 (m:ss.mmm)
338
+ Ran 9 test suites in 1.43s (9.84s CPU time): 292 tests passed, 0 failed, 0 skipped (292 total tests)
339
+ ⏳ forge test: 49.341s
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@layerzerolabs/oft-upgradeable-evm-contracts",
3
- "version": "0.2.90",
3
+ "version": "0.2.91",
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.90",
18
- "@layerzerolabs/oft-evm-contracts": "0.2.90",
19
- "@layerzerolabs/oapp-upgradeable-evm-contracts": "0.2.90",
20
- "@layerzerolabs/test-utils-evm-contracts": "0.2.90",
21
- "@layerzerolabs/solhint-configuration": "0.2.90",
22
- "@layerzerolabs/tsup-configuration": "0.2.90",
23
- "@layerzerolabs/utils-evm-contracts": "0.2.90",
24
- "@layerzerolabs/typescript-configuration": "0.2.90",
25
- "@layerzerolabs/vm-tooling-evm": "0.2.90",
26
- "@layerzerolabs/utils-upgradeable-evm-contracts": "0.2.90"
17
+ "@layerzerolabs/oapp-evm-contracts": "0.2.91",
18
+ "@layerzerolabs/oapp-upgradeable-evm-contracts": "0.2.91",
19
+ "@layerzerolabs/solhint-configuration": "0.2.91",
20
+ "@layerzerolabs/oft-evm-contracts": "0.2.91",
21
+ "@layerzerolabs/test-utils-evm-contracts": "0.2.91",
22
+ "@layerzerolabs/tsup-configuration": "0.2.91",
23
+ "@layerzerolabs/utils-evm-contracts": "0.2.91",
24
+ "@layerzerolabs/typescript-configuration": "0.2.91",
25
+ "@layerzerolabs/utils-upgradeable-evm-contracts": "0.2.91",
26
+ "@layerzerolabs/vm-tooling-evm": "0.2.91"
27
27
  },
28
28
  "publishConfig": {
29
29
  "access": "public",