@layerzerolabs/oft-upgradeable-evm-contracts 0.2.120 → 0.2.122

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.
@@ -11,24 +11,24 @@
11
11
   WARN  Issue while reading "/home/runner/work/monorepo-internal/monorepo-internal/.npmrc". Failed to replace env in config: ${NPM_TOKEN}
12
12
  ✅ forge-1.3.6-hardhat-2.26.3
13
13
  🔧 hardhat version: 2.26.3
14
- 📦 Using mini workspace: /tmp/lz-mini-workspace-HPnbgD
14
+ 📦 Using mini workspace: /tmp/lz-mini-workspace-XCBnvx
15
15
  📦 Copied 13 workspace package source(s)
16
16
  📦 No mini-workspace pruner configured; using unpruned package-level source copy fallback.
17
- (node:31691) [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.
17
+ (node:236794) [MODULE_TYPELESS_PACKAGE_JSON] Warning: Module type of file:///home/runner/work/monorepo-internal/monorepo-internal/configs/vm-tooling/values/docker-image-repo.ts is not specified and it doesn't parse as CommonJS.
18
18
  Reparsing as ES module because module syntax was detected. This incurs a performance overhead.
19
19
  To eliminate this warning, add "type": "module" to /home/runner/work/monorepo-internal/monorepo-internal/package.json.
20
20
  (Use `node --trace-warnings ...` to show where the warning was created)
21
21
  📦 Docker volumes:
22
- -v /tmp/lz-mini-workspace-HPnbgD:/workspace
22
+ -v /tmp/lz-mini-workspace-XCBnvx:/workspace
23
23
  -v /home/runner/work/monorepo-internal/monorepo-internal/apps/oft-app/contracts/evm/upgradeable:/workspace/apps/oft-app/contracts/evm/upgradeable
24
24
  -v /home/runner/work/monorepo-internal/monorepo-internal/node_modules/.pnpm:/workspace/node_modules/.pnpm:ro
25
25
  $ docker image inspect --format {{.Architecture}} 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3
26
26
  $ docker container create --platform linux/amd64 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3 true
27
- $ docker container rm c1e0d19ca635ccd85dd78f8acf9d1cd1d3b449e836a39a270ac278645474dd7c
27
+ $ docker container rm 0e608b4da159d0143dcdb8195f4fe2b9f80dd96c5f7987eec97edcb191f7ebf4
28
28
  ✅ Using cached Docker image: 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3 (linux/amd64)
29
29
  👤 Running container as UID:GID 1001:1001
30
30
  🌍 Using 1 custom environment variable(s)
31
- $ docker run --platform linux/amd64 --rm --add-host=host.docker.internal:host-gateway -e $'TS_NODE_COMPILER_OPTIONS={"module":"CommonJS","moduleResolution":"node"}' -e LOCAL_UID=1001 -e LOCAL_GID=1001 -v /tmp/lz-mini-workspace-HPnbgD:/workspace -v /home/runner/work/monorepo-internal/monorepo-internal/apps/oft-app/contracts/evm/upgradeable:/workspace/apps/oft-app/contracts/evm/upgradeable -v /home/runner/work/monorepo-internal/monorepo-internal/node_modules/.pnpm:/workspace/node_modules/.pnpm:ro -w /workspace/apps/oft-app/contracts/evm/upgradeable 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3 hardhat compile --config /hardhat/hardhat.default.config.js
31
+ $ 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-XCBnvx:/workspace -v /home/runner/work/monorepo-internal/monorepo-internal/apps/oft-app/contracts/evm/upgradeable:/workspace/apps/oft-app/contracts/evm/upgradeable -v /home/runner/work/monorepo-internal/monorepo-internal/node_modules/.pnpm:/workspace/node_modules/.pnpm:ro -w /workspace/apps/oft-app/contracts/evm/upgradeable 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3 hardhat compile --config /hardhat/hardhat.default.config.js
32
32
  Compiling 76 Solidity files
33
33
  Warning: Contract code size is 28075 bytes and exceeds 24576 bytes (a limit introduced in Spurious Dragon). This contract may not be deployable on Mainnet. Consider enabling the optimizer (with a low "runs" value!), turning off revert strings, or using libraries.
34
34
  --> contracts/extended/OFTBurnMintExtendedRBACUpgradeable.sol:28:1:
@@ -80,7 +80,7 @@ Warning: Contract code size is 27524 bytes and exceeds 24576 bytes (a limit intr
80
80
 
81
81
 
82
82
  Successfully compiled 76 Solidity files
83
- ⏳ hardhat compile --config /hardhat/hardhat.default.config.js: 10.109s
83
+ ⏳ hardhat compile --config /hardhat/hardhat.default.config.js: 10.582s
84
84
   WARN  Issue while reading "/home/runner/work/monorepo-internal/monorepo-internal/.npmrc". Failed to replace env in config: ${NPM_TOKEN}
85
85
 
86
86
  > @layerzerolabs/oft-upgradeable-evm-contracts@0.0.0 compile:zksync /home/runner/work/monorepo-internal/monorepo-internal/apps/oft-app/contracts/evm/upgradeable
@@ -89,30 +89,30 @@ Successfully compiled 76 Solidity files
89
89
   WARN  Issue while reading "/home/runner/work/monorepo-internal/monorepo-internal/.npmrc". Failed to replace env in config: ${NPM_TOKEN}
90
90
  ✅ forge-1.3.6-hardhat-2.26.3
91
91
  🔧 hardhat version: 2.26.3
92
- 📦 Using mini workspace: /tmp/lz-mini-workspace-nsedPc
92
+ 📦 Using mini workspace: /tmp/lz-mini-workspace-We3BoV
93
93
  📦 Copied 13 workspace package source(s)
94
94
  📦 No mini-workspace pruner configured; using unpruned package-level source copy fallback.
95
- (node:33451) [MODULE_TYPELESS_PACKAGE_JSON] Warning: Module type of file:///home/runner/work/monorepo-internal/monorepo-internal/configs/vm-tooling/values/docker-image-repo.ts is not specified and it doesn't parse as CommonJS.
95
+ (node:246350) [MODULE_TYPELESS_PACKAGE_JSON] Warning: Module type of file:///home/runner/work/monorepo-internal/monorepo-internal/configs/vm-tooling/values/docker-image-repo.ts is not specified and it doesn't parse as CommonJS.
96
96
  Reparsing as ES module because module syntax was detected. This incurs a performance overhead.
97
97
  To eliminate this warning, add "type": "module" to /home/runner/work/monorepo-internal/monorepo-internal/package.json.
98
98
  (Use `node --trace-warnings ...` to show where the warning was created)
99
99
  📦 Docker volumes:
100
- -v /tmp/lz-mini-workspace-nsedPc:/workspace
100
+ -v /tmp/lz-mini-workspace-We3BoV:/workspace
101
101
  -v /home/runner/work/monorepo-internal/monorepo-internal/apps/oft-app/contracts/evm/upgradeable:/workspace/apps/oft-app/contracts/evm/upgradeable
102
102
  -v /home/runner/work/monorepo-internal/monorepo-internal/node_modules/.pnpm:/workspace/node_modules/.pnpm:ro
103
103
  $ docker image inspect --format {{.Architecture}} 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3
104
104
  $ docker container create --platform linux/amd64 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3 true
105
- $ docker container rm b4b251aea22f9be4aeb3cddb51c6a9592ff0754efef2645cf89c29b30763477f
105
+ $ docker container rm b9c325c184cdc6224561e67586c988c5665616046cfcfa8a0a67a01791157fbb
106
106
  ✅ Using cached Docker image: 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3 (linux/amd64)
107
107
  👤 Running container as UID:GID 1001:1001
108
108
  🌍 Using 1 custom environment variable(s)
109
- $ docker run --platform linux/amd64 --rm --add-host=host.docker.internal:host-gateway -e $'TS_NODE_COMPILER_OPTIONS={"module":"CommonJS","moduleResolution":"node"}' -e LOCAL_UID=1001 -e LOCAL_GID=1001 -v /tmp/lz-mini-workspace-nsedPc:/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
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-We3BoV:/workspace -v /home/runner/work/monorepo-internal/monorepo-internal/apps/oft-app/contracts/evm/upgradeable:/workspace/apps/oft-app/contracts/evm/upgradeable -v /home/runner/work/monorepo-internal/monorepo-internal/node_modules/.pnpm:/workspace/node_modules/.pnpm:ro -w /workspace/apps/oft-app/contracts/evm/upgradeable 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3 hardhat compile --config /hardhat/hardhat.default.config.js --network zksync-mainnet
110
110
  The solc version 1.3.22 is deprecated and will be removed for security reasons soon. Please update to v1.4.0 or newer.
111
111
  The zksolc compiler version in your Hardhat config file (1.3.22) is not the latest. We recommend using the latest version 1.5.15.
112
112
  Compiling contracts for ZKsync Era with zksolc v1.3.22 and zkvm-solc v0.8.23-1.0.1
113
113
  Compiling 76 Solidity files
114
114
  Successfully compiled 76 Solidity files
115
- ⏳ hardhat compile --config /hardhat/hardhat.default.config.js --network zksync-mainnet: 1:17.153 (m:ss.mmm)
115
+ ⏳ hardhat compile --config /hardhat/hardhat.default.config.js --network zksync-mainnet: 1:19.222 (m:ss.mmm)
116
116
   WARN  Issue while reading "/home/runner/work/monorepo-internal/monorepo-internal/.npmrc". Failed to replace env in config: ${NPM_TOKEN}
117
117
 
118
118
  > @layerzerolabs/oft-upgradeable-evm-contracts@0.0.0 compile:tron /home/runner/work/monorepo-internal/monorepo-internal/apps/oft-app/contracts/evm/upgradeable
@@ -121,27 +121,27 @@ Successfully compiled 76 Solidity files
121
121
   WARN  Issue while reading "/home/runner/work/monorepo-internal/monorepo-internal/.npmrc". Failed to replace env in config: ${NPM_TOKEN}
122
122
  ✅ forge-1.3.6-hardhat-2.26.3
123
123
  🔧 hardhat version: 2.26.3
124
- 📦 Using mini workspace: /tmp/lz-mini-workspace-w55pHL
124
+ 📦 Using mini workspace: /tmp/lz-mini-workspace-ZpYf3Y
125
125
  📦 Copied 13 workspace package source(s)
126
126
  📦 No mini-workspace pruner configured; using unpruned package-level source copy fallback.
127
- (node:43798) [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.
127
+ (node:261958) [MODULE_TYPELESS_PACKAGE_JSON] Warning: Module type of file:///home/runner/work/monorepo-internal/monorepo-internal/configs/vm-tooling/values/docker-image-repo.ts is not specified and it doesn't parse as CommonJS.
128
128
  Reparsing as ES module because module syntax was detected. This incurs a performance overhead.
129
129
  To eliminate this warning, add "type": "module" to /home/runner/work/monorepo-internal/monorepo-internal/package.json.
130
130
  (Use `node --trace-warnings ...` to show where the warning was created)
131
131
  📦 Docker volumes:
132
- -v /tmp/lz-mini-workspace-w55pHL:/workspace
132
+ -v /tmp/lz-mini-workspace-ZpYf3Y:/workspace
133
133
  -v /home/runner/work/monorepo-internal/monorepo-internal/apps/oft-app/contracts/evm/upgradeable:/workspace/apps/oft-app/contracts/evm/upgradeable
134
134
  -v /home/runner/work/monorepo-internal/monorepo-internal/node_modules/.pnpm:/workspace/node_modules/.pnpm:ro
135
135
  $ docker image inspect --format {{.Architecture}} 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3
136
136
  $ docker container create --platform linux/amd64 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3 true
137
- $ docker container rm 80a824915be2b171633f549dd1f11766bec970fb719dc21f15d8247648723b49
137
+ $ docker container rm 036d146f5cb9c30e2ce1577e0d0b6330a84fae648aa556813b32f685e8e338c9
138
138
  ✅ Using cached Docker image: 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3 (linux/amd64)
139
139
  👤 Running container as UID:GID 1001:1001
140
140
  🌍 Using 1 custom environment variable(s)
141
- $ docker run --platform linux/amd64 --rm --add-host=host.docker.internal:host-gateway -e $'TS_NODE_COMPILER_OPTIONS={"module":"CommonJS","moduleResolution":"node"}' -e LOCAL_UID=1001 -e LOCAL_GID=1001 -v /tmp/lz-mini-workspace-w55pHL:/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
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-ZpYf3Y:/workspace -v /home/runner/work/monorepo-internal/monorepo-internal/apps/oft-app/contracts/evm/upgradeable:/workspace/apps/oft-app/contracts/evm/upgradeable -v /home/runner/work/monorepo-internal/monorepo-internal/node_modules/.pnpm:/workspace/node_modules/.pnpm:ro -w /workspace/apps/oft-app/contracts/evm/upgradeable 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3 hardhat compile --config /hardhat/hardhat.default.config.js --network tron-mainnet
142
142
  detected tron network, replacing deployments extension with custom one
143
- Tron-solc v0.8.23 is unknown version, attempting anyway...
144
143
  Compiling contracts with tron solc v0.8.23
144
+ Tron-solc v0.8.23 is unknown version, attempting anyway...
145
145
  Compiling 76 Solidity files
146
146
  Warning: Contract code size is 29971 bytes and exceeds 24576 bytes (a limit introduced in Spurious Dragon). This contract may not be deployable on Mainnet. Consider enabling the optimizer (with a low "runs" value!), turning off revert strings, or using libraries.
147
147
  --> contracts/extended/OFTBurnMintExtendedRBACUpgradeable.sol:28:1:
@@ -193,4 +193,4 @@ Warning: Contract code size is 29394 bytes and exceeds 24576 bytes (a limit intr
193
193
 
194
194
 
195
195
  Successfully compiled 76 Solidity files
196
- ⏳ hardhat compile --config /hardhat/hardhat.default.config.js --network tron-mainnet: 32.816s
196
+ ⏳ hardhat compile --config /hardhat/hardhat.default.config.js --network tron-mainnet: 33.020s
@@ -4,72 +4,72 @@
4
4
 
5
5
  ✅ forge-1.3.6-hardhat-2.26.3
6
6
  🔧 forge version: 1.3.6
7
- 📦 Using mini workspace: /tmp/lz-mini-workspace-c2IJkn
7
+ 📦 Using mini workspace: /tmp/lz-mini-workspace-Z7YPTA
8
8
  📦 Copied 13 workspace package source(s)
9
9
  📦 No mini-workspace pruner configured; using unpruned package-level source copy fallback.
10
- (node:88629) [MODULE_TYPELESS_PACKAGE_JSON] Warning: Module type of file:///home/runner/work/monorepo-internal/monorepo-internal/configs/vm-tooling/values/docker-image-repo.ts is not specified and it doesn't parse as CommonJS.
10
+ (node:300237) [MODULE_TYPELESS_PACKAGE_JSON] Warning: Module type of file:///home/runner/work/monorepo-internal/monorepo-internal/configs/vm-tooling/values/docker-image-repo.ts is not specified and it doesn't parse as CommonJS.
11
11
  Reparsing as ES module because module syntax was detected. This incurs a performance overhead.
12
12
  To eliminate this warning, add "type": "module" to /home/runner/work/monorepo-internal/monorepo-internal/package.json.
13
13
  (Use `node --trace-warnings ...` to show where the warning was created)
14
14
  📦 Docker volumes:
15
- -v /tmp/lz-mini-workspace-c2IJkn:/workspace
15
+ -v /tmp/lz-mini-workspace-Z7YPTA:/workspace
16
16
  -v /home/runner/work/monorepo-internal/monorepo-internal/apps/oft-app/contracts/evm/upgradeable:/workspace/apps/oft-app/contracts/evm/upgradeable
17
17
  -v /home/runner/work/monorepo-internal/monorepo-internal/node_modules/.pnpm:/workspace/node_modules/.pnpm:ro
18
18
  $ docker image inspect --format {{.Architecture}} 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3
19
19
  ✅ Using cached Docker image: 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3 (amd64)
20
20
  👤 Running container as UID:GID 1001:1001
21
- $ docker run --rm --add-host=host.docker.internal:host-gateway -e LOCAL_UID=1001 -e LOCAL_GID=1001 -v /tmp/lz-mini-workspace-c2IJkn:/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
21
+ $ docker run --rm --add-host=host.docker.internal:host-gateway -e LOCAL_UID=1001 -e LOCAL_GID=1001 -v /tmp/lz-mini-workspace-Z7YPTA:/workspace -v /home/runner/work/monorepo-internal/monorepo-internal/apps/oft-app/contracts/evm/upgradeable:/workspace/apps/oft-app/contracts/evm/upgradeable -v /home/runner/work/monorepo-internal/monorepo-internal/node_modules/.pnpm:/workspace/node_modules/.pnpm:ro -w /workspace/apps/oft-app/contracts/evm/upgradeable 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3 forge test
22
22
  Compiling 185 files with Solc 0.8.22
23
- Solc 0.8.22 finished in 40.42s
23
+ Solc 0.8.22 finished in 47.36s
24
24
  Compiler run successful!
25
25
 
26
- Ran 32 tests for test/OFTLockUnlockExtendedRBACAlt.t.sol:OFTLockUnlockExtendedRBACAltTest
27
- [PASS] test_credit() (gas: 91882)
28
- [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 94878, ~: 95314)
29
- [PASS] test_debit() (gas: 113036)
30
- [PASS] test_debit_Dust() (gas: 137551)
31
- [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 140112, ~: 140423)
32
- [PASS] test_debit_PushesFees() (gas: 163342)
33
- [PASS] test_debit_Revert_SlippageExceeded() (gas: 133828)
34
- [PASS] test_debit_SmallAmount_DustOnly() (gas: 137513)
35
- [PASS] test_debit_WithFee() (gas: 163924)
36
- [PASS] test_debit_WithFee_Dust() (gas: 163430)
37
- [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 162824, ~: 162567)
38
- [PASS] test_initialize() (gas: 24656)
39
- [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92822)
40
- [PASS] test_pause_unpause() (gas: 145524)
41
- [PASS] test_quoteOFT() (gas: 70757)
42
- [PASS] test_quoteOFT_GloballyDisabled() (gas: 80605)
43
- [PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59240)
44
- [PASS] test_quoteOFT_Paused() (gas: 56637)
45
- [PASS] test_quoteOFT_RateLimiterUsage() (gas: 200448)
46
- [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 242784)
47
- [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 198109, ~: 197912)
48
- [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84299)
49
- [PASS] test_rateLimit_Inflow() (gas: 132710)
50
- [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 159652)
51
- [PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 176893)
52
- [PASS] test_send() (gas: 465637)
53
- [PASS] test_send_Revert_MsgInspection() (gas: 327696)
54
- [PASS] test_send_Revert_OnlyAltToken() (gas: 241148)
55
- [PASS] test_send_WithFee() (gas: 516566)
56
- [PASS] test_setFeeDeposit() (gas: 28423)
57
- [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22583)
58
- [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38935, ~: 39012)
59
- Suite result: ok. 32 passed; 0 failed; 0 skipped; finished in 815.57ms (2.21s CPU time)
26
+ Ran 32 tests for test/OFTBurnSelfMintExtendedRBAC.t.sol:OFTBurnSelfMintExtendedRBACTest
27
+ [PASS] test_credit() (gas: 89873)
28
+ [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93102, ~: 93305)
29
+ [PASS] test_debit() (gas: 120710)
30
+ [PASS] test_debit_Dust() (gas: 143616)
31
+ [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 145607, ~: 146486)
32
+ [PASS] test_debit_PushesFees() (gas: 164384)
33
+ [PASS] test_debit_Revert_SlippageExceeded() (gas: 131872)
34
+ [PASS] test_debit_SmallAmount_DustOnly() (gas: 143579)
35
+ [PASS] test_debit_TokensTransferredToSelfThenBurned() (gas: 122517)
36
+ [PASS] test_debit_WithFee() (gas: 166449)
37
+ [PASS] test_debit_WithFee_Dust() (gas: 164455)
38
+ [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 166724, ~: 168648)
39
+ [PASS] test_initialize() (gas: 24700)
40
+ [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
41
+ [PASS] test_pause_unpause() (gas: 151598)
42
+ [PASS] test_quoteOFT() (gas: 70712)
43
+ [PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
44
+ [PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59173)
45
+ [PASS] test_quoteOFT_Paused() (gas: 56570)
46
+ [PASS] test_quoteOFT_RateLimiterUsage() (gas: 242240)
47
+ [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 268746)
48
+ [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 192067, ~: 191921)
49
+ [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84254)
50
+ [PASS] test_rateLimit_Inflow() (gas: 108738)
51
+ [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
52
+ [PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 175225)
53
+ [PASS] test_send() (gas: 387136)
54
+ [PASS] test_send_Revert_MsgInspection() (gas: 335267)
55
+ [PASS] test_send_WithFee() (gas: 462592)
56
+ [PASS] test_setFeeDeposit() (gas: 28445)
57
+ [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
58
+ [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38933, ~: 39034)
59
+ Suite result: ok. 32 passed; 0 failed; 0 skipped; finished in 573.55ms (2.10s CPU time)
60
60
 
61
61
  Ran 31 tests for test/OFTLockUnlockExtendedRBAC.t.sol:OFTLockUnlockExtendedRBACTest
62
62
  [PASS] test_credit() (gas: 89882)
63
- [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93401, ~: 93314)
63
+ [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 92946, ~: 93314)
64
64
  [PASS] test_debit() (gas: 113036)
65
65
  [PASS] test_debit_Dust() (gas: 135880)
66
- [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 138043, ~: 139029)
66
+ [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 137737, ~: 138823)
67
67
  [PASS] test_debit_PushesFees() (gas: 161342)
68
68
  [PASS] test_debit_Revert_SlippageExceeded() (gas: 131850)
69
69
  [PASS] test_debit_SmallAmount_DustOnly() (gas: 135931)
70
70
  [PASS] test_debit_WithFee() (gas: 163924)
71
71
  [PASS] test_debit_WithFee_Dust() (gas: 161430)
72
- [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 161695, ~: 160967)
72
+ [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 161750, ~: 160967)
73
73
  [PASS] test_initialize() (gas: 24678)
74
74
  [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92822)
75
75
  [PASS] test_pause_unpause() (gas: 143924)
@@ -79,7 +79,7 @@ Ran 31 tests for test/OFTLockUnlockExtendedRBAC.t.sol:OFTLockUnlockExtendedRBACT
79
79
  [PASS] test_quoteOFT_Paused() (gas: 56637)
80
80
  [PASS] test_quoteOFT_RateLimiterUsage() (gas: 198848)
81
81
  [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 241184)
82
- [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 196102, ~: 195912)
82
+ [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 196100, ~: 195912)
83
83
  [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84321)
84
84
  [PASS] test_rateLimit_Inflow() (gas: 130622)
85
85
  [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157652)
@@ -89,90 +89,57 @@ Ran 31 tests for test/OFTLockUnlockExtendedRBAC.t.sol:OFTLockUnlockExtendedRBACT
89
89
  [PASS] test_send_WithFee() (gas: 474453)
90
90
  [PASS] test_setFeeDeposit() (gas: 28337)
91
91
  [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22583)
92
- [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38877, ~: 38945)
93
- Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 857.20ms (2.15s CPU time)
94
-
95
- Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACCrosschainTest
96
- [PASS] test_credit() (gas: 89874)
97
- [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93190, ~: 93306)
98
- [PASS] test_debit() (gas: 98332)
99
- [PASS] test_debit_Dust() (gas: 139763)
100
- [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 142594, ~: 143477)
101
- [PASS] test_debit_PushesFees() (gas: 165812)
102
- [PASS] test_debit_Revert_SlippageExceeded() (gas: 131894)
103
- [PASS] test_debit_SmallAmount_DustOnly() (gas: 139827)
104
- [PASS] test_debit_WithFee() (gas: 165286)
105
- [PASS] test_debit_WithFee_Dust() (gas: 165900)
106
- [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 168875, ~: 171220)
107
- [PASS] test_initialize() (gas: 24722)
108
- [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
109
- [PASS] test_pause_unpause() (gas: 130472)
110
- [PASS] test_quoteOFT() (gas: 70712)
111
- [PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
112
- [PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59195)
113
- [PASS] test_quoteOFT_Paused() (gas: 56570)
114
- [PASS] test_quoteOFT_RateLimiterUsage() (gas: 185667)
115
- [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 233430)
116
- [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 200508, ~: 200315)
117
- [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84276)
118
- [PASS] test_rateLimit_Inflow() (gas: 108739)
119
- [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
120
- [PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 179385)
121
- [PASS] test_send() (gas: 400527)
122
- [PASS] test_send_Revert_MsgInspection() (gas: 308880)
123
- [PASS] test_send_WithFee() (gas: 477358)
124
- [PASS] test_setFeeDeposit() (gas: 28359)
125
- [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
126
- [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38875, ~: 38967)
127
- Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 932.68ms (2.03s CPU time)
92
+ [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38829, ~: 38945)
93
+ Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 574.88ms (1.42s CPU time)
128
94
 
129
- Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACTest
130
- [PASS] test_credit() (gas: 89871)
131
- [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93189, ~: 93303)
132
- [PASS] test_debit() (gas: 98327)
133
- [PASS] test_debit_Dust() (gas: 139747)
134
- [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 142441, ~: 143461)
135
- [PASS] test_debit_PushesFees() (gas: 165796)
136
- [PASS] test_debit_Revert_SlippageExceeded() (gas: 131894)
137
- [PASS] test_debit_SmallAmount_DustOnly() (gas: 139811)
138
- [PASS] test_debit_WithFee() (gas: 165270)
139
- [PASS] test_debit_WithFee_Dust() (gas: 165884)
140
- [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 168902, ~: 171204)
141
- [PASS] test_initialize() (gas: 24722)
142
- [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
143
- [PASS] test_pause_unpause() (gas: 130467)
144
- [PASS] test_quoteOFT() (gas: 70712)
145
- [PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
146
- [PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59195)
147
- [PASS] test_quoteOFT_Paused() (gas: 56570)
148
- [PASS] test_quoteOFT_RateLimiterUsage() (gas: 185657)
149
- [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 233398)
150
- [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 200497, ~: 200299)
151
- [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84276)
152
- [PASS] test_rateLimit_Inflow() (gas: 108736)
153
- [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
154
- [PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 179369)
155
- [PASS] test_send() (gas: 400518)
156
- [PASS] test_send_Revert_MsgInspection() (gas: 308871)
157
- [PASS] test_send_WithFee() (gas: 477338)
158
- [PASS] test_setFeeDeposit() (gas: 28359)
159
- [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
160
- [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38866, ~: 38967)
161
- Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 952.81ms (2.31s CPU time)
95
+ Ran 32 tests for test/OFTLockUnlockExtendedRBACAlt.t.sol:OFTLockUnlockExtendedRBACAltTest
96
+ [PASS] test_credit() (gas: 91882)
97
+ [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 95056, ~: 95314)
98
+ [PASS] test_debit() (gas: 113036)
99
+ [PASS] test_debit_Dust() (gas: 137551)
100
+ [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 139931, ~: 140423)
101
+ [PASS] test_debit_PushesFees() (gas: 163342)
102
+ [PASS] test_debit_Revert_SlippageExceeded() (gas: 133828)
103
+ [PASS] test_debit_SmallAmount_DustOnly() (gas: 137513)
104
+ [PASS] test_debit_WithFee() (gas: 163924)
105
+ [PASS] test_debit_WithFee_Dust() (gas: 163430)
106
+ [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 163498, ~: 162567)
107
+ [PASS] test_initialize() (gas: 24656)
108
+ [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92822)
109
+ [PASS] test_pause_unpause() (gas: 145524)
110
+ [PASS] test_quoteOFT() (gas: 70757)
111
+ [PASS] test_quoteOFT_GloballyDisabled() (gas: 80605)
112
+ [PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59240)
113
+ [PASS] test_quoteOFT_Paused() (gas: 56637)
114
+ [PASS] test_quoteOFT_RateLimiterUsage() (gas: 200448)
115
+ [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 242784)
116
+ [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 198120, ~: 197912)
117
+ [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84299)
118
+ [PASS] test_rateLimit_Inflow() (gas: 132710)
119
+ [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 159652)
120
+ [PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 176893)
121
+ [PASS] test_send() (gas: 465637)
122
+ [PASS] test_send_Revert_MsgInspection() (gas: 327696)
123
+ [PASS] test_send_Revert_OnlyAltToken() (gas: 241148)
124
+ [PASS] test_send_WithFee() (gas: 516566)
125
+ [PASS] test_setFeeDeposit() (gas: 28423)
126
+ [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22583)
127
+ [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38916, ~: 39012)
128
+ Suite result: ok. 32 passed; 0 failed; 0 skipped; finished in 593.30ms (1.77s CPU time)
162
129
 
163
130
  Ran 33 tests for test/OFTBurnSelfMintExtendedRBACAlt.t.sol:OFTBurnSelfMintExtendedRBACAltTest
164
131
  [PASS] test_credit() (gas: 89873)
165
- [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93096, ~: 93305)
132
+ [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93102, ~: 93305)
166
133
  [PASS] test_debit() (gas: 120710)
167
134
  [PASS] test_debit_Dust() (gas: 145216)
168
- [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 147373, ~: 148086)
135
+ [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 147349, ~: 148086)
169
136
  [PASS] test_debit_PushesFees() (gas: 165984)
170
137
  [PASS] test_debit_Revert_SlippageExceeded() (gas: 133872)
171
138
  [PASS] test_debit_SmallAmount_DustOnly() (gas: 145179)
172
139
  [PASS] test_debit_TokensTransferredToSelfThenBurned() (gas: 122500)
173
140
  [PASS] test_debit_WithFee() (gas: 166449)
174
141
  [PASS] test_debit_WithFee_Dust() (gas: 166055)
175
- [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 168461, ~: 170245)
142
+ [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 168451, ~: 170245)
176
143
  [PASS] test_initialize() (gas: 24700)
177
144
  [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
178
145
  [PASS] test_pause_unpause() (gas: 153198)
@@ -182,7 +149,7 @@ Ran 33 tests for test/OFTBurnSelfMintExtendedRBACAlt.t.sol:OFTBurnSelfMintExtend
182
149
  [PASS] test_quoteOFT_Paused() (gas: 56570)
183
150
  [PASS] test_quoteOFT_RateLimiterUsage() (gas: 243840)
184
151
  [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 270346)
185
- [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 193661, ~: 193521)
152
+ [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 193657, ~: 193521)
186
153
  [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84254)
187
154
  [PASS] test_rateLimit_Inflow() (gas: 108826)
188
155
  [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 159696)
@@ -193,21 +160,56 @@ Ran 33 tests for test/OFTBurnSelfMintExtendedRBACAlt.t.sol:OFTBurnSelfMintExtend
193
160
  [PASS] test_send_WithFee() (gas: 504694)
194
161
  [PASS] test_setFeeDeposit() (gas: 28445)
195
162
  [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
196
- [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38938, ~: 39034)
197
- Suite result: ok. 33 passed; 0 failed; 0 skipped; finished in 1.11s (2.44s CPU time)
163
+ [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38952, ~: 39034)
164
+ Suite result: ok. 33 passed; 0 failed; 0 skipped; finished in 633.13ms (1.61s CPU time)
165
+
166
+ Ran 32 tests for test/OFTBurnMintExtendedRBACAlt.t.sol:OFTBurnMintExtendedRBACAltTest
167
+ [PASS] test_credit() (gas: 89871)
168
+ [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93177, ~: 93303)
169
+ [PASS] test_debit() (gas: 98327)
170
+ [PASS] test_debit_Dust() (gas: 141836)
171
+ [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 144921, ~: 145461)
172
+ [PASS] test_debit_PushesFees() (gas: 167796)
173
+ [PASS] test_debit_Revert_SlippageExceeded() (gas: 133872)
174
+ [PASS] test_debit_SmallAmount_DustOnly() (gas: 141789)
175
+ [PASS] test_debit_WithFee() (gas: 165270)
176
+ [PASS] test_debit_WithFee_Dust() (gas: 167884)
177
+ [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 170822, ~: 173204)
178
+ [PASS] test_initialize() (gas: 24700)
179
+ [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
180
+ [PASS] test_pause_unpause() (gas: 132067)
181
+ [PASS] test_quoteOFT() (gas: 70712)
182
+ [PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
183
+ [PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59173)
184
+ [PASS] test_quoteOFT_Paused() (gas: 56570)
185
+ [PASS] test_quoteOFT_RateLimiterUsage() (gas: 187257)
186
+ [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 235398)
187
+ [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 202486, ~: 202299)
188
+ [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84254)
189
+ [PASS] test_rateLimit_Inflow() (gas: 108824)
190
+ [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 159696)
191
+ [PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 181347)
192
+ [PASS] test_send() (gas: 421733)
193
+ [PASS] test_send_Revert_MsgInspection() (gas: 310849)
194
+ [PASS] test_send_Revert_OnlyAltToken() (gas: 198819)
195
+ [PASS] test_send_WithFee() (gas: 493959)
196
+ [PASS] test_setFeeDeposit() (gas: 28445)
197
+ [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
198
+ [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38933, ~: 39034)
199
+ Suite result: ok. 32 passed; 0 failed; 0 skipped; finished in 642.81ms (1.32s CPU time)
198
200
 
199
201
  Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACRedeemIssueTest
200
202
  [PASS] test_credit() (gas: 89907)
201
- [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93178, ~: 93339)
203
+ [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93259, ~: 93339)
202
204
  [PASS] test_debit() (gas: 98305)
203
205
  [PASS] test_debit_Dust() (gas: 139763)
204
- [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 142878, ~: 143477)
206
+ [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 142759, ~: 143477)
205
207
  [PASS] test_debit_PushesFees() (gas: 165812)
206
208
  [PASS] test_debit_Revert_SlippageExceeded() (gas: 131894)
207
209
  [PASS] test_debit_SmallAmount_DustOnly() (gas: 139827)
208
210
  [PASS] test_debit_WithFee() (gas: 165286)
209
211
  [PASS] test_debit_WithFee_Dust() (gas: 165900)
210
- [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 168923, ~: 171220)
212
+ [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 169361, ~: 171220)
211
213
  [PASS] test_initialize() (gas: 24722)
212
214
  [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
213
215
  [PASS] test_pause_unpause() (gas: 130445)
@@ -217,7 +219,7 @@ Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACRedee
217
219
  [PASS] test_quoteOFT_Paused() (gas: 56570)
218
220
  [PASS] test_quoteOFT_RateLimiterUsage() (gas: 185614)
219
221
  [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 233430)
220
- [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 200496, ~: 200315)
222
+ [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 200502, ~: 200315)
221
223
  [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84276)
222
224
  [PASS] test_rateLimit_Inflow() (gas: 108772)
223
225
  [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
@@ -227,23 +229,57 @@ Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACRedee
227
229
  [PASS] test_send_WithFee() (gas: 477358)
228
230
  [PASS] test_setFeeDeposit() (gas: 28359)
229
231
  [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
230
- [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38875, ~: 38967)
231
- Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 1.11s (2.79s CPU time)
232
+ [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38856, ~: 38967)
233
+ Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 647.61ms (1.81s CPU time)
234
+
235
+ Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACCrosschainTest
236
+ [PASS] test_credit() (gas: 89874)
237
+ [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93148, ~: 93306)
238
+ [PASS] test_debit() (gas: 98332)
239
+ [PASS] test_debit_Dust() (gas: 139763)
240
+ [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 142617, ~: 143477)
241
+ [PASS] test_debit_PushesFees() (gas: 165812)
242
+ [PASS] test_debit_Revert_SlippageExceeded() (gas: 131894)
243
+ [PASS] test_debit_SmallAmount_DustOnly() (gas: 139827)
244
+ [PASS] test_debit_WithFee() (gas: 165286)
245
+ [PASS] test_debit_WithFee_Dust() (gas: 165900)
246
+ [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 169357, ~: 171220)
247
+ [PASS] test_initialize() (gas: 24722)
248
+ [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
249
+ [PASS] test_pause_unpause() (gas: 130472)
250
+ [PASS] test_quoteOFT() (gas: 70712)
251
+ [PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
252
+ [PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59195)
253
+ [PASS] test_quoteOFT_Paused() (gas: 56570)
254
+ [PASS] test_quoteOFT_RateLimiterUsage() (gas: 185667)
255
+ [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 233430)
256
+ [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 200503, ~: 200315)
257
+ [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84276)
258
+ [PASS] test_rateLimit_Inflow() (gas: 108739)
259
+ [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
260
+ [PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 179385)
261
+ [PASS] test_send() (gas: 400527)
262
+ [PASS] test_send_Revert_MsgInspection() (gas: 308880)
263
+ [PASS] test_send_WithFee() (gas: 477358)
264
+ [PASS] test_setFeeDeposit() (gas: 28359)
265
+ [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
266
+ [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38861, ~: 38967)
267
+ Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 649.42ms (1.65s CPU time)
232
268
 
233
269
  Ran 39 tests for test/OFTNativeExtendedRBAC.t.sol:OFTNativeExtendedRBACTest
234
270
  [PASS] test_approvalRequired() (gas: 13426)
235
271
  [PASS] test_credit() (gas: 62369)
236
- [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 65601, ~: 65954)
272
+ [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 65809, ~: 65954)
237
273
  [PASS] test_credit_Revert_CreditFailed() (gas: 91478)
238
274
  [PASS] test_debit() (gas: 36831)
239
275
  [PASS] test_debit_Dust() (gas: 76272)
240
- [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 79548, ~: 79886)
276
+ [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 79474, ~: 79886)
241
277
  [PASS] test_debit_PushesFees() (gas: 101339)
242
278
  [PASS] test_debit_Revert_SlippageExceeded() (gas: 54229)
243
279
  [PASS] test_debit_SmallAmount_DustOnly() (gas: 76226)
244
280
  [PASS] test_debit_WithFee() (gas: 101145)
245
281
  [PASS] test_debit_WithFee_Dust() (gas: 102376)
246
- [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 105400, ~: 107585)
282
+ [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 105783, ~: 107585)
247
283
  [PASS] test_initialize() (gas: 22406)
248
284
  [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92778)
249
285
  [PASS] test_pause_unpause() (gas: 61117)
@@ -253,7 +289,7 @@ Ran 39 tests for test/OFTNativeExtendedRBAC.t.sol:OFTNativeExtendedRBACTest
253
289
  [PASS] test_quoteOFT_Paused() (gas: 56703)
254
290
  [PASS] test_quoteOFT_RateLimiterUsage() (gas: 97744)
255
291
  [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 160139)
256
- [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 137890, ~: 137703)
292
+ [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 137888, ~: 137703)
257
293
  [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84387)
258
294
  [PASS] test_rateLimit_Inflow() (gas: 87713)
259
295
  [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 80123)
@@ -268,79 +304,43 @@ Ran 39 tests for test/OFTNativeExtendedRBAC.t.sol:OFTNativeExtendedRBACTest
268
304
  [PASS] test_send_WithFee() (gas: 415240)
269
305
  [PASS] test_setFeeDeposit() (gas: 28425)
270
306
  [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22627)
271
- [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38905, ~: 39011)
307
+ [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38910, ~: 39011)
272
308
  [PASS] test_token() (gas: 13483)
273
- Suite result: ok. 39 passed; 0 failed; 0 skipped; finished in 1.11s (2.23s CPU time)
274
-
275
- Ran 32 tests for test/OFTBurnSelfMintExtendedRBAC.t.sol:OFTBurnSelfMintExtendedRBACTest
276
- [PASS] test_credit() (gas: 89873)
277
- [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93038, ~: 93305)
278
- [PASS] test_debit() (gas: 120710)
279
- [PASS] test_debit_Dust() (gas: 143616)
280
- [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 145392, ~: 146486)
281
- [PASS] test_debit_PushesFees() (gas: 164384)
282
- [PASS] test_debit_Revert_SlippageExceeded() (gas: 131872)
283
- [PASS] test_debit_SmallAmount_DustOnly() (gas: 143579)
284
- [PASS] test_debit_TokensTransferredToSelfThenBurned() (gas: 122517)
285
- [PASS] test_debit_WithFee() (gas: 166449)
286
- [PASS] test_debit_WithFee_Dust() (gas: 164455)
287
- [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 166541, ~: 168645)
288
- [PASS] test_initialize() (gas: 24700)
289
- [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
290
- [PASS] test_pause_unpause() (gas: 151598)
291
- [PASS] test_quoteOFT() (gas: 70712)
292
- [PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
293
- [PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59173)
294
- [PASS] test_quoteOFT_Paused() (gas: 56570)
295
- [PASS] test_quoteOFT_RateLimiterUsage() (gas: 242240)
296
- [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 268746)
297
- [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 192055, ~: 191921)
298
- [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84254)
299
- [PASS] test_rateLimit_Inflow() (gas: 108738)
300
- [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
301
- [PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 175225)
302
- [PASS] test_send() (gas: 387136)
303
- [PASS] test_send_Revert_MsgInspection() (gas: 335267)
304
- [PASS] test_send_WithFee() (gas: 462592)
305
- [PASS] test_setFeeDeposit() (gas: 28445)
306
- [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
307
- [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38918, ~: 39034)
308
- Suite result: ok. 32 passed; 0 failed; 0 skipped; finished in 1.12s (2.72s CPU time)
309
+ Suite result: ok. 39 passed; 0 failed; 0 skipped; finished in 655.08ms (1.34s CPU time)
309
310
 
310
- Ran 32 tests for test/OFTBurnMintExtendedRBACAlt.t.sol:OFTBurnMintExtendedRBACAltTest
311
+ Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACTest
311
312
  [PASS] test_credit() (gas: 89871)
312
- [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 92860, ~: 93303)
313
+ [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93186, ~: 93303)
313
314
  [PASS] test_debit() (gas: 98327)
314
- [PASS] test_debit_Dust() (gas: 141836)
315
- [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 144497, ~: 145461)
316
- [PASS] test_debit_PushesFees() (gas: 167796)
317
- [PASS] test_debit_Revert_SlippageExceeded() (gas: 133872)
318
- [PASS] test_debit_SmallAmount_DustOnly() (gas: 141789)
315
+ [PASS] test_debit_Dust() (gas: 139747)
316
+ [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 143043, ~: 143461)
317
+ [PASS] test_debit_PushesFees() (gas: 165796)
318
+ [PASS] test_debit_Revert_SlippageExceeded() (gas: 131894)
319
+ [PASS] test_debit_SmallAmount_DustOnly() (gas: 139811)
319
320
  [PASS] test_debit_WithFee() (gas: 165270)
320
- [PASS] test_debit_WithFee_Dust() (gas: 167884)
321
- [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 170901, ~: 173204)
322
- [PASS] test_initialize() (gas: 24700)
321
+ [PASS] test_debit_WithFee_Dust() (gas: 165884)
322
+ [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 168695, ~: 171204)
323
+ [PASS] test_initialize() (gas: 24722)
323
324
  [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
324
- [PASS] test_pause_unpause() (gas: 132067)
325
+ [PASS] test_pause_unpause() (gas: 130467)
325
326
  [PASS] test_quoteOFT() (gas: 70712)
326
327
  [PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
327
- [PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59173)
328
+ [PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59195)
328
329
  [PASS] test_quoteOFT_Paused() (gas: 56570)
329
- [PASS] test_quoteOFT_RateLimiterUsage() (gas: 187257)
330
- [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 235398)
331
- [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 202487, ~: 202299)
332
- [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84254)
333
- [PASS] test_rateLimit_Inflow() (gas: 108824)
334
- [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 159696)
335
- [PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 181347)
336
- [PASS] test_send() (gas: 421733)
337
- [PASS] test_send_Revert_MsgInspection() (gas: 310849)
338
- [PASS] test_send_Revert_OnlyAltToken() (gas: 198819)
339
- [PASS] test_send_WithFee() (gas: 493959)
340
- [PASS] test_setFeeDeposit() (gas: 28445)
330
+ [PASS] test_quoteOFT_RateLimiterUsage() (gas: 185657)
331
+ [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 233398)
332
+ [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 200460, ~: 200299)
333
+ [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84276)
334
+ [PASS] test_rateLimit_Inflow() (gas: 108736)
335
+ [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
336
+ [PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 179369)
337
+ [PASS] test_send() (gas: 400518)
338
+ [PASS] test_send_Revert_MsgInspection() (gas: 308871)
339
+ [PASS] test_send_WithFee() (gas: 477338)
340
+ [PASS] test_setFeeDeposit() (gas: 28359)
341
341
  [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
342
- [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38894, ~: 39034)
343
- Suite result: ok. 32 passed; 0 failed; 0 skipped; finished in 1.12s (2.97s CPU time)
342
+ [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38901, ~: 38967)
343
+ Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 749.67ms (2.45s CPU time)
344
344
 
345
- Ran 9 test suites in 1.29s (9.12s CPU time): 292 tests passed, 0 failed, 0 skipped (292 total tests)
346
- ⏳ forge test: 43.733s
345
+ Ran 9 test suites in 927.85ms (5.72s CPU time): 292 tests passed, 0 failed, 0 skipped (292 total tests)
346
+ ⏳ forge test: 50.562s
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@layerzerolabs/oft-upgradeable-evm-contracts",
3
- "version": "0.2.120",
3
+ "version": "0.2.122",
4
4
  "private": false,
5
5
  "description": "LayerZero Labs reference EVM upgradeable OFT implementation",
6
6
  "license": "MIT",
@@ -14,16 +14,16 @@
14
14
  "@openzeppelin/contracts-upgradeable": "^5.0.2",
15
15
  "ethers": "^5.8.0",
16
16
  "solhint": "^6.0.1",
17
- "@layerzerolabs/oapp-evm-contracts": "0.2.120",
18
- "@layerzerolabs/oapp-upgradeable-evm-contracts": "0.2.120",
19
- "@layerzerolabs/oft-evm-contracts": "0.2.120",
20
- "@layerzerolabs/solhint-configuration": "0.2.120",
21
- "@layerzerolabs/test-utils-evm-contracts": "0.2.120",
22
- "@layerzerolabs/tsup-configuration": "0.2.120",
23
- "@layerzerolabs/utils-evm-contracts": "0.2.120",
24
- "@layerzerolabs/vm-tooling-evm": "0.2.120",
25
- "@layerzerolabs/typescript-configuration": "0.2.120",
26
- "@layerzerolabs/utils-upgradeable-evm-contracts": "0.2.120"
17
+ "@layerzerolabs/oapp-evm-contracts": "0.2.122",
18
+ "@layerzerolabs/oapp-upgradeable-evm-contracts": "0.2.122",
19
+ "@layerzerolabs/oft-evm-contracts": "0.2.122",
20
+ "@layerzerolabs/test-utils-evm-contracts": "0.2.122",
21
+ "@layerzerolabs/solhint-configuration": "0.2.122",
22
+ "@layerzerolabs/tsup-configuration": "0.2.122",
23
+ "@layerzerolabs/typescript-configuration": "0.2.122",
24
+ "@layerzerolabs/utils-evm-contracts": "0.2.122",
25
+ "@layerzerolabs/vm-tooling-evm": "0.2.122",
26
+ "@layerzerolabs/utils-upgradeable-evm-contracts": "0.2.122"
27
27
  },
28
28
  "publishConfig": {
29
29
  "access": "public",