@layerzerolabs/oft-upgradeable-evm-contracts 0.2.129 → 0.2.131

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 scoped workspace: /tmp/lz-scoped-workspace-dWIDlk
14
+ 📦 Using scoped workspace: /tmp/lz-scoped-workspace-TN3N6P
15
15
  📦 Copied 13 workspace package source(s)
16
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.
17
+ (node:188106) [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-scoped-workspace-dWIDlk:/workspace
22
+ -v /tmp/lz-scoped-workspace-TN3N6P:/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 527f7f020c76b2ddb9beebcb6c141176cf6b34944b17cd3a93e3b2cbeb09b1ad
27
+ $ docker container rm 809289316aeb9222cc2c51f50c7b4aa6359797ffdcea74051873fe45e15ca9a3
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-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
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-TN3N6P:/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: 12.317s
83
+ ⏳ hardhat compile --config /hardhat/hardhat.default.config.js: 10.863s
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 scoped workspace: /tmp/lz-scoped-workspace-8VgPiN
92
+ 📦 Using scoped workspace: /tmp/lz-scoped-workspace-ZwpByW
93
93
  📦 Copied 13 workspace package source(s)
94
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.
95
+ (node:191707) [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-scoped-workspace-8VgPiN:/workspace
100
+ -v /tmp/lz-scoped-workspace-ZwpByW:/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 a1c0e18b2f55c9718eaa633dce55cb2c92a6a8374c2e8bf759e80b1988518a9b
105
+ $ docker container rm 374a0ea4fdfc547e81fbe0066f15d2b5573cd91eff70f27e99e9629db03251f5
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-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
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-ZwpByW:/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:15.056 (m:ss.mmm)
115
+ ⏳ hardhat compile --config /hardhat/hardhat.default.config.js --network zksync-mainnet: 1:23.972 (m:ss.mmm)
116
116
   WARN  Issue while reading "/home/runner/work/monorepo-internal/monorepo-internal/.npmrc". Failed to replace env in config: ${NPM_TOKEN}
117
117
 
118
118
  > @layerzerolabs/oft-upgradeable-evm-contracts@0.0.0 compile:tron /home/runner/work/monorepo-internal/monorepo-internal/apps/oft-app/contracts/evm/upgradeable
@@ -121,27 +121,27 @@ Successfully compiled 76 Solidity files
121
121
   WARN  Issue while reading "/home/runner/work/monorepo-internal/monorepo-internal/.npmrc". Failed to replace env in config: ${NPM_TOKEN}
122
122
  ✅ forge-1.3.6-hardhat-2.26.3
123
123
  🔧 hardhat version: 2.26.3
124
- 📦 Using scoped workspace: /tmp/lz-scoped-workspace-MG1Xm3
124
+ 📦 Using scoped workspace: /tmp/lz-scoped-workspace-5AJi1J
125
125
  📦 Copied 13 workspace package source(s)
126
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.
127
+ (node:204027) [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-scoped-workspace-MG1Xm3:/workspace
132
+ -v /tmp/lz-scoped-workspace-5AJi1J:/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 20b74f19078de1b94fccb02dff2051974c9cc3ee08ebefa8923e3c9953fb1262
137
+ $ docker container rm b880d753b4c5051255293bdc34344c62435e9acc6ab81a7b3a109c7f95b7569c
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-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
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-5AJi1J:/workspace -v /home/runner/work/monorepo-internal/monorepo-internal/apps/oft-app/contracts/evm/upgradeable:/workspace/apps/oft-app/contracts/evm/upgradeable -v /home/runner/work/monorepo-internal/monorepo-internal/node_modules/.pnpm:/workspace/node_modules/.pnpm:ro -w /workspace/apps/oft-app/contracts/evm/upgradeable 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3 hardhat compile --config /hardhat/hardhat.default.config.js --network tron-mainnet
142
142
  detected tron network, replacing deployments extension with custom one
143
- Tron-solc v0.8.23 is unknown version, attempting anyway...
144
143
  Compiling contracts with tron solc v0.8.23
144
+ Tron-solc v0.8.23 is unknown version, attempting anyway...
145
145
  Compiling 76 Solidity files
146
146
  Warning: Contract code size is 29971 bytes and exceeds 24576 bytes (a limit introduced in Spurious Dragon). This contract may not be deployable on Mainnet. Consider enabling the optimizer (with a low "runs" value!), turning off revert strings, or using libraries.
147
147
  --> contracts/extended/OFTBurnMintExtendedRBACUpgradeable.sol:28:1:
@@ -193,4 +193,4 @@ Warning: Contract code size is 29394 bytes and exceeds 24576 bytes (a limit intr
193
193
 
194
194
 
195
195
  Successfully compiled 76 Solidity files
196
- ⏳ hardhat compile --config /hardhat/hardhat.default.config.js --network tron-mainnet: 32.492s
196
+ ⏳ hardhat compile --config /hardhat/hardhat.default.config.js --network tron-mainnet: 36.921s
@@ -4,39 +4,39 @@
4
4
 
5
5
  ✅ forge-1.3.6-hardhat-2.26.3
6
6
  🔧 forge version: 1.3.6
7
- 📦 Using scoped workspace: /tmp/lz-scoped-workspace-oHdc4o
7
+ 📦 Using scoped workspace: /tmp/lz-scoped-workspace-w1LVr7
8
8
  📦 Copied 13 workspace package source(s)
9
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.
10
+ 📦 Docker volumes:
11
+ (node:199324) [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
12
  Reparsing as ES module because module syntax was detected. This incurs a performance overhead.
12
13
  To eliminate this warning, add "type": "module" to /home/runner/work/monorepo-internal/monorepo-internal/package.json.
13
14
  (Use `node --trace-warnings ...` to show where the warning was created)
14
- 📦 Docker volumes:
15
- -v /tmp/lz-scoped-workspace-oHdc4o:/workspace
15
+ -v /tmp/lz-scoped-workspace-w1LVr7:/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-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
21
+ $ docker run --rm --add-host=host.docker.internal:host-gateway -e LOCAL_UID=1001 -e LOCAL_GID=1001 -v /tmp/lz-scoped-workspace-w1LVr7:/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 49.88s
23
+ Solc 0.8.22 finished in 67.48s
24
24
  Compiler run successful!
25
25
 
26
26
  Ran 39 tests for test/OFTNativeExtendedRBAC.t.sol:OFTNativeExtendedRBACTest
27
27
  [PASS] test_approvalRequired() (gas: 13426)
28
28
  [PASS] test_credit() (gas: 62369)
29
- [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 65715, ~: 65954)
29
+ [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 65792, ~: 65954)
30
30
  [PASS] test_credit_Revert_CreditFailed() (gas: 91478)
31
31
  [PASS] test_debit() (gas: 36831)
32
32
  [PASS] test_debit_Dust() (gas: 76272)
33
- [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 79361, ~: 79886)
33
+ [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 79534, ~: 79886)
34
34
  [PASS] test_debit_PushesFees() (gas: 101339)
35
35
  [PASS] test_debit_Revert_SlippageExceeded() (gas: 54229)
36
36
  [PASS] test_debit_SmallAmount_DustOnly() (gas: 76226)
37
37
  [PASS] test_debit_WithFee() (gas: 101145)
38
38
  [PASS] test_debit_WithFee_Dust() (gas: 102376)
39
- [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 105718, ~: 107585)
39
+ [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 105353, ~: 107585)
40
40
  [PASS] test_initialize() (gas: 22406)
41
41
  [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92778)
42
42
  [PASS] test_pause_unpause() (gas: 61117)
@@ -46,7 +46,7 @@ Ran 39 tests for test/OFTNativeExtendedRBAC.t.sol:OFTNativeExtendedRBACTest
46
46
  [PASS] test_quoteOFT_Paused() (gas: 56703)
47
47
  [PASS] test_quoteOFT_RateLimiterUsage() (gas: 97744)
48
48
  [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 160139)
49
- [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 137884, ~: 137703)
49
+ [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 137923, ~: 137703)
50
50
  [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84387)
51
51
  [PASS] test_rateLimit_Inflow() (gas: 87713)
52
52
  [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 80123)
@@ -61,22 +61,22 @@ Ran 39 tests for test/OFTNativeExtendedRBAC.t.sol:OFTNativeExtendedRBACTest
61
61
  [PASS] test_send_WithFee() (gas: 415240)
62
62
  [PASS] test_setFeeDeposit() (gas: 28425)
63
63
  [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22627)
64
- [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38895, ~: 39011)
64
+ [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38948, ~: 39011)
65
65
  [PASS] test_token() (gas: 13483)
66
- Suite result: ok. 39 passed; 0 failed; 0 skipped; finished in 505.43ms (1.15s CPU time)
66
+ Suite result: ok. 39 passed; 0 failed; 0 skipped; finished in 592.48ms (1.24s CPU time)
67
67
 
68
68
  Ran 31 tests for test/OFTLockUnlockExtendedRBAC.t.sol:OFTLockUnlockExtendedRBACTest
69
69
  [PASS] test_credit() (gas: 89882)
70
- [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93255, ~: 93314)
70
+ [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93190, ~: 93314)
71
71
  [PASS] test_debit() (gas: 113036)
72
72
  [PASS] test_debit_Dust() (gas: 135880)
73
- [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 138756, ~: 138823)
73
+ [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 138244, ~: 138823)
74
74
  [PASS] test_debit_PushesFees() (gas: 161342)
75
75
  [PASS] test_debit_Revert_SlippageExceeded() (gas: 131850)
76
76
  [PASS] test_debit_SmallAmount_DustOnly() (gas: 135931)
77
77
  [PASS] test_debit_WithFee() (gas: 163924)
78
78
  [PASS] test_debit_WithFee_Dust() (gas: 161430)
79
- [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 161364, ~: 160967)
79
+ [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 161805, ~: 160967)
80
80
  [PASS] test_initialize() (gas: 24678)
81
81
  [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92822)
82
82
  [PASS] test_pause_unpause() (gas: 143924)
@@ -86,7 +86,7 @@ Ran 31 tests for test/OFTLockUnlockExtendedRBAC.t.sol:OFTLockUnlockExtendedRBACT
86
86
  [PASS] test_quoteOFT_Paused() (gas: 56637)
87
87
  [PASS] test_quoteOFT_RateLimiterUsage() (gas: 198848)
88
88
  [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 241184)
89
- [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 196075, ~: 195906)
89
+ [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 196100, ~: 195912)
90
90
  [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84321)
91
91
  [PASS] test_rateLimit_Inflow() (gas: 130622)
92
92
  [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157652)
@@ -96,126 +96,56 @@ Ran 31 tests for test/OFTLockUnlockExtendedRBAC.t.sol:OFTLockUnlockExtendedRBACT
96
96
  [PASS] test_send_WithFee() (gas: 474453)
97
97
  [PASS] test_setFeeDeposit() (gas: 28337)
98
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)
99
+ [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38858, ~: 38945)
100
+ Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 592.60ms (1.86s CPU time)
101
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
-
137
- Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACRedeemIssueTest
138
- [PASS] test_credit() (gas: 89907)
139
- [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93134, ~: 93339)
140
- [PASS] test_debit() (gas: 98305)
141
- [PASS] test_debit_Dust() (gas: 139763)
142
- [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 142779, ~: 143477)
143
- [PASS] test_debit_PushesFees() (gas: 165812)
144
- [PASS] test_debit_Revert_SlippageExceeded() (gas: 131894)
145
- [PASS] test_debit_SmallAmount_DustOnly() (gas: 139827)
146
- [PASS] test_debit_WithFee() (gas: 165286)
147
- [PASS] test_debit_WithFee_Dust() (gas: 165900)
148
- [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 168796, ~: 171220)
149
- [PASS] test_initialize() (gas: 24722)
150
- [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
151
- [PASS] test_pause_unpause() (gas: 130445)
152
- [PASS] test_quoteOFT() (gas: 70712)
153
- [PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
154
- [PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59195)
155
- [PASS] test_quoteOFT_Paused() (gas: 56570)
156
- [PASS] test_quoteOFT_RateLimiterUsage() (gas: 185614)
157
- [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 233430)
158
- [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 200477, ~: 200315)
159
- [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84276)
160
- [PASS] test_rateLimit_Inflow() (gas: 108772)
161
- [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
162
- [PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 179385)
163
- [PASS] test_send() (gas: 400494)
164
- [PASS] test_send_Revert_MsgInspection() (gas: 308847)
165
- [PASS] test_send_WithFee() (gas: 477358)
166
- [PASS] test_setFeeDeposit() (gas: 28359)
167
- [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
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)
170
-
171
- Ran 33 tests for test/OFTBurnSelfMintExtendedRBACAlt.t.sol:OFTBurnSelfMintExtendedRBACAltTest
102
+ Ran 32 tests for test/OFTBurnSelfMintExtendedRBAC.t.sol:OFTBurnSelfMintExtendedRBACTest
172
103
  [PASS] test_credit() (gas: 89873)
173
- [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93125, ~: 93305)
104
+ [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93073, ~: 93305)
174
105
  [PASS] test_debit() (gas: 120710)
175
- [PASS] test_debit_Dust() (gas: 145216)
176
- [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 147278, ~: 148086)
177
- [PASS] test_debit_PushesFees() (gas: 165984)
178
- [PASS] test_debit_Revert_SlippageExceeded() (gas: 133872)
179
- [PASS] test_debit_SmallAmount_DustOnly() (gas: 145179)
180
- [PASS] test_debit_TokensTransferredToSelfThenBurned() (gas: 122500)
106
+ [PASS] test_debit_Dust() (gas: 143616)
107
+ [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 145813, ~: 146486)
108
+ [PASS] test_debit_PushesFees() (gas: 164384)
109
+ [PASS] test_debit_Revert_SlippageExceeded() (gas: 131872)
110
+ [PASS] test_debit_SmallAmount_DustOnly() (gas: 143579)
111
+ [PASS] test_debit_TokensTransferredToSelfThenBurned() (gas: 122517)
181
112
  [PASS] test_debit_WithFee() (gas: 166449)
182
- [PASS] test_debit_WithFee_Dust() (gas: 166055)
183
- [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 168205, ~: 170243)
113
+ [PASS] test_debit_WithFee_Dust() (gas: 164455)
114
+ [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 166877, ~: 168645)
184
115
  [PASS] test_initialize() (gas: 24700)
185
116
  [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
186
- [PASS] test_pause_unpause() (gas: 153198)
117
+ [PASS] test_pause_unpause() (gas: 151598)
187
118
  [PASS] test_quoteOFT() (gas: 70712)
188
119
  [PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
189
120
  [PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59173)
190
121
  [PASS] test_quoteOFT_Paused() (gas: 56570)
191
- [PASS] test_quoteOFT_RateLimiterUsage() (gas: 243840)
192
- [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 270346)
193
- [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 193671, ~: 193521)
122
+ [PASS] test_quoteOFT_RateLimiterUsage() (gas: 242240)
123
+ [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 268746)
124
+ [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 192075, ~: 191921)
194
125
  [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84254)
195
- [PASS] test_rateLimit_Inflow() (gas: 108826)
196
- [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 159696)
197
- [PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 176825)
198
- [PASS] test_send() (gas: 456534)
199
- [PASS] test_send_Revert_MsgInspection() (gas: 337267)
200
- [PASS] test_send_Revert_OnlyAltToken() (gas: 250697)
201
- [PASS] test_send_WithFee() (gas: 504694)
126
+ [PASS] test_rateLimit_Inflow() (gas: 108738)
127
+ [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
128
+ [PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 175225)
129
+ [PASS] test_send() (gas: 387136)
130
+ [PASS] test_send_Revert_MsgInspection() (gas: 335267)
131
+ [PASS] test_send_WithFee() (gas: 462592)
202
132
  [PASS] test_setFeeDeposit() (gas: 28445)
203
133
  [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
204
- [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38923, ~: 39034)
205
- Suite result: ok. 33 passed; 0 failed; 0 skipped; finished in 581.41ms (1.84s CPU time)
134
+ [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38952, ~: 39034)
135
+ Suite result: ok. 32 passed; 0 failed; 0 skipped; finished in 691.34ms (1.52s CPU time)
206
136
 
207
137
  Ran 32 tests for test/OFTBurnMintExtendedRBACAlt.t.sol:OFTBurnMintExtendedRBACAltTest
208
138
  [PASS] test_credit() (gas: 89871)
209
- [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93043, ~: 93303)
139
+ [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 92931, ~: 93303)
210
140
  [PASS] test_debit() (gas: 98327)
211
141
  [PASS] test_debit_Dust() (gas: 141836)
212
- [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 144449, ~: 145461)
142
+ [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 144492, ~: 145461)
213
143
  [PASS] test_debit_PushesFees() (gas: 167796)
214
144
  [PASS] test_debit_Revert_SlippageExceeded() (gas: 133872)
215
145
  [PASS] test_debit_SmallAmount_DustOnly() (gas: 141789)
216
146
  [PASS] test_debit_WithFee() (gas: 165270)
217
147
  [PASS] test_debit_WithFee_Dust() (gas: 167884)
218
- [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 171073, ~: 173204)
148
+ [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 170943, ~: 173204)
219
149
  [PASS] test_initialize() (gas: 24700)
220
150
  [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
221
151
  [PASS] test_pause_unpause() (gas: 132067)
@@ -225,7 +155,7 @@ Ran 32 tests for test/OFTBurnMintExtendedRBACAlt.t.sol:OFTBurnMintExtendedRBACAl
225
155
  [PASS] test_quoteOFT_Paused() (gas: 56570)
226
156
  [PASS] test_quoteOFT_RateLimiterUsage() (gas: 187257)
227
157
  [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 235398)
228
- [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 202480, ~: 202299)
158
+ [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 202490, ~: 202299)
229
159
  [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84254)
230
160
  [PASS] test_rateLimit_Inflow() (gas: 108824)
231
161
  [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 159696)
@@ -236,56 +166,126 @@ Ran 32 tests for test/OFTBurnMintExtendedRBACAlt.t.sol:OFTBurnMintExtendedRBACAl
236
166
  [PASS] test_send_WithFee() (gas: 493959)
237
167
  [PASS] test_setFeeDeposit() (gas: 28445)
238
168
  [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
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)
169
+ [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38952, ~: 39034)
170
+ Suite result: ok. 32 passed; 0 failed; 0 skipped; finished in 708.43ms (2.31s CPU time)
241
171
 
242
- Ran 32 tests for test/OFTBurnSelfMintExtendedRBAC.t.sol:OFTBurnSelfMintExtendedRBACTest
172
+ Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACTest
173
+ [PASS] test_credit() (gas: 89871)
174
+ [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93216, ~: 93303)
175
+ [PASS] test_debit() (gas: 98327)
176
+ [PASS] test_debit_Dust() (gas: 139747)
177
+ [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 142653, ~: 143461)
178
+ [PASS] test_debit_PushesFees() (gas: 165796)
179
+ [PASS] test_debit_Revert_SlippageExceeded() (gas: 131894)
180
+ [PASS] test_debit_SmallAmount_DustOnly() (gas: 139811)
181
+ [PASS] test_debit_WithFee() (gas: 165270)
182
+ [PASS] test_debit_WithFee_Dust() (gas: 165884)
183
+ [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 169521, ~: 171204)
184
+ [PASS] test_initialize() (gas: 24722)
185
+ [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
186
+ [PASS] test_pause_unpause() (gas: 130467)
187
+ [PASS] test_quoteOFT() (gas: 70712)
188
+ [PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
189
+ [PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59195)
190
+ [PASS] test_quoteOFT_Paused() (gas: 56570)
191
+ [PASS] test_quoteOFT_RateLimiterUsage() (gas: 185657)
192
+ [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 233398)
193
+ [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 200500, ~: 200299)
194
+ [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84276)
195
+ [PASS] test_rateLimit_Inflow() (gas: 108736)
196
+ [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
197
+ [PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 179369)
198
+ [PASS] test_send() (gas: 400518)
199
+ [PASS] test_send_Revert_MsgInspection() (gas: 308871)
200
+ [PASS] test_send_WithFee() (gas: 477338)
201
+ [PASS] test_setFeeDeposit() (gas: 28359)
202
+ [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
203
+ [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38871, ~: 38967)
204
+ Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 734.32ms (1.53s CPU time)
205
+
206
+ Ran 33 tests for test/OFTBurnSelfMintExtendedRBACAlt.t.sol:OFTBurnSelfMintExtendedRBACAltTest
243
207
  [PASS] test_credit() (gas: 89873)
244
- [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93188, ~: 93305)
208
+ [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 92999, ~: 93305)
245
209
  [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)
210
+ [PASS] test_debit_Dust() (gas: 145216)
211
+ [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 147031, ~: 148086)
212
+ [PASS] test_debit_PushesFees() (gas: 165984)
213
+ [PASS] test_debit_Revert_SlippageExceeded() (gas: 133872)
214
+ [PASS] test_debit_SmallAmount_DustOnly() (gas: 145179)
215
+ [PASS] test_debit_TokensTransferredToSelfThenBurned() (gas: 122500)
252
216
  [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)
217
+ [PASS] test_debit_WithFee_Dust() (gas: 166055)
218
+ [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 168388, ~: 170248)
255
219
  [PASS] test_initialize() (gas: 24700)
256
220
  [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
257
- [PASS] test_pause_unpause() (gas: 151598)
221
+ [PASS] test_pause_unpause() (gas: 153198)
258
222
  [PASS] test_quoteOFT() (gas: 70712)
259
223
  [PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
260
224
  [PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59173)
261
225
  [PASS] test_quoteOFT_Paused() (gas: 56570)
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)
226
+ [PASS] test_quoteOFT_RateLimiterUsage() (gas: 243840)
227
+ [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 270346)
228
+ [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 193678, ~: 193521)
265
229
  [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84254)
266
- [PASS] test_rateLimit_Inflow() (gas: 108738)
267
- [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
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)
230
+ [PASS] test_rateLimit_Inflow() (gas: 108826)
231
+ [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 159696)
232
+ [PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 176825)
233
+ [PASS] test_send() (gas: 456534)
234
+ [PASS] test_send_Revert_MsgInspection() (gas: 337267)
235
+ [PASS] test_send_Revert_OnlyAltToken() (gas: 250697)
236
+ [PASS] test_send_WithFee() (gas: 504694)
272
237
  [PASS] test_setFeeDeposit() (gas: 28445)
273
238
  [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
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)
239
+ [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38962, ~: 39034)
240
+ Suite result: ok. 33 passed; 0 failed; 0 skipped; finished in 765.82ms (2.36s CPU time)
241
+
242
+ Ran 32 tests for test/OFTLockUnlockExtendedRBACAlt.t.sol:OFTLockUnlockExtendedRBACAltTest
243
+ [PASS] test_credit() (gas: 91882)
244
+ [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 95154, ~: 95314)
245
+ [PASS] test_debit() (gas: 113036)
246
+ [PASS] test_debit_Dust() (gas: 137551)
247
+ [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 139782, ~: 141029)
248
+ [PASS] test_debit_PushesFees() (gas: 163342)
249
+ [PASS] test_debit_Revert_SlippageExceeded() (gas: 133828)
250
+ [PASS] test_debit_SmallAmount_DustOnly() (gas: 137513)
251
+ [PASS] test_debit_WithFee() (gas: 163924)
252
+ [PASS] test_debit_WithFee_Dust() (gas: 163430)
253
+ [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 163382, ~: 162567)
254
+ [PASS] test_initialize() (gas: 24656)
255
+ [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92822)
256
+ [PASS] test_pause_unpause() (gas: 145524)
257
+ [PASS] test_quoteOFT() (gas: 70757)
258
+ [PASS] test_quoteOFT_GloballyDisabled() (gas: 80605)
259
+ [PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59240)
260
+ [PASS] test_quoteOFT_Paused() (gas: 56637)
261
+ [PASS] test_quoteOFT_RateLimiterUsage() (gas: 200448)
262
+ [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 242784)
263
+ [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 198109, ~: 197912)
264
+ [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84299)
265
+ [PASS] test_rateLimit_Inflow() (gas: 132710)
266
+ [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 159652)
267
+ [PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 176893)
268
+ [PASS] test_send() (gas: 465637)
269
+ [PASS] test_send_Revert_MsgInspection() (gas: 327696)
270
+ [PASS] test_send_Revert_OnlyAltToken() (gas: 241148)
271
+ [PASS] test_send_WithFee() (gas: 516566)
272
+ [PASS] test_setFeeDeposit() (gas: 28423)
273
+ [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22583)
274
+ [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38925, ~: 39012)
275
+ Suite result: ok. 32 passed; 0 failed; 0 skipped; finished in 801.16ms (2.11s CPU time)
276
276
 
277
277
  Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACCrosschainTest
278
278
  [PASS] test_credit() (gas: 89874)
279
- [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93341, ~: 93306)
279
+ [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93190, ~: 93306)
280
280
  [PASS] test_debit() (gas: 98332)
281
281
  [PASS] test_debit_Dust() (gas: 139763)
282
- [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 142498, ~: 143477)
282
+ [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 142977, ~: 143477)
283
283
  [PASS] test_debit_PushesFees() (gas: 165812)
284
284
  [PASS] test_debit_Revert_SlippageExceeded() (gas: 131894)
285
285
  [PASS] test_debit_SmallAmount_DustOnly() (gas: 139827)
286
286
  [PASS] test_debit_WithFee() (gas: 165286)
287
287
  [PASS] test_debit_WithFee_Dust() (gas: 165900)
288
- [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 169002, ~: 171220)
288
+ [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 168552, ~: 171220)
289
289
  [PASS] test_initialize() (gas: 24722)
290
290
  [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
291
291
  [PASS] test_pause_unpause() (gas: 130472)
@@ -295,7 +295,7 @@ Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACCross
295
295
  [PASS] test_quoteOFT_Paused() (gas: 56570)
296
296
  [PASS] test_quoteOFT_RateLimiterUsage() (gas: 185667)
297
297
  [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 233430)
298
- [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 200510, ~: 200315)
298
+ [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 200489, ~: 200309)
299
299
  [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84276)
300
300
  [PASS] test_rateLimit_Inflow() (gas: 108739)
301
301
  [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
@@ -305,42 +305,42 @@ Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACCross
305
305
  [PASS] test_send_WithFee() (gas: 477358)
306
306
  [PASS] test_setFeeDeposit() (gas: 28359)
307
307
  [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
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)
308
+ [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38847, ~: 38967)
309
+ Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 833.52ms (1.93s CPU time)
310
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)
311
+ Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACRedeemIssueTest
312
+ [PASS] test_credit() (gas: 89907)
313
+ [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 92781, ~: 93339)
314
+ [PASS] test_debit() (gas: 98305)
315
+ [PASS] test_debit_Dust() (gas: 139763)
316
+ [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 142575, ~: 143477)
317
+ [PASS] test_debit_PushesFees() (gas: 165812)
318
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)
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, μ: 168808, ~: 171220)
323
323
  [PASS] test_initialize() (gas: 24722)
324
324
  [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
325
- [PASS] test_pause_unpause() (gas: 130467)
325
+ [PASS] test_pause_unpause() (gas: 130445)
326
326
  [PASS] test_quoteOFT() (gas: 70712)
327
327
  [PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
328
328
  [PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59195)
329
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)
330
+ [PASS] test_quoteOFT_RateLimiterUsage() (gas: 185614)
331
+ [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 233430)
332
+ [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 200491, ~: 200315)
333
333
  [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84276)
334
- [PASS] test_rateLimit_Inflow() (gas: 108736)
334
+ [PASS] test_rateLimit_Inflow() (gas: 108772)
335
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)
336
+ [PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 179385)
337
+ [PASS] test_send() (gas: 400494)
338
+ [PASS] test_send_Revert_MsgInspection() (gas: 308847)
339
+ [PASS] test_send_WithFee() (gas: 477358)
340
340
  [PASS] test_setFeeDeposit() (gas: 28359)
341
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)
342
+ [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38914, ~: 38967)
343
+ Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 861.23ms (2.15s CPU time)
344
344
 
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
345
+ Ran 9 test suites in 956.72ms (6.58s CPU time): 292 tests passed, 0 failed, 0 skipped (292 total tests)
346
+ ⏳ forge test: 1:12.197 (m:ss.mmm)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@layerzerolabs/oft-upgradeable-evm-contracts",
3
- "version": "0.2.129",
3
+ "version": "0.2.131",
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.129",
18
- "@layerzerolabs/oft-evm-contracts": "0.2.129",
19
- "@layerzerolabs/solhint-configuration": "0.2.129",
20
- "@layerzerolabs/oapp-upgradeable-evm-contracts": "0.2.129",
21
- "@layerzerolabs/test-utils-evm-contracts": "0.2.129",
22
- "@layerzerolabs/tsup-configuration": "0.2.129",
23
- "@layerzerolabs/typescript-configuration": "0.2.129",
24
- "@layerzerolabs/utils-evm-contracts": "0.2.129",
25
- "@layerzerolabs/utils-upgradeable-evm-contracts": "0.2.129",
26
- "@layerzerolabs/vm-tooling-evm": "0.2.129"
17
+ "@layerzerolabs/oapp-evm-contracts": "0.2.131",
18
+ "@layerzerolabs/oapp-upgradeable-evm-contracts": "0.2.131",
19
+ "@layerzerolabs/oft-evm-contracts": "0.2.131",
20
+ "@layerzerolabs/solhint-configuration": "0.2.131",
21
+ "@layerzerolabs/test-utils-evm-contracts": "0.2.131",
22
+ "@layerzerolabs/tsup-configuration": "0.2.131",
23
+ "@layerzerolabs/typescript-configuration": "0.2.131",
24
+ "@layerzerolabs/utils-evm-contracts": "0.2.131",
25
+ "@layerzerolabs/vm-tooling-evm": "0.2.131",
26
+ "@layerzerolabs/utils-upgradeable-evm-contracts": "0.2.131"
27
27
  },
28
28
  "publishConfig": {
29
29
  "access": "public",