@layerzerolabs/oft-upgradeable-evm-contracts 0.2.123 → 0.2.125

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-rixyzy
14
+ 📦 Using mini workspace: /tmp/lz-mini-workspace-YsZ8Ol
15
15
  📦 Copied 13 workspace package source(s)
16
16
  📦 No mini-workspace pruner configured; using unpruned package-level source copy fallback.
17
- (node:122135) [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:269555) [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-rixyzy:/workspace
22
+ -v /tmp/lz-mini-workspace-YsZ8Ol:/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 f007ded3fcca21c05fa5c1d419e34678314f27adb28e21bb668cc7b9588bc1ac
27
+ $ docker container rm 3ce9b60b8736ffa80f94f079c105795a94e33ad1b7a2be489a6fa3c94be04556
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-rixyzy:/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-YsZ8Ol:/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: 9.884s
83
+ ⏳ hardhat compile --config /hardhat/hardhat.default.config.js: 8.815s
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-ck9Osr
92
+ 📦 Using mini workspace: /tmp/lz-mini-workspace-UFasGw
93
93
  📦 Copied 13 workspace package source(s)
94
94
  📦 No mini-workspace pruner configured; using unpruned package-level source copy fallback.
95
- (node:125533) [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:271975) [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-ck9Osr:/workspace
100
+ -v /tmp/lz-mini-workspace-UFasGw:/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 9777dcd84c0c873dee64655c780f222d2804980913643db5ac54ab2c1173a286
105
+ $ docker container rm 9ad6cfc6edea7f3fd3810b601c405fb8dbf582e531a2c558f95eeaff50c094fe
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-ck9Osr:/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-UFasGw:/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:18.944 (m:ss.mmm)
115
+ ⏳ hardhat compile --config /hardhat/hardhat.default.config.js --network zksync-mainnet: 1:07.909 (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,24 +121,24 @@ 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-x1sTPx
124
+ 📦 Using mini workspace: /tmp/lz-mini-workspace-4YQG9M
125
125
  📦 Copied 13 workspace package source(s)
126
126
  📦 No mini-workspace pruner configured; using unpruned package-level source copy fallback.
127
- (node:147315) [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:296001) [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-x1sTPx:/workspace
132
+ -v /tmp/lz-mini-workspace-4YQG9M:/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 a24bea6a4763a03e16521da13bc1853ddb9b83f63a22ba7f0937c4218dff75e2
137
+ $ docker container rm abffd848a90dee3135d0794d16c1ac9f26b0a11943a066d8e959eda7e72d7f19
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-x1sTPx:/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-4YQG9M:/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
143
  Tron-solc v0.8.23 is unknown version, attempting anyway...
144
144
  Compiling contracts with tron solc v0.8.23
@@ -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.031s
196
+ ⏳ hardhat compile --config /hardhat/hardhat.default.config.js --network tron-mainnet: 25.497s
@@ -4,38 +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-mZIt0y
7
+ 📦 Using mini workspace: /tmp/lz-mini-workspace-oNDkcM
8
8
  📦 Copied 13 workspace package source(s)
9
9
  📦 No mini-workspace pruner configured; using unpruned package-level source copy fallback.
10
- (node:170999) [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:333897) [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-mZIt0y:/workspace
15
+ -v /tmp/lz-mini-workspace-oNDkcM:/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-mZIt0y:/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-oNDkcM:/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 51.68s
23
+ Solc 0.8.22 finished in 38.16s
24
24
  Compiler run successful!
25
25
 
26
+ Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACRedeemIssueTest
27
+ [PASS] test_credit() (gas: 89907)
28
+ [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93138, ~: 93339)
29
+ [PASS] test_debit() (gas: 98305)
30
+ [PASS] test_debit_Dust() (gas: 139763)
31
+ [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 142434, ~: 143477)
32
+ [PASS] test_debit_PushesFees() (gas: 165812)
33
+ [PASS] test_debit_Revert_SlippageExceeded() (gas: 131894)
34
+ [PASS] test_debit_SmallAmount_DustOnly() (gas: 139827)
35
+ [PASS] test_debit_WithFee() (gas: 165286)
36
+ [PASS] test_debit_WithFee_Dust() (gas: 165900)
37
+ [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 168383, ~: 171220)
38
+ [PASS] test_initialize() (gas: 24722)
39
+ [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
40
+ [PASS] test_pause_unpause() (gas: 130445)
41
+ [PASS] test_quoteOFT() (gas: 70712)
42
+ [PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
43
+ [PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59195)
44
+ [PASS] test_quoteOFT_Paused() (gas: 56570)
45
+ [PASS] test_quoteOFT_RateLimiterUsage() (gas: 185614)
46
+ [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 233430)
47
+ [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 200499, ~: 200315)
48
+ [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84276)
49
+ [PASS] test_rateLimit_Inflow() (gas: 108772)
50
+ [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
51
+ [PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 179385)
52
+ [PASS] test_send() (gas: 400494)
53
+ [PASS] test_send_Revert_MsgInspection() (gas: 308847)
54
+ [PASS] test_send_WithFee() (gas: 477358)
55
+ [PASS] test_setFeeDeposit() (gas: 28359)
56
+ [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
57
+ [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38895, ~: 38967)
58
+ Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 482.46ms (1.10s CPU time)
59
+
26
60
  Ran 32 tests for test/OFTBurnSelfMintExtendedRBAC.t.sol:OFTBurnSelfMintExtendedRBACTest
27
61
  [PASS] test_credit() (gas: 89873)
28
- [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93156, ~: 93305)
62
+ [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93343, ~: 93305)
29
63
  [PASS] test_debit() (gas: 120710)
30
64
  [PASS] test_debit_Dust() (gas: 143616)
31
- [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 145833, ~: 146486)
65
+ [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 145514, ~: 146486)
32
66
  [PASS] test_debit_PushesFees() (gas: 164384)
33
67
  [PASS] test_debit_Revert_SlippageExceeded() (gas: 131872)
34
68
  [PASS] test_debit_SmallAmount_DustOnly() (gas: 143579)
35
69
  [PASS] test_debit_TokensTransferredToSelfThenBurned() (gas: 122517)
36
70
  [PASS] test_debit_WithFee() (gas: 166449)
37
71
  [PASS] test_debit_WithFee_Dust() (gas: 164455)
38
- [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 166824, ~: 168645)
72
+ [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 166850, ~: 168648)
39
73
  [PASS] test_initialize() (gas: 24700)
40
74
  [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
41
75
  [PASS] test_pause_unpause() (gas: 151598)
@@ -45,7 +79,7 @@ Ran 32 tests for test/OFTBurnSelfMintExtendedRBAC.t.sol:OFTBurnSelfMintExtendedR
45
79
  [PASS] test_quoteOFT_Paused() (gas: 56570)
46
80
  [PASS] test_quoteOFT_RateLimiterUsage() (gas: 242240)
47
81
  [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 268746)
48
- [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 192089, ~: 191924)
82
+ [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 192068, ~: 191921)
49
83
  [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84254)
50
84
  [PASS] test_rateLimit_Inflow() (gas: 108738)
51
85
  [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
@@ -55,91 +89,22 @@ Ran 32 tests for test/OFTBurnSelfMintExtendedRBAC.t.sol:OFTBurnSelfMintExtendedR
55
89
  [PASS] test_send_WithFee() (gas: 462592)
56
90
  [PASS] test_setFeeDeposit() (gas: 28445)
57
91
  [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
58
- [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38938, ~: 39034)
59
- Suite result: ok. 32 passed; 0 failed; 0 skipped; finished in 849.42ms (1.83s CPU time)
60
-
61
- Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACTest
62
- [PASS] test_credit() (gas: 89871)
63
- [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93063, ~: 93303)
64
- [PASS] test_debit() (gas: 98327)
65
- [PASS] test_debit_Dust() (gas: 139747)
66
- [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 142824, ~: 143461)
67
- [PASS] test_debit_PushesFees() (gas: 165796)
68
- [PASS] test_debit_Revert_SlippageExceeded() (gas: 131894)
69
- [PASS] test_debit_SmallAmount_DustOnly() (gas: 139811)
70
- [PASS] test_debit_WithFee() (gas: 165270)
71
- [PASS] test_debit_WithFee_Dust() (gas: 165884)
72
- [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 168552, ~: 171204)
73
- [PASS] test_initialize() (gas: 24722)
74
- [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
75
- [PASS] test_pause_unpause() (gas: 130467)
76
- [PASS] test_quoteOFT() (gas: 70712)
77
- [PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
78
- [PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59195)
79
- [PASS] test_quoteOFT_Paused() (gas: 56570)
80
- [PASS] test_quoteOFT_RateLimiterUsage() (gas: 185657)
81
- [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 233398)
82
- [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 200468, ~: 200299)
83
- [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84276)
84
- [PASS] test_rateLimit_Inflow() (gas: 108736)
85
- [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
86
- [PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 179369)
87
- [PASS] test_send() (gas: 400518)
88
- [PASS] test_send_Revert_MsgInspection() (gas: 308871)
89
- [PASS] test_send_WithFee() (gas: 477338)
90
- [PASS] test_setFeeDeposit() (gas: 28359)
91
- [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
92
- [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38899, ~: 38967)
93
- Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 1.02s (2.98s CPU time)
94
-
95
- Ran 32 tests for test/OFTLockUnlockExtendedRBACAlt.t.sol:OFTLockUnlockExtendedRBACAltTest
96
- [PASS] test_credit() (gas: 91882)
97
- [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 95109, ~: 95314)
98
- [PASS] test_debit() (gas: 113036)
99
- [PASS] test_debit_Dust() (gas: 137551)
100
- [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 140535, ~: 141029)
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, μ: 163385, ~: 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, μ: 198115, ~: 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, μ: 38949, ~: 39012)
128
- Suite result: ok. 32 passed; 0 failed; 0 skipped; finished in 1.05s (2.32s CPU time)
92
+ [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38957, ~: 39034)
93
+ Suite result: ok. 32 passed; 0 failed; 0 skipped; finished in 510.06ms (1.64s CPU time)
129
94
 
130
95
  Ran 33 tests for test/OFTBurnSelfMintExtendedRBACAlt.t.sol:OFTBurnSelfMintExtendedRBACAltTest
131
96
  [PASS] test_credit() (gas: 89873)
132
- [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 92860, ~: 93305)
97
+ [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 92790, ~: 93305)
133
98
  [PASS] test_debit() (gas: 120710)
134
99
  [PASS] test_debit_Dust() (gas: 145216)
135
- [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 147420, ~: 148086)
100
+ [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 147625, ~: 148086)
136
101
  [PASS] test_debit_PushesFees() (gas: 165984)
137
102
  [PASS] test_debit_Revert_SlippageExceeded() (gas: 133872)
138
103
  [PASS] test_debit_SmallAmount_DustOnly() (gas: 145179)
139
104
  [PASS] test_debit_TokensTransferredToSelfThenBurned() (gas: 122500)
140
105
  [PASS] test_debit_WithFee() (gas: 166449)
141
106
  [PASS] test_debit_WithFee_Dust() (gas: 166055)
142
- [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 168548, ~: 170245)
107
+ [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 168529, ~: 170245)
143
108
  [PASS] test_initialize() (gas: 24700)
144
109
  [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
145
110
  [PASS] test_pause_unpause() (gas: 153198)
@@ -149,7 +114,7 @@ Ran 33 tests for test/OFTBurnSelfMintExtendedRBACAlt.t.sol:OFTBurnSelfMintExtend
149
114
  [PASS] test_quoteOFT_Paused() (gas: 56570)
150
115
  [PASS] test_quoteOFT_RateLimiterUsage() (gas: 243840)
151
116
  [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 270346)
152
- [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 193675, ~: 193521)
117
+ [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 193678, ~: 193521)
153
118
  [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84254)
154
119
  [PASS] test_rateLimit_Inflow() (gas: 108826)
155
120
  [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 159696)
@@ -160,21 +125,21 @@ Ran 33 tests for test/OFTBurnSelfMintExtendedRBACAlt.t.sol:OFTBurnSelfMintExtend
160
125
  [PASS] test_send_WithFee() (gas: 504694)
161
126
  [PASS] test_setFeeDeposit() (gas: 28445)
162
127
  [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
163
- [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38928, ~: 39034)
164
- Suite result: ok. 33 passed; 0 failed; 0 skipped; finished in 1.05s (3.02s CPU time)
128
+ [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38923, ~: 39034)
129
+ Suite result: ok. 33 passed; 0 failed; 0 skipped; finished in 533.14ms (1.24s CPU time)
165
130
 
166
131
  Ran 32 tests for test/OFTBurnMintExtendedRBACAlt.t.sol:OFTBurnMintExtendedRBACAltTest
167
132
  [PASS] test_credit() (gas: 89871)
168
- [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93100, ~: 93303)
133
+ [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93022, ~: 93303)
169
134
  [PASS] test_debit() (gas: 98327)
170
135
  [PASS] test_debit_Dust() (gas: 141836)
171
- [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 144880, ~: 145461)
136
+ [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 144662, ~: 145461)
172
137
  [PASS] test_debit_PushesFees() (gas: 167796)
173
138
  [PASS] test_debit_Revert_SlippageExceeded() (gas: 133872)
174
139
  [PASS] test_debit_SmallAmount_DustOnly() (gas: 141789)
175
140
  [PASS] test_debit_WithFee() (gas: 165270)
176
141
  [PASS] test_debit_WithFee_Dust() (gas: 167884)
177
- [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 170674, ~: 173204)
142
+ [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 170777, ~: 173204)
178
143
  [PASS] test_initialize() (gas: 24700)
179
144
  [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
180
145
  [PASS] test_pause_unpause() (gas: 132067)
@@ -184,7 +149,7 @@ Ran 32 tests for test/OFTBurnMintExtendedRBACAlt.t.sol:OFTBurnMintExtendedRBACAl
184
149
  [PASS] test_quoteOFT_Paused() (gas: 56570)
185
150
  [PASS] test_quoteOFT_RateLimiterUsage() (gas: 187257)
186
151
  [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 235398)
187
- [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 202491, ~: 202299)
152
+ [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 202498, ~: 202299)
188
153
  [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84254)
189
154
  [PASS] test_rateLimit_Inflow() (gas: 108824)
190
155
  [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 159696)
@@ -195,89 +160,56 @@ Ran 32 tests for test/OFTBurnMintExtendedRBACAlt.t.sol:OFTBurnMintExtendedRBACAl
195
160
  [PASS] test_send_WithFee() (gas: 493959)
196
161
  [PASS] test_setFeeDeposit() (gas: 28445)
197
162
  [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
198
- [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38938, ~: 39034)
199
- Suite result: ok. 32 passed; 0 failed; 0 skipped; finished in 1.05s (2.22s CPU time)
200
-
201
- Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACRedeemIssueTest
202
- [PASS] test_credit() (gas: 89907)
203
- [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93282, ~: 93339)
204
- [PASS] test_debit() (gas: 98305)
205
- [PASS] test_debit_Dust() (gas: 139763)
206
- [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 142382, ~: 143477)
207
- [PASS] test_debit_PushesFees() (gas: 165812)
208
- [PASS] test_debit_Revert_SlippageExceeded() (gas: 131894)
209
- [PASS] test_debit_SmallAmount_DustOnly() (gas: 139827)
210
- [PASS] test_debit_WithFee() (gas: 165286)
211
- [PASS] test_debit_WithFee_Dust() (gas: 165900)
212
- [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 168768, ~: 171220)
213
- [PASS] test_initialize() (gas: 24722)
214
- [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
215
- [PASS] test_pause_unpause() (gas: 130445)
216
- [PASS] test_quoteOFT() (gas: 70712)
217
- [PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
218
- [PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59195)
219
- [PASS] test_quoteOFT_Paused() (gas: 56570)
220
- [PASS] test_quoteOFT_RateLimiterUsage() (gas: 185614)
221
- [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 233430)
222
- [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 200499, ~: 200315)
223
- [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84276)
224
- [PASS] test_rateLimit_Inflow() (gas: 108772)
225
- [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
226
- [PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 179385)
227
- [PASS] test_send() (gas: 400494)
228
- [PASS] test_send_Revert_MsgInspection() (gas: 308847)
229
- [PASS] test_send_WithFee() (gas: 477358)
230
- [PASS] test_setFeeDeposit() (gas: 28359)
231
- [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
232
- [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38875, ~: 38967)
233
- Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 1.05s (2.83s CPU time)
163
+ [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38933, ~: 39034)
164
+ Suite result: ok. 32 passed; 0 failed; 0 skipped; finished in 536.28ms (1.97s CPU time)
234
165
 
235
- Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACCrosschainTest
236
- [PASS] test_credit() (gas: 89874)
237
- [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93058, ~: 93306)
238
- [PASS] test_debit() (gas: 98332)
239
- [PASS] test_debit_Dust() (gas: 139763)
240
- [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 142536, ~: 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, μ: 168977, ~: 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, μ: 200490, ~: 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, μ: 38909, ~: 38967)
267
- Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 1.08s (1.71s CPU time)
166
+ Ran 32 tests for test/OFTLockUnlockExtendedRBACAlt.t.sol:OFTLockUnlockExtendedRBACAltTest
167
+ [PASS] test_credit() (gas: 91882)
168
+ [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 95282, ~: 95314)
169
+ [PASS] test_debit() (gas: 113036)
170
+ [PASS] test_debit_Dust() (gas: 137551)
171
+ [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 140238, ~: 140423)
172
+ [PASS] test_debit_PushesFees() (gas: 163342)
173
+ [PASS] test_debit_Revert_SlippageExceeded() (gas: 133828)
174
+ [PASS] test_debit_SmallAmount_DustOnly() (gas: 137513)
175
+ [PASS] test_debit_WithFee() (gas: 163924)
176
+ [PASS] test_debit_WithFee_Dust() (gas: 163430)
177
+ [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 163539, ~: 162567)
178
+ [PASS] test_initialize() (gas: 24656)
179
+ [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92822)
180
+ [PASS] test_pause_unpause() (gas: 145524)
181
+ [PASS] test_quoteOFT() (gas: 70757)
182
+ [PASS] test_quoteOFT_GloballyDisabled() (gas: 80605)
183
+ [PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59240)
184
+ [PASS] test_quoteOFT_Paused() (gas: 56637)
185
+ [PASS] test_quoteOFT_RateLimiterUsage() (gas: 200448)
186
+ [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 242784)
187
+ [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 198099, ~: 197912)
188
+ [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84299)
189
+ [PASS] test_rateLimit_Inflow() (gas: 132710)
190
+ [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 159652)
191
+ [PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 176893)
192
+ [PASS] test_send() (gas: 465637)
193
+ [PASS] test_send_Revert_MsgInspection() (gas: 327696)
194
+ [PASS] test_send_Revert_OnlyAltToken() (gas: 241148)
195
+ [PASS] test_send_WithFee() (gas: 516566)
196
+ [PASS] test_setFeeDeposit() (gas: 28423)
197
+ [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22583)
198
+ [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38949, ~: 39012)
199
+ Suite result: ok. 32 passed; 0 failed; 0 skipped; finished in 555.19ms (1.93s CPU time)
268
200
 
269
201
  Ran 31 tests for test/OFTLockUnlockExtendedRBAC.t.sol:OFTLockUnlockExtendedRBACTest
270
202
  [PASS] test_credit() (gas: 89882)
271
- [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93024, ~: 93314)
203
+ [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93068, ~: 93314)
272
204
  [PASS] test_debit() (gas: 113036)
273
205
  [PASS] test_debit_Dust() (gas: 135880)
274
- [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 138261, ~: 138823)
206
+ [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 138597, ~: 138823)
275
207
  [PASS] test_debit_PushesFees() (gas: 161342)
276
208
  [PASS] test_debit_Revert_SlippageExceeded() (gas: 131850)
277
209
  [PASS] test_debit_SmallAmount_DustOnly() (gas: 135931)
278
210
  [PASS] test_debit_WithFee() (gas: 163924)
279
211
  [PASS] test_debit_WithFee_Dust() (gas: 161430)
280
- [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 161949, ~: 160967)
212
+ [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 161979, ~: 160967)
281
213
  [PASS] test_initialize() (gas: 24678)
282
214
  [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92822)
283
215
  [PASS] test_pause_unpause() (gas: 143924)
@@ -287,7 +219,7 @@ Ran 31 tests for test/OFTLockUnlockExtendedRBAC.t.sol:OFTLockUnlockExtendedRBACT
287
219
  [PASS] test_quoteOFT_Paused() (gas: 56637)
288
220
  [PASS] test_quoteOFT_RateLimiterUsage() (gas: 198848)
289
221
  [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 241184)
290
- [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 196075, ~: 195909)
222
+ [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 196087, ~: 195912)
291
223
  [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84321)
292
224
  [PASS] test_rateLimit_Inflow() (gas: 130622)
293
225
  [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157652)
@@ -297,23 +229,23 @@ Ran 31 tests for test/OFTLockUnlockExtendedRBAC.t.sol:OFTLockUnlockExtendedRBACT
297
229
  [PASS] test_send_WithFee() (gas: 474453)
298
230
  [PASS] test_setFeeDeposit() (gas: 28337)
299
231
  [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22583)
300
- [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38877, ~: 38945)
301
- Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 1.08s (2.07s CPU time)
232
+ [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38873, ~: 38945)
233
+ Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 564.09ms (1.51s CPU time)
302
234
 
303
235
  Ran 39 tests for test/OFTNativeExtendedRBAC.t.sol:OFTNativeExtendedRBACTest
304
236
  [PASS] test_approvalRequired() (gas: 13426)
305
237
  [PASS] test_credit() (gas: 62369)
306
- [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 65932, ~: 65954)
238
+ [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 65647, ~: 65954)
307
239
  [PASS] test_credit_Revert_CreditFailed() (gas: 91478)
308
240
  [PASS] test_debit() (gas: 36831)
309
241
  [PASS] test_debit_Dust() (gas: 76272)
310
- [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 79420, ~: 79886)
242
+ [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 79311, ~: 79886)
311
243
  [PASS] test_debit_PushesFees() (gas: 101339)
312
244
  [PASS] test_debit_Revert_SlippageExceeded() (gas: 54229)
313
245
  [PASS] test_debit_SmallAmount_DustOnly() (gas: 76226)
314
246
  [PASS] test_debit_WithFee() (gas: 101145)
315
247
  [PASS] test_debit_WithFee_Dust() (gas: 102376)
316
- [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 105855, ~: 107585)
248
+ [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 105780, ~: 107585)
317
249
  [PASS] test_initialize() (gas: 22406)
318
250
  [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92778)
319
251
  [PASS] test_pause_unpause() (gas: 61117)
@@ -323,7 +255,7 @@ Ran 39 tests for test/OFTNativeExtendedRBAC.t.sol:OFTNativeExtendedRBACTest
323
255
  [PASS] test_quoteOFT_Paused() (gas: 56703)
324
256
  [PASS] test_quoteOFT_RateLimiterUsage() (gas: 97744)
325
257
  [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 160139)
326
- [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 137909, ~: 137703)
258
+ [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 137865, ~: 137703)
327
259
  [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84387)
328
260
  [PASS] test_rateLimit_Inflow() (gas: 87713)
329
261
  [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 80123)
@@ -338,9 +270,77 @@ Ran 39 tests for test/OFTNativeExtendedRBAC.t.sol:OFTNativeExtendedRBACTest
338
270
  [PASS] test_send_WithFee() (gas: 415240)
339
271
  [PASS] test_setFeeDeposit() (gas: 28425)
340
272
  [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22627)
341
- [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38910, ~: 39011)
273
+ [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38924, ~: 39011)
342
274
  [PASS] test_token() (gas: 13483)
343
- Suite result: ok. 39 passed; 0 failed; 0 skipped; finished in 1.08s (2.31s CPU time)
275
+ Suite result: ok. 39 passed; 0 failed; 0 skipped; finished in 564.02ms (1.39s CPU time)
276
+
277
+ Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACTest
278
+ [PASS] test_credit() (gas: 89871)
279
+ [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93053, ~: 93303)
280
+ [PASS] test_debit() (gas: 98327)
281
+ [PASS] test_debit_Dust() (gas: 139747)
282
+ [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 142665, ~: 143461)
283
+ [PASS] test_debit_PushesFees() (gas: 165796)
284
+ [PASS] test_debit_Revert_SlippageExceeded() (gas: 131894)
285
+ [PASS] test_debit_SmallAmount_DustOnly() (gas: 139811)
286
+ [PASS] test_debit_WithFee() (gas: 165270)
287
+ [PASS] test_debit_WithFee_Dust() (gas: 165884)
288
+ [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 169041, ~: 171204)
289
+ [PASS] test_initialize() (gas: 24722)
290
+ [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
291
+ [PASS] test_pause_unpause() (gas: 130467)
292
+ [PASS] test_quoteOFT() (gas: 70712)
293
+ [PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
294
+ [PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59195)
295
+ [PASS] test_quoteOFT_Paused() (gas: 56570)
296
+ [PASS] test_quoteOFT_RateLimiterUsage() (gas: 185657)
297
+ [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 233398)
298
+ [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 200500, ~: 200299)
299
+ [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84276)
300
+ [PASS] test_rateLimit_Inflow() (gas: 108736)
301
+ [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
302
+ [PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 179369)
303
+ [PASS] test_send() (gas: 400518)
304
+ [PASS] test_send_Revert_MsgInspection() (gas: 308871)
305
+ [PASS] test_send_WithFee() (gas: 477338)
306
+ [PASS] test_setFeeDeposit() (gas: 28359)
307
+ [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
308
+ [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38856, ~: 38967)
309
+ Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 590.23ms (1.55s CPU time)
310
+
311
+ Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACCrosschainTest
312
+ [PASS] test_credit() (gas: 89874)
313
+ [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93304, ~: 93306)
314
+ [PASS] test_debit() (gas: 98332)
315
+ [PASS] test_debit_Dust() (gas: 139763)
316
+ [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 142162, ~: 143477)
317
+ [PASS] test_debit_PushesFees() (gas: 165812)
318
+ [PASS] test_debit_Revert_SlippageExceeded() (gas: 131894)
319
+ [PASS] test_debit_SmallAmount_DustOnly() (gas: 139827)
320
+ [PASS] test_debit_WithFee() (gas: 165286)
321
+ [PASS] test_debit_WithFee_Dust() (gas: 165900)
322
+ [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 168441, ~: 171220)
323
+ [PASS] test_initialize() (gas: 24722)
324
+ [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
325
+ [PASS] test_pause_unpause() (gas: 130472)
326
+ [PASS] test_quoteOFT() (gas: 70712)
327
+ [PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
328
+ [PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59195)
329
+ [PASS] test_quoteOFT_Paused() (gas: 56570)
330
+ [PASS] test_quoteOFT_RateLimiterUsage() (gas: 185667)
331
+ [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 233430)
332
+ [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 200481, ~: 200315)
333
+ [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84276)
334
+ [PASS] test_rateLimit_Inflow() (gas: 108739)
335
+ [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
336
+ [PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 179385)
337
+ [PASS] test_send() (gas: 400527)
338
+ [PASS] test_send_Revert_MsgInspection() (gas: 308880)
339
+ [PASS] test_send_WithFee() (gas: 477358)
340
+ [PASS] test_setFeeDeposit() (gas: 28359)
341
+ [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
342
+ [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38832, ~: 38967)
343
+ Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 617.88ms (1.53s CPU time)
344
344
 
345
- Ran 9 test suites in 1.34s (9.33s CPU time): 292 tests passed, 0 failed, 0 skipped (292 total tests)
346
- ⏳ forge test: 56.267s
345
+ Ran 9 test suites in 728.23ms (4.95s CPU time): 292 tests passed, 0 failed, 0 skipped (292 total tests)
346
+ ⏳ forge test: 41.334s
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@layerzerolabs/oft-upgradeable-evm-contracts",
3
- "version": "0.2.123",
3
+ "version": "0.2.125",
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-upgradeable-evm-contracts": "0.2.123",
18
- "@layerzerolabs/oapp-evm-contracts": "0.2.123",
19
- "@layerzerolabs/oft-evm-contracts": "0.2.123",
20
- "@layerzerolabs/test-utils-evm-contracts": "0.2.123",
21
- "@layerzerolabs/solhint-configuration": "0.2.123",
22
- "@layerzerolabs/tsup-configuration": "0.2.123",
23
- "@layerzerolabs/typescript-configuration": "0.2.123",
24
- "@layerzerolabs/utils-evm-contracts": "0.2.123",
25
- "@layerzerolabs/utils-upgradeable-evm-contracts": "0.2.123",
26
- "@layerzerolabs/vm-tooling-evm": "0.2.123"
17
+ "@layerzerolabs/oapp-evm-contracts": "0.2.125",
18
+ "@layerzerolabs/oapp-upgradeable-evm-contracts": "0.2.125",
19
+ "@layerzerolabs/solhint-configuration": "0.2.125",
20
+ "@layerzerolabs/test-utils-evm-contracts": "0.2.125",
21
+ "@layerzerolabs/oft-evm-contracts": "0.2.125",
22
+ "@layerzerolabs/tsup-configuration": "0.2.125",
23
+ "@layerzerolabs/typescript-configuration": "0.2.125",
24
+ "@layerzerolabs/utils-evm-contracts": "0.2.125",
25
+ "@layerzerolabs/vm-tooling-evm": "0.2.125",
26
+ "@layerzerolabs/utils-upgradeable-evm-contracts": "0.2.125"
27
27
  },
28
28
  "publishConfig": {
29
29
  "access": "public",