@layerzerolabs/oft-upgradeable-evm-contracts 0.2.132 → 1.2.6
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 +21 -24
- package/.turbo/turbo-test.log +194 -194
- package/package.json +13 -15
package/.turbo/turbo-build.log
CHANGED
|
@@ -6,29 +6,28 @@
|
|
|
6
6
|
WARN Issue while reading "/home/runner/work/monorepo-internal/monorepo-internal/.npmrc". Failed to replace env in config: ${NPM_TOKEN}
|
|
7
7
|
|
|
8
8
|
> @layerzerolabs/oft-upgradeable-evm-contracts@0.0.0 compile:evm /home/runner/work/monorepo-internal/monorepo-internal/apps/oft-app/contracts/evm/upgradeable
|
|
9
|
-
> pnpm lz-tool
|
|
9
|
+
> pnpm lz-tool hardhat compile --config /hardhat/hardhat.default.config.js
|
|
10
10
|
|
|
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-Ya7t65
|
|
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:45490) [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-Ya7t65:/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 b134ed5fe47a5a2e9ed71185b327188f9bb7666578808040a32aea8a857fab41
|
|
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
|
-
|
|
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-scoped-workspace-TN3N6P:/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
|
|
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-Ya7t65:/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
31
|
Compiling 76 Solidity files
|
|
33
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.
|
|
34
33
|
--> contracts/extended/OFTBurnMintExtendedRBACUpgradeable.sol:28:1:
|
|
@@ -80,65 +79,63 @@ Warning: Contract code size is 27524 bytes and exceeds 24576 bytes (a limit intr
|
|
|
80
79
|
|
|
81
80
|
|
|
82
81
|
Successfully compiled 76 Solidity files
|
|
83
|
-
⏳ hardhat compile --config /hardhat/hardhat.default.config.js: 10.
|
|
82
|
+
⏳ hardhat compile --config /hardhat/hardhat.default.config.js: 10.225s
|
|
84
83
|
WARN Issue while reading "/home/runner/work/monorepo-internal/monorepo-internal/.npmrc". Failed to replace env in config: ${NPM_TOKEN}
|
|
85
84
|
|
|
86
85
|
> @layerzerolabs/oft-upgradeable-evm-contracts@0.0.0 compile:zksync /home/runner/work/monorepo-internal/monorepo-internal/apps/oft-app/contracts/evm/upgradeable
|
|
87
|
-
> pnpm lz-tool
|
|
86
|
+
> pnpm lz-tool hardhat compile --config /hardhat/hardhat.default.config.js --network zksync-mainnet
|
|
88
87
|
|
|
89
88
|
WARN Issue while reading "/home/runner/work/monorepo-internal/monorepo-internal/.npmrc". Failed to replace env in config: ${NPM_TOKEN}
|
|
90
89
|
✅ forge-1.3.6-hardhat-2.26.3
|
|
91
90
|
🔧 hardhat version: 2.26.3
|
|
92
|
-
📦 Using scoped workspace: /tmp/lz-scoped-workspace-
|
|
91
|
+
📦 Using scoped workspace: /tmp/lz-scoped-workspace-m7xntm
|
|
93
92
|
📦 Copied 13 workspace package source(s)
|
|
94
93
|
📦 No scoped-workspace pruner configured; using unpruned package-level source copy fallback.
|
|
95
|
-
(node:
|
|
94
|
+
(node:48215) [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
95
|
Reparsing as ES module because module syntax was detected. This incurs a performance overhead.
|
|
97
96
|
To eliminate this warning, add "type": "module" to /home/runner/work/monorepo-internal/monorepo-internal/package.json.
|
|
98
97
|
(Use `node --trace-warnings ...` to show where the warning was created)
|
|
99
98
|
📦 Docker volumes:
|
|
100
|
-
-v /tmp/lz-scoped-workspace-
|
|
99
|
+
-v /tmp/lz-scoped-workspace-m7xntm:/workspace
|
|
101
100
|
-v /home/runner/work/monorepo-internal/monorepo-internal/apps/oft-app/contracts/evm/upgradeable:/workspace/apps/oft-app/contracts/evm/upgradeable
|
|
102
101
|
-v /home/runner/work/monorepo-internal/monorepo-internal/node_modules/.pnpm:/workspace/node_modules/.pnpm:ro
|
|
103
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
|
|
104
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
|
|
105
|
-
$ docker container rm
|
|
104
|
+
$ docker container rm e33b5ffc6b225469054e05b905fa9377d2d267bd2fee2cf32b39a6ee709cd3d4
|
|
106
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)
|
|
107
106
|
👤 Running container as UID:GID 1001:1001
|
|
108
|
-
|
|
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-scoped-workspace-ZwpByW:/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
|
|
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-m7xntm:/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
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.
|
|
111
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.
|
|
112
110
|
Compiling contracts for ZKsync Era with zksolc v1.3.22 and zkvm-solc v0.8.23-1.0.1
|
|
113
111
|
Compiling 76 Solidity files
|
|
114
112
|
Successfully compiled 76 Solidity files
|
|
115
|
-
⏳ 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:18.432 (m:ss.mmm)
|
|
116
114
|
WARN Issue while reading "/home/runner/work/monorepo-internal/monorepo-internal/.npmrc". Failed to replace env in config: ${NPM_TOKEN}
|
|
117
115
|
|
|
118
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
|
-
> pnpm lz-tool
|
|
117
|
+
> pnpm lz-tool hardhat compile --config /hardhat/hardhat.default.config.js --network tron-mainnet
|
|
120
118
|
|
|
121
119
|
WARN Issue while reading "/home/runner/work/monorepo-internal/monorepo-internal/.npmrc". Failed to replace env in config: ${NPM_TOKEN}
|
|
122
120
|
✅ forge-1.3.6-hardhat-2.26.3
|
|
123
121
|
🔧 hardhat version: 2.26.3
|
|
124
|
-
📦 Using scoped workspace: /tmp/lz-scoped-workspace-
|
|
122
|
+
📦 Using scoped workspace: /tmp/lz-scoped-workspace-BW1fD0
|
|
125
123
|
📦 Copied 13 workspace package source(s)
|
|
126
124
|
📦 No scoped-workspace pruner configured; using unpruned package-level source copy fallback.
|
|
127
|
-
(node:
|
|
125
|
+
(node:59390) [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
126
|
Reparsing as ES module because module syntax was detected. This incurs a performance overhead.
|
|
129
127
|
To eliminate this warning, add "type": "module" to /home/runner/work/monorepo-internal/monorepo-internal/package.json.
|
|
130
128
|
(Use `node --trace-warnings ...` to show where the warning was created)
|
|
131
129
|
📦 Docker volumes:
|
|
132
|
-
-v /tmp/lz-scoped-workspace-
|
|
130
|
+
-v /tmp/lz-scoped-workspace-BW1fD0:/workspace
|
|
133
131
|
-v /home/runner/work/monorepo-internal/monorepo-internal/apps/oft-app/contracts/evm/upgradeable:/workspace/apps/oft-app/contracts/evm/upgradeable
|
|
134
132
|
-v /home/runner/work/monorepo-internal/monorepo-internal/node_modules/.pnpm:/workspace/node_modules/.pnpm:ro
|
|
135
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
|
|
136
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
|
|
137
|
-
$ docker container rm
|
|
135
|
+
$ docker container rm 02c452f9587fffc608bf1bc459a25c7bf4f1f2f35ae8f366292b4277c1d7bfde
|
|
138
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)
|
|
139
137
|
👤 Running container as UID:GID 1001:1001
|
|
140
|
-
|
|
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-scoped-workspace-5AJi1J:/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
|
|
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-BW1fD0:/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
139
|
detected tron network, replacing deployments extension with custom one
|
|
143
140
|
Compiling contracts with tron solc v0.8.23
|
|
144
141
|
Tron-solc v0.8.23 is unknown version, attempting anyway...
|
|
@@ -193,4 +190,4 @@ Warning: Contract code size is 29394 bytes and exceeds 24576 bytes (a limit intr
|
|
|
193
190
|
|
|
194
191
|
|
|
195
192
|
Successfully compiled 76 Solidity files
|
|
196
|
-
⏳ hardhat compile --config /hardhat/hardhat.default.config.js --network tron-mainnet:
|
|
193
|
+
⏳ hardhat compile --config /hardhat/hardhat.default.config.js --network tron-mainnet: 39.230s
|
package/.turbo/turbo-test.log
CHANGED
|
@@ -4,79 +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-Do4QZa
|
|
8
8
|
📦 Copied 13 workspace package source(s)
|
|
9
9
|
📦 No scoped-workspace pruner configured; using unpruned package-level source copy fallback.
|
|
10
|
-
|
|
11
|
-
(node:199324) [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.
|
|
10
|
+
(node:91190) [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.
|
|
12
11
|
Reparsing as ES module because module syntax was detected. This incurs a performance overhead.
|
|
13
12
|
To eliminate this warning, add "type": "module" to /home/runner/work/monorepo-internal/monorepo-internal/package.json.
|
|
14
13
|
(Use `node --trace-warnings ...` to show where the warning was created)
|
|
15
|
-
|
|
14
|
+
📦 Docker volumes:
|
|
15
|
+
-v /tmp/lz-scoped-workspace-Do4QZa:/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-Do4QZa:/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 39.98s
|
|
24
24
|
Compiler run successful!
|
|
25
25
|
|
|
26
|
-
Ran 39 tests for test/OFTNativeExtendedRBAC.t.sol:OFTNativeExtendedRBACTest
|
|
27
|
-
[PASS] test_approvalRequired() (gas: 13426)
|
|
28
|
-
[PASS] test_credit() (gas: 62369)
|
|
29
|
-
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 65792, ~: 65954)
|
|
30
|
-
[PASS] test_credit_Revert_CreditFailed() (gas: 91478)
|
|
31
|
-
[PASS] test_debit() (gas: 36831)
|
|
32
|
-
[PASS] test_debit_Dust() (gas: 76272)
|
|
33
|
-
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 79534, ~: 79886)
|
|
34
|
-
[PASS] test_debit_PushesFees() (gas: 101339)
|
|
35
|
-
[PASS] test_debit_Revert_SlippageExceeded() (gas: 54229)
|
|
36
|
-
[PASS] test_debit_SmallAmount_DustOnly() (gas: 76226)
|
|
37
|
-
[PASS] test_debit_WithFee() (gas: 101145)
|
|
38
|
-
[PASS] test_debit_WithFee_Dust() (gas: 102376)
|
|
39
|
-
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 105353, ~: 107585)
|
|
40
|
-
[PASS] test_initialize() (gas: 22406)
|
|
41
|
-
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92778)
|
|
42
|
-
[PASS] test_pause_unpause() (gas: 61117)
|
|
43
|
-
[PASS] test_quoteOFT() (gas: 70779)
|
|
44
|
-
[PASS] test_quoteOFT_GloballyDisabled() (gas: 80649)
|
|
45
|
-
[PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59220)
|
|
46
|
-
[PASS] test_quoteOFT_Paused() (gas: 56703)
|
|
47
|
-
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 97744)
|
|
48
|
-
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 160139)
|
|
49
|
-
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 137923, ~: 137703)
|
|
50
|
-
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84387)
|
|
51
|
-
[PASS] test_rateLimit_Inflow() (gas: 87713)
|
|
52
|
-
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 80123)
|
|
53
|
-
[PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 116713)
|
|
54
|
-
[PASS] test_send() (gas: 352734)
|
|
55
|
-
[PASS] test_send_PushesFees() (gas: 415282)
|
|
56
|
-
[PASS] test_send_Revert_FeeTransferFailed() (gas: 157067)
|
|
57
|
-
[PASS] test_send_Revert_IncorrectMessageValue_TooHigh() (gas: 30287)
|
|
58
|
-
[PASS] test_send_Revert_IncorrectMessageValue_TooLow() (gas: 30257)
|
|
59
|
-
[PASS] test_send_Revert_IncorrectMessageValue_ZeroValue() (gas: 22753)
|
|
60
|
-
[PASS] test_send_Revert_MsgInspection() (gas: 221169)
|
|
61
|
-
[PASS] test_send_WithFee() (gas: 415240)
|
|
62
|
-
[PASS] test_setFeeDeposit() (gas: 28425)
|
|
63
|
-
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22627)
|
|
64
|
-
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38948, ~: 39011)
|
|
65
|
-
[PASS] test_token() (gas: 13483)
|
|
66
|
-
Suite result: ok. 39 passed; 0 failed; 0 skipped; finished in 592.48ms (1.24s CPU time)
|
|
67
|
-
|
|
68
26
|
Ran 31 tests for test/OFTLockUnlockExtendedRBAC.t.sol:OFTLockUnlockExtendedRBACTest
|
|
69
27
|
[PASS] test_credit() (gas: 89882)
|
|
70
|
-
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ:
|
|
28
|
+
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 92965, ~: 93314)
|
|
71
29
|
[PASS] test_debit() (gas: 113036)
|
|
72
30
|
[PASS] test_debit_Dust() (gas: 135880)
|
|
73
|
-
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ:
|
|
31
|
+
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 137966, ~: 138823)
|
|
74
32
|
[PASS] test_debit_PushesFees() (gas: 161342)
|
|
75
33
|
[PASS] test_debit_Revert_SlippageExceeded() (gas: 131850)
|
|
76
34
|
[PASS] test_debit_SmallAmount_DustOnly() (gas: 135931)
|
|
77
35
|
[PASS] test_debit_WithFee() (gas: 163924)
|
|
78
36
|
[PASS] test_debit_WithFee_Dust() (gas: 161430)
|
|
79
|
-
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ:
|
|
37
|
+
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 161376, ~: 160967)
|
|
80
38
|
[PASS] test_initialize() (gas: 24678)
|
|
81
39
|
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92822)
|
|
82
40
|
[PASS] test_pause_unpause() (gas: 143924)
|
|
@@ -86,7 +44,7 @@ Ran 31 tests for test/OFTLockUnlockExtendedRBAC.t.sol:OFTLockUnlockExtendedRBACT
|
|
|
86
44
|
[PASS] test_quoteOFT_Paused() (gas: 56637)
|
|
87
45
|
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 198848)
|
|
88
46
|
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 241184)
|
|
89
|
-
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ:
|
|
47
|
+
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 196088, ~: 195912)
|
|
90
48
|
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84321)
|
|
91
49
|
[PASS] test_rateLimit_Inflow() (gas: 130622)
|
|
92
50
|
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157652)
|
|
@@ -96,91 +54,91 @@ Ran 31 tests for test/OFTLockUnlockExtendedRBAC.t.sol:OFTLockUnlockExtendedRBACT
|
|
|
96
54
|
[PASS] test_send_WithFee() (gas: 474453)
|
|
97
55
|
[PASS] test_setFeeDeposit() (gas: 28337)
|
|
98
56
|
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22583)
|
|
99
|
-
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ:
|
|
100
|
-
Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in
|
|
57
|
+
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38868, ~: 38945)
|
|
58
|
+
Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 462.88ms (1.33s CPU time)
|
|
101
59
|
|
|
102
|
-
Ran
|
|
103
|
-
[PASS] test_credit() (gas:
|
|
104
|
-
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ:
|
|
105
|
-
[PASS] test_debit() (gas:
|
|
106
|
-
[PASS] test_debit_Dust() (gas:
|
|
107
|
-
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ:
|
|
108
|
-
[PASS] test_debit_PushesFees() (gas:
|
|
109
|
-
[PASS] test_debit_Revert_SlippageExceeded() (gas:
|
|
110
|
-
[PASS] test_debit_SmallAmount_DustOnly() (gas:
|
|
111
|
-
[PASS]
|
|
112
|
-
[PASS]
|
|
113
|
-
[PASS]
|
|
114
|
-
[PASS]
|
|
115
|
-
[PASS] test_initialize() (gas: 24700)
|
|
60
|
+
Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACCrosschainTest
|
|
61
|
+
[PASS] test_credit() (gas: 89874)
|
|
62
|
+
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 92939, ~: 93306)
|
|
63
|
+
[PASS] test_debit() (gas: 98332)
|
|
64
|
+
[PASS] test_debit_Dust() (gas: 139763)
|
|
65
|
+
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 142591, ~: 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, μ: 169255, ~: 171220)
|
|
72
|
+
[PASS] test_initialize() (gas: 24722)
|
|
116
73
|
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
|
|
117
|
-
[PASS] test_pause_unpause() (gas:
|
|
74
|
+
[PASS] test_pause_unpause() (gas: 130472)
|
|
118
75
|
[PASS] test_quoteOFT() (gas: 70712)
|
|
119
76
|
[PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
|
|
120
|
-
[PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas:
|
|
77
|
+
[PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59195)
|
|
121
78
|
[PASS] test_quoteOFT_Paused() (gas: 56570)
|
|
122
|
-
[PASS] test_quoteOFT_RateLimiterUsage() (gas:
|
|
123
|
-
[PASS] test_quoteOFT_RateLimiterWithFee() (gas:
|
|
124
|
-
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ:
|
|
125
|
-
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas:
|
|
126
|
-
[PASS] test_rateLimit_Inflow() (gas:
|
|
79
|
+
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 185667)
|
|
80
|
+
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 233430)
|
|
81
|
+
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 200482, ~: 200315)
|
|
82
|
+
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84276)
|
|
83
|
+
[PASS] test_rateLimit_Inflow() (gas: 108739)
|
|
127
84
|
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
|
|
128
|
-
[PASS] test_rateLimit_Outflow_WithFee_Success() (gas:
|
|
129
|
-
[PASS] test_send() (gas:
|
|
130
|
-
[PASS] test_send_Revert_MsgInspection() (gas:
|
|
131
|
-
[PASS] test_send_WithFee() (gas:
|
|
132
|
-
[PASS] test_setFeeDeposit() (gas:
|
|
85
|
+
[PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 179385)
|
|
86
|
+
[PASS] test_send() (gas: 400527)
|
|
87
|
+
[PASS] test_send_Revert_MsgInspection() (gas: 308880)
|
|
88
|
+
[PASS] test_send_WithFee() (gas: 477358)
|
|
89
|
+
[PASS] test_setFeeDeposit() (gas: 28359)
|
|
133
90
|
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
|
|
134
|
-
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ:
|
|
135
|
-
Suite result: ok.
|
|
91
|
+
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38895, ~: 38967)
|
|
92
|
+
Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 481.44ms (1.65s CPU time)
|
|
136
93
|
|
|
137
|
-
Ran
|
|
138
|
-
[PASS] test_credit() (gas:
|
|
139
|
-
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ:
|
|
140
|
-
[PASS] test_debit() (gas:
|
|
141
|
-
[PASS] test_debit_Dust() (gas:
|
|
142
|
-
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ:
|
|
143
|
-
[PASS] test_debit_PushesFees() (gas:
|
|
94
|
+
Ran 33 tests for test/OFTBurnSelfMintExtendedRBACAlt.t.sol:OFTBurnSelfMintExtendedRBACAltTest
|
|
95
|
+
[PASS] test_credit() (gas: 89873)
|
|
96
|
+
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93144, ~: 93305)
|
|
97
|
+
[PASS] test_debit() (gas: 120710)
|
|
98
|
+
[PASS] test_debit_Dust() (gas: 145216)
|
|
99
|
+
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 147454, ~: 148086)
|
|
100
|
+
[PASS] test_debit_PushesFees() (gas: 165984)
|
|
144
101
|
[PASS] test_debit_Revert_SlippageExceeded() (gas: 133872)
|
|
145
|
-
[PASS] test_debit_SmallAmount_DustOnly() (gas:
|
|
146
|
-
[PASS]
|
|
147
|
-
[PASS]
|
|
148
|
-
[PASS]
|
|
102
|
+
[PASS] test_debit_SmallAmount_DustOnly() (gas: 145179)
|
|
103
|
+
[PASS] test_debit_TokensTransferredToSelfThenBurned() (gas: 122500)
|
|
104
|
+
[PASS] test_debit_WithFee() (gas: 166449)
|
|
105
|
+
[PASS] test_debit_WithFee_Dust() (gas: 166055)
|
|
106
|
+
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 168356, ~: 170245)
|
|
149
107
|
[PASS] test_initialize() (gas: 24700)
|
|
150
108
|
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
|
|
151
|
-
[PASS] test_pause_unpause() (gas:
|
|
109
|
+
[PASS] test_pause_unpause() (gas: 153198)
|
|
152
110
|
[PASS] test_quoteOFT() (gas: 70712)
|
|
153
111
|
[PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
|
|
154
112
|
[PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59173)
|
|
155
113
|
[PASS] test_quoteOFT_Paused() (gas: 56570)
|
|
156
|
-
[PASS] test_quoteOFT_RateLimiterUsage() (gas:
|
|
157
|
-
[PASS] test_quoteOFT_RateLimiterWithFee() (gas:
|
|
158
|
-
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ:
|
|
114
|
+
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 243840)
|
|
115
|
+
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 270346)
|
|
116
|
+
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 193651, ~: 193521)
|
|
159
117
|
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84254)
|
|
160
|
-
[PASS] test_rateLimit_Inflow() (gas:
|
|
118
|
+
[PASS] test_rateLimit_Inflow() (gas: 108826)
|
|
161
119
|
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 159696)
|
|
162
|
-
[PASS] test_rateLimit_Outflow_WithFee_Success() (gas:
|
|
163
|
-
[PASS] test_send() (gas:
|
|
164
|
-
[PASS] test_send_Revert_MsgInspection() (gas:
|
|
165
|
-
[PASS] test_send_Revert_OnlyAltToken() (gas:
|
|
166
|
-
[PASS] test_send_WithFee() (gas:
|
|
120
|
+
[PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 176825)
|
|
121
|
+
[PASS] test_send() (gas: 456534)
|
|
122
|
+
[PASS] test_send_Revert_MsgInspection() (gas: 337267)
|
|
123
|
+
[PASS] test_send_Revert_OnlyAltToken() (gas: 250697)
|
|
124
|
+
[PASS] test_send_WithFee() (gas: 504694)
|
|
167
125
|
[PASS] test_setFeeDeposit() (gas: 28445)
|
|
168
126
|
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
|
|
169
|
-
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ:
|
|
170
|
-
Suite result: ok.
|
|
127
|
+
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38938, ~: 39034)
|
|
128
|
+
Suite result: ok. 33 passed; 0 failed; 0 skipped; finished in 528.69ms (1.55s CPU time)
|
|
171
129
|
|
|
172
130
|
Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACTest
|
|
173
131
|
[PASS] test_credit() (gas: 89871)
|
|
174
|
-
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ:
|
|
132
|
+
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93211, ~: 93303)
|
|
175
133
|
[PASS] test_debit() (gas: 98327)
|
|
176
134
|
[PASS] test_debit_Dust() (gas: 139747)
|
|
177
|
-
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ:
|
|
135
|
+
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 142602, ~: 143461)
|
|
178
136
|
[PASS] test_debit_PushesFees() (gas: 165796)
|
|
179
137
|
[PASS] test_debit_Revert_SlippageExceeded() (gas: 131894)
|
|
180
138
|
[PASS] test_debit_SmallAmount_DustOnly() (gas: 139811)
|
|
181
139
|
[PASS] test_debit_WithFee() (gas: 165270)
|
|
182
140
|
[PASS] test_debit_WithFee_Dust() (gas: 165884)
|
|
183
|
-
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ:
|
|
141
|
+
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 168732, ~: 171204)
|
|
184
142
|
[PASS] test_initialize() (gas: 24722)
|
|
185
143
|
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
|
|
186
144
|
[PASS] test_pause_unpause() (gas: 130467)
|
|
@@ -190,7 +148,7 @@ Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACTest
|
|
|
190
148
|
[PASS] test_quoteOFT_Paused() (gas: 56570)
|
|
191
149
|
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 185657)
|
|
192
150
|
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 233398)
|
|
193
|
-
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ:
|
|
151
|
+
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 200505, ~: 200299)
|
|
194
152
|
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84276)
|
|
195
153
|
[PASS] test_rateLimit_Inflow() (gas: 108736)
|
|
196
154
|
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
|
|
@@ -200,57 +158,21 @@ Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACTest
|
|
|
200
158
|
[PASS] test_send_WithFee() (gas: 477338)
|
|
201
159
|
[PASS] test_setFeeDeposit() (gas: 28359)
|
|
202
160
|
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
|
|
203
|
-
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ:
|
|
204
|
-
Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in
|
|
205
|
-
|
|
206
|
-
Ran 33 tests for test/OFTBurnSelfMintExtendedRBACAlt.t.sol:OFTBurnSelfMintExtendedRBACAltTest
|
|
207
|
-
[PASS] test_credit() (gas: 89873)
|
|
208
|
-
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 92999, ~: 93305)
|
|
209
|
-
[PASS] test_debit() (gas: 120710)
|
|
210
|
-
[PASS] test_debit_Dust() (gas: 145216)
|
|
211
|
-
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 147031, ~: 148086)
|
|
212
|
-
[PASS] test_debit_PushesFees() (gas: 165984)
|
|
213
|
-
[PASS] test_debit_Revert_SlippageExceeded() (gas: 133872)
|
|
214
|
-
[PASS] test_debit_SmallAmount_DustOnly() (gas: 145179)
|
|
215
|
-
[PASS] test_debit_TokensTransferredToSelfThenBurned() (gas: 122500)
|
|
216
|
-
[PASS] test_debit_WithFee() (gas: 166449)
|
|
217
|
-
[PASS] test_debit_WithFee_Dust() (gas: 166055)
|
|
218
|
-
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 168388, ~: 170248)
|
|
219
|
-
[PASS] test_initialize() (gas: 24700)
|
|
220
|
-
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
|
|
221
|
-
[PASS] test_pause_unpause() (gas: 153198)
|
|
222
|
-
[PASS] test_quoteOFT() (gas: 70712)
|
|
223
|
-
[PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
|
|
224
|
-
[PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59173)
|
|
225
|
-
[PASS] test_quoteOFT_Paused() (gas: 56570)
|
|
226
|
-
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 243840)
|
|
227
|
-
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 270346)
|
|
228
|
-
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 193678, ~: 193521)
|
|
229
|
-
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84254)
|
|
230
|
-
[PASS] test_rateLimit_Inflow() (gas: 108826)
|
|
231
|
-
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 159696)
|
|
232
|
-
[PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 176825)
|
|
233
|
-
[PASS] test_send() (gas: 456534)
|
|
234
|
-
[PASS] test_send_Revert_MsgInspection() (gas: 337267)
|
|
235
|
-
[PASS] test_send_Revert_OnlyAltToken() (gas: 250697)
|
|
236
|
-
[PASS] test_send_WithFee() (gas: 504694)
|
|
237
|
-
[PASS] test_setFeeDeposit() (gas: 28445)
|
|
238
|
-
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
|
|
239
|
-
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38962, ~: 39034)
|
|
240
|
-
Suite result: ok. 33 passed; 0 failed; 0 skipped; finished in 765.82ms (2.36s CPU time)
|
|
161
|
+
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38890, ~: 38967)
|
|
162
|
+
Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 530.40ms (1.81s CPU time)
|
|
241
163
|
|
|
242
164
|
Ran 32 tests for test/OFTLockUnlockExtendedRBACAlt.t.sol:OFTLockUnlockExtendedRBACAltTest
|
|
243
165
|
[PASS] test_credit() (gas: 91882)
|
|
244
|
-
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ:
|
|
166
|
+
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 95041, ~: 95314)
|
|
245
167
|
[PASS] test_debit() (gas: 113036)
|
|
246
168
|
[PASS] test_debit_Dust() (gas: 137551)
|
|
247
|
-
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ:
|
|
169
|
+
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 140236, ~: 140423)
|
|
248
170
|
[PASS] test_debit_PushesFees() (gas: 163342)
|
|
249
171
|
[PASS] test_debit_Revert_SlippageExceeded() (gas: 133828)
|
|
250
172
|
[PASS] test_debit_SmallAmount_DustOnly() (gas: 137513)
|
|
251
173
|
[PASS] test_debit_WithFee() (gas: 163924)
|
|
252
174
|
[PASS] test_debit_WithFee_Dust() (gas: 163430)
|
|
253
|
-
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ:
|
|
175
|
+
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 163433, ~: 162567)
|
|
254
176
|
[PASS] test_initialize() (gas: 24656)
|
|
255
177
|
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92822)
|
|
256
178
|
[PASS] test_pause_unpause() (gas: 145524)
|
|
@@ -260,7 +182,7 @@ Ran 32 tests for test/OFTLockUnlockExtendedRBACAlt.t.sol:OFTLockUnlockExtendedRB
|
|
|
260
182
|
[PASS] test_quoteOFT_Paused() (gas: 56637)
|
|
261
183
|
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 200448)
|
|
262
184
|
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 242784)
|
|
263
|
-
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ:
|
|
185
|
+
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 198112, ~: 197912)
|
|
264
186
|
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84299)
|
|
265
187
|
[PASS] test_rateLimit_Inflow() (gas: 132710)
|
|
266
188
|
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 159652)
|
|
@@ -272,54 +194,20 @@ Ran 32 tests for test/OFTLockUnlockExtendedRBACAlt.t.sol:OFTLockUnlockExtendedRB
|
|
|
272
194
|
[PASS] test_setFeeDeposit() (gas: 28423)
|
|
273
195
|
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22583)
|
|
274
196
|
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38925, ~: 39012)
|
|
275
|
-
Suite result: ok. 32 passed; 0 failed; 0 skipped; finished in
|
|
276
|
-
|
|
277
|
-
Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACCrosschainTest
|
|
278
|
-
[PASS] test_credit() (gas: 89874)
|
|
279
|
-
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93190, ~: 93306)
|
|
280
|
-
[PASS] test_debit() (gas: 98332)
|
|
281
|
-
[PASS] test_debit_Dust() (gas: 139763)
|
|
282
|
-
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 142977, ~: 143477)
|
|
283
|
-
[PASS] test_debit_PushesFees() (gas: 165812)
|
|
284
|
-
[PASS] test_debit_Revert_SlippageExceeded() (gas: 131894)
|
|
285
|
-
[PASS] test_debit_SmallAmount_DustOnly() (gas: 139827)
|
|
286
|
-
[PASS] test_debit_WithFee() (gas: 165286)
|
|
287
|
-
[PASS] test_debit_WithFee_Dust() (gas: 165900)
|
|
288
|
-
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 168552, ~: 171220)
|
|
289
|
-
[PASS] test_initialize() (gas: 24722)
|
|
290
|
-
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
|
|
291
|
-
[PASS] test_pause_unpause() (gas: 130472)
|
|
292
|
-
[PASS] test_quoteOFT() (gas: 70712)
|
|
293
|
-
[PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
|
|
294
|
-
[PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59195)
|
|
295
|
-
[PASS] test_quoteOFT_Paused() (gas: 56570)
|
|
296
|
-
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 185667)
|
|
297
|
-
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 233430)
|
|
298
|
-
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 200489, ~: 200309)
|
|
299
|
-
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84276)
|
|
300
|
-
[PASS] test_rateLimit_Inflow() (gas: 108739)
|
|
301
|
-
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
|
|
302
|
-
[PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 179385)
|
|
303
|
-
[PASS] test_send() (gas: 400527)
|
|
304
|
-
[PASS] test_send_Revert_MsgInspection() (gas: 308880)
|
|
305
|
-
[PASS] test_send_WithFee() (gas: 477358)
|
|
306
|
-
[PASS] test_setFeeDeposit() (gas: 28359)
|
|
307
|
-
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
|
|
308
|
-
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38847, ~: 38967)
|
|
309
|
-
Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 833.52ms (1.93s CPU time)
|
|
197
|
+
Suite result: ok. 32 passed; 0 failed; 0 skipped; finished in 561.31ms (1.50s CPU time)
|
|
310
198
|
|
|
311
199
|
Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACRedeemIssueTest
|
|
312
200
|
[PASS] test_credit() (gas: 89907)
|
|
313
|
-
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ:
|
|
201
|
+
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93221, ~: 93339)
|
|
314
202
|
[PASS] test_debit() (gas: 98305)
|
|
315
203
|
[PASS] test_debit_Dust() (gas: 139763)
|
|
316
|
-
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ:
|
|
204
|
+
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 142877, ~: 143477)
|
|
317
205
|
[PASS] test_debit_PushesFees() (gas: 165812)
|
|
318
206
|
[PASS] test_debit_Revert_SlippageExceeded() (gas: 131894)
|
|
319
207
|
[PASS] test_debit_SmallAmount_DustOnly() (gas: 139827)
|
|
320
208
|
[PASS] test_debit_WithFee() (gas: 165286)
|
|
321
209
|
[PASS] test_debit_WithFee_Dust() (gas: 165900)
|
|
322
|
-
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ:
|
|
210
|
+
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 168666, ~: 171220)
|
|
323
211
|
[PASS] test_initialize() (gas: 24722)
|
|
324
212
|
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
|
|
325
213
|
[PASS] test_pause_unpause() (gas: 130445)
|
|
@@ -329,7 +217,7 @@ Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACRedee
|
|
|
329
217
|
[PASS] test_quoteOFT_Paused() (gas: 56570)
|
|
330
218
|
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 185614)
|
|
331
219
|
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 233430)
|
|
332
|
-
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ:
|
|
220
|
+
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 200465, ~: 200315)
|
|
333
221
|
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84276)
|
|
334
222
|
[PASS] test_rateLimit_Inflow() (gas: 108772)
|
|
335
223
|
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
|
|
@@ -339,8 +227,120 @@ Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACRedee
|
|
|
339
227
|
[PASS] test_send_WithFee() (gas: 477358)
|
|
340
228
|
[PASS] test_setFeeDeposit() (gas: 28359)
|
|
341
229
|
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
|
|
342
|
-
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ:
|
|
343
|
-
Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in
|
|
230
|
+
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38842, ~: 38967)
|
|
231
|
+
Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 611.25ms (1.73s CPU time)
|
|
232
|
+
|
|
233
|
+
Ran 39 tests for test/OFTNativeExtendedRBAC.t.sol:OFTNativeExtendedRBACTest
|
|
234
|
+
[PASS] test_approvalRequired() (gas: 13426)
|
|
235
|
+
[PASS] test_credit() (gas: 62369)
|
|
236
|
+
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 65911, ~: 65954)
|
|
237
|
+
[PASS] test_credit_Revert_CreditFailed() (gas: 91478)
|
|
238
|
+
[PASS] test_debit() (gas: 36831)
|
|
239
|
+
[PASS] test_debit_Dust() (gas: 76272)
|
|
240
|
+
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 79585, ~: 79886)
|
|
241
|
+
[PASS] test_debit_PushesFees() (gas: 101339)
|
|
242
|
+
[PASS] test_debit_Revert_SlippageExceeded() (gas: 54229)
|
|
243
|
+
[PASS] test_debit_SmallAmount_DustOnly() (gas: 76226)
|
|
244
|
+
[PASS] test_debit_WithFee() (gas: 101145)
|
|
245
|
+
[PASS] test_debit_WithFee_Dust() (gas: 102376)
|
|
246
|
+
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 105478, ~: 107585)
|
|
247
|
+
[PASS] test_initialize() (gas: 22406)
|
|
248
|
+
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92778)
|
|
249
|
+
[PASS] test_pause_unpause() (gas: 61117)
|
|
250
|
+
[PASS] test_quoteOFT() (gas: 70779)
|
|
251
|
+
[PASS] test_quoteOFT_GloballyDisabled() (gas: 80649)
|
|
252
|
+
[PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59220)
|
|
253
|
+
[PASS] test_quoteOFT_Paused() (gas: 56703)
|
|
254
|
+
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 97744)
|
|
255
|
+
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 160139)
|
|
256
|
+
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 137905, ~: 137703)
|
|
257
|
+
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84387)
|
|
258
|
+
[PASS] test_rateLimit_Inflow() (gas: 87713)
|
|
259
|
+
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 80123)
|
|
260
|
+
[PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 116713)
|
|
261
|
+
[PASS] test_send() (gas: 352734)
|
|
262
|
+
[PASS] test_send_PushesFees() (gas: 415282)
|
|
263
|
+
[PASS] test_send_Revert_FeeTransferFailed() (gas: 157067)
|
|
264
|
+
[PASS] test_send_Revert_IncorrectMessageValue_TooHigh() (gas: 30287)
|
|
265
|
+
[PASS] test_send_Revert_IncorrectMessageValue_TooLow() (gas: 30257)
|
|
266
|
+
[PASS] test_send_Revert_IncorrectMessageValue_ZeroValue() (gas: 22753)
|
|
267
|
+
[PASS] test_send_Revert_MsgInspection() (gas: 221169)
|
|
268
|
+
[PASS] test_send_WithFee() (gas: 415240)
|
|
269
|
+
[PASS] test_setFeeDeposit() (gas: 28425)
|
|
270
|
+
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22627)
|
|
271
|
+
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38939, ~: 39011)
|
|
272
|
+
[PASS] test_token() (gas: 13483)
|
|
273
|
+
Suite result: ok. 39 passed; 0 failed; 0 skipped; finished in 626.48ms (1.27s CPU time)
|
|
274
|
+
|
|
275
|
+
Ran 32 tests for test/OFTBurnMintExtendedRBACAlt.t.sol:OFTBurnMintExtendedRBACAltTest
|
|
276
|
+
[PASS] test_credit() (gas: 89871)
|
|
277
|
+
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93317, ~: 93303)
|
|
278
|
+
[PASS] test_debit() (gas: 98327)
|
|
279
|
+
[PASS] test_debit_Dust() (gas: 141836)
|
|
280
|
+
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 144823, ~: 145461)
|
|
281
|
+
[PASS] test_debit_PushesFees() (gas: 167796)
|
|
282
|
+
[PASS] test_debit_Revert_SlippageExceeded() (gas: 133872)
|
|
283
|
+
[PASS] test_debit_SmallAmount_DustOnly() (gas: 141789)
|
|
284
|
+
[PASS] test_debit_WithFee() (gas: 165270)
|
|
285
|
+
[PASS] test_debit_WithFee_Dust() (gas: 167884)
|
|
286
|
+
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 170346, ~: 173204)
|
|
287
|
+
[PASS] test_initialize() (gas: 24700)
|
|
288
|
+
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
|
|
289
|
+
[PASS] test_pause_unpause() (gas: 132067)
|
|
290
|
+
[PASS] test_quoteOFT() (gas: 70712)
|
|
291
|
+
[PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
|
|
292
|
+
[PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59173)
|
|
293
|
+
[PASS] test_quoteOFT_Paused() (gas: 56570)
|
|
294
|
+
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 187257)
|
|
295
|
+
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 235398)
|
|
296
|
+
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 202467, ~: 202299)
|
|
297
|
+
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84254)
|
|
298
|
+
[PASS] test_rateLimit_Inflow() (gas: 108824)
|
|
299
|
+
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 159696)
|
|
300
|
+
[PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 181347)
|
|
301
|
+
[PASS] test_send() (gas: 421733)
|
|
302
|
+
[PASS] test_send_Revert_MsgInspection() (gas: 310849)
|
|
303
|
+
[PASS] test_send_Revert_OnlyAltToken() (gas: 198819)
|
|
304
|
+
[PASS] test_send_WithFee() (gas: 493959)
|
|
305
|
+
[PASS] test_setFeeDeposit() (gas: 28445)
|
|
306
|
+
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
|
|
307
|
+
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38938, ~: 39034)
|
|
308
|
+
Suite result: ok. 32 passed; 0 failed; 0 skipped; finished in 625.57ms (1.59s 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, μ: 93265, ~: 93305)
|
|
313
|
+
[PASS] test_debit() (gas: 120710)
|
|
314
|
+
[PASS] test_debit_Dust() (gas: 143616)
|
|
315
|
+
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 145553, ~: 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, μ: 166774, ~: 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, μ: 192079, ~: 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, μ: 38966, ~: 39034)
|
|
343
|
+
Suite result: ok. 32 passed; 0 failed; 0 skipped; finished in 666.06ms (1.54s CPU time)
|
|
344
344
|
|
|
345
|
-
Ran 9 test suites in
|
|
346
|
-
⏳ forge test:
|
|
345
|
+
Ran 9 test suites in 825.44ms (5.09s CPU time): 292 tests passed, 0 failed, 0 skipped (292 total tests)
|
|
346
|
+
⏳ forge test: 43.006s
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@layerzerolabs/oft-upgradeable-evm-contracts",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "1.2.6",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "LayerZero Labs reference EVM upgradeable OFT implementation",
|
|
6
6
|
"license": "MIT",
|
|
@@ -14,16 +14,14 @@
|
|
|
14
14
|
"@openzeppelin/contracts-upgradeable": "^5.0.2",
|
|
15
15
|
"ethers": "^5.8.0",
|
|
16
16
|
"solhint": "^6.0.1",
|
|
17
|
-
"@layerzerolabs/
|
|
18
|
-
"@layerzerolabs/oapp-
|
|
19
|
-
"@layerzerolabs/
|
|
20
|
-
"@layerzerolabs/
|
|
21
|
-
"@layerzerolabs/
|
|
22
|
-
"@layerzerolabs/
|
|
23
|
-
"@layerzerolabs/
|
|
24
|
-
"@layerzerolabs/vm-tooling-evm": "
|
|
25
|
-
"@layerzerolabs/utils-evm-contracts": "0.2.132",
|
|
26
|
-
"@layerzerolabs/utils-upgradeable-evm-contracts": "0.2.132"
|
|
17
|
+
"@layerzerolabs/oft-evm-contracts": "1.2.6",
|
|
18
|
+
"@layerzerolabs/oapp-evm-contracts": "1.2.6",
|
|
19
|
+
"@layerzerolabs/oapp-upgradeable-evm-contracts": "1.2.6",
|
|
20
|
+
"@layerzerolabs/test-utils-evm-contracts": "1.2.6",
|
|
21
|
+
"@layerzerolabs/solhint-configuration": "1.2.6",
|
|
22
|
+
"@layerzerolabs/utils-evm-contracts": "1.2.6",
|
|
23
|
+
"@layerzerolabs/utils-upgradeable-evm-contracts": "1.2.6",
|
|
24
|
+
"@layerzerolabs/vm-tooling-evm": "1.2.6"
|
|
27
25
|
},
|
|
28
26
|
"publishConfig": {
|
|
29
27
|
"access": "public",
|
|
@@ -38,10 +36,10 @@
|
|
|
38
36
|
"scripts": {
|
|
39
37
|
"build": "pnpm compile:evm && pnpm compile:zksync && pnpm compile:tron",
|
|
40
38
|
"clean": "rm -rf ./node_modules .turbo ./dist && pnpm generated:clean",
|
|
41
|
-
"compile:evm": "pnpm lz-tool
|
|
42
|
-
"compile:tron": "pnpm lz-tool
|
|
43
|
-
"compile:zksync": "pnpm lz-tool
|
|
44
|
-
"generated:clean": "rm -rf ./artifacts ./
|
|
39
|
+
"compile:evm": "pnpm lz-tool hardhat compile --config /hardhat/hardhat.default.config.js",
|
|
40
|
+
"compile:tron": "pnpm lz-tool hardhat compile --config /hardhat/hardhat.default.config.js --network tron-mainnet",
|
|
41
|
+
"compile:zksync": "pnpm lz-tool hardhat compile --config /hardhat/hardhat.default.config.js --network zksync-mainnet",
|
|
42
|
+
"generated:clean": "rm -rf ./artifacts* ./hh-cache* ./out ./cache",
|
|
45
43
|
"lint": "solhint --config solhint.config.js 'contracts/**/*.sol' 'test/**/*.sol' --fix --noPrompt",
|
|
46
44
|
"test": "pnpm lz-tool forge test",
|
|
47
45
|
"test:snapshot:check": "pnpm exec turbo-snapshot check",
|