@layerzerolabs/oft-upgradeable-evm-contracts 0.2.104 → 0.2.105

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.
@@ -11,12 +11,12 @@
11
11
   WARN  Issue while reading "/home/runner/work/monorepo-internal/monorepo-internal/.npmrc". Failed to replace env in config: ${NPM_TOKEN}
12
12
  ✅ forge-1.3.6-hardhat-2.26.3
13
13
  🔧 hardhat version: 2.26.3
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:128862) [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.
14
+ $ docker image inspect --format {{.Architecture}} 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3
15
+ (node:116871) [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)
19
- ✅ 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
19
+ ✅ 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 (amd64)
20
20
  👤 Running container as UID:GID 1001:1001
21
21
  🌍 Using 1 custom environment variable(s)
22
22
  $ docker run --rm --add-host=host.docker.internal:host-gateway -e $'TS_NODE_COMPILER_OPTIONS={"module":"CommonJS","moduleResolution":"node"}' -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 hardhat compile --config /hardhat/hardhat.default.config.js
@@ -71,7 +71,7 @@ Warning: Contract code size is 27524 bytes and exceeds 24576 bytes (a limit intr
71
71
 
72
72
 
73
73
  Successfully compiled 76 Solidity files
74
- ⏳ hardhat compile --config /hardhat/hardhat.default.config.js: 12.952s
74
+ ⏳ hardhat compile --config /hardhat/hardhat.default.config.js: 10.623s
75
75
   WARN  Issue while reading "/home/runner/work/monorepo-internal/monorepo-internal/.npmrc". Failed to replace env in config: ${NPM_TOKEN}
76
76
 
77
77
  > @layerzerolabs/oft-upgradeable-evm-contracts@0.0.0 compile:zksync /home/runner/work/monorepo-internal/monorepo-internal/apps/oft-app/contracts/evm/upgradeable
@@ -80,12 +80,12 @@ Successfully compiled 76 Solidity files
80
80
   WARN  Issue while reading "/home/runner/work/monorepo-internal/monorepo-internal/.npmrc". Failed to replace env in config: ${NPM_TOKEN}
81
81
  ✅ forge-1.3.6-hardhat-2.26.3
82
82
  🔧 hardhat version: 2.26.3
83
- $ docker image inspect --format {{.Id}} 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3
84
- (node:131705) [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
+ $ docker image inspect --format {{.Architecture}} 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3
84
+ (node:119580) [MODULE_TYPELESS_PACKAGE_JSON] Warning: Module type of file:///home/runner/work/monorepo-internal/monorepo-internal/configs/vm-tooling/values/docker-image-repo.ts is not specified and it doesn't parse as CommonJS.
85
85
  Reparsing as ES module because module syntax was detected. This incurs a performance overhead.
86
86
  To eliminate this warning, add "type": "module" to /home/runner/work/monorepo-internal/monorepo-internal/package.json.
87
87
  (Use `node --trace-warnings ...` to show where the warning was created)
88
- ✅ 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
88
+ ✅ 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 (amd64)
89
89
  👤 Running container as UID:GID 1001:1001
90
90
  🌍 Using 1 custom environment variable(s)
91
91
  $ docker run --rm --add-host=host.docker.internal:host-gateway -e $'TS_NODE_COMPILER_OPTIONS={"module":"CommonJS","moduleResolution":"node"}' -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 hardhat compile --config /hardhat/hardhat.default.config.js --network zksync-mainnet
@@ -94,7 +94,7 @@ The zksolc compiler version in your Hardhat config file (1.3.22) is not the late
94
94
  Compiling contracts for ZKsync Era with zksolc v1.3.22 and zkvm-solc v0.8.23-1.0.1
95
95
  Compiling 76 Solidity files
96
96
  Successfully compiled 76 Solidity files
97
- ⏳ hardhat compile --config /hardhat/hardhat.default.config.js --network zksync-mainnet: 1:48.900 (m:ss.mmm)
97
+ ⏳ hardhat compile --config /hardhat/hardhat.default.config.js --network zksync-mainnet: 1:27.323 (m:ss.mmm)
98
98
   WARN  Issue while reading "/home/runner/work/monorepo-internal/monorepo-internal/.npmrc". Failed to replace env in config: ${NPM_TOKEN}
99
99
 
100
100
  > @layerzerolabs/oft-upgradeable-evm-contracts@0.0.0 compile:tron /home/runner/work/monorepo-internal/monorepo-internal/apps/oft-app/contracts/evm/upgradeable
@@ -103,12 +103,12 @@ Successfully compiled 76 Solidity files
103
103
   WARN  Issue while reading "/home/runner/work/monorepo-internal/monorepo-internal/.npmrc". Failed to replace env in config: ${NPM_TOKEN}
104
104
  ✅ forge-1.3.6-hardhat-2.26.3
105
105
  🔧 hardhat version: 2.26.3
106
- $ docker image inspect --format {{.Id}} 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3
107
- (node:205517) [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
+ $ docker image inspect --format {{.Architecture}} 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3
107
+ (node:161367) [MODULE_TYPELESS_PACKAGE_JSON] Warning: Module type of file:///home/runner/work/monorepo-internal/monorepo-internal/configs/vm-tooling/values/docker-image-repo.ts is not specified and it doesn't parse as CommonJS.
108
108
  Reparsing as ES module because module syntax was detected. This incurs a performance overhead.
109
109
  To eliminate this warning, add "type": "module" to /home/runner/work/monorepo-internal/monorepo-internal/package.json.
110
110
  (Use `node --trace-warnings ...` to show where the warning was created)
111
- ✅ 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
111
+ ✅ 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 (amd64)
112
112
  👤 Running container as UID:GID 1001:1001
113
113
  🌍 Using 1 custom environment variable(s)
114
114
  $ docker run --rm --add-host=host.docker.internal:host-gateway -e $'TS_NODE_COMPILER_OPTIONS={"module":"CommonJS","moduleResolution":"node"}' -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 hardhat compile --config /hardhat/hardhat.default.config.js --network tron-mainnet
@@ -166,4 +166,4 @@ Warning: Contract code size is 29394 bytes and exceeds 24576 bytes (a limit intr
166
166
 
167
167
 
168
168
  Successfully compiled 76 Solidity files
169
- ⏳ hardhat compile --config /hardhat/hardhat.default.config.js --network tron-mainnet: 40.205s
169
+ ⏳ hardhat compile --config /hardhat/hardhat.default.config.js --network tron-mainnet: 32.753s
@@ -2,7 +2,7 @@
2
2
  > @layerzerolabs/oft-upgradeable-evm-contracts@0.0.0 lint /home/runner/work/monorepo-internal/monorepo-internal/apps/oft-app/contracts/evm/upgradeable
3
3
  > solhint --config solhint.config.js 'contracts/**/*.sol' 'test/**/*.sol' --fix --noPrompt
4
4
 
5
- A new version of Solhint is available: 6.2.1
5
+ A new version of Solhint is available: 6.2.2
6
6
  Please consider updating your Solhint package.
7
7
 
8
8
  contracts/extended/alt/OFTBurnMintExtendedRBACAltUpgradeable.sol
@@ -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'
@@ -4,30 +4,64 @@
4
4
 
5
5
  ✅ forge-1.3.6-hardhat-2.26.3
6
6
  🔧 forge version: 1.3.6
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:524427) [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.
7
+ $ docker image inspect --format {{.Architecture}} 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3
8
+ (node:444366) [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
- ✅ 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
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 (amd64)
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 67.33s
16
+ Solc 0.8.22 finished in 63.56s
17
17
  Compiler run successful!
18
18
 
19
+ Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACRedeemIssueTest
20
+ [PASS] test_credit() (gas: 89907)
21
+ [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93373, ~: 93339)
22
+ [PASS] test_debit() (gas: 98305)
23
+ [PASS] test_debit_Dust() (gas: 139763)
24
+ [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 142743, ~: 143477)
25
+ [PASS] test_debit_PushesFees() (gas: 165812)
26
+ [PASS] test_debit_Revert_SlippageExceeded() (gas: 131894)
27
+ [PASS] test_debit_SmallAmount_DustOnly() (gas: 139827)
28
+ [PASS] test_debit_WithFee() (gas: 165286)
29
+ [PASS] test_debit_WithFee_Dust() (gas: 165900)
30
+ [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 169050, ~: 171220)
31
+ [PASS] test_initialize() (gas: 24722)
32
+ [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
33
+ [PASS] test_pause_unpause() (gas: 130445)
34
+ [PASS] test_quoteOFT() (gas: 70712)
35
+ [PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
36
+ [PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59195)
37
+ [PASS] test_quoteOFT_Paused() (gas: 56570)
38
+ [PASS] test_quoteOFT_RateLimiterUsage() (gas: 185614)
39
+ [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 233430)
40
+ [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 200495, ~: 200315)
41
+ [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84276)
42
+ [PASS] test_rateLimit_Inflow() (gas: 108772)
43
+ [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
44
+ [PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 179385)
45
+ [PASS] test_send() (gas: 400494)
46
+ [PASS] test_send_Revert_MsgInspection() (gas: 308847)
47
+ [PASS] test_send_WithFee() (gas: 477358)
48
+ [PASS] test_setFeeDeposit() (gas: 28359)
49
+ [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
50
+ [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38897, ~: 38967)
51
+ Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 1.23s (3.34s CPU time)
52
+
19
53
  Ran 31 tests for test/OFTLockUnlockExtendedRBAC.t.sol:OFTLockUnlockExtendedRBACTest
20
54
  [PASS] test_credit() (gas: 89882)
21
- [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93102, ~: 93314)
55
+ [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93224, ~: 93314)
22
56
  [PASS] test_debit() (gas: 113036)
23
57
  [PASS] test_debit_Dust() (gas: 135880)
24
- [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 138373, ~: 139029)
58
+ [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 138479, ~: 138823)
25
59
  [PASS] test_debit_PushesFees() (gas: 161342)
26
60
  [PASS] test_debit_Revert_SlippageExceeded() (gas: 131850)
27
61
  [PASS] test_debit_SmallAmount_DustOnly() (gas: 135931)
28
62
  [PASS] test_debit_WithFee() (gas: 163924)
29
63
  [PASS] test_debit_WithFee_Dust() (gas: 161430)
30
- [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 161666, ~: 160967)
64
+ [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 162123, ~: 160967)
31
65
  [PASS] test_initialize() (gas: 24678)
32
66
  [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92822)
33
67
  [PASS] test_pause_unpause() (gas: 143924)
@@ -37,7 +71,7 @@ Ran 31 tests for test/OFTLockUnlockExtendedRBAC.t.sol:OFTLockUnlockExtendedRBACT
37
71
  [PASS] test_quoteOFT_Paused() (gas: 56637)
38
72
  [PASS] test_quoteOFT_RateLimiterUsage() (gas: 198848)
39
73
  [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 241184)
40
- [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 196083, ~: 195912)
74
+ [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 196080, ~: 195912)
41
75
  [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84321)
42
76
  [PASS] test_rateLimit_Inflow() (gas: 130622)
43
77
  [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157652)
@@ -47,92 +81,23 @@ Ran 31 tests for test/OFTLockUnlockExtendedRBAC.t.sol:OFTLockUnlockExtendedRBACT
47
81
  [PASS] test_send_WithFee() (gas: 474453)
48
82
  [PASS] test_setFeeDeposit() (gas: 28337)
49
83
  [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22583)
50
- [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38844, ~: 38945)
51
- Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 898.13ms (2.39s CPU time)
52
-
53
- Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACTest
54
- [PASS] test_credit() (gas: 89871)
55
- [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93152, ~: 93303)
56
- [PASS] test_debit() (gas: 98327)
57
- [PASS] test_debit_Dust() (gas: 139747)
58
- [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 142577, ~: 143461)
59
- [PASS] test_debit_PushesFees() (gas: 165796)
60
- [PASS] test_debit_Revert_SlippageExceeded() (gas: 131894)
61
- [PASS] test_debit_SmallAmount_DustOnly() (gas: 139811)
62
- [PASS] test_debit_WithFee() (gas: 165270)
63
- [PASS] test_debit_WithFee_Dust() (gas: 165884)
64
- [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 168699, ~: 171204)
65
- [PASS] test_initialize() (gas: 24722)
66
- [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
67
- [PASS] test_pause_unpause() (gas: 130467)
68
- [PASS] test_quoteOFT() (gas: 70712)
69
- [PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
70
- [PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59195)
71
- [PASS] test_quoteOFT_Paused() (gas: 56570)
72
- [PASS] test_quoteOFT_RateLimiterUsage() (gas: 185657)
73
- [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 233398)
74
- [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 200492, ~: 200299)
75
- [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84276)
76
- [PASS] test_rateLimit_Inflow() (gas: 108736)
77
- [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
78
- [PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 179369)
79
- [PASS] test_send() (gas: 400518)
80
- [PASS] test_send_Revert_MsgInspection() (gas: 308871)
81
- [PASS] test_send_WithFee() (gas: 477338)
82
- [PASS] test_setFeeDeposit() (gas: 28359)
83
- [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
84
- [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38875, ~: 38967)
85
- Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 965.21ms (2.23s CPU time)
86
-
87
- Ran 32 tests for test/OFTBurnSelfMintExtendedRBAC.t.sol:OFTBurnSelfMintExtendedRBACTest
88
- [PASS] test_credit() (gas: 89873)
89
- [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93225, ~: 93305)
90
- [PASS] test_debit() (gas: 120710)
91
- [PASS] test_debit_Dust() (gas: 143616)
92
- [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 145988, ~: 146486)
93
- [PASS] test_debit_PushesFees() (gas: 164384)
94
- [PASS] test_debit_Revert_SlippageExceeded() (gas: 131872)
95
- [PASS] test_debit_SmallAmount_DustOnly() (gas: 143579)
96
- [PASS] test_debit_TokensTransferredToSelfThenBurned() (gas: 122517)
97
- [PASS] test_debit_WithFee() (gas: 166449)
98
- [PASS] test_debit_WithFee_Dust() (gas: 164455)
99
- [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 167099, ~: 168645)
100
- [PASS] test_initialize() (gas: 24700)
101
- [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
102
- [PASS] test_pause_unpause() (gas: 151598)
103
- [PASS] test_quoteOFT() (gas: 70712)
104
- [PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
105
- [PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59173)
106
- [PASS] test_quoteOFT_Paused() (gas: 56570)
107
- [PASS] test_quoteOFT_RateLimiterUsage() (gas: 242240)
108
- [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 268746)
109
- [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 192070, ~: 191921)
110
- [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84254)
111
- [PASS] test_rateLimit_Inflow() (gas: 108738)
112
- [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
113
- [PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 175225)
114
- [PASS] test_send() (gas: 387136)
115
- [PASS] test_send_Revert_MsgInspection() (gas: 335267)
116
- [PASS] test_send_WithFee() (gas: 462592)
117
- [PASS] test_setFeeDeposit() (gas: 28445)
118
- [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
119
- [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38923, ~: 39034)
120
- Suite result: ok. 32 passed; 0 failed; 0 skipped; finished in 988.82ms (2.92s CPU time)
84
+ [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38849, ~: 38945)
85
+ Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 1.28s (3.76s CPU time)
121
86
 
122
87
  Ran 39 tests for test/OFTNativeExtendedRBAC.t.sol:OFTNativeExtendedRBACTest
123
88
  [PASS] test_approvalRequired() (gas: 13426)
124
89
  [PASS] test_credit() (gas: 62369)
125
- [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 66027, ~: 65954)
90
+ [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 65725, ~: 65954)
126
91
  [PASS] test_credit_Revert_CreditFailed() (gas: 91478)
127
92
  [PASS] test_debit() (gas: 36831)
128
93
  [PASS] test_debit_Dust() (gas: 76272)
129
- [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 79281, ~: 79886)
94
+ [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 79238, ~: 79886)
130
95
  [PASS] test_debit_PushesFees() (gas: 101339)
131
96
  [PASS] test_debit_Revert_SlippageExceeded() (gas: 54229)
132
97
  [PASS] test_debit_SmallAmount_DustOnly() (gas: 76226)
133
98
  [PASS] test_debit_WithFee() (gas: 101145)
134
99
  [PASS] test_debit_WithFee_Dust() (gas: 102376)
135
- [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 105848, ~: 107585)
100
+ [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 105835, ~: 107585)
136
101
  [PASS] test_initialize() (gas: 22406)
137
102
  [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92778)
138
103
  [PASS] test_pause_unpause() (gas: 61117)
@@ -142,7 +107,7 @@ Ran 39 tests for test/OFTNativeExtendedRBAC.t.sol:OFTNativeExtendedRBACTest
142
107
  [PASS] test_quoteOFT_Paused() (gas: 56703)
143
108
  [PASS] test_quoteOFT_RateLimiterUsage() (gas: 97744)
144
109
  [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 160139)
145
- [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 137880, ~: 137703)
110
+ [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 137870, ~: 137703)
146
111
  [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84387)
147
112
  [PASS] test_rateLimit_Inflow() (gas: 87713)
148
113
  [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 80123)
@@ -157,22 +122,92 @@ Ran 39 tests for test/OFTNativeExtendedRBAC.t.sol:OFTNativeExtendedRBACTest
157
122
  [PASS] test_send_WithFee() (gas: 415240)
158
123
  [PASS] test_setFeeDeposit() (gas: 28425)
159
124
  [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22627)
160
- [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38924, ~: 39011)
125
+ [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38915, ~: 39011)
161
126
  [PASS] test_token() (gas: 13483)
162
- Suite result: ok. 39 passed; 0 failed; 0 skipped; finished in 989.27ms (1.87s CPU time)
127
+ Suite result: ok. 39 passed; 0 failed; 0 skipped; finished in 1.28s (2.51s CPU time)
128
+
129
+ Ran 32 tests for test/OFTLockUnlockExtendedRBACAlt.t.sol:OFTLockUnlockExtendedRBACAltTest
130
+ [PASS] test_credit() (gas: 91882)
131
+ [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 95046, ~: 95314)
132
+ [PASS] test_debit() (gas: 113036)
133
+ [PASS] test_debit_Dust() (gas: 137551)
134
+ [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 139974, ~: 141029)
135
+ [PASS] test_debit_PushesFees() (gas: 163342)
136
+ [PASS] test_debit_Revert_SlippageExceeded() (gas: 133828)
137
+ [PASS] test_debit_SmallAmount_DustOnly() (gas: 137513)
138
+ [PASS] test_debit_WithFee() (gas: 163924)
139
+ [PASS] test_debit_WithFee_Dust() (gas: 163430)
140
+ [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 163803, ~: 162567)
141
+ [PASS] test_initialize() (gas: 24656)
142
+ [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92822)
143
+ [PASS] test_pause_unpause() (gas: 145524)
144
+ [PASS] test_quoteOFT() (gas: 70757)
145
+ [PASS] test_quoteOFT_GloballyDisabled() (gas: 80605)
146
+ [PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59240)
147
+ [PASS] test_quoteOFT_Paused() (gas: 56637)
148
+ [PASS] test_quoteOFT_RateLimiterUsage() (gas: 200448)
149
+ [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 242784)
150
+ [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 198101, ~: 197912)
151
+ [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84299)
152
+ [PASS] test_rateLimit_Inflow() (gas: 132710)
153
+ [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 159652)
154
+ [PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 176893)
155
+ [PASS] test_send() (gas: 465637)
156
+ [PASS] test_send_Revert_MsgInspection() (gas: 327696)
157
+ [PASS] test_send_Revert_OnlyAltToken() (gas: 241148)
158
+ [PASS] test_send_WithFee() (gas: 516566)
159
+ [PASS] test_setFeeDeposit() (gas: 28423)
160
+ [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22583)
161
+ [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38872, ~: 39012)
162
+ Suite result: ok. 32 passed; 0 failed; 0 skipped; finished in 1.32s (3.44s CPU time)
163
+
164
+ Ran 32 tests for test/OFTBurnSelfMintExtendedRBAC.t.sol:OFTBurnSelfMintExtendedRBACTest
165
+ [PASS] test_credit() (gas: 89873)
166
+ [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93116, ~: 93305)
167
+ [PASS] test_debit() (gas: 120710)
168
+ [PASS] test_debit_Dust() (gas: 143616)
169
+ [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 145540, ~: 146486)
170
+ [PASS] test_debit_PushesFees() (gas: 164384)
171
+ [PASS] test_debit_Revert_SlippageExceeded() (gas: 131872)
172
+ [PASS] test_debit_SmallAmount_DustOnly() (gas: 143579)
173
+ [PASS] test_debit_TokensTransferredToSelfThenBurned() (gas: 122517)
174
+ [PASS] test_debit_WithFee() (gas: 166449)
175
+ [PASS] test_debit_WithFee_Dust() (gas: 164455)
176
+ [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 166785, ~: 168645)
177
+ [PASS] test_initialize() (gas: 24700)
178
+ [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
179
+ [PASS] test_pause_unpause() (gas: 151598)
180
+ [PASS] test_quoteOFT() (gas: 70712)
181
+ [PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
182
+ [PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59173)
183
+ [PASS] test_quoteOFT_Paused() (gas: 56570)
184
+ [PASS] test_quoteOFT_RateLimiterUsage() (gas: 242240)
185
+ [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 268746)
186
+ [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 192043, ~: 191921)
187
+ [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84254)
188
+ [PASS] test_rateLimit_Inflow() (gas: 108738)
189
+ [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
190
+ [PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 175225)
191
+ [PASS] test_send() (gas: 387136)
192
+ [PASS] test_send_Revert_MsgInspection() (gas: 335267)
193
+ [PASS] test_send_WithFee() (gas: 462592)
194
+ [PASS] test_setFeeDeposit() (gas: 28445)
195
+ [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
196
+ [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38935, ~: 39034)
197
+ Suite result: ok. 32 passed; 0 failed; 0 skipped; finished in 1.50s (3.89s CPU time)
163
198
 
164
199
  Ran 32 tests for test/OFTBurnMintExtendedRBACAlt.t.sol:OFTBurnMintExtendedRBACAltTest
165
200
  [PASS] test_credit() (gas: 89871)
166
- [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93058, ~: 93303)
201
+ [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93134, ~: 93303)
167
202
  [PASS] test_debit() (gas: 98327)
168
203
  [PASS] test_debit_Dust() (gas: 141836)
169
- [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 144778, ~: 145461)
204
+ [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 144310, ~: 145461)
170
205
  [PASS] test_debit_PushesFees() (gas: 167796)
171
206
  [PASS] test_debit_Revert_SlippageExceeded() (gas: 133872)
172
207
  [PASS] test_debit_SmallAmount_DustOnly() (gas: 141789)
173
208
  [PASS] test_debit_WithFee() (gas: 165270)
174
209
  [PASS] test_debit_WithFee_Dust() (gas: 167884)
175
- [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 170938, ~: 173204)
210
+ [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 171147, ~: 173204)
176
211
  [PASS] test_initialize() (gas: 24700)
177
212
  [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
178
213
  [PASS] test_pause_unpause() (gas: 132067)
@@ -182,7 +217,7 @@ Ran 32 tests for test/OFTBurnMintExtendedRBACAlt.t.sol:OFTBurnMintExtendedRBACAl
182
217
  [PASS] test_quoteOFT_Paused() (gas: 56570)
183
218
  [PASS] test_quoteOFT_RateLimiterUsage() (gas: 187257)
184
219
  [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 235398)
185
- [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 202479, ~: 202299)
220
+ [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 202491, ~: 202299)
186
221
  [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84254)
187
222
  [PASS] test_rateLimit_Inflow() (gas: 108824)
188
223
  [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 159696)
@@ -194,21 +229,55 @@ Ran 32 tests for test/OFTBurnMintExtendedRBACAlt.t.sol:OFTBurnMintExtendedRBACAl
194
229
  [PASS] test_setFeeDeposit() (gas: 28445)
195
230
  [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
196
231
  [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38942, ~: 39034)
197
- Suite result: ok. 32 passed; 0 failed; 0 skipped; finished in 1.13s (2.55s CPU time)
232
+ Suite result: ok. 32 passed; 0 failed; 0 skipped; finished in 1.50s (4.28s CPU time)
233
+
234
+ Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACTest
235
+ [PASS] test_credit() (gas: 89871)
236
+ [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 92992, ~: 93303)
237
+ [PASS] test_debit() (gas: 98327)
238
+ [PASS] test_debit_Dust() (gas: 139747)
239
+ [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 142759, ~: 143461)
240
+ [PASS] test_debit_PushesFees() (gas: 165796)
241
+ [PASS] test_debit_Revert_SlippageExceeded() (gas: 131894)
242
+ [PASS] test_debit_SmallAmount_DustOnly() (gas: 139811)
243
+ [PASS] test_debit_WithFee() (gas: 165270)
244
+ [PASS] test_debit_WithFee_Dust() (gas: 165884)
245
+ [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 168596, ~: 171204)
246
+ [PASS] test_initialize() (gas: 24722)
247
+ [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
248
+ [PASS] test_pause_unpause() (gas: 130467)
249
+ [PASS] test_quoteOFT() (gas: 70712)
250
+ [PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
251
+ [PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59195)
252
+ [PASS] test_quoteOFT_Paused() (gas: 56570)
253
+ [PASS] test_quoteOFT_RateLimiterUsage() (gas: 185657)
254
+ [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 233398)
255
+ [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 200479, ~: 200299)
256
+ [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84276)
257
+ [PASS] test_rateLimit_Inflow() (gas: 108736)
258
+ [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
259
+ [PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 179369)
260
+ [PASS] test_send() (gas: 400518)
261
+ [PASS] test_send_Revert_MsgInspection() (gas: 308871)
262
+ [PASS] test_send_WithFee() (gas: 477338)
263
+ [PASS] test_setFeeDeposit() (gas: 28359)
264
+ [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
265
+ [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38890, ~: 38967)
266
+ Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 1.51s (4.73s CPU time)
198
267
 
199
268
  Ran 33 tests for test/OFTBurnSelfMintExtendedRBACAlt.t.sol:OFTBurnSelfMintExtendedRBACAltTest
200
269
  [PASS] test_credit() (gas: 89873)
201
- [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93186, ~: 93305)
270
+ [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93041, ~: 93305)
202
271
  [PASS] test_debit() (gas: 120710)
203
272
  [PASS] test_debit_Dust() (gas: 145216)
204
- [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 147167, ~: 148086)
273
+ [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 147791, ~: 148086)
205
274
  [PASS] test_debit_PushesFees() (gas: 165984)
206
275
  [PASS] test_debit_Revert_SlippageExceeded() (gas: 133872)
207
276
  [PASS] test_debit_SmallAmount_DustOnly() (gas: 145179)
208
277
  [PASS] test_debit_TokensTransferredToSelfThenBurned() (gas: 122500)
209
278
  [PASS] test_debit_WithFee() (gas: 166449)
210
279
  [PASS] test_debit_WithFee_Dust() (gas: 166055)
211
- [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 168725, ~: 170245)
280
+ [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 168528, ~: 170245)
212
281
  [PASS] test_initialize() (gas: 24700)
213
282
  [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
214
283
  [PASS] test_pause_unpause() (gas: 153198)
@@ -218,7 +287,7 @@ Ran 33 tests for test/OFTBurnSelfMintExtendedRBACAlt.t.sol:OFTBurnSelfMintExtend
218
287
  [PASS] test_quoteOFT_Paused() (gas: 56570)
219
288
  [PASS] test_quoteOFT_RateLimiterUsage() (gas: 243840)
220
289
  [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 270346)
221
- [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 193673, ~: 193521)
290
+ [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 193665, ~: 193521)
222
291
  [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84254)
223
292
  [PASS] test_rateLimit_Inflow() (gas: 108826)
224
293
  [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 159696)
@@ -229,55 +298,21 @@ Ran 33 tests for test/OFTBurnSelfMintExtendedRBACAlt.t.sol:OFTBurnSelfMintExtend
229
298
  [PASS] test_send_WithFee() (gas: 504694)
230
299
  [PASS] test_setFeeDeposit() (gas: 28445)
231
300
  [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
232
- [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38964, ~: 39034)
233
- Suite result: ok. 33 passed; 0 failed; 0 skipped; finished in 1.18s (3.55s CPU time)
234
-
235
- Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACRedeemIssueTest
236
- [PASS] test_credit() (gas: 89907)
237
- [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93391, ~: 93339)
238
- [PASS] test_debit() (gas: 98305)
239
- [PASS] test_debit_Dust() (gas: 139763)
240
- [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 143033, ~: 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, μ: 168890, ~: 171220)
247
- [PASS] test_initialize() (gas: 24722)
248
- [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
249
- [PASS] test_pause_unpause() (gas: 130445)
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: 185614)
255
- [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 233430)
256
- [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 200506, ~: 200315)
257
- [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84276)
258
- [PASS] test_rateLimit_Inflow() (gas: 108772)
259
- [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
260
- [PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 179385)
261
- [PASS] test_send() (gas: 400494)
262
- [PASS] test_send_Revert_MsgInspection() (gas: 308847)
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, μ: 38914, ~: 38967)
267
- Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 1.18s (3.15s CPU time)
301
+ [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38938, ~: 39034)
302
+ Suite result: ok. 33 passed; 0 failed; 0 skipped; finished in 1.60s (3.42s CPU time)
268
303
 
269
304
  Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACCrosschainTest
270
305
  [PASS] test_credit() (gas: 89874)
271
- [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93012, ~: 93306)
306
+ [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93220, ~: 93306)
272
307
  [PASS] test_debit() (gas: 98332)
273
308
  [PASS] test_debit_Dust() (gas: 139763)
274
- [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 143047, ~: 143477)
309
+ [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 142484, ~: 143477)
275
310
  [PASS] test_debit_PushesFees() (gas: 165812)
276
311
  [PASS] test_debit_Revert_SlippageExceeded() (gas: 131894)
277
312
  [PASS] test_debit_SmallAmount_DustOnly() (gas: 139827)
278
313
  [PASS] test_debit_WithFee() (gas: 165286)
279
314
  [PASS] test_debit_WithFee_Dust() (gas: 165900)
280
- [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 168671, ~: 171220)
315
+ [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 168972, ~: 171220)
281
316
  [PASS] test_initialize() (gas: 24722)
282
317
  [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
283
318
  [PASS] test_pause_unpause() (gas: 130472)
@@ -287,7 +322,7 @@ Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACCross
287
322
  [PASS] test_quoteOFT_Paused() (gas: 56570)
288
323
  [PASS] test_quoteOFT_RateLimiterUsage() (gas: 185667)
289
324
  [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 233430)
290
- [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 200490, ~: 200315)
325
+ [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 200498, ~: 200315)
291
326
  [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84276)
292
327
  [PASS] test_rateLimit_Inflow() (gas: 108739)
293
328
  [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
@@ -297,43 +332,8 @@ Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACCross
297
332
  [PASS] test_send_WithFee() (gas: 477358)
298
333
  [PASS] test_setFeeDeposit() (gas: 28359)
299
334
  [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
300
- [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38844, ~: 38967)
301
- Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 1.18s (3.73s CPU time)
302
-
303
- Ran 32 tests for test/OFTLockUnlockExtendedRBACAlt.t.sol:OFTLockUnlockExtendedRBACAltTest
304
- [PASS] test_credit() (gas: 91882)
305
- [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 94916, ~: 95314)
306
- [PASS] test_debit() (gas: 113036)
307
- [PASS] test_debit_Dust() (gas: 137551)
308
- [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 140247, ~: 140423)
309
- [PASS] test_debit_PushesFees() (gas: 163342)
310
- [PASS] test_debit_Revert_SlippageExceeded() (gas: 133828)
311
- [PASS] test_debit_SmallAmount_DustOnly() (gas: 137513)
312
- [PASS] test_debit_WithFee() (gas: 163924)
313
- [PASS] test_debit_WithFee_Dust() (gas: 163430)
314
- [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 163191, ~: 162567)
315
- [PASS] test_initialize() (gas: 24656)
316
- [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92822)
317
- [PASS] test_pause_unpause() (gas: 145524)
318
- [PASS] test_quoteOFT() (gas: 70757)
319
- [PASS] test_quoteOFT_GloballyDisabled() (gas: 80605)
320
- [PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59240)
321
- [PASS] test_quoteOFT_Paused() (gas: 56637)
322
- [PASS] test_quoteOFT_RateLimiterUsage() (gas: 200448)
323
- [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 242784)
324
- [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 198105, ~: 197912)
325
- [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84299)
326
- [PASS] test_rateLimit_Inflow() (gas: 132710)
327
- [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 159652)
328
- [PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 176893)
329
- [PASS] test_send() (gas: 465637)
330
- [PASS] test_send_Revert_MsgInspection() (gas: 327696)
331
- [PASS] test_send_Revert_OnlyAltToken() (gas: 241148)
332
- [PASS] test_send_WithFee() (gas: 516566)
333
- [PASS] test_setFeeDeposit() (gas: 28423)
334
- [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22583)
335
- [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38901, ~: 39012)
336
- Suite result: ok. 32 passed; 0 failed; 0 skipped; finished in 1.18s (2.74s CPU time)
335
+ [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38885, ~: 38967)
336
+ Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 1.61s (3.98s CPU time)
337
337
 
338
- Ran 9 test suites in 1.37s (9.68s CPU time): 292 tests passed, 0 failed, 0 skipped (292 total tests)
339
- ⏳ forge test: 1:13.326 (m:ss.mmm)
338
+ Ran 9 test suites in 1.76s (12.81s CPU time): 292 tests passed, 0 failed, 0 skipped (292 total tests)
339
+ ⏳ forge test: 1:10.878 (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.104",
3
+ "version": "0.2.105",
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.104",
18
- "@layerzerolabs/oft-evm-contracts": "0.2.104",
19
- "@layerzerolabs/solhint-configuration": "0.2.104",
20
- "@layerzerolabs/oapp-upgradeable-evm-contracts": "0.2.104",
21
- "@layerzerolabs/test-utils-evm-contracts": "0.2.104",
22
- "@layerzerolabs/tsup-configuration": "0.2.104",
23
- "@layerzerolabs/typescript-configuration": "0.2.104",
24
- "@layerzerolabs/vm-tooling-evm": "0.2.104",
25
- "@layerzerolabs/utils-evm-contracts": "0.2.104",
26
- "@layerzerolabs/utils-upgradeable-evm-contracts": "0.2.104"
17
+ "@layerzerolabs/oapp-evm-contracts": "0.2.105",
18
+ "@layerzerolabs/oft-evm-contracts": "0.2.105",
19
+ "@layerzerolabs/oapp-upgradeable-evm-contracts": "0.2.105",
20
+ "@layerzerolabs/solhint-configuration": "0.2.105",
21
+ "@layerzerolabs/test-utils-evm-contracts": "0.2.105",
22
+ "@layerzerolabs/tsup-configuration": "0.2.105",
23
+ "@layerzerolabs/typescript-configuration": "0.2.105",
24
+ "@layerzerolabs/utils-upgradeable-evm-contracts": "0.2.105",
25
+ "@layerzerolabs/utils-evm-contracts": "0.2.105",
26
+ "@layerzerolabs/vm-tooling-evm": "0.2.105"
27
27
  },
28
28
  "publishConfig": {
29
29
  "access": "public",