@layerzerolabs/oft-upgradeable-evm-contracts 0.2.113 → 0.2.115
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 +36 -15
- package/.turbo/turbo-test.log +204 -197
- package/package.json +11 -11
package/.turbo/turbo-build.log
CHANGED
|
@@ -11,17 +11,24 @@
|
|
|
11
11
|
WARN Issue while reading "/home/runner/work/monorepo-internal/monorepo-internal/.npmrc". Failed to replace env in config: ${NPM_TOKEN}
|
|
12
12
|
✅ forge-1.3.6-hardhat-2.26.3
|
|
13
13
|
🔧 hardhat version: 2.26.3
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
📦 Using mini workspace: /tmp/lz-mini-workspace-5lE4pi
|
|
15
|
+
📦 Copied 13 workspace package source(s)
|
|
16
|
+
📦 No mini-workspace pruner configured; using unpruned package-level source copy fallback.
|
|
17
|
+
(node:143800) [MODULE_TYPELESS_PACKAGE_JSON] Warning: Module type of file:///home/runner/work/monorepo-internal/monorepo-internal/configs/vm-tooling/values/docker-image-repo.ts is not specified and it doesn't parse as CommonJS.
|
|
16
18
|
Reparsing as ES module because module syntax was detected. This incurs a performance overhead.
|
|
17
19
|
To eliminate this warning, add "type": "module" to /home/runner/work/monorepo-internal/monorepo-internal/package.json.
|
|
18
20
|
(Use `node --trace-warnings ...` to show where the warning was created)
|
|
21
|
+
📦 Docker volumes:
|
|
22
|
+
-v /tmp/lz-mini-workspace-5lE4pi:/workspace
|
|
23
|
+
-v /home/runner/work/monorepo-internal/monorepo-internal/apps/oft-app/contracts/evm/upgradeable:/workspace/apps/oft-app/contracts/evm/upgradeable
|
|
24
|
+
-v /home/runner/work/monorepo-internal/monorepo-internal/node_modules/.pnpm:/workspace/node_modules/.pnpm:ro
|
|
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
|
|
19
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
|
|
20
|
-
$ docker container rm
|
|
27
|
+
$ docker container rm 1ffc2a223525df09346a7da02e8a7fead8920672629b5d84041870dfb4968e23
|
|
28
|
+
$ docker run --platform linux/amd64 --rm --add-host=host.docker.internal:host-gateway -e $'TS_NODE_COMPILER_OPTIONS={"module":"CommonJS","moduleResolution":"node"}' -e LOCAL_UID=1001 -e LOCAL_GID=1001 -v /tmp/lz-mini-workspace-5lE4pi:/workspace -v /home/runner/work/monorepo-internal/monorepo-internal/apps/oft-app/contracts/evm/upgradeable:/workspace/apps/oft-app/contracts/evm/upgradeable -v /home/runner/work/monorepo-internal/monorepo-internal/node_modules/.pnpm:/workspace/node_modules/.pnpm:ro -w /workspace/apps/oft-app/contracts/evm/upgradeable 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3 hardhat compile --config /hardhat/hardhat.default.config.js
|
|
21
29
|
✅ 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)
|
|
22
30
|
👤 Running container as UID:GID 1001:1001
|
|
23
31
|
🌍 Using 1 custom environment variable(s)
|
|
24
|
-
$ docker run --platform linux/amd64 --rm --add-host=host.docker.internal:host-gateway -e $'TS_NODE_COMPILER_OPTIONS={"module":"CommonJS","moduleResolution":"node"}' -e LOCAL_UID=1001 -e LOCAL_GID=1001 -v /home/runner/work/monorepo-internal/monorepo-internal:/workspace -w /workspace/apps/oft-app/contracts/evm/upgradeable 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3 hardhat compile --config /hardhat/hardhat.default.config.js
|
|
25
32
|
Compiling 76 Solidity files
|
|
26
33
|
Warning: Contract code size is 28075 bytes and exceeds 24576 bytes (a limit introduced in Spurious Dragon). This contract may not be deployable on Mainnet. Consider enabling the optimizer (with a low "runs" value!), turning off revert strings, or using libraries.
|
|
27
34
|
--> contracts/extended/OFTBurnMintExtendedRBACUpgradeable.sol:28:1:
|
|
@@ -73,7 +80,7 @@ Warning: Contract code size is 27524 bytes and exceeds 24576 bytes (a limit intr
|
|
|
73
80
|
|
|
74
81
|
|
|
75
82
|
Successfully compiled 76 Solidity files
|
|
76
|
-
⏳ hardhat compile --config /hardhat/hardhat.default.config.js:
|
|
83
|
+
⏳ hardhat compile --config /hardhat/hardhat.default.config.js: 10.071s
|
|
77
84
|
WARN Issue while reading "/home/runner/work/monorepo-internal/monorepo-internal/.npmrc". Failed to replace env in config: ${NPM_TOKEN}
|
|
78
85
|
|
|
79
86
|
> @layerzerolabs/oft-upgradeable-evm-contracts@0.0.0 compile:zksync /home/runner/work/monorepo-internal/monorepo-internal/apps/oft-app/contracts/evm/upgradeable
|
|
@@ -82,23 +89,30 @@ Successfully compiled 76 Solidity files
|
|
|
82
89
|
WARN Issue while reading "/home/runner/work/monorepo-internal/monorepo-internal/.npmrc". Failed to replace env in config: ${NPM_TOKEN}
|
|
83
90
|
✅ forge-1.3.6-hardhat-2.26.3
|
|
84
91
|
🔧 hardhat version: 2.26.3
|
|
85
|
-
|
|
86
|
-
|
|
92
|
+
📦 Using mini workspace: /tmp/lz-mini-workspace-IzOIYM
|
|
93
|
+
📦 Copied 13 workspace package source(s)
|
|
94
|
+
📦 No mini-workspace pruner configured; using unpruned package-level source copy fallback.
|
|
95
|
+
(node:147342) [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.
|
|
87
96
|
Reparsing as ES module because module syntax was detected. This incurs a performance overhead.
|
|
88
97
|
To eliminate this warning, add "type": "module" to /home/runner/work/monorepo-internal/monorepo-internal/package.json.
|
|
89
98
|
(Use `node --trace-warnings ...` to show where the warning was created)
|
|
99
|
+
📦 Docker volumes:
|
|
100
|
+
-v /tmp/lz-mini-workspace-IzOIYM:/workspace
|
|
101
|
+
-v /home/runner/work/monorepo-internal/monorepo-internal/apps/oft-app/contracts/evm/upgradeable:/workspace/apps/oft-app/contracts/evm/upgradeable
|
|
102
|
+
-v /home/runner/work/monorepo-internal/monorepo-internal/node_modules/.pnpm:/workspace/node_modules/.pnpm:ro
|
|
103
|
+
$ docker image inspect --format {{.Architecture}} 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3
|
|
90
104
|
$ docker container create --platform linux/amd64 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3 true
|
|
91
|
-
$ docker container rm
|
|
105
|
+
$ docker container rm cda441b2e05c471cd8317a776f2e7f9c5ec3d9dcdc25da6501352efe4559d5d3
|
|
92
106
|
✅ Using cached Docker image: 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3 (linux/amd64)
|
|
93
107
|
👤 Running container as UID:GID 1001:1001
|
|
94
108
|
🌍 Using 1 custom environment variable(s)
|
|
95
|
-
$ docker run --platform linux/amd64 --rm --add-host=host.docker.internal:host-gateway -e $'TS_NODE_COMPILER_OPTIONS={"module":"CommonJS","moduleResolution":"node"}' -e LOCAL_UID=1001 -e LOCAL_GID=1001 -v /home/runner/work/monorepo-internal/monorepo-internal:/workspace -w /workspace/apps/oft-app/contracts/evm/upgradeable 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3 hardhat compile --config /hardhat/hardhat.default.config.js --network zksync-mainnet
|
|
109
|
+
$ docker run --platform linux/amd64 --rm --add-host=host.docker.internal:host-gateway -e $'TS_NODE_COMPILER_OPTIONS={"module":"CommonJS","moduleResolution":"node"}' -e LOCAL_UID=1001 -e LOCAL_GID=1001 -v /tmp/lz-mini-workspace-IzOIYM:/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
|
|
96
110
|
The solc version 1.3.22 is deprecated and will be removed for security reasons soon. Please update to v1.4.0 or newer.
|
|
97
111
|
The zksolc compiler version in your Hardhat config file (1.3.22) is not the latest. We recommend using the latest version 1.5.15.
|
|
98
112
|
Compiling contracts for ZKsync Era with zksolc v1.3.22 and zkvm-solc v0.8.23-1.0.1
|
|
99
113
|
Compiling 76 Solidity files
|
|
100
114
|
Successfully compiled 76 Solidity files
|
|
101
|
-
⏳ hardhat compile --config /hardhat/hardhat.default.config.js --network zksync-mainnet: 1:
|
|
115
|
+
⏳ hardhat compile --config /hardhat/hardhat.default.config.js --network zksync-mainnet: 1:14.543 (m:ss.mmm)
|
|
102
116
|
WARN Issue while reading "/home/runner/work/monorepo-internal/monorepo-internal/.npmrc". Failed to replace env in config: ${NPM_TOKEN}
|
|
103
117
|
|
|
104
118
|
> @layerzerolabs/oft-upgradeable-evm-contracts@0.0.0 compile:tron /home/runner/work/monorepo-internal/monorepo-internal/apps/oft-app/contracts/evm/upgradeable
|
|
@@ -107,17 +121,24 @@ Successfully compiled 76 Solidity files
|
|
|
107
121
|
WARN Issue while reading "/home/runner/work/monorepo-internal/monorepo-internal/.npmrc". Failed to replace env in config: ${NPM_TOKEN}
|
|
108
122
|
✅ forge-1.3.6-hardhat-2.26.3
|
|
109
123
|
🔧 hardhat version: 2.26.3
|
|
110
|
-
|
|
111
|
-
|
|
124
|
+
📦 Using mini workspace: /tmp/lz-mini-workspace-Nkxod0
|
|
125
|
+
📦 Copied 13 workspace package source(s)
|
|
126
|
+
📦 No mini-workspace pruner configured; using unpruned package-level source copy fallback.
|
|
127
|
+
(node:191326) [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.
|
|
112
128
|
Reparsing as ES module because module syntax was detected. This incurs a performance overhead.
|
|
113
129
|
To eliminate this warning, add "type": "module" to /home/runner/work/monorepo-internal/monorepo-internal/package.json.
|
|
114
130
|
(Use `node --trace-warnings ...` to show where the warning was created)
|
|
131
|
+
📦 Docker volumes:
|
|
132
|
+
-v /tmp/lz-mini-workspace-Nkxod0:/workspace
|
|
133
|
+
-v /home/runner/work/monorepo-internal/monorepo-internal/apps/oft-app/contracts/evm/upgradeable:/workspace/apps/oft-app/contracts/evm/upgradeable
|
|
134
|
+
-v /home/runner/work/monorepo-internal/monorepo-internal/node_modules/.pnpm:/workspace/node_modules/.pnpm:ro
|
|
135
|
+
$ docker image inspect --format {{.Architecture}} 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3
|
|
115
136
|
$ docker container create --platform linux/amd64 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3 true
|
|
116
|
-
$ docker container rm
|
|
137
|
+
$ docker container rm dda1aa0df898fb97cc892e5b035d801e80889f914696099180db50ad184306b0
|
|
117
138
|
✅ Using cached Docker image: 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3 (linux/amd64)
|
|
118
139
|
👤 Running container as UID:GID 1001:1001
|
|
119
140
|
🌍 Using 1 custom environment variable(s)
|
|
120
|
-
$ docker run --platform linux/amd64 --rm --add-host=host.docker.internal:host-gateway -e $'TS_NODE_COMPILER_OPTIONS={"module":"CommonJS","moduleResolution":"node"}' -e LOCAL_UID=1001 -e LOCAL_GID=1001 -v /home/runner/work/monorepo-internal/monorepo-internal:/workspace -w /workspace/apps/oft-app/contracts/evm/upgradeable 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3 hardhat compile --config /hardhat/hardhat.default.config.js --network tron-mainnet
|
|
141
|
+
$ docker run --platform linux/amd64 --rm --add-host=host.docker.internal:host-gateway -e $'TS_NODE_COMPILER_OPTIONS={"module":"CommonJS","moduleResolution":"node"}' -e LOCAL_UID=1001 -e LOCAL_GID=1001 -v /tmp/lz-mini-workspace-Nkxod0:/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
|
|
121
142
|
detected tron network, replacing deployments extension with custom one
|
|
122
143
|
Tron-solc v0.8.23 is unknown version, attempting anyway...
|
|
123
144
|
Compiling contracts with tron solc v0.8.23
|
|
@@ -172,4 +193,4 @@ Warning: Contract code size is 29394 bytes and exceeds 24576 bytes (a limit intr
|
|
|
172
193
|
|
|
173
194
|
|
|
174
195
|
Successfully compiled 76 Solidity files
|
|
175
|
-
⏳ hardhat compile --config /hardhat/hardhat.default.config.js --network tron-mainnet:
|
|
196
|
+
⏳ hardhat compile --config /hardhat/hardhat.default.config.js --network tron-mainnet: 27.335s
|
package/.turbo/turbo-test.log
CHANGED
|
@@ -4,135 +4,71 @@
|
|
|
4
4
|
|
|
5
5
|
✅ forge-1.3.6-hardhat-2.26.3
|
|
6
6
|
🔧 forge version: 1.3.6
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
📦 Using mini workspace: /tmp/lz-mini-workspace-CkZsz8
|
|
8
|
+
📦 Copied 13 workspace package source(s)
|
|
9
|
+
📦 No mini-workspace pruner configured; using unpruned package-level source copy fallback.
|
|
10
|
+
(node:211010) [MODULE_TYPELESS_PACKAGE_JSON] Warning: Module type of file:///home/runner/work/monorepo-internal/monorepo-internal/configs/vm-tooling/values/docker-image-repo.ts is not specified and it doesn't parse as CommonJS.
|
|
9
11
|
Reparsing as ES module because module syntax was detected. This incurs a performance overhead.
|
|
10
12
|
To eliminate this warning, add "type": "module" to /home/runner/work/monorepo-internal/monorepo-internal/package.json.
|
|
11
13
|
(Use `node --trace-warnings ...` to show where the warning was created)
|
|
14
|
+
📦 Docker volumes:
|
|
15
|
+
-v /tmp/lz-mini-workspace-CkZsz8:/workspace
|
|
16
|
+
-v /home/runner/work/monorepo-internal/monorepo-internal/apps/oft-app/contracts/evm/upgradeable:/workspace/apps/oft-app/contracts/evm/upgradeable
|
|
17
|
+
-v /home/runner/work/monorepo-internal/monorepo-internal/node_modules/.pnpm:/workspace/node_modules/.pnpm:ro
|
|
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
|
|
12
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)
|
|
13
20
|
👤 Running container as UID:GID 1001:1001
|
|
14
|
-
$ docker run --rm --add-host=host.docker.internal:host-gateway -e LOCAL_UID=1001 -e LOCAL_GID=1001 -v /home/runner/work/monorepo-internal/monorepo-internal:/workspace -w /workspace/apps/oft-app/contracts/evm/upgradeable 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3 forge test
|
|
21
|
+
$ docker run --rm --add-host=host.docker.internal:host-gateway -e LOCAL_UID=1001 -e LOCAL_GID=1001 -v /tmp/lz-mini-workspace-CkZsz8:/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
|
|
15
22
|
Compiling 185 files with Solc 0.8.22
|
|
16
|
-
Solc 0.8.22 finished in
|
|
23
|
+
Solc 0.8.22 finished in 56.87s
|
|
17
24
|
Compiler run successful!
|
|
18
25
|
|
|
19
|
-
Ran
|
|
20
|
-
[PASS] test_credit() (gas:
|
|
21
|
-
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ:
|
|
22
|
-
[PASS] test_debit() (gas:
|
|
23
|
-
[PASS] test_debit_Dust() (gas:
|
|
24
|
-
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ:
|
|
25
|
-
[PASS] test_debit_PushesFees() (gas:
|
|
26
|
-
[PASS] test_debit_Revert_SlippageExceeded() (gas:
|
|
27
|
-
[PASS] test_debit_SmallAmount_DustOnly() (gas:
|
|
28
|
-
[PASS]
|
|
29
|
-
[PASS]
|
|
30
|
-
[PASS]
|
|
31
|
-
[PASS]
|
|
32
|
-
[PASS]
|
|
33
|
-
[PASS]
|
|
34
|
-
[PASS]
|
|
35
|
-
[PASS]
|
|
36
|
-
[PASS]
|
|
37
|
-
[PASS]
|
|
38
|
-
[PASS]
|
|
39
|
-
[PASS]
|
|
40
|
-
[PASS]
|
|
41
|
-
[PASS]
|
|
42
|
-
[PASS]
|
|
43
|
-
[PASS]
|
|
44
|
-
[PASS]
|
|
45
|
-
[PASS]
|
|
46
|
-
[PASS]
|
|
47
|
-
[PASS]
|
|
48
|
-
[PASS]
|
|
49
|
-
[PASS]
|
|
50
|
-
[PASS]
|
|
51
|
-
|
|
52
|
-
Suite result: ok. 32 passed; 0 failed; 0 skipped; finished in 606.89ms (1.84s CPU time)
|
|
53
|
-
|
|
54
|
-
Ran 33 tests for test/OFTBurnSelfMintExtendedRBACAlt.t.sol:OFTBurnSelfMintExtendedRBACAltTest
|
|
55
|
-
[PASS] test_credit() (gas: 89873)
|
|
56
|
-
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93049, ~: 93305)
|
|
57
|
-
[PASS] test_debit() (gas: 120710)
|
|
58
|
-
[PASS] test_debit_Dust() (gas: 145216)
|
|
59
|
-
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 147301, ~: 148086)
|
|
60
|
-
[PASS] test_debit_PushesFees() (gas: 165984)
|
|
61
|
-
[PASS] test_debit_Revert_SlippageExceeded() (gas: 133872)
|
|
62
|
-
[PASS] test_debit_SmallAmount_DustOnly() (gas: 145179)
|
|
63
|
-
[PASS] test_debit_TokensTransferredToSelfThenBurned() (gas: 122500)
|
|
64
|
-
[PASS] test_debit_WithFee() (gas: 166449)
|
|
65
|
-
[PASS] test_debit_WithFee_Dust() (gas: 166055)
|
|
66
|
-
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 168307, ~: 170245)
|
|
67
|
-
[PASS] test_initialize() (gas: 24700)
|
|
68
|
-
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
|
|
69
|
-
[PASS] test_pause_unpause() (gas: 153198)
|
|
70
|
-
[PASS] test_quoteOFT() (gas: 70712)
|
|
71
|
-
[PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
|
|
72
|
-
[PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59173)
|
|
73
|
-
[PASS] test_quoteOFT_Paused() (gas: 56570)
|
|
74
|
-
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 243840)
|
|
75
|
-
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 270346)
|
|
76
|
-
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 193646, ~: 193521)
|
|
77
|
-
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84254)
|
|
78
|
-
[PASS] test_rateLimit_Inflow() (gas: 108826)
|
|
79
|
-
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 159696)
|
|
80
|
-
[PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 176825)
|
|
81
|
-
[PASS] test_send() (gas: 456534)
|
|
82
|
-
[PASS] test_send_Revert_MsgInspection() (gas: 337267)
|
|
83
|
-
[PASS] test_send_Revert_OnlyAltToken() (gas: 250697)
|
|
84
|
-
[PASS] test_send_WithFee() (gas: 504694)
|
|
85
|
-
[PASS] test_setFeeDeposit() (gas: 28445)
|
|
86
|
-
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
|
|
87
|
-
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38942, ~: 39034)
|
|
88
|
-
Suite result: ok. 33 passed; 0 failed; 0 skipped; finished in 669.24ms (2.17s CPU time)
|
|
89
|
-
|
|
90
|
-
Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACTest
|
|
91
|
-
[PASS] test_credit() (gas: 89871)
|
|
92
|
-
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93183, ~: 93303)
|
|
93
|
-
[PASS] test_debit() (gas: 98327)
|
|
94
|
-
[PASS] test_debit_Dust() (gas: 139747)
|
|
95
|
-
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 143208, ~: 143461)
|
|
96
|
-
[PASS] test_debit_PushesFees() (gas: 165796)
|
|
97
|
-
[PASS] test_debit_Revert_SlippageExceeded() (gas: 131894)
|
|
98
|
-
[PASS] test_debit_SmallAmount_DustOnly() (gas: 139811)
|
|
99
|
-
[PASS] test_debit_WithFee() (gas: 165270)
|
|
100
|
-
[PASS] test_debit_WithFee_Dust() (gas: 165884)
|
|
101
|
-
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 169031, ~: 171204)
|
|
102
|
-
[PASS] test_initialize() (gas: 24722)
|
|
103
|
-
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
|
|
104
|
-
[PASS] test_pause_unpause() (gas: 130467)
|
|
105
|
-
[PASS] test_quoteOFT() (gas: 70712)
|
|
106
|
-
[PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
|
|
107
|
-
[PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59195)
|
|
108
|
-
[PASS] test_quoteOFT_Paused() (gas: 56570)
|
|
109
|
-
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 185657)
|
|
110
|
-
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 233398)
|
|
111
|
-
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 200459, ~: 200293)
|
|
112
|
-
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84276)
|
|
113
|
-
[PASS] test_rateLimit_Inflow() (gas: 108736)
|
|
114
|
-
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
|
|
115
|
-
[PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 179369)
|
|
116
|
-
[PASS] test_send() (gas: 400518)
|
|
117
|
-
[PASS] test_send_Revert_MsgInspection() (gas: 308871)
|
|
118
|
-
[PASS] test_send_WithFee() (gas: 477338)
|
|
119
|
-
[PASS] test_setFeeDeposit() (gas: 28359)
|
|
120
|
-
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
|
|
121
|
-
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38871, ~: 38967)
|
|
122
|
-
Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 757.48ms (2.58s CPU time)
|
|
26
|
+
Ran 31 tests for test/OFTLockUnlockExtendedRBAC.t.sol:OFTLockUnlockExtendedRBACTest
|
|
27
|
+
[PASS] test_credit() (gas: 89882)
|
|
28
|
+
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93009, ~: 93314)
|
|
29
|
+
[PASS] test_debit() (gas: 113036)
|
|
30
|
+
[PASS] test_debit_Dust() (gas: 135880)
|
|
31
|
+
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 138365, ~: 138823)
|
|
32
|
+
[PASS] test_debit_PushesFees() (gas: 161342)
|
|
33
|
+
[PASS] test_debit_Revert_SlippageExceeded() (gas: 131850)
|
|
34
|
+
[PASS] test_debit_SmallAmount_DustOnly() (gas: 135931)
|
|
35
|
+
[PASS] test_debit_WithFee() (gas: 163924)
|
|
36
|
+
[PASS] test_debit_WithFee_Dust() (gas: 161430)
|
|
37
|
+
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 161578, ~: 160967)
|
|
38
|
+
[PASS] test_initialize() (gas: 24678)
|
|
39
|
+
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92822)
|
|
40
|
+
[PASS] test_pause_unpause() (gas: 143924)
|
|
41
|
+
[PASS] test_quoteOFT() (gas: 70757)
|
|
42
|
+
[PASS] test_quoteOFT_GloballyDisabled() (gas: 80605)
|
|
43
|
+
[PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59262)
|
|
44
|
+
[PASS] test_quoteOFT_Paused() (gas: 56637)
|
|
45
|
+
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 198848)
|
|
46
|
+
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 241184)
|
|
47
|
+
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 196112, ~: 195912)
|
|
48
|
+
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84321)
|
|
49
|
+
[PASS] test_rateLimit_Inflow() (gas: 130622)
|
|
50
|
+
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157652)
|
|
51
|
+
[PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 174915)
|
|
52
|
+
[PASS] test_send() (gas: 418929)
|
|
53
|
+
[PASS] test_send_Revert_MsgInspection() (gas: 325718)
|
|
54
|
+
[PASS] test_send_WithFee() (gas: 474453)
|
|
55
|
+
[PASS] test_setFeeDeposit() (gas: 28337)
|
|
56
|
+
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22583)
|
|
57
|
+
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38877, ~: 38945)
|
|
58
|
+
Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 498.73ms (1.80s CPU time)
|
|
123
59
|
|
|
124
60
|
Ran 32 tests for test/OFTBurnMintExtendedRBACAlt.t.sol:OFTBurnMintExtendedRBACAltTest
|
|
125
61
|
[PASS] test_credit() (gas: 89871)
|
|
126
|
-
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ:
|
|
62
|
+
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93142, ~: 93303)
|
|
127
63
|
[PASS] test_debit() (gas: 98327)
|
|
128
64
|
[PASS] test_debit_Dust() (gas: 141836)
|
|
129
|
-
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ:
|
|
65
|
+
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 144895, ~: 145461)
|
|
130
66
|
[PASS] test_debit_PushesFees() (gas: 167796)
|
|
131
67
|
[PASS] test_debit_Revert_SlippageExceeded() (gas: 133872)
|
|
132
68
|
[PASS] test_debit_SmallAmount_DustOnly() (gas: 141789)
|
|
133
69
|
[PASS] test_debit_WithFee() (gas: 165270)
|
|
134
70
|
[PASS] test_debit_WithFee_Dust() (gas: 167884)
|
|
135
|
-
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ:
|
|
71
|
+
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 170809, ~: 173204)
|
|
136
72
|
[PASS] test_initialize() (gas: 24700)
|
|
137
73
|
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
|
|
138
74
|
[PASS] test_pause_unpause() (gas: 132067)
|
|
@@ -142,7 +78,7 @@ Ran 32 tests for test/OFTBurnMintExtendedRBACAlt.t.sol:OFTBurnMintExtendedRBACAl
|
|
|
142
78
|
[PASS] test_quoteOFT_Paused() (gas: 56570)
|
|
143
79
|
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 187257)
|
|
144
80
|
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 235398)
|
|
145
|
-
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ:
|
|
81
|
+
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 202507, ~: 202299)
|
|
146
82
|
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84254)
|
|
147
83
|
[PASS] test_rateLimit_Inflow() (gas: 108824)
|
|
148
84
|
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 159696)
|
|
@@ -153,123 +89,125 @@ Ran 32 tests for test/OFTBurnMintExtendedRBACAlt.t.sol:OFTBurnMintExtendedRBACAl
|
|
|
153
89
|
[PASS] test_send_WithFee() (gas: 493959)
|
|
154
90
|
[PASS] test_setFeeDeposit() (gas: 28445)
|
|
155
91
|
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
|
|
156
|
-
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ:
|
|
157
|
-
Suite result: ok. 32 passed; 0 failed; 0 skipped; finished in
|
|
92
|
+
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38952, ~: 39034)
|
|
93
|
+
Suite result: ok. 32 passed; 0 failed; 0 skipped; finished in 669.83ms (1.79s CPU time)
|
|
158
94
|
|
|
159
|
-
Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:
|
|
160
|
-
[PASS] test_credit() (gas:
|
|
161
|
-
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ:
|
|
162
|
-
[PASS] test_debit() (gas:
|
|
95
|
+
Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACCrosschainTest
|
|
96
|
+
[PASS] test_credit() (gas: 89874)
|
|
97
|
+
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93231, ~: 93306)
|
|
98
|
+
[PASS] test_debit() (gas: 98332)
|
|
163
99
|
[PASS] test_debit_Dust() (gas: 139763)
|
|
164
|
-
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ:
|
|
100
|
+
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 142446, ~: 143477)
|
|
165
101
|
[PASS] test_debit_PushesFees() (gas: 165812)
|
|
166
102
|
[PASS] test_debit_Revert_SlippageExceeded() (gas: 131894)
|
|
167
103
|
[PASS] test_debit_SmallAmount_DustOnly() (gas: 139827)
|
|
168
104
|
[PASS] test_debit_WithFee() (gas: 165286)
|
|
169
105
|
[PASS] test_debit_WithFee_Dust() (gas: 165900)
|
|
170
|
-
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ:
|
|
106
|
+
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 169112, ~: 171220)
|
|
171
107
|
[PASS] test_initialize() (gas: 24722)
|
|
172
108
|
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
|
|
173
|
-
[PASS] test_pause_unpause() (gas:
|
|
109
|
+
[PASS] test_pause_unpause() (gas: 130472)
|
|
174
110
|
[PASS] test_quoteOFT() (gas: 70712)
|
|
175
111
|
[PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
|
|
176
112
|
[PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59195)
|
|
177
113
|
[PASS] test_quoteOFT_Paused() (gas: 56570)
|
|
178
|
-
[PASS] test_quoteOFT_RateLimiterUsage() (gas:
|
|
114
|
+
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 185667)
|
|
179
115
|
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 233430)
|
|
180
|
-
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ:
|
|
116
|
+
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 200501, ~: 200315)
|
|
181
117
|
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84276)
|
|
182
|
-
[PASS] test_rateLimit_Inflow() (gas:
|
|
118
|
+
[PASS] test_rateLimit_Inflow() (gas: 108739)
|
|
183
119
|
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
|
|
184
120
|
[PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 179385)
|
|
185
|
-
[PASS] test_send() (gas:
|
|
186
|
-
[PASS] test_send_Revert_MsgInspection() (gas:
|
|
121
|
+
[PASS] test_send() (gas: 400527)
|
|
122
|
+
[PASS] test_send_Revert_MsgInspection() (gas: 308880)
|
|
187
123
|
[PASS] test_send_WithFee() (gas: 477358)
|
|
188
124
|
[PASS] test_setFeeDeposit() (gas: 28359)
|
|
189
125
|
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
|
|
190
|
-
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ:
|
|
191
|
-
Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in
|
|
126
|
+
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38842, ~: 38967)
|
|
127
|
+
Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 693.56ms (2.34s CPU time)
|
|
192
128
|
|
|
193
|
-
Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:
|
|
194
|
-
[PASS] test_credit() (gas:
|
|
195
|
-
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ:
|
|
196
|
-
[PASS] test_debit() (gas:
|
|
197
|
-
[PASS] test_debit_Dust() (gas:
|
|
198
|
-
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ:
|
|
199
|
-
[PASS] test_debit_PushesFees() (gas:
|
|
129
|
+
Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACTest
|
|
130
|
+
[PASS] test_credit() (gas: 89871)
|
|
131
|
+
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 92969, ~: 93303)
|
|
132
|
+
[PASS] test_debit() (gas: 98327)
|
|
133
|
+
[PASS] test_debit_Dust() (gas: 139747)
|
|
134
|
+
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 143098, ~: 143461)
|
|
135
|
+
[PASS] test_debit_PushesFees() (gas: 165796)
|
|
200
136
|
[PASS] test_debit_Revert_SlippageExceeded() (gas: 131894)
|
|
201
|
-
[PASS] test_debit_SmallAmount_DustOnly() (gas:
|
|
202
|
-
[PASS] test_debit_WithFee() (gas:
|
|
203
|
-
[PASS] test_debit_WithFee_Dust() (gas:
|
|
204
|
-
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ:
|
|
137
|
+
[PASS] test_debit_SmallAmount_DustOnly() (gas: 139811)
|
|
138
|
+
[PASS] test_debit_WithFee() (gas: 165270)
|
|
139
|
+
[PASS] test_debit_WithFee_Dust() (gas: 165884)
|
|
140
|
+
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 169204, ~: 171204)
|
|
205
141
|
[PASS] test_initialize() (gas: 24722)
|
|
206
142
|
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
|
|
207
|
-
[PASS] test_pause_unpause() (gas:
|
|
143
|
+
[PASS] test_pause_unpause() (gas: 130467)
|
|
208
144
|
[PASS] test_quoteOFT() (gas: 70712)
|
|
209
145
|
[PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
|
|
210
146
|
[PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59195)
|
|
211
147
|
[PASS] test_quoteOFT_Paused() (gas: 56570)
|
|
212
|
-
[PASS] test_quoteOFT_RateLimiterUsage() (gas:
|
|
213
|
-
[PASS] test_quoteOFT_RateLimiterWithFee() (gas:
|
|
214
|
-
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ:
|
|
148
|
+
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 185657)
|
|
149
|
+
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 233398)
|
|
150
|
+
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 200459, ~: 200296)
|
|
215
151
|
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84276)
|
|
216
|
-
[PASS] test_rateLimit_Inflow() (gas:
|
|
152
|
+
[PASS] test_rateLimit_Inflow() (gas: 108736)
|
|
217
153
|
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
|
|
218
|
-
[PASS] test_rateLimit_Outflow_WithFee_Success() (gas:
|
|
219
|
-
[PASS] test_send() (gas:
|
|
220
|
-
[PASS] test_send_Revert_MsgInspection() (gas:
|
|
221
|
-
[PASS] test_send_WithFee() (gas:
|
|
154
|
+
[PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 179369)
|
|
155
|
+
[PASS] test_send() (gas: 400518)
|
|
156
|
+
[PASS] test_send_Revert_MsgInspection() (gas: 308871)
|
|
157
|
+
[PASS] test_send_WithFee() (gas: 477338)
|
|
222
158
|
[PASS] test_setFeeDeposit() (gas: 28359)
|
|
223
159
|
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
|
|
224
|
-
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ:
|
|
225
|
-
Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in
|
|
160
|
+
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38890, ~: 38967)
|
|
161
|
+
Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 759.08ms (1.64s CPU time)
|
|
226
162
|
|
|
227
|
-
Ran
|
|
228
|
-
[PASS] test_credit() (gas:
|
|
229
|
-
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ:
|
|
230
|
-
[PASS] test_debit() (gas:
|
|
231
|
-
[PASS] test_debit_Dust() (gas:
|
|
232
|
-
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ:
|
|
233
|
-
[PASS] test_debit_PushesFees() (gas:
|
|
234
|
-
[PASS] test_debit_Revert_SlippageExceeded() (gas:
|
|
235
|
-
[PASS] test_debit_SmallAmount_DustOnly() (gas:
|
|
236
|
-
[PASS]
|
|
237
|
-
[PASS]
|
|
238
|
-
[PASS]
|
|
239
|
-
[PASS]
|
|
240
|
-
[PASS]
|
|
241
|
-
[PASS]
|
|
242
|
-
[PASS]
|
|
243
|
-
[PASS]
|
|
244
|
-
[PASS]
|
|
245
|
-
[PASS]
|
|
246
|
-
[PASS]
|
|
247
|
-
[PASS]
|
|
248
|
-
[PASS]
|
|
249
|
-
[PASS]
|
|
250
|
-
[PASS]
|
|
251
|
-
[PASS]
|
|
252
|
-
[PASS]
|
|
253
|
-
[PASS]
|
|
254
|
-
[PASS]
|
|
255
|
-
[PASS]
|
|
256
|
-
[PASS]
|
|
257
|
-
[PASS]
|
|
258
|
-
[PASS]
|
|
259
|
-
|
|
163
|
+
Ran 33 tests for test/OFTBurnSelfMintExtendedRBACAlt.t.sol:OFTBurnSelfMintExtendedRBACAltTest
|
|
164
|
+
[PASS] test_credit() (gas: 89873)
|
|
165
|
+
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93056, ~: 93305)
|
|
166
|
+
[PASS] test_debit() (gas: 120710)
|
|
167
|
+
[PASS] test_debit_Dust() (gas: 145216)
|
|
168
|
+
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 147768, ~: 148086)
|
|
169
|
+
[PASS] test_debit_PushesFees() (gas: 165984)
|
|
170
|
+
[PASS] test_debit_Revert_SlippageExceeded() (gas: 133872)
|
|
171
|
+
[PASS] test_debit_SmallAmount_DustOnly() (gas: 145179)
|
|
172
|
+
[PASS] test_debit_TokensTransferredToSelfThenBurned() (gas: 122500)
|
|
173
|
+
[PASS] test_debit_WithFee() (gas: 166449)
|
|
174
|
+
[PASS] test_debit_WithFee_Dust() (gas: 166055)
|
|
175
|
+
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 168186, ~: 170245)
|
|
176
|
+
[PASS] test_initialize() (gas: 24700)
|
|
177
|
+
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
|
|
178
|
+
[PASS] test_pause_unpause() (gas: 153198)
|
|
179
|
+
[PASS] test_quoteOFT() (gas: 70712)
|
|
180
|
+
[PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
|
|
181
|
+
[PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59173)
|
|
182
|
+
[PASS] test_quoteOFT_Paused() (gas: 56570)
|
|
183
|
+
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 243840)
|
|
184
|
+
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 270346)
|
|
185
|
+
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 193648, ~: 193521)
|
|
186
|
+
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84254)
|
|
187
|
+
[PASS] test_rateLimit_Inflow() (gas: 108826)
|
|
188
|
+
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 159696)
|
|
189
|
+
[PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 176825)
|
|
190
|
+
[PASS] test_send() (gas: 456534)
|
|
191
|
+
[PASS] test_send_Revert_MsgInspection() (gas: 337267)
|
|
192
|
+
[PASS] test_send_Revert_OnlyAltToken() (gas: 250697)
|
|
193
|
+
[PASS] test_send_WithFee() (gas: 504694)
|
|
194
|
+
[PASS] test_setFeeDeposit() (gas: 28445)
|
|
195
|
+
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
|
|
196
|
+
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38930, ~: 39034)
|
|
197
|
+
Suite result: ok. 33 passed; 0 failed; 0 skipped; finished in 778.31ms (2.16s CPU time)
|
|
260
198
|
|
|
261
199
|
Ran 32 tests for test/OFTLockUnlockExtendedRBACAlt.t.sol:OFTLockUnlockExtendedRBACAltTest
|
|
262
200
|
[PASS] test_credit() (gas: 91882)
|
|
263
|
-
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ:
|
|
201
|
+
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 95308, ~: 95314)
|
|
264
202
|
[PASS] test_debit() (gas: 113036)
|
|
265
203
|
[PASS] test_debit_Dust() (gas: 137551)
|
|
266
|
-
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ:
|
|
204
|
+
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 139602, ~: 141029)
|
|
267
205
|
[PASS] test_debit_PushesFees() (gas: 163342)
|
|
268
206
|
[PASS] test_debit_Revert_SlippageExceeded() (gas: 133828)
|
|
269
207
|
[PASS] test_debit_SmallAmount_DustOnly() (gas: 137513)
|
|
270
208
|
[PASS] test_debit_WithFee() (gas: 163924)
|
|
271
209
|
[PASS] test_debit_WithFee_Dust() (gas: 163430)
|
|
272
|
-
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ:
|
|
210
|
+
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 163208, ~: 162567)
|
|
273
211
|
[PASS] test_initialize() (gas: 24656)
|
|
274
212
|
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92822)
|
|
275
213
|
[PASS] test_pause_unpause() (gas: 145524)
|
|
@@ -279,7 +217,7 @@ Ran 32 tests for test/OFTLockUnlockExtendedRBACAlt.t.sol:OFTLockUnlockExtendedRB
|
|
|
279
217
|
[PASS] test_quoteOFT_Paused() (gas: 56637)
|
|
280
218
|
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 200448)
|
|
281
219
|
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 242784)
|
|
282
|
-
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ:
|
|
220
|
+
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 198111, ~: 197912)
|
|
283
221
|
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84299)
|
|
284
222
|
[PASS] test_rateLimit_Inflow() (gas: 132710)
|
|
285
223
|
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 159652)
|
|
@@ -290,23 +228,23 @@ Ran 32 tests for test/OFTLockUnlockExtendedRBACAlt.t.sol:OFTLockUnlockExtendedRB
|
|
|
290
228
|
[PASS] test_send_WithFee() (gas: 516566)
|
|
291
229
|
[PASS] test_setFeeDeposit() (gas: 28423)
|
|
292
230
|
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22583)
|
|
293
|
-
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ:
|
|
294
|
-
Suite result: ok. 32 passed; 0 failed; 0 skipped; finished in
|
|
231
|
+
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38887, ~: 39012)
|
|
232
|
+
Suite result: ok. 32 passed; 0 failed; 0 skipped; finished in 778.30ms (2.22s CPU time)
|
|
295
233
|
|
|
296
234
|
Ran 39 tests for test/OFTNativeExtendedRBAC.t.sol:OFTNativeExtendedRBACTest
|
|
297
235
|
[PASS] test_approvalRequired() (gas: 13426)
|
|
298
236
|
[PASS] test_credit() (gas: 62369)
|
|
299
|
-
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ:
|
|
237
|
+
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 65701, ~: 65954)
|
|
300
238
|
[PASS] test_credit_Revert_CreditFailed() (gas: 91478)
|
|
301
239
|
[PASS] test_debit() (gas: 36831)
|
|
302
240
|
[PASS] test_debit_Dust() (gas: 76272)
|
|
303
|
-
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ:
|
|
241
|
+
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 79449, ~: 79886)
|
|
304
242
|
[PASS] test_debit_PushesFees() (gas: 101339)
|
|
305
243
|
[PASS] test_debit_Revert_SlippageExceeded() (gas: 54229)
|
|
306
244
|
[PASS] test_debit_SmallAmount_DustOnly() (gas: 76226)
|
|
307
245
|
[PASS] test_debit_WithFee() (gas: 101145)
|
|
308
246
|
[PASS] test_debit_WithFee_Dust() (gas: 102376)
|
|
309
|
-
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ:
|
|
247
|
+
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 105892, ~: 107585)
|
|
310
248
|
[PASS] test_initialize() (gas: 22406)
|
|
311
249
|
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92778)
|
|
312
250
|
[PASS] test_pause_unpause() (gas: 61117)
|
|
@@ -316,7 +254,7 @@ Ran 39 tests for test/OFTNativeExtendedRBAC.t.sol:OFTNativeExtendedRBACTest
|
|
|
316
254
|
[PASS] test_quoteOFT_Paused() (gas: 56703)
|
|
317
255
|
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 97744)
|
|
318
256
|
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 160139)
|
|
319
|
-
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ:
|
|
257
|
+
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 137870, ~: 137697)
|
|
320
258
|
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84387)
|
|
321
259
|
[PASS] test_rateLimit_Inflow() (gas: 87713)
|
|
322
260
|
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 80123)
|
|
@@ -331,9 +269,78 @@ Ran 39 tests for test/OFTNativeExtendedRBAC.t.sol:OFTNativeExtendedRBACTest
|
|
|
331
269
|
[PASS] test_send_WithFee() (gas: 415240)
|
|
332
270
|
[PASS] test_setFeeDeposit() (gas: 28425)
|
|
333
271
|
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22627)
|
|
334
|
-
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ:
|
|
272
|
+
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38886, ~: 39011)
|
|
335
273
|
[PASS] test_token() (gas: 13483)
|
|
336
|
-
Suite result: ok. 39 passed; 0 failed; 0 skipped; finished in
|
|
274
|
+
Suite result: ok. 39 passed; 0 failed; 0 skipped; finished in 778.27ms (1.57s CPU time)
|
|
275
|
+
|
|
276
|
+
Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACRedeemIssueTest
|
|
277
|
+
[PASS] test_credit() (gas: 89907)
|
|
278
|
+
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93065, ~: 93339)
|
|
279
|
+
[PASS] test_debit() (gas: 98305)
|
|
280
|
+
[PASS] test_debit_Dust() (gas: 139763)
|
|
281
|
+
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 142347, ~: 143477)
|
|
282
|
+
[PASS] test_debit_PushesFees() (gas: 165812)
|
|
283
|
+
[PASS] test_debit_Revert_SlippageExceeded() (gas: 131894)
|
|
284
|
+
[PASS] test_debit_SmallAmount_DustOnly() (gas: 139827)
|
|
285
|
+
[PASS] test_debit_WithFee() (gas: 165286)
|
|
286
|
+
[PASS] test_debit_WithFee_Dust() (gas: 165900)
|
|
287
|
+
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 168555, ~: 171220)
|
|
288
|
+
[PASS] test_initialize() (gas: 24722)
|
|
289
|
+
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
|
|
290
|
+
[PASS] test_pause_unpause() (gas: 130445)
|
|
291
|
+
[PASS] test_quoteOFT() (gas: 70712)
|
|
292
|
+
[PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
|
|
293
|
+
[PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59195)
|
|
294
|
+
[PASS] test_quoteOFT_Paused() (gas: 56570)
|
|
295
|
+
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 185614)
|
|
296
|
+
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 233430)
|
|
297
|
+
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 200490, ~: 200315)
|
|
298
|
+
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84276)
|
|
299
|
+
[PASS] test_rateLimit_Inflow() (gas: 108772)
|
|
300
|
+
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
|
|
301
|
+
[PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 179385)
|
|
302
|
+
[PASS] test_send() (gas: 400494)
|
|
303
|
+
[PASS] test_send_Revert_MsgInspection() (gas: 308847)
|
|
304
|
+
[PASS] test_send_WithFee() (gas: 477358)
|
|
305
|
+
[PASS] test_setFeeDeposit() (gas: 28359)
|
|
306
|
+
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
|
|
307
|
+
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38875, ~: 38967)
|
|
308
|
+
Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 778.39ms (1.73s CPU time)
|
|
309
|
+
|
|
310
|
+
Ran 32 tests for test/OFTBurnSelfMintExtendedRBAC.t.sol:OFTBurnSelfMintExtendedRBACTest
|
|
311
|
+
[PASS] test_credit() (gas: 89873)
|
|
312
|
+
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93124, ~: 93305)
|
|
313
|
+
[PASS] test_debit() (gas: 120710)
|
|
314
|
+
[PASS] test_debit_Dust() (gas: 143616)
|
|
315
|
+
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 145994, ~: 146486)
|
|
316
|
+
[PASS] test_debit_PushesFees() (gas: 164384)
|
|
317
|
+
[PASS] test_debit_Revert_SlippageExceeded() (gas: 131872)
|
|
318
|
+
[PASS] test_debit_SmallAmount_DustOnly() (gas: 143579)
|
|
319
|
+
[PASS] test_debit_TokensTransferredToSelfThenBurned() (gas: 122517)
|
|
320
|
+
[PASS] test_debit_WithFee() (gas: 166449)
|
|
321
|
+
[PASS] test_debit_WithFee_Dust() (gas: 164455)
|
|
322
|
+
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 166715, ~: 168645)
|
|
323
|
+
[PASS] test_initialize() (gas: 24700)
|
|
324
|
+
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
|
|
325
|
+
[PASS] test_pause_unpause() (gas: 151598)
|
|
326
|
+
[PASS] test_quoteOFT() (gas: 70712)
|
|
327
|
+
[PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
|
|
328
|
+
[PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59173)
|
|
329
|
+
[PASS] test_quoteOFT_Paused() (gas: 56570)
|
|
330
|
+
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 242240)
|
|
331
|
+
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 268746)
|
|
332
|
+
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 192078, ~: 191921)
|
|
333
|
+
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84254)
|
|
334
|
+
[PASS] test_rateLimit_Inflow() (gas: 108738)
|
|
335
|
+
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
|
|
336
|
+
[PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 175225)
|
|
337
|
+
[PASS] test_send() (gas: 387136)
|
|
338
|
+
[PASS] test_send_Revert_MsgInspection() (gas: 335267)
|
|
339
|
+
[PASS] test_send_WithFee() (gas: 462592)
|
|
340
|
+
[PASS] test_setFeeDeposit() (gas: 28445)
|
|
341
|
+
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
|
|
342
|
+
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38952, ~: 39034)
|
|
343
|
+
Suite result: ok. 32 passed; 0 failed; 0 skipped; finished in 805.00ms (1.99s CPU time)
|
|
337
344
|
|
|
338
|
-
Ran 9 test suites in
|
|
339
|
-
⏳ forge test:
|
|
345
|
+
Ran 9 test suites in 966.40ms (6.54s CPU time): 292 tests passed, 0 failed, 0 skipped (292 total tests)
|
|
346
|
+
⏳ forge test: 1:00.928 (m:ss.mmm)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@layerzerolabs/oft-upgradeable-evm-contracts",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.115",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "LayerZero Labs reference EVM upgradeable OFT implementation",
|
|
6
6
|
"license": "MIT",
|
|
@@ -14,16 +14,16 @@
|
|
|
14
14
|
"@openzeppelin/contracts-upgradeable": "^5.0.2",
|
|
15
15
|
"ethers": "^5.8.0",
|
|
16
16
|
"solhint": "^6.0.1",
|
|
17
|
-
"@layerzerolabs/
|
|
18
|
-
"@layerzerolabs/
|
|
19
|
-
"@layerzerolabs/oapp-upgradeable-evm-contracts": "0.2.
|
|
20
|
-
"@layerzerolabs/
|
|
21
|
-
"@layerzerolabs/
|
|
22
|
-
"@layerzerolabs/tsup-configuration": "0.2.
|
|
23
|
-
"@layerzerolabs/utils-evm-contracts": "0.2.
|
|
24
|
-
"@layerzerolabs/typescript-configuration": "0.2.
|
|
25
|
-
"@layerzerolabs/vm-tooling-evm": "0.2.
|
|
26
|
-
"@layerzerolabs/utils-upgradeable-evm-contracts": "0.2.
|
|
17
|
+
"@layerzerolabs/oft-evm-contracts": "0.2.115",
|
|
18
|
+
"@layerzerolabs/solhint-configuration": "0.2.115",
|
|
19
|
+
"@layerzerolabs/oapp-upgradeable-evm-contracts": "0.2.115",
|
|
20
|
+
"@layerzerolabs/test-utils-evm-contracts": "0.2.115",
|
|
21
|
+
"@layerzerolabs/oapp-evm-contracts": "0.2.115",
|
|
22
|
+
"@layerzerolabs/tsup-configuration": "0.2.115",
|
|
23
|
+
"@layerzerolabs/utils-evm-contracts": "0.2.115",
|
|
24
|
+
"@layerzerolabs/typescript-configuration": "0.2.115",
|
|
25
|
+
"@layerzerolabs/vm-tooling-evm": "0.2.115",
|
|
26
|
+
"@layerzerolabs/utils-upgradeable-evm-contracts": "0.2.115"
|
|
27
27
|
},
|
|
28
28
|
"publishConfig": {
|
|
29
29
|
"access": "public",
|