@layerzerolabs/oft-upgradeable-evm-contracts 0.2.103 → 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.
- package/.turbo/turbo-build.log +12 -12
- package/.turbo/turbo-lint.log +1 -1
- package/.turbo/turbo-test.log +199 -199
- package/package.json +11 -11
package/.turbo/turbo-build.log
CHANGED
|
@@ -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 {{.
|
|
15
|
-
(node:
|
|
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:
|
|
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 {{.
|
|
84
|
-
(node:
|
|
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:
|
|
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 {{.
|
|
107
|
-
(node:
|
|
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:
|
|
169
|
+
⏳ hardhat compile --config /hardhat/hardhat.default.config.js --network tron-mainnet: 32.753s
|
package/.turbo/turbo-lint.log
CHANGED
|
@@ -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.
|
|
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
|
package/.turbo/turbo-test.log
CHANGED
|
@@ -4,136 +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 {{.
|
|
8
|
-
(node:
|
|
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
|
|
16
|
+
Solc 0.8.22 finished in 63.56s
|
|
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]
|
|
29
|
-
[PASS]
|
|
30
|
-
[PASS]
|
|
31
|
-
[PASS]
|
|
32
|
-
[PASS] test_initialize() (gas: 24700)
|
|
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)
|
|
33
32
|
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
|
|
34
|
-
[PASS] test_pause_unpause() (gas:
|
|
33
|
+
[PASS] test_pause_unpause() (gas: 130445)
|
|
35
34
|
[PASS] test_quoteOFT() (gas: 70712)
|
|
36
35
|
[PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
|
|
37
|
-
[PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas:
|
|
36
|
+
[PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59195)
|
|
38
37
|
[PASS] test_quoteOFT_Paused() (gas: 56570)
|
|
39
|
-
[PASS] test_quoteOFT_RateLimiterUsage() (gas:
|
|
40
|
-
[PASS] test_quoteOFT_RateLimiterWithFee() (gas:
|
|
41
|
-
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ:
|
|
42
|
-
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas:
|
|
43
|
-
[PASS] test_rateLimit_Inflow() (gas:
|
|
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)
|
|
44
43
|
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
|
|
45
|
-
[PASS] test_rateLimit_Outflow_WithFee_Success() (gas:
|
|
46
|
-
[PASS] test_send() (gas:
|
|
47
|
-
[PASS] test_send_Revert_MsgInspection() (gas:
|
|
48
|
-
[PASS] test_send_WithFee() (gas:
|
|
49
|
-
[PASS] test_setFeeDeposit() (gas:
|
|
50
|
-
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
|
|
51
|
-
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38928, ~: 39034)
|
|
52
|
-
Suite result: ok. 32 passed; 0 failed; 0 skipped; finished in 493.79ms (1.42s CPU time)
|
|
53
|
-
|
|
54
|
-
Ran 33 tests for test/OFTBurnSelfMintExtendedRBACAlt.t.sol:OFTBurnSelfMintExtendedRBACAltTest
|
|
55
|
-
[PASS] test_credit() (gas: 89873)
|
|
56
|
-
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93063, ~: 93305)
|
|
57
|
-
[PASS] test_debit() (gas: 120710)
|
|
58
|
-
[PASS] test_debit_Dust() (gas: 145216)
|
|
59
|
-
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 147411, ~: 148086)
|
|
60
|
-
[PASS] test_debit_PushesFees() (gas: 165984)
|
|
61
|
-
[PASS] test_debit_Revert_SlippageExceeded() (gas: 133872)
|
|
62
|
-
[PASS] test_debit_SmallAmount_DustOnly() (gas: 145179)
|
|
63
|
-
[PASS] test_debit_TokensTransferredToSelfThenBurned() (gas: 122500)
|
|
64
|
-
[PASS] test_debit_WithFee() (gas: 166449)
|
|
65
|
-
[PASS] test_debit_WithFee_Dust() (gas: 166055)
|
|
66
|
-
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 168288, ~: 170245)
|
|
67
|
-
[PASS] test_initialize() (gas: 24700)
|
|
68
|
-
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
|
|
69
|
-
[PASS] test_pause_unpause() (gas: 153198)
|
|
70
|
-
[PASS] test_quoteOFT() (gas: 70712)
|
|
71
|
-
[PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
|
|
72
|
-
[PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59173)
|
|
73
|
-
[PASS] test_quoteOFT_Paused() (gas: 56570)
|
|
74
|
-
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 243840)
|
|
75
|
-
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 270346)
|
|
76
|
-
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 193670, ~: 193521)
|
|
77
|
-
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84254)
|
|
78
|
-
[PASS] test_rateLimit_Inflow() (gas: 108826)
|
|
79
|
-
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 159696)
|
|
80
|
-
[PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 176825)
|
|
81
|
-
[PASS] test_send() (gas: 456534)
|
|
82
|
-
[PASS] test_send_Revert_MsgInspection() (gas: 337267)
|
|
83
|
-
[PASS] test_send_Revert_OnlyAltToken() (gas: 250697)
|
|
84
|
-
[PASS] test_send_WithFee() (gas: 504694)
|
|
85
|
-
[PASS] test_setFeeDeposit() (gas: 28445)
|
|
86
|
-
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
|
|
87
|
-
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38923, ~: 39034)
|
|
88
|
-
Suite result: ok. 33 passed; 0 failed; 0 skipped; finished in 518.74ms (1.55s CPU time)
|
|
89
|
-
|
|
90
|
-
Ran 32 tests for test/OFTBurnMintExtendedRBACAlt.t.sol:OFTBurnMintExtendedRBACAltTest
|
|
91
|
-
[PASS] test_credit() (gas: 89871)
|
|
92
|
-
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93022, ~: 93303)
|
|
93
|
-
[PASS] test_debit() (gas: 98327)
|
|
94
|
-
[PASS] test_debit_Dust() (gas: 141836)
|
|
95
|
-
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 144730, ~: 145461)
|
|
96
|
-
[PASS] test_debit_PushesFees() (gas: 167796)
|
|
97
|
-
[PASS] test_debit_Revert_SlippageExceeded() (gas: 133872)
|
|
98
|
-
[PASS] test_debit_SmallAmount_DustOnly() (gas: 141789)
|
|
99
|
-
[PASS] test_debit_WithFee() (gas: 165270)
|
|
100
|
-
[PASS] test_debit_WithFee_Dust() (gas: 167884)
|
|
101
|
-
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 170811, ~: 173204)
|
|
102
|
-
[PASS] test_initialize() (gas: 24700)
|
|
103
|
-
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
|
|
104
|
-
[PASS] test_pause_unpause() (gas: 132067)
|
|
105
|
-
[PASS] test_quoteOFT() (gas: 70712)
|
|
106
|
-
[PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
|
|
107
|
-
[PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59173)
|
|
108
|
-
[PASS] test_quoteOFT_Paused() (gas: 56570)
|
|
109
|
-
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 187257)
|
|
110
|
-
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 235398)
|
|
111
|
-
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 202491, ~: 202299)
|
|
112
|
-
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84254)
|
|
113
|
-
[PASS] test_rateLimit_Inflow() (gas: 108824)
|
|
114
|
-
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 159696)
|
|
115
|
-
[PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 181347)
|
|
116
|
-
[PASS] test_send() (gas: 421733)
|
|
117
|
-
[PASS] test_send_Revert_MsgInspection() (gas: 310849)
|
|
118
|
-
[PASS] test_send_Revert_OnlyAltToken() (gas: 198819)
|
|
119
|
-
[PASS] test_send_WithFee() (gas: 493959)
|
|
120
|
-
[PASS] test_setFeeDeposit() (gas: 28445)
|
|
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)
|
|
121
49
|
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
|
|
122
|
-
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ:
|
|
123
|
-
Suite result: ok.
|
|
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)
|
|
124
52
|
|
|
125
53
|
Ran 31 tests for test/OFTLockUnlockExtendedRBAC.t.sol:OFTLockUnlockExtendedRBACTest
|
|
126
54
|
[PASS] test_credit() (gas: 89882)
|
|
127
|
-
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ:
|
|
55
|
+
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93224, ~: 93314)
|
|
128
56
|
[PASS] test_debit() (gas: 113036)
|
|
129
57
|
[PASS] test_debit_Dust() (gas: 135880)
|
|
130
|
-
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ:
|
|
58
|
+
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 138479, ~: 138823)
|
|
131
59
|
[PASS] test_debit_PushesFees() (gas: 161342)
|
|
132
60
|
[PASS] test_debit_Revert_SlippageExceeded() (gas: 131850)
|
|
133
61
|
[PASS] test_debit_SmallAmount_DustOnly() (gas: 135931)
|
|
134
62
|
[PASS] test_debit_WithFee() (gas: 163924)
|
|
135
63
|
[PASS] test_debit_WithFee_Dust() (gas: 161430)
|
|
136
|
-
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ:
|
|
64
|
+
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 162123, ~: 160967)
|
|
137
65
|
[PASS] test_initialize() (gas: 24678)
|
|
138
66
|
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92822)
|
|
139
67
|
[PASS] test_pause_unpause() (gas: 143924)
|
|
@@ -143,7 +71,7 @@ Ran 31 tests for test/OFTLockUnlockExtendedRBAC.t.sol:OFTLockUnlockExtendedRBACT
|
|
|
143
71
|
[PASS] test_quoteOFT_Paused() (gas: 56637)
|
|
144
72
|
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 198848)
|
|
145
73
|
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 241184)
|
|
146
|
-
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ:
|
|
74
|
+
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 196080, ~: 195912)
|
|
147
75
|
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84321)
|
|
148
76
|
[PASS] test_rateLimit_Inflow() (gas: 130622)
|
|
149
77
|
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157652)
|
|
@@ -153,21 +81,63 @@ Ran 31 tests for test/OFTLockUnlockExtendedRBAC.t.sol:OFTLockUnlockExtendedRBACT
|
|
|
153
81
|
[PASS] test_send_WithFee() (gas: 474453)
|
|
154
82
|
[PASS] test_setFeeDeposit() (gas: 28337)
|
|
155
83
|
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22583)
|
|
156
|
-
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ:
|
|
157
|
-
Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in
|
|
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)
|
|
86
|
+
|
|
87
|
+
Ran 39 tests for test/OFTNativeExtendedRBAC.t.sol:OFTNativeExtendedRBACTest
|
|
88
|
+
[PASS] test_approvalRequired() (gas: 13426)
|
|
89
|
+
[PASS] test_credit() (gas: 62369)
|
|
90
|
+
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 65725, ~: 65954)
|
|
91
|
+
[PASS] test_credit_Revert_CreditFailed() (gas: 91478)
|
|
92
|
+
[PASS] test_debit() (gas: 36831)
|
|
93
|
+
[PASS] test_debit_Dust() (gas: 76272)
|
|
94
|
+
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 79238, ~: 79886)
|
|
95
|
+
[PASS] test_debit_PushesFees() (gas: 101339)
|
|
96
|
+
[PASS] test_debit_Revert_SlippageExceeded() (gas: 54229)
|
|
97
|
+
[PASS] test_debit_SmallAmount_DustOnly() (gas: 76226)
|
|
98
|
+
[PASS] test_debit_WithFee() (gas: 101145)
|
|
99
|
+
[PASS] test_debit_WithFee_Dust() (gas: 102376)
|
|
100
|
+
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 105835, ~: 107585)
|
|
101
|
+
[PASS] test_initialize() (gas: 22406)
|
|
102
|
+
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92778)
|
|
103
|
+
[PASS] test_pause_unpause() (gas: 61117)
|
|
104
|
+
[PASS] test_quoteOFT() (gas: 70779)
|
|
105
|
+
[PASS] test_quoteOFT_GloballyDisabled() (gas: 80649)
|
|
106
|
+
[PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59220)
|
|
107
|
+
[PASS] test_quoteOFT_Paused() (gas: 56703)
|
|
108
|
+
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 97744)
|
|
109
|
+
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 160139)
|
|
110
|
+
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 137870, ~: 137703)
|
|
111
|
+
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84387)
|
|
112
|
+
[PASS] test_rateLimit_Inflow() (gas: 87713)
|
|
113
|
+
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 80123)
|
|
114
|
+
[PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 116713)
|
|
115
|
+
[PASS] test_send() (gas: 352734)
|
|
116
|
+
[PASS] test_send_PushesFees() (gas: 415282)
|
|
117
|
+
[PASS] test_send_Revert_FeeTransferFailed() (gas: 157067)
|
|
118
|
+
[PASS] test_send_Revert_IncorrectMessageValue_TooHigh() (gas: 30287)
|
|
119
|
+
[PASS] test_send_Revert_IncorrectMessageValue_TooLow() (gas: 30257)
|
|
120
|
+
[PASS] test_send_Revert_IncorrectMessageValue_ZeroValue() (gas: 22753)
|
|
121
|
+
[PASS] test_send_Revert_MsgInspection() (gas: 221169)
|
|
122
|
+
[PASS] test_send_WithFee() (gas: 415240)
|
|
123
|
+
[PASS] test_setFeeDeposit() (gas: 28425)
|
|
124
|
+
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22627)
|
|
125
|
+
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38915, ~: 39011)
|
|
126
|
+
[PASS] test_token() (gas: 13483)
|
|
127
|
+
Suite result: ok. 39 passed; 0 failed; 0 skipped; finished in 1.28s (2.51s CPU time)
|
|
158
128
|
|
|
159
129
|
Ran 32 tests for test/OFTLockUnlockExtendedRBACAlt.t.sol:OFTLockUnlockExtendedRBACAltTest
|
|
160
130
|
[PASS] test_credit() (gas: 91882)
|
|
161
|
-
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ:
|
|
131
|
+
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 95046, ~: 95314)
|
|
162
132
|
[PASS] test_debit() (gas: 113036)
|
|
163
133
|
[PASS] test_debit_Dust() (gas: 137551)
|
|
164
|
-
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ:
|
|
134
|
+
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 139974, ~: 141029)
|
|
165
135
|
[PASS] test_debit_PushesFees() (gas: 163342)
|
|
166
136
|
[PASS] test_debit_Revert_SlippageExceeded() (gas: 133828)
|
|
167
137
|
[PASS] test_debit_SmallAmount_DustOnly() (gas: 137513)
|
|
168
138
|
[PASS] test_debit_WithFee() (gas: 163924)
|
|
169
139
|
[PASS] test_debit_WithFee_Dust() (gas: 163430)
|
|
170
|
-
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ:
|
|
140
|
+
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 163803, ~: 162567)
|
|
171
141
|
[PASS] test_initialize() (gas: 24656)
|
|
172
142
|
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92822)
|
|
173
143
|
[PASS] test_pause_unpause() (gas: 145524)
|
|
@@ -177,7 +147,7 @@ Ran 32 tests for test/OFTLockUnlockExtendedRBACAlt.t.sol:OFTLockUnlockExtendedRB
|
|
|
177
147
|
[PASS] test_quoteOFT_Paused() (gas: 56637)
|
|
178
148
|
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 200448)
|
|
179
149
|
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 242784)
|
|
180
|
-
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ:
|
|
150
|
+
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 198101, ~: 197912)
|
|
181
151
|
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84299)
|
|
182
152
|
[PASS] test_rateLimit_Inflow() (gas: 132710)
|
|
183
153
|
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 159652)
|
|
@@ -188,21 +158,91 @@ Ran 32 tests for test/OFTLockUnlockExtendedRBACAlt.t.sol:OFTLockUnlockExtendedRB
|
|
|
188
158
|
[PASS] test_send_WithFee() (gas: 516566)
|
|
189
159
|
[PASS] test_setFeeDeposit() (gas: 28423)
|
|
190
160
|
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22583)
|
|
191
|
-
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ:
|
|
192
|
-
Suite result: ok. 32 passed; 0 failed; 0 skipped; finished in
|
|
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)
|
|
198
|
+
|
|
199
|
+
Ran 32 tests for test/OFTBurnMintExtendedRBACAlt.t.sol:OFTBurnMintExtendedRBACAltTest
|
|
200
|
+
[PASS] test_credit() (gas: 89871)
|
|
201
|
+
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93134, ~: 93303)
|
|
202
|
+
[PASS] test_debit() (gas: 98327)
|
|
203
|
+
[PASS] test_debit_Dust() (gas: 141836)
|
|
204
|
+
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 144310, ~: 145461)
|
|
205
|
+
[PASS] test_debit_PushesFees() (gas: 167796)
|
|
206
|
+
[PASS] test_debit_Revert_SlippageExceeded() (gas: 133872)
|
|
207
|
+
[PASS] test_debit_SmallAmount_DustOnly() (gas: 141789)
|
|
208
|
+
[PASS] test_debit_WithFee() (gas: 165270)
|
|
209
|
+
[PASS] test_debit_WithFee_Dust() (gas: 167884)
|
|
210
|
+
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 171147, ~: 173204)
|
|
211
|
+
[PASS] test_initialize() (gas: 24700)
|
|
212
|
+
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
|
|
213
|
+
[PASS] test_pause_unpause() (gas: 132067)
|
|
214
|
+
[PASS] test_quoteOFT() (gas: 70712)
|
|
215
|
+
[PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
|
|
216
|
+
[PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59173)
|
|
217
|
+
[PASS] test_quoteOFT_Paused() (gas: 56570)
|
|
218
|
+
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 187257)
|
|
219
|
+
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 235398)
|
|
220
|
+
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 202491, ~: 202299)
|
|
221
|
+
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84254)
|
|
222
|
+
[PASS] test_rateLimit_Inflow() (gas: 108824)
|
|
223
|
+
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 159696)
|
|
224
|
+
[PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 181347)
|
|
225
|
+
[PASS] test_send() (gas: 421733)
|
|
226
|
+
[PASS] test_send_Revert_MsgInspection() (gas: 310849)
|
|
227
|
+
[PASS] test_send_Revert_OnlyAltToken() (gas: 198819)
|
|
228
|
+
[PASS] test_send_WithFee() (gas: 493959)
|
|
229
|
+
[PASS] test_setFeeDeposit() (gas: 28445)
|
|
230
|
+
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
|
|
231
|
+
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38942, ~: 39034)
|
|
232
|
+
Suite result: ok. 32 passed; 0 failed; 0 skipped; finished in 1.50s (4.28s CPU time)
|
|
193
233
|
|
|
194
234
|
Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACTest
|
|
195
235
|
[PASS] test_credit() (gas: 89871)
|
|
196
|
-
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ:
|
|
236
|
+
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 92992, ~: 93303)
|
|
197
237
|
[PASS] test_debit() (gas: 98327)
|
|
198
238
|
[PASS] test_debit_Dust() (gas: 139747)
|
|
199
|
-
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ:
|
|
239
|
+
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 142759, ~: 143461)
|
|
200
240
|
[PASS] test_debit_PushesFees() (gas: 165796)
|
|
201
241
|
[PASS] test_debit_Revert_SlippageExceeded() (gas: 131894)
|
|
202
242
|
[PASS] test_debit_SmallAmount_DustOnly() (gas: 139811)
|
|
203
243
|
[PASS] test_debit_WithFee() (gas: 165270)
|
|
204
244
|
[PASS] test_debit_WithFee_Dust() (gas: 165884)
|
|
205
|
-
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ:
|
|
245
|
+
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 168596, ~: 171204)
|
|
206
246
|
[PASS] test_initialize() (gas: 24722)
|
|
207
247
|
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
|
|
208
248
|
[PASS] test_pause_unpause() (gas: 130467)
|
|
@@ -212,7 +252,7 @@ Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACTest
|
|
|
212
252
|
[PASS] test_quoteOFT_Paused() (gas: 56570)
|
|
213
253
|
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 185657)
|
|
214
254
|
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 233398)
|
|
215
|
-
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ:
|
|
255
|
+
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 200479, ~: 200299)
|
|
216
256
|
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84276)
|
|
217
257
|
[PASS] test_rateLimit_Inflow() (gas: 108736)
|
|
218
258
|
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
|
|
@@ -222,97 +262,57 @@ Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACTest
|
|
|
222
262
|
[PASS] test_send_WithFee() (gas: 477338)
|
|
223
263
|
[PASS] test_setFeeDeposit() (gas: 28359)
|
|
224
264
|
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
|
|
225
|
-
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ:
|
|
226
|
-
Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in
|
|
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)
|
|
227
267
|
|
|
228
|
-
Ran
|
|
229
|
-
[PASS] test_credit() (gas:
|
|
230
|
-
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ:
|
|
231
|
-
[PASS] test_debit() (gas:
|
|
232
|
-
[PASS] test_debit_Dust() (gas:
|
|
233
|
-
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ:
|
|
234
|
-
[PASS] test_debit_PushesFees() (gas:
|
|
235
|
-
[PASS] test_debit_Revert_SlippageExceeded() (gas:
|
|
236
|
-
[PASS] test_debit_SmallAmount_DustOnly() (gas:
|
|
237
|
-
[PASS]
|
|
238
|
-
[PASS]
|
|
239
|
-
[PASS]
|
|
240
|
-
[PASS]
|
|
268
|
+
Ran 33 tests for test/OFTBurnSelfMintExtendedRBACAlt.t.sol:OFTBurnSelfMintExtendedRBACAltTest
|
|
269
|
+
[PASS] test_credit() (gas: 89873)
|
|
270
|
+
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93041, ~: 93305)
|
|
271
|
+
[PASS] test_debit() (gas: 120710)
|
|
272
|
+
[PASS] test_debit_Dust() (gas: 145216)
|
|
273
|
+
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 147791, ~: 148086)
|
|
274
|
+
[PASS] test_debit_PushesFees() (gas: 165984)
|
|
275
|
+
[PASS] test_debit_Revert_SlippageExceeded() (gas: 133872)
|
|
276
|
+
[PASS] test_debit_SmallAmount_DustOnly() (gas: 145179)
|
|
277
|
+
[PASS] test_debit_TokensTransferredToSelfThenBurned() (gas: 122500)
|
|
278
|
+
[PASS] test_debit_WithFee() (gas: 166449)
|
|
279
|
+
[PASS] test_debit_WithFee_Dust() (gas: 166055)
|
|
280
|
+
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 168528, ~: 170245)
|
|
281
|
+
[PASS] test_initialize() (gas: 24700)
|
|
241
282
|
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
|
|
242
|
-
[PASS] test_pause_unpause() (gas:
|
|
283
|
+
[PASS] test_pause_unpause() (gas: 153198)
|
|
243
284
|
[PASS] test_quoteOFT() (gas: 70712)
|
|
244
285
|
[PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
|
|
245
|
-
[PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas:
|
|
286
|
+
[PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59173)
|
|
246
287
|
[PASS] test_quoteOFT_Paused() (gas: 56570)
|
|
247
|
-
[PASS] test_quoteOFT_RateLimiterUsage() (gas:
|
|
248
|
-
[PASS] test_quoteOFT_RateLimiterWithFee() (gas:
|
|
249
|
-
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ:
|
|
250
|
-
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas:
|
|
251
|
-
[PASS] test_rateLimit_Inflow() (gas:
|
|
252
|
-
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas:
|
|
253
|
-
[PASS] test_rateLimit_Outflow_WithFee_Success() (gas:
|
|
254
|
-
[PASS] test_send() (gas:
|
|
255
|
-
[PASS] test_send_Revert_MsgInspection() (gas:
|
|
256
|
-
[PASS]
|
|
257
|
-
[PASS]
|
|
288
|
+
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 243840)
|
|
289
|
+
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 270346)
|
|
290
|
+
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 193665, ~: 193521)
|
|
291
|
+
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84254)
|
|
292
|
+
[PASS] test_rateLimit_Inflow() (gas: 108826)
|
|
293
|
+
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 159696)
|
|
294
|
+
[PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 176825)
|
|
295
|
+
[PASS] test_send() (gas: 456534)
|
|
296
|
+
[PASS] test_send_Revert_MsgInspection() (gas: 337267)
|
|
297
|
+
[PASS] test_send_Revert_OnlyAltToken() (gas: 250697)
|
|
298
|
+
[PASS] test_send_WithFee() (gas: 504694)
|
|
299
|
+
[PASS] test_setFeeDeposit() (gas: 28445)
|
|
258
300
|
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
|
|
259
|
-
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ:
|
|
260
|
-
Suite result: ok.
|
|
261
|
-
|
|
262
|
-
Ran 39 tests for test/OFTNativeExtendedRBAC.t.sol:OFTNativeExtendedRBACTest
|
|
263
|
-
[PASS] test_approvalRequired() (gas: 13426)
|
|
264
|
-
[PASS] test_credit() (gas: 62369)
|
|
265
|
-
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 65821, ~: 65954)
|
|
266
|
-
[PASS] test_credit_Revert_CreditFailed() (gas: 91478)
|
|
267
|
-
[PASS] test_debit() (gas: 36831)
|
|
268
|
-
[PASS] test_debit_Dust() (gas: 76272)
|
|
269
|
-
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 79512, ~: 79886)
|
|
270
|
-
[PASS] test_debit_PushesFees() (gas: 101339)
|
|
271
|
-
[PASS] test_debit_Revert_SlippageExceeded() (gas: 54229)
|
|
272
|
-
[PASS] test_debit_SmallAmount_DustOnly() (gas: 76226)
|
|
273
|
-
[PASS] test_debit_WithFee() (gas: 101145)
|
|
274
|
-
[PASS] test_debit_WithFee_Dust() (gas: 102376)
|
|
275
|
-
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 105740, ~: 107585)
|
|
276
|
-
[PASS] test_initialize() (gas: 22406)
|
|
277
|
-
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92778)
|
|
278
|
-
[PASS] test_pause_unpause() (gas: 61117)
|
|
279
|
-
[PASS] test_quoteOFT() (gas: 70779)
|
|
280
|
-
[PASS] test_quoteOFT_GloballyDisabled() (gas: 80649)
|
|
281
|
-
[PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59220)
|
|
282
|
-
[PASS] test_quoteOFT_Paused() (gas: 56703)
|
|
283
|
-
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 97744)
|
|
284
|
-
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 160139)
|
|
285
|
-
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 137894, ~: 137703)
|
|
286
|
-
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84387)
|
|
287
|
-
[PASS] test_rateLimit_Inflow() (gas: 87713)
|
|
288
|
-
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 80123)
|
|
289
|
-
[PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 116713)
|
|
290
|
-
[PASS] test_send() (gas: 352734)
|
|
291
|
-
[PASS] test_send_PushesFees() (gas: 415282)
|
|
292
|
-
[PASS] test_send_Revert_FeeTransferFailed() (gas: 157067)
|
|
293
|
-
[PASS] test_send_Revert_IncorrectMessageValue_TooHigh() (gas: 30287)
|
|
294
|
-
[PASS] test_send_Revert_IncorrectMessageValue_TooLow() (gas: 30257)
|
|
295
|
-
[PASS] test_send_Revert_IncorrectMessageValue_ZeroValue() (gas: 22753)
|
|
296
|
-
[PASS] test_send_Revert_MsgInspection() (gas: 221169)
|
|
297
|
-
[PASS] test_send_WithFee() (gas: 415240)
|
|
298
|
-
[PASS] test_setFeeDeposit() (gas: 28425)
|
|
299
|
-
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22627)
|
|
300
|
-
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38919, ~: 39011)
|
|
301
|
-
[PASS] test_token() (gas: 13483)
|
|
302
|
-
Suite result: ok. 39 passed; 0 failed; 0 skipped; finished in 599.03ms (964.53ms 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)
|
|
303
303
|
|
|
304
304
|
Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACCrosschainTest
|
|
305
305
|
[PASS] test_credit() (gas: 89874)
|
|
306
|
-
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ:
|
|
306
|
+
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93220, ~: 93306)
|
|
307
307
|
[PASS] test_debit() (gas: 98332)
|
|
308
308
|
[PASS] test_debit_Dust() (gas: 139763)
|
|
309
|
-
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ:
|
|
309
|
+
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 142484, ~: 143477)
|
|
310
310
|
[PASS] test_debit_PushesFees() (gas: 165812)
|
|
311
311
|
[PASS] test_debit_Revert_SlippageExceeded() (gas: 131894)
|
|
312
312
|
[PASS] test_debit_SmallAmount_DustOnly() (gas: 139827)
|
|
313
313
|
[PASS] test_debit_WithFee() (gas: 165286)
|
|
314
314
|
[PASS] test_debit_WithFee_Dust() (gas: 165900)
|
|
315
|
-
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ:
|
|
315
|
+
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 168972, ~: 171220)
|
|
316
316
|
[PASS] test_initialize() (gas: 24722)
|
|
317
317
|
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
|
|
318
318
|
[PASS] test_pause_unpause() (gas: 130472)
|
|
@@ -322,7 +322,7 @@ Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACCross
|
|
|
322
322
|
[PASS] test_quoteOFT_Paused() (gas: 56570)
|
|
323
323
|
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 185667)
|
|
324
324
|
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 233430)
|
|
325
|
-
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ:
|
|
325
|
+
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 200498, ~: 200315)
|
|
326
326
|
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84276)
|
|
327
327
|
[PASS] test_rateLimit_Inflow() (gas: 108739)
|
|
328
328
|
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
|
|
@@ -332,8 +332,8 @@ Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACCross
|
|
|
332
332
|
[PASS] test_send_WithFee() (gas: 477358)
|
|
333
333
|
[PASS] test_setFeeDeposit() (gas: 28359)
|
|
334
334
|
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
|
|
335
|
-
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ:
|
|
336
|
-
Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in
|
|
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
|
|
339
|
-
⏳ forge test: 1:
|
|
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.
|
|
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.
|
|
18
|
-
"@layerzerolabs/
|
|
19
|
-
"@layerzerolabs/oapp-upgradeable-evm-contracts": "0.2.
|
|
20
|
-
"@layerzerolabs/
|
|
21
|
-
"@layerzerolabs/test-utils-evm-contracts": "0.2.
|
|
22
|
-
"@layerzerolabs/tsup-configuration": "0.2.
|
|
23
|
-
"@layerzerolabs/typescript-configuration": "0.2.
|
|
24
|
-
"@layerzerolabs/utils-upgradeable-evm-contracts": "0.2.
|
|
25
|
-
"@layerzerolabs/utils-evm-contracts": "0.2.
|
|
26
|
-
"@layerzerolabs/vm-tooling-evm": "0.2.
|
|
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",
|