@layerzerolabs/oft-upgradeable-evm-contracts 0.2.110 → 0.2.112

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.
@@ -12,12 +12,12 @@
12
12
  ✅ forge-1.3.6-hardhat-2.26.3
13
13
  🔧 hardhat version: 2.26.3
14
14
  $ 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
15
- (node:154402) [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.
15
+ (node:261492) [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
16
  Reparsing as ES module because module syntax was detected. This incurs a performance overhead.
17
17
  To eliminate this warning, add "type": "module" to /home/runner/work/monorepo-internal/monorepo-internal/package.json.
18
18
  (Use `node --trace-warnings ...` to show where the warning was created)
19
19
  $ docker container create --platform linux/amd64 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3 true
20
- $ docker container rm 8d6ccfdac9a843a5fe37b3df5e5be7eb40b82244754b8226540f1e93fe262b75
20
+ $ docker container rm 24f0dc34c77149e4fe9b2a536f2d067d804df6d29696d1e848adda74966dc127
21
21
  ✅ Using cached Docker image: 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3 (linux/amd64)
22
22
  👤 Running container as UID:GID 1001:1001
23
23
  🌍 Using 1 custom environment variable(s)
@@ -73,7 +73,7 @@ Warning: Contract code size is 27524 bytes and exceeds 24576 bytes (a limit intr
73
73
 
74
74
 
75
75
  Successfully compiled 76 Solidity files
76
- ⏳ hardhat compile --config /hardhat/hardhat.default.config.js: 11.175s
76
+ ⏳ hardhat compile --config /hardhat/hardhat.default.config.js: 12.906s
77
77
   WARN  Issue while reading "/home/runner/work/monorepo-internal/monorepo-internal/.npmrc". Failed to replace env in config: ${NPM_TOKEN}
78
78
 
79
79
  > @layerzerolabs/oft-upgradeable-evm-contracts@0.0.0 compile:zksync /home/runner/work/monorepo-internal/monorepo-internal/apps/oft-app/contracts/evm/upgradeable
@@ -83,12 +83,12 @@ Successfully compiled 76 Solidity files
83
83
  ✅ forge-1.3.6-hardhat-2.26.3
84
84
  🔧 hardhat version: 2.26.3
85
85
  $ 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
86
- (node:155228) [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.
86
+ (node:265633) [MODULE_TYPELESS_PACKAGE_JSON] Warning: Module type of file:///home/runner/work/monorepo-internal/monorepo-internal/configs/vm-tooling/values/docker-image-repo.ts is not specified and it doesn't parse as CommonJS.
87
87
  Reparsing as ES module because module syntax was detected. This incurs a performance overhead.
88
88
  To eliminate this warning, add "type": "module" to /home/runner/work/monorepo-internal/monorepo-internal/package.json.
89
89
  (Use `node --trace-warnings ...` to show where the warning was created)
90
90
  $ docker container create --platform linux/amd64 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3 true
91
- $ docker container rm 75a99feb480ea48d27c2d88bd6362be1b67446aa06d794e5e4058b4843f5b1a9
91
+ $ docker container rm 36e085bd5e012a0597007e23443aa01d607aa9a8a9b42e3213209d5de0e50239
92
92
  ✅ Using cached Docker image: 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3 (linux/amd64)
93
93
  👤 Running container as UID:GID 1001:1001
94
94
  🌍 Using 1 custom environment variable(s)
@@ -98,7 +98,7 @@ The zksolc compiler version in your Hardhat config file (1.3.22) is not the late
98
98
  Compiling contracts for ZKsync Era with zksolc v1.3.22 and zkvm-solc v0.8.23-1.0.1
99
99
  Compiling 76 Solidity files
100
100
  Successfully compiled 76 Solidity files
101
- ⏳ hardhat compile --config /hardhat/hardhat.default.config.js --network zksync-mainnet: 1:25.930 (m:ss.mmm)
101
+ ⏳ hardhat compile --config /hardhat/hardhat.default.config.js --network zksync-mainnet: 1:24.777 (m:ss.mmm)
102
102
   WARN  Issue while reading "/home/runner/work/monorepo-internal/monorepo-internal/.npmrc". Failed to replace env in config: ${NPM_TOKEN}
103
103
 
104
104
  > @layerzerolabs/oft-upgradeable-evm-contracts@0.0.0 compile:tron /home/runner/work/monorepo-internal/monorepo-internal/apps/oft-app/contracts/evm/upgradeable
@@ -108,19 +108,19 @@ Successfully compiled 76 Solidity files
108
108
  ✅ forge-1.3.6-hardhat-2.26.3
109
109
  🔧 hardhat version: 2.26.3
110
110
  $ 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
111
- (node:163578) [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.
111
+ (node:297148) [MODULE_TYPELESS_PACKAGE_JSON] Warning: Module type of file:///home/runner/work/monorepo-internal/monorepo-internal/configs/vm-tooling/values/docker-image-repo.ts is not specified and it doesn't parse as CommonJS.
112
112
  Reparsing as ES module because module syntax was detected. This incurs a performance overhead.
113
113
  To eliminate this warning, add "type": "module" to /home/runner/work/monorepo-internal/monorepo-internal/package.json.
114
114
  (Use `node --trace-warnings ...` to show where the warning was created)
115
115
  $ docker container create --platform linux/amd64 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3 true
116
- $ docker container rm 736fa0a2c4f6a1a56d98d69cbdbab0eec0d58b58102b4984a6529872506da54f
116
+ $ docker container rm 1a49579d8be6cfc83349b635f7976e505b3303a73f6b3a554eda8dcc05e6f7b1
117
117
  ✅ Using cached Docker image: 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3 (linux/amd64)
118
118
  👤 Running container as UID:GID 1001:1001
119
119
  🌍 Using 1 custom environment variable(s)
120
120
  $ docker run --platform linux/amd64 --rm --add-host=host.docker.internal:host-gateway -e $'TS_NODE_COMPILER_OPTIONS={"module":"CommonJS","moduleResolution":"node"}' -e LOCAL_UID=1001 -e LOCAL_GID=1001 -v /home/runner/work/monorepo-internal/monorepo-internal:/workspace -w /workspace/apps/oft-app/contracts/evm/upgradeable 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3 hardhat compile --config /hardhat/hardhat.default.config.js --network tron-mainnet
121
121
  detected tron network, replacing deployments extension with custom one
122
- Compiling contracts with tron solc v0.8.23
123
122
  Tron-solc v0.8.23 is unknown version, attempting anyway...
123
+ Compiling contracts with tron solc v0.8.23
124
124
  Compiling 76 Solidity files
125
125
  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.
126
126
  --> contracts/extended/OFTBurnMintExtendedRBACUpgradeable.sol:28:1:
@@ -172,4 +172,4 @@ Warning: Contract code size is 29394 bytes and exceeds 24576 bytes (a limit intr
172
172
 
173
173
 
174
174
  Successfully compiled 76 Solidity files
175
- ⏳ hardhat compile --config /hardhat/hardhat.default.config.js --network tron-mainnet: 37.458s
175
+ ⏳ hardhat compile --config /hardhat/hardhat.default.config.js --network tron-mainnet: 34.554s
@@ -5,7 +5,7 @@
5
5
  ✅ forge-1.3.6-hardhat-2.26.3
6
6
  🔧 forge version: 1.3.6
7
7
  $ 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
8
- (node:398289) [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.
8
+ (node:441846) [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
9
  Reparsing as ES module because module syntax was detected. This incurs a performance overhead.
10
10
  To eliminate this warning, add "type": "module" to /home/runner/work/monorepo-internal/monorepo-internal/package.json.
11
11
  (Use `node --trace-warnings ...` to show where the warning was created)
@@ -13,128 +13,23 @@ To eliminate this warning, add "type": "module" to /home/runner/work/monorepo-in
13
13
  👤 Running container as UID:GID 1001:1001
14
14
  $ docker run --rm --add-host=host.docker.internal:host-gateway -e LOCAL_UID=1001 -e LOCAL_GID=1001 -v /home/runner/work/monorepo-internal/monorepo-internal:/workspace -w /workspace/apps/oft-app/contracts/evm/upgradeable 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3 forge test
15
15
  Compiling 185 files with Solc 0.8.22
16
- Solc 0.8.22 finished in 48.09s
16
+ Solc 0.8.22 finished in 37.10s
17
17
  Compiler run successful!
18
18
 
19
- Ran 33 tests for test/OFTBurnSelfMintExtendedRBACAlt.t.sol:OFTBurnSelfMintExtendedRBACAltTest
20
- [PASS] test_credit() (gas: 89873)
21
- [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 92958, ~: 93305)
22
- [PASS] test_debit() (gas: 120710)
23
- [PASS] test_debit_Dust() (gas: 145216)
24
- [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 147618, ~: 148086)
25
- [PASS] test_debit_PushesFees() (gas: 165984)
26
- [PASS] test_debit_Revert_SlippageExceeded() (gas: 133872)
27
- [PASS] test_debit_SmallAmount_DustOnly() (gas: 145179)
28
- [PASS] test_debit_TokensTransferredToSelfThenBurned() (gas: 122500)
29
- [PASS] test_debit_WithFee() (gas: 166449)
30
- [PASS] test_debit_WithFee_Dust() (gas: 166055)
31
- [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 168411, ~: 170245)
32
- [PASS] test_initialize() (gas: 24700)
33
- [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
34
- [PASS] test_pause_unpause() (gas: 153198)
35
- [PASS] test_quoteOFT() (gas: 70712)
36
- [PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
37
- [PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59173)
38
- [PASS] test_quoteOFT_Paused() (gas: 56570)
39
- [PASS] test_quoteOFT_RateLimiterUsage() (gas: 243840)
40
- [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 270346)
41
- [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 193676, ~: 193521)
42
- [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84254)
43
- [PASS] test_rateLimit_Inflow() (gas: 108826)
44
- [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 159696)
45
- [PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 176825)
46
- [PASS] test_send() (gas: 456534)
47
- [PASS] test_send_Revert_MsgInspection() (gas: 337267)
48
- [PASS] test_send_Revert_OnlyAltToken() (gas: 250697)
49
- [PASS] test_send_WithFee() (gas: 504694)
50
- [PASS] test_setFeeDeposit() (gas: 28445)
51
- [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
52
- [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38942, ~: 39034)
53
- Suite result: ok. 33 passed; 0 failed; 0 skipped; finished in 960.19ms (3.01s CPU time)
54
-
55
- Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACCrosschainTest
56
- [PASS] test_credit() (gas: 89874)
57
- [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93156, ~: 93306)
58
- [PASS] test_debit() (gas: 98332)
59
- [PASS] test_debit_Dust() (gas: 139763)
60
- [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 142484, ~: 143477)
61
- [PASS] test_debit_PushesFees() (gas: 165812)
62
- [PASS] test_debit_Revert_SlippageExceeded() (gas: 131894)
63
- [PASS] test_debit_SmallAmount_DustOnly() (gas: 139827)
64
- [PASS] test_debit_WithFee() (gas: 165286)
65
- [PASS] test_debit_WithFee_Dust() (gas: 165900)
66
- [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 169271, ~: 171220)
67
- [PASS] test_initialize() (gas: 24722)
68
- [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
69
- [PASS] test_pause_unpause() (gas: 130472)
70
- [PASS] test_quoteOFT() (gas: 70712)
71
- [PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
72
- [PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59195)
73
- [PASS] test_quoteOFT_Paused() (gas: 56570)
74
- [PASS] test_quoteOFT_RateLimiterUsage() (gas: 185667)
75
- [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 233430)
76
- [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 200510, ~: 200315)
77
- [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84276)
78
- [PASS] test_rateLimit_Inflow() (gas: 108739)
79
- [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
80
- [PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 179385)
81
- [PASS] test_send() (gas: 400527)
82
- [PASS] test_send_Revert_MsgInspection() (gas: 308880)
83
- [PASS] test_send_WithFee() (gas: 477358)
84
- [PASS] test_setFeeDeposit() (gas: 28359)
85
- [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
86
- [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38890, ~: 38967)
87
- Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 993.54ms (2.94s CPU time)
88
-
89
- Ran 32 tests for test/OFTLockUnlockExtendedRBACAlt.t.sol:OFTLockUnlockExtendedRBACAltTest
90
- [PASS] test_credit() (gas: 91882)
91
- [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 94921, ~: 95314)
92
- [PASS] test_debit() (gas: 113036)
93
- [PASS] test_debit_Dust() (gas: 137551)
94
- [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 139958, ~: 140423)
95
- [PASS] test_debit_PushesFees() (gas: 163342)
96
- [PASS] test_debit_Revert_SlippageExceeded() (gas: 133828)
97
- [PASS] test_debit_SmallAmount_DustOnly() (gas: 137513)
98
- [PASS] test_debit_WithFee() (gas: 163924)
99
- [PASS] test_debit_WithFee_Dust() (gas: 163430)
100
- [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 163872, ~: 162567)
101
- [PASS] test_initialize() (gas: 24656)
102
- [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92822)
103
- [PASS] test_pause_unpause() (gas: 145524)
104
- [PASS] test_quoteOFT() (gas: 70757)
105
- [PASS] test_quoteOFT_GloballyDisabled() (gas: 80605)
106
- [PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59240)
107
- [PASS] test_quoteOFT_Paused() (gas: 56637)
108
- [PASS] test_quoteOFT_RateLimiterUsage() (gas: 200448)
109
- [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 242784)
110
- [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 198099, ~: 197912)
111
- [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84299)
112
- [PASS] test_rateLimit_Inflow() (gas: 132710)
113
- [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 159652)
114
- [PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 176893)
115
- [PASS] test_send() (gas: 465637)
116
- [PASS] test_send_Revert_MsgInspection() (gas: 327696)
117
- [PASS] test_send_Revert_OnlyAltToken() (gas: 241148)
118
- [PASS] test_send_WithFee() (gas: 516566)
119
- [PASS] test_setFeeDeposit() (gas: 28423)
120
- [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22583)
121
- [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38925, ~: 39012)
122
- Suite result: ok. 32 passed; 0 failed; 0 skipped; finished in 1.02s (3.01s CPU time)
123
-
124
19
  Ran 39 tests for test/OFTNativeExtendedRBAC.t.sol:OFTNativeExtendedRBACTest
125
20
  [PASS] test_approvalRequired() (gas: 13426)
126
21
  [PASS] test_credit() (gas: 62369)
127
- [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 65890, ~: 65954)
22
+ [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 65840, ~: 65954)
128
23
  [PASS] test_credit_Revert_CreditFailed() (gas: 91478)
129
24
  [PASS] test_debit() (gas: 36831)
130
25
  [PASS] test_debit_Dust() (gas: 76272)
131
- [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 79513, ~: 79886)
26
+ [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 79575, ~: 79886)
132
27
  [PASS] test_debit_PushesFees() (gas: 101339)
133
28
  [PASS] test_debit_Revert_SlippageExceeded() (gas: 54229)
134
29
  [PASS] test_debit_SmallAmount_DustOnly() (gas: 76226)
135
30
  [PASS] test_debit_WithFee() (gas: 101145)
136
31
  [PASS] test_debit_WithFee_Dust() (gas: 102376)
137
- [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 105988, ~: 107585)
32
+ [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 105552, ~: 107585)
138
33
  [PASS] test_initialize() (gas: 22406)
139
34
  [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92778)
140
35
  [PASS] test_pause_unpause() (gas: 61117)
@@ -144,7 +39,7 @@ Ran 39 tests for test/OFTNativeExtendedRBAC.t.sol:OFTNativeExtendedRBACTest
144
39
  [PASS] test_quoteOFT_Paused() (gas: 56703)
145
40
  [PASS] test_quoteOFT_RateLimiterUsage() (gas: 97744)
146
41
  [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 160139)
147
- [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 137881, ~: 137703)
42
+ [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 137856, ~: 137697)
148
43
  [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84387)
149
44
  [PASS] test_rateLimit_Inflow() (gas: 87713)
150
45
  [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 80123)
@@ -159,22 +54,22 @@ Ran 39 tests for test/OFTNativeExtendedRBAC.t.sol:OFTNativeExtendedRBACTest
159
54
  [PASS] test_send_WithFee() (gas: 415240)
160
55
  [PASS] test_setFeeDeposit() (gas: 28425)
161
56
  [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22627)
162
- [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38919, ~: 39011)
57
+ [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38915, ~: 39011)
163
58
  [PASS] test_token() (gas: 13483)
164
- Suite result: ok. 39 passed; 0 failed; 0 skipped; finished in 1.05s (2.38s CPU time)
59
+ Suite result: ok. 39 passed; 0 failed; 0 skipped; finished in 349.29ms (808.43ms CPU time)
165
60
 
166
61
  Ran 31 tests for test/OFTLockUnlockExtendedRBAC.t.sol:OFTLockUnlockExtendedRBACTest
167
62
  [PASS] test_credit() (gas: 89882)
168
- [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93086, ~: 93314)
63
+ [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93089, ~: 93314)
169
64
  [PASS] test_debit() (gas: 113036)
170
65
  [PASS] test_debit_Dust() (gas: 135880)
171
- [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 138492, ~: 138823)
66
+ [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 138471, ~: 138823)
172
67
  [PASS] test_debit_PushesFees() (gas: 161342)
173
68
  [PASS] test_debit_Revert_SlippageExceeded() (gas: 131850)
174
69
  [PASS] test_debit_SmallAmount_DustOnly() (gas: 135931)
175
70
  [PASS] test_debit_WithFee() (gas: 163924)
176
71
  [PASS] test_debit_WithFee_Dust() (gas: 161430)
177
- [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 161547, ~: 160967)
72
+ [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 161799, ~: 160967)
178
73
  [PASS] test_initialize() (gas: 24678)
179
74
  [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92822)
180
75
  [PASS] test_pause_unpause() (gas: 143924)
@@ -184,7 +79,7 @@ Ran 31 tests for test/OFTLockUnlockExtendedRBAC.t.sol:OFTLockUnlockExtendedRBACT
184
79
  [PASS] test_quoteOFT_Paused() (gas: 56637)
185
80
  [PASS] test_quoteOFT_RateLimiterUsage() (gas: 198848)
186
81
  [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 241184)
187
- [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 196097, ~: 195912)
82
+ [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 196094, ~: 195912)
188
83
  [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84321)
189
84
  [PASS] test_rateLimit_Inflow() (gas: 130622)
190
85
  [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157652)
@@ -195,89 +90,56 @@ Ran 31 tests for test/OFTLockUnlockExtendedRBAC.t.sol:OFTLockUnlockExtendedRBACT
195
90
  [PASS] test_setFeeDeposit() (gas: 28337)
196
91
  [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22583)
197
92
  [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38858, ~: 38945)
198
- Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 1.05s (2.74s CPU time)
199
-
200
- Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACTest
201
- [PASS] test_credit() (gas: 89871)
202
- [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93088, ~: 93303)
203
- [PASS] test_debit() (gas: 98327)
204
- [PASS] test_debit_Dust() (gas: 139747)
205
- [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 142191, ~: 143461)
206
- [PASS] test_debit_PushesFees() (gas: 165796)
207
- [PASS] test_debit_Revert_SlippageExceeded() (gas: 131894)
208
- [PASS] test_debit_SmallAmount_DustOnly() (gas: 139811)
209
- [PASS] test_debit_WithFee() (gas: 165270)
210
- [PASS] test_debit_WithFee_Dust() (gas: 165884)
211
- [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 168744, ~: 171204)
212
- [PASS] test_initialize() (gas: 24722)
213
- [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
214
- [PASS] test_pause_unpause() (gas: 130467)
215
- [PASS] test_quoteOFT() (gas: 70712)
216
- [PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
217
- [PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59195)
218
- [PASS] test_quoteOFT_Paused() (gas: 56570)
219
- [PASS] test_quoteOFT_RateLimiterUsage() (gas: 185657)
220
- [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 233398)
221
- [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 200458, ~: 200293)
222
- [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84276)
223
- [PASS] test_rateLimit_Inflow() (gas: 108736)
224
- [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
225
- [PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 179369)
226
- [PASS] test_send() (gas: 400518)
227
- [PASS] test_send_Revert_MsgInspection() (gas: 308871)
228
- [PASS] test_send_WithFee() (gas: 477338)
229
- [PASS] test_setFeeDeposit() (gas: 28359)
230
- [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
231
- [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38851, ~: 38967)
232
- Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 1.10s (3.51s CPU time)
93
+ Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 378.75ms (1.20s CPU time)
233
94
 
234
- Ran 32 tests for test/OFTBurnMintExtendedRBACAlt.t.sol:OFTBurnMintExtendedRBACAltTest
235
- [PASS] test_credit() (gas: 89871)
236
- [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93235, ~: 93303)
237
- [PASS] test_debit() (gas: 98327)
238
- [PASS] test_debit_Dust() (gas: 141836)
239
- [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 144475, ~: 145461)
240
- [PASS] test_debit_PushesFees() (gas: 167796)
95
+ Ran 33 tests for test/OFTBurnSelfMintExtendedRBACAlt.t.sol:OFTBurnSelfMintExtendedRBACAltTest
96
+ [PASS] test_credit() (gas: 89873)
97
+ [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93296, ~: 93305)
98
+ [PASS] test_debit() (gas: 120710)
99
+ [PASS] test_debit_Dust() (gas: 145216)
100
+ [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 147153, ~: 148086)
101
+ [PASS] test_debit_PushesFees() (gas: 165984)
241
102
  [PASS] test_debit_Revert_SlippageExceeded() (gas: 133872)
242
- [PASS] test_debit_SmallAmount_DustOnly() (gas: 141789)
243
- [PASS] test_debit_WithFee() (gas: 165270)
244
- [PASS] test_debit_WithFee_Dust() (gas: 167884)
245
- [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 171114, ~: 173204)
103
+ [PASS] test_debit_SmallAmount_DustOnly() (gas: 145179)
104
+ [PASS] test_debit_TokensTransferredToSelfThenBurned() (gas: 122500)
105
+ [PASS] test_debit_WithFee() (gas: 166449)
106
+ [PASS] test_debit_WithFee_Dust() (gas: 166055)
107
+ [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 168193, ~: 170245)
246
108
  [PASS] test_initialize() (gas: 24700)
247
109
  [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
248
- [PASS] test_pause_unpause() (gas: 132067)
110
+ [PASS] test_pause_unpause() (gas: 153198)
249
111
  [PASS] test_quoteOFT() (gas: 70712)
250
112
  [PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
251
113
  [PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59173)
252
114
  [PASS] test_quoteOFT_Paused() (gas: 56570)
253
- [PASS] test_quoteOFT_RateLimiterUsage() (gas: 187257)
254
- [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 235398)
255
- [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 202489, ~: 202299)
115
+ [PASS] test_quoteOFT_RateLimiterUsage() (gas: 243840)
116
+ [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 270346)
117
+ [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 193660, ~: 193521)
256
118
  [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84254)
257
- [PASS] test_rateLimit_Inflow() (gas: 108824)
119
+ [PASS] test_rateLimit_Inflow() (gas: 108826)
258
120
  [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 159696)
259
- [PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 181347)
260
- [PASS] test_send() (gas: 421733)
261
- [PASS] test_send_Revert_MsgInspection() (gas: 310849)
262
- [PASS] test_send_Revert_OnlyAltToken() (gas: 198819)
263
- [PASS] test_send_WithFee() (gas: 493959)
121
+ [PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 176825)
122
+ [PASS] test_send() (gas: 456534)
123
+ [PASS] test_send_Revert_MsgInspection() (gas: 337267)
124
+ [PASS] test_send_Revert_OnlyAltToken() (gas: 250697)
125
+ [PASS] test_send_WithFee() (gas: 504694)
264
126
  [PASS] test_setFeeDeposit() (gas: 28445)
265
127
  [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
266
- [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38952, ~: 39034)
267
- Suite result: ok. 32 passed; 0 failed; 0 skipped; finished in 1.11s (2.73s CPU time)
128
+ [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38957, ~: 39034)
129
+ Suite result: ok. 33 passed; 0 failed; 0 skipped; finished in 425.11ms (1.01s CPU time)
268
130
 
269
131
  Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACRedeemIssueTest
270
132
  [PASS] test_credit() (gas: 89907)
271
- [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93126, ~: 93339)
133
+ [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93227, ~: 93339)
272
134
  [PASS] test_debit() (gas: 98305)
273
135
  [PASS] test_debit_Dust() (gas: 139763)
274
- [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 142570, ~: 143477)
136
+ [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 142563, ~: 143477)
275
137
  [PASS] test_debit_PushesFees() (gas: 165812)
276
138
  [PASS] test_debit_Revert_SlippageExceeded() (gas: 131894)
277
139
  [PASS] test_debit_SmallAmount_DustOnly() (gas: 139827)
278
140
  [PASS] test_debit_WithFee() (gas: 165286)
279
141
  [PASS] test_debit_WithFee_Dust() (gas: 165900)
280
- [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 169389, ~: 171220)
142
+ [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 168522, ~: 171220)
281
143
  [PASS] test_initialize() (gas: 24722)
282
144
  [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
283
145
  [PASS] test_pause_unpause() (gas: 130445)
@@ -287,7 +149,7 @@ Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACRedee
287
149
  [PASS] test_quoteOFT_Paused() (gas: 56570)
288
150
  [PASS] test_quoteOFT_RateLimiterUsage() (gas: 185614)
289
151
  [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 233430)
290
- [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 200488, ~: 200315)
152
+ [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 200519, ~: 200315)
291
153
  [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84276)
292
154
  [PASS] test_rateLimit_Inflow() (gas: 108772)
293
155
  [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
@@ -297,22 +159,125 @@ Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACRedee
297
159
  [PASS] test_send_WithFee() (gas: 477358)
298
160
  [PASS] test_setFeeDeposit() (gas: 28359)
299
161
  [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
300
- [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38879, ~: 38967)
301
- Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 1.14s (2.65s CPU time)
162
+ [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38919, ~: 38967)
163
+ Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 456.73ms (1.20s CPU time)
164
+
165
+ Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACCrosschainTest
166
+ [PASS] test_credit() (gas: 89874)
167
+ [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 92970, ~: 93306)
168
+ [PASS] test_debit() (gas: 98332)
169
+ [PASS] test_debit_Dust() (gas: 139763)
170
+ [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 142659, ~: 143477)
171
+ [PASS] test_debit_PushesFees() (gas: 165812)
172
+ [PASS] test_debit_Revert_SlippageExceeded() (gas: 131894)
173
+ [PASS] test_debit_SmallAmount_DustOnly() (gas: 139827)
174
+ [PASS] test_debit_WithFee() (gas: 165286)
175
+ [PASS] test_debit_WithFee_Dust() (gas: 165900)
176
+ [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 168954, ~: 171220)
177
+ [PASS] test_initialize() (gas: 24722)
178
+ [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
179
+ [PASS] test_pause_unpause() (gas: 130472)
180
+ [PASS] test_quoteOFT() (gas: 70712)
181
+ [PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
182
+ [PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59195)
183
+ [PASS] test_quoteOFT_Paused() (gas: 56570)
184
+ [PASS] test_quoteOFT_RateLimiterUsage() (gas: 185667)
185
+ [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 233430)
186
+ [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 200487, ~: 200315)
187
+ [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84276)
188
+ [PASS] test_rateLimit_Inflow() (gas: 108739)
189
+ [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
190
+ [PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 179385)
191
+ [PASS] test_send() (gas: 400527)
192
+ [PASS] test_send_Revert_MsgInspection() (gas: 308880)
193
+ [PASS] test_send_WithFee() (gas: 477358)
194
+ [PASS] test_setFeeDeposit() (gas: 28359)
195
+ [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
196
+ [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38871, ~: 38967)
197
+ Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 456.79ms (1.03s CPU time)
198
+
199
+ Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACTest
200
+ [PASS] test_credit() (gas: 89871)
201
+ [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93281, ~: 93303)
202
+ [PASS] test_debit() (gas: 98327)
203
+ [PASS] test_debit_Dust() (gas: 139747)
204
+ [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 142614, ~: 143461)
205
+ [PASS] test_debit_PushesFees() (gas: 165796)
206
+ [PASS] test_debit_Revert_SlippageExceeded() (gas: 131894)
207
+ [PASS] test_debit_SmallAmount_DustOnly() (gas: 139811)
208
+ [PASS] test_debit_WithFee() (gas: 165270)
209
+ [PASS] test_debit_WithFee_Dust() (gas: 165884)
210
+ [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 168911, ~: 171204)
211
+ [PASS] test_initialize() (gas: 24722)
212
+ [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
213
+ [PASS] test_pause_unpause() (gas: 130467)
214
+ [PASS] test_quoteOFT() (gas: 70712)
215
+ [PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
216
+ [PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59195)
217
+ [PASS] test_quoteOFT_Paused() (gas: 56570)
218
+ [PASS] test_quoteOFT_RateLimiterUsage() (gas: 185657)
219
+ [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 233398)
220
+ [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 200468, ~: 200299)
221
+ [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84276)
222
+ [PASS] test_rateLimit_Inflow() (gas: 108736)
223
+ [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
224
+ [PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 179369)
225
+ [PASS] test_send() (gas: 400518)
226
+ [PASS] test_send_Revert_MsgInspection() (gas: 308871)
227
+ [PASS] test_send_WithFee() (gas: 477338)
228
+ [PASS] test_setFeeDeposit() (gas: 28359)
229
+ [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
230
+ [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38885, ~: 38967)
231
+ Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 458.81ms (1.09s CPU time)
232
+
233
+ Ran 32 tests for test/OFTLockUnlockExtendedRBACAlt.t.sol:OFTLockUnlockExtendedRBACAltTest
234
+ [PASS] test_credit() (gas: 91882)
235
+ [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 95148, ~: 95314)
236
+ [PASS] test_debit() (gas: 113036)
237
+ [PASS] test_debit_Dust() (gas: 137551)
238
+ [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 140073, ~: 141029)
239
+ [PASS] test_debit_PushesFees() (gas: 163342)
240
+ [PASS] test_debit_Revert_SlippageExceeded() (gas: 133828)
241
+ [PASS] test_debit_SmallAmount_DustOnly() (gas: 137513)
242
+ [PASS] test_debit_WithFee() (gas: 163924)
243
+ [PASS] test_debit_WithFee_Dust() (gas: 163430)
244
+ [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 163383, ~: 162567)
245
+ [PASS] test_initialize() (gas: 24656)
246
+ [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92822)
247
+ [PASS] test_pause_unpause() (gas: 145524)
248
+ [PASS] test_quoteOFT() (gas: 70757)
249
+ [PASS] test_quoteOFT_GloballyDisabled() (gas: 80605)
250
+ [PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59240)
251
+ [PASS] test_quoteOFT_Paused() (gas: 56637)
252
+ [PASS] test_quoteOFT_RateLimiterUsage() (gas: 200448)
253
+ [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 242784)
254
+ [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 198112, ~: 197912)
255
+ [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84299)
256
+ [PASS] test_rateLimit_Inflow() (gas: 132710)
257
+ [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 159652)
258
+ [PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 176893)
259
+ [PASS] test_send() (gas: 465637)
260
+ [PASS] test_send_Revert_MsgInspection() (gas: 327696)
261
+ [PASS] test_send_Revert_OnlyAltToken() (gas: 241148)
262
+ [PASS] test_send_WithFee() (gas: 516566)
263
+ [PASS] test_setFeeDeposit() (gas: 28423)
264
+ [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22583)
265
+ [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38896, ~: 39012)
266
+ Suite result: ok. 32 passed; 0 failed; 0 skipped; finished in 458.77ms (1.14s CPU time)
302
267
 
303
268
  Ran 32 tests for test/OFTBurnSelfMintExtendedRBAC.t.sol:OFTBurnSelfMintExtendedRBACTest
304
269
  [PASS] test_credit() (gas: 89873)
305
- [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 92857, ~: 93305)
270
+ [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93129, ~: 93305)
306
271
  [PASS] test_debit() (gas: 120710)
307
272
  [PASS] test_debit_Dust() (gas: 143616)
308
- [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 145653, ~: 146486)
273
+ [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 145817, ~: 146486)
309
274
  [PASS] test_debit_PushesFees() (gas: 164384)
310
275
  [PASS] test_debit_Revert_SlippageExceeded() (gas: 131872)
311
276
  [PASS] test_debit_SmallAmount_DustOnly() (gas: 143579)
312
277
  [PASS] test_debit_TokensTransferredToSelfThenBurned() (gas: 122517)
313
278
  [PASS] test_debit_WithFee() (gas: 166449)
314
279
  [PASS] test_debit_WithFee_Dust() (gas: 164455)
315
- [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 166986, ~: 168645)
280
+ [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 166826, ~: 168645)
316
281
  [PASS] test_initialize() (gas: 24700)
317
282
  [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
318
283
  [PASS] test_pause_unpause() (gas: 151598)
@@ -322,7 +287,7 @@ Ran 32 tests for test/OFTBurnSelfMintExtendedRBAC.t.sol:OFTBurnSelfMintExtendedR
322
287
  [PASS] test_quoteOFT_Paused() (gas: 56570)
323
288
  [PASS] test_quoteOFT_RateLimiterUsage() (gas: 242240)
324
289
  [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 268746)
325
- [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 192058, ~: 191921)
290
+ [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 192051, ~: 191921)
326
291
  [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84254)
327
292
  [PASS] test_rateLimit_Inflow() (gas: 108738)
328
293
  [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
@@ -332,8 +297,43 @@ Ran 32 tests for test/OFTBurnSelfMintExtendedRBAC.t.sol:OFTBurnSelfMintExtendedR
332
297
  [PASS] test_send_WithFee() (gas: 462592)
333
298
  [PASS] test_setFeeDeposit() (gas: 28445)
334
299
  [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
335
- [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38956, ~: 39034)
336
- Suite result: ok. 32 passed; 0 failed; 0 skipped; finished in 1.19s (3.64s CPU time)
300
+ [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38947, ~: 39034)
301
+ Suite result: ok. 32 passed; 0 failed; 0 skipped; finished in 458.81ms (1.02s CPU time)
302
+
303
+ Ran 32 tests for test/OFTBurnMintExtendedRBACAlt.t.sol:OFTBurnMintExtendedRBACAltTest
304
+ [PASS] test_credit() (gas: 89871)
305
+ [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93182, ~: 93303)
306
+ [PASS] test_debit() (gas: 98327)
307
+ [PASS] test_debit_Dust() (gas: 141836)
308
+ [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 145148, ~: 145461)
309
+ [PASS] test_debit_PushesFees() (gas: 167796)
310
+ [PASS] test_debit_Revert_SlippageExceeded() (gas: 133872)
311
+ [PASS] test_debit_SmallAmount_DustOnly() (gas: 141789)
312
+ [PASS] test_debit_WithFee() (gas: 165270)
313
+ [PASS] test_debit_WithFee_Dust() (gas: 167884)
314
+ [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 171221, ~: 173204)
315
+ [PASS] test_initialize() (gas: 24700)
316
+ [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
317
+ [PASS] test_pause_unpause() (gas: 132067)
318
+ [PASS] test_quoteOFT() (gas: 70712)
319
+ [PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
320
+ [PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59173)
321
+ [PASS] test_quoteOFT_Paused() (gas: 56570)
322
+ [PASS] test_quoteOFT_RateLimiterUsage() (gas: 187257)
323
+ [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 235398)
324
+ [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 202471, ~: 202299)
325
+ [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84254)
326
+ [PASS] test_rateLimit_Inflow() (gas: 108824)
327
+ [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 159696)
328
+ [PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 181347)
329
+ [PASS] test_send() (gas: 421733)
330
+ [PASS] test_send_Revert_MsgInspection() (gas: 310849)
331
+ [PASS] test_send_Revert_OnlyAltToken() (gas: 198819)
332
+ [PASS] test_send_WithFee() (gas: 493959)
333
+ [PASS] test_setFeeDeposit() (gas: 28445)
334
+ [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
335
+ [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38947, ~: 39034)
336
+ Suite result: ok. 32 passed; 0 failed; 0 skipped; finished in 476.55ms (1.43s CPU time)
337
337
 
338
- Ran 9 test suites in 1.37s (9.61s CPU time): 292 tests passed, 0 failed, 0 skipped (292 total tests)
339
- ⏳ forge test: 52.410s
338
+ Ran 9 test suites in 600.42ms (3.92s CPU time): 292 tests passed, 0 failed, 0 skipped (292 total tests)
339
+ ⏳ forge test: 39.604s
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@layerzerolabs/oft-upgradeable-evm-contracts",
3
- "version": "0.2.110",
3
+ "version": "0.2.112",
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.110",
18
- "@layerzerolabs/oapp-upgradeable-evm-contracts": "0.2.110",
19
- "@layerzerolabs/solhint-configuration": "0.2.110",
20
- "@layerzerolabs/oft-evm-contracts": "0.2.110",
21
- "@layerzerolabs/test-utils-evm-contracts": "0.2.110",
22
- "@layerzerolabs/tsup-configuration": "0.2.110",
23
- "@layerzerolabs/typescript-configuration": "0.2.110",
24
- "@layerzerolabs/utils-upgradeable-evm-contracts": "0.2.110",
25
- "@layerzerolabs/utils-evm-contracts": "0.2.110",
26
- "@layerzerolabs/vm-tooling-evm": "0.2.110"
17
+ "@layerzerolabs/oft-evm-contracts": "0.2.112",
18
+ "@layerzerolabs/oapp-evm-contracts": "0.2.112",
19
+ "@layerzerolabs/oapp-upgradeable-evm-contracts": "0.2.112",
20
+ "@layerzerolabs/solhint-configuration": "0.2.112",
21
+ "@layerzerolabs/test-utils-evm-contracts": "0.2.112",
22
+ "@layerzerolabs/tsup-configuration": "0.2.112",
23
+ "@layerzerolabs/typescript-configuration": "0.2.112",
24
+ "@layerzerolabs/utils-evm-contracts": "0.2.112",
25
+ "@layerzerolabs/utils-upgradeable-evm-contracts": "0.2.112",
26
+ "@layerzerolabs/vm-tooling-evm": "0.2.112"
27
27
  },
28
28
  "publishConfig": {
29
29
  "access": "public",