@layerzerolabs/oft-upgradeable-evm-contracts 0.2.119 → 0.2.121
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 -18
- package/.turbo/turbo-test.log +168 -168
- package/foundry.toml +1 -1
- package/package.json +12 -12
package/.turbo/turbo-build.log
CHANGED
|
@@ -11,24 +11,24 @@
|
|
|
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
|
-
📦 Using mini workspace: /tmp/lz-mini-workspace-
|
|
14
|
+
📦 Using mini workspace: /tmp/lz-mini-workspace-SLp4kt
|
|
15
15
|
📦 Copied 13 workspace package source(s)
|
|
16
16
|
📦 No mini-workspace pruner configured; using unpruned package-level source copy fallback.
|
|
17
|
-
(node:
|
|
17
|
+
(node:129320) [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.
|
|
18
18
|
Reparsing as ES module because module syntax was detected. This incurs a performance overhead.
|
|
19
19
|
To eliminate this warning, add "type": "module" to /home/runner/work/monorepo-internal/monorepo-internal/package.json.
|
|
20
20
|
(Use `node --trace-warnings ...` to show where the warning was created)
|
|
21
21
|
📦 Docker volumes:
|
|
22
|
-
-v /tmp/lz-mini-workspace-
|
|
22
|
+
-v /tmp/lz-mini-workspace-SLp4kt:/workspace
|
|
23
23
|
-v /home/runner/work/monorepo-internal/monorepo-internal/apps/oft-app/contracts/evm/upgradeable:/workspace/apps/oft-app/contracts/evm/upgradeable
|
|
24
24
|
-v /home/runner/work/monorepo-internal/monorepo-internal/node_modules/.pnpm:/workspace/node_modules/.pnpm:ro
|
|
25
25
|
$ 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
|
|
26
26
|
$ 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
|
|
27
|
-
$ docker container rm
|
|
28
|
-
$ 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 /tmp/lz-mini-workspace-5lE4pi:/workspace -v /home/runner/work/monorepo-internal/monorepo-internal/apps/oft-app/contracts/evm/upgradeable:/workspace/apps/oft-app/contracts/evm/upgradeable -v /home/runner/work/monorepo-internal/monorepo-internal/node_modules/.pnpm:/workspace/node_modules/.pnpm:ro -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
|
|
27
|
+
$ docker container rm c1c91b0cd6b0df33b70b4aa29ac126b436b7dd18e8b664c037d22bcc68158c2e
|
|
29
28
|
✅ 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)
|
|
30
29
|
👤 Running container as UID:GID 1001:1001
|
|
31
30
|
🌍 Using 1 custom environment variable(s)
|
|
31
|
+
$ 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 /tmp/lz-mini-workspace-SLp4kt:/workspace -v /home/runner/work/monorepo-internal/monorepo-internal/apps/oft-app/contracts/evm/upgradeable:/workspace/apps/oft-app/contracts/evm/upgradeable -v /home/runner/work/monorepo-internal/monorepo-internal/node_modules/.pnpm:/workspace/node_modules/.pnpm:ro -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
|
|
32
32
|
Compiling 76 Solidity files
|
|
33
33
|
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.
|
|
34
34
|
--> contracts/extended/OFTBurnMintExtendedRBACUpgradeable.sol:28:1:
|
|
@@ -80,7 +80,7 @@ Warning: Contract code size is 27524 bytes and exceeds 24576 bytes (a limit intr
|
|
|
80
80
|
|
|
81
81
|
|
|
82
82
|
Successfully compiled 76 Solidity files
|
|
83
|
-
⏳ hardhat compile --config /hardhat/hardhat.default.config.js: 10.
|
|
83
|
+
⏳ hardhat compile --config /hardhat/hardhat.default.config.js: 10.059s
|
|
84
84
|
WARN Issue while reading "/home/runner/work/monorepo-internal/monorepo-internal/.npmrc". Failed to replace env in config: ${NPM_TOKEN}
|
|
85
85
|
|
|
86
86
|
> @layerzerolabs/oft-upgradeable-evm-contracts@0.0.0 compile:zksync /home/runner/work/monorepo-internal/monorepo-internal/apps/oft-app/contracts/evm/upgradeable
|
|
@@ -89,30 +89,30 @@ Successfully compiled 76 Solidity files
|
|
|
89
89
|
WARN Issue while reading "/home/runner/work/monorepo-internal/monorepo-internal/.npmrc". Failed to replace env in config: ${NPM_TOKEN}
|
|
90
90
|
✅ forge-1.3.6-hardhat-2.26.3
|
|
91
91
|
🔧 hardhat version: 2.26.3
|
|
92
|
-
📦 Using mini workspace: /tmp/lz-mini-workspace-
|
|
92
|
+
📦 Using mini workspace: /tmp/lz-mini-workspace-2TQ5dB
|
|
93
93
|
📦 Copied 13 workspace package source(s)
|
|
94
94
|
📦 No mini-workspace pruner configured; using unpruned package-level source copy fallback.
|
|
95
|
-
(node:
|
|
95
|
+
(node:131013) [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.
|
|
96
96
|
Reparsing as ES module because module syntax was detected. This incurs a performance overhead.
|
|
97
97
|
To eliminate this warning, add "type": "module" to /home/runner/work/monorepo-internal/monorepo-internal/package.json.
|
|
98
98
|
(Use `node --trace-warnings ...` to show where the warning was created)
|
|
99
99
|
📦 Docker volumes:
|
|
100
|
-
-v /tmp/lz-mini-workspace-
|
|
100
|
+
-v /tmp/lz-mini-workspace-2TQ5dB:/workspace
|
|
101
101
|
-v /home/runner/work/monorepo-internal/monorepo-internal/apps/oft-app/contracts/evm/upgradeable:/workspace/apps/oft-app/contracts/evm/upgradeable
|
|
102
102
|
-v /home/runner/work/monorepo-internal/monorepo-internal/node_modules/.pnpm:/workspace/node_modules/.pnpm:ro
|
|
103
103
|
$ 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
|
|
104
104
|
$ 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
|
|
105
|
-
$ docker container rm
|
|
105
|
+
$ docker container rm e777b3a5e82d70ad814574e8d70377cc0604406d6df7fc8d42eba39f1ad2acc5
|
|
106
106
|
✅ 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)
|
|
107
107
|
👤 Running container as UID:GID 1001:1001
|
|
108
108
|
🌍 Using 1 custom environment variable(s)
|
|
109
|
-
$ 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 /tmp/lz-mini-workspace-
|
|
109
|
+
$ 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 /tmp/lz-mini-workspace-2TQ5dB:/workspace -v /home/runner/work/monorepo-internal/monorepo-internal/apps/oft-app/contracts/evm/upgradeable:/workspace/apps/oft-app/contracts/evm/upgradeable -v /home/runner/work/monorepo-internal/monorepo-internal/node_modules/.pnpm:/workspace/node_modules/.pnpm:ro -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
|
|
110
110
|
The solc version 1.3.22 is deprecated and will be removed for security reasons soon. Please update to v1.4.0 or newer.
|
|
111
111
|
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.
|
|
112
112
|
Compiling contracts for ZKsync Era with zksolc v1.3.22 and zkvm-solc v0.8.23-1.0.1
|
|
113
113
|
Compiling 76 Solidity files
|
|
114
114
|
Successfully compiled 76 Solidity files
|
|
115
|
-
⏳ hardhat compile --config /hardhat/hardhat.default.config.js --network zksync-mainnet: 1:
|
|
115
|
+
⏳ hardhat compile --config /hardhat/hardhat.default.config.js --network zksync-mainnet: 1:19.205 (m:ss.mmm)
|
|
116
116
|
WARN Issue while reading "/home/runner/work/monorepo-internal/monorepo-internal/.npmrc". Failed to replace env in config: ${NPM_TOKEN}
|
|
117
117
|
|
|
118
118
|
> @layerzerolabs/oft-upgradeable-evm-contracts@0.0.0 compile:tron /home/runner/work/monorepo-internal/monorepo-internal/apps/oft-app/contracts/evm/upgradeable
|
|
@@ -121,24 +121,24 @@ Successfully compiled 76 Solidity files
|
|
|
121
121
|
WARN Issue while reading "/home/runner/work/monorepo-internal/monorepo-internal/.npmrc". Failed to replace env in config: ${NPM_TOKEN}
|
|
122
122
|
✅ forge-1.3.6-hardhat-2.26.3
|
|
123
123
|
🔧 hardhat version: 2.26.3
|
|
124
|
-
📦 Using mini workspace: /tmp/lz-mini-workspace-
|
|
124
|
+
📦 Using mini workspace: /tmp/lz-mini-workspace-q7dy28
|
|
125
125
|
📦 Copied 13 workspace package source(s)
|
|
126
126
|
📦 No mini-workspace pruner configured; using unpruned package-level source copy fallback.
|
|
127
|
-
(node:
|
|
127
|
+
(node:149357) [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.
|
|
128
128
|
Reparsing as ES module because module syntax was detected. This incurs a performance overhead.
|
|
129
129
|
To eliminate this warning, add "type": "module" to /home/runner/work/monorepo-internal/monorepo-internal/package.json.
|
|
130
130
|
(Use `node --trace-warnings ...` to show where the warning was created)
|
|
131
131
|
📦 Docker volumes:
|
|
132
|
-
-v /tmp/lz-mini-workspace-
|
|
132
|
+
-v /tmp/lz-mini-workspace-q7dy28:/workspace
|
|
133
133
|
-v /home/runner/work/monorepo-internal/monorepo-internal/apps/oft-app/contracts/evm/upgradeable:/workspace/apps/oft-app/contracts/evm/upgradeable
|
|
134
134
|
-v /home/runner/work/monorepo-internal/monorepo-internal/node_modules/.pnpm:/workspace/node_modules/.pnpm:ro
|
|
135
135
|
$ 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
|
|
136
136
|
$ 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
|
|
137
|
-
$ docker container rm
|
|
137
|
+
$ docker container rm 20f09f49ba0b35f06f11089efba01c712a71207ba4577feabdbd1c07bba667d4
|
|
138
138
|
✅ 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)
|
|
139
139
|
👤 Running container as UID:GID 1001:1001
|
|
140
140
|
🌍 Using 1 custom environment variable(s)
|
|
141
|
-
$ 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 /tmp/lz-mini-workspace-
|
|
141
|
+
$ 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 /tmp/lz-mini-workspace-q7dy28:/workspace -v /home/runner/work/monorepo-internal/monorepo-internal/apps/oft-app/contracts/evm/upgradeable:/workspace/apps/oft-app/contracts/evm/upgradeable -v /home/runner/work/monorepo-internal/monorepo-internal/node_modules/.pnpm:/workspace/node_modules/.pnpm:ro -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
|
|
142
142
|
detected tron network, replacing deployments extension with custom one
|
|
143
143
|
Tron-solc v0.8.23 is unknown version, attempting anyway...
|
|
144
144
|
Compiling contracts with tron solc v0.8.23
|
|
@@ -193,4 +193,4 @@ Warning: Contract code size is 29394 bytes and exceeds 24576 bytes (a limit intr
|
|
|
193
193
|
|
|
194
194
|
|
|
195
195
|
Successfully compiled 76 Solidity files
|
|
196
|
-
⏳ hardhat compile --config /hardhat/hardhat.default.config.js --network tron-mainnet:
|
|
196
|
+
⏳ hardhat compile --config /hardhat/hardhat.default.config.js --network tron-mainnet: 33.484s
|
package/.turbo/turbo-test.log
CHANGED
|
@@ -4,37 +4,37 @@
|
|
|
4
4
|
|
|
5
5
|
✅ forge-1.3.6-hardhat-2.26.3
|
|
6
6
|
🔧 forge version: 1.3.6
|
|
7
|
-
📦 Using mini workspace: /tmp/lz-mini-workspace-
|
|
7
|
+
📦 Using mini workspace: /tmp/lz-mini-workspace-5IGRHw
|
|
8
8
|
📦 Copied 13 workspace package source(s)
|
|
9
9
|
📦 No mini-workspace pruner configured; using unpruned package-level source copy fallback.
|
|
10
|
-
(node:
|
|
10
|
+
(node:355169) [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.
|
|
11
11
|
Reparsing as ES module because module syntax was detected. This incurs a performance overhead.
|
|
12
12
|
To eliminate this warning, add "type": "module" to /home/runner/work/monorepo-internal/monorepo-internal/package.json.
|
|
13
13
|
(Use `node --trace-warnings ...` to show where the warning was created)
|
|
14
14
|
📦 Docker volumes:
|
|
15
|
-
-v /tmp/lz-mini-workspace-
|
|
15
|
+
-v /tmp/lz-mini-workspace-5IGRHw:/workspace
|
|
16
16
|
-v /home/runner/work/monorepo-internal/monorepo-internal/apps/oft-app/contracts/evm/upgradeable:/workspace/apps/oft-app/contracts/evm/upgradeable
|
|
17
17
|
-v /home/runner/work/monorepo-internal/monorepo-internal/node_modules/.pnpm:/workspace/node_modules/.pnpm:ro
|
|
18
18
|
$ 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
|
|
19
19
|
✅ Using cached Docker image: 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3 (amd64)
|
|
20
20
|
👤 Running container as UID:GID 1001:1001
|
|
21
|
-
$ docker run --rm --add-host=host.docker.internal:host-gateway -e LOCAL_UID=1001 -e LOCAL_GID=1001 -v /tmp/lz-mini-workspace-
|
|
21
|
+
$ docker run --rm --add-host=host.docker.internal:host-gateway -e LOCAL_UID=1001 -e LOCAL_GID=1001 -v /tmp/lz-mini-workspace-5IGRHw:/workspace -v /home/runner/work/monorepo-internal/monorepo-internal/apps/oft-app/contracts/evm/upgradeable:/workspace/apps/oft-app/contracts/evm/upgradeable -v /home/runner/work/monorepo-internal/monorepo-internal/node_modules/.pnpm:/workspace/node_modules/.pnpm:ro -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
|
|
22
22
|
Compiling 185 files with Solc 0.8.22
|
|
23
|
-
Solc 0.8.22 finished in
|
|
23
|
+
Solc 0.8.22 finished in 41.35s
|
|
24
24
|
Compiler run successful!
|
|
25
25
|
|
|
26
26
|
Ran 31 tests for test/OFTLockUnlockExtendedRBAC.t.sol:OFTLockUnlockExtendedRBACTest
|
|
27
27
|
[PASS] test_credit() (gas: 89882)
|
|
28
|
-
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ:
|
|
28
|
+
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93221, ~: 93314)
|
|
29
29
|
[PASS] test_debit() (gas: 113036)
|
|
30
30
|
[PASS] test_debit_Dust() (gas: 135880)
|
|
31
|
-
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ:
|
|
31
|
+
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 138181, ~: 138823)
|
|
32
32
|
[PASS] test_debit_PushesFees() (gas: 161342)
|
|
33
33
|
[PASS] test_debit_Revert_SlippageExceeded() (gas: 131850)
|
|
34
34
|
[PASS] test_debit_SmallAmount_DustOnly() (gas: 135931)
|
|
35
35
|
[PASS] test_debit_WithFee() (gas: 163924)
|
|
36
36
|
[PASS] test_debit_WithFee_Dust() (gas: 161430)
|
|
37
|
-
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ:
|
|
37
|
+
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 161556, ~: 160967)
|
|
38
38
|
[PASS] test_initialize() (gas: 24678)
|
|
39
39
|
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92822)
|
|
40
40
|
[PASS] test_pause_unpause() (gas: 143924)
|
|
@@ -44,7 +44,7 @@ Ran 31 tests for test/OFTLockUnlockExtendedRBAC.t.sol:OFTLockUnlockExtendedRBACT
|
|
|
44
44
|
[PASS] test_quoteOFT_Paused() (gas: 56637)
|
|
45
45
|
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 198848)
|
|
46
46
|
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 241184)
|
|
47
|
-
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ:
|
|
47
|
+
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 196102, ~: 195912)
|
|
48
48
|
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84321)
|
|
49
49
|
[PASS] test_rateLimit_Inflow() (gas: 130622)
|
|
50
50
|
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157652)
|
|
@@ -54,21 +54,124 @@ Ran 31 tests for test/OFTLockUnlockExtendedRBAC.t.sol:OFTLockUnlockExtendedRBACT
|
|
|
54
54
|
[PASS] test_send_WithFee() (gas: 474453)
|
|
55
55
|
[PASS] test_setFeeDeposit() (gas: 28337)
|
|
56
56
|
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22583)
|
|
57
|
-
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ:
|
|
58
|
-
Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in
|
|
57
|
+
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38839, ~: 38945)
|
|
58
|
+
Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 553.61ms (1.30s CPU time)
|
|
59
|
+
|
|
60
|
+
Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACRedeemIssueTest
|
|
61
|
+
[PASS] test_credit() (gas: 89907)
|
|
62
|
+
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93222, ~: 93339)
|
|
63
|
+
[PASS] test_debit() (gas: 98305)
|
|
64
|
+
[PASS] test_debit_Dust() (gas: 139763)
|
|
65
|
+
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 142587, ~: 143477)
|
|
66
|
+
[PASS] test_debit_PushesFees() (gas: 165812)
|
|
67
|
+
[PASS] test_debit_Revert_SlippageExceeded() (gas: 131894)
|
|
68
|
+
[PASS] test_debit_SmallAmount_DustOnly() (gas: 139827)
|
|
69
|
+
[PASS] test_debit_WithFee() (gas: 165286)
|
|
70
|
+
[PASS] test_debit_WithFee_Dust() (gas: 165900)
|
|
71
|
+
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 168569, ~: 171220)
|
|
72
|
+
[PASS] test_initialize() (gas: 24722)
|
|
73
|
+
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
|
|
74
|
+
[PASS] test_pause_unpause() (gas: 130445)
|
|
75
|
+
[PASS] test_quoteOFT() (gas: 70712)
|
|
76
|
+
[PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
|
|
77
|
+
[PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59195)
|
|
78
|
+
[PASS] test_quoteOFT_Paused() (gas: 56570)
|
|
79
|
+
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 185614)
|
|
80
|
+
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 233430)
|
|
81
|
+
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 200481, ~: 200315)
|
|
82
|
+
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84276)
|
|
83
|
+
[PASS] test_rateLimit_Inflow() (gas: 108772)
|
|
84
|
+
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
|
|
85
|
+
[PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 179385)
|
|
86
|
+
[PASS] test_send() (gas: 400494)
|
|
87
|
+
[PASS] test_send_Revert_MsgInspection() (gas: 308847)
|
|
88
|
+
[PASS] test_send_WithFee() (gas: 477358)
|
|
89
|
+
[PASS] test_setFeeDeposit() (gas: 28359)
|
|
90
|
+
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
|
|
91
|
+
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38871, ~: 38967)
|
|
92
|
+
Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 569.35ms (1.11s CPU time)
|
|
93
|
+
|
|
94
|
+
Ran 32 tests for test/OFTLockUnlockExtendedRBACAlt.t.sol:OFTLockUnlockExtendedRBACAltTest
|
|
95
|
+
[PASS] test_credit() (gas: 91882)
|
|
96
|
+
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 95141, ~: 95314)
|
|
97
|
+
[PASS] test_debit() (gas: 113036)
|
|
98
|
+
[PASS] test_debit_Dust() (gas: 137551)
|
|
99
|
+
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 140423, ~: 140423)
|
|
100
|
+
[PASS] test_debit_PushesFees() (gas: 163342)
|
|
101
|
+
[PASS] test_debit_Revert_SlippageExceeded() (gas: 133828)
|
|
102
|
+
[PASS] test_debit_SmallAmount_DustOnly() (gas: 137513)
|
|
103
|
+
[PASS] test_debit_WithFee() (gas: 163924)
|
|
104
|
+
[PASS] test_debit_WithFee_Dust() (gas: 163430)
|
|
105
|
+
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 163488, ~: 162567)
|
|
106
|
+
[PASS] test_initialize() (gas: 24656)
|
|
107
|
+
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92822)
|
|
108
|
+
[PASS] test_pause_unpause() (gas: 145524)
|
|
109
|
+
[PASS] test_quoteOFT() (gas: 70757)
|
|
110
|
+
[PASS] test_quoteOFT_GloballyDisabled() (gas: 80605)
|
|
111
|
+
[PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59240)
|
|
112
|
+
[PASS] test_quoteOFT_Paused() (gas: 56637)
|
|
113
|
+
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 200448)
|
|
114
|
+
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 242784)
|
|
115
|
+
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 198099, ~: 197912)
|
|
116
|
+
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84299)
|
|
117
|
+
[PASS] test_rateLimit_Inflow() (gas: 132710)
|
|
118
|
+
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 159652)
|
|
119
|
+
[PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 176893)
|
|
120
|
+
[PASS] test_send() (gas: 465637)
|
|
121
|
+
[PASS] test_send_Revert_MsgInspection() (gas: 327696)
|
|
122
|
+
[PASS] test_send_Revert_OnlyAltToken() (gas: 241148)
|
|
123
|
+
[PASS] test_send_WithFee() (gas: 516566)
|
|
124
|
+
[PASS] test_setFeeDeposit() (gas: 28423)
|
|
125
|
+
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22583)
|
|
126
|
+
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38925, ~: 39012)
|
|
127
|
+
Suite result: ok. 32 passed; 0 failed; 0 skipped; finished in 615.62ms (1.51s CPU time)
|
|
128
|
+
|
|
129
|
+
Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACTest
|
|
130
|
+
[PASS] test_credit() (gas: 89871)
|
|
131
|
+
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93312, ~: 93303)
|
|
132
|
+
[PASS] test_debit() (gas: 98327)
|
|
133
|
+
[PASS] test_debit_Dust() (gas: 139747)
|
|
134
|
+
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 141996, ~: 143461)
|
|
135
|
+
[PASS] test_debit_PushesFees() (gas: 165796)
|
|
136
|
+
[PASS] test_debit_Revert_SlippageExceeded() (gas: 131894)
|
|
137
|
+
[PASS] test_debit_SmallAmount_DustOnly() (gas: 139811)
|
|
138
|
+
[PASS] test_debit_WithFee() (gas: 165270)
|
|
139
|
+
[PASS] test_debit_WithFee_Dust() (gas: 165884)
|
|
140
|
+
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 169090, ~: 171204)
|
|
141
|
+
[PASS] test_initialize() (gas: 24722)
|
|
142
|
+
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
|
|
143
|
+
[PASS] test_pause_unpause() (gas: 130467)
|
|
144
|
+
[PASS] test_quoteOFT() (gas: 70712)
|
|
145
|
+
[PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
|
|
146
|
+
[PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59195)
|
|
147
|
+
[PASS] test_quoteOFT_Paused() (gas: 56570)
|
|
148
|
+
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 185657)
|
|
149
|
+
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 233398)
|
|
150
|
+
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 200465, ~: 200299)
|
|
151
|
+
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84276)
|
|
152
|
+
[PASS] test_rateLimit_Inflow() (gas: 108736)
|
|
153
|
+
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
|
|
154
|
+
[PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 179369)
|
|
155
|
+
[PASS] test_send() (gas: 400518)
|
|
156
|
+
[PASS] test_send_Revert_MsgInspection() (gas: 308871)
|
|
157
|
+
[PASS] test_send_WithFee() (gas: 477338)
|
|
158
|
+
[PASS] test_setFeeDeposit() (gas: 28359)
|
|
159
|
+
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
|
|
160
|
+
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38851, ~: 38967)
|
|
161
|
+
Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 628.41ms (2.11s CPU time)
|
|
59
162
|
|
|
60
163
|
Ran 32 tests for test/OFTBurnMintExtendedRBACAlt.t.sol:OFTBurnMintExtendedRBACAltTest
|
|
61
164
|
[PASS] test_credit() (gas: 89871)
|
|
62
|
-
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ:
|
|
165
|
+
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93108, ~: 93303)
|
|
63
166
|
[PASS] test_debit() (gas: 98327)
|
|
64
167
|
[PASS] test_debit_Dust() (gas: 141836)
|
|
65
|
-
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ:
|
|
168
|
+
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 144297, ~: 145461)
|
|
66
169
|
[PASS] test_debit_PushesFees() (gas: 167796)
|
|
67
170
|
[PASS] test_debit_Revert_SlippageExceeded() (gas: 133872)
|
|
68
171
|
[PASS] test_debit_SmallAmount_DustOnly() (gas: 141789)
|
|
69
172
|
[PASS] test_debit_WithFee() (gas: 165270)
|
|
70
173
|
[PASS] test_debit_WithFee_Dust() (gas: 167884)
|
|
71
|
-
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ:
|
|
174
|
+
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 170906, ~: 173204)
|
|
72
175
|
[PASS] test_initialize() (gas: 24700)
|
|
73
176
|
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
|
|
74
177
|
[PASS] test_pause_unpause() (gas: 132067)
|
|
@@ -78,7 +181,7 @@ Ran 32 tests for test/OFTBurnMintExtendedRBACAlt.t.sol:OFTBurnMintExtendedRBACAl
|
|
|
78
181
|
[PASS] test_quoteOFT_Paused() (gas: 56570)
|
|
79
182
|
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 187257)
|
|
80
183
|
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 235398)
|
|
81
|
-
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ:
|
|
184
|
+
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 202493, ~: 202299)
|
|
82
185
|
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84254)
|
|
83
186
|
[PASS] test_rateLimit_Inflow() (gas: 108824)
|
|
84
187
|
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 159696)
|
|
@@ -89,21 +192,21 @@ Ran 32 tests for test/OFTBurnMintExtendedRBACAlt.t.sol:OFTBurnMintExtendedRBACAl
|
|
|
89
192
|
[PASS] test_send_WithFee() (gas: 493959)
|
|
90
193
|
[PASS] test_setFeeDeposit() (gas: 28445)
|
|
91
194
|
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
|
|
92
|
-
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ:
|
|
93
|
-
Suite result: ok. 32 passed; 0 failed; 0 skipped; finished in
|
|
195
|
+
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38894, ~: 39034)
|
|
196
|
+
Suite result: ok. 32 passed; 0 failed; 0 skipped; finished in 641.33ms (2.16s CPU time)
|
|
94
197
|
|
|
95
198
|
Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACCrosschainTest
|
|
96
199
|
[PASS] test_credit() (gas: 89874)
|
|
97
|
-
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ:
|
|
200
|
+
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93106, ~: 93306)
|
|
98
201
|
[PASS] test_debit() (gas: 98332)
|
|
99
202
|
[PASS] test_debit_Dust() (gas: 139763)
|
|
100
|
-
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ:
|
|
203
|
+
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 142580, ~: 143477)
|
|
101
204
|
[PASS] test_debit_PushesFees() (gas: 165812)
|
|
102
205
|
[PASS] test_debit_Revert_SlippageExceeded() (gas: 131894)
|
|
103
206
|
[PASS] test_debit_SmallAmount_DustOnly() (gas: 139827)
|
|
104
207
|
[PASS] test_debit_WithFee() (gas: 165286)
|
|
105
208
|
[PASS] test_debit_WithFee_Dust() (gas: 165900)
|
|
106
|
-
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ:
|
|
209
|
+
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 169438, ~: 171220)
|
|
107
210
|
[PASS] test_initialize() (gas: 24722)
|
|
108
211
|
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
|
|
109
212
|
[PASS] test_pause_unpause() (gas: 130472)
|
|
@@ -113,7 +216,7 @@ Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACCross
|
|
|
113
216
|
[PASS] test_quoteOFT_Paused() (gas: 56570)
|
|
114
217
|
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 185667)
|
|
115
218
|
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 233430)
|
|
116
|
-
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ:
|
|
219
|
+
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 200484, ~: 200315)
|
|
117
220
|
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84276)
|
|
118
221
|
[PASS] test_rateLimit_Inflow() (gas: 108739)
|
|
119
222
|
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
|
|
@@ -123,56 +226,57 @@ Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACCross
|
|
|
123
226
|
[PASS] test_send_WithFee() (gas: 477358)
|
|
124
227
|
[PASS] test_setFeeDeposit() (gas: 28359)
|
|
125
228
|
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
|
|
126
|
-
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ:
|
|
127
|
-
Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in
|
|
229
|
+
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38895, ~: 38967)
|
|
230
|
+
Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 641.94ms (2.03s CPU time)
|
|
128
231
|
|
|
129
|
-
Ran
|
|
130
|
-
[PASS] test_credit() (gas:
|
|
131
|
-
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ:
|
|
132
|
-
[PASS] test_debit() (gas:
|
|
133
|
-
[PASS] test_debit_Dust() (gas:
|
|
134
|
-
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ:
|
|
135
|
-
[PASS] test_debit_PushesFees() (gas:
|
|
136
|
-
[PASS] test_debit_Revert_SlippageExceeded() (gas:
|
|
137
|
-
[PASS] test_debit_SmallAmount_DustOnly() (gas:
|
|
138
|
-
[PASS]
|
|
139
|
-
[PASS]
|
|
140
|
-
[PASS]
|
|
141
|
-
[PASS]
|
|
232
|
+
Ran 32 tests for test/OFTBurnSelfMintExtendedRBAC.t.sol:OFTBurnSelfMintExtendedRBACTest
|
|
233
|
+
[PASS] test_credit() (gas: 89873)
|
|
234
|
+
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 92950, ~: 93305)
|
|
235
|
+
[PASS] test_debit() (gas: 120710)
|
|
236
|
+
[PASS] test_debit_Dust() (gas: 143616)
|
|
237
|
+
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 145758, ~: 146486)
|
|
238
|
+
[PASS] test_debit_PushesFees() (gas: 164384)
|
|
239
|
+
[PASS] test_debit_Revert_SlippageExceeded() (gas: 131872)
|
|
240
|
+
[PASS] test_debit_SmallAmount_DustOnly() (gas: 143579)
|
|
241
|
+
[PASS] test_debit_TokensTransferredToSelfThenBurned() (gas: 122517)
|
|
242
|
+
[PASS] test_debit_WithFee() (gas: 166449)
|
|
243
|
+
[PASS] test_debit_WithFee_Dust() (gas: 164455)
|
|
244
|
+
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 166686, ~: 168645)
|
|
245
|
+
[PASS] test_initialize() (gas: 24700)
|
|
142
246
|
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
|
|
143
|
-
[PASS] test_pause_unpause() (gas:
|
|
247
|
+
[PASS] test_pause_unpause() (gas: 151598)
|
|
144
248
|
[PASS] test_quoteOFT() (gas: 70712)
|
|
145
249
|
[PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
|
|
146
|
-
[PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas:
|
|
250
|
+
[PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59173)
|
|
147
251
|
[PASS] test_quoteOFT_Paused() (gas: 56570)
|
|
148
|
-
[PASS] test_quoteOFT_RateLimiterUsage() (gas:
|
|
149
|
-
[PASS] test_quoteOFT_RateLimiterWithFee() (gas:
|
|
150
|
-
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ:
|
|
151
|
-
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas:
|
|
152
|
-
[PASS] test_rateLimit_Inflow() (gas:
|
|
252
|
+
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 242240)
|
|
253
|
+
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 268746)
|
|
254
|
+
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 192081, ~: 191921)
|
|
255
|
+
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84254)
|
|
256
|
+
[PASS] test_rateLimit_Inflow() (gas: 108738)
|
|
153
257
|
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
|
|
154
|
-
[PASS] test_rateLimit_Outflow_WithFee_Success() (gas:
|
|
155
|
-
[PASS] test_send() (gas:
|
|
156
|
-
[PASS] test_send_Revert_MsgInspection() (gas:
|
|
157
|
-
[PASS] test_send_WithFee() (gas:
|
|
158
|
-
[PASS] test_setFeeDeposit() (gas:
|
|
258
|
+
[PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 175225)
|
|
259
|
+
[PASS] test_send() (gas: 387136)
|
|
260
|
+
[PASS] test_send_Revert_MsgInspection() (gas: 335267)
|
|
261
|
+
[PASS] test_send_WithFee() (gas: 462592)
|
|
262
|
+
[PASS] test_setFeeDeposit() (gas: 28445)
|
|
159
263
|
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
|
|
160
|
-
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ:
|
|
161
|
-
Suite result: ok.
|
|
264
|
+
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38947, ~: 39034)
|
|
265
|
+
Suite result: ok. 32 passed; 0 failed; 0 skipped; finished in 700.21ms (1.71s CPU time)
|
|
162
266
|
|
|
163
267
|
Ran 33 tests for test/OFTBurnSelfMintExtendedRBACAlt.t.sol:OFTBurnSelfMintExtendedRBACAltTest
|
|
164
268
|
[PASS] test_credit() (gas: 89873)
|
|
165
|
-
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ:
|
|
269
|
+
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 92858, ~: 93305)
|
|
166
270
|
[PASS] test_debit() (gas: 120710)
|
|
167
271
|
[PASS] test_debit_Dust() (gas: 145216)
|
|
168
|
-
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ:
|
|
272
|
+
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 147741, ~: 148086)
|
|
169
273
|
[PASS] test_debit_PushesFees() (gas: 165984)
|
|
170
274
|
[PASS] test_debit_Revert_SlippageExceeded() (gas: 133872)
|
|
171
275
|
[PASS] test_debit_SmallAmount_DustOnly() (gas: 145179)
|
|
172
276
|
[PASS] test_debit_TokensTransferredToSelfThenBurned() (gas: 122500)
|
|
173
277
|
[PASS] test_debit_WithFee() (gas: 166449)
|
|
174
278
|
[PASS] test_debit_WithFee_Dust() (gas: 166055)
|
|
175
|
-
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ:
|
|
279
|
+
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 168699, ~: 170245)
|
|
176
280
|
[PASS] test_initialize() (gas: 24700)
|
|
177
281
|
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
|
|
178
282
|
[PASS] test_pause_unpause() (gas: 153198)
|
|
@@ -182,7 +286,7 @@ Ran 33 tests for test/OFTBurnSelfMintExtendedRBACAlt.t.sol:OFTBurnSelfMintExtend
|
|
|
182
286
|
[PASS] test_quoteOFT_Paused() (gas: 56570)
|
|
183
287
|
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 243840)
|
|
184
288
|
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 270346)
|
|
185
|
-
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ:
|
|
289
|
+
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 193674, ~: 193521)
|
|
186
290
|
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84254)
|
|
187
291
|
[PASS] test_rateLimit_Inflow() (gas: 108826)
|
|
188
292
|
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 159696)
|
|
@@ -193,58 +297,23 @@ Ran 33 tests for test/OFTBurnSelfMintExtendedRBACAlt.t.sol:OFTBurnSelfMintExtend
|
|
|
193
297
|
[PASS] test_send_WithFee() (gas: 504694)
|
|
194
298
|
[PASS] test_setFeeDeposit() (gas: 28445)
|
|
195
299
|
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
|
|
196
|
-
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ:
|
|
197
|
-
Suite result: ok. 33 passed; 0 failed; 0 skipped; finished in
|
|
198
|
-
|
|
199
|
-
Ran 32 tests for test/OFTLockUnlockExtendedRBACAlt.t.sol:OFTLockUnlockExtendedRBACAltTest
|
|
200
|
-
[PASS] test_credit() (gas: 91882)
|
|
201
|
-
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 95308, ~: 95314)
|
|
202
|
-
[PASS] test_debit() (gas: 113036)
|
|
203
|
-
[PASS] test_debit_Dust() (gas: 137551)
|
|
204
|
-
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 139602, ~: 141029)
|
|
205
|
-
[PASS] test_debit_PushesFees() (gas: 163342)
|
|
206
|
-
[PASS] test_debit_Revert_SlippageExceeded() (gas: 133828)
|
|
207
|
-
[PASS] test_debit_SmallAmount_DustOnly() (gas: 137513)
|
|
208
|
-
[PASS] test_debit_WithFee() (gas: 163924)
|
|
209
|
-
[PASS] test_debit_WithFee_Dust() (gas: 163430)
|
|
210
|
-
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 163208, ~: 162567)
|
|
211
|
-
[PASS] test_initialize() (gas: 24656)
|
|
212
|
-
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92822)
|
|
213
|
-
[PASS] test_pause_unpause() (gas: 145524)
|
|
214
|
-
[PASS] test_quoteOFT() (gas: 70757)
|
|
215
|
-
[PASS] test_quoteOFT_GloballyDisabled() (gas: 80605)
|
|
216
|
-
[PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59240)
|
|
217
|
-
[PASS] test_quoteOFT_Paused() (gas: 56637)
|
|
218
|
-
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 200448)
|
|
219
|
-
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 242784)
|
|
220
|
-
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 198111, ~: 197912)
|
|
221
|
-
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84299)
|
|
222
|
-
[PASS] test_rateLimit_Inflow() (gas: 132710)
|
|
223
|
-
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 159652)
|
|
224
|
-
[PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 176893)
|
|
225
|
-
[PASS] test_send() (gas: 465637)
|
|
226
|
-
[PASS] test_send_Revert_MsgInspection() (gas: 327696)
|
|
227
|
-
[PASS] test_send_Revert_OnlyAltToken() (gas: 241148)
|
|
228
|
-
[PASS] test_send_WithFee() (gas: 516566)
|
|
229
|
-
[PASS] test_setFeeDeposit() (gas: 28423)
|
|
230
|
-
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22583)
|
|
231
|
-
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38887, ~: 39012)
|
|
232
|
-
Suite result: ok. 32 passed; 0 failed; 0 skipped; finished in 778.30ms (2.22s CPU time)
|
|
300
|
+
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38957, ~: 39034)
|
|
301
|
+
Suite result: ok. 33 passed; 0 failed; 0 skipped; finished in 699.72ms (2.42s CPU time)
|
|
233
302
|
|
|
234
303
|
Ran 39 tests for test/OFTNativeExtendedRBAC.t.sol:OFTNativeExtendedRBACTest
|
|
235
304
|
[PASS] test_approvalRequired() (gas: 13426)
|
|
236
305
|
[PASS] test_credit() (gas: 62369)
|
|
237
|
-
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ:
|
|
306
|
+
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 65801, ~: 65954)
|
|
238
307
|
[PASS] test_credit_Revert_CreditFailed() (gas: 91478)
|
|
239
308
|
[PASS] test_debit() (gas: 36831)
|
|
240
309
|
[PASS] test_debit_Dust() (gas: 76272)
|
|
241
|
-
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ:
|
|
310
|
+
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 79528, ~: 79886)
|
|
242
311
|
[PASS] test_debit_PushesFees() (gas: 101339)
|
|
243
312
|
[PASS] test_debit_Revert_SlippageExceeded() (gas: 54229)
|
|
244
313
|
[PASS] test_debit_SmallAmount_DustOnly() (gas: 76226)
|
|
245
314
|
[PASS] test_debit_WithFee() (gas: 101145)
|
|
246
315
|
[PASS] test_debit_WithFee_Dust() (gas: 102376)
|
|
247
|
-
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ:
|
|
316
|
+
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 105180, ~: 107585)
|
|
248
317
|
[PASS] test_initialize() (gas: 22406)
|
|
249
318
|
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92778)
|
|
250
319
|
[PASS] test_pause_unpause() (gas: 61117)
|
|
@@ -254,7 +323,7 @@ Ran 39 tests for test/OFTNativeExtendedRBAC.t.sol:OFTNativeExtendedRBACTest
|
|
|
254
323
|
[PASS] test_quoteOFT_Paused() (gas: 56703)
|
|
255
324
|
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 97744)
|
|
256
325
|
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 160139)
|
|
257
|
-
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ:
|
|
326
|
+
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 137893, ~: 137703)
|
|
258
327
|
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84387)
|
|
259
328
|
[PASS] test_rateLimit_Inflow() (gas: 87713)
|
|
260
329
|
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 80123)
|
|
@@ -269,78 +338,9 @@ Ran 39 tests for test/OFTNativeExtendedRBAC.t.sol:OFTNativeExtendedRBACTest
|
|
|
269
338
|
[PASS] test_send_WithFee() (gas: 415240)
|
|
270
339
|
[PASS] test_setFeeDeposit() (gas: 28425)
|
|
271
340
|
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22627)
|
|
272
|
-
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ:
|
|
341
|
+
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38907, ~: 39011)
|
|
273
342
|
[PASS] test_token() (gas: 13483)
|
|
274
|
-
Suite result: ok. 39 passed; 0 failed; 0 skipped; finished in
|
|
275
|
-
|
|
276
|
-
Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACRedeemIssueTest
|
|
277
|
-
[PASS] test_credit() (gas: 89907)
|
|
278
|
-
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93065, ~: 93339)
|
|
279
|
-
[PASS] test_debit() (gas: 98305)
|
|
280
|
-
[PASS] test_debit_Dust() (gas: 139763)
|
|
281
|
-
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 142347, ~: 143477)
|
|
282
|
-
[PASS] test_debit_PushesFees() (gas: 165812)
|
|
283
|
-
[PASS] test_debit_Revert_SlippageExceeded() (gas: 131894)
|
|
284
|
-
[PASS] test_debit_SmallAmount_DustOnly() (gas: 139827)
|
|
285
|
-
[PASS] test_debit_WithFee() (gas: 165286)
|
|
286
|
-
[PASS] test_debit_WithFee_Dust() (gas: 165900)
|
|
287
|
-
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 168555, ~: 171220)
|
|
288
|
-
[PASS] test_initialize() (gas: 24722)
|
|
289
|
-
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
|
|
290
|
-
[PASS] test_pause_unpause() (gas: 130445)
|
|
291
|
-
[PASS] test_quoteOFT() (gas: 70712)
|
|
292
|
-
[PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
|
|
293
|
-
[PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59195)
|
|
294
|
-
[PASS] test_quoteOFT_Paused() (gas: 56570)
|
|
295
|
-
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 185614)
|
|
296
|
-
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 233430)
|
|
297
|
-
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 200490, ~: 200315)
|
|
298
|
-
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84276)
|
|
299
|
-
[PASS] test_rateLimit_Inflow() (gas: 108772)
|
|
300
|
-
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
|
|
301
|
-
[PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 179385)
|
|
302
|
-
[PASS] test_send() (gas: 400494)
|
|
303
|
-
[PASS] test_send_Revert_MsgInspection() (gas: 308847)
|
|
304
|
-
[PASS] test_send_WithFee() (gas: 477358)
|
|
305
|
-
[PASS] test_setFeeDeposit() (gas: 28359)
|
|
306
|
-
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
|
|
307
|
-
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38875, ~: 38967)
|
|
308
|
-
Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 778.39ms (1.73s CPU time)
|
|
309
|
-
|
|
310
|
-
Ran 32 tests for test/OFTBurnSelfMintExtendedRBAC.t.sol:OFTBurnSelfMintExtendedRBACTest
|
|
311
|
-
[PASS] test_credit() (gas: 89873)
|
|
312
|
-
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93124, ~: 93305)
|
|
313
|
-
[PASS] test_debit() (gas: 120710)
|
|
314
|
-
[PASS] test_debit_Dust() (gas: 143616)
|
|
315
|
-
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 145994, ~: 146486)
|
|
316
|
-
[PASS] test_debit_PushesFees() (gas: 164384)
|
|
317
|
-
[PASS] test_debit_Revert_SlippageExceeded() (gas: 131872)
|
|
318
|
-
[PASS] test_debit_SmallAmount_DustOnly() (gas: 143579)
|
|
319
|
-
[PASS] test_debit_TokensTransferredToSelfThenBurned() (gas: 122517)
|
|
320
|
-
[PASS] test_debit_WithFee() (gas: 166449)
|
|
321
|
-
[PASS] test_debit_WithFee_Dust() (gas: 164455)
|
|
322
|
-
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 166715, ~: 168645)
|
|
323
|
-
[PASS] test_initialize() (gas: 24700)
|
|
324
|
-
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
|
|
325
|
-
[PASS] test_pause_unpause() (gas: 151598)
|
|
326
|
-
[PASS] test_quoteOFT() (gas: 70712)
|
|
327
|
-
[PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
|
|
328
|
-
[PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59173)
|
|
329
|
-
[PASS] test_quoteOFT_Paused() (gas: 56570)
|
|
330
|
-
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 242240)
|
|
331
|
-
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 268746)
|
|
332
|
-
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 192078, ~: 191921)
|
|
333
|
-
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84254)
|
|
334
|
-
[PASS] test_rateLimit_Inflow() (gas: 108738)
|
|
335
|
-
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
|
|
336
|
-
[PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 175225)
|
|
337
|
-
[PASS] test_send() (gas: 387136)
|
|
338
|
-
[PASS] test_send_Revert_MsgInspection() (gas: 335267)
|
|
339
|
-
[PASS] test_send_WithFee() (gas: 462592)
|
|
340
|
-
[PASS] test_setFeeDeposit() (gas: 28445)
|
|
341
|
-
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
|
|
342
|
-
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38952, ~: 39034)
|
|
343
|
-
Suite result: ok. 32 passed; 0 failed; 0 skipped; finished in 805.00ms (1.99s CPU time)
|
|
343
|
+
Suite result: ok. 39 passed; 0 failed; 0 skipped; finished in 698.70ms (1.19s CPU time)
|
|
344
344
|
|
|
345
|
-
Ran 9 test suites in
|
|
346
|
-
⏳ forge test:
|
|
345
|
+
Ran 9 test suites in 849.88ms (5.75s CPU time): 292 tests passed, 0 failed, 0 skipped (292 total tests)
|
|
346
|
+
⏳ forge test: 44.189s
|
package/foundry.toml
CHANGED
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.121",
|
|
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/oapp-upgradeable-evm-contracts": "0.2.
|
|
19
|
-
"@layerzerolabs/
|
|
20
|
-
"@layerzerolabs/
|
|
21
|
-
"@layerzerolabs/test-utils-evm-contracts": "0.2.
|
|
22
|
-
"@layerzerolabs/tsup-configuration": "0.2.
|
|
23
|
-
"@layerzerolabs/typescript-configuration": "0.2.
|
|
24
|
-
"@layerzerolabs/
|
|
25
|
-
"@layerzerolabs/utils-evm-contracts": "0.2.
|
|
26
|
-
"@layerzerolabs/
|
|
17
|
+
"@layerzerolabs/oapp-evm-contracts": "0.2.121",
|
|
18
|
+
"@layerzerolabs/oapp-upgradeable-evm-contracts": "0.2.121",
|
|
19
|
+
"@layerzerolabs/solhint-configuration": "0.2.121",
|
|
20
|
+
"@layerzerolabs/oft-evm-contracts": "0.2.121",
|
|
21
|
+
"@layerzerolabs/test-utils-evm-contracts": "0.2.121",
|
|
22
|
+
"@layerzerolabs/tsup-configuration": "0.2.121",
|
|
23
|
+
"@layerzerolabs/typescript-configuration": "0.2.121",
|
|
24
|
+
"@layerzerolabs/utils-evm-contracts": "0.2.121",
|
|
25
|
+
"@layerzerolabs/utils-upgradeable-evm-contracts": "0.2.121",
|
|
26
|
+
"@layerzerolabs/vm-tooling-evm": "0.2.121"
|
|
27
27
|
},
|
|
28
28
|
"publishConfig": {
|
|
29
29
|
"access": "public",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"compile:evm": "pnpm lz-tool --env TS_NODE_COMPILER_OPTIONS='{\"module\":\"CommonJS\",\"moduleResolution\":\"node\"}' hardhat compile --config /hardhat/hardhat.default.config.js",
|
|
42
42
|
"compile:tron": "pnpm lz-tool --env TS_NODE_COMPILER_OPTIONS='{\"module\":\"CommonJS\",\"moduleResolution\":\"node\"}' hardhat compile --config /hardhat/hardhat.default.config.js --network tron-mainnet",
|
|
43
43
|
"compile:zksync": "pnpm lz-tool --env TS_NODE_COMPILER_OPTIONS='{\"module\":\"CommonJS\",\"moduleResolution\":\"node\"}' hardhat compile --config /hardhat/hardhat.default.config.js --network zksync-mainnet",
|
|
44
|
-
"generated:clean": "rm -rf ./artifacts ./artifacts-tron ./artifacts-zk ./hh-cache ./hh-cache-tron ./hh-cache-zk",
|
|
44
|
+
"generated:clean": "rm -rf ./artifacts ./artifacts-tron ./artifacts-zk ./hh-cache ./hh-cache-tron ./hh-cache-zk ./out ./cache",
|
|
45
45
|
"lint": "solhint --config solhint.config.js 'contracts/**/*.sol' 'test/**/*.sol' --fix --noPrompt",
|
|
46
46
|
"test": "pnpm lz-tool forge test",
|
|
47
47
|
"test:snapshot:check": "pnpm exec turbo-snapshot check",
|