@layerzerolabs/oft-upgradeable-evm-contracts 1.2.9 → 1.2.11
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 +19 -19
- package/.turbo/turbo-test.log +182 -182
- package/package.json +9 -9
package/.turbo/turbo-build.log
CHANGED
|
@@ -11,23 +11,23 @@
|
|
|
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 scoped workspace: /tmp/lz-scoped-workspace-
|
|
14
|
+
📦 Using scoped workspace: /tmp/lz-scoped-workspace-hzlk3e
|
|
15
15
|
📦 Copied 13 workspace package source(s)
|
|
16
16
|
📦 No scoped-workspace pruner configured; using unpruned package-level source copy fallback.
|
|
17
|
-
(node:
|
|
17
|
+
(node:208154) [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-scoped-workspace-
|
|
22
|
+
-v /tmp/lz-scoped-workspace-hzlk3e:/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
|
|
27
|
+
$ docker container rm baef7d2e1417fe11b602f5e341af43d81af6d7c7cf79b32f4baf6c40241d66ce
|
|
28
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)
|
|
29
29
|
👤 Running container as UID:GID 1001:1001
|
|
30
|
-
$ docker run --platform linux/amd64 --rm --add-host=host.docker.internal:host-gateway -e LOCAL_UID=1001 -e LOCAL_GID=1001 -v /tmp/lz-scoped-workspace-
|
|
30
|
+
$ docker run --platform linux/amd64 --rm --add-host=host.docker.internal:host-gateway -e LOCAL_UID=1001 -e LOCAL_GID=1001 -v /tmp/lz-scoped-workspace-hzlk3e:/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
|
|
31
31
|
Compiling 76 Solidity files
|
|
32
32
|
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.
|
|
33
33
|
--> contracts/extended/OFTBurnMintExtendedRBACUpgradeable.sol:28:1:
|
|
@@ -79,7 +79,7 @@ Warning: Contract code size is 27524 bytes and exceeds 24576 bytes (a limit intr
|
|
|
79
79
|
|
|
80
80
|
|
|
81
81
|
Successfully compiled 76 Solidity files
|
|
82
|
-
⏳ hardhat compile --config /hardhat/hardhat.default.config.js:
|
|
82
|
+
⏳ hardhat compile --config /hardhat/hardhat.default.config.js: 8.933s
|
|
83
83
|
WARN Issue while reading "/home/runner/work/monorepo-internal/monorepo-internal/.npmrc". Failed to replace env in config: ${NPM_TOKEN}
|
|
84
84
|
|
|
85
85
|
> @layerzerolabs/oft-upgradeable-evm-contracts@0.0.0 compile:zksync /home/runner/work/monorepo-internal/monorepo-internal/apps/oft-app/contracts/evm/upgradeable
|
|
@@ -88,29 +88,29 @@ Successfully compiled 76 Solidity files
|
|
|
88
88
|
WARN Issue while reading "/home/runner/work/monorepo-internal/monorepo-internal/.npmrc". Failed to replace env in config: ${NPM_TOKEN}
|
|
89
89
|
✅ forge-1.3.6-hardhat-2.26.3
|
|
90
90
|
🔧 hardhat version: 2.26.3
|
|
91
|
-
📦 Using scoped workspace: /tmp/lz-scoped-workspace-
|
|
91
|
+
📦 Using scoped workspace: /tmp/lz-scoped-workspace-mQwS8e
|
|
92
92
|
📦 Copied 13 workspace package source(s)
|
|
93
93
|
📦 No scoped-workspace pruner configured; using unpruned package-level source copy fallback.
|
|
94
|
-
(node:
|
|
94
|
+
(node:220223) [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.
|
|
95
95
|
Reparsing as ES module because module syntax was detected. This incurs a performance overhead.
|
|
96
96
|
To eliminate this warning, add "type": "module" to /home/runner/work/monorepo-internal/monorepo-internal/package.json.
|
|
97
97
|
(Use `node --trace-warnings ...` to show where the warning was created)
|
|
98
98
|
📦 Docker volumes:
|
|
99
|
-
-v /tmp/lz-scoped-workspace-
|
|
99
|
+
-v /tmp/lz-scoped-workspace-mQwS8e:/workspace
|
|
100
100
|
-v /home/runner/work/monorepo-internal/monorepo-internal/apps/oft-app/contracts/evm/upgradeable:/workspace/apps/oft-app/contracts/evm/upgradeable
|
|
101
101
|
-v /home/runner/work/monorepo-internal/monorepo-internal/node_modules/.pnpm:/workspace/node_modules/.pnpm:ro
|
|
102
102
|
$ 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
|
|
103
103
|
$ 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
|
|
104
|
-
$ docker container rm
|
|
104
|
+
$ docker container rm 3513a183f8cd2be871ca19f61e277a285f34f33b151bec3473de24116c40aac7
|
|
105
105
|
✅ 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)
|
|
106
106
|
👤 Running container as UID:GID 1001:1001
|
|
107
|
-
$ docker run --platform linux/amd64 --rm --add-host=host.docker.internal:host-gateway -e LOCAL_UID=1001 -e LOCAL_GID=1001 -v /tmp/lz-scoped-workspace-
|
|
107
|
+
$ docker run --platform linux/amd64 --rm --add-host=host.docker.internal:host-gateway -e LOCAL_UID=1001 -e LOCAL_GID=1001 -v /tmp/lz-scoped-workspace-mQwS8e:/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
|
|
108
108
|
The solc version 1.3.22 is deprecated and will be removed for security reasons soon. Please update to v1.4.0 or newer.
|
|
109
109
|
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.
|
|
110
110
|
Compiling contracts for ZKsync Era with zksolc v1.3.22 and zkvm-solc v0.8.23-1.0.1
|
|
111
111
|
Compiling 76 Solidity files
|
|
112
112
|
Successfully compiled 76 Solidity files
|
|
113
|
-
⏳ hardhat compile --config /hardhat/hardhat.default.config.js --network zksync-mainnet: 1:
|
|
113
|
+
⏳ hardhat compile --config /hardhat/hardhat.default.config.js --network zksync-mainnet: 1:05.580 (m:ss.mmm)
|
|
114
114
|
WARN Issue while reading "/home/runner/work/monorepo-internal/monorepo-internal/.npmrc". Failed to replace env in config: ${NPM_TOKEN}
|
|
115
115
|
|
|
116
116
|
> @layerzerolabs/oft-upgradeable-evm-contracts@0.0.0 compile:tron /home/runner/work/monorepo-internal/monorepo-internal/apps/oft-app/contracts/evm/upgradeable
|
|
@@ -119,26 +119,26 @@ Successfully compiled 76 Solidity files
|
|
|
119
119
|
WARN Issue while reading "/home/runner/work/monorepo-internal/monorepo-internal/.npmrc". Failed to replace env in config: ${NPM_TOKEN}
|
|
120
120
|
✅ forge-1.3.6-hardhat-2.26.3
|
|
121
121
|
🔧 hardhat version: 2.26.3
|
|
122
|
-
📦 Using scoped workspace: /tmp/lz-scoped-workspace-
|
|
122
|
+
📦 Using scoped workspace: /tmp/lz-scoped-workspace-xgCdqS
|
|
123
123
|
📦 Copied 13 workspace package source(s)
|
|
124
124
|
📦 No scoped-workspace pruner configured; using unpruned package-level source copy fallback.
|
|
125
|
-
(node:
|
|
125
|
+
(node:258859) [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.
|
|
126
126
|
Reparsing as ES module because module syntax was detected. This incurs a performance overhead.
|
|
127
127
|
To eliminate this warning, add "type": "module" to /home/runner/work/monorepo-internal/monorepo-internal/package.json.
|
|
128
128
|
(Use `node --trace-warnings ...` to show where the warning was created)
|
|
129
129
|
📦 Docker volumes:
|
|
130
|
-
-v /tmp/lz-scoped-workspace-
|
|
130
|
+
-v /tmp/lz-scoped-workspace-xgCdqS:/workspace
|
|
131
131
|
-v /home/runner/work/monorepo-internal/monorepo-internal/apps/oft-app/contracts/evm/upgradeable:/workspace/apps/oft-app/contracts/evm/upgradeable
|
|
132
132
|
-v /home/runner/work/monorepo-internal/monorepo-internal/node_modules/.pnpm:/workspace/node_modules/.pnpm:ro
|
|
133
133
|
$ 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
|
|
134
134
|
$ 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
|
|
135
|
-
$ docker container rm
|
|
135
|
+
$ docker container rm 752cce81c7c84ac9db45f6e3cc73709ba8773780e223926b6c5b6424c9c552ac
|
|
136
136
|
✅ 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)
|
|
137
137
|
👤 Running container as UID:GID 1001:1001
|
|
138
|
-
$ docker run --platform linux/amd64 --rm --add-host=host.docker.internal:host-gateway -e LOCAL_UID=1001 -e LOCAL_GID=1001 -v /tmp/lz-scoped-workspace-
|
|
138
|
+
$ docker run --platform linux/amd64 --rm --add-host=host.docker.internal:host-gateway -e LOCAL_UID=1001 -e LOCAL_GID=1001 -v /tmp/lz-scoped-workspace-xgCdqS:/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
|
|
139
139
|
detected tron network, replacing deployments extension with custom one
|
|
140
|
-
Compiling contracts with tron solc v0.8.23
|
|
141
140
|
Tron-solc v0.8.23 is unknown version, attempting anyway...
|
|
141
|
+
Compiling contracts with tron solc v0.8.23
|
|
142
142
|
Compiling 76 Solidity files
|
|
143
143
|
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.
|
|
144
144
|
--> contracts/extended/OFTBurnMintExtendedRBACUpgradeable.sol:28:1:
|
|
@@ -190,4 +190,4 @@ Warning: Contract code size is 29394 bytes and exceeds 24576 bytes (a limit intr
|
|
|
190
190
|
|
|
191
191
|
|
|
192
192
|
Successfully compiled 76 Solidity files
|
|
193
|
-
⏳ hardhat compile --config /hardhat/hardhat.default.config.js --network tron-mainnet:
|
|
193
|
+
⏳ hardhat compile --config /hardhat/hardhat.default.config.js --network tron-mainnet: 24.600s
|
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 scoped workspace: /tmp/lz-scoped-workspace-
|
|
7
|
+
📦 Using scoped workspace: /tmp/lz-scoped-workspace-XeLjPX
|
|
8
8
|
📦 Copied 13 workspace package source(s)
|
|
9
9
|
📦 No scoped-workspace pruner configured; using unpruned package-level source copy fallback.
|
|
10
|
-
(node:
|
|
10
|
+
(node:240831) [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-scoped-workspace-
|
|
15
|
+
-v /tmp/lz-scoped-workspace-XeLjPX:/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-scoped-workspace-
|
|
21
|
+
$ docker run --rm --add-host=host.docker.internal:host-gateway -e LOCAL_UID=1001 -e LOCAL_GID=1001 -v /tmp/lz-scoped-workspace-XeLjPX:/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 61.58s
|
|
24
24
|
Compiler run successful!
|
|
25
25
|
|
|
26
26
|
Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACRedeemIssueTest
|
|
27
27
|
[PASS] test_credit() (gas: 89907)
|
|
28
|
-
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ:
|
|
28
|
+
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93132, ~: 93339)
|
|
29
29
|
[PASS] test_debit() (gas: 98305)
|
|
30
30
|
[PASS] test_debit_Dust() (gas: 139763)
|
|
31
|
-
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ:
|
|
31
|
+
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 142565, ~: 143477)
|
|
32
32
|
[PASS] test_debit_PushesFees() (gas: 165812)
|
|
33
33
|
[PASS] test_debit_Revert_SlippageExceeded() (gas: 131894)
|
|
34
34
|
[PASS] test_debit_SmallAmount_DustOnly() (gas: 139827)
|
|
35
35
|
[PASS] test_debit_WithFee() (gas: 165286)
|
|
36
36
|
[PASS] test_debit_WithFee_Dust() (gas: 165900)
|
|
37
|
-
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ:
|
|
37
|
+
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 168848, ~: 171220)
|
|
38
38
|
[PASS] test_initialize() (gas: 24722)
|
|
39
39
|
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
|
|
40
40
|
[PASS] test_pause_unpause() (gas: 130445)
|
|
@@ -44,7 +44,7 @@ Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACRedee
|
|
|
44
44
|
[PASS] test_quoteOFT_Paused() (gas: 56570)
|
|
45
45
|
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 185614)
|
|
46
46
|
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 233430)
|
|
47
|
-
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ:
|
|
47
|
+
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 200489, ~: 200315)
|
|
48
48
|
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84276)
|
|
49
49
|
[PASS] test_rateLimit_Inflow() (gas: 108772)
|
|
50
50
|
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
|
|
@@ -54,21 +54,63 @@ Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACRedee
|
|
|
54
54
|
[PASS] test_send_WithFee() (gas: 477358)
|
|
55
55
|
[PASS] test_setFeeDeposit() (gas: 28359)
|
|
56
56
|
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
|
|
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, μ: 38880, ~: 38967)
|
|
58
|
+
Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 576.29ms (1.85s CPU time)
|
|
59
|
+
|
|
60
|
+
Ran 39 tests for test/OFTNativeExtendedRBAC.t.sol:OFTNativeExtendedRBACTest
|
|
61
|
+
[PASS] test_approvalRequired() (gas: 13426)
|
|
62
|
+
[PASS] test_credit() (gas: 62369)
|
|
63
|
+
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 65891, ~: 65954)
|
|
64
|
+
[PASS] test_credit_Revert_CreditFailed() (gas: 91478)
|
|
65
|
+
[PASS] test_debit() (gas: 36831)
|
|
66
|
+
[PASS] test_debit_Dust() (gas: 76272)
|
|
67
|
+
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 79490, ~: 79886)
|
|
68
|
+
[PASS] test_debit_PushesFees() (gas: 101339)
|
|
69
|
+
[PASS] test_debit_Revert_SlippageExceeded() (gas: 54229)
|
|
70
|
+
[PASS] test_debit_SmallAmount_DustOnly() (gas: 76226)
|
|
71
|
+
[PASS] test_debit_WithFee() (gas: 101145)
|
|
72
|
+
[PASS] test_debit_WithFee_Dust() (gas: 102376)
|
|
73
|
+
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 105795, ~: 107585)
|
|
74
|
+
[PASS] test_initialize() (gas: 22406)
|
|
75
|
+
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92778)
|
|
76
|
+
[PASS] test_pause_unpause() (gas: 61117)
|
|
77
|
+
[PASS] test_quoteOFT() (gas: 70779)
|
|
78
|
+
[PASS] test_quoteOFT_GloballyDisabled() (gas: 80649)
|
|
79
|
+
[PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59220)
|
|
80
|
+
[PASS] test_quoteOFT_Paused() (gas: 56703)
|
|
81
|
+
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 97744)
|
|
82
|
+
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 160139)
|
|
83
|
+
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 137874, ~: 137703)
|
|
84
|
+
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84387)
|
|
85
|
+
[PASS] test_rateLimit_Inflow() (gas: 87713)
|
|
86
|
+
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 80123)
|
|
87
|
+
[PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 116713)
|
|
88
|
+
[PASS] test_send() (gas: 352734)
|
|
89
|
+
[PASS] test_send_PushesFees() (gas: 415282)
|
|
90
|
+
[PASS] test_send_Revert_FeeTransferFailed() (gas: 157067)
|
|
91
|
+
[PASS] test_send_Revert_IncorrectMessageValue_TooHigh() (gas: 30287)
|
|
92
|
+
[PASS] test_send_Revert_IncorrectMessageValue_TooLow() (gas: 30257)
|
|
93
|
+
[PASS] test_send_Revert_IncorrectMessageValue_ZeroValue() (gas: 22753)
|
|
94
|
+
[PASS] test_send_Revert_MsgInspection() (gas: 221169)
|
|
95
|
+
[PASS] test_send_WithFee() (gas: 415240)
|
|
96
|
+
[PASS] test_setFeeDeposit() (gas: 28425)
|
|
97
|
+
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22627)
|
|
98
|
+
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38910, ~: 39011)
|
|
99
|
+
[PASS] test_token() (gas: 13483)
|
|
100
|
+
Suite result: ok. 39 passed; 0 failed; 0 skipped; finished in 664.46ms (1.51s CPU time)
|
|
59
101
|
|
|
60
102
|
Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACTest
|
|
61
103
|
[PASS] test_credit() (gas: 89871)
|
|
62
|
-
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ:
|
|
104
|
+
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93191, ~: 93303)
|
|
63
105
|
[PASS] test_debit() (gas: 98327)
|
|
64
106
|
[PASS] test_debit_Dust() (gas: 139747)
|
|
65
|
-
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ:
|
|
107
|
+
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 142689, ~: 143461)
|
|
66
108
|
[PASS] test_debit_PushesFees() (gas: 165796)
|
|
67
109
|
[PASS] test_debit_Revert_SlippageExceeded() (gas: 131894)
|
|
68
110
|
[PASS] test_debit_SmallAmount_DustOnly() (gas: 139811)
|
|
69
111
|
[PASS] test_debit_WithFee() (gas: 165270)
|
|
70
112
|
[PASS] test_debit_WithFee_Dust() (gas: 165884)
|
|
71
|
-
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ:
|
|
113
|
+
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 169299, ~: 171204)
|
|
72
114
|
[PASS] test_initialize() (gas: 24722)
|
|
73
115
|
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
|
|
74
116
|
[PASS] test_pause_unpause() (gas: 130467)
|
|
@@ -78,7 +120,7 @@ Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACTest
|
|
|
78
120
|
[PASS] test_quoteOFT_Paused() (gas: 56570)
|
|
79
121
|
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 185657)
|
|
80
122
|
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 233398)
|
|
81
|
-
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ:
|
|
123
|
+
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 200487, ~: 200299)
|
|
82
124
|
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84276)
|
|
83
125
|
[PASS] test_rateLimit_Inflow() (gas: 108736)
|
|
84
126
|
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
|
|
@@ -88,57 +130,22 @@ Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACTest
|
|
|
88
130
|
[PASS] test_send_WithFee() (gas: 477338)
|
|
89
131
|
[PASS] test_setFeeDeposit() (gas: 28359)
|
|
90
132
|
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
|
|
91
|
-
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ:
|
|
92
|
-
Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in
|
|
93
|
-
|
|
94
|
-
Ran 32 tests for test/OFTBurnMintExtendedRBACAlt.t.sol:OFTBurnMintExtendedRBACAltTest
|
|
95
|
-
[PASS] test_credit() (gas: 89871)
|
|
96
|
-
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93182, ~: 93303)
|
|
97
|
-
[PASS] test_debit() (gas: 98327)
|
|
98
|
-
[PASS] test_debit_Dust() (gas: 141836)
|
|
99
|
-
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 144702, ~: 145461)
|
|
100
|
-
[PASS] test_debit_PushesFees() (gas: 167796)
|
|
101
|
-
[PASS] test_debit_Revert_SlippageExceeded() (gas: 133872)
|
|
102
|
-
[PASS] test_debit_SmallAmount_DustOnly() (gas: 141789)
|
|
103
|
-
[PASS] test_debit_WithFee() (gas: 165270)
|
|
104
|
-
[PASS] test_debit_WithFee_Dust() (gas: 167884)
|
|
105
|
-
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 170877, ~: 173204)
|
|
106
|
-
[PASS] test_initialize() (gas: 24700)
|
|
107
|
-
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
|
|
108
|
-
[PASS] test_pause_unpause() (gas: 132067)
|
|
109
|
-
[PASS] test_quoteOFT() (gas: 70712)
|
|
110
|
-
[PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
|
|
111
|
-
[PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59173)
|
|
112
|
-
[PASS] test_quoteOFT_Paused() (gas: 56570)
|
|
113
|
-
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 187257)
|
|
114
|
-
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 235398)
|
|
115
|
-
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 202474, ~: 202299)
|
|
116
|
-
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84254)
|
|
117
|
-
[PASS] test_rateLimit_Inflow() (gas: 108824)
|
|
118
|
-
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 159696)
|
|
119
|
-
[PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 181347)
|
|
120
|
-
[PASS] test_send() (gas: 421733)
|
|
121
|
-
[PASS] test_send_Revert_MsgInspection() (gas: 310849)
|
|
122
|
-
[PASS] test_send_Revert_OnlyAltToken() (gas: 198819)
|
|
123
|
-
[PASS] test_send_WithFee() (gas: 493959)
|
|
124
|
-
[PASS] test_setFeeDeposit() (gas: 28445)
|
|
125
|
-
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
|
|
126
|
-
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38947, ~: 39034)
|
|
127
|
-
Suite result: ok. 32 passed; 0 failed; 0 skipped; finished in 766.73ms (1.95s CPU time)
|
|
133
|
+
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38861, ~: 38967)
|
|
134
|
+
Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 676.83ms (2.27s CPU time)
|
|
128
135
|
|
|
129
136
|
Ran 33 tests for test/OFTBurnSelfMintExtendedRBACAlt.t.sol:OFTBurnSelfMintExtendedRBACAltTest
|
|
130
137
|
[PASS] test_credit() (gas: 89873)
|
|
131
|
-
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ:
|
|
138
|
+
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93071, ~: 93305)
|
|
132
139
|
[PASS] test_debit() (gas: 120710)
|
|
133
140
|
[PASS] test_debit_Dust() (gas: 145216)
|
|
134
|
-
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ:
|
|
141
|
+
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 147533, ~: 148086)
|
|
135
142
|
[PASS] test_debit_PushesFees() (gas: 165984)
|
|
136
143
|
[PASS] test_debit_Revert_SlippageExceeded() (gas: 133872)
|
|
137
144
|
[PASS] test_debit_SmallAmount_DustOnly() (gas: 145179)
|
|
138
145
|
[PASS] test_debit_TokensTransferredToSelfThenBurned() (gas: 122500)
|
|
139
146
|
[PASS] test_debit_WithFee() (gas: 166449)
|
|
140
147
|
[PASS] test_debit_WithFee_Dust() (gas: 166055)
|
|
141
|
-
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ:
|
|
148
|
+
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 168356, ~: 170245)
|
|
142
149
|
[PASS] test_initialize() (gas: 24700)
|
|
143
150
|
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
|
|
144
151
|
[PASS] test_pause_unpause() (gas: 153198)
|
|
@@ -148,7 +155,7 @@ Ran 33 tests for test/OFTBurnSelfMintExtendedRBACAlt.t.sol:OFTBurnSelfMintExtend
|
|
|
148
155
|
[PASS] test_quoteOFT_Paused() (gas: 56570)
|
|
149
156
|
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 243840)
|
|
150
157
|
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 270346)
|
|
151
|
-
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ:
|
|
158
|
+
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 193670, ~: 193521)
|
|
152
159
|
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84254)
|
|
153
160
|
[PASS] test_rateLimit_Inflow() (gas: 108826)
|
|
154
161
|
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 159696)
|
|
@@ -159,91 +166,21 @@ Ran 33 tests for test/OFTBurnSelfMintExtendedRBACAlt.t.sol:OFTBurnSelfMintExtend
|
|
|
159
166
|
[PASS] test_send_WithFee() (gas: 504694)
|
|
160
167
|
[PASS] test_setFeeDeposit() (gas: 28445)
|
|
161
168
|
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
|
|
162
|
-
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38914, ~: 39034)
|
|
163
|
-
Suite result: ok. 33 passed; 0 failed; 0 skipped; finished in 895.88ms (1.88s CPU time)
|
|
164
|
-
|
|
165
|
-
Ran 32 tests for test/OFTLockUnlockExtendedRBACAlt.t.sol:OFTLockUnlockExtendedRBACAltTest
|
|
166
|
-
[PASS] test_credit() (gas: 91882)
|
|
167
|
-
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 95159, ~: 95314)
|
|
168
|
-
[PASS] test_debit() (gas: 113036)
|
|
169
|
-
[PASS] test_debit_Dust() (gas: 137551)
|
|
170
|
-
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 140248, ~: 140423)
|
|
171
|
-
[PASS] test_debit_PushesFees() (gas: 163342)
|
|
172
|
-
[PASS] test_debit_Revert_SlippageExceeded() (gas: 133828)
|
|
173
|
-
[PASS] test_debit_SmallAmount_DustOnly() (gas: 137513)
|
|
174
|
-
[PASS] test_debit_WithFee() (gas: 163924)
|
|
175
|
-
[PASS] test_debit_WithFee_Dust() (gas: 163430)
|
|
176
|
-
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 163365, ~: 162567)
|
|
177
|
-
[PASS] test_initialize() (gas: 24656)
|
|
178
|
-
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92822)
|
|
179
|
-
[PASS] test_pause_unpause() (gas: 145524)
|
|
180
|
-
[PASS] test_quoteOFT() (gas: 70757)
|
|
181
|
-
[PASS] test_quoteOFT_GloballyDisabled() (gas: 80605)
|
|
182
|
-
[PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59240)
|
|
183
|
-
[PASS] test_quoteOFT_Paused() (gas: 56637)
|
|
184
|
-
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 200448)
|
|
185
|
-
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 242784)
|
|
186
|
-
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 198108, ~: 197912)
|
|
187
|
-
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84299)
|
|
188
|
-
[PASS] test_rateLimit_Inflow() (gas: 132710)
|
|
189
|
-
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 159652)
|
|
190
|
-
[PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 176893)
|
|
191
|
-
[PASS] test_send() (gas: 465637)
|
|
192
|
-
[PASS] test_send_Revert_MsgInspection() (gas: 327696)
|
|
193
|
-
[PASS] test_send_Revert_OnlyAltToken() (gas: 241148)
|
|
194
|
-
[PASS] test_send_WithFee() (gas: 516566)
|
|
195
|
-
[PASS] test_setFeeDeposit() (gas: 28423)
|
|
196
|
-
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22583)
|
|
197
|
-
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38913, ~: 39012)
|
|
198
|
-
Suite result: ok. 32 passed; 0 failed; 0 skipped; finished in 901.97ms (2.48s CPU time)
|
|
199
|
-
|
|
200
|
-
Ran 32 tests for test/OFTBurnSelfMintExtendedRBAC.t.sol:OFTBurnSelfMintExtendedRBACTest
|
|
201
|
-
[PASS] test_credit() (gas: 89873)
|
|
202
|
-
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 92939, ~: 93305)
|
|
203
|
-
[PASS] test_debit() (gas: 120710)
|
|
204
|
-
[PASS] test_debit_Dust() (gas: 143616)
|
|
205
|
-
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 146097, ~: 146486)
|
|
206
|
-
[PASS] test_debit_PushesFees() (gas: 164384)
|
|
207
|
-
[PASS] test_debit_Revert_SlippageExceeded() (gas: 131872)
|
|
208
|
-
[PASS] test_debit_SmallAmount_DustOnly() (gas: 143579)
|
|
209
|
-
[PASS] test_debit_TokensTransferredToSelfThenBurned() (gas: 122517)
|
|
210
|
-
[PASS] test_debit_WithFee() (gas: 166449)
|
|
211
|
-
[PASS] test_debit_WithFee_Dust() (gas: 164455)
|
|
212
|
-
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 166715, ~: 168640)
|
|
213
|
-
[PASS] test_initialize() (gas: 24700)
|
|
214
|
-
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
|
|
215
|
-
[PASS] test_pause_unpause() (gas: 151598)
|
|
216
|
-
[PASS] test_quoteOFT() (gas: 70712)
|
|
217
|
-
[PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
|
|
218
|
-
[PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59173)
|
|
219
|
-
[PASS] test_quoteOFT_Paused() (gas: 56570)
|
|
220
|
-
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 242240)
|
|
221
|
-
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 268746)
|
|
222
|
-
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 192052, ~: 191921)
|
|
223
|
-
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84254)
|
|
224
|
-
[PASS] test_rateLimit_Inflow() (gas: 108738)
|
|
225
|
-
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
|
|
226
|
-
[PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 175225)
|
|
227
|
-
[PASS] test_send() (gas: 387136)
|
|
228
|
-
[PASS] test_send_Revert_MsgInspection() (gas: 335267)
|
|
229
|
-
[PASS] test_send_WithFee() (gas: 462592)
|
|
230
|
-
[PASS] test_setFeeDeposit() (gas: 28445)
|
|
231
|
-
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
|
|
232
169
|
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38957, ~: 39034)
|
|
233
|
-
Suite result: ok.
|
|
170
|
+
Suite result: ok. 33 passed; 0 failed; 0 skipped; finished in 681.99ms (1.92s CPU time)
|
|
234
171
|
|
|
235
172
|
Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACCrosschainTest
|
|
236
173
|
[PASS] test_credit() (gas: 89874)
|
|
237
|
-
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ:
|
|
174
|
+
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93264, ~: 93306)
|
|
238
175
|
[PASS] test_debit() (gas: 98332)
|
|
239
176
|
[PASS] test_debit_Dust() (gas: 139763)
|
|
240
|
-
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ:
|
|
177
|
+
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 142343, ~: 143477)
|
|
241
178
|
[PASS] test_debit_PushesFees() (gas: 165812)
|
|
242
179
|
[PASS] test_debit_Revert_SlippageExceeded() (gas: 131894)
|
|
243
180
|
[PASS] test_debit_SmallAmount_DustOnly() (gas: 139827)
|
|
244
181
|
[PASS] test_debit_WithFee() (gas: 165286)
|
|
245
182
|
[PASS] test_debit_WithFee_Dust() (gas: 165900)
|
|
246
|
-
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ:
|
|
183
|
+
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 169065, ~: 171220)
|
|
247
184
|
[PASS] test_initialize() (gas: 24722)
|
|
248
185
|
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
|
|
249
186
|
[PASS] test_pause_unpause() (gas: 130472)
|
|
@@ -253,7 +190,7 @@ Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACCross
|
|
|
253
190
|
[PASS] test_quoteOFT_Paused() (gas: 56570)
|
|
254
191
|
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 185667)
|
|
255
192
|
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 233430)
|
|
256
|
-
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ:
|
|
193
|
+
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 200474, ~: 200309)
|
|
257
194
|
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84276)
|
|
258
195
|
[PASS] test_rateLimit_Inflow() (gas: 108739)
|
|
259
196
|
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
|
|
@@ -263,21 +200,21 @@ Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACCross
|
|
|
263
200
|
[PASS] test_send_WithFee() (gas: 477358)
|
|
264
201
|
[PASS] test_setFeeDeposit() (gas: 28359)
|
|
265
202
|
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
|
|
266
|
-
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ:
|
|
267
|
-
Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in
|
|
203
|
+
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38880, ~: 38967)
|
|
204
|
+
Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 682.76ms (2.14s CPU time)
|
|
268
205
|
|
|
269
206
|
Ran 31 tests for test/OFTLockUnlockExtendedRBAC.t.sol:OFTLockUnlockExtendedRBACTest
|
|
270
207
|
[PASS] test_credit() (gas: 89882)
|
|
271
|
-
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ:
|
|
208
|
+
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93324, ~: 93314)
|
|
272
209
|
[PASS] test_debit() (gas: 113036)
|
|
273
210
|
[PASS] test_debit_Dust() (gas: 135880)
|
|
274
|
-
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ:
|
|
211
|
+
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 138501, ~: 138823)
|
|
275
212
|
[PASS] test_debit_PushesFees() (gas: 161342)
|
|
276
213
|
[PASS] test_debit_Revert_SlippageExceeded() (gas: 131850)
|
|
277
214
|
[PASS] test_debit_SmallAmount_DustOnly() (gas: 135931)
|
|
278
215
|
[PASS] test_debit_WithFee() (gas: 163924)
|
|
279
216
|
[PASS] test_debit_WithFee_Dust() (gas: 161430)
|
|
280
|
-
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ:
|
|
217
|
+
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 161431, ~: 160967)
|
|
281
218
|
[PASS] test_initialize() (gas: 24678)
|
|
282
219
|
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92822)
|
|
283
220
|
[PASS] test_pause_unpause() (gas: 143924)
|
|
@@ -287,7 +224,7 @@ Ran 31 tests for test/OFTLockUnlockExtendedRBAC.t.sol:OFTLockUnlockExtendedRBACT
|
|
|
287
224
|
[PASS] test_quoteOFT_Paused() (gas: 56637)
|
|
288
225
|
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 198848)
|
|
289
226
|
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 241184)
|
|
290
|
-
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ:
|
|
227
|
+
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 196109, ~: 195912)
|
|
291
228
|
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84321)
|
|
292
229
|
[PASS] test_rateLimit_Inflow() (gas: 130622)
|
|
293
230
|
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157652)
|
|
@@ -297,50 +234,113 @@ Ran 31 tests for test/OFTLockUnlockExtendedRBAC.t.sol:OFTLockUnlockExtendedRBACT
|
|
|
297
234
|
[PASS] test_send_WithFee() (gas: 474453)
|
|
298
235
|
[PASS] test_setFeeDeposit() (gas: 28337)
|
|
299
236
|
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22583)
|
|
300
|
-
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ:
|
|
301
|
-
Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in
|
|
237
|
+
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38873, ~: 38945)
|
|
238
|
+
Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 703.35ms (1.89s CPU time)
|
|
302
239
|
|
|
303
|
-
Ran
|
|
304
|
-
[PASS]
|
|
305
|
-
[PASS]
|
|
306
|
-
[PASS]
|
|
307
|
-
[PASS]
|
|
308
|
-
[PASS]
|
|
309
|
-
[PASS]
|
|
310
|
-
[PASS]
|
|
311
|
-
[PASS]
|
|
312
|
-
[PASS]
|
|
313
|
-
[PASS]
|
|
314
|
-
[PASS]
|
|
315
|
-
[PASS]
|
|
316
|
-
[PASS]
|
|
317
|
-
[PASS]
|
|
318
|
-
[PASS]
|
|
319
|
-
[PASS]
|
|
320
|
-
[PASS]
|
|
321
|
-
[PASS]
|
|
322
|
-
[PASS]
|
|
323
|
-
[PASS]
|
|
324
|
-
[PASS]
|
|
325
|
-
[PASS]
|
|
326
|
-
[PASS]
|
|
327
|
-
[PASS]
|
|
328
|
-
[PASS]
|
|
329
|
-
[PASS]
|
|
330
|
-
[PASS]
|
|
331
|
-
[PASS]
|
|
332
|
-
[PASS]
|
|
333
|
-
[PASS]
|
|
334
|
-
[PASS]
|
|
335
|
-
[PASS]
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
[PASS]
|
|
340
|
-
[PASS]
|
|
341
|
-
[PASS]
|
|
342
|
-
[PASS]
|
|
343
|
-
|
|
240
|
+
Ran 32 tests for test/OFTBurnSelfMintExtendedRBAC.t.sol:OFTBurnSelfMintExtendedRBACTest
|
|
241
|
+
[PASS] test_credit() (gas: 89873)
|
|
242
|
+
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93273, ~: 93305)
|
|
243
|
+
[PASS] test_debit() (gas: 120710)
|
|
244
|
+
[PASS] test_debit_Dust() (gas: 143616)
|
|
245
|
+
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 145438, ~: 146486)
|
|
246
|
+
[PASS] test_debit_PushesFees() (gas: 164384)
|
|
247
|
+
[PASS] test_debit_Revert_SlippageExceeded() (gas: 131872)
|
|
248
|
+
[PASS] test_debit_SmallAmount_DustOnly() (gas: 143579)
|
|
249
|
+
[PASS] test_debit_TokensTransferredToSelfThenBurned() (gas: 122517)
|
|
250
|
+
[PASS] test_debit_WithFee() (gas: 166449)
|
|
251
|
+
[PASS] test_debit_WithFee_Dust() (gas: 164455)
|
|
252
|
+
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 166579, ~: 168645)
|
|
253
|
+
[PASS] test_initialize() (gas: 24700)
|
|
254
|
+
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
|
|
255
|
+
[PASS] test_pause_unpause() (gas: 151598)
|
|
256
|
+
[PASS] test_quoteOFT() (gas: 70712)
|
|
257
|
+
[PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
|
|
258
|
+
[PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59173)
|
|
259
|
+
[PASS] test_quoteOFT_Paused() (gas: 56570)
|
|
260
|
+
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 242240)
|
|
261
|
+
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 268746)
|
|
262
|
+
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 192067, ~: 191921)
|
|
263
|
+
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84254)
|
|
264
|
+
[PASS] test_rateLimit_Inflow() (gas: 108738)
|
|
265
|
+
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
|
|
266
|
+
[PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 175225)
|
|
267
|
+
[PASS] test_send() (gas: 387136)
|
|
268
|
+
[PASS] test_send_Revert_MsgInspection() (gas: 335267)
|
|
269
|
+
[PASS] test_send_WithFee() (gas: 462592)
|
|
270
|
+
[PASS] test_setFeeDeposit() (gas: 28445)
|
|
271
|
+
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
|
|
272
|
+
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38933, ~: 39034)
|
|
273
|
+
Suite result: ok. 32 passed; 0 failed; 0 skipped; finished in 710.39ms (1.89s CPU time)
|
|
274
|
+
|
|
275
|
+
Ran 32 tests for test/OFTLockUnlockExtendedRBACAlt.t.sol:OFTLockUnlockExtendedRBACAltTest
|
|
276
|
+
[PASS] test_credit() (gas: 91882)
|
|
277
|
+
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 95120, ~: 95314)
|
|
278
|
+
[PASS] test_debit() (gas: 113036)
|
|
279
|
+
[PASS] test_debit_Dust() (gas: 137551)
|
|
280
|
+
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 139867, ~: 141029)
|
|
281
|
+
[PASS] test_debit_PushesFees() (gas: 163342)
|
|
282
|
+
[PASS] test_debit_Revert_SlippageExceeded() (gas: 133828)
|
|
283
|
+
[PASS] test_debit_SmallAmount_DustOnly() (gas: 137513)
|
|
284
|
+
[PASS] test_debit_WithFee() (gas: 163924)
|
|
285
|
+
[PASS] test_debit_WithFee_Dust() (gas: 163430)
|
|
286
|
+
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 163634, ~: 162567)
|
|
287
|
+
[PASS] test_initialize() (gas: 24656)
|
|
288
|
+
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92822)
|
|
289
|
+
[PASS] test_pause_unpause() (gas: 145524)
|
|
290
|
+
[PASS] test_quoteOFT() (gas: 70757)
|
|
291
|
+
[PASS] test_quoteOFT_GloballyDisabled() (gas: 80605)
|
|
292
|
+
[PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59240)
|
|
293
|
+
[PASS] test_quoteOFT_Paused() (gas: 56637)
|
|
294
|
+
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 200448)
|
|
295
|
+
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 242784)
|
|
296
|
+
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 198090, ~: 197912)
|
|
297
|
+
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84299)
|
|
298
|
+
[PASS] test_rateLimit_Inflow() (gas: 132710)
|
|
299
|
+
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 159652)
|
|
300
|
+
[PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 176893)
|
|
301
|
+
[PASS] test_send() (gas: 465637)
|
|
302
|
+
[PASS] test_send_Revert_MsgInspection() (gas: 327696)
|
|
303
|
+
[PASS] test_send_Revert_OnlyAltToken() (gas: 241148)
|
|
304
|
+
[PASS] test_send_WithFee() (gas: 516566)
|
|
305
|
+
[PASS] test_setFeeDeposit() (gas: 28423)
|
|
306
|
+
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22583)
|
|
307
|
+
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38916, ~: 39012)
|
|
308
|
+
Suite result: ok. 32 passed; 0 failed; 0 skipped; finished in 734.19ms (2.10s CPU time)
|
|
309
|
+
|
|
310
|
+
Ran 32 tests for test/OFTBurnMintExtendedRBACAlt.t.sol:OFTBurnMintExtendedRBACAltTest
|
|
311
|
+
[PASS] test_credit() (gas: 89871)
|
|
312
|
+
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93171, ~: 93303)
|
|
313
|
+
[PASS] test_debit() (gas: 98327)
|
|
314
|
+
[PASS] test_debit_Dust() (gas: 141836)
|
|
315
|
+
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 144489, ~: 145461)
|
|
316
|
+
[PASS] test_debit_PushesFees() (gas: 167796)
|
|
317
|
+
[PASS] test_debit_Revert_SlippageExceeded() (gas: 133872)
|
|
318
|
+
[PASS] test_debit_SmallAmount_DustOnly() (gas: 141789)
|
|
319
|
+
[PASS] test_debit_WithFee() (gas: 165270)
|
|
320
|
+
[PASS] test_debit_WithFee_Dust() (gas: 167884)
|
|
321
|
+
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 170460, ~: 173204)
|
|
322
|
+
[PASS] test_initialize() (gas: 24700)
|
|
323
|
+
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
|
|
324
|
+
[PASS] test_pause_unpause() (gas: 132067)
|
|
325
|
+
[PASS] test_quoteOFT() (gas: 70712)
|
|
326
|
+
[PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
|
|
327
|
+
[PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59173)
|
|
328
|
+
[PASS] test_quoteOFT_Paused() (gas: 56570)
|
|
329
|
+
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 187257)
|
|
330
|
+
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 235398)
|
|
331
|
+
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 202482, ~: 202299)
|
|
332
|
+
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84254)
|
|
333
|
+
[PASS] test_rateLimit_Inflow() (gas: 108824)
|
|
334
|
+
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 159696)
|
|
335
|
+
[PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 181347)
|
|
336
|
+
[PASS] test_send() (gas: 421733)
|
|
337
|
+
[PASS] test_send_Revert_MsgInspection() (gas: 310849)
|
|
338
|
+
[PASS] test_send_Revert_OnlyAltToken() (gas: 198819)
|
|
339
|
+
[PASS] test_send_WithFee() (gas: 493959)
|
|
340
|
+
[PASS] test_setFeeDeposit() (gas: 28445)
|
|
341
|
+
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
|
|
342
|
+
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38938, ~: 39034)
|
|
343
|
+
Suite result: ok. 32 passed; 0 failed; 0 skipped; finished in 875.02ms (1.62s CPU time)
|
|
344
344
|
|
|
345
|
-
Ran 9 test suites in
|
|
346
|
-
⏳ forge test:
|
|
345
|
+
Ran 9 test suites in 903.57ms (6.31s CPU time): 292 tests passed, 0 failed, 0 skipped (292 total tests)
|
|
346
|
+
⏳ forge test: 1:06.433 (m:ss.mmm)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@layerzerolabs/oft-upgradeable-evm-contracts",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.11",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "LayerZero Labs reference EVM upgradeable OFT implementation",
|
|
6
6
|
"license": "MIT",
|
|
@@ -14,14 +14,14 @@
|
|
|
14
14
|
"@openzeppelin/contracts-upgradeable": "^5.0.2",
|
|
15
15
|
"ethers": "^5.8.0",
|
|
16
16
|
"solhint": "^6.0.1",
|
|
17
|
-
"@layerzerolabs/oapp-
|
|
18
|
-
"@layerzerolabs/
|
|
19
|
-
"@layerzerolabs/
|
|
20
|
-
"@layerzerolabs/
|
|
21
|
-
"@layerzerolabs/
|
|
22
|
-
"@layerzerolabs/utils-evm-contracts": "1.2.
|
|
23
|
-
"@layerzerolabs/utils-upgradeable-evm-contracts": "1.2.
|
|
24
|
-
"@layerzerolabs/vm-tooling-evm": "1.2.
|
|
17
|
+
"@layerzerolabs/oapp-evm-contracts": "1.2.11",
|
|
18
|
+
"@layerzerolabs/oft-evm-contracts": "1.2.11",
|
|
19
|
+
"@layerzerolabs/solhint-configuration": "1.2.11",
|
|
20
|
+
"@layerzerolabs/oapp-upgradeable-evm-contracts": "1.2.11",
|
|
21
|
+
"@layerzerolabs/test-utils-evm-contracts": "1.2.11",
|
|
22
|
+
"@layerzerolabs/utils-evm-contracts": "1.2.11",
|
|
23
|
+
"@layerzerolabs/utils-upgradeable-evm-contracts": "1.2.11",
|
|
24
|
+
"@layerzerolabs/vm-tooling-evm": "1.2.11"
|
|
25
25
|
},
|
|
26
26
|
"publishConfig": {
|
|
27
27
|
"access": "public",
|