@layerzerolabs/oft-upgradeable-evm-contracts 0.2.126 → 0.2.128

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-YsZ8Ol
14
+ 📦 Using scoped workspace: /tmp/lz-scoped-workspace-dWIDlk
15
15
  📦 Copied 13 workspace package source(s)
16
- 📦 No mini-workspace pruner configured; using unpruned package-level source copy fallback.
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.
16
+ 📦 No scoped-workspace pruner configured; using unpruned package-level source copy fallback.
17
+ (node:247567) [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-YsZ8Ol:/workspace
22
+ -v /tmp/lz-scoped-workspace-dWIDlk:/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 3ce9b60b8736ffa80f94f079c105795a94e33ad1b7a2be489a6fa3c94be04556
27
+ $ docker container rm 527f7f020c76b2ddb9beebcb6c141176cf6b34944b17cd3a93e3b2cbeb09b1ad
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-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
31
+ $ docker run --platform linux/amd64 --rm --add-host=host.docker.internal:host-gateway -e $'TS_NODE_COMPILER_OPTIONS={"module":"CommonJS","moduleResolution":"node"}' -e LOCAL_UID=1001 -e LOCAL_GID=1001 -v /tmp/lz-scoped-workspace-dWIDlk:/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: 8.815s
83
+ ⏳ hardhat compile --config /hardhat/hardhat.default.config.js: 12.317s
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-UFasGw
92
+ 📦 Using scoped workspace: /tmp/lz-scoped-workspace-8VgPiN
93
93
  📦 Copied 13 workspace package source(s)
94
- 📦 No mini-workspace pruner configured; using unpruned package-level source copy fallback.
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.
94
+ 📦 No scoped-workspace pruner configured; using unpruned package-level source copy fallback.
95
+ (node:260960) [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-UFasGw:/workspace
100
+ -v /tmp/lz-scoped-workspace-8VgPiN:/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 9ad6cfc6edea7f3fd3810b601c405fb8dbf582e531a2c558f95eeaff50c094fe
105
+ $ docker container rm a1c0e18b2f55c9718eaa633dce55cb2c92a6a8374c2e8bf759e80b1988518a9b
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-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
109
+ $ docker run --platform linux/amd64 --rm --add-host=host.docker.internal:host-gateway -e $'TS_NODE_COMPILER_OPTIONS={"module":"CommonJS","moduleResolution":"node"}' -e LOCAL_UID=1001 -e LOCAL_GID=1001 -v /tmp/lz-scoped-workspace-8VgPiN:/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:07.909 (m:ss.mmm)
115
+ ⏳ hardhat compile --config /hardhat/hardhat.default.config.js --network zksync-mainnet: 1:15.056 (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-4YQG9M
124
+ 📦 Using scoped workspace: /tmp/lz-scoped-workspace-MG1Xm3
125
125
  📦 Copied 13 workspace package source(s)
126
- 📦 No mini-workspace pruner configured; using unpruned package-level source copy fallback.
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.
126
+ 📦 No scoped-workspace pruner configured; using unpruned package-level source copy fallback.
127
+ (node:273381) [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-4YQG9M:/workspace
132
+ -v /tmp/lz-scoped-workspace-MG1Xm3:/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 abffd848a90dee3135d0794d16c1ac9f26b0a11943a066d8e959eda7e72d7f19
137
+ $ docker container rm 20b74f19078de1b94fccb02dff2051974c9cc3ee08ebefa8923e3c9953fb1262
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-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
141
+ $ docker run --platform linux/amd64 --rm --add-host=host.docker.internal:host-gateway -e $'TS_NODE_COMPILER_OPTIONS={"module":"CommonJS","moduleResolution":"node"}' -e LOCAL_UID=1001 -e LOCAL_GID=1001 -v /tmp/lz-scoped-workspace-MG1Xm3:/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: 25.497s
196
+ ⏳ hardhat compile --config /hardhat/hardhat.default.config.js --network tron-mainnet: 32.492s
@@ -4,37 +4,148 @@
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-oNDkcM
7
+ 📦 Using scoped workspace: /tmp/lz-scoped-workspace-oHdc4o
8
8
  📦 Copied 13 workspace package source(s)
9
- 📦 No mini-workspace pruner configured; using unpruned package-level source copy fallback.
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.
9
+ 📦 No scoped-workspace pruner configured; using unpruned package-level source copy fallback.
10
+ (node:221793) [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-oNDkcM:/workspace
15
+ -v /tmp/lz-scoped-workspace-oHdc4o:/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-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
21
+ $ docker run --rm --add-host=host.docker.internal:host-gateway -e LOCAL_UID=1001 -e LOCAL_GID=1001 -v /tmp/lz-scoped-workspace-oHdc4o:/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 38.16s
23
+ Solc 0.8.22 finished in 49.88s
24
24
  Compiler run successful!
25
25
 
26
+ Ran 39 tests for test/OFTNativeExtendedRBAC.t.sol:OFTNativeExtendedRBACTest
27
+ [PASS] test_approvalRequired() (gas: 13426)
28
+ [PASS] test_credit() (gas: 62369)
29
+ [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 65715, ~: 65954)
30
+ [PASS] test_credit_Revert_CreditFailed() (gas: 91478)
31
+ [PASS] test_debit() (gas: 36831)
32
+ [PASS] test_debit_Dust() (gas: 76272)
33
+ [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 79361, ~: 79886)
34
+ [PASS] test_debit_PushesFees() (gas: 101339)
35
+ [PASS] test_debit_Revert_SlippageExceeded() (gas: 54229)
36
+ [PASS] test_debit_SmallAmount_DustOnly() (gas: 76226)
37
+ [PASS] test_debit_WithFee() (gas: 101145)
38
+ [PASS] test_debit_WithFee_Dust() (gas: 102376)
39
+ [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 105718, ~: 107585)
40
+ [PASS] test_initialize() (gas: 22406)
41
+ [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92778)
42
+ [PASS] test_pause_unpause() (gas: 61117)
43
+ [PASS] test_quoteOFT() (gas: 70779)
44
+ [PASS] test_quoteOFT_GloballyDisabled() (gas: 80649)
45
+ [PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59220)
46
+ [PASS] test_quoteOFT_Paused() (gas: 56703)
47
+ [PASS] test_quoteOFT_RateLimiterUsage() (gas: 97744)
48
+ [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 160139)
49
+ [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 137884, ~: 137703)
50
+ [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84387)
51
+ [PASS] test_rateLimit_Inflow() (gas: 87713)
52
+ [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 80123)
53
+ [PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 116713)
54
+ [PASS] test_send() (gas: 352734)
55
+ [PASS] test_send_PushesFees() (gas: 415282)
56
+ [PASS] test_send_Revert_FeeTransferFailed() (gas: 157067)
57
+ [PASS] test_send_Revert_IncorrectMessageValue_TooHigh() (gas: 30287)
58
+ [PASS] test_send_Revert_IncorrectMessageValue_TooLow() (gas: 30257)
59
+ [PASS] test_send_Revert_IncorrectMessageValue_ZeroValue() (gas: 22753)
60
+ [PASS] test_send_Revert_MsgInspection() (gas: 221169)
61
+ [PASS] test_send_WithFee() (gas: 415240)
62
+ [PASS] test_setFeeDeposit() (gas: 28425)
63
+ [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22627)
64
+ [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38895, ~: 39011)
65
+ [PASS] test_token() (gas: 13483)
66
+ Suite result: ok. 39 passed; 0 failed; 0 skipped; finished in 505.43ms (1.15s CPU time)
67
+
68
+ Ran 31 tests for test/OFTLockUnlockExtendedRBAC.t.sol:OFTLockUnlockExtendedRBACTest
69
+ [PASS] test_credit() (gas: 89882)
70
+ [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93255, ~: 93314)
71
+ [PASS] test_debit() (gas: 113036)
72
+ [PASS] test_debit_Dust() (gas: 135880)
73
+ [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 138756, ~: 138823)
74
+ [PASS] test_debit_PushesFees() (gas: 161342)
75
+ [PASS] test_debit_Revert_SlippageExceeded() (gas: 131850)
76
+ [PASS] test_debit_SmallAmount_DustOnly() (gas: 135931)
77
+ [PASS] test_debit_WithFee() (gas: 163924)
78
+ [PASS] test_debit_WithFee_Dust() (gas: 161430)
79
+ [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 161364, ~: 160967)
80
+ [PASS] test_initialize() (gas: 24678)
81
+ [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92822)
82
+ [PASS] test_pause_unpause() (gas: 143924)
83
+ [PASS] test_quoteOFT() (gas: 70757)
84
+ [PASS] test_quoteOFT_GloballyDisabled() (gas: 80605)
85
+ [PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59262)
86
+ [PASS] test_quoteOFT_Paused() (gas: 56637)
87
+ [PASS] test_quoteOFT_RateLimiterUsage() (gas: 198848)
88
+ [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 241184)
89
+ [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 196075, ~: 195906)
90
+ [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84321)
91
+ [PASS] test_rateLimit_Inflow() (gas: 130622)
92
+ [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157652)
93
+ [PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 174915)
94
+ [PASS] test_send() (gas: 418929)
95
+ [PASS] test_send_Revert_MsgInspection() (gas: 325718)
96
+ [PASS] test_send_WithFee() (gas: 474453)
97
+ [PASS] test_setFeeDeposit() (gas: 28337)
98
+ [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22583)
99
+ [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38853, ~: 38945)
100
+ Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 523.83ms (1.75s CPU time)
101
+
102
+ Ran 32 tests for test/OFTLockUnlockExtendedRBACAlt.t.sol:OFTLockUnlockExtendedRBACAltTest
103
+ [PASS] test_credit() (gas: 91882)
104
+ [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 95091, ~: 95314)
105
+ [PASS] test_debit() (gas: 113036)
106
+ [PASS] test_debit_Dust() (gas: 137551)
107
+ [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 139944, ~: 140423)
108
+ [PASS] test_debit_PushesFees() (gas: 163342)
109
+ [PASS] test_debit_Revert_SlippageExceeded() (gas: 133828)
110
+ [PASS] test_debit_SmallAmount_DustOnly() (gas: 137513)
111
+ [PASS] test_debit_WithFee() (gas: 163924)
112
+ [PASS] test_debit_WithFee_Dust() (gas: 163430)
113
+ [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 163562, ~: 162567)
114
+ [PASS] test_initialize() (gas: 24656)
115
+ [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92822)
116
+ [PASS] test_pause_unpause() (gas: 145524)
117
+ [PASS] test_quoteOFT() (gas: 70757)
118
+ [PASS] test_quoteOFT_GloballyDisabled() (gas: 80605)
119
+ [PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59240)
120
+ [PASS] test_quoteOFT_Paused() (gas: 56637)
121
+ [PASS] test_quoteOFT_RateLimiterUsage() (gas: 200448)
122
+ [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 242784)
123
+ [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 198096, ~: 197912)
124
+ [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84299)
125
+ [PASS] test_rateLimit_Inflow() (gas: 132710)
126
+ [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 159652)
127
+ [PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 176893)
128
+ [PASS] test_send() (gas: 465637)
129
+ [PASS] test_send_Revert_MsgInspection() (gas: 327696)
130
+ [PASS] test_send_Revert_OnlyAltToken() (gas: 241148)
131
+ [PASS] test_send_WithFee() (gas: 516566)
132
+ [PASS] test_setFeeDeposit() (gas: 28423)
133
+ [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22583)
134
+ [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38959, ~: 39012)
135
+ Suite result: ok. 32 passed; 0 failed; 0 skipped; finished in 577.09ms (1.83s CPU time)
136
+
26
137
  Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACRedeemIssueTest
27
138
  [PASS] test_credit() (gas: 89907)
28
- [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93138, ~: 93339)
139
+ [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93134, ~: 93339)
29
140
  [PASS] test_debit() (gas: 98305)
30
141
  [PASS] test_debit_Dust() (gas: 139763)
31
- [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 142434, ~: 143477)
142
+ [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 142779, ~: 143477)
32
143
  [PASS] test_debit_PushesFees() (gas: 165812)
33
144
  [PASS] test_debit_Revert_SlippageExceeded() (gas: 131894)
34
145
  [PASS] test_debit_SmallAmount_DustOnly() (gas: 139827)
35
146
  [PASS] test_debit_WithFee() (gas: 165286)
36
147
  [PASS] test_debit_WithFee_Dust() (gas: 165900)
37
- [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 168383, ~: 171220)
148
+ [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 168796, ~: 171220)
38
149
  [PASS] test_initialize() (gas: 24722)
39
150
  [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
40
151
  [PASS] test_pause_unpause() (gas: 130445)
@@ -44,7 +155,7 @@ Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACRedee
44
155
  [PASS] test_quoteOFT_Paused() (gas: 56570)
45
156
  [PASS] test_quoteOFT_RateLimiterUsage() (gas: 185614)
46
157
  [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 233430)
47
- [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 200499, ~: 200315)
158
+ [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 200477, ~: 200315)
48
159
  [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84276)
49
160
  [PASS] test_rateLimit_Inflow() (gas: 108772)
50
161
  [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
@@ -54,57 +165,22 @@ Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACRedee
54
165
  [PASS] test_send_WithFee() (gas: 477358)
55
166
  [PASS] test_setFeeDeposit() (gas: 28359)
56
167
  [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
-
60
- Ran 32 tests for test/OFTBurnSelfMintExtendedRBAC.t.sol:OFTBurnSelfMintExtendedRBACTest
61
- [PASS] test_credit() (gas: 89873)
62
- [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93343, ~: 93305)
63
- [PASS] test_debit() (gas: 120710)
64
- [PASS] test_debit_Dust() (gas: 143616)
65
- [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 145514, ~: 146486)
66
- [PASS] test_debit_PushesFees() (gas: 164384)
67
- [PASS] test_debit_Revert_SlippageExceeded() (gas: 131872)
68
- [PASS] test_debit_SmallAmount_DustOnly() (gas: 143579)
69
- [PASS] test_debit_TokensTransferredToSelfThenBurned() (gas: 122517)
70
- [PASS] test_debit_WithFee() (gas: 166449)
71
- [PASS] test_debit_WithFee_Dust() (gas: 164455)
72
- [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 166850, ~: 168648)
73
- [PASS] test_initialize() (gas: 24700)
74
- [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
75
- [PASS] test_pause_unpause() (gas: 151598)
76
- [PASS] test_quoteOFT() (gas: 70712)
77
- [PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
78
- [PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59173)
79
- [PASS] test_quoteOFT_Paused() (gas: 56570)
80
- [PASS] test_quoteOFT_RateLimiterUsage() (gas: 242240)
81
- [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 268746)
82
- [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 192068, ~: 191921)
83
- [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84254)
84
- [PASS] test_rateLimit_Inflow() (gas: 108738)
85
- [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
86
- [PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 175225)
87
- [PASS] test_send() (gas: 387136)
88
- [PASS] test_send_Revert_MsgInspection() (gas: 335267)
89
- [PASS] test_send_WithFee() (gas: 462592)
90
- [PASS] test_setFeeDeposit() (gas: 28445)
91
- [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
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)
168
+ [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38885, ~: 38967)
169
+ Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 577.16ms (1.19s CPU time)
94
170
 
95
171
  Ran 33 tests for test/OFTBurnSelfMintExtendedRBACAlt.t.sol:OFTBurnSelfMintExtendedRBACAltTest
96
172
  [PASS] test_credit() (gas: 89873)
97
- [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 92790, ~: 93305)
173
+ [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93125, ~: 93305)
98
174
  [PASS] test_debit() (gas: 120710)
99
175
  [PASS] test_debit_Dust() (gas: 145216)
100
- [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 147625, ~: 148086)
176
+ [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 147278, ~: 148086)
101
177
  [PASS] test_debit_PushesFees() (gas: 165984)
102
178
  [PASS] test_debit_Revert_SlippageExceeded() (gas: 133872)
103
179
  [PASS] test_debit_SmallAmount_DustOnly() (gas: 145179)
104
180
  [PASS] test_debit_TokensTransferredToSelfThenBurned() (gas: 122500)
105
181
  [PASS] test_debit_WithFee() (gas: 166449)
106
182
  [PASS] test_debit_WithFee_Dust() (gas: 166055)
107
- [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 168529, ~: 170245)
183
+ [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 168205, ~: 170243)
108
184
  [PASS] test_initialize() (gas: 24700)
109
185
  [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
110
186
  [PASS] test_pause_unpause() (gas: 153198)
@@ -114,7 +190,7 @@ Ran 33 tests for test/OFTBurnSelfMintExtendedRBACAlt.t.sol:OFTBurnSelfMintExtend
114
190
  [PASS] test_quoteOFT_Paused() (gas: 56570)
115
191
  [PASS] test_quoteOFT_RateLimiterUsage() (gas: 243840)
116
192
  [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 270346)
117
- [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 193678, ~: 193521)
193
+ [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 193671, ~: 193521)
118
194
  [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84254)
119
195
  [PASS] test_rateLimit_Inflow() (gas: 108826)
120
196
  [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 159696)
@@ -126,20 +202,20 @@ Ran 33 tests for test/OFTBurnSelfMintExtendedRBACAlt.t.sol:OFTBurnSelfMintExtend
126
202
  [PASS] test_setFeeDeposit() (gas: 28445)
127
203
  [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
128
204
  [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)
205
+ Suite result: ok. 33 passed; 0 failed; 0 skipped; finished in 581.41ms (1.84s CPU time)
130
206
 
131
207
  Ran 32 tests for test/OFTBurnMintExtendedRBACAlt.t.sol:OFTBurnMintExtendedRBACAltTest
132
208
  [PASS] test_credit() (gas: 89871)
133
- [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93022, ~: 93303)
209
+ [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93043, ~: 93303)
134
210
  [PASS] test_debit() (gas: 98327)
135
211
  [PASS] test_debit_Dust() (gas: 141836)
136
- [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 144662, ~: 145461)
212
+ [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 144449, ~: 145461)
137
213
  [PASS] test_debit_PushesFees() (gas: 167796)
138
214
  [PASS] test_debit_Revert_SlippageExceeded() (gas: 133872)
139
215
  [PASS] test_debit_SmallAmount_DustOnly() (gas: 141789)
140
216
  [PASS] test_debit_WithFee() (gas: 165270)
141
217
  [PASS] test_debit_WithFee_Dust() (gas: 167884)
142
- [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 170777, ~: 173204)
218
+ [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 171073, ~: 173204)
143
219
  [PASS] test_initialize() (gas: 24700)
144
220
  [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
145
221
  [PASS] test_pause_unpause() (gas: 132067)
@@ -149,7 +225,7 @@ Ran 32 tests for test/OFTBurnMintExtendedRBACAlt.t.sol:OFTBurnMintExtendedRBACAl
149
225
  [PASS] test_quoteOFT_Paused() (gas: 56570)
150
226
  [PASS] test_quoteOFT_RateLimiterUsage() (gas: 187257)
151
227
  [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 235398)
152
- [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 202498, ~: 202299)
228
+ [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 202480, ~: 202299)
153
229
  [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84254)
154
230
  [PASS] test_rateLimit_Inflow() (gas: 108824)
155
231
  [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 159696)
@@ -160,166 +236,56 @@ Ran 32 tests for test/OFTBurnMintExtendedRBACAlt.t.sol:OFTBurnMintExtendedRBACAl
160
236
  [PASS] test_send_WithFee() (gas: 493959)
161
237
  [PASS] test_setFeeDeposit() (gas: 28445)
162
238
  [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
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)
165
-
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)
200
-
201
- Ran 31 tests for test/OFTLockUnlockExtendedRBAC.t.sol:OFTLockUnlockExtendedRBACTest
202
- [PASS] test_credit() (gas: 89882)
203
- [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93068, ~: 93314)
204
- [PASS] test_debit() (gas: 113036)
205
- [PASS] test_debit_Dust() (gas: 135880)
206
- [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 138597, ~: 138823)
207
- [PASS] test_debit_PushesFees() (gas: 161342)
208
- [PASS] test_debit_Revert_SlippageExceeded() (gas: 131850)
209
- [PASS] test_debit_SmallAmount_DustOnly() (gas: 135931)
210
- [PASS] test_debit_WithFee() (gas: 163924)
211
- [PASS] test_debit_WithFee_Dust() (gas: 161430)
212
- [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 161979, ~: 160967)
213
- [PASS] test_initialize() (gas: 24678)
214
- [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92822)
215
- [PASS] test_pause_unpause() (gas: 143924)
216
- [PASS] test_quoteOFT() (gas: 70757)
217
- [PASS] test_quoteOFT_GloballyDisabled() (gas: 80605)
218
- [PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59262)
219
- [PASS] test_quoteOFT_Paused() (gas: 56637)
220
- [PASS] test_quoteOFT_RateLimiterUsage() (gas: 198848)
221
- [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 241184)
222
- [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 196087, ~: 195912)
223
- [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84321)
224
- [PASS] test_rateLimit_Inflow() (gas: 130622)
225
- [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157652)
226
- [PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 174915)
227
- [PASS] test_send() (gas: 418929)
228
- [PASS] test_send_Revert_MsgInspection() (gas: 325718)
229
- [PASS] test_send_WithFee() (gas: 474453)
230
- [PASS] test_setFeeDeposit() (gas: 28337)
231
- [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22583)
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)
234
-
235
- Ran 39 tests for test/OFTNativeExtendedRBAC.t.sol:OFTNativeExtendedRBACTest
236
- [PASS] test_approvalRequired() (gas: 13426)
237
- [PASS] test_credit() (gas: 62369)
238
- [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 65647, ~: 65954)
239
- [PASS] test_credit_Revert_CreditFailed() (gas: 91478)
240
- [PASS] test_debit() (gas: 36831)
241
- [PASS] test_debit_Dust() (gas: 76272)
242
- [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 79311, ~: 79886)
243
- [PASS] test_debit_PushesFees() (gas: 101339)
244
- [PASS] test_debit_Revert_SlippageExceeded() (gas: 54229)
245
- [PASS] test_debit_SmallAmount_DustOnly() (gas: 76226)
246
- [PASS] test_debit_WithFee() (gas: 101145)
247
- [PASS] test_debit_WithFee_Dust() (gas: 102376)
248
- [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 105780, ~: 107585)
249
- [PASS] test_initialize() (gas: 22406)
250
- [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92778)
251
- [PASS] test_pause_unpause() (gas: 61117)
252
- [PASS] test_quoteOFT() (gas: 70779)
253
- [PASS] test_quoteOFT_GloballyDisabled() (gas: 80649)
254
- [PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59220)
255
- [PASS] test_quoteOFT_Paused() (gas: 56703)
256
- [PASS] test_quoteOFT_RateLimiterUsage() (gas: 97744)
257
- [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 160139)
258
- [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 137865, ~: 137703)
259
- [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84387)
260
- [PASS] test_rateLimit_Inflow() (gas: 87713)
261
- [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 80123)
262
- [PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 116713)
263
- [PASS] test_send() (gas: 352734)
264
- [PASS] test_send_PushesFees() (gas: 415282)
265
- [PASS] test_send_Revert_FeeTransferFailed() (gas: 157067)
266
- [PASS] test_send_Revert_IncorrectMessageValue_TooHigh() (gas: 30287)
267
- [PASS] test_send_Revert_IncorrectMessageValue_TooLow() (gas: 30257)
268
- [PASS] test_send_Revert_IncorrectMessageValue_ZeroValue() (gas: 22753)
269
- [PASS] test_send_Revert_MsgInspection() (gas: 221169)
270
- [PASS] test_send_WithFee() (gas: 415240)
271
- [PASS] test_setFeeDeposit() (gas: 28425)
272
- [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22627)
273
- [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38924, ~: 39011)
274
- [PASS] test_token() (gas: 13483)
275
- Suite result: ok. 39 passed; 0 failed; 0 skipped; finished in 564.02ms (1.39s CPU time)
239
+ [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38928, ~: 39034)
240
+ Suite result: ok. 32 passed; 0 failed; 0 skipped; finished in 581.43ms (1.30s CPU time)
276
241
 
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)
242
+ Ran 32 tests for test/OFTBurnSelfMintExtendedRBAC.t.sol:OFTBurnSelfMintExtendedRBACTest
243
+ [PASS] test_credit() (gas: 89873)
244
+ [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93188, ~: 93305)
245
+ [PASS] test_debit() (gas: 120710)
246
+ [PASS] test_debit_Dust() (gas: 143616)
247
+ [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 146096, ~: 146486)
248
+ [PASS] test_debit_PushesFees() (gas: 164384)
249
+ [PASS] test_debit_Revert_SlippageExceeded() (gas: 131872)
250
+ [PASS] test_debit_SmallAmount_DustOnly() (gas: 143579)
251
+ [PASS] test_debit_TokensTransferredToSelfThenBurned() (gas: 122517)
252
+ [PASS] test_debit_WithFee() (gas: 166449)
253
+ [PASS] test_debit_WithFee_Dust() (gas: 164455)
254
+ [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 166341, ~: 168643)
255
+ [PASS] test_initialize() (gas: 24700)
290
256
  [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
291
- [PASS] test_pause_unpause() (gas: 130467)
257
+ [PASS] test_pause_unpause() (gas: 151598)
292
258
  [PASS] test_quoteOFT() (gas: 70712)
293
259
  [PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
294
- [PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59195)
260
+ [PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59173)
295
261
  [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)
262
+ [PASS] test_quoteOFT_RateLimiterUsage() (gas: 242240)
263
+ [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 268746)
264
+ [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 192060, ~: 191921)
265
+ [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84254)
266
+ [PASS] test_rateLimit_Inflow() (gas: 108738)
301
267
  [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)
268
+ [PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 175225)
269
+ [PASS] test_send() (gas: 387136)
270
+ [PASS] test_send_Revert_MsgInspection() (gas: 335267)
271
+ [PASS] test_send_WithFee() (gas: 462592)
272
+ [PASS] test_setFeeDeposit() (gas: 28445)
307
273
  [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)
274
+ [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38952, ~: 39034)
275
+ Suite result: ok. 32 passed; 0 failed; 0 skipped; finished in 584.76ms (1.54s CPU time)
310
276
 
311
277
  Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACCrosschainTest
312
278
  [PASS] test_credit() (gas: 89874)
313
- [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93304, ~: 93306)
279
+ [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93341, ~: 93306)
314
280
  [PASS] test_debit() (gas: 98332)
315
281
  [PASS] test_debit_Dust() (gas: 139763)
316
- [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 142162, ~: 143477)
282
+ [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 142498, ~: 143477)
317
283
  [PASS] test_debit_PushesFees() (gas: 165812)
318
284
  [PASS] test_debit_Revert_SlippageExceeded() (gas: 131894)
319
285
  [PASS] test_debit_SmallAmount_DustOnly() (gas: 139827)
320
286
  [PASS] test_debit_WithFee() (gas: 165286)
321
287
  [PASS] test_debit_WithFee_Dust() (gas: 165900)
322
- [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 168441, ~: 171220)
288
+ [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 169002, ~: 171220)
323
289
  [PASS] test_initialize() (gas: 24722)
324
290
  [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
325
291
  [PASS] test_pause_unpause() (gas: 130472)
@@ -329,7 +295,7 @@ Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACCross
329
295
  [PASS] test_quoteOFT_Paused() (gas: 56570)
330
296
  [PASS] test_quoteOFT_RateLimiterUsage() (gas: 185667)
331
297
  [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 233430)
332
- [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 200481, ~: 200315)
298
+ [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 200510, ~: 200315)
333
299
  [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84276)
334
300
  [PASS] test_rateLimit_Inflow() (gas: 108739)
335
301
  [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
@@ -339,8 +305,42 @@ Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACCross
339
305
  [PASS] test_send_WithFee() (gas: 477358)
340
306
  [PASS] test_setFeeDeposit() (gas: 28359)
341
307
  [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)
308
+ [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38904, ~: 38967)
309
+ Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 687.66ms (1.46s CPU time)
310
+
311
+ Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACTest
312
+ [PASS] test_credit() (gas: 89871)
313
+ [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93160, ~: 93303)
314
+ [PASS] test_debit() (gas: 98327)
315
+ [PASS] test_debit_Dust() (gas: 139747)
316
+ [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 142321, ~: 143461)
317
+ [PASS] test_debit_PushesFees() (gas: 165796)
318
+ [PASS] test_debit_Revert_SlippageExceeded() (gas: 131894)
319
+ [PASS] test_debit_SmallAmount_DustOnly() (gas: 139811)
320
+ [PASS] test_debit_WithFee() (gas: 165270)
321
+ [PASS] test_debit_WithFee_Dust() (gas: 165884)
322
+ [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 169019, ~: 171204)
323
+ [PASS] test_initialize() (gas: 24722)
324
+ [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
325
+ [PASS] test_pause_unpause() (gas: 130467)
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: 185657)
331
+ [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 233398)
332
+ [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 200468, ~: 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
+ [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
342
+ [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38875, ~: 38967)
343
+ Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 687.55ms (1.82s CPU time)
344
344
 
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
345
+ Ran 9 test suites in 814.72ms (5.31s CPU time): 292 tests passed, 0 failed, 0 skipped (292 total tests)
346
+ ⏳ forge test: 53.299s
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@layerzerolabs/oft-upgradeable-evm-contracts",
3
- "version": "0.2.126",
3
+ "version": "0.2.128",
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.126",
18
- "@layerzerolabs/oapp-upgradeable-evm-contracts": "0.2.126",
19
- "@layerzerolabs/solhint-configuration": "0.2.126",
20
- "@layerzerolabs/oft-evm-contracts": "0.2.126",
21
- "@layerzerolabs/test-utils-evm-contracts": "0.2.126",
22
- "@layerzerolabs/tsup-configuration": "0.2.126",
23
- "@layerzerolabs/typescript-configuration": "0.2.126",
24
- "@layerzerolabs/utils-upgradeable-evm-contracts": "0.2.126",
25
- "@layerzerolabs/utils-evm-contracts": "0.2.126",
26
- "@layerzerolabs/vm-tooling-evm": "0.2.126"
17
+ "@layerzerolabs/oapp-evm-contracts": "0.2.128",
18
+ "@layerzerolabs/test-utils-evm-contracts": "0.2.128",
19
+ "@layerzerolabs/oapp-upgradeable-evm-contracts": "0.2.128",
20
+ "@layerzerolabs/oft-evm-contracts": "0.2.128",
21
+ "@layerzerolabs/solhint-configuration": "0.2.128",
22
+ "@layerzerolabs/tsup-configuration": "0.2.128",
23
+ "@layerzerolabs/typescript-configuration": "0.2.128",
24
+ "@layerzerolabs/utils-evm-contracts": "0.2.128",
25
+ "@layerzerolabs/utils-upgradeable-evm-contracts": "0.2.128",
26
+ "@layerzerolabs/vm-tooling-evm": "0.2.128"
27
27
  },
28
28
  "publishConfig": {
29
29
  "access": "public",