@layerzerolabs/oft-upgradeable-evm-contracts 0.2.112 → 0.2.114
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 +178 -171
- 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,72 +4,37 @@
|
|
|
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 39 tests for test/OFTNativeExtendedRBAC.t.sol:OFTNativeExtendedRBACTest
|
|
20
|
-
[PASS] test_approvalRequired() (gas: 13426)
|
|
21
|
-
[PASS] test_credit() (gas: 62369)
|
|
22
|
-
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 65840, ~: 65954)
|
|
23
|
-
[PASS] test_credit_Revert_CreditFailed() (gas: 91478)
|
|
24
|
-
[PASS] test_debit() (gas: 36831)
|
|
25
|
-
[PASS] test_debit_Dust() (gas: 76272)
|
|
26
|
-
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 79575, ~: 79886)
|
|
27
|
-
[PASS] test_debit_PushesFees() (gas: 101339)
|
|
28
|
-
[PASS] test_debit_Revert_SlippageExceeded() (gas: 54229)
|
|
29
|
-
[PASS] test_debit_SmallAmount_DustOnly() (gas: 76226)
|
|
30
|
-
[PASS] test_debit_WithFee() (gas: 101145)
|
|
31
|
-
[PASS] test_debit_WithFee_Dust() (gas: 102376)
|
|
32
|
-
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 105552, ~: 107585)
|
|
33
|
-
[PASS] test_initialize() (gas: 22406)
|
|
34
|
-
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92778)
|
|
35
|
-
[PASS] test_pause_unpause() (gas: 61117)
|
|
36
|
-
[PASS] test_quoteOFT() (gas: 70779)
|
|
37
|
-
[PASS] test_quoteOFT_GloballyDisabled() (gas: 80649)
|
|
38
|
-
[PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59220)
|
|
39
|
-
[PASS] test_quoteOFT_Paused() (gas: 56703)
|
|
40
|
-
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 97744)
|
|
41
|
-
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 160139)
|
|
42
|
-
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 137856, ~: 137697)
|
|
43
|
-
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84387)
|
|
44
|
-
[PASS] test_rateLimit_Inflow() (gas: 87713)
|
|
45
|
-
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 80123)
|
|
46
|
-
[PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 116713)
|
|
47
|
-
[PASS] test_send() (gas: 352734)
|
|
48
|
-
[PASS] test_send_PushesFees() (gas: 415282)
|
|
49
|
-
[PASS] test_send_Revert_FeeTransferFailed() (gas: 157067)
|
|
50
|
-
[PASS] test_send_Revert_IncorrectMessageValue_TooHigh() (gas: 30287)
|
|
51
|
-
[PASS] test_send_Revert_IncorrectMessageValue_TooLow() (gas: 30257)
|
|
52
|
-
[PASS] test_send_Revert_IncorrectMessageValue_ZeroValue() (gas: 22753)
|
|
53
|
-
[PASS] test_send_Revert_MsgInspection() (gas: 221169)
|
|
54
|
-
[PASS] test_send_WithFee() (gas: 415240)
|
|
55
|
-
[PASS] test_setFeeDeposit() (gas: 28425)
|
|
56
|
-
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22627)
|
|
57
|
-
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38915, ~: 39011)
|
|
58
|
-
[PASS] test_token() (gas: 13483)
|
|
59
|
-
Suite result: ok. 39 passed; 0 failed; 0 skipped; finished in 349.29ms (808.43ms CPU time)
|
|
60
|
-
|
|
61
26
|
Ran 31 tests for test/OFTLockUnlockExtendedRBAC.t.sol:OFTLockUnlockExtendedRBACTest
|
|
62
27
|
[PASS] test_credit() (gas: 89882)
|
|
63
|
-
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ:
|
|
28
|
+
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93009, ~: 93314)
|
|
64
29
|
[PASS] test_debit() (gas: 113036)
|
|
65
30
|
[PASS] test_debit_Dust() (gas: 135880)
|
|
66
|
-
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ:
|
|
31
|
+
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 138365, ~: 138823)
|
|
67
32
|
[PASS] test_debit_PushesFees() (gas: 161342)
|
|
68
33
|
[PASS] test_debit_Revert_SlippageExceeded() (gas: 131850)
|
|
69
34
|
[PASS] test_debit_SmallAmount_DustOnly() (gas: 135931)
|
|
70
35
|
[PASS] test_debit_WithFee() (gas: 163924)
|
|
71
36
|
[PASS] test_debit_WithFee_Dust() (gas: 161430)
|
|
72
|
-
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ:
|
|
37
|
+
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 161578, ~: 160967)
|
|
73
38
|
[PASS] test_initialize() (gas: 24678)
|
|
74
39
|
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92822)
|
|
75
40
|
[PASS] test_pause_unpause() (gas: 143924)
|
|
@@ -79,7 +44,7 @@ Ran 31 tests for test/OFTLockUnlockExtendedRBAC.t.sol:OFTLockUnlockExtendedRBACT
|
|
|
79
44
|
[PASS] test_quoteOFT_Paused() (gas: 56637)
|
|
80
45
|
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 198848)
|
|
81
46
|
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 241184)
|
|
82
|
-
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ:
|
|
47
|
+
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 196112, ~: 195912)
|
|
83
48
|
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84321)
|
|
84
49
|
[PASS] test_rateLimit_Inflow() (gas: 130622)
|
|
85
50
|
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157652)
|
|
@@ -89,91 +54,56 @@ Ran 31 tests for test/OFTLockUnlockExtendedRBAC.t.sol:OFTLockUnlockExtendedRBACT
|
|
|
89
54
|
[PASS] test_send_WithFee() (gas: 474453)
|
|
90
55
|
[PASS] test_setFeeDeposit() (gas: 28337)
|
|
91
56
|
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22583)
|
|
92
|
-
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ:
|
|
93
|
-
Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in
|
|
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)
|
|
94
59
|
|
|
95
|
-
Ran
|
|
96
|
-
[PASS] test_credit() (gas:
|
|
97
|
-
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ:
|
|
98
|
-
[PASS] test_debit() (gas:
|
|
99
|
-
[PASS] test_debit_Dust() (gas:
|
|
100
|
-
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ:
|
|
101
|
-
[PASS] test_debit_PushesFees() (gas:
|
|
60
|
+
Ran 32 tests for test/OFTBurnMintExtendedRBACAlt.t.sol:OFTBurnMintExtendedRBACAltTest
|
|
61
|
+
[PASS] test_credit() (gas: 89871)
|
|
62
|
+
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93142, ~: 93303)
|
|
63
|
+
[PASS] test_debit() (gas: 98327)
|
|
64
|
+
[PASS] test_debit_Dust() (gas: 141836)
|
|
65
|
+
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 144895, ~: 145461)
|
|
66
|
+
[PASS] test_debit_PushesFees() (gas: 167796)
|
|
102
67
|
[PASS] test_debit_Revert_SlippageExceeded() (gas: 133872)
|
|
103
|
-
[PASS] test_debit_SmallAmount_DustOnly() (gas:
|
|
104
|
-
[PASS]
|
|
105
|
-
[PASS]
|
|
106
|
-
[PASS]
|
|
107
|
-
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 168193, ~: 170245)
|
|
68
|
+
[PASS] test_debit_SmallAmount_DustOnly() (gas: 141789)
|
|
69
|
+
[PASS] test_debit_WithFee() (gas: 165270)
|
|
70
|
+
[PASS] test_debit_WithFee_Dust() (gas: 167884)
|
|
71
|
+
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 170809, ~: 173204)
|
|
108
72
|
[PASS] test_initialize() (gas: 24700)
|
|
109
73
|
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
|
|
110
|
-
[PASS] test_pause_unpause() (gas:
|
|
74
|
+
[PASS] test_pause_unpause() (gas: 132067)
|
|
111
75
|
[PASS] test_quoteOFT() (gas: 70712)
|
|
112
76
|
[PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
|
|
113
77
|
[PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59173)
|
|
114
78
|
[PASS] test_quoteOFT_Paused() (gas: 56570)
|
|
115
|
-
[PASS] test_quoteOFT_RateLimiterUsage() (gas:
|
|
116
|
-
[PASS] test_quoteOFT_RateLimiterWithFee() (gas:
|
|
117
|
-
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ:
|
|
79
|
+
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 187257)
|
|
80
|
+
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 235398)
|
|
81
|
+
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 202507, ~: 202299)
|
|
118
82
|
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84254)
|
|
119
|
-
[PASS] test_rateLimit_Inflow() (gas:
|
|
83
|
+
[PASS] test_rateLimit_Inflow() (gas: 108824)
|
|
120
84
|
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 159696)
|
|
121
|
-
[PASS] test_rateLimit_Outflow_WithFee_Success() (gas:
|
|
122
|
-
[PASS] test_send() (gas:
|
|
123
|
-
[PASS] test_send_Revert_MsgInspection() (gas:
|
|
124
|
-
[PASS] test_send_Revert_OnlyAltToken() (gas:
|
|
125
|
-
[PASS] test_send_WithFee() (gas:
|
|
85
|
+
[PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 181347)
|
|
86
|
+
[PASS] test_send() (gas: 421733)
|
|
87
|
+
[PASS] test_send_Revert_MsgInspection() (gas: 310849)
|
|
88
|
+
[PASS] test_send_Revert_OnlyAltToken() (gas: 198819)
|
|
89
|
+
[PASS] test_send_WithFee() (gas: 493959)
|
|
126
90
|
[PASS] test_setFeeDeposit() (gas: 28445)
|
|
127
91
|
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
|
|
128
|
-
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ:
|
|
129
|
-
Suite result: ok.
|
|
130
|
-
|
|
131
|
-
Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACRedeemIssueTest
|
|
132
|
-
[PASS] test_credit() (gas: 89907)
|
|
133
|
-
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93227, ~: 93339)
|
|
134
|
-
[PASS] test_debit() (gas: 98305)
|
|
135
|
-
[PASS] test_debit_Dust() (gas: 139763)
|
|
136
|
-
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 142563, ~: 143477)
|
|
137
|
-
[PASS] test_debit_PushesFees() (gas: 165812)
|
|
138
|
-
[PASS] test_debit_Revert_SlippageExceeded() (gas: 131894)
|
|
139
|
-
[PASS] test_debit_SmallAmount_DustOnly() (gas: 139827)
|
|
140
|
-
[PASS] test_debit_WithFee() (gas: 165286)
|
|
141
|
-
[PASS] test_debit_WithFee_Dust() (gas: 165900)
|
|
142
|
-
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 168522, ~: 171220)
|
|
143
|
-
[PASS] test_initialize() (gas: 24722)
|
|
144
|
-
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
|
|
145
|
-
[PASS] test_pause_unpause() (gas: 130445)
|
|
146
|
-
[PASS] test_quoteOFT() (gas: 70712)
|
|
147
|
-
[PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
|
|
148
|
-
[PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59195)
|
|
149
|
-
[PASS] test_quoteOFT_Paused() (gas: 56570)
|
|
150
|
-
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 185614)
|
|
151
|
-
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 233430)
|
|
152
|
-
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 200519, ~: 200315)
|
|
153
|
-
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84276)
|
|
154
|
-
[PASS] test_rateLimit_Inflow() (gas: 108772)
|
|
155
|
-
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
|
|
156
|
-
[PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 179385)
|
|
157
|
-
[PASS] test_send() (gas: 400494)
|
|
158
|
-
[PASS] test_send_Revert_MsgInspection() (gas: 308847)
|
|
159
|
-
[PASS] test_send_WithFee() (gas: 477358)
|
|
160
|
-
[PASS] test_setFeeDeposit() (gas: 28359)
|
|
161
|
-
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
|
|
162
|
-
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38919, ~: 38967)
|
|
163
|
-
Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 456.73ms (1.20s CPU time)
|
|
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)
|
|
164
94
|
|
|
165
95
|
Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACCrosschainTest
|
|
166
96
|
[PASS] test_credit() (gas: 89874)
|
|
167
|
-
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ:
|
|
97
|
+
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93231, ~: 93306)
|
|
168
98
|
[PASS] test_debit() (gas: 98332)
|
|
169
99
|
[PASS] test_debit_Dust() (gas: 139763)
|
|
170
|
-
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ:
|
|
100
|
+
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 142446, ~: 143477)
|
|
171
101
|
[PASS] test_debit_PushesFees() (gas: 165812)
|
|
172
102
|
[PASS] test_debit_Revert_SlippageExceeded() (gas: 131894)
|
|
173
103
|
[PASS] test_debit_SmallAmount_DustOnly() (gas: 139827)
|
|
174
104
|
[PASS] test_debit_WithFee() (gas: 165286)
|
|
175
105
|
[PASS] test_debit_WithFee_Dust() (gas: 165900)
|
|
176
|
-
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ:
|
|
106
|
+
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 169112, ~: 171220)
|
|
177
107
|
[PASS] test_initialize() (gas: 24722)
|
|
178
108
|
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
|
|
179
109
|
[PASS] test_pause_unpause() (gas: 130472)
|
|
@@ -183,7 +113,7 @@ Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACCross
|
|
|
183
113
|
[PASS] test_quoteOFT_Paused() (gas: 56570)
|
|
184
114
|
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 185667)
|
|
185
115
|
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 233430)
|
|
186
|
-
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ:
|
|
116
|
+
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 200501, ~: 200315)
|
|
187
117
|
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84276)
|
|
188
118
|
[PASS] test_rateLimit_Inflow() (gas: 108739)
|
|
189
119
|
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
|
|
@@ -193,21 +123,21 @@ Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACCross
|
|
|
193
123
|
[PASS] test_send_WithFee() (gas: 477358)
|
|
194
124
|
[PASS] test_setFeeDeposit() (gas: 28359)
|
|
195
125
|
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
|
|
196
|
-
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ:
|
|
197
|
-
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)
|
|
198
128
|
|
|
199
129
|
Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACTest
|
|
200
130
|
[PASS] test_credit() (gas: 89871)
|
|
201
|
-
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ:
|
|
131
|
+
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 92969, ~: 93303)
|
|
202
132
|
[PASS] test_debit() (gas: 98327)
|
|
203
133
|
[PASS] test_debit_Dust() (gas: 139747)
|
|
204
|
-
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ:
|
|
134
|
+
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 143098, ~: 143461)
|
|
205
135
|
[PASS] test_debit_PushesFees() (gas: 165796)
|
|
206
136
|
[PASS] test_debit_Revert_SlippageExceeded() (gas: 131894)
|
|
207
137
|
[PASS] test_debit_SmallAmount_DustOnly() (gas: 139811)
|
|
208
138
|
[PASS] test_debit_WithFee() (gas: 165270)
|
|
209
139
|
[PASS] test_debit_WithFee_Dust() (gas: 165884)
|
|
210
|
-
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ:
|
|
140
|
+
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 169204, ~: 171204)
|
|
211
141
|
[PASS] test_initialize() (gas: 24722)
|
|
212
142
|
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
|
|
213
143
|
[PASS] test_pause_unpause() (gas: 130467)
|
|
@@ -217,7 +147,7 @@ Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACTest
|
|
|
217
147
|
[PASS] test_quoteOFT_Paused() (gas: 56570)
|
|
218
148
|
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 185657)
|
|
219
149
|
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 233398)
|
|
220
|
-
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ:
|
|
150
|
+
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 200459, ~: 200296)
|
|
221
151
|
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84276)
|
|
222
152
|
[PASS] test_rateLimit_Inflow() (gas: 108736)
|
|
223
153
|
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
|
|
@@ -227,21 +157,57 @@ Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACTest
|
|
|
227
157
|
[PASS] test_send_WithFee() (gas: 477338)
|
|
228
158
|
[PASS] test_setFeeDeposit() (gas: 28359)
|
|
229
159
|
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
|
|
230
|
-
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ:
|
|
231
|
-
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)
|
|
162
|
+
|
|
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)
|
|
232
198
|
|
|
233
199
|
Ran 32 tests for test/OFTLockUnlockExtendedRBACAlt.t.sol:OFTLockUnlockExtendedRBACAltTest
|
|
234
200
|
[PASS] test_credit() (gas: 91882)
|
|
235
|
-
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ:
|
|
201
|
+
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 95308, ~: 95314)
|
|
236
202
|
[PASS] test_debit() (gas: 113036)
|
|
237
203
|
[PASS] test_debit_Dust() (gas: 137551)
|
|
238
|
-
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ:
|
|
204
|
+
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 139602, ~: 141029)
|
|
239
205
|
[PASS] test_debit_PushesFees() (gas: 163342)
|
|
240
206
|
[PASS] test_debit_Revert_SlippageExceeded() (gas: 133828)
|
|
241
207
|
[PASS] test_debit_SmallAmount_DustOnly() (gas: 137513)
|
|
242
208
|
[PASS] test_debit_WithFee() (gas: 163924)
|
|
243
209
|
[PASS] test_debit_WithFee_Dust() (gas: 163430)
|
|
244
|
-
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ:
|
|
210
|
+
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 163208, ~: 162567)
|
|
245
211
|
[PASS] test_initialize() (gas: 24656)
|
|
246
212
|
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92822)
|
|
247
213
|
[PASS] test_pause_unpause() (gas: 145524)
|
|
@@ -251,7 +217,7 @@ Ran 32 tests for test/OFTLockUnlockExtendedRBACAlt.t.sol:OFTLockUnlockExtendedRB
|
|
|
251
217
|
[PASS] test_quoteOFT_Paused() (gas: 56637)
|
|
252
218
|
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 200448)
|
|
253
219
|
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 242784)
|
|
254
|
-
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ:
|
|
220
|
+
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 198111, ~: 197912)
|
|
255
221
|
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84299)
|
|
256
222
|
[PASS] test_rateLimit_Inflow() (gas: 132710)
|
|
257
223
|
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 159652)
|
|
@@ -262,22 +228,98 @@ Ran 32 tests for test/OFTLockUnlockExtendedRBACAlt.t.sol:OFTLockUnlockExtendedRB
|
|
|
262
228
|
[PASS] test_send_WithFee() (gas: 516566)
|
|
263
229
|
[PASS] test_setFeeDeposit() (gas: 28423)
|
|
264
230
|
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22583)
|
|
265
|
-
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ:
|
|
266
|
-
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)
|
|
233
|
+
|
|
234
|
+
Ran 39 tests for test/OFTNativeExtendedRBAC.t.sol:OFTNativeExtendedRBACTest
|
|
235
|
+
[PASS] test_approvalRequired() (gas: 13426)
|
|
236
|
+
[PASS] test_credit() (gas: 62369)
|
|
237
|
+
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 65701, ~: 65954)
|
|
238
|
+
[PASS] test_credit_Revert_CreditFailed() (gas: 91478)
|
|
239
|
+
[PASS] test_debit() (gas: 36831)
|
|
240
|
+
[PASS] test_debit_Dust() (gas: 76272)
|
|
241
|
+
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 79449, ~: 79886)
|
|
242
|
+
[PASS] test_debit_PushesFees() (gas: 101339)
|
|
243
|
+
[PASS] test_debit_Revert_SlippageExceeded() (gas: 54229)
|
|
244
|
+
[PASS] test_debit_SmallAmount_DustOnly() (gas: 76226)
|
|
245
|
+
[PASS] test_debit_WithFee() (gas: 101145)
|
|
246
|
+
[PASS] test_debit_WithFee_Dust() (gas: 102376)
|
|
247
|
+
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 105892, ~: 107585)
|
|
248
|
+
[PASS] test_initialize() (gas: 22406)
|
|
249
|
+
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92778)
|
|
250
|
+
[PASS] test_pause_unpause() (gas: 61117)
|
|
251
|
+
[PASS] test_quoteOFT() (gas: 70779)
|
|
252
|
+
[PASS] test_quoteOFT_GloballyDisabled() (gas: 80649)
|
|
253
|
+
[PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59220)
|
|
254
|
+
[PASS] test_quoteOFT_Paused() (gas: 56703)
|
|
255
|
+
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 97744)
|
|
256
|
+
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 160139)
|
|
257
|
+
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 137870, ~: 137697)
|
|
258
|
+
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84387)
|
|
259
|
+
[PASS] test_rateLimit_Inflow() (gas: 87713)
|
|
260
|
+
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 80123)
|
|
261
|
+
[PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 116713)
|
|
262
|
+
[PASS] test_send() (gas: 352734)
|
|
263
|
+
[PASS] test_send_PushesFees() (gas: 415282)
|
|
264
|
+
[PASS] test_send_Revert_FeeTransferFailed() (gas: 157067)
|
|
265
|
+
[PASS] test_send_Revert_IncorrectMessageValue_TooHigh() (gas: 30287)
|
|
266
|
+
[PASS] test_send_Revert_IncorrectMessageValue_TooLow() (gas: 30257)
|
|
267
|
+
[PASS] test_send_Revert_IncorrectMessageValue_ZeroValue() (gas: 22753)
|
|
268
|
+
[PASS] test_send_Revert_MsgInspection() (gas: 221169)
|
|
269
|
+
[PASS] test_send_WithFee() (gas: 415240)
|
|
270
|
+
[PASS] test_setFeeDeposit() (gas: 28425)
|
|
271
|
+
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22627)
|
|
272
|
+
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38886, ~: 39011)
|
|
273
|
+
[PASS] test_token() (gas: 13483)
|
|
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)
|
|
267
309
|
|
|
268
310
|
Ran 32 tests for test/OFTBurnSelfMintExtendedRBAC.t.sol:OFTBurnSelfMintExtendedRBACTest
|
|
269
311
|
[PASS] test_credit() (gas: 89873)
|
|
270
|
-
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ:
|
|
312
|
+
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93124, ~: 93305)
|
|
271
313
|
[PASS] test_debit() (gas: 120710)
|
|
272
314
|
[PASS] test_debit_Dust() (gas: 143616)
|
|
273
|
-
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ:
|
|
315
|
+
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 145994, ~: 146486)
|
|
274
316
|
[PASS] test_debit_PushesFees() (gas: 164384)
|
|
275
317
|
[PASS] test_debit_Revert_SlippageExceeded() (gas: 131872)
|
|
276
318
|
[PASS] test_debit_SmallAmount_DustOnly() (gas: 143579)
|
|
277
319
|
[PASS] test_debit_TokensTransferredToSelfThenBurned() (gas: 122517)
|
|
278
320
|
[PASS] test_debit_WithFee() (gas: 166449)
|
|
279
321
|
[PASS] test_debit_WithFee_Dust() (gas: 164455)
|
|
280
|
-
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ:
|
|
322
|
+
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 166715, ~: 168645)
|
|
281
323
|
[PASS] test_initialize() (gas: 24700)
|
|
282
324
|
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
|
|
283
325
|
[PASS] test_pause_unpause() (gas: 151598)
|
|
@@ -287,7 +329,7 @@ Ran 32 tests for test/OFTBurnSelfMintExtendedRBAC.t.sol:OFTBurnSelfMintExtendedR
|
|
|
287
329
|
[PASS] test_quoteOFT_Paused() (gas: 56570)
|
|
288
330
|
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 242240)
|
|
289
331
|
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 268746)
|
|
290
|
-
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ:
|
|
332
|
+
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 192078, ~: 191921)
|
|
291
333
|
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84254)
|
|
292
334
|
[PASS] test_rateLimit_Inflow() (gas: 108738)
|
|
293
335
|
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
|
|
@@ -297,43 +339,8 @@ Ran 32 tests for test/OFTBurnSelfMintExtendedRBAC.t.sol:OFTBurnSelfMintExtendedR
|
|
|
297
339
|
[PASS] test_send_WithFee() (gas: 462592)
|
|
298
340
|
[PASS] test_setFeeDeposit() (gas: 28445)
|
|
299
341
|
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
|
|
300
|
-
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ:
|
|
301
|
-
Suite result: ok. 32 passed; 0 failed; 0 skipped; finished in
|
|
302
|
-
|
|
303
|
-
Ran 32 tests for test/OFTBurnMintExtendedRBACAlt.t.sol:OFTBurnMintExtendedRBACAltTest
|
|
304
|
-
[PASS] test_credit() (gas: 89871)
|
|
305
|
-
[PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93182, ~: 93303)
|
|
306
|
-
[PASS] test_debit() (gas: 98327)
|
|
307
|
-
[PASS] test_debit_Dust() (gas: 141836)
|
|
308
|
-
[PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 145148, ~: 145461)
|
|
309
|
-
[PASS] test_debit_PushesFees() (gas: 167796)
|
|
310
|
-
[PASS] test_debit_Revert_SlippageExceeded() (gas: 133872)
|
|
311
|
-
[PASS] test_debit_SmallAmount_DustOnly() (gas: 141789)
|
|
312
|
-
[PASS] test_debit_WithFee() (gas: 165270)
|
|
313
|
-
[PASS] test_debit_WithFee_Dust() (gas: 167884)
|
|
314
|
-
[PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 171221, ~: 173204)
|
|
315
|
-
[PASS] test_initialize() (gas: 24700)
|
|
316
|
-
[PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
|
|
317
|
-
[PASS] test_pause_unpause() (gas: 132067)
|
|
318
|
-
[PASS] test_quoteOFT() (gas: 70712)
|
|
319
|
-
[PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
|
|
320
|
-
[PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59173)
|
|
321
|
-
[PASS] test_quoteOFT_Paused() (gas: 56570)
|
|
322
|
-
[PASS] test_quoteOFT_RateLimiterUsage() (gas: 187257)
|
|
323
|
-
[PASS] test_quoteOFT_RateLimiterWithFee() (gas: 235398)
|
|
324
|
-
[PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 202471, ~: 202299)
|
|
325
|
-
[PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84254)
|
|
326
|
-
[PASS] test_rateLimit_Inflow() (gas: 108824)
|
|
327
|
-
[PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 159696)
|
|
328
|
-
[PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 181347)
|
|
329
|
-
[PASS] test_send() (gas: 421733)
|
|
330
|
-
[PASS] test_send_Revert_MsgInspection() (gas: 310849)
|
|
331
|
-
[PASS] test_send_Revert_OnlyAltToken() (gas: 198819)
|
|
332
|
-
[PASS] test_send_WithFee() (gas: 493959)
|
|
333
|
-
[PASS] test_setFeeDeposit() (gas: 28445)
|
|
334
|
-
[PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
|
|
335
|
-
[PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38947, ~: 39034)
|
|
336
|
-
Suite result: ok. 32 passed; 0 failed; 0 skipped; finished in 476.55ms (1.43s CPU time)
|
|
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.114",
|
|
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/oft-evm-contracts": "0.2.
|
|
18
|
-
"@layerzerolabs/
|
|
19
|
-
"@layerzerolabs/
|
|
20
|
-
"@layerzerolabs/
|
|
21
|
-
"@layerzerolabs/
|
|
22
|
-
"@layerzerolabs/tsup-configuration": "0.2.
|
|
23
|
-
"@layerzerolabs/
|
|
24
|
-
"@layerzerolabs/utils-evm-contracts": "0.2.
|
|
25
|
-
"@layerzerolabs/
|
|
26
|
-
"@layerzerolabs/vm-tooling-evm": "0.2.
|
|
17
|
+
"@layerzerolabs/oft-evm-contracts": "0.2.114",
|
|
18
|
+
"@layerzerolabs/solhint-configuration": "0.2.114",
|
|
19
|
+
"@layerzerolabs/test-utils-evm-contracts": "0.2.114",
|
|
20
|
+
"@layerzerolabs/oapp-evm-contracts": "0.2.114",
|
|
21
|
+
"@layerzerolabs/oapp-upgradeable-evm-contracts": "0.2.114",
|
|
22
|
+
"@layerzerolabs/tsup-configuration": "0.2.114",
|
|
23
|
+
"@layerzerolabs/utils-evm-contracts": "0.2.114",
|
|
24
|
+
"@layerzerolabs/utils-upgradeable-evm-contracts": "0.2.114",
|
|
25
|
+
"@layerzerolabs/typescript-configuration": "0.2.114",
|
|
26
|
+
"@layerzerolabs/vm-tooling-evm": "0.2.114"
|
|
27
27
|
},
|
|
28
28
|
"publishConfig": {
|
|
29
29
|
"access": "public",
|