@layerzerolabs/oft-upgradeable-evm-contracts 0.2.106 → 0.2.108
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 +18 -12
- package/.turbo/turbo-lint.log +1 -1
- package/.turbo/turbo-test.log +201 -201
- package/package.json +11 -11
package/.turbo/turbo-build.log
CHANGED
|
@@ -12,14 +12,16 @@
|
|
|
12
12
|
✅ forge-1.3.6-hardhat-2.26.3
|
|
13
13
|
🔧 hardhat version: 2.26.3
|
|
14
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:
|
|
15
|
+
(node:45999) [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
|
+
$ docker container create --platform linux/amd64 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3 true
|
|
20
|
+
$ docker container rm 4a20d1c5cabf79264d35af1b817a3fbeeaf311bdb9f0ababfcdb7a6fe09fc2b2
|
|
21
|
+
✅ 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 (linux/amd64)
|
|
20
22
|
👤 Running container as UID:GID 1001:1001
|
|
21
23
|
🌍 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
|
|
24
|
+
$ docker run --platform linux/amd64 --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
|
|
23
25
|
Compiling 76 Solidity files
|
|
24
26
|
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.
|
|
25
27
|
--> contracts/extended/OFTBurnMintExtendedRBACUpgradeable.sol:28:1:
|
|
@@ -71,7 +73,7 @@ Warning: Contract code size is 27524 bytes and exceeds 24576 bytes (a limit intr
|
|
|
71
73
|
|
|
72
74
|
|
|
73
75
|
Successfully compiled 76 Solidity files
|
|
74
|
-
⏳ hardhat compile --config /hardhat/hardhat.default.config.js: 10.
|
|
76
|
+
⏳ hardhat compile --config /hardhat/hardhat.default.config.js: 10.149s
|
|
75
77
|
WARN Issue while reading "/home/runner/work/monorepo-internal/monorepo-internal/.npmrc". Failed to replace env in config: ${NPM_TOKEN}
|
|
76
78
|
|
|
77
79
|
> @layerzerolabs/oft-upgradeable-evm-contracts@0.0.0 compile:zksync /home/runner/work/monorepo-internal/monorepo-internal/apps/oft-app/contracts/evm/upgradeable
|
|
@@ -81,20 +83,22 @@ Successfully compiled 76 Solidity files
|
|
|
81
83
|
✅ forge-1.3.6-hardhat-2.26.3
|
|
82
84
|
🔧 hardhat version: 2.26.3
|
|
83
85
|
$ 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:
|
|
86
|
+
(node:48487) [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
87
|
Reparsing as ES module because module syntax was detected. This incurs a performance overhead.
|
|
86
88
|
To eliminate this warning, add "type": "module" to /home/runner/work/monorepo-internal/monorepo-internal/package.json.
|
|
87
89
|
(Use `node --trace-warnings ...` to show where the warning was created)
|
|
88
|
-
|
|
90
|
+
$ docker container create --platform linux/amd64 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3 true
|
|
91
|
+
$ docker container rm 8cff310cf70587e8d237eece4d090af72cf17cf95016e2d8bf2813b64999f232
|
|
92
|
+
✅ 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 (linux/amd64)
|
|
89
93
|
👤 Running container as UID:GID 1001:1001
|
|
90
94
|
🌍 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
|
|
95
|
+
$ docker run --platform linux/amd64 --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
|
|
92
96
|
The solc version 1.3.22 is deprecated and will be removed for security reasons soon. Please update to v1.4.0 or newer.
|
|
93
97
|
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.
|
|
94
98
|
Compiling contracts for ZKsync Era with zksolc v1.3.22 and zkvm-solc v0.8.23-1.0.1
|
|
95
99
|
Compiling 76 Solidity files
|
|
96
100
|
Successfully compiled 76 Solidity files
|
|
97
|
-
⏳ hardhat compile --config /hardhat/hardhat.default.config.js --network zksync-mainnet: 1:
|
|
101
|
+
⏳ hardhat compile --config /hardhat/hardhat.default.config.js --network zksync-mainnet: 1:21.556 (m:ss.mmm)
|
|
98
102
|
WARN Issue while reading "/home/runner/work/monorepo-internal/monorepo-internal/.npmrc". Failed to replace env in config: ${NPM_TOKEN}
|
|
99
103
|
|
|
100
104
|
> @layerzerolabs/oft-upgradeable-evm-contracts@0.0.0 compile:tron /home/runner/work/monorepo-internal/monorepo-internal/apps/oft-app/contracts/evm/upgradeable
|
|
@@ -104,14 +108,16 @@ Successfully compiled 76 Solidity files
|
|
|
104
108
|
✅ forge-1.3.6-hardhat-2.26.3
|
|
105
109
|
🔧 hardhat version: 2.26.3
|
|
106
110
|
$ 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:
|
|
111
|
+
(node:71624) [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
112
|
Reparsing as ES module because module syntax was detected. This incurs a performance overhead.
|
|
109
113
|
To eliminate this warning, add "type": "module" to /home/runner/work/monorepo-internal/monorepo-internal/package.json.
|
|
110
114
|
(Use `node --trace-warnings ...` to show where the warning was created)
|
|
111
|
-
|
|
115
|
+
$ docker container create --platform linux/amd64 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3 true
|
|
116
|
+
$ docker container rm fc1e7de0646fa4a8a27f40256900d1a3f61166b6c3ecdf57fb91b625787b8f9a
|
|
117
|
+
✅ 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 (linux/amd64)
|
|
112
118
|
👤 Running container as UID:GID 1001:1001
|
|
113
119
|
🌍 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
|
|
120
|
+
$ docker run --platform linux/amd64 --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
|
|
115
121
|
detected tron network, replacing deployments extension with custom one
|
|
116
122
|
Tron-solc v0.8.23 is unknown version, attempting anyway...
|
|
117
123
|
Compiling contracts with tron solc v0.8.23
|
|
@@ -166,4 +172,4 @@ Warning: Contract code size is 29394 bytes and exceeds 24576 bytes (a limit intr
|
|
|
166
172
|
|
|
167
173
|
|
|
168
174
|
Successfully compiled 76 Solidity files
|
|
169
|
-
⏳ hardhat compile --config /hardhat/hardhat.default.config.js --network tron-mainnet:
|
|
175
|
+
⏳ hardhat compile --config /hardhat/hardhat.default.config.js --network tron-mainnet: 36.690s
|
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.3
|
|
6
6
|
Please consider updating your Solhint package.
|
|
7
7
|
|
|
8
8
|
contracts/extended/alt/OFTBurnMintExtendedRBACAltUpgradeable.sol
|
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 {{.Architecture}} 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:212808) [MODULE_TYPELESS_PACKAGE_JSON] Warning: Module type of file:///home/runner/work/monorepo-internal/monorepo-internal/configs/vm-tooling/values/docker-image-repo.ts is not specified and it doesn't parse as CommonJS.
|
|
9
9
|
Reparsing as ES module because module syntax was detected. This incurs a performance overhead.
|
|
10
10
|
To eliminate this warning, add "type": "module" to /home/runner/work/monorepo-internal/monorepo-internal/package.json.
|
|
11
11
|
(Use `node --trace-warnings ...` to show where the warning was created)
|
|
@@ -13,21 +13,125 @@ 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 57.16s
|
|
17
17
|
Compiler run successful!
|
|
18
18
|
|
|
19
|
+
Ran 32 tests for test/OFTLockUnlockExtendedRBACAlt.t.sol:OFTLockUnlockExtendedRBACAltTest
|
|
20
|
+
[PASS] test_credit() (gas: 91882)
|
|
21
|
+
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 94912, ~: 95314)
|
|
22
|
+
[PASS] test_debit() (gas: 113036)
|
|
23
|
+
[PASS] test_debit_Dust() (gas: 137551)
|
|
24
|
+
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 140315, ~: 140423)
|
|
25
|
+
[PASS] test_debit_PushesFees() (gas: 163342)
|
|
26
|
+
[PASS] test_debit_Revert_SlippageExceeded() (gas: 133828)
|
|
27
|
+
[PASS] test_debit_SmallAmount_DustOnly() (gas: 137513)
|
|
28
|
+
[PASS] test_debit_WithFee() (gas: 163924)
|
|
29
|
+
[PASS] test_debit_WithFee_Dust() (gas: 163430)
|
|
30
|
+
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 163608, ~: 162567)
|
|
31
|
+
[PASS] test_initialize() (gas: 24656)
|
|
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, μ: 198097, ~: 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, μ: 38930, ~: 39012)
|
|
52
|
+
Suite result: ok. 32 passed; 0 failed; 0 skipped; finished in 681.55ms (2.56s CPU time)
|
|
53
|
+
|
|
54
|
+
Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACTest
|
|
55
|
+
[PASS] test_credit() (gas: 89871)
|
|
56
|
+
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93132, ~: 93303)
|
|
57
|
+
[PASS] test_debit() (gas: 98327)
|
|
58
|
+
[PASS] test_debit_Dust() (gas: 139747)
|
|
59
|
+
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 142570, ~: 143461)
|
|
60
|
+
[PASS] test_debit_PushesFees() (gas: 165796)
|
|
61
|
+
[PASS] test_debit_Revert_SlippageExceeded() (gas: 131894)
|
|
62
|
+
[PASS] test_debit_SmallAmount_DustOnly() (gas: 139811)
|
|
63
|
+
[PASS] test_debit_WithFee() (gas: 165270)
|
|
64
|
+
[PASS] test_debit_WithFee_Dust() (gas: 165884)
|
|
65
|
+
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 168865, ~: 171204)
|
|
66
|
+
[PASS] test_initialize() (gas: 24722)
|
|
67
|
+
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
|
|
68
|
+
[PASS] test_pause_unpause() (gas: 130467)
|
|
69
|
+
[PASS] test_quoteOFT() (gas: 70712)
|
|
70
|
+
[PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
|
|
71
|
+
[PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59195)
|
|
72
|
+
[PASS] test_quoteOFT_Paused() (gas: 56570)
|
|
73
|
+
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 185657)
|
|
74
|
+
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 233398)
|
|
75
|
+
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 200499, ~: 200299)
|
|
76
|
+
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84276)
|
|
77
|
+
[PASS] test_rateLimit_Inflow() (gas: 108736)
|
|
78
|
+
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
|
|
79
|
+
[PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 179369)
|
|
80
|
+
[PASS] test_send() (gas: 400518)
|
|
81
|
+
[PASS] test_send_Revert_MsgInspection() (gas: 308871)
|
|
82
|
+
[PASS] test_send_WithFee() (gas: 477338)
|
|
83
|
+
[PASS] test_setFeeDeposit() (gas: 28359)
|
|
84
|
+
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
|
|
85
|
+
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38875, ~: 38967)
|
|
86
|
+
Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 689.27ms (1.49s CPU time)
|
|
87
|
+
|
|
88
|
+
Ran 32 tests for test/OFTBurnMintExtendedRBACAlt.t.sol:OFTBurnMintExtendedRBACAltTest
|
|
89
|
+
[PASS] test_credit() (gas: 89871)
|
|
90
|
+
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93087, ~: 93303)
|
|
91
|
+
[PASS] test_debit() (gas: 98327)
|
|
92
|
+
[PASS] test_debit_Dust() (gas: 141836)
|
|
93
|
+
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 144585, ~: 145461)
|
|
94
|
+
[PASS] test_debit_PushesFees() (gas: 167796)
|
|
95
|
+
[PASS] test_debit_Revert_SlippageExceeded() (gas: 133872)
|
|
96
|
+
[PASS] test_debit_SmallAmount_DustOnly() (gas: 141789)
|
|
97
|
+
[PASS] test_debit_WithFee() (gas: 165270)
|
|
98
|
+
[PASS] test_debit_WithFee_Dust() (gas: 167884)
|
|
99
|
+
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 170401, ~: 173204)
|
|
100
|
+
[PASS] test_initialize() (gas: 24700)
|
|
101
|
+
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
|
|
102
|
+
[PASS] test_pause_unpause() (gas: 132067)
|
|
103
|
+
[PASS] test_quoteOFT() (gas: 70712)
|
|
104
|
+
[PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
|
|
105
|
+
[PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59173)
|
|
106
|
+
[PASS] test_quoteOFT_Paused() (gas: 56570)
|
|
107
|
+
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 187257)
|
|
108
|
+
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 235398)
|
|
109
|
+
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 202476, ~: 202299)
|
|
110
|
+
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84254)
|
|
111
|
+
[PASS] test_rateLimit_Inflow() (gas: 108824)
|
|
112
|
+
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 159696)
|
|
113
|
+
[PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 181347)
|
|
114
|
+
[PASS] test_send() (gas: 421733)
|
|
115
|
+
[PASS] test_send_Revert_MsgInspection() (gas: 310849)
|
|
116
|
+
[PASS] test_send_Revert_OnlyAltToken() (gas: 198819)
|
|
117
|
+
[PASS] test_send_WithFee() (gas: 493959)
|
|
118
|
+
[PASS] test_setFeeDeposit() (gas: 28445)
|
|
119
|
+
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
|
|
120
|
+
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38966, ~: 39034)
|
|
121
|
+
Suite result: ok. 32 passed; 0 failed; 0 skipped; finished in 745.42ms (1.53s CPU time)
|
|
122
|
+
|
|
19
123
|
Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACRedeemIssueTest
|
|
20
124
|
[PASS] test_credit() (gas: 89907)
|
|
21
|
-
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ:
|
|
125
|
+
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93255, ~: 93339)
|
|
22
126
|
[PASS] test_debit() (gas: 98305)
|
|
23
127
|
[PASS] test_debit_Dust() (gas: 139763)
|
|
24
|
-
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ:
|
|
128
|
+
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 142593, ~: 143477)
|
|
25
129
|
[PASS] test_debit_PushesFees() (gas: 165812)
|
|
26
130
|
[PASS] test_debit_Revert_SlippageExceeded() (gas: 131894)
|
|
27
131
|
[PASS] test_debit_SmallAmount_DustOnly() (gas: 139827)
|
|
28
132
|
[PASS] test_debit_WithFee() (gas: 165286)
|
|
29
133
|
[PASS] test_debit_WithFee_Dust() (gas: 165900)
|
|
30
|
-
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ:
|
|
134
|
+
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 168799, ~: 171220)
|
|
31
135
|
[PASS] test_initialize() (gas: 24722)
|
|
32
136
|
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
|
|
33
137
|
[PASS] test_pause_unpause() (gas: 130445)
|
|
@@ -37,7 +141,7 @@ Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACRedee
|
|
|
37
141
|
[PASS] test_quoteOFT_Paused() (gas: 56570)
|
|
38
142
|
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 185614)
|
|
39
143
|
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 233430)
|
|
40
|
-
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ:
|
|
144
|
+
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 200478, ~: 200315)
|
|
41
145
|
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84276)
|
|
42
146
|
[PASS] test_rateLimit_Inflow() (gas: 108772)
|
|
43
147
|
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
|
|
@@ -47,21 +151,55 @@ Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACRedee
|
|
|
47
151
|
[PASS] test_send_WithFee() (gas: 477358)
|
|
48
152
|
[PASS] test_setFeeDeposit() (gas: 28359)
|
|
49
153
|
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
|
|
50
|
-
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ:
|
|
51
|
-
Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in
|
|
154
|
+
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38885, ~: 38967)
|
|
155
|
+
Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 864.07ms (1.96s CPU time)
|
|
156
|
+
|
|
157
|
+
Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACCrosschainTest
|
|
158
|
+
[PASS] test_credit() (gas: 89874)
|
|
159
|
+
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93103, ~: 93306)
|
|
160
|
+
[PASS] test_debit() (gas: 98332)
|
|
161
|
+
[PASS] test_debit_Dust() (gas: 139763)
|
|
162
|
+
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 142572, ~: 143477)
|
|
163
|
+
[PASS] test_debit_PushesFees() (gas: 165812)
|
|
164
|
+
[PASS] test_debit_Revert_SlippageExceeded() (gas: 131894)
|
|
165
|
+
[PASS] test_debit_SmallAmount_DustOnly() (gas: 139827)
|
|
166
|
+
[PASS] test_debit_WithFee() (gas: 165286)
|
|
167
|
+
[PASS] test_debit_WithFee_Dust() (gas: 165900)
|
|
168
|
+
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 168850, ~: 171220)
|
|
169
|
+
[PASS] test_initialize() (gas: 24722)
|
|
170
|
+
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
|
|
171
|
+
[PASS] test_pause_unpause() (gas: 130472)
|
|
172
|
+
[PASS] test_quoteOFT() (gas: 70712)
|
|
173
|
+
[PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
|
|
174
|
+
[PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59195)
|
|
175
|
+
[PASS] test_quoteOFT_Paused() (gas: 56570)
|
|
176
|
+
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 185667)
|
|
177
|
+
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 233430)
|
|
178
|
+
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 200526, ~: 200315)
|
|
179
|
+
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84276)
|
|
180
|
+
[PASS] test_rateLimit_Inflow() (gas: 108739)
|
|
181
|
+
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
|
|
182
|
+
[PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 179385)
|
|
183
|
+
[PASS] test_send() (gas: 400527)
|
|
184
|
+
[PASS] test_send_Revert_MsgInspection() (gas: 308880)
|
|
185
|
+
[PASS] test_send_WithFee() (gas: 477358)
|
|
186
|
+
[PASS] test_setFeeDeposit() (gas: 28359)
|
|
187
|
+
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
|
|
188
|
+
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38909, ~: 38967)
|
|
189
|
+
Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 864.25ms (2.03s CPU time)
|
|
52
190
|
|
|
53
191
|
Ran 31 tests for test/OFTLockUnlockExtendedRBAC.t.sol:OFTLockUnlockExtendedRBACTest
|
|
54
192
|
[PASS] test_credit() (gas: 89882)
|
|
55
|
-
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ:
|
|
193
|
+
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93254, ~: 93314)
|
|
56
194
|
[PASS] test_debit() (gas: 113036)
|
|
57
195
|
[PASS] test_debit_Dust() (gas: 135880)
|
|
58
|
-
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ:
|
|
196
|
+
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 138300, ~: 139029)
|
|
59
197
|
[PASS] test_debit_PushesFees() (gas: 161342)
|
|
60
198
|
[PASS] test_debit_Revert_SlippageExceeded() (gas: 131850)
|
|
61
199
|
[PASS] test_debit_SmallAmount_DustOnly() (gas: 135931)
|
|
62
200
|
[PASS] test_debit_WithFee() (gas: 163924)
|
|
63
201
|
[PASS] test_debit_WithFee_Dust() (gas: 161430)
|
|
64
|
-
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ:
|
|
202
|
+
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 161289, ~: 160967)
|
|
65
203
|
[PASS] test_initialize() (gas: 24678)
|
|
66
204
|
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92822)
|
|
67
205
|
[PASS] test_pause_unpause() (gas: 143924)
|
|
@@ -71,7 +209,7 @@ Ran 31 tests for test/OFTLockUnlockExtendedRBAC.t.sol:OFTLockUnlockExtendedRBACT
|
|
|
71
209
|
[PASS] test_quoteOFT_Paused() (gas: 56637)
|
|
72
210
|
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 198848)
|
|
73
211
|
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 241184)
|
|
74
|
-
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ:
|
|
212
|
+
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 196102, ~: 195912)
|
|
75
213
|
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84321)
|
|
76
214
|
[PASS] test_rateLimit_Inflow() (gas: 130622)
|
|
77
215
|
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157652)
|
|
@@ -81,23 +219,58 @@ Ran 31 tests for test/OFTLockUnlockExtendedRBAC.t.sol:OFTLockUnlockExtendedRBACT
|
|
|
81
219
|
[PASS] test_send_WithFee() (gas: 474453)
|
|
82
220
|
[PASS] test_setFeeDeposit() (gas: 28337)
|
|
83
221
|
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22583)
|
|
84
|
-
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ:
|
|
85
|
-
Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in
|
|
222
|
+
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38839, ~: 38945)
|
|
223
|
+
Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 864.18ms (1.58s CPU time)
|
|
224
|
+
|
|
225
|
+
Ran 32 tests for test/OFTBurnSelfMintExtendedRBAC.t.sol:OFTBurnSelfMintExtendedRBACTest
|
|
226
|
+
[PASS] test_credit() (gas: 89873)
|
|
227
|
+
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 92900, ~: 93305)
|
|
228
|
+
[PASS] test_debit() (gas: 120710)
|
|
229
|
+
[PASS] test_debit_Dust() (gas: 143616)
|
|
230
|
+
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 146307, ~: 146486)
|
|
231
|
+
[PASS] test_debit_PushesFees() (gas: 164384)
|
|
232
|
+
[PASS] test_debit_Revert_SlippageExceeded() (gas: 131872)
|
|
233
|
+
[PASS] test_debit_SmallAmount_DustOnly() (gas: 143579)
|
|
234
|
+
[PASS] test_debit_TokensTransferredToSelfThenBurned() (gas: 122517)
|
|
235
|
+
[PASS] test_debit_WithFee() (gas: 166449)
|
|
236
|
+
[PASS] test_debit_WithFee_Dust() (gas: 164455)
|
|
237
|
+
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 166846, ~: 168645)
|
|
238
|
+
[PASS] test_initialize() (gas: 24700)
|
|
239
|
+
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
|
|
240
|
+
[PASS] test_pause_unpause() (gas: 151598)
|
|
241
|
+
[PASS] test_quoteOFT() (gas: 70712)
|
|
242
|
+
[PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
|
|
243
|
+
[PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59173)
|
|
244
|
+
[PASS] test_quoteOFT_Paused() (gas: 56570)
|
|
245
|
+
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 242240)
|
|
246
|
+
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 268746)
|
|
247
|
+
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 192048, ~: 191921)
|
|
248
|
+
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84254)
|
|
249
|
+
[PASS] test_rateLimit_Inflow() (gas: 108738)
|
|
250
|
+
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
|
|
251
|
+
[PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 175225)
|
|
252
|
+
[PASS] test_send() (gas: 387136)
|
|
253
|
+
[PASS] test_send_Revert_MsgInspection() (gas: 335267)
|
|
254
|
+
[PASS] test_send_WithFee() (gas: 462592)
|
|
255
|
+
[PASS] test_setFeeDeposit() (gas: 28445)
|
|
256
|
+
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
|
|
257
|
+
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38952, ~: 39034)
|
|
258
|
+
Suite result: ok. 32 passed; 0 failed; 0 skipped; finished in 871.36ms (2.63s CPU time)
|
|
86
259
|
|
|
87
260
|
Ran 39 tests for test/OFTNativeExtendedRBAC.t.sol:OFTNativeExtendedRBACTest
|
|
88
261
|
[PASS] test_approvalRequired() (gas: 13426)
|
|
89
262
|
[PASS] test_credit() (gas: 62369)
|
|
90
|
-
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ:
|
|
263
|
+
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 65834, ~: 65954)
|
|
91
264
|
[PASS] test_credit_Revert_CreditFailed() (gas: 91478)
|
|
92
265
|
[PASS] test_debit() (gas: 36831)
|
|
93
266
|
[PASS] test_debit_Dust() (gas: 76272)
|
|
94
|
-
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ:
|
|
267
|
+
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 79440, ~: 79886)
|
|
95
268
|
[PASS] test_debit_PushesFees() (gas: 101339)
|
|
96
269
|
[PASS] test_debit_Revert_SlippageExceeded() (gas: 54229)
|
|
97
270
|
[PASS] test_debit_SmallAmount_DustOnly() (gas: 76226)
|
|
98
271
|
[PASS] test_debit_WithFee() (gas: 101145)
|
|
99
272
|
[PASS] test_debit_WithFee_Dust() (gas: 102376)
|
|
100
|
-
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ:
|
|
273
|
+
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 105880, ~: 107585)
|
|
101
274
|
[PASS] test_initialize() (gas: 22406)
|
|
102
275
|
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92778)
|
|
103
276
|
[PASS] test_pause_unpause() (gas: 61117)
|
|
@@ -107,7 +280,7 @@ Ran 39 tests for test/OFTNativeExtendedRBAC.t.sol:OFTNativeExtendedRBACTest
|
|
|
107
280
|
[PASS] test_quoteOFT_Paused() (gas: 56703)
|
|
108
281
|
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 97744)
|
|
109
282
|
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 160139)
|
|
110
|
-
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ:
|
|
283
|
+
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 137886, ~: 137703)
|
|
111
284
|
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84387)
|
|
112
285
|
[PASS] test_rateLimit_Inflow() (gas: 87713)
|
|
113
286
|
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 80123)
|
|
@@ -122,162 +295,23 @@ Ran 39 tests for test/OFTNativeExtendedRBAC.t.sol:OFTNativeExtendedRBACTest
|
|
|
122
295
|
[PASS] test_send_WithFee() (gas: 415240)
|
|
123
296
|
[PASS] test_setFeeDeposit() (gas: 28425)
|
|
124
297
|
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22627)
|
|
125
|
-
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ:
|
|
298
|
+
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38919, ~: 39011)
|
|
126
299
|
[PASS] test_token() (gas: 13483)
|
|
127
|
-
Suite result: ok. 39 passed; 0 failed; 0 skipped; finished in
|
|
128
|
-
|
|
129
|
-
Ran 32 tests for test/OFTLockUnlockExtendedRBACAlt.t.sol:OFTLockUnlockExtendedRBACAltTest
|
|
130
|
-
[PASS] test_credit() (gas: 91882)
|
|
131
|
-
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 95046, ~: 95314)
|
|
132
|
-
[PASS] test_debit() (gas: 113036)
|
|
133
|
-
[PASS] test_debit_Dust() (gas: 137551)
|
|
134
|
-
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 139974, ~: 141029)
|
|
135
|
-
[PASS] test_debit_PushesFees() (gas: 163342)
|
|
136
|
-
[PASS] test_debit_Revert_SlippageExceeded() (gas: 133828)
|
|
137
|
-
[PASS] test_debit_SmallAmount_DustOnly() (gas: 137513)
|
|
138
|
-
[PASS] test_debit_WithFee() (gas: 163924)
|
|
139
|
-
[PASS] test_debit_WithFee_Dust() (gas: 163430)
|
|
140
|
-
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 163803, ~: 162567)
|
|
141
|
-
[PASS] test_initialize() (gas: 24656)
|
|
142
|
-
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92822)
|
|
143
|
-
[PASS] test_pause_unpause() (gas: 145524)
|
|
144
|
-
[PASS] test_quoteOFT() (gas: 70757)
|
|
145
|
-
[PASS] test_quoteOFT_GloballyDisabled() (gas: 80605)
|
|
146
|
-
[PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59240)
|
|
147
|
-
[PASS] test_quoteOFT_Paused() (gas: 56637)
|
|
148
|
-
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 200448)
|
|
149
|
-
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 242784)
|
|
150
|
-
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 198101, ~: 197912)
|
|
151
|
-
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84299)
|
|
152
|
-
[PASS] test_rateLimit_Inflow() (gas: 132710)
|
|
153
|
-
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 159652)
|
|
154
|
-
[PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 176893)
|
|
155
|
-
[PASS] test_send() (gas: 465637)
|
|
156
|
-
[PASS] test_send_Revert_MsgInspection() (gas: 327696)
|
|
157
|
-
[PASS] test_send_Revert_OnlyAltToken() (gas: 241148)
|
|
158
|
-
[PASS] test_send_WithFee() (gas: 516566)
|
|
159
|
-
[PASS] test_setFeeDeposit() (gas: 28423)
|
|
160
|
-
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22583)
|
|
161
|
-
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38872, ~: 39012)
|
|
162
|
-
Suite result: ok. 32 passed; 0 failed; 0 skipped; finished in 1.32s (3.44s CPU time)
|
|
163
|
-
|
|
164
|
-
Ran 32 tests for test/OFTBurnSelfMintExtendedRBAC.t.sol:OFTBurnSelfMintExtendedRBACTest
|
|
165
|
-
[PASS] test_credit() (gas: 89873)
|
|
166
|
-
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93116, ~: 93305)
|
|
167
|
-
[PASS] test_debit() (gas: 120710)
|
|
168
|
-
[PASS] test_debit_Dust() (gas: 143616)
|
|
169
|
-
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 145540, ~: 146486)
|
|
170
|
-
[PASS] test_debit_PushesFees() (gas: 164384)
|
|
171
|
-
[PASS] test_debit_Revert_SlippageExceeded() (gas: 131872)
|
|
172
|
-
[PASS] test_debit_SmallAmount_DustOnly() (gas: 143579)
|
|
173
|
-
[PASS] test_debit_TokensTransferredToSelfThenBurned() (gas: 122517)
|
|
174
|
-
[PASS] test_debit_WithFee() (gas: 166449)
|
|
175
|
-
[PASS] test_debit_WithFee_Dust() (gas: 164455)
|
|
176
|
-
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 166785, ~: 168645)
|
|
177
|
-
[PASS] test_initialize() (gas: 24700)
|
|
178
|
-
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
|
|
179
|
-
[PASS] test_pause_unpause() (gas: 151598)
|
|
180
|
-
[PASS] test_quoteOFT() (gas: 70712)
|
|
181
|
-
[PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
|
|
182
|
-
[PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59173)
|
|
183
|
-
[PASS] test_quoteOFT_Paused() (gas: 56570)
|
|
184
|
-
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 242240)
|
|
185
|
-
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 268746)
|
|
186
|
-
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 192043, ~: 191921)
|
|
187
|
-
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84254)
|
|
188
|
-
[PASS] test_rateLimit_Inflow() (gas: 108738)
|
|
189
|
-
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
|
|
190
|
-
[PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 175225)
|
|
191
|
-
[PASS] test_send() (gas: 387136)
|
|
192
|
-
[PASS] test_send_Revert_MsgInspection() (gas: 335267)
|
|
193
|
-
[PASS] test_send_WithFee() (gas: 462592)
|
|
194
|
-
[PASS] test_setFeeDeposit() (gas: 28445)
|
|
195
|
-
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
|
|
196
|
-
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38935, ~: 39034)
|
|
197
|
-
Suite result: ok. 32 passed; 0 failed; 0 skipped; finished in 1.50s (3.89s CPU time)
|
|
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)
|
|
233
|
-
|
|
234
|
-
Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACTest
|
|
235
|
-
[PASS] test_credit() (gas: 89871)
|
|
236
|
-
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 92992, ~: 93303)
|
|
237
|
-
[PASS] test_debit() (gas: 98327)
|
|
238
|
-
[PASS] test_debit_Dust() (gas: 139747)
|
|
239
|
-
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 142759, ~: 143461)
|
|
240
|
-
[PASS] test_debit_PushesFees() (gas: 165796)
|
|
241
|
-
[PASS] test_debit_Revert_SlippageExceeded() (gas: 131894)
|
|
242
|
-
[PASS] test_debit_SmallAmount_DustOnly() (gas: 139811)
|
|
243
|
-
[PASS] test_debit_WithFee() (gas: 165270)
|
|
244
|
-
[PASS] test_debit_WithFee_Dust() (gas: 165884)
|
|
245
|
-
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 168596, ~: 171204)
|
|
246
|
-
[PASS] test_initialize() (gas: 24722)
|
|
247
|
-
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
|
|
248
|
-
[PASS] test_pause_unpause() (gas: 130467)
|
|
249
|
-
[PASS] test_quoteOFT() (gas: 70712)
|
|
250
|
-
[PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
|
|
251
|
-
[PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59195)
|
|
252
|
-
[PASS] test_quoteOFT_Paused() (gas: 56570)
|
|
253
|
-
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 185657)
|
|
254
|
-
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 233398)
|
|
255
|
-
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 200479, ~: 200299)
|
|
256
|
-
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84276)
|
|
257
|
-
[PASS] test_rateLimit_Inflow() (gas: 108736)
|
|
258
|
-
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
|
|
259
|
-
[PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 179369)
|
|
260
|
-
[PASS] test_send() (gas: 400518)
|
|
261
|
-
[PASS] test_send_Revert_MsgInspection() (gas: 308871)
|
|
262
|
-
[PASS] test_send_WithFee() (gas: 477338)
|
|
263
|
-
[PASS] test_setFeeDeposit() (gas: 28359)
|
|
264
|
-
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
|
|
265
|
-
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38890, ~: 38967)
|
|
266
|
-
Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 1.51s (4.73s CPU time)
|
|
300
|
+
Suite result: ok. 39 passed; 0 failed; 0 skipped; finished in 871.28ms (1.56s CPU time)
|
|
267
301
|
|
|
268
302
|
Ran 33 tests for test/OFTBurnSelfMintExtendedRBACAlt.t.sol:OFTBurnSelfMintExtendedRBACAltTest
|
|
269
303
|
[PASS] test_credit() (gas: 89873)
|
|
270
|
-
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ:
|
|
304
|
+
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93035, ~: 93305)
|
|
271
305
|
[PASS] test_debit() (gas: 120710)
|
|
272
306
|
[PASS] test_debit_Dust() (gas: 145216)
|
|
273
|
-
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ:
|
|
307
|
+
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 147243, ~: 148086)
|
|
274
308
|
[PASS] test_debit_PushesFees() (gas: 165984)
|
|
275
309
|
[PASS] test_debit_Revert_SlippageExceeded() (gas: 133872)
|
|
276
310
|
[PASS] test_debit_SmallAmount_DustOnly() (gas: 145179)
|
|
277
311
|
[PASS] test_debit_TokensTransferredToSelfThenBurned() (gas: 122500)
|
|
278
312
|
[PASS] test_debit_WithFee() (gas: 166449)
|
|
279
313
|
[PASS] test_debit_WithFee_Dust() (gas: 166055)
|
|
280
|
-
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ:
|
|
314
|
+
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 168282, ~: 170243)
|
|
281
315
|
[PASS] test_initialize() (gas: 24700)
|
|
282
316
|
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
|
|
283
317
|
[PASS] test_pause_unpause() (gas: 153198)
|
|
@@ -287,7 +321,7 @@ Ran 33 tests for test/OFTBurnSelfMintExtendedRBACAlt.t.sol:OFTBurnSelfMintExtend
|
|
|
287
321
|
[PASS] test_quoteOFT_Paused() (gas: 56570)
|
|
288
322
|
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 243840)
|
|
289
323
|
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 270346)
|
|
290
|
-
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ:
|
|
324
|
+
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 193679, ~: 193521)
|
|
291
325
|
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84254)
|
|
292
326
|
[PASS] test_rateLimit_Inflow() (gas: 108826)
|
|
293
327
|
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 159696)
|
|
@@ -298,42 +332,8 @@ Ran 33 tests for test/OFTBurnSelfMintExtendedRBACAlt.t.sol:OFTBurnSelfMintExtend
|
|
|
298
332
|
[PASS] test_send_WithFee() (gas: 504694)
|
|
299
333
|
[PASS] test_setFeeDeposit() (gas: 28445)
|
|
300
334
|
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
|
|
301
|
-
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ:
|
|
302
|
-
Suite result: ok. 33 passed; 0 failed; 0 skipped; finished in
|
|
303
|
-
|
|
304
|
-
Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACCrosschainTest
|
|
305
|
-
[PASS] test_credit() (gas: 89874)
|
|
306
|
-
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93220, ~: 93306)
|
|
307
|
-
[PASS] test_debit() (gas: 98332)
|
|
308
|
-
[PASS] test_debit_Dust() (gas: 139763)
|
|
309
|
-
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 142484, ~: 143477)
|
|
310
|
-
[PASS] test_debit_PushesFees() (gas: 165812)
|
|
311
|
-
[PASS] test_debit_Revert_SlippageExceeded() (gas: 131894)
|
|
312
|
-
[PASS] test_debit_SmallAmount_DustOnly() (gas: 139827)
|
|
313
|
-
[PASS] test_debit_WithFee() (gas: 165286)
|
|
314
|
-
[PASS] test_debit_WithFee_Dust() (gas: 165900)
|
|
315
|
-
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 168972, ~: 171220)
|
|
316
|
-
[PASS] test_initialize() (gas: 24722)
|
|
317
|
-
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
|
|
318
|
-
[PASS] test_pause_unpause() (gas: 130472)
|
|
319
|
-
[PASS] test_quoteOFT() (gas: 70712)
|
|
320
|
-
[PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
|
|
321
|
-
[PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59195)
|
|
322
|
-
[PASS] test_quoteOFT_Paused() (gas: 56570)
|
|
323
|
-
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 185667)
|
|
324
|
-
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 233430)
|
|
325
|
-
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 200498, ~: 200315)
|
|
326
|
-
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84276)
|
|
327
|
-
[PASS] test_rateLimit_Inflow() (gas: 108739)
|
|
328
|
-
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
|
|
329
|
-
[PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 179385)
|
|
330
|
-
[PASS] test_send() (gas: 400527)
|
|
331
|
-
[PASS] test_send_Revert_MsgInspection() (gas: 308880)
|
|
332
|
-
[PASS] test_send_WithFee() (gas: 477358)
|
|
333
|
-
[PASS] test_setFeeDeposit() (gas: 28359)
|
|
334
|
-
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
|
|
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)
|
|
335
|
+
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38942, ~: 39034)
|
|
336
|
+
Suite result: ok. 33 passed; 0 failed; 0 skipped; finished in 895.70ms (2.35s CPU time)
|
|
337
337
|
|
|
338
|
-
Ran 9 test suites in 1.
|
|
339
|
-
⏳ forge test: 1:
|
|
338
|
+
Ran 9 test suites in 1.13s (7.35s CPU time): 292 tests passed, 0 failed, 0 skipped (292 total tests)
|
|
339
|
+
⏳ forge test: 1:02.391 (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.108",
|
|
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-upgradeable-evm-contracts": "0.2.
|
|
18
|
-
"@layerzerolabs/
|
|
19
|
-
"@layerzerolabs/
|
|
20
|
-
"@layerzerolabs/
|
|
21
|
-
"@layerzerolabs/
|
|
22
|
-
"@layerzerolabs/tsup-configuration": "0.2.
|
|
23
|
-
"@layerzerolabs/
|
|
24
|
-
"@layerzerolabs/
|
|
25
|
-
"@layerzerolabs/
|
|
26
|
-
"@layerzerolabs/
|
|
17
|
+
"@layerzerolabs/oapp-upgradeable-evm-contracts": "0.2.108",
|
|
18
|
+
"@layerzerolabs/solhint-configuration": "0.2.108",
|
|
19
|
+
"@layerzerolabs/oft-evm-contracts": "0.2.108",
|
|
20
|
+
"@layerzerolabs/test-utils-evm-contracts": "0.2.108",
|
|
21
|
+
"@layerzerolabs/oapp-evm-contracts": "0.2.108",
|
|
22
|
+
"@layerzerolabs/tsup-configuration": "0.2.108",
|
|
23
|
+
"@layerzerolabs/utils-evm-contracts": "0.2.108",
|
|
24
|
+
"@layerzerolabs/typescript-configuration": "0.2.108",
|
|
25
|
+
"@layerzerolabs/vm-tooling-evm": "0.2.108",
|
|
26
|
+
"@layerzerolabs/utils-upgradeable-evm-contracts": "0.2.108"
|
|
27
27
|
},
|
|
28
28
|
"publishConfig": {
|
|
29
29
|
"access": "public",
|