@layerzerolabs/oft-upgradeable-evm-contracts 0.2.98 → 0.2.99
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +15 -12
- package/.turbo/turbo-lint.log +50 -1
- package/.turbo/turbo-test.log +194 -194
- package/package.json +14 -14
package/.turbo/turbo-build.log
CHANGED
|
@@ -6,19 +6,20 @@
|
|
|
6
6
|
WARN Issue while reading "/home/runner/work/monorepo-internal/monorepo-internal/.npmrc". Failed to replace env in config: ${NPM_TOKEN}
|
|
7
7
|
|
|
8
8
|
> @layerzerolabs/oft-upgradeable-evm-contracts@0.0.0 compile:evm /home/runner/work/monorepo-internal/monorepo-internal/apps/oft-app/contracts/evm/upgradeable
|
|
9
|
-
> pnpm lz-tool hardhat compile --config /hardhat/hardhat.default.config.js
|
|
9
|
+
> pnpm lz-tool --env TS_NODE_COMPILER_OPTIONS='{"module":"CommonJS","moduleResolution":"node"}' hardhat compile --config /hardhat/hardhat.default.config.js
|
|
10
10
|
|
|
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
14
|
$ docker image inspect --format {{.Id}} 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3
|
|
15
|
-
(node:
|
|
15
|
+
(node:159653) [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
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
|
|
20
20
|
👤 Running container as UID:GID 1001:1001
|
|
21
|
-
|
|
21
|
+
🌍 Using 1 custom environment variable(s)
|
|
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
|
|
22
23
|
Compiling 76 Solidity files
|
|
23
24
|
Warning: Contract code size is 28075 bytes and exceeds 24576 bytes (a limit introduced in Spurious Dragon). This contract may not be deployable on Mainnet. Consider enabling the optimizer (with a low "runs" value!), turning off revert strings, or using libraries.
|
|
24
25
|
--> contracts/extended/OFTBurnMintExtendedRBACUpgradeable.sol:28:1:
|
|
@@ -70,45 +71,47 @@ Warning: Contract code size is 27524 bytes and exceeds 24576 bytes (a limit intr
|
|
|
70
71
|
|
|
71
72
|
|
|
72
73
|
Successfully compiled 76 Solidity files
|
|
73
|
-
⏳ hardhat compile --config /hardhat/hardhat.default.config.js:
|
|
74
|
+
⏳ hardhat compile --config /hardhat/hardhat.default.config.js: 14.034s
|
|
74
75
|
WARN Issue while reading "/home/runner/work/monorepo-internal/monorepo-internal/.npmrc". Failed to replace env in config: ${NPM_TOKEN}
|
|
75
76
|
|
|
76
77
|
> @layerzerolabs/oft-upgradeable-evm-contracts@0.0.0 compile:zksync /home/runner/work/monorepo-internal/monorepo-internal/apps/oft-app/contracts/evm/upgradeable
|
|
77
|
-
> pnpm lz-tool hardhat compile --config /hardhat/hardhat.default.config.js --network zksync-mainnet
|
|
78
|
+
> pnpm lz-tool --env TS_NODE_COMPILER_OPTIONS='{"module":"CommonJS","moduleResolution":"node"}' hardhat compile --config /hardhat/hardhat.default.config.js --network zksync-mainnet
|
|
78
79
|
|
|
79
80
|
WARN Issue while reading "/home/runner/work/monorepo-internal/monorepo-internal/.npmrc". Failed to replace env in config: ${NPM_TOKEN}
|
|
80
81
|
✅ forge-1.3.6-hardhat-2.26.3
|
|
81
82
|
🔧 hardhat version: 2.26.3
|
|
82
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
|
|
83
|
-
(node:
|
|
84
|
+
(node:163776) [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
85
|
Reparsing as ES module because module syntax was detected. This incurs a performance overhead.
|
|
85
86
|
To eliminate this warning, add "type": "module" to /home/runner/work/monorepo-internal/monorepo-internal/package.json.
|
|
86
87
|
(Use `node --trace-warnings ...` to show where the warning was created)
|
|
87
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
89
|
👤 Running container as UID:GID 1001:1001
|
|
89
|
-
|
|
90
|
+
🌍 Using 1 custom environment variable(s)
|
|
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
|
|
90
92
|
The solc version 1.3.22 is deprecated and will be removed for security reasons soon. Please update to v1.4.0 or newer.
|
|
91
93
|
The zksolc compiler version in your Hardhat config file (1.3.22) is not the latest. We recommend using the latest version 1.5.15.
|
|
92
94
|
Compiling contracts for ZKsync Era with zksolc v1.3.22 and zkvm-solc v0.8.23-1.0.1
|
|
93
95
|
Compiling 76 Solidity files
|
|
94
96
|
Successfully compiled 76 Solidity files
|
|
95
|
-
⏳ hardhat compile --config /hardhat/hardhat.default.config.js --network zksync-mainnet: 1:
|
|
97
|
+
⏳ hardhat compile --config /hardhat/hardhat.default.config.js --network zksync-mainnet: 1:39.920 (m:ss.mmm)
|
|
96
98
|
WARN Issue while reading "/home/runner/work/monorepo-internal/monorepo-internal/.npmrc". Failed to replace env in config: ${NPM_TOKEN}
|
|
97
99
|
|
|
98
100
|
> @layerzerolabs/oft-upgradeable-evm-contracts@0.0.0 compile:tron /home/runner/work/monorepo-internal/monorepo-internal/apps/oft-app/contracts/evm/upgradeable
|
|
99
|
-
> pnpm lz-tool hardhat compile --config /hardhat/hardhat.default.config.js --network tron-mainnet
|
|
101
|
+
> pnpm lz-tool --env TS_NODE_COMPILER_OPTIONS='{"module":"CommonJS","moduleResolution":"node"}' hardhat compile --config /hardhat/hardhat.default.config.js --network tron-mainnet
|
|
100
102
|
|
|
101
103
|
WARN Issue while reading "/home/runner/work/monorepo-internal/monorepo-internal/.npmrc". Failed to replace env in config: ${NPM_TOKEN}
|
|
102
104
|
✅ forge-1.3.6-hardhat-2.26.3
|
|
103
105
|
🔧 hardhat version: 2.26.3
|
|
104
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
|
|
105
|
-
(node:
|
|
107
|
+
(node:251958) [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
108
|
Reparsing as ES module because module syntax was detected. This incurs a performance overhead.
|
|
107
109
|
To eliminate this warning, add "type": "module" to /home/runner/work/monorepo-internal/monorepo-internal/package.json.
|
|
108
110
|
(Use `node --trace-warnings ...` to show where the warning was created)
|
|
109
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
|
|
110
112
|
👤 Running container as UID:GID 1001:1001
|
|
111
|
-
|
|
113
|
+
🌍 Using 1 custom environment variable(s)
|
|
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
|
|
112
115
|
detected tron network, replacing deployments extension with custom one
|
|
113
116
|
Tron-solc v0.8.23 is unknown version, attempting anyway...
|
|
114
117
|
Compiling contracts with tron solc v0.8.23
|
|
@@ -163,4 +166,4 @@ Warning: Contract code size is 29394 bytes and exceeds 24576 bytes (a limit intr
|
|
|
163
166
|
|
|
164
167
|
|
|
165
168
|
Successfully compiled 76 Solidity files
|
|
166
|
-
⏳ hardhat compile --config /hardhat/hardhat.default.config.js --network tron-mainnet:
|
|
169
|
+
⏳ hardhat compile --config /hardhat/hardhat.default.config.js --network tron-mainnet: 37.500s
|
package/.turbo/turbo-lint.log
CHANGED
|
@@ -448,4 +448,53 @@ 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
|
package/.turbo/turbo-test.log
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
✅ forge-1.3.6-hardhat-2.26.3
|
|
6
6
|
🔧 forge version: 1.3.6
|
|
7
7
|
$ docker image inspect --format {{.Id}} 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3
|
|
8
|
-
(node:
|
|
8
|
+
(node:530836) [MODULE_TYPELESS_PACKAGE_JSON] Warning: Module type of file:///home/runner/work/monorepo-internal/monorepo-internal/configs/vm-tooling/values/docker-image-repo.ts is not specified and it doesn't parse as CommonJS.
|
|
9
9
|
Reparsing as ES module because module syntax was detected. This incurs a performance overhead.
|
|
10
10
|
To eliminate this warning, add "type": "module" to /home/runner/work/monorepo-internal/monorepo-internal/package.json.
|
|
11
11
|
(Use `node --trace-warnings ...` to show where the warning was created)
|
|
@@ -13,91 +13,55 @@ To eliminate this warning, add "type": "module" to /home/runner/work/monorepo-in
|
|
|
13
13
|
👤 Running container as UID:GID 1001:1001
|
|
14
14
|
$ docker run --rm --add-host=host.docker.internal:host-gateway -e LOCAL_UID=1001 -e LOCAL_GID=1001 -v /home/runner/work/monorepo-internal/monorepo-internal:/workspace -w /workspace/apps/oft-app/contracts/evm/upgradeable 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3 forge test
|
|
15
15
|
Compiling 185 files with Solc 0.8.22
|
|
16
|
-
Solc 0.8.22 finished in
|
|
16
|
+
Solc 0.8.22 finished in 58.92s
|
|
17
17
|
Compiler run successful!
|
|
18
18
|
|
|
19
|
-
Ran
|
|
20
|
-
[PASS] test_credit() (gas:
|
|
21
|
-
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ:
|
|
22
|
-
[PASS] test_debit() (gas:
|
|
23
|
-
[PASS] test_debit_Dust() (gas:
|
|
24
|
-
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ:
|
|
25
|
-
[PASS] test_debit_PushesFees() (gas:
|
|
26
|
-
[PASS] test_debit_Revert_SlippageExceeded() (gas:
|
|
27
|
-
[PASS] test_debit_SmallAmount_DustOnly() (gas:
|
|
28
|
-
[PASS] test_debit_WithFee() (gas:
|
|
29
|
-
[PASS] test_debit_WithFee_Dust() (gas:
|
|
30
|
-
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ:
|
|
31
|
-
[PASS] test_initialize() (gas:
|
|
32
|
-
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92822)
|
|
33
|
-
[PASS] test_pause_unpause() (gas: 145524)
|
|
34
|
-
[PASS] test_quoteOFT() (gas: 70757)
|
|
35
|
-
[PASS] test_quoteOFT_GloballyDisabled() (gas: 80605)
|
|
36
|
-
[PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59240)
|
|
37
|
-
[PASS] test_quoteOFT_Paused() (gas: 56637)
|
|
38
|
-
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 200448)
|
|
39
|
-
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 242784)
|
|
40
|
-
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 198104, ~: 197912)
|
|
41
|
-
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84299)
|
|
42
|
-
[PASS] test_rateLimit_Inflow() (gas: 132710)
|
|
43
|
-
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 159652)
|
|
44
|
-
[PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 176893)
|
|
45
|
-
[PASS] test_send() (gas: 465637)
|
|
46
|
-
[PASS] test_send_Revert_MsgInspection() (gas: 327696)
|
|
47
|
-
[PASS] test_send_Revert_OnlyAltToken() (gas: 241148)
|
|
48
|
-
[PASS] test_send_WithFee() (gas: 516566)
|
|
49
|
-
[PASS] test_setFeeDeposit() (gas: 28423)
|
|
50
|
-
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22583)
|
|
51
|
-
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38949, ~: 39012)
|
|
52
|
-
Suite result: ok. 32 passed; 0 failed; 0 skipped; finished in 471.44ms (1.30s CPU time)
|
|
53
|
-
|
|
54
|
-
Ran 32 tests for test/OFTBurnSelfMintExtendedRBAC.t.sol:OFTBurnSelfMintExtendedRBACTest
|
|
55
|
-
[PASS] test_credit() (gas: 89873)
|
|
56
|
-
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93248, ~: 93305)
|
|
57
|
-
[PASS] test_debit() (gas: 120710)
|
|
58
|
-
[PASS] test_debit_Dust() (gas: 143616)
|
|
59
|
-
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 145193, ~: 146486)
|
|
60
|
-
[PASS] test_debit_PushesFees() (gas: 164384)
|
|
61
|
-
[PASS] test_debit_Revert_SlippageExceeded() (gas: 131872)
|
|
62
|
-
[PASS] test_debit_SmallAmount_DustOnly() (gas: 143579)
|
|
63
|
-
[PASS] test_debit_TokensTransferredToSelfThenBurned() (gas: 122517)
|
|
64
|
-
[PASS] test_debit_WithFee() (gas: 166449)
|
|
65
|
-
[PASS] test_debit_WithFee_Dust() (gas: 164455)
|
|
66
|
-
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 166674, ~: 168645)
|
|
67
|
-
[PASS] test_initialize() (gas: 24700)
|
|
19
|
+
Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACCrosschainTest
|
|
20
|
+
[PASS] test_credit() (gas: 89874)
|
|
21
|
+
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93151, ~: 93306)
|
|
22
|
+
[PASS] test_debit() (gas: 98332)
|
|
23
|
+
[PASS] test_debit_Dust() (gas: 139763)
|
|
24
|
+
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 142536, ~: 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, μ: 168791, ~: 171220)
|
|
31
|
+
[PASS] test_initialize() (gas: 24722)
|
|
68
32
|
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
|
|
69
|
-
[PASS] test_pause_unpause() (gas:
|
|
33
|
+
[PASS] test_pause_unpause() (gas: 130472)
|
|
70
34
|
[PASS] test_quoteOFT() (gas: 70712)
|
|
71
35
|
[PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
|
|
72
|
-
[PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas:
|
|
36
|
+
[PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59195)
|
|
73
37
|
[PASS] test_quoteOFT_Paused() (gas: 56570)
|
|
74
|
-
[PASS] test_quoteOFT_RateLimiterUsage() (gas:
|
|
75
|
-
[PASS] test_quoteOFT_RateLimiterWithFee() (gas:
|
|
76
|
-
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ:
|
|
77
|
-
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas:
|
|
78
|
-
[PASS] test_rateLimit_Inflow() (gas:
|
|
38
|
+
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 185667)
|
|
39
|
+
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 233430)
|
|
40
|
+
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 200497, ~: 200315)
|
|
41
|
+
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84276)
|
|
42
|
+
[PASS] test_rateLimit_Inflow() (gas: 108739)
|
|
79
43
|
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
|
|
80
|
-
[PASS] test_rateLimit_Outflow_WithFee_Success() (gas:
|
|
81
|
-
[PASS] test_send() (gas:
|
|
82
|
-
[PASS] test_send_Revert_MsgInspection() (gas:
|
|
83
|
-
[PASS] test_send_WithFee() (gas:
|
|
84
|
-
[PASS] test_setFeeDeposit() (gas:
|
|
44
|
+
[PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 179385)
|
|
45
|
+
[PASS] test_send() (gas: 400527)
|
|
46
|
+
[PASS] test_send_Revert_MsgInspection() (gas: 308880)
|
|
47
|
+
[PASS] test_send_WithFee() (gas: 477358)
|
|
48
|
+
[PASS] test_setFeeDeposit() (gas: 28359)
|
|
85
49
|
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
|
|
86
|
-
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ:
|
|
87
|
-
Suite result: ok.
|
|
50
|
+
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38856, ~: 38967)
|
|
51
|
+
Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 781.54ms (2.81s CPU time)
|
|
88
52
|
|
|
89
53
|
Ran 32 tests for test/OFTBurnMintExtendedRBACAlt.t.sol:OFTBurnMintExtendedRBACAltTest
|
|
90
54
|
[PASS] test_credit() (gas: 89871)
|
|
91
|
-
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ:
|
|
55
|
+
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93141, ~: 93303)
|
|
92
56
|
[PASS] test_debit() (gas: 98327)
|
|
93
57
|
[PASS] test_debit_Dust() (gas: 141836)
|
|
94
|
-
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ:
|
|
58
|
+
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 144841, ~: 145461)
|
|
95
59
|
[PASS] test_debit_PushesFees() (gas: 167796)
|
|
96
60
|
[PASS] test_debit_Revert_SlippageExceeded() (gas: 133872)
|
|
97
61
|
[PASS] test_debit_SmallAmount_DustOnly() (gas: 141789)
|
|
98
62
|
[PASS] test_debit_WithFee() (gas: 165270)
|
|
99
63
|
[PASS] test_debit_WithFee_Dust() (gas: 167884)
|
|
100
|
-
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ:
|
|
64
|
+
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 170976, ~: 173204)
|
|
101
65
|
[PASS] test_initialize() (gas: 24700)
|
|
102
66
|
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
|
|
103
67
|
[PASS] test_pause_unpause() (gas: 132067)
|
|
@@ -107,7 +71,7 @@ Ran 32 tests for test/OFTBurnMintExtendedRBACAlt.t.sol:OFTBurnMintExtendedRBACAl
|
|
|
107
71
|
[PASS] test_quoteOFT_Paused() (gas: 56570)
|
|
108
72
|
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 187257)
|
|
109
73
|
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 235398)
|
|
110
|
-
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ:
|
|
74
|
+
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 202493, ~: 202299)
|
|
111
75
|
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84254)
|
|
112
76
|
[PASS] test_rateLimit_Inflow() (gas: 108824)
|
|
113
77
|
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 159696)
|
|
@@ -118,22 +82,56 @@ Ran 32 tests for test/OFTBurnMintExtendedRBACAlt.t.sol:OFTBurnMintExtendedRBACAl
|
|
|
118
82
|
[PASS] test_send_WithFee() (gas: 493959)
|
|
119
83
|
[PASS] test_setFeeDeposit() (gas: 28445)
|
|
120
84
|
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
|
|
121
|
-
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ:
|
|
122
|
-
Suite result: ok. 32 passed; 0 failed; 0 skipped; finished in
|
|
85
|
+
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38981, ~: 39034)
|
|
86
|
+
Suite result: ok. 32 passed; 0 failed; 0 skipped; finished in 787.76ms (2.22s CPU time)
|
|
87
|
+
|
|
88
|
+
Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACTest
|
|
89
|
+
[PASS] test_credit() (gas: 89871)
|
|
90
|
+
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93232, ~: 93303)
|
|
91
|
+
[PASS] test_debit() (gas: 98327)
|
|
92
|
+
[PASS] test_debit_Dust() (gas: 139747)
|
|
93
|
+
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 142803, ~: 143461)
|
|
94
|
+
[PASS] test_debit_PushesFees() (gas: 165796)
|
|
95
|
+
[PASS] test_debit_Revert_SlippageExceeded() (gas: 131894)
|
|
96
|
+
[PASS] test_debit_SmallAmount_DustOnly() (gas: 139811)
|
|
97
|
+
[PASS] test_debit_WithFee() (gas: 165270)
|
|
98
|
+
[PASS] test_debit_WithFee_Dust() (gas: 165884)
|
|
99
|
+
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 168918, ~: 171204)
|
|
100
|
+
[PASS] test_initialize() (gas: 24722)
|
|
101
|
+
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
|
|
102
|
+
[PASS] test_pause_unpause() (gas: 130467)
|
|
103
|
+
[PASS] test_quoteOFT() (gas: 70712)
|
|
104
|
+
[PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
|
|
105
|
+
[PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59195)
|
|
106
|
+
[PASS] test_quoteOFT_Paused() (gas: 56570)
|
|
107
|
+
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 185657)
|
|
108
|
+
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 233398)
|
|
109
|
+
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 200492, ~: 200299)
|
|
110
|
+
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84276)
|
|
111
|
+
[PASS] test_rateLimit_Inflow() (gas: 108736)
|
|
112
|
+
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
|
|
113
|
+
[PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 179369)
|
|
114
|
+
[PASS] test_send() (gas: 400518)
|
|
115
|
+
[PASS] test_send_Revert_MsgInspection() (gas: 308871)
|
|
116
|
+
[PASS] test_send_WithFee() (gas: 477338)
|
|
117
|
+
[PASS] test_setFeeDeposit() (gas: 28359)
|
|
118
|
+
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
|
|
119
|
+
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38914, ~: 38967)
|
|
120
|
+
Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 788.38ms (2.61s CPU time)
|
|
123
121
|
|
|
124
122
|
Ran 33 tests for test/OFTBurnSelfMintExtendedRBACAlt.t.sol:OFTBurnSelfMintExtendedRBACAltTest
|
|
125
123
|
[PASS] test_credit() (gas: 89873)
|
|
126
|
-
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ:
|
|
124
|
+
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93185, ~: 93305)
|
|
127
125
|
[PASS] test_debit() (gas: 120710)
|
|
128
126
|
[PASS] test_debit_Dust() (gas: 145216)
|
|
129
|
-
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ:
|
|
127
|
+
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 147653, ~: 148086)
|
|
130
128
|
[PASS] test_debit_PushesFees() (gas: 165984)
|
|
131
129
|
[PASS] test_debit_Revert_SlippageExceeded() (gas: 133872)
|
|
132
130
|
[PASS] test_debit_SmallAmount_DustOnly() (gas: 145179)
|
|
133
131
|
[PASS] test_debit_TokensTransferredToSelfThenBurned() (gas: 122500)
|
|
134
132
|
[PASS] test_debit_WithFee() (gas: 166449)
|
|
135
133
|
[PASS] test_debit_WithFee_Dust() (gas: 166055)
|
|
136
|
-
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ:
|
|
134
|
+
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 168745, ~: 170250)
|
|
137
135
|
[PASS] test_initialize() (gas: 24700)
|
|
138
136
|
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
|
|
139
137
|
[PASS] test_pause_unpause() (gas: 153198)
|
|
@@ -143,7 +141,7 @@ Ran 33 tests for test/OFTBurnSelfMintExtendedRBACAlt.t.sol:OFTBurnSelfMintExtend
|
|
|
143
141
|
[PASS] test_quoteOFT_Paused() (gas: 56570)
|
|
144
142
|
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 243840)
|
|
145
143
|
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 270346)
|
|
146
|
-
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ:
|
|
144
|
+
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 193669, ~: 193521)
|
|
147
145
|
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84254)
|
|
148
146
|
[PASS] test_rateLimit_Inflow() (gas: 108826)
|
|
149
147
|
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 159696)
|
|
@@ -154,57 +152,126 @@ Ran 33 tests for test/OFTBurnSelfMintExtendedRBACAlt.t.sol:OFTBurnSelfMintExtend
|
|
|
154
152
|
[PASS] test_send_WithFee() (gas: 504694)
|
|
155
153
|
[PASS] test_setFeeDeposit() (gas: 28445)
|
|
156
154
|
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
|
|
157
|
-
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ:
|
|
158
|
-
Suite result: ok. 33 passed; 0 failed; 0 skipped; finished in
|
|
155
|
+
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38933, ~: 39034)
|
|
156
|
+
Suite result: ok. 33 passed; 0 failed; 0 skipped; finished in 791.71ms (2.43s CPU time)
|
|
159
157
|
|
|
160
|
-
Ran 31 tests for test/
|
|
161
|
-
[PASS] test_credit() (gas:
|
|
162
|
-
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ:
|
|
163
|
-
[PASS] test_debit() (gas:
|
|
158
|
+
Ran 31 tests for test/OFTLockUnlockExtendedRBAC.t.sol:OFTLockUnlockExtendedRBACTest
|
|
159
|
+
[PASS] test_credit() (gas: 89882)
|
|
160
|
+
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 92993, ~: 93314)
|
|
161
|
+
[PASS] test_debit() (gas: 113036)
|
|
162
|
+
[PASS] test_debit_Dust() (gas: 135880)
|
|
163
|
+
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 138037, ~: 138823)
|
|
164
|
+
[PASS] test_debit_PushesFees() (gas: 161342)
|
|
165
|
+
[PASS] test_debit_Revert_SlippageExceeded() (gas: 131850)
|
|
166
|
+
[PASS] test_debit_SmallAmount_DustOnly() (gas: 135931)
|
|
167
|
+
[PASS] test_debit_WithFee() (gas: 163924)
|
|
168
|
+
[PASS] test_debit_WithFee_Dust() (gas: 161430)
|
|
169
|
+
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 161934, ~: 160967)
|
|
170
|
+
[PASS] test_initialize() (gas: 24678)
|
|
171
|
+
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92822)
|
|
172
|
+
[PASS] test_pause_unpause() (gas: 143924)
|
|
173
|
+
[PASS] test_quoteOFT() (gas: 70757)
|
|
174
|
+
[PASS] test_quoteOFT_GloballyDisabled() (gas: 80605)
|
|
175
|
+
[PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59262)
|
|
176
|
+
[PASS] test_quoteOFT_Paused() (gas: 56637)
|
|
177
|
+
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 198848)
|
|
178
|
+
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 241184)
|
|
179
|
+
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 196089, ~: 195912)
|
|
180
|
+
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84321)
|
|
181
|
+
[PASS] test_rateLimit_Inflow() (gas: 130622)
|
|
182
|
+
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157652)
|
|
183
|
+
[PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 174915)
|
|
184
|
+
[PASS] test_send() (gas: 418929)
|
|
185
|
+
[PASS] test_send_Revert_MsgInspection() (gas: 325718)
|
|
186
|
+
[PASS] test_send_WithFee() (gas: 474453)
|
|
187
|
+
[PASS] test_setFeeDeposit() (gas: 28337)
|
|
188
|
+
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22583)
|
|
189
|
+
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38829, ~: 38945)
|
|
190
|
+
Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 836.74ms (2.31s CPU time)
|
|
191
|
+
|
|
192
|
+
Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACRedeemIssueTest
|
|
193
|
+
[PASS] test_credit() (gas: 89907)
|
|
194
|
+
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93199, ~: 93339)
|
|
195
|
+
[PASS] test_debit() (gas: 98305)
|
|
164
196
|
[PASS] test_debit_Dust() (gas: 139763)
|
|
165
|
-
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ:
|
|
197
|
+
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 142556, ~: 143477)
|
|
166
198
|
[PASS] test_debit_PushesFees() (gas: 165812)
|
|
167
199
|
[PASS] test_debit_Revert_SlippageExceeded() (gas: 131894)
|
|
168
200
|
[PASS] test_debit_SmallAmount_DustOnly() (gas: 139827)
|
|
169
201
|
[PASS] test_debit_WithFee() (gas: 165286)
|
|
170
202
|
[PASS] test_debit_WithFee_Dust() (gas: 165900)
|
|
171
|
-
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ:
|
|
203
|
+
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 168956, ~: 171220)
|
|
172
204
|
[PASS] test_initialize() (gas: 24722)
|
|
173
205
|
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
|
|
174
|
-
[PASS] test_pause_unpause() (gas:
|
|
206
|
+
[PASS] test_pause_unpause() (gas: 130445)
|
|
175
207
|
[PASS] test_quoteOFT() (gas: 70712)
|
|
176
208
|
[PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
|
|
177
209
|
[PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59195)
|
|
178
210
|
[PASS] test_quoteOFT_Paused() (gas: 56570)
|
|
179
|
-
[PASS] test_quoteOFT_RateLimiterUsage() (gas:
|
|
211
|
+
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 185614)
|
|
180
212
|
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 233430)
|
|
181
|
-
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ:
|
|
213
|
+
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 200500, ~: 200315)
|
|
182
214
|
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84276)
|
|
183
|
-
[PASS] test_rateLimit_Inflow() (gas:
|
|
215
|
+
[PASS] test_rateLimit_Inflow() (gas: 108772)
|
|
184
216
|
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
|
|
185
217
|
[PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 179385)
|
|
186
|
-
[PASS] test_send() (gas:
|
|
187
|
-
[PASS] test_send_Revert_MsgInspection() (gas:
|
|
218
|
+
[PASS] test_send() (gas: 400494)
|
|
219
|
+
[PASS] test_send_Revert_MsgInspection() (gas: 308847)
|
|
188
220
|
[PASS] test_send_WithFee() (gas: 477358)
|
|
189
221
|
[PASS] test_setFeeDeposit() (gas: 28359)
|
|
190
222
|
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
|
|
191
|
-
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ:
|
|
192
|
-
Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in
|
|
223
|
+
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38909, ~: 38967)
|
|
224
|
+
Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 837.30ms (2.62s CPU time)
|
|
225
|
+
|
|
226
|
+
Ran 32 tests for test/OFTLockUnlockExtendedRBACAlt.t.sol:OFTLockUnlockExtendedRBACAltTest
|
|
227
|
+
[PASS] test_credit() (gas: 91882)
|
|
228
|
+
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 94836, ~: 95314)
|
|
229
|
+
[PASS] test_debit() (gas: 113036)
|
|
230
|
+
[PASS] test_debit_Dust() (gas: 137551)
|
|
231
|
+
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 140493, ~: 140423)
|
|
232
|
+
[PASS] test_debit_PushesFees() (gas: 163342)
|
|
233
|
+
[PASS] test_debit_Revert_SlippageExceeded() (gas: 133828)
|
|
234
|
+
[PASS] test_debit_SmallAmount_DustOnly() (gas: 137513)
|
|
235
|
+
[PASS] test_debit_WithFee() (gas: 163924)
|
|
236
|
+
[PASS] test_debit_WithFee_Dust() (gas: 163430)
|
|
237
|
+
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 163546, ~: 162567)
|
|
238
|
+
[PASS] test_initialize() (gas: 24656)
|
|
239
|
+
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92822)
|
|
240
|
+
[PASS] test_pause_unpause() (gas: 145524)
|
|
241
|
+
[PASS] test_quoteOFT() (gas: 70757)
|
|
242
|
+
[PASS] test_quoteOFT_GloballyDisabled() (gas: 80605)
|
|
243
|
+
[PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59240)
|
|
244
|
+
[PASS] test_quoteOFT_Paused() (gas: 56637)
|
|
245
|
+
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 200448)
|
|
246
|
+
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 242784)
|
|
247
|
+
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 198077, ~: 197912)
|
|
248
|
+
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84299)
|
|
249
|
+
[PASS] test_rateLimit_Inflow() (gas: 132710)
|
|
250
|
+
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 159652)
|
|
251
|
+
[PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 176893)
|
|
252
|
+
[PASS] test_send() (gas: 465637)
|
|
253
|
+
[PASS] test_send_Revert_MsgInspection() (gas: 327696)
|
|
254
|
+
[PASS] test_send_Revert_OnlyAltToken() (gas: 241148)
|
|
255
|
+
[PASS] test_send_WithFee() (gas: 516566)
|
|
256
|
+
[PASS] test_setFeeDeposit() (gas: 28423)
|
|
257
|
+
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22583)
|
|
258
|
+
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38911, ~: 39012)
|
|
259
|
+
Suite result: ok. 32 passed; 0 failed; 0 skipped; finished in 847.69ms (2.25s CPU time)
|
|
193
260
|
|
|
194
261
|
Ran 39 tests for test/OFTNativeExtendedRBAC.t.sol:OFTNativeExtendedRBACTest
|
|
195
262
|
[PASS] test_approvalRequired() (gas: 13426)
|
|
196
263
|
[PASS] test_credit() (gas: 62369)
|
|
197
|
-
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ:
|
|
264
|
+
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 65917, ~: 65954)
|
|
198
265
|
[PASS] test_credit_Revert_CreditFailed() (gas: 91478)
|
|
199
266
|
[PASS] test_debit() (gas: 36831)
|
|
200
267
|
[PASS] test_debit_Dust() (gas: 76272)
|
|
201
|
-
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ:
|
|
268
|
+
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 79654, ~: 79886)
|
|
202
269
|
[PASS] test_debit_PushesFees() (gas: 101339)
|
|
203
270
|
[PASS] test_debit_Revert_SlippageExceeded() (gas: 54229)
|
|
204
271
|
[PASS] test_debit_SmallAmount_DustOnly() (gas: 76226)
|
|
205
272
|
[PASS] test_debit_WithFee() (gas: 101145)
|
|
206
273
|
[PASS] test_debit_WithFee_Dust() (gas: 102376)
|
|
207
|
-
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ:
|
|
274
|
+
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 105867, ~: 107585)
|
|
208
275
|
[PASS] test_initialize() (gas: 22406)
|
|
209
276
|
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92778)
|
|
210
277
|
[PASS] test_pause_unpause() (gas: 61117)
|
|
@@ -214,7 +281,7 @@ Ran 39 tests for test/OFTNativeExtendedRBAC.t.sol:OFTNativeExtendedRBACTest
|
|
|
214
281
|
[PASS] test_quoteOFT_Paused() (gas: 56703)
|
|
215
282
|
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 97744)
|
|
216
283
|
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 160139)
|
|
217
|
-
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ:
|
|
284
|
+
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 137897, ~: 137703)
|
|
218
285
|
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84387)
|
|
219
286
|
[PASS] test_rateLimit_Inflow() (gas: 87713)
|
|
220
287
|
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 80123)
|
|
@@ -229,111 +296,44 @@ Ran 39 tests for test/OFTNativeExtendedRBAC.t.sol:OFTNativeExtendedRBACTest
|
|
|
229
296
|
[PASS] test_send_WithFee() (gas: 415240)
|
|
230
297
|
[PASS] test_setFeeDeposit() (gas: 28425)
|
|
231
298
|
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22627)
|
|
232
|
-
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ:
|
|
299
|
+
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38924, ~: 39011)
|
|
233
300
|
[PASS] test_token() (gas: 13483)
|
|
234
|
-
Suite result: ok. 39 passed; 0 failed; 0 skipped; finished in
|
|
235
|
-
|
|
236
|
-
Ran 31 tests for test/OFTLockUnlockExtendedRBAC.t.sol:OFTLockUnlockExtendedRBACTest
|
|
237
|
-
[PASS] test_credit() (gas: 89882)
|
|
238
|
-
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93232, ~: 93314)
|
|
239
|
-
[PASS] test_debit() (gas: 113036)
|
|
240
|
-
[PASS] test_debit_Dust() (gas: 135880)
|
|
241
|
-
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 138486, ~: 138823)
|
|
242
|
-
[PASS] test_debit_PushesFees() (gas: 161342)
|
|
243
|
-
[PASS] test_debit_Revert_SlippageExceeded() (gas: 131850)
|
|
244
|
-
[PASS] test_debit_SmallAmount_DustOnly() (gas: 135931)
|
|
245
|
-
[PASS] test_debit_WithFee() (gas: 163924)
|
|
246
|
-
[PASS] test_debit_WithFee_Dust() (gas: 161430)
|
|
247
|
-
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 161654, ~: 160967)
|
|
248
|
-
[PASS] test_initialize() (gas: 24678)
|
|
249
|
-
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92822)
|
|
250
|
-
[PASS] test_pause_unpause() (gas: 143924)
|
|
251
|
-
[PASS] test_quoteOFT() (gas: 70757)
|
|
252
|
-
[PASS] test_quoteOFT_GloballyDisabled() (gas: 80605)
|
|
253
|
-
[PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59262)
|
|
254
|
-
[PASS] test_quoteOFT_Paused() (gas: 56637)
|
|
255
|
-
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 198848)
|
|
256
|
-
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 241184)
|
|
257
|
-
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 196075, ~: 195912)
|
|
258
|
-
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84321)
|
|
259
|
-
[PASS] test_rateLimit_Inflow() (gas: 130622)
|
|
260
|
-
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157652)
|
|
261
|
-
[PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 174915)
|
|
262
|
-
[PASS] test_send() (gas: 418929)
|
|
263
|
-
[PASS] test_send_Revert_MsgInspection() (gas: 325718)
|
|
264
|
-
[PASS] test_send_WithFee() (gas: 474453)
|
|
265
|
-
[PASS] test_setFeeDeposit() (gas: 28337)
|
|
266
|
-
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22583)
|
|
267
|
-
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38844, ~: 38945)
|
|
268
|
-
Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 545.22ms (1.70s CPU time)
|
|
269
|
-
|
|
270
|
-
Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACTest
|
|
271
|
-
[PASS] test_credit() (gas: 89871)
|
|
272
|
-
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 92901, ~: 93303)
|
|
273
|
-
[PASS] test_debit() (gas: 98327)
|
|
274
|
-
[PASS] test_debit_Dust() (gas: 139747)
|
|
275
|
-
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 142798, ~: 143461)
|
|
276
|
-
[PASS] test_debit_PushesFees() (gas: 165796)
|
|
277
|
-
[PASS] test_debit_Revert_SlippageExceeded() (gas: 131894)
|
|
278
|
-
[PASS] test_debit_SmallAmount_DustOnly() (gas: 139811)
|
|
279
|
-
[PASS] test_debit_WithFee() (gas: 165270)
|
|
280
|
-
[PASS] test_debit_WithFee_Dust() (gas: 165884)
|
|
281
|
-
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 169008, ~: 171204)
|
|
282
|
-
[PASS] test_initialize() (gas: 24722)
|
|
283
|
-
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
|
|
284
|
-
[PASS] test_pause_unpause() (gas: 130467)
|
|
285
|
-
[PASS] test_quoteOFT() (gas: 70712)
|
|
286
|
-
[PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
|
|
287
|
-
[PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59195)
|
|
288
|
-
[PASS] test_quoteOFT_Paused() (gas: 56570)
|
|
289
|
-
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 185657)
|
|
290
|
-
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 233398)
|
|
291
|
-
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 200461, ~: 200299)
|
|
292
|
-
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84276)
|
|
293
|
-
[PASS] test_rateLimit_Inflow() (gas: 108736)
|
|
294
|
-
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
|
|
295
|
-
[PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 179369)
|
|
296
|
-
[PASS] test_send() (gas: 400518)
|
|
297
|
-
[PASS] test_send_Revert_MsgInspection() (gas: 308871)
|
|
298
|
-
[PASS] test_send_WithFee() (gas: 477338)
|
|
299
|
-
[PASS] test_setFeeDeposit() (gas: 28359)
|
|
300
|
-
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
|
|
301
|
-
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38866, ~: 38967)
|
|
302
|
-
Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 653.86ms (1.45s CPU time)
|
|
301
|
+
Suite result: ok. 39 passed; 0 failed; 0 skipped; finished in 913.99ms (1.94s CPU time)
|
|
303
302
|
|
|
304
|
-
Ran
|
|
305
|
-
[PASS] test_credit() (gas:
|
|
306
|
-
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ:
|
|
307
|
-
[PASS] test_debit() (gas:
|
|
308
|
-
[PASS] test_debit_Dust() (gas:
|
|
309
|
-
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ:
|
|
310
|
-
[PASS] test_debit_PushesFees() (gas:
|
|
311
|
-
[PASS] test_debit_Revert_SlippageExceeded() (gas:
|
|
312
|
-
[PASS] test_debit_SmallAmount_DustOnly() (gas:
|
|
313
|
-
[PASS]
|
|
314
|
-
[PASS]
|
|
315
|
-
[PASS]
|
|
316
|
-
[PASS]
|
|
303
|
+
Ran 32 tests for test/OFTBurnSelfMintExtendedRBAC.t.sol:OFTBurnSelfMintExtendedRBACTest
|
|
304
|
+
[PASS] test_credit() (gas: 89873)
|
|
305
|
+
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93271, ~: 93305)
|
|
306
|
+
[PASS] test_debit() (gas: 120710)
|
|
307
|
+
[PASS] test_debit_Dust() (gas: 143616)
|
|
308
|
+
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 145715, ~: 146486)
|
|
309
|
+
[PASS] test_debit_PushesFees() (gas: 164384)
|
|
310
|
+
[PASS] test_debit_Revert_SlippageExceeded() (gas: 131872)
|
|
311
|
+
[PASS] test_debit_SmallAmount_DustOnly() (gas: 143579)
|
|
312
|
+
[PASS] test_debit_TokensTransferredToSelfThenBurned() (gas: 122517)
|
|
313
|
+
[PASS] test_debit_WithFee() (gas: 166449)
|
|
314
|
+
[PASS] test_debit_WithFee_Dust() (gas: 164455)
|
|
315
|
+
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 166301, ~: 168645)
|
|
316
|
+
[PASS] test_initialize() (gas: 24700)
|
|
317
317
|
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
|
|
318
|
-
[PASS] test_pause_unpause() (gas:
|
|
318
|
+
[PASS] test_pause_unpause() (gas: 151598)
|
|
319
319
|
[PASS] test_quoteOFT() (gas: 70712)
|
|
320
320
|
[PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
|
|
321
|
-
[PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas:
|
|
321
|
+
[PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59173)
|
|
322
322
|
[PASS] test_quoteOFT_Paused() (gas: 56570)
|
|
323
|
-
[PASS] test_quoteOFT_RateLimiterUsage() (gas:
|
|
324
|
-
[PASS] test_quoteOFT_RateLimiterWithFee() (gas:
|
|
325
|
-
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ:
|
|
326
|
-
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas:
|
|
327
|
-
[PASS] test_rateLimit_Inflow() (gas:
|
|
323
|
+
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 242240)
|
|
324
|
+
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 268746)
|
|
325
|
+
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 192065, ~: 191921)
|
|
326
|
+
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84254)
|
|
327
|
+
[PASS] test_rateLimit_Inflow() (gas: 108738)
|
|
328
328
|
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
|
|
329
|
-
[PASS] test_rateLimit_Outflow_WithFee_Success() (gas:
|
|
330
|
-
[PASS] test_send() (gas:
|
|
331
|
-
[PASS] test_send_Revert_MsgInspection() (gas:
|
|
332
|
-
[PASS] test_send_WithFee() (gas:
|
|
333
|
-
[PASS] test_setFeeDeposit() (gas:
|
|
329
|
+
[PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 175225)
|
|
330
|
+
[PASS] test_send() (gas: 387136)
|
|
331
|
+
[PASS] test_send_Revert_MsgInspection() (gas: 335267)
|
|
332
|
+
[PASS] test_send_WithFee() (gas: 462592)
|
|
333
|
+
[PASS] test_setFeeDeposit() (gas: 28445)
|
|
334
334
|
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
|
|
335
|
-
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ:
|
|
336
|
-
Suite result: ok.
|
|
335
|
+
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38952, ~: 39034)
|
|
336
|
+
Suite result: ok. 32 passed; 0 failed; 0 skipped; finished in 914.31ms (1.83s CPU time)
|
|
337
337
|
|
|
338
|
-
Ran 9 test suites in
|
|
339
|
-
⏳ forge test:
|
|
338
|
+
Ran 9 test suites in 1.20s (7.50s CPU time): 292 tests passed, 0 failed, 0 skipped (292 total tests)
|
|
339
|
+
⏳ forge test: 1:04.366 (m:ss.mmm)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@layerzerolabs/oft-upgradeable-evm-contracts",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.99",
|
|
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/
|
|
18
|
-
"@layerzerolabs/
|
|
19
|
-
"@layerzerolabs/
|
|
20
|
-
"@layerzerolabs/solhint-configuration": "0.2.
|
|
21
|
-
"@layerzerolabs/
|
|
22
|
-
"@layerzerolabs/
|
|
23
|
-
"@layerzerolabs/
|
|
24
|
-
"@layerzerolabs/utils-evm-contracts": "0.2.
|
|
25
|
-
"@layerzerolabs/vm-tooling-evm": "0.2.
|
|
26
|
-
"@layerzerolabs/utils-
|
|
17
|
+
"@layerzerolabs/oapp-evm-contracts": "0.2.99",
|
|
18
|
+
"@layerzerolabs/oft-evm-contracts": "0.2.99",
|
|
19
|
+
"@layerzerolabs/oapp-upgradeable-evm-contracts": "0.2.99",
|
|
20
|
+
"@layerzerolabs/solhint-configuration": "0.2.99",
|
|
21
|
+
"@layerzerolabs/test-utils-evm-contracts": "0.2.99",
|
|
22
|
+
"@layerzerolabs/typescript-configuration": "0.2.99",
|
|
23
|
+
"@layerzerolabs/tsup-configuration": "0.2.99",
|
|
24
|
+
"@layerzerolabs/utils-upgradeable-evm-contracts": "0.2.99",
|
|
25
|
+
"@layerzerolabs/vm-tooling-evm": "0.2.99",
|
|
26
|
+
"@layerzerolabs/utils-evm-contracts": "0.2.99"
|
|
27
27
|
},
|
|
28
28
|
"publishConfig": {
|
|
29
29
|
"access": "public",
|
|
@@ -38,9 +38,9 @@
|
|
|
38
38
|
"scripts": {
|
|
39
39
|
"build": "pnpm compile:evm && pnpm compile:zksync && pnpm compile:tron",
|
|
40
40
|
"clean": "rm -rf ./node_modules .turbo ./dist && pnpm generated:clean",
|
|
41
|
-
"compile:evm": "pnpm lz-tool hardhat compile --config /hardhat/hardhat.default.config.js",
|
|
42
|
-
"compile:tron": "pnpm lz-tool hardhat compile --config /hardhat/hardhat.default.config.js --network tron-mainnet",
|
|
43
|
-
"compile:zksync": "pnpm lz-tool hardhat compile --config /hardhat/hardhat.default.config.js --network zksync-mainnet",
|
|
41
|
+
"compile:evm": "pnpm lz-tool --env TS_NODE_COMPILER_OPTIONS='{\"module\":\"CommonJS\",\"moduleResolution\":\"node\"}' hardhat compile --config /hardhat/hardhat.default.config.js",
|
|
42
|
+
"compile:tron": "pnpm lz-tool --env TS_NODE_COMPILER_OPTIONS='{\"module\":\"CommonJS\",\"moduleResolution\":\"node\"}' hardhat compile --config /hardhat/hardhat.default.config.js --network tron-mainnet",
|
|
43
|
+
"compile:zksync": "pnpm lz-tool --env TS_NODE_COMPILER_OPTIONS='{\"module\":\"CommonJS\",\"moduleResolution\":\"node\"}' hardhat compile --config /hardhat/hardhat.default.config.js --network zksync-mainnet",
|
|
44
44
|
"generated:clean": "rm -rf ./artifacts ./artifacts-tron ./artifacts-zk ./hh-cache ./hh-cache-tron ./hh-cache-zk",
|
|
45
45
|
"lint": "solhint --config solhint.config.js 'contracts/**/*.sol' 'test/**/*.sol' --fix --noPrompt",
|
|
46
46
|
"test": "pnpm lz-tool forge test"
|