@layerzerolabs/oft-upgradeable-evm-contracts 0.2.74 → 0.2.75
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 +7 -7
- package/.turbo/turbo-test.log +218 -217
- package/package.json +12 -12
package/.turbo/turbo-build.log
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
✅ forge-1.3.6-hardhat-2.26.3
|
|
13
13
|
🔧 hardhat version: 2.26.3
|
|
14
14
|
$ docker image inspect --format {{.Id}} 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3
|
|
15
|
-
(node:
|
|
15
|
+
(node:19572) [MODULE_TYPELESS_PACKAGE_JSON] Warning: Module type of file:///home/runner/work/monorepo-internal/monorepo-internal/configs/vm-tooling/values/docker-image-repo.ts is not specified and it doesn't parse as CommonJS.
|
|
16
16
|
Reparsing as ES module because module syntax was detected. This incurs a performance overhead.
|
|
17
17
|
To eliminate this warning, add "type": "module" to /home/runner/work/monorepo-internal/monorepo-internal/package.json.
|
|
18
18
|
(Use `node --trace-warnings ...` to show where the warning was created)
|
|
@@ -70,7 +70,7 @@ Warning: Contract code size is 27524 bytes and exceeds 24576 bytes (a limit intr
|
|
|
70
70
|
|
|
71
71
|
|
|
72
72
|
Successfully compiled 76 Solidity files
|
|
73
|
-
⏳ hardhat compile --config /hardhat/hardhat.default.config.js:
|
|
73
|
+
⏳ hardhat compile --config /hardhat/hardhat.default.config.js: 9.808s
|
|
74
74
|
WARN Issue while reading "/home/runner/work/monorepo-internal/monorepo-internal/.npmrc". Failed to replace env in config: ${NPM_TOKEN}
|
|
75
75
|
|
|
76
76
|
> @layerzerolabs/oft-upgradeable-evm-contracts@0.0.0 compile:zksync /home/runner/work/monorepo-internal/monorepo-internal/apps/oft-app/contracts/evm/upgradeable
|
|
@@ -80,7 +80,7 @@ Successfully compiled 76 Solidity files
|
|
|
80
80
|
✅ forge-1.3.6-hardhat-2.26.3
|
|
81
81
|
🔧 hardhat version: 2.26.3
|
|
82
82
|
$ docker image inspect --format {{.Id}} 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3
|
|
83
|
-
(node:
|
|
83
|
+
(node:20144) [MODULE_TYPELESS_PACKAGE_JSON] Warning: Module type of file:///home/runner/work/monorepo-internal/monorepo-internal/configs/vm-tooling/values/docker-image-repo.ts is not specified and it doesn't parse as CommonJS.
|
|
84
84
|
Reparsing as ES module because module syntax was detected. This incurs a performance overhead.
|
|
85
85
|
To eliminate this warning, add "type": "module" to /home/runner/work/monorepo-internal/monorepo-internal/package.json.
|
|
86
86
|
(Use `node --trace-warnings ...` to show where the warning was created)
|
|
@@ -92,7 +92,7 @@ The zksolc compiler version in your Hardhat config file (1.3.22) is not the late
|
|
|
92
92
|
Compiling contracts for ZKsync Era with zksolc v1.3.22 and zkvm-solc v0.8.23-1.0.1
|
|
93
93
|
Compiling 76 Solidity files
|
|
94
94
|
Successfully compiled 76 Solidity files
|
|
95
|
-
⏳ hardhat compile --config /hardhat/hardhat.default.config.js --network zksync-mainnet:
|
|
95
|
+
⏳ hardhat compile --config /hardhat/hardhat.default.config.js --network zksync-mainnet: 1:16.311 (m:ss.mmm)
|
|
96
96
|
WARN Issue while reading "/home/runner/work/monorepo-internal/monorepo-internal/.npmrc". Failed to replace env in config: ${NPM_TOKEN}
|
|
97
97
|
|
|
98
98
|
> @layerzerolabs/oft-upgradeable-evm-contracts@0.0.0 compile:tron /home/runner/work/monorepo-internal/monorepo-internal/apps/oft-app/contracts/evm/upgradeable
|
|
@@ -102,7 +102,7 @@ Successfully compiled 76 Solidity files
|
|
|
102
102
|
✅ forge-1.3.6-hardhat-2.26.3
|
|
103
103
|
🔧 hardhat version: 2.26.3
|
|
104
104
|
$ docker image inspect --format {{.Id}} 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3
|
|
105
|
-
(node:
|
|
105
|
+
(node:28541) [MODULE_TYPELESS_PACKAGE_JSON] Warning: Module type of file:///home/runner/work/monorepo-internal/monorepo-internal/configs/vm-tooling/values/docker-image-repo.ts is not specified and it doesn't parse as CommonJS.
|
|
106
106
|
Reparsing as ES module because module syntax was detected. This incurs a performance overhead.
|
|
107
107
|
To eliminate this warning, add "type": "module" to /home/runner/work/monorepo-internal/monorepo-internal/package.json.
|
|
108
108
|
(Use `node --trace-warnings ...` to show where the warning was created)
|
|
@@ -110,8 +110,8 @@ To eliminate this warning, add "type": "module" to /home/runner/work/monorepo-in
|
|
|
110
110
|
👤 Running container as UID:GID 1001:1001
|
|
111
111
|
$ 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 hardhat compile --config /hardhat/hardhat.default.config.js --network tron-mainnet
|
|
112
112
|
detected tron network, replacing deployments extension with custom one
|
|
113
|
-
Tron-solc v0.8.23 is unknown version, attempting anyway...
|
|
114
113
|
Compiling contracts with tron solc v0.8.23
|
|
114
|
+
Tron-solc v0.8.23 is unknown version, attempting anyway...
|
|
115
115
|
Compiling 76 Solidity files
|
|
116
116
|
Warning: Contract code size is 29971 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.
|
|
117
117
|
--> contracts/extended/OFTBurnMintExtendedRBACUpgradeable.sol:28:1:
|
|
@@ -163,4 +163,4 @@ Warning: Contract code size is 29394 bytes and exceeds 24576 bytes (a limit intr
|
|
|
163
163
|
|
|
164
164
|
|
|
165
165
|
Successfully compiled 76 Solidity files
|
|
166
|
-
⏳ hardhat compile --config /hardhat/hardhat.default.config.js --network tron-mainnet:
|
|
166
|
+
⏳ hardhat compile --config /hardhat/hardhat.default.config.js --network tron-mainnet: 43.525s
|
package/.turbo/turbo-test.log
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
✅ forge-1.3.6-hardhat-2.26.3
|
|
6
6
|
🔧 forge version: 1.3.6
|
|
7
7
|
$ docker image inspect --format {{.Id}} 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3
|
|
8
|
-
(node:
|
|
8
|
+
(node:67664) [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)
|
|
@@ -18,7 +18,7 @@ eef7c391911c: Already exists
|
|
|
18
18
|
cc2ecf4065b7: Already exists
|
|
19
19
|
5760fdd70374: Already exists
|
|
20
20
|
c70db14240a1: Already exists
|
|
21
|
-
0cb2c6965bde:
|
|
21
|
+
0cb2c6965bde: Pulling fs layer
|
|
22
22
|
885bca26f927: Pulling fs layer
|
|
23
23
|
8e167e77288f: Pulling fs layer
|
|
24
24
|
45d43cc973ba: Pulling fs layer
|
|
@@ -28,16 +28,17 @@ f2fb700979ad: Pulling fs layer
|
|
|
28
28
|
597168d5c38e: Pulling fs layer
|
|
29
29
|
e431adaf232f: Pulling fs layer
|
|
30
30
|
36e15e3f2788: Pulling fs layer
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
45d43cc973ba: Download complete
|
|
32
|
+
8e167e77288f: Download complete
|
|
33
|
+
36e15e3f2788: Waiting
|
|
34
|
+
44c09156221f: Download complete
|
|
33
35
|
2a1ced882ba9: Download complete
|
|
34
36
|
597168d5c38e: Download complete
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
37
|
+
f2fb700979ad: Download complete
|
|
38
|
+
36e15e3f2788: Download complete
|
|
39
|
+
0cb2c6965bde: Pull complete
|
|
38
40
|
e431adaf232f: Verifying Checksum
|
|
39
41
|
e431adaf232f: Download complete
|
|
40
|
-
885bca26f927: Verifying Checksum
|
|
41
42
|
885bca26f927: Download complete
|
|
42
43
|
885bca26f927: Pull complete
|
|
43
44
|
8e167e77288f: Pull complete
|
|
@@ -49,62 +50,61 @@ f2fb700979ad: Pull complete
|
|
|
49
50
|
e431adaf232f: Pull complete
|
|
50
51
|
36e15e3f2788: Pull complete
|
|
51
52
|
Digest: sha256:08b858b586759ec59f4df44c0bc5eac9f856a1eb32b6ce37f79f31a20a89ed52
|
|
52
|
-
Status:
|
|
53
|
+
Status: Image is up to date for 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3
|
|
53
54
|
438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3
|
|
54
55
|
✅ Successfully pulled: 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3
|
|
55
56
|
👤 Running container as UID:GID 1001:1001
|
|
56
57
|
$ 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
|
|
57
58
|
Compiling 185 files with Solc 0.8.22
|
|
58
|
-
Solc 0.8.22 finished in 56.
|
|
59
|
+
Solc 0.8.22 finished in 56.02s
|
|
59
60
|
Compiler run successful!
|
|
60
61
|
|
|
61
|
-
Ran
|
|
62
|
-
[PASS] test_credit() (gas:
|
|
63
|
-
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ:
|
|
64
|
-
[PASS] test_debit() (gas:
|
|
65
|
-
[PASS] test_debit_Dust() (gas:
|
|
66
|
-
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ:
|
|
67
|
-
[PASS] test_debit_PushesFees() (gas:
|
|
68
|
-
[PASS] test_debit_Revert_SlippageExceeded() (gas:
|
|
69
|
-
[PASS] test_debit_SmallAmount_DustOnly() (gas:
|
|
70
|
-
[PASS] test_debit_WithFee() (gas:
|
|
71
|
-
[PASS] test_debit_WithFee_Dust() (gas:
|
|
72
|
-
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ:
|
|
73
|
-
[PASS] test_initialize() (gas:
|
|
74
|
-
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas:
|
|
75
|
-
[PASS] test_pause_unpause() (gas:
|
|
76
|
-
[PASS] test_quoteOFT() (gas:
|
|
77
|
-
[PASS] test_quoteOFT_GloballyDisabled() (gas:
|
|
78
|
-
[PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas:
|
|
79
|
-
[PASS] test_quoteOFT_Paused() (gas:
|
|
80
|
-
[PASS] test_quoteOFT_RateLimiterUsage() (gas:
|
|
81
|
-
[PASS] test_quoteOFT_RateLimiterWithFee() (gas:
|
|
82
|
-
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ:
|
|
83
|
-
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas:
|
|
84
|
-
[PASS] test_rateLimit_Inflow() (gas:
|
|
85
|
-
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas:
|
|
86
|
-
[PASS] test_rateLimit_Outflow_WithFee_Success() (gas:
|
|
87
|
-
[PASS] test_send() (gas:
|
|
88
|
-
[PASS] test_send_Revert_MsgInspection() (gas:
|
|
89
|
-
[PASS]
|
|
90
|
-
[PASS]
|
|
91
|
-
[PASS]
|
|
92
|
-
[PASS]
|
|
93
|
-
|
|
94
|
-
Suite result: ok. 32 passed; 0 failed; 0 skipped; finished in 1.07s (2.04s CPU time)
|
|
62
|
+
Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACCrosschainTest
|
|
63
|
+
[PASS] test_credit() (gas: 89874)
|
|
64
|
+
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93265, ~: 93306)
|
|
65
|
+
[PASS] test_debit() (gas: 98332)
|
|
66
|
+
[PASS] test_debit_Dust() (gas: 139763)
|
|
67
|
+
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 142577, ~: 143477)
|
|
68
|
+
[PASS] test_debit_PushesFees() (gas: 165812)
|
|
69
|
+
[PASS] test_debit_Revert_SlippageExceeded() (gas: 131894)
|
|
70
|
+
[PASS] test_debit_SmallAmount_DustOnly() (gas: 139827)
|
|
71
|
+
[PASS] test_debit_WithFee() (gas: 165286)
|
|
72
|
+
[PASS] test_debit_WithFee_Dust() (gas: 165900)
|
|
73
|
+
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 169700, ~: 171220)
|
|
74
|
+
[PASS] test_initialize() (gas: 24722)
|
|
75
|
+
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
|
|
76
|
+
[PASS] test_pause_unpause() (gas: 130472)
|
|
77
|
+
[PASS] test_quoteOFT() (gas: 70712)
|
|
78
|
+
[PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
|
|
79
|
+
[PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59195)
|
|
80
|
+
[PASS] test_quoteOFT_Paused() (gas: 56570)
|
|
81
|
+
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 185667)
|
|
82
|
+
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 233430)
|
|
83
|
+
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 200491, ~: 200315)
|
|
84
|
+
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84276)
|
|
85
|
+
[PASS] test_rateLimit_Inflow() (gas: 108739)
|
|
86
|
+
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
|
|
87
|
+
[PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 179385)
|
|
88
|
+
[PASS] test_send() (gas: 400527)
|
|
89
|
+
[PASS] test_send_Revert_MsgInspection() (gas: 308880)
|
|
90
|
+
[PASS] test_send_WithFee() (gas: 477358)
|
|
91
|
+
[PASS] test_setFeeDeposit() (gas: 28359)
|
|
92
|
+
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
|
|
93
|
+
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38879, ~: 38967)
|
|
94
|
+
Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 1.18s (2.55s CPU time)
|
|
95
95
|
|
|
96
96
|
Ran 32 tests for test/OFTBurnMintExtendedRBACAlt.t.sol:OFTBurnMintExtendedRBACAltTest
|
|
97
97
|
[PASS] test_credit() (gas: 89871)
|
|
98
|
-
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ:
|
|
98
|
+
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93338, ~: 93303)
|
|
99
99
|
[PASS] test_debit() (gas: 98327)
|
|
100
100
|
[PASS] test_debit_Dust() (gas: 141836)
|
|
101
|
-
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ:
|
|
101
|
+
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 145198, ~: 145461)
|
|
102
102
|
[PASS] test_debit_PushesFees() (gas: 167796)
|
|
103
103
|
[PASS] test_debit_Revert_SlippageExceeded() (gas: 133872)
|
|
104
104
|
[PASS] test_debit_SmallAmount_DustOnly() (gas: 141789)
|
|
105
105
|
[PASS] test_debit_WithFee() (gas: 165270)
|
|
106
106
|
[PASS] test_debit_WithFee_Dust() (gas: 167884)
|
|
107
|
-
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ:
|
|
107
|
+
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 170674, ~: 173204)
|
|
108
108
|
[PASS] test_initialize() (gas: 24700)
|
|
109
109
|
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
|
|
110
110
|
[PASS] test_pause_unpause() (gas: 132067)
|
|
@@ -114,7 +114,7 @@ Ran 32 tests for test/OFTBurnMintExtendedRBACAlt.t.sol:OFTBurnMintExtendedRBACAl
|
|
|
114
114
|
[PASS] test_quoteOFT_Paused() (gas: 56570)
|
|
115
115
|
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 187257)
|
|
116
116
|
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 235398)
|
|
117
|
-
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ:
|
|
117
|
+
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 202487, ~: 202299)
|
|
118
118
|
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84254)
|
|
119
119
|
[PASS] test_rateLimit_Inflow() (gas: 108824)
|
|
120
120
|
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 159696)
|
|
@@ -125,98 +125,58 @@ Ran 32 tests for test/OFTBurnMintExtendedRBACAlt.t.sol:OFTBurnMintExtendedRBACAl
|
|
|
125
125
|
[PASS] test_send_WithFee() (gas: 493959)
|
|
126
126
|
[PASS] test_setFeeDeposit() (gas: 28445)
|
|
127
127
|
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
|
|
128
|
-
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ:
|
|
129
|
-
Suite result: ok. 32 passed; 0 failed; 0 skipped; finished in 1.
|
|
130
|
-
|
|
131
|
-
Ran 39 tests for test/OFTNativeExtendedRBAC.t.sol:OFTNativeExtendedRBACTest
|
|
132
|
-
[PASS] test_approvalRequired() (gas: 13426)
|
|
133
|
-
[PASS] test_credit() (gas: 62369)
|
|
134
|
-
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 65629, ~: 65954)
|
|
135
|
-
[PASS] test_credit_Revert_CreditFailed() (gas: 91478)
|
|
136
|
-
[PASS] test_debit() (gas: 36831)
|
|
137
|
-
[PASS] test_debit_Dust() (gas: 76272)
|
|
138
|
-
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 79498, ~: 79886)
|
|
139
|
-
[PASS] test_debit_PushesFees() (gas: 101339)
|
|
140
|
-
[PASS] test_debit_Revert_SlippageExceeded() (gas: 54229)
|
|
141
|
-
[PASS] test_debit_SmallAmount_DustOnly() (gas: 76226)
|
|
142
|
-
[PASS] test_debit_WithFee() (gas: 101145)
|
|
143
|
-
[PASS] test_debit_WithFee_Dust() (gas: 102376)
|
|
144
|
-
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 105615, ~: 107585)
|
|
145
|
-
[PASS] test_initialize() (gas: 22406)
|
|
146
|
-
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92778)
|
|
147
|
-
[PASS] test_pause_unpause() (gas: 61117)
|
|
148
|
-
[PASS] test_quoteOFT() (gas: 70779)
|
|
149
|
-
[PASS] test_quoteOFT_GloballyDisabled() (gas: 80649)
|
|
150
|
-
[PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59220)
|
|
151
|
-
[PASS] test_quoteOFT_Paused() (gas: 56703)
|
|
152
|
-
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 97744)
|
|
153
|
-
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 160139)
|
|
154
|
-
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 137887, ~: 137703)
|
|
155
|
-
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84387)
|
|
156
|
-
[PASS] test_rateLimit_Inflow() (gas: 87713)
|
|
157
|
-
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 80123)
|
|
158
|
-
[PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 116713)
|
|
159
|
-
[PASS] test_send() (gas: 352734)
|
|
160
|
-
[PASS] test_send_PushesFees() (gas: 415282)
|
|
161
|
-
[PASS] test_send_Revert_FeeTransferFailed() (gas: 157067)
|
|
162
|
-
[PASS] test_send_Revert_IncorrectMessageValue_TooHigh() (gas: 30287)
|
|
163
|
-
[PASS] test_send_Revert_IncorrectMessageValue_TooLow() (gas: 30257)
|
|
164
|
-
[PASS] test_send_Revert_IncorrectMessageValue_ZeroValue() (gas: 22753)
|
|
165
|
-
[PASS] test_send_Revert_MsgInspection() (gas: 221169)
|
|
166
|
-
[PASS] test_send_WithFee() (gas: 415240)
|
|
167
|
-
[PASS] test_setFeeDeposit() (gas: 28425)
|
|
168
|
-
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22627)
|
|
169
|
-
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38921, ~: 39011)
|
|
170
|
-
[PASS] test_token() (gas: 13483)
|
|
171
|
-
Suite result: ok. 39 passed; 0 failed; 0 skipped; finished in 1.47s (1.77s CPU time)
|
|
128
|
+
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38940, ~: 39034)
|
|
129
|
+
Suite result: ok. 32 passed; 0 failed; 0 skipped; finished in 1.30s (3.31s CPU time)
|
|
172
130
|
|
|
173
|
-
Ran
|
|
174
|
-
[PASS] test_credit() (gas:
|
|
175
|
-
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ:
|
|
176
|
-
[PASS] test_debit() (gas:
|
|
177
|
-
[PASS] test_debit_Dust() (gas:
|
|
178
|
-
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ:
|
|
179
|
-
[PASS] test_debit_PushesFees() (gas:
|
|
180
|
-
[PASS] test_debit_Revert_SlippageExceeded() (gas:
|
|
181
|
-
[PASS] test_debit_SmallAmount_DustOnly() (gas:
|
|
182
|
-
[PASS]
|
|
183
|
-
[PASS]
|
|
184
|
-
[PASS]
|
|
185
|
-
[PASS]
|
|
131
|
+
Ran 33 tests for test/OFTBurnSelfMintExtendedRBACAlt.t.sol:OFTBurnSelfMintExtendedRBACAltTest
|
|
132
|
+
[PASS] test_credit() (gas: 89873)
|
|
133
|
+
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93242, ~: 93305)
|
|
134
|
+
[PASS] test_debit() (gas: 120710)
|
|
135
|
+
[PASS] test_debit_Dust() (gas: 145216)
|
|
136
|
+
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 147190, ~: 148086)
|
|
137
|
+
[PASS] test_debit_PushesFees() (gas: 165984)
|
|
138
|
+
[PASS] test_debit_Revert_SlippageExceeded() (gas: 133872)
|
|
139
|
+
[PASS] test_debit_SmallAmount_DustOnly() (gas: 145179)
|
|
140
|
+
[PASS] test_debit_TokensTransferredToSelfThenBurned() (gas: 122500)
|
|
141
|
+
[PASS] test_debit_WithFee() (gas: 166449)
|
|
142
|
+
[PASS] test_debit_WithFee_Dust() (gas: 166055)
|
|
143
|
+
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 168546, ~: 170245)
|
|
144
|
+
[PASS] test_initialize() (gas: 24700)
|
|
186
145
|
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
|
|
187
|
-
[PASS] test_pause_unpause() (gas:
|
|
146
|
+
[PASS] test_pause_unpause() (gas: 153198)
|
|
188
147
|
[PASS] test_quoteOFT() (gas: 70712)
|
|
189
148
|
[PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
|
|
190
|
-
[PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas:
|
|
149
|
+
[PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59173)
|
|
191
150
|
[PASS] test_quoteOFT_Paused() (gas: 56570)
|
|
192
|
-
[PASS] test_quoteOFT_RateLimiterUsage() (gas:
|
|
193
|
-
[PASS] test_quoteOFT_RateLimiterWithFee() (gas:
|
|
194
|
-
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ:
|
|
195
|
-
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas:
|
|
196
|
-
[PASS] test_rateLimit_Inflow() (gas:
|
|
197
|
-
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas:
|
|
198
|
-
[PASS] test_rateLimit_Outflow_WithFee_Success() (gas:
|
|
199
|
-
[PASS] test_send() (gas:
|
|
200
|
-
[PASS] test_send_Revert_MsgInspection() (gas:
|
|
201
|
-
[PASS]
|
|
202
|
-
[PASS]
|
|
151
|
+
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 243840)
|
|
152
|
+
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 270346)
|
|
153
|
+
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 193657, ~: 193521)
|
|
154
|
+
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84254)
|
|
155
|
+
[PASS] test_rateLimit_Inflow() (gas: 108826)
|
|
156
|
+
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 159696)
|
|
157
|
+
[PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 176825)
|
|
158
|
+
[PASS] test_send() (gas: 456534)
|
|
159
|
+
[PASS] test_send_Revert_MsgInspection() (gas: 337267)
|
|
160
|
+
[PASS] test_send_Revert_OnlyAltToken() (gas: 250697)
|
|
161
|
+
[PASS] test_send_WithFee() (gas: 504694)
|
|
162
|
+
[PASS] test_setFeeDeposit() (gas: 28445)
|
|
203
163
|
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
|
|
204
|
-
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ:
|
|
205
|
-
Suite result: ok.
|
|
164
|
+
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38890, ~: 39034)
|
|
165
|
+
Suite result: ok. 33 passed; 0 failed; 0 skipped; finished in 1.32s (2.19s CPU time)
|
|
206
166
|
|
|
207
167
|
Ran 32 tests for test/OFTBurnSelfMintExtendedRBAC.t.sol:OFTBurnSelfMintExtendedRBACTest
|
|
208
168
|
[PASS] test_credit() (gas: 89873)
|
|
209
|
-
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ:
|
|
169
|
+
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93169, ~: 93305)
|
|
210
170
|
[PASS] test_debit() (gas: 120710)
|
|
211
171
|
[PASS] test_debit_Dust() (gas: 143616)
|
|
212
|
-
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ:
|
|
172
|
+
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 145072, ~: 146486)
|
|
213
173
|
[PASS] test_debit_PushesFees() (gas: 164384)
|
|
214
174
|
[PASS] test_debit_Revert_SlippageExceeded() (gas: 131872)
|
|
215
175
|
[PASS] test_debit_SmallAmount_DustOnly() (gas: 143579)
|
|
216
176
|
[PASS] test_debit_TokensTransferredToSelfThenBurned() (gas: 122517)
|
|
217
177
|
[PASS] test_debit_WithFee() (gas: 166449)
|
|
218
178
|
[PASS] test_debit_WithFee_Dust() (gas: 164455)
|
|
219
|
-
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ:
|
|
179
|
+
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 166652, ~: 168645)
|
|
220
180
|
[PASS] test_initialize() (gas: 24700)
|
|
221
181
|
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
|
|
222
182
|
[PASS] test_pause_unpause() (gas: 151598)
|
|
@@ -226,7 +186,7 @@ Ran 32 tests for test/OFTBurnSelfMintExtendedRBAC.t.sol:OFTBurnSelfMintExtendedR
|
|
|
226
186
|
[PASS] test_quoteOFT_Paused() (gas: 56570)
|
|
227
187
|
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 242240)
|
|
228
188
|
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 268746)
|
|
229
|
-
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ:
|
|
189
|
+
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 192064, ~: 191921)
|
|
230
190
|
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84254)
|
|
231
191
|
[PASS] test_rateLimit_Inflow() (gas: 108738)
|
|
232
192
|
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
|
|
@@ -236,91 +196,89 @@ Ran 32 tests for test/OFTBurnSelfMintExtendedRBAC.t.sol:OFTBurnSelfMintExtendedR
|
|
|
236
196
|
[PASS] test_send_WithFee() (gas: 462592)
|
|
237
197
|
[PASS] test_setFeeDeposit() (gas: 28445)
|
|
238
198
|
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
|
|
239
|
-
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ:
|
|
240
|
-
Suite result: ok. 32 passed; 0 failed; 0 skipped; finished in 1.
|
|
199
|
+
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38971, ~: 39034)
|
|
200
|
+
Suite result: ok. 32 passed; 0 failed; 0 skipped; finished in 1.44s (2.75s CPU time)
|
|
241
201
|
|
|
242
|
-
Ran 31 tests for test/
|
|
243
|
-
[PASS] test_credit() (gas:
|
|
244
|
-
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ:
|
|
245
|
-
[PASS] test_debit() (gas:
|
|
246
|
-
[PASS] test_debit_Dust() (gas:
|
|
247
|
-
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ:
|
|
248
|
-
[PASS] test_debit_PushesFees() (gas:
|
|
202
|
+
Ran 31 tests for test/OFTLockUnlockExtendedRBAC.t.sol:OFTLockUnlockExtendedRBACTest
|
|
203
|
+
[PASS] test_credit() (gas: 89882)
|
|
204
|
+
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93010, ~: 93314)
|
|
205
|
+
[PASS] test_debit() (gas: 113036)
|
|
206
|
+
[PASS] test_debit_Dust() (gas: 135880)
|
|
207
|
+
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 138552, ~: 138823)
|
|
208
|
+
[PASS] test_debit_PushesFees() (gas: 161342)
|
|
209
|
+
[PASS] test_debit_Revert_SlippageExceeded() (gas: 131850)
|
|
210
|
+
[PASS] test_debit_SmallAmount_DustOnly() (gas: 135931)
|
|
211
|
+
[PASS] test_debit_WithFee() (gas: 163924)
|
|
212
|
+
[PASS] test_debit_WithFee_Dust() (gas: 161430)
|
|
213
|
+
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 161860, ~: 160967)
|
|
214
|
+
[PASS] test_initialize() (gas: 24678)
|
|
215
|
+
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92822)
|
|
216
|
+
[PASS] test_pause_unpause() (gas: 143924)
|
|
217
|
+
[PASS] test_quoteOFT() (gas: 70757)
|
|
218
|
+
[PASS] test_quoteOFT_GloballyDisabled() (gas: 80605)
|
|
219
|
+
[PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59262)
|
|
220
|
+
[PASS] test_quoteOFT_Paused() (gas: 56637)
|
|
221
|
+
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 198848)
|
|
222
|
+
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 241184)
|
|
223
|
+
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 196090, ~: 195912)
|
|
224
|
+
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84321)
|
|
225
|
+
[PASS] test_rateLimit_Inflow() (gas: 130622)
|
|
226
|
+
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157652)
|
|
227
|
+
[PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 174915)
|
|
228
|
+
[PASS] test_send() (gas: 418929)
|
|
229
|
+
[PASS] test_send_Revert_MsgInspection() (gas: 325718)
|
|
230
|
+
[PASS] test_send_WithFee() (gas: 474453)
|
|
231
|
+
[PASS] test_setFeeDeposit() (gas: 28337)
|
|
232
|
+
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22583)
|
|
233
|
+
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38810, ~: 38945)
|
|
234
|
+
Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 1.59s (2.68s CPU time)
|
|
235
|
+
|
|
236
|
+
Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACTest
|
|
237
|
+
[PASS] test_credit() (gas: 89871)
|
|
238
|
+
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93187, ~: 93303)
|
|
239
|
+
[PASS] test_debit() (gas: 98327)
|
|
240
|
+
[PASS] test_debit_Dust() (gas: 139747)
|
|
241
|
+
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 142934, ~: 143461)
|
|
242
|
+
[PASS] test_debit_PushesFees() (gas: 165796)
|
|
249
243
|
[PASS] test_debit_Revert_SlippageExceeded() (gas: 131894)
|
|
250
|
-
[PASS] test_debit_SmallAmount_DustOnly() (gas:
|
|
251
|
-
[PASS] test_debit_WithFee() (gas:
|
|
252
|
-
[PASS] test_debit_WithFee_Dust() (gas:
|
|
253
|
-
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ:
|
|
244
|
+
[PASS] test_debit_SmallAmount_DustOnly() (gas: 139811)
|
|
245
|
+
[PASS] test_debit_WithFee() (gas: 165270)
|
|
246
|
+
[PASS] test_debit_WithFee_Dust() (gas: 165884)
|
|
247
|
+
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 168172, ~: 171204)
|
|
254
248
|
[PASS] test_initialize() (gas: 24722)
|
|
255
249
|
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
|
|
256
|
-
[PASS] test_pause_unpause() (gas:
|
|
250
|
+
[PASS] test_pause_unpause() (gas: 130467)
|
|
257
251
|
[PASS] test_quoteOFT() (gas: 70712)
|
|
258
252
|
[PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
|
|
259
253
|
[PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59195)
|
|
260
254
|
[PASS] test_quoteOFT_Paused() (gas: 56570)
|
|
261
|
-
[PASS] test_quoteOFT_RateLimiterUsage() (gas:
|
|
262
|
-
[PASS] test_quoteOFT_RateLimiterWithFee() (gas:
|
|
263
|
-
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ:
|
|
255
|
+
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 185657)
|
|
256
|
+
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 233398)
|
|
257
|
+
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 200481, ~: 200299)
|
|
264
258
|
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84276)
|
|
265
|
-
[PASS] test_rateLimit_Inflow() (gas:
|
|
259
|
+
[PASS] test_rateLimit_Inflow() (gas: 108736)
|
|
266
260
|
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
|
|
267
|
-
[PASS] test_rateLimit_Outflow_WithFee_Success() (gas:
|
|
268
|
-
[PASS] test_send() (gas:
|
|
269
|
-
[PASS] test_send_Revert_MsgInspection() (gas:
|
|
270
|
-
[PASS] test_send_WithFee() (gas:
|
|
261
|
+
[PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 179369)
|
|
262
|
+
[PASS] test_send() (gas: 400518)
|
|
263
|
+
[PASS] test_send_Revert_MsgInspection() (gas: 308871)
|
|
264
|
+
[PASS] test_send_WithFee() (gas: 477338)
|
|
271
265
|
[PASS] test_setFeeDeposit() (gas: 28359)
|
|
272
266
|
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
|
|
273
267
|
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38871, ~: 38967)
|
|
274
|
-
Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 1.
|
|
275
|
-
|
|
276
|
-
Ran 33 tests for test/OFTBurnSelfMintExtendedRBACAlt.t.sol:OFTBurnSelfMintExtendedRBACAltTest
|
|
277
|
-
[PASS] test_credit() (gas: 89873)
|
|
278
|
-
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93297, ~: 93305)
|
|
279
|
-
[PASS] test_debit() (gas: 120710)
|
|
280
|
-
[PASS] test_debit_Dust() (gas: 145216)
|
|
281
|
-
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 147662, ~: 148086)
|
|
282
|
-
[PASS] test_debit_PushesFees() (gas: 165984)
|
|
283
|
-
[PASS] test_debit_Revert_SlippageExceeded() (gas: 133872)
|
|
284
|
-
[PASS] test_debit_SmallAmount_DustOnly() (gas: 145179)
|
|
285
|
-
[PASS] test_debit_TokensTransferredToSelfThenBurned() (gas: 122500)
|
|
286
|
-
[PASS] test_debit_WithFee() (gas: 166449)
|
|
287
|
-
[PASS] test_debit_WithFee_Dust() (gas: 166055)
|
|
288
|
-
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 168328, ~: 170245)
|
|
289
|
-
[PASS] test_initialize() (gas: 24700)
|
|
290
|
-
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
|
|
291
|
-
[PASS] test_pause_unpause() (gas: 153198)
|
|
292
|
-
[PASS] test_quoteOFT() (gas: 70712)
|
|
293
|
-
[PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
|
|
294
|
-
[PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59173)
|
|
295
|
-
[PASS] test_quoteOFT_Paused() (gas: 56570)
|
|
296
|
-
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 243840)
|
|
297
|
-
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 270346)
|
|
298
|
-
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 193675, ~: 193521)
|
|
299
|
-
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84254)
|
|
300
|
-
[PASS] test_rateLimit_Inflow() (gas: 108826)
|
|
301
|
-
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 159696)
|
|
302
|
-
[PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 176825)
|
|
303
|
-
[PASS] test_send() (gas: 456534)
|
|
304
|
-
[PASS] test_send_Revert_MsgInspection() (gas: 337267)
|
|
305
|
-
[PASS] test_send_Revert_OnlyAltToken() (gas: 250697)
|
|
306
|
-
[PASS] test_send_WithFee() (gas: 504694)
|
|
307
|
-
[PASS] test_setFeeDeposit() (gas: 28445)
|
|
308
|
-
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
|
|
309
|
-
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38894, ~: 39034)
|
|
310
|
-
Suite result: ok. 33 passed; 0 failed; 0 skipped; finished in 1.67s (2.43s CPU time)
|
|
268
|
+
Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 1.62s (2.96s CPU time)
|
|
311
269
|
|
|
312
270
|
Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACRedeemIssueTest
|
|
313
271
|
[PASS] test_credit() (gas: 89907)
|
|
314
|
-
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ:
|
|
272
|
+
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93306, ~: 93339)
|
|
315
273
|
[PASS] test_debit() (gas: 98305)
|
|
316
274
|
[PASS] test_debit_Dust() (gas: 139763)
|
|
317
|
-
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ:
|
|
275
|
+
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 142625, ~: 143477)
|
|
318
276
|
[PASS] test_debit_PushesFees() (gas: 165812)
|
|
319
277
|
[PASS] test_debit_Revert_SlippageExceeded() (gas: 131894)
|
|
320
278
|
[PASS] test_debit_SmallAmount_DustOnly() (gas: 139827)
|
|
321
279
|
[PASS] test_debit_WithFee() (gas: 165286)
|
|
322
280
|
[PASS] test_debit_WithFee_Dust() (gas: 165900)
|
|
323
|
-
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ:
|
|
281
|
+
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 168954, ~: 171220)
|
|
324
282
|
[PASS] test_initialize() (gas: 24722)
|
|
325
283
|
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
|
|
326
284
|
[PASS] test_pause_unpause() (gas: 130445)
|
|
@@ -330,7 +288,7 @@ Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACRedee
|
|
|
330
288
|
[PASS] test_quoteOFT_Paused() (gas: 56570)
|
|
331
289
|
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 185614)
|
|
332
290
|
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 233430)
|
|
333
|
-
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ:
|
|
291
|
+
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 200487, ~: 200315)
|
|
334
292
|
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84276)
|
|
335
293
|
[PASS] test_rateLimit_Inflow() (gas: 108772)
|
|
336
294
|
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
|
|
@@ -340,42 +298,85 @@ Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACRedee
|
|
|
340
298
|
[PASS] test_send_WithFee() (gas: 477358)
|
|
341
299
|
[PASS] test_setFeeDeposit() (gas: 28359)
|
|
342
300
|
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
|
|
343
|
-
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ:
|
|
344
|
-
Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 1.
|
|
301
|
+
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38866, ~: 38967)
|
|
302
|
+
Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 1.63s (2.30s CPU time)
|
|
345
303
|
|
|
346
|
-
Ran
|
|
347
|
-
[PASS] test_credit() (gas:
|
|
348
|
-
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ:
|
|
304
|
+
Ran 32 tests for test/OFTLockUnlockExtendedRBACAlt.t.sol:OFTLockUnlockExtendedRBACAltTest
|
|
305
|
+
[PASS] test_credit() (gas: 91882)
|
|
306
|
+
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 95274, ~: 95314)
|
|
349
307
|
[PASS] test_debit() (gas: 113036)
|
|
350
|
-
[PASS] test_debit_Dust() (gas:
|
|
351
|
-
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ:
|
|
352
|
-
[PASS] test_debit_PushesFees() (gas:
|
|
353
|
-
[PASS] test_debit_Revert_SlippageExceeded() (gas:
|
|
354
|
-
[PASS] test_debit_SmallAmount_DustOnly() (gas:
|
|
308
|
+
[PASS] test_debit_Dust() (gas: 137551)
|
|
309
|
+
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 140119, ~: 140423)
|
|
310
|
+
[PASS] test_debit_PushesFees() (gas: 163342)
|
|
311
|
+
[PASS] test_debit_Revert_SlippageExceeded() (gas: 133828)
|
|
312
|
+
[PASS] test_debit_SmallAmount_DustOnly() (gas: 137513)
|
|
355
313
|
[PASS] test_debit_WithFee() (gas: 163924)
|
|
356
|
-
[PASS] test_debit_WithFee_Dust() (gas:
|
|
357
|
-
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ:
|
|
358
|
-
[PASS] test_initialize() (gas:
|
|
314
|
+
[PASS] test_debit_WithFee_Dust() (gas: 163430)
|
|
315
|
+
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 163697, ~: 162567)
|
|
316
|
+
[PASS] test_initialize() (gas: 24656)
|
|
359
317
|
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92822)
|
|
360
|
-
[PASS] test_pause_unpause() (gas:
|
|
318
|
+
[PASS] test_pause_unpause() (gas: 145524)
|
|
361
319
|
[PASS] test_quoteOFT() (gas: 70757)
|
|
362
320
|
[PASS] test_quoteOFT_GloballyDisabled() (gas: 80605)
|
|
363
|
-
[PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas:
|
|
321
|
+
[PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59240)
|
|
364
322
|
[PASS] test_quoteOFT_Paused() (gas: 56637)
|
|
365
|
-
[PASS] test_quoteOFT_RateLimiterUsage() (gas:
|
|
366
|
-
[PASS] test_quoteOFT_RateLimiterWithFee() (gas:
|
|
367
|
-
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ:
|
|
368
|
-
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas:
|
|
369
|
-
[PASS] test_rateLimit_Inflow() (gas:
|
|
370
|
-
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas:
|
|
371
|
-
[PASS] test_rateLimit_Outflow_WithFee_Success() (gas:
|
|
372
|
-
[PASS] test_send() (gas:
|
|
373
|
-
[PASS] test_send_Revert_MsgInspection() (gas:
|
|
374
|
-
[PASS]
|
|
375
|
-
[PASS]
|
|
323
|
+
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 200448)
|
|
324
|
+
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 242784)
|
|
325
|
+
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 198105, ~: 197912)
|
|
326
|
+
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84299)
|
|
327
|
+
[PASS] test_rateLimit_Inflow() (gas: 132710)
|
|
328
|
+
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 159652)
|
|
329
|
+
[PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 176893)
|
|
330
|
+
[PASS] test_send() (gas: 465637)
|
|
331
|
+
[PASS] test_send_Revert_MsgInspection() (gas: 327696)
|
|
332
|
+
[PASS] test_send_Revert_OnlyAltToken() (gas: 241148)
|
|
333
|
+
[PASS] test_send_WithFee() (gas: 516566)
|
|
334
|
+
[PASS] test_setFeeDeposit() (gas: 28423)
|
|
376
335
|
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22583)
|
|
377
|
-
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ:
|
|
378
|
-
Suite result: ok.
|
|
336
|
+
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38930, ~: 39012)
|
|
337
|
+
Suite result: ok. 32 passed; 0 failed; 0 skipped; finished in 1.82s (2.49s CPU time)
|
|
338
|
+
|
|
339
|
+
Ran 39 tests for test/OFTNativeExtendedRBAC.t.sol:OFTNativeExtendedRBACTest
|
|
340
|
+
[PASS] test_approvalRequired() (gas: 13426)
|
|
341
|
+
[PASS] test_credit() (gas: 62369)
|
|
342
|
+
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 66090, ~: 65954)
|
|
343
|
+
[PASS] test_credit_Revert_CreditFailed() (gas: 91478)
|
|
344
|
+
[PASS] test_debit() (gas: 36831)
|
|
345
|
+
[PASS] test_debit_Dust() (gas: 76272)
|
|
346
|
+
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 79274, ~: 79886)
|
|
347
|
+
[PASS] test_debit_PushesFees() (gas: 101339)
|
|
348
|
+
[PASS] test_debit_Revert_SlippageExceeded() (gas: 54229)
|
|
349
|
+
[PASS] test_debit_SmallAmount_DustOnly() (gas: 76226)
|
|
350
|
+
[PASS] test_debit_WithFee() (gas: 101145)
|
|
351
|
+
[PASS] test_debit_WithFee_Dust() (gas: 102376)
|
|
352
|
+
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 105367, ~: 107585)
|
|
353
|
+
[PASS] test_initialize() (gas: 22406)
|
|
354
|
+
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92778)
|
|
355
|
+
[PASS] test_pause_unpause() (gas: 61117)
|
|
356
|
+
[PASS] test_quoteOFT() (gas: 70779)
|
|
357
|
+
[PASS] test_quoteOFT_GloballyDisabled() (gas: 80649)
|
|
358
|
+
[PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59220)
|
|
359
|
+
[PASS] test_quoteOFT_Paused() (gas: 56703)
|
|
360
|
+
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 97744)
|
|
361
|
+
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 160139)
|
|
362
|
+
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 137878, ~: 137703)
|
|
363
|
+
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84387)
|
|
364
|
+
[PASS] test_rateLimit_Inflow() (gas: 87713)
|
|
365
|
+
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 80123)
|
|
366
|
+
[PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 116713)
|
|
367
|
+
[PASS] test_send() (gas: 352734)
|
|
368
|
+
[PASS] test_send_PushesFees() (gas: 415282)
|
|
369
|
+
[PASS] test_send_Revert_FeeTransferFailed() (gas: 157067)
|
|
370
|
+
[PASS] test_send_Revert_IncorrectMessageValue_TooHigh() (gas: 30287)
|
|
371
|
+
[PASS] test_send_Revert_IncorrectMessageValue_TooLow() (gas: 30257)
|
|
372
|
+
[PASS] test_send_Revert_IncorrectMessageValue_ZeroValue() (gas: 22753)
|
|
373
|
+
[PASS] test_send_Revert_MsgInspection() (gas: 221169)
|
|
374
|
+
[PASS] test_send_WithFee() (gas: 415240)
|
|
375
|
+
[PASS] test_setFeeDeposit() (gas: 28425)
|
|
376
|
+
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22627)
|
|
377
|
+
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38919, ~: 39011)
|
|
378
|
+
[PASS] test_token() (gas: 13483)
|
|
379
|
+
Suite result: ok. 39 passed; 0 failed; 0 skipped; finished in 1.82s (2.34s CPU time)
|
|
379
380
|
|
|
380
|
-
Ran 9 test suites in 1.
|
|
381
|
-
⏳ forge test: 1:00.
|
|
381
|
+
Ran 9 test suites in 1.90s (13.73s CPU time): 292 tests passed, 0 failed, 0 skipped (292 total tests)
|
|
382
|
+
⏳ forge test: 1:00.465 (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.75",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "LayerZero Labs reference EVM upgradeable OFT implementation",
|
|
6
6
|
"license": "MIT",
|
|
@@ -14,19 +14,19 @@
|
|
|
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/oft-evm-contracts": "0.2.
|
|
19
|
-
"@layerzerolabs/
|
|
20
|
-
"@layerzerolabs/
|
|
21
|
-
"@layerzerolabs/
|
|
22
|
-
"@layerzerolabs/
|
|
23
|
-
"@layerzerolabs/typescript-configuration": "0.2.
|
|
24
|
-
"@layerzerolabs/utils-evm-contracts": "0.2.
|
|
25
|
-
"@layerzerolabs/utils-
|
|
26
|
-
"@layerzerolabs/vm-tooling-evm": "0.2.
|
|
17
|
+
"@layerzerolabs/oapp-evm-contracts": "0.2.75",
|
|
18
|
+
"@layerzerolabs/oft-evm-contracts": "0.2.75",
|
|
19
|
+
"@layerzerolabs/solhint-configuration": "0.2.75",
|
|
20
|
+
"@layerzerolabs/test-utils-evm-contracts": "0.2.75",
|
|
21
|
+
"@layerzerolabs/tsup-configuration": "0.2.75",
|
|
22
|
+
"@layerzerolabs/oapp-upgradeable-evm-contracts": "0.2.75",
|
|
23
|
+
"@layerzerolabs/typescript-configuration": "0.2.75",
|
|
24
|
+
"@layerzerolabs/utils-upgradeable-evm-contracts": "0.2.75",
|
|
25
|
+
"@layerzerolabs/utils-evm-contracts": "0.2.75",
|
|
26
|
+
"@layerzerolabs/vm-tooling-evm": "0.2.75"
|
|
27
27
|
},
|
|
28
28
|
"publishConfig": {
|
|
29
|
-
"access": "
|
|
29
|
+
"access": "public",
|
|
30
30
|
"registry": "https://registry.npmjs.org/"
|
|
31
31
|
},
|
|
32
32
|
"externalRepoConfig": {
|