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

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:34225) [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: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.
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: 10.648s
73
+ ⏳ hardhat compile --config /hardhat/hardhat.default.config.js: 16.474s
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:36826) [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: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.
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:27.750 (m:ss.mmm)
95
+ ⏳ hardhat compile --config /hardhat/hardhat.default.config.js --network zksync-mainnet: 1:33.585 (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:53460) [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: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.
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: 37.561s
166
+ ⏳ hardhat compile --config /hardhat/hardhat.default.config.js --network tron-mainnet: 33.755s
@@ -448,4 +448,112 @@ 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'
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
+
@@ -5,172 +5,64 @@
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:67653) [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: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.
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)
12
- Error response from daemon: No such image: 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3
13
- 📥 Pulling Docker image from: 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3
14
- $ docker pull 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3
15
- forge-1.3.6-hardhat-2.26.3-patch-3: Pulling from layerzerolabs/evm-tooling
16
- 86ec798129ac: Already exists
17
- eef7c391911c: Already exists
18
- cc2ecf4065b7: Already exists
19
- 5760fdd70374: Already exists
20
- c70db14240a1: Already exists
21
- 0cb2c6965bde: Already exists
22
- 885bca26f927: Pulling fs layer
23
- 8e167e77288f: Pulling fs layer
24
- 45d43cc973ba: Pulling fs layer
25
- 44c09156221f: Pulling fs layer
26
- f2fb700979ad: Pulling fs layer
27
- 2a1ced882ba9: Pulling fs layer
28
- 597168d5c38e: Pulling fs layer
29
- e431adaf232f: Pulling fs layer
30
- 36e15e3f2788: Pulling fs layer
31
- 36e15e3f2788: Download complete
32
- f2fb700979ad: Download complete
33
- 44c09156221f: Download complete
34
- 2a1ced882ba9: Download complete
35
- 8e167e77288f: Download complete
36
- 597168d5c38e: Download complete
37
- e431adaf232f: Download complete
38
- 45d43cc973ba: Download complete
39
- 885bca26f927: Pull complete
40
- 8e167e77288f: Pull complete
41
- 45d43cc973ba: Pull complete
42
- 44c09156221f: Pull complete
43
- f2fb700979ad: Pull complete
44
- 2a1ced882ba9: Pull complete
45
- 597168d5c38e: Pull complete
46
- e431adaf232f: Pull complete
47
- 36e15e3f2788: Pull complete
48
- Digest: sha256:08b858b586759ec59f4df44c0bc5eac9f856a1eb32b6ce37f79f31a20a89ed52
49
- Status: Downloaded newer image for 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3
50
- 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3
51
- ✅ Successfully pulled: 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3
12
+ Using cached Docker image: 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3
52
13
  👤 Running container as UID:GID 1001:1001
53
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
54
15
  Compiling 185 files with Solc 0.8.22
55
- Solc 0.8.22 finished in 42.85s
16
+ Solc 0.8.22 finished in 65.95s
56
17
  Compiler run successful!
57
18
 
58
- Ran 32 tests for test/OFTLockUnlockExtendedRBACAlt.t.sol:OFTLockUnlockExtendedRBACAltTest
59
- [PASS] test_credit() (gas: 91882)
60
- [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 95111, ~: 95314)
61
- [PASS] test_debit() (gas: 113036)
62
- [PASS] test_debit_Dust() (gas: 137551)
63
- [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 140009, ~: 140423)
64
- [PASS] test_debit_PushesFees() (gas: 163342)
65
- [PASS] test_debit_Revert_SlippageExceeded() (gas: 133828)
66
- [PASS] test_debit_SmallAmount_DustOnly() (gas: 137513)
67
- [PASS] test_debit_WithFee() (gas: 163924)
68
- [PASS] test_debit_WithFee_Dust() (gas: 163430)
69
- [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 163515, ~: 162567)
70
- [PASS] test_initialize() (gas: 24656)
71
- [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92822)
72
- [PASS] test_pause_unpause() (gas: 145524)
73
- [PASS] test_quoteOFT() (gas: 70757)
74
- [PASS] test_quoteOFT_GloballyDisabled() (gas: 80605)
75
- [PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59240)
76
- [PASS] test_quoteOFT_Paused() (gas: 56637)
77
- [PASS] test_quoteOFT_RateLimiterUsage() (gas: 200448)
78
- [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 242784)
79
- [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 198071, ~: 197912)
80
- [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84299)
81
- [PASS] test_rateLimit_Inflow() (gas: 132710)
82
- [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 159652)
83
- [PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 176893)
84
- [PASS] test_send() (gas: 465637)
85
- [PASS] test_send_Revert_MsgInspection() (gas: 327696)
86
- [PASS] test_send_Revert_OnlyAltToken() (gas: 241148)
87
- [PASS] test_send_WithFee() (gas: 516566)
88
- [PASS] test_setFeeDeposit() (gas: 28423)
89
- [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22583)
90
- [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38892, ~: 39012)
91
- Suite result: ok. 32 passed; 0 failed; 0 skipped; finished in 517.97ms (1.49s CPU time)
92
-
93
- Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACCrosschainTest
94
- [PASS] test_credit() (gas: 89874)
95
- [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93357, ~: 93306)
96
- [PASS] test_debit() (gas: 98332)
19
+ Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACRedeemIssueTest
20
+ [PASS] test_credit() (gas: 89907)
21
+ [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93218, ~: 93339)
22
+ [PASS] test_debit() (gas: 98305)
97
23
  [PASS] test_debit_Dust() (gas: 139763)
98
- [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 142274, ~: 143477)
24
+ [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 142311, ~: 143477)
99
25
  [PASS] test_debit_PushesFees() (gas: 165812)
100
26
  [PASS] test_debit_Revert_SlippageExceeded() (gas: 131894)
101
27
  [PASS] test_debit_SmallAmount_DustOnly() (gas: 139827)
102
28
  [PASS] test_debit_WithFee() (gas: 165286)
103
29
  [PASS] test_debit_WithFee_Dust() (gas: 165900)
104
- [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 169143, ~: 171220)
30
+ [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 168941, ~: 171220)
105
31
  [PASS] test_initialize() (gas: 24722)
106
32
  [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
107
- [PASS] test_pause_unpause() (gas: 130472)
33
+ [PASS] test_pause_unpause() (gas: 130445)
108
34
  [PASS] test_quoteOFT() (gas: 70712)
109
35
  [PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
110
36
  [PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59195)
111
37
  [PASS] test_quoteOFT_Paused() (gas: 56570)
112
- [PASS] test_quoteOFT_RateLimiterUsage() (gas: 185667)
38
+ [PASS] test_quoteOFT_RateLimiterUsage() (gas: 185614)
113
39
  [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 233430)
114
- [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 200474, ~: 200312)
40
+ [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 200495, ~: 200315)
115
41
  [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84276)
116
- [PASS] test_rateLimit_Inflow() (gas: 108739)
42
+ [PASS] test_rateLimit_Inflow() (gas: 108772)
117
43
  [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
118
44
  [PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 179385)
119
- [PASS] test_send() (gas: 400527)
120
- [PASS] test_send_Revert_MsgInspection() (gas: 308880)
45
+ [PASS] test_send() (gas: 400494)
46
+ [PASS] test_send_Revert_MsgInspection() (gas: 308847)
121
47
  [PASS] test_send_WithFee() (gas: 477358)
122
48
  [PASS] test_setFeeDeposit() (gas: 28359)
123
49
  [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
124
- [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38885, ~: 38967)
125
- Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 536.60ms (1.76s CPU time)
126
-
127
- Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACTest
128
- [PASS] test_credit() (gas: 89871)
129
- [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93043, ~: 93303)
130
- [PASS] test_debit() (gas: 98327)
131
- [PASS] test_debit_Dust() (gas: 139747)
132
- [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 142681, ~: 143461)
133
- [PASS] test_debit_PushesFees() (gas: 165796)
134
- [PASS] test_debit_Revert_SlippageExceeded() (gas: 131894)
135
- [PASS] test_debit_SmallAmount_DustOnly() (gas: 139811)
136
- [PASS] test_debit_WithFee() (gas: 165270)
137
- [PASS] test_debit_WithFee_Dust() (gas: 165884)
138
- [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 169237, ~: 171204)
139
- [PASS] test_initialize() (gas: 24722)
140
- [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
141
- [PASS] test_pause_unpause() (gas: 130467)
142
- [PASS] test_quoteOFT() (gas: 70712)
143
- [PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
144
- [PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59195)
145
- [PASS] test_quoteOFT_Paused() (gas: 56570)
146
- [PASS] test_quoteOFT_RateLimiterUsage() (gas: 185657)
147
- [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 233398)
148
- [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 200469, ~: 200299)
149
- [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84276)
150
- [PASS] test_rateLimit_Inflow() (gas: 108736)
151
- [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
152
- [PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 179369)
153
- [PASS] test_send() (gas: 400518)
154
- [PASS] test_send_Revert_MsgInspection() (gas: 308871)
155
- [PASS] test_send_WithFee() (gas: 477338)
156
- [PASS] test_setFeeDeposit() (gas: 28359)
157
- [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
158
- [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38880, ~: 38967)
159
- Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 542.35ms (1.81s CPU time)
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)
160
52
 
161
53
  Ran 33 tests for test/OFTBurnSelfMintExtendedRBACAlt.t.sol:OFTBurnSelfMintExtendedRBACAltTest
162
54
  [PASS] test_credit() (gas: 89873)
163
- [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93194, ~: 93305)
55
+ [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93031, ~: 93305)
164
56
  [PASS] test_debit() (gas: 120710)
165
57
  [PASS] test_debit_Dust() (gas: 145216)
166
- [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 147806, ~: 148086)
58
+ [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 147598, ~: 148086)
167
59
  [PASS] test_debit_PushesFees() (gas: 165984)
168
60
  [PASS] test_debit_Revert_SlippageExceeded() (gas: 133872)
169
61
  [PASS] test_debit_SmallAmount_DustOnly() (gas: 145179)
170
62
  [PASS] test_debit_TokensTransferredToSelfThenBurned() (gas: 122500)
171
63
  [PASS] test_debit_WithFee() (gas: 166449)
172
64
  [PASS] test_debit_WithFee_Dust() (gas: 166055)
173
- [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 168080, ~: 170241)
65
+ [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 168456, ~: 170245)
174
66
  [PASS] test_initialize() (gas: 24700)
175
67
  [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
176
68
  [PASS] test_pause_unpause() (gas: 153198)
@@ -180,7 +72,7 @@ Ran 33 tests for test/OFTBurnSelfMintExtendedRBACAlt.t.sol:OFTBurnSelfMintExtend
180
72
  [PASS] test_quoteOFT_Paused() (gas: 56570)
181
73
  [PASS] test_quoteOFT_RateLimiterUsage() (gas: 243840)
182
74
  [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 270346)
183
- [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 193685, ~: 193521)
75
+ [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 193679, ~: 193521)
184
76
  [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84254)
185
77
  [PASS] test_rateLimit_Inflow() (gas: 108826)
186
78
  [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 159696)
@@ -191,23 +83,92 @@ Ran 33 tests for test/OFTBurnSelfMintExtendedRBACAlt.t.sol:OFTBurnSelfMintExtend
191
83
  [PASS] test_send_WithFee() (gas: 504694)
192
84
  [PASS] test_setFeeDeposit() (gas: 28445)
193
85
  [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
194
- [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38899, ~: 39034)
195
- Suite result: ok. 33 passed; 0 failed; 0 skipped; finished in 546.77ms (1.53s CPU time)
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)
103
+ [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
104
+ [PASS] test_pause_unpause() (gas: 151598)
105
+ [PASS] test_quoteOFT() (gas: 70712)
106
+ [PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
107
+ [PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59173)
108
+ [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_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_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)
123
+
124
+ Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACTest
125
+ [PASS] test_credit() (gas: 89871)
126
+ [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93073, ~: 93303)
127
+ [PASS] test_debit() (gas: 98327)
128
+ [PASS] test_debit_Dust() (gas: 139747)
129
+ [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 142739, ~: 143461)
130
+ [PASS] test_debit_PushesFees() (gas: 165796)
131
+ [PASS] test_debit_Revert_SlippageExceeded() (gas: 131894)
132
+ [PASS] test_debit_SmallAmount_DustOnly() (gas: 139811)
133
+ [PASS] test_debit_WithFee() (gas: 165270)
134
+ [PASS] test_debit_WithFee_Dust() (gas: 165884)
135
+ [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 169040, ~: 171204)
136
+ [PASS] test_initialize() (gas: 24722)
137
+ [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
138
+ [PASS] test_pause_unpause() (gas: 130467)
139
+ [PASS] test_quoteOFT() (gas: 70712)
140
+ [PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
141
+ [PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59195)
142
+ [PASS] test_quoteOFT_Paused() (gas: 56570)
143
+ [PASS] test_quoteOFT_RateLimiterUsage() (gas: 185657)
144
+ [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 233398)
145
+ [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 200468, ~: 200299)
146
+ [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84276)
147
+ [PASS] test_rateLimit_Inflow() (gas: 108736)
148
+ [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
149
+ [PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 179369)
150
+ [PASS] test_send() (gas: 400518)
151
+ [PASS] test_send_Revert_MsgInspection() (gas: 308871)
152
+ [PASS] test_send_WithFee() (gas: 477338)
153
+ [PASS] test_setFeeDeposit() (gas: 28359)
154
+ [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)
196
157
 
197
158
  Ran 39 tests for test/OFTNativeExtendedRBAC.t.sol:OFTNativeExtendedRBACTest
198
159
  [PASS] test_approvalRequired() (gas: 13426)
199
160
  [PASS] test_credit() (gas: 62369)
200
- [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 66036, ~: 65954)
161
+ [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 65758, ~: 65954)
201
162
  [PASS] test_credit_Revert_CreditFailed() (gas: 91478)
202
163
  [PASS] test_debit() (gas: 36831)
203
164
  [PASS] test_debit_Dust() (gas: 76272)
204
- [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 79361, ~: 79886)
165
+ [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 79379, ~: 79886)
205
166
  [PASS] test_debit_PushesFees() (gas: 101339)
206
167
  [PASS] test_debit_Revert_SlippageExceeded() (gas: 54229)
207
168
  [PASS] test_debit_SmallAmount_DustOnly() (gas: 76226)
208
169
  [PASS] test_debit_WithFee() (gas: 101145)
209
170
  [PASS] test_debit_WithFee_Dust() (gas: 102376)
210
- [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 105301, ~: 107585)
171
+ [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 105599, ~: 107585)
211
172
  [PASS] test_initialize() (gas: 22406)
212
173
  [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92778)
213
174
  [PASS] test_pause_unpause() (gas: 61117)
@@ -217,7 +178,7 @@ Ran 39 tests for test/OFTNativeExtendedRBAC.t.sol:OFTNativeExtendedRBACTest
217
178
  [PASS] test_quoteOFT_Paused() (gas: 56703)
218
179
  [PASS] test_quoteOFT_RateLimiterUsage() (gas: 97744)
219
180
  [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 160139)
220
- [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 137871, ~: 137697)
181
+ [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 137896, ~: 137703)
221
182
  [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84387)
222
183
  [PASS] test_rateLimit_Inflow() (gas: 87713)
223
184
  [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 80123)
@@ -232,125 +193,91 @@ Ran 39 tests for test/OFTNativeExtendedRBAC.t.sol:OFTNativeExtendedRBACTest
232
193
  [PASS] test_send_WithFee() (gas: 415240)
233
194
  [PASS] test_setFeeDeposit() (gas: 28425)
234
195
  [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22627)
235
- [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38924, ~: 39011)
196
+ [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38934, ~: 39011)
236
197
  [PASS] test_token() (gas: 13483)
237
- Suite result: ok. 39 passed; 0 failed; 0 skipped; finished in 573.06ms (1.42s CPU time)
198
+ Suite result: ok. 39 passed; 0 failed; 0 skipped; finished in 990.02ms (2.41s CPU time)
238
199
 
239
- Ran 32 tests for test/OFTBurnSelfMintExtendedRBAC.t.sol:OFTBurnSelfMintExtendedRBACTest
240
- [PASS] test_credit() (gas: 89873)
241
- [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93309, ~: 93305)
242
- [PASS] test_debit() (gas: 120710)
243
- [PASS] test_debit_Dust() (gas: 143616)
244
- [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 145816, ~: 146486)
245
- [PASS] test_debit_PushesFees() (gas: 164384)
246
- [PASS] test_debit_Revert_SlippageExceeded() (gas: 131872)
247
- [PASS] test_debit_SmallAmount_DustOnly() (gas: 143579)
248
- [PASS] test_debit_TokensTransferredToSelfThenBurned() (gas: 122517)
249
- [PASS] test_debit_WithFee() (gas: 166449)
250
- [PASS] test_debit_WithFee_Dust() (gas: 164455)
251
- [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 167066, ~: 168645)
252
- [PASS] test_initialize() (gas: 24700)
253
- [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
254
- [PASS] test_pause_unpause() (gas: 151598)
255
- [PASS] test_quoteOFT() (gas: 70712)
256
- [PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
257
- [PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59173)
258
- [PASS] test_quoteOFT_Paused() (gas: 56570)
259
- [PASS] test_quoteOFT_RateLimiterUsage() (gas: 242240)
260
- [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 268746)
261
- [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 192077, ~: 191921)
262
- [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84254)
263
- [PASS] test_rateLimit_Inflow() (gas: 108738)
264
- [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
265
- [PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 175225)
266
- [PASS] test_send() (gas: 387136)
267
- [PASS] test_send_Revert_MsgInspection() (gas: 335267)
268
- [PASS] test_send_WithFee() (gas: 462592)
269
- [PASS] test_setFeeDeposit() (gas: 28445)
270
- [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
271
- [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38976, ~: 39034)
272
- Suite result: ok. 32 passed; 0 failed; 0 skipped; finished in 573.12ms (1.51s CPU time)
273
-
274
- Ran 31 tests for test/OFTLockUnlockExtendedRBAC.t.sol:OFTLockUnlockExtendedRBACTest
275
- [PASS] test_credit() (gas: 89882)
276
- [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93163, ~: 93314)
200
+ Ran 32 tests for test/OFTLockUnlockExtendedRBACAlt.t.sol:OFTLockUnlockExtendedRBACAltTest
201
+ [PASS] test_credit() (gas: 91882)
202
+ [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 95123, ~: 95314)
277
203
  [PASS] test_debit() (gas: 113036)
278
- [PASS] test_debit_Dust() (gas: 135880)
279
- [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 138139, ~: 139029)
280
- [PASS] test_debit_PushesFees() (gas: 161342)
281
- [PASS] test_debit_Revert_SlippageExceeded() (gas: 131850)
282
- [PASS] test_debit_SmallAmount_DustOnly() (gas: 135931)
204
+ [PASS] test_debit_Dust() (gas: 137551)
205
+ [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 140231, ~: 141029)
206
+ [PASS] test_debit_PushesFees() (gas: 163342)
207
+ [PASS] test_debit_Revert_SlippageExceeded() (gas: 133828)
208
+ [PASS] test_debit_SmallAmount_DustOnly() (gas: 137513)
283
209
  [PASS] test_debit_WithFee() (gas: 163924)
284
- [PASS] test_debit_WithFee_Dust() (gas: 161430)
285
- [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 161583, ~: 160967)
286
- [PASS] test_initialize() (gas: 24678)
210
+ [PASS] test_debit_WithFee_Dust() (gas: 163430)
211
+ [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 163148, ~: 162567)
212
+ [PASS] test_initialize() (gas: 24656)
287
213
  [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92822)
288
- [PASS] test_pause_unpause() (gas: 143924)
214
+ [PASS] test_pause_unpause() (gas: 145524)
289
215
  [PASS] test_quoteOFT() (gas: 70757)
290
216
  [PASS] test_quoteOFT_GloballyDisabled() (gas: 80605)
291
- [PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59262)
217
+ [PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59240)
292
218
  [PASS] test_quoteOFT_Paused() (gas: 56637)
293
- [PASS] test_quoteOFT_RateLimiterUsage() (gas: 198848)
294
- [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 241184)
295
- [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 196094, ~: 195912)
296
- [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84321)
297
- [PASS] test_rateLimit_Inflow() (gas: 130622)
298
- [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157652)
299
- [PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 174915)
300
- [PASS] test_send() (gas: 418929)
301
- [PASS] test_send_Revert_MsgInspection() (gas: 325718)
302
- [PASS] test_send_WithFee() (gas: 474453)
303
- [PASS] test_setFeeDeposit() (gas: 28337)
219
+ [PASS] test_quoteOFT_RateLimiterUsage() (gas: 200448)
220
+ [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 242784)
221
+ [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 198097, ~: 197912)
222
+ [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84299)
223
+ [PASS] test_rateLimit_Inflow() (gas: 132710)
224
+ [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 159652)
225
+ [PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 176893)
226
+ [PASS] test_send() (gas: 465637)
227
+ [PASS] test_send_Revert_MsgInspection() (gas: 327696)
228
+ [PASS] test_send_Revert_OnlyAltToken() (gas: 241148)
229
+ [PASS] test_send_WithFee() (gas: 516566)
230
+ [PASS] test_setFeeDeposit() (gas: 28423)
304
231
  [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22583)
305
- [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38892, ~: 38945)
306
- Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 575.39ms (1.41s CPU time)
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)
307
234
 
308
- Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACRedeemIssueTest
309
- [PASS] test_credit() (gas: 89907)
310
- [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93386, ~: 93339)
311
- [PASS] test_debit() (gas: 98305)
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)
312
239
  [PASS] test_debit_Dust() (gas: 139763)
313
- [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 142836, ~: 143477)
240
+ [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 142287, ~: 143477)
314
241
  [PASS] test_debit_PushesFees() (gas: 165812)
315
242
  [PASS] test_debit_Revert_SlippageExceeded() (gas: 131894)
316
243
  [PASS] test_debit_SmallAmount_DustOnly() (gas: 139827)
317
244
  [PASS] test_debit_WithFee() (gas: 165286)
318
245
  [PASS] test_debit_WithFee_Dust() (gas: 165900)
319
- [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 168687, ~: 171220)
246
+ [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 168948, ~: 171220)
320
247
  [PASS] test_initialize() (gas: 24722)
321
248
  [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
322
- [PASS] test_pause_unpause() (gas: 130445)
249
+ [PASS] test_pause_unpause() (gas: 130472)
323
250
  [PASS] test_quoteOFT() (gas: 70712)
324
251
  [PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
325
252
  [PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59195)
326
253
  [PASS] test_quoteOFT_Paused() (gas: 56570)
327
- [PASS] test_quoteOFT_RateLimiterUsage() (gas: 185614)
254
+ [PASS] test_quoteOFT_RateLimiterUsage() (gas: 185667)
328
255
  [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 233430)
329
- [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 200485, ~: 200315)
256
+ [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 200481, ~: 200315)
330
257
  [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84276)
331
- [PASS] test_rateLimit_Inflow() (gas: 108772)
258
+ [PASS] test_rateLimit_Inflow() (gas: 108739)
332
259
  [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
333
260
  [PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 179385)
334
- [PASS] test_send() (gas: 400494)
335
- [PASS] test_send_Revert_MsgInspection() (gas: 308847)
261
+ [PASS] test_send() (gas: 400527)
262
+ [PASS] test_send_Revert_MsgInspection() (gas: 308880)
336
263
  [PASS] test_send_WithFee() (gas: 477358)
337
264
  [PASS] test_setFeeDeposit() (gas: 28359)
338
265
  [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
339
- [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38899, ~: 38967)
340
- Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 758.72ms (1.68s CPU time)
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)
341
268
 
342
269
  Ran 32 tests for test/OFTBurnMintExtendedRBACAlt.t.sol:OFTBurnMintExtendedRBACAltTest
343
270
  [PASS] test_credit() (gas: 89871)
344
- [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93183, ~: 93303)
271
+ [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93152, ~: 93303)
345
272
  [PASS] test_debit() (gas: 98327)
346
273
  [PASS] test_debit_Dust() (gas: 141836)
347
- [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 144461, ~: 145461)
274
+ [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 144794, ~: 145461)
348
275
  [PASS] test_debit_PushesFees() (gas: 167796)
349
276
  [PASS] test_debit_Revert_SlippageExceeded() (gas: 133872)
350
277
  [PASS] test_debit_SmallAmount_DustOnly() (gas: 141789)
351
278
  [PASS] test_debit_WithFee() (gas: 165270)
352
279
  [PASS] test_debit_WithFee_Dust() (gas: 167884)
353
- [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 170801, ~: 173204)
280
+ [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 171207, ~: 173204)
354
281
  [PASS] test_initialize() (gas: 24700)
355
282
  [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
356
283
  [PASS] test_pause_unpause() (gas: 132067)
@@ -360,7 +287,7 @@ Ran 32 tests for test/OFTBurnMintExtendedRBACAlt.t.sol:OFTBurnMintExtendedRBACAl
360
287
  [PASS] test_quoteOFT_Paused() (gas: 56570)
361
288
  [PASS] test_quoteOFT_RateLimiterUsage() (gas: 187257)
362
289
  [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 235398)
363
- [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 202487, ~: 202299)
290
+ [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 202484, ~: 202299)
364
291
  [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84254)
365
292
  [PASS] test_rateLimit_Inflow() (gas: 108824)
366
293
  [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 159696)
@@ -371,8 +298,42 @@ Ran 32 tests for test/OFTBurnMintExtendedRBACAlt.t.sol:OFTBurnMintExtendedRBACAl
371
298
  [PASS] test_send_WithFee() (gas: 493959)
372
299
  [PASS] test_setFeeDeposit() (gas: 28445)
373
300
  [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
374
- [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38952, ~: 39034)
375
- Suite result: ok. 32 passed; 0 failed; 0 skipped; finished in 758.83ms (1.54s CPU time)
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)
303
+
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)
376
337
 
377
- Ran 9 test suites in 847.57ms (5.38s CPU time): 292 tests passed, 0 failed, 0 skipped (292 total tests)
378
- ⏳ forge test: 46.425s
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)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@layerzerolabs/oft-upgradeable-evm-contracts",
3
- "version": "0.2.88",
3
+ "version": "0.2.90",
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.88",
18
- "@layerzerolabs/oft-evm-contracts": "0.2.88",
19
- "@layerzerolabs/oapp-upgradeable-evm-contracts": "0.2.88",
20
- "@layerzerolabs/solhint-configuration": "0.2.88",
21
- "@layerzerolabs/tsup-configuration": "0.2.88",
22
- "@layerzerolabs/typescript-configuration": "0.2.88",
23
- "@layerzerolabs/test-utils-evm-contracts": "0.2.88",
24
- "@layerzerolabs/utils-evm-contracts": "0.2.88",
25
- "@layerzerolabs/vm-tooling-evm": "0.2.88",
26
- "@layerzerolabs/utils-upgradeable-evm-contracts": "0.2.88"
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"
27
27
  },
28
28
  "publishConfig": {
29
29
  "access": "public",