@layerzerolabs/oft-upgradeable-evm-contracts 0.2.109 → 0.2.111

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:144326) [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 1cd7860736af4c0f3fd9ade8776191ca5a08c09663668a5b0378daa1cb662406
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: 10.527s
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:145034) [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 e788611ac0dce6c3456c6d7b688ca1a81e1adee49f8991cc851c81a2f3710f3a
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:23.193 (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:155475) [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 d50b784b3e98777d054579b41eec8e9be9016b6653d04f9eb1cbe71b6d958fb8
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: 34.895s
175
+ ⏳ hardhat compile --config /hardhat/hardhat.default.config.js --network tron-mainnet: 34.554s
@@ -5,107 +5,31 @@
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:86303) [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)
12
- Error response from daemon: No such image: 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3
13
- 📥 Pulling Docker image from: 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3
14
- $ docker pull 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3
15
- forge-1.3.6-hardhat-2.26.3-patch-3: Pulling from layerzerolabs/evm-tooling
16
- 86ec798129ac: Pulling fs layer
17
- eef7c391911c: Pulling fs layer
18
- cc2ecf4065b7: Pulling fs layer
19
- 5760fdd70374: Pulling fs layer
20
- c70db14240a1: Pulling fs layer
21
- 0cb2c6965bde: Pulling fs layer
22
- 885bca26f927: Pulling fs layer
23
- 8e167e77288f: Pulling fs layer
24
- 45d43cc973ba: Pulling fs layer
25
- 44c09156221f: Pulling fs layer
26
- f2fb700979ad: Pulling fs layer
27
- 2a1ced882ba9: Pulling fs layer
28
- 597168d5c38e: Pulling fs layer
29
- e431adaf232f: Pulling fs layer
30
- 36e15e3f2788: Pulling fs layer
31
- 86ec798129ac: Waiting
32
- 0cb2c6965bde: Waiting
33
- 885bca26f927: Waiting
34
- eef7c391911c: Waiting
35
- 5760fdd70374: Waiting
36
- cc2ecf4065b7: Waiting
37
- 8e167e77288f: Waiting
38
- c70db14240a1: Waiting
39
- f2fb700979ad: Waiting
40
- 2a1ced882ba9: Waiting
41
- 597168d5c38e: Waiting
42
- e431adaf232f: Waiting
43
- 44c09156221f: Waiting
44
- 45d43cc973ba: Waiting
45
- eef7c391911c: Download complete
46
- 86ec798129ac: Download complete
47
- c70db14240a1: Verifying Checksum
48
- c70db14240a1: Download complete
49
- 86ec798129ac: Pull complete
50
- eef7c391911c: Pull complete
51
- 5760fdd70374: Verifying Checksum
52
- 5760fdd70374: Download complete
53
- cc2ecf4065b7: Verifying Checksum
54
- cc2ecf4065b7: Download complete
55
- 8e167e77288f: Download complete
56
- 45d43cc973ba: Verifying Checksum
57
- 45d43cc973ba: Download complete
58
- 0cb2c6965bde: Verifying Checksum
59
- 0cb2c6965bde: Download complete
60
- cc2ecf4065b7: Pull complete
61
- 5760fdd70374: Pull complete
62
- c70db14240a1: Pull complete
63
- 44c09156221f: Verifying Checksum
64
- 44c09156221f: Download complete
65
- f2fb700979ad: Verifying Checksum
66
- f2fb700979ad: Download complete
67
- 597168d5c38e: Download complete
68
- 0cb2c6965bde: Pull complete
69
- 2a1ced882ba9: Verifying Checksum
70
- 2a1ced882ba9: Download complete
71
- 36e15e3f2788: Verifying Checksum
72
- 36e15e3f2788: Download complete
73
- 885bca26f927: Download complete
74
- e431adaf232f: Verifying Checksum
75
- e431adaf232f: Download complete
76
- 885bca26f927: Pull complete
77
- 8e167e77288f: Pull complete
78
- 45d43cc973ba: Pull complete
79
- 44c09156221f: Pull complete
80
- f2fb700979ad: Pull complete
81
- 2a1ced882ba9: Pull complete
82
- 597168d5c38e: Pull complete
83
- e431adaf232f: Pull complete
84
- 36e15e3f2788: Pull complete
85
- Digest: sha256:08b858b586759ec59f4df44c0bc5eac9f856a1eb32b6ce37f79f31a20a89ed52
86
- Status: Downloaded newer image for 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3
87
- 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3
88
- ✅ Successfully pulled: 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3
12
+ ✅ 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)
89
13
  👤 Running container as UID:GID 1001:1001
90
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
91
15
  Compiling 185 files with Solc 0.8.22
92
- Solc 0.8.22 finished in 63.95s
16
+ Solc 0.8.22 finished in 37.10s
93
17
  Compiler run successful!
94
18
 
95
19
  Ran 39 tests for test/OFTNativeExtendedRBAC.t.sol:OFTNativeExtendedRBACTest
96
20
  [PASS] test_approvalRequired() (gas: 13426)
97
21
  [PASS] test_credit() (gas: 62369)
98
- [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 65752, ~: 65954)
22
+ [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 65840, ~: 65954)
99
23
  [PASS] test_credit_Revert_CreditFailed() (gas: 91478)
100
24
  [PASS] test_debit() (gas: 36831)
101
25
  [PASS] test_debit_Dust() (gas: 76272)
102
- [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 79424, ~: 79886)
26
+ [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 79575, ~: 79886)
103
27
  [PASS] test_debit_PushesFees() (gas: 101339)
104
28
  [PASS] test_debit_Revert_SlippageExceeded() (gas: 54229)
105
29
  [PASS] test_debit_SmallAmount_DustOnly() (gas: 76226)
106
30
  [PASS] test_debit_WithFee() (gas: 101145)
107
31
  [PASS] test_debit_WithFee_Dust() (gas: 102376)
108
- [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 105795, ~: 107585)
32
+ [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 105552, ~: 107585)
109
33
  [PASS] test_initialize() (gas: 22406)
110
34
  [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92778)
111
35
  [PASS] test_pause_unpause() (gas: 61117)
@@ -115,7 +39,7 @@ Ran 39 tests for test/OFTNativeExtendedRBAC.t.sol:OFTNativeExtendedRBACTest
115
39
  [PASS] test_quoteOFT_Paused() (gas: 56703)
116
40
  [PASS] test_quoteOFT_RateLimiterUsage() (gas: 97744)
117
41
  [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 160139)
118
- [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 137888, ~: 137703)
42
+ [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 137856, ~: 137697)
119
43
  [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84387)
120
44
  [PASS] test_rateLimit_Inflow() (gas: 87713)
121
45
  [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 80123)
@@ -130,58 +54,57 @@ Ran 39 tests for test/OFTNativeExtendedRBAC.t.sol:OFTNativeExtendedRBACTest
130
54
  [PASS] test_send_WithFee() (gas: 415240)
131
55
  [PASS] test_setFeeDeposit() (gas: 28425)
132
56
  [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22627)
133
- [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38939, ~: 39011)
57
+ [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38915, ~: 39011)
134
58
  [PASS] test_token() (gas: 13483)
135
- Suite result: ok. 39 passed; 0 failed; 0 skipped; finished in 446.14ms (979.33ms CPU time)
59
+ Suite result: ok. 39 passed; 0 failed; 0 skipped; finished in 349.29ms (808.43ms CPU time)
136
60
 
137
- Ran 32 tests for test/OFTLockUnlockExtendedRBACAlt.t.sol:OFTLockUnlockExtendedRBACAltTest
138
- [PASS] test_credit() (gas: 91882)
139
- [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 95351, ~: 95314)
61
+ Ran 31 tests for test/OFTLockUnlockExtendedRBAC.t.sol:OFTLockUnlockExtendedRBACTest
62
+ [PASS] test_credit() (gas: 89882)
63
+ [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93089, ~: 93314)
140
64
  [PASS] test_debit() (gas: 113036)
141
- [PASS] test_debit_Dust() (gas: 137551)
142
- [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 139996, ~: 140423)
143
- [PASS] test_debit_PushesFees() (gas: 163342)
144
- [PASS] test_debit_Revert_SlippageExceeded() (gas: 133828)
145
- [PASS] test_debit_SmallAmount_DustOnly() (gas: 137513)
65
+ [PASS] test_debit_Dust() (gas: 135880)
66
+ [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 138471, ~: 138823)
67
+ [PASS] test_debit_PushesFees() (gas: 161342)
68
+ [PASS] test_debit_Revert_SlippageExceeded() (gas: 131850)
69
+ [PASS] test_debit_SmallAmount_DustOnly() (gas: 135931)
146
70
  [PASS] test_debit_WithFee() (gas: 163924)
147
- [PASS] test_debit_WithFee_Dust() (gas: 163430)
148
- [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 163696, ~: 162567)
149
- [PASS] test_initialize() (gas: 24656)
71
+ [PASS] test_debit_WithFee_Dust() (gas: 161430)
72
+ [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 161799, ~: 160967)
73
+ [PASS] test_initialize() (gas: 24678)
150
74
  [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92822)
151
- [PASS] test_pause_unpause() (gas: 145524)
75
+ [PASS] test_pause_unpause() (gas: 143924)
152
76
  [PASS] test_quoteOFT() (gas: 70757)
153
77
  [PASS] test_quoteOFT_GloballyDisabled() (gas: 80605)
154
- [PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59240)
78
+ [PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59262)
155
79
  [PASS] test_quoteOFT_Paused() (gas: 56637)
156
- [PASS] test_quoteOFT_RateLimiterUsage() (gas: 200448)
157
- [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 242784)
158
- [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 198098, ~: 197912)
159
- [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84299)
160
- [PASS] test_rateLimit_Inflow() (gas: 132710)
161
- [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 159652)
162
- [PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 176893)
163
- [PASS] test_send() (gas: 465637)
164
- [PASS] test_send_Revert_MsgInspection() (gas: 327696)
165
- [PASS] test_send_Revert_OnlyAltToken() (gas: 241148)
166
- [PASS] test_send_WithFee() (gas: 516566)
167
- [PASS] test_setFeeDeposit() (gas: 28423)
80
+ [PASS] test_quoteOFT_RateLimiterUsage() (gas: 198848)
81
+ [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 241184)
82
+ [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 196094, ~: 195912)
83
+ [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84321)
84
+ [PASS] test_rateLimit_Inflow() (gas: 130622)
85
+ [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157652)
86
+ [PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 174915)
87
+ [PASS] test_send() (gas: 418929)
88
+ [PASS] test_send_Revert_MsgInspection() (gas: 325718)
89
+ [PASS] test_send_WithFee() (gas: 474453)
90
+ [PASS] test_setFeeDeposit() (gas: 28337)
168
91
  [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22583)
169
- [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38940, ~: 39012)
170
- Suite result: ok. 32 passed; 0 failed; 0 skipped; finished in 451.73ms (1.21s CPU time)
92
+ [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38858, ~: 38945)
93
+ Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 378.75ms (1.20s CPU time)
171
94
 
172
95
  Ran 33 tests for test/OFTBurnSelfMintExtendedRBACAlt.t.sol:OFTBurnSelfMintExtendedRBACAltTest
173
96
  [PASS] test_credit() (gas: 89873)
174
- [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93239, ~: 93305)
97
+ [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93296, ~: 93305)
175
98
  [PASS] test_debit() (gas: 120710)
176
99
  [PASS] test_debit_Dust() (gas: 145216)
177
- [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 147738, ~: 148086)
100
+ [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 147153, ~: 148086)
178
101
  [PASS] test_debit_PushesFees() (gas: 165984)
179
102
  [PASS] test_debit_Revert_SlippageExceeded() (gas: 133872)
180
103
  [PASS] test_debit_SmallAmount_DustOnly() (gas: 145179)
181
104
  [PASS] test_debit_TokensTransferredToSelfThenBurned() (gas: 122500)
182
105
  [PASS] test_debit_WithFee() (gas: 166449)
183
106
  [PASS] test_debit_WithFee_Dust() (gas: 166055)
184
- [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 168454, ~: 170245)
107
+ [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 168193, ~: 170245)
185
108
  [PASS] test_initialize() (gas: 24700)
186
109
  [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
187
110
  [PASS] test_pause_unpause() (gas: 153198)
@@ -191,7 +114,7 @@ Ran 33 tests for test/OFTBurnSelfMintExtendedRBACAlt.t.sol:OFTBurnSelfMintExtend
191
114
  [PASS] test_quoteOFT_Paused() (gas: 56570)
192
115
  [PASS] test_quoteOFT_RateLimiterUsage() (gas: 243840)
193
116
  [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 270346)
194
- [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 193695, ~: 193524)
117
+ [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 193660, ~: 193521)
195
118
  [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84254)
196
119
  [PASS] test_rateLimit_Inflow() (gas: 108826)
197
120
  [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 159696)
@@ -202,55 +125,55 @@ Ran 33 tests for test/OFTBurnSelfMintExtendedRBACAlt.t.sol:OFTBurnSelfMintExtend
202
125
  [PASS] test_send_WithFee() (gas: 504694)
203
126
  [PASS] test_setFeeDeposit() (gas: 28445)
204
127
  [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
205
- [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38935, ~: 39034)
206
- Suite result: ok. 33 passed; 0 failed; 0 skipped; finished in 451.83ms (1.48s 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)
207
130
 
208
- Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACTest
209
- [PASS] test_credit() (gas: 89871)
210
- [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93141, ~: 93303)
211
- [PASS] test_debit() (gas: 98327)
212
- [PASS] test_debit_Dust() (gas: 139747)
213
- [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 142828, ~: 143461)
214
- [PASS] test_debit_PushesFees() (gas: 165796)
131
+ Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACRedeemIssueTest
132
+ [PASS] test_credit() (gas: 89907)
133
+ [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93227, ~: 93339)
134
+ [PASS] test_debit() (gas: 98305)
135
+ [PASS] test_debit_Dust() (gas: 139763)
136
+ [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 142563, ~: 143477)
137
+ [PASS] test_debit_PushesFees() (gas: 165812)
215
138
  [PASS] test_debit_Revert_SlippageExceeded() (gas: 131894)
216
- [PASS] test_debit_SmallAmount_DustOnly() (gas: 139811)
217
- [PASS] test_debit_WithFee() (gas: 165270)
218
- [PASS] test_debit_WithFee_Dust() (gas: 165884)
219
- [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 169141, ~: 171204)
139
+ [PASS] test_debit_SmallAmount_DustOnly() (gas: 139827)
140
+ [PASS] test_debit_WithFee() (gas: 165286)
141
+ [PASS] test_debit_WithFee_Dust() (gas: 165900)
142
+ [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 168522, ~: 171220)
220
143
  [PASS] test_initialize() (gas: 24722)
221
144
  [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
222
- [PASS] test_pause_unpause() (gas: 130467)
145
+ [PASS] test_pause_unpause() (gas: 130445)
223
146
  [PASS] test_quoteOFT() (gas: 70712)
224
147
  [PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
225
148
  [PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59195)
226
149
  [PASS] test_quoteOFT_Paused() (gas: 56570)
227
- [PASS] test_quoteOFT_RateLimiterUsage() (gas: 185657)
228
- [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 233398)
229
- [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 200456, ~: 200299)
150
+ [PASS] test_quoteOFT_RateLimiterUsage() (gas: 185614)
151
+ [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 233430)
152
+ [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 200519, ~: 200315)
230
153
  [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84276)
231
- [PASS] test_rateLimit_Inflow() (gas: 108736)
154
+ [PASS] test_rateLimit_Inflow() (gas: 108772)
232
155
  [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
233
- [PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 179369)
234
- [PASS] test_send() (gas: 400518)
235
- [PASS] test_send_Revert_MsgInspection() (gas: 308871)
236
- [PASS] test_send_WithFee() (gas: 477338)
156
+ [PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 179385)
157
+ [PASS] test_send() (gas: 400494)
158
+ [PASS] test_send_Revert_MsgInspection() (gas: 308847)
159
+ [PASS] test_send_WithFee() (gas: 477358)
237
160
  [PASS] test_setFeeDeposit() (gas: 28359)
238
161
  [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
239
- [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38855, ~: 38967)
240
- Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 462.61ms (1.48s 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)
241
164
 
242
165
  Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACCrosschainTest
243
166
  [PASS] test_credit() (gas: 89874)
244
- [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93055, ~: 93306)
167
+ [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 92970, ~: 93306)
245
168
  [PASS] test_debit() (gas: 98332)
246
169
  [PASS] test_debit_Dust() (gas: 139763)
247
- [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 142925, ~: 143477)
170
+ [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 142659, ~: 143477)
248
171
  [PASS] test_debit_PushesFees() (gas: 165812)
249
172
  [PASS] test_debit_Revert_SlippageExceeded() (gas: 131894)
250
173
  [PASS] test_debit_SmallAmount_DustOnly() (gas: 139827)
251
174
  [PASS] test_debit_WithFee() (gas: 165286)
252
175
  [PASS] test_debit_WithFee_Dust() (gas: 165900)
253
- [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 168800, ~: 171220)
176
+ [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 168954, ~: 171220)
254
177
  [PASS] test_initialize() (gas: 24722)
255
178
  [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
256
179
  [PASS] test_pause_unpause() (gas: 130472)
@@ -260,7 +183,7 @@ Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACCross
260
183
  [PASS] test_quoteOFT_Paused() (gas: 56570)
261
184
  [PASS] test_quoteOFT_RateLimiterUsage() (gas: 185667)
262
185
  [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 233430)
263
- [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 200486, ~: 200315)
186
+ [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 200487, ~: 200315)
264
187
  [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84276)
265
188
  [PASS] test_rateLimit_Inflow() (gas: 108739)
266
189
  [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
@@ -270,125 +193,91 @@ Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACCross
270
193
  [PASS] test_send_WithFee() (gas: 477358)
271
194
  [PASS] test_setFeeDeposit() (gas: 28359)
272
195
  [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
273
- [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38880, ~: 38967)
274
- Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 539.48ms (1.33s CPU time)
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)
275
198
 
276
- Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACRedeemIssueTest
277
- [PASS] test_credit() (gas: 89907)
278
- [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93126, ~: 93339)
279
- [PASS] test_debit() (gas: 98305)
280
- [PASS] test_debit_Dust() (gas: 139763)
281
- [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 142621, ~: 143477)
282
- [PASS] test_debit_PushesFees() (gas: 165812)
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)
283
206
  [PASS] test_debit_Revert_SlippageExceeded() (gas: 131894)
284
- [PASS] test_debit_SmallAmount_DustOnly() (gas: 139827)
285
- [PASS] test_debit_WithFee() (gas: 165286)
286
- [PASS] test_debit_WithFee_Dust() (gas: 165900)
287
- [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 168993, ~: 171220)
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)
288
211
  [PASS] test_initialize() (gas: 24722)
289
212
  [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
290
- [PASS] test_pause_unpause() (gas: 130445)
213
+ [PASS] test_pause_unpause() (gas: 130467)
291
214
  [PASS] test_quoteOFT() (gas: 70712)
292
215
  [PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
293
216
  [PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59195)
294
217
  [PASS] test_quoteOFT_Paused() (gas: 56570)
295
- [PASS] test_quoteOFT_RateLimiterUsage() (gas: 185614)
296
- [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 233430)
297
- [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 200494, ~: 200315)
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)
298
221
  [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84276)
299
- [PASS] test_rateLimit_Inflow() (gas: 108772)
222
+ [PASS] test_rateLimit_Inflow() (gas: 108736)
300
223
  [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
301
- [PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 179385)
302
- [PASS] test_send() (gas: 400494)
303
- [PASS] test_send_Revert_MsgInspection() (gas: 308847)
304
- [PASS] test_send_WithFee() (gas: 477358)
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)
305
228
  [PASS] test_setFeeDeposit() (gas: 28359)
306
229
  [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
307
- [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38875, ~: 38967)
308
- Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 576.03ms (1.74s CPU time)
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)
309
232
 
310
- Ran 31 tests for test/OFTLockUnlockExtendedRBAC.t.sol:OFTLockUnlockExtendedRBACTest
311
- [PASS] test_credit() (gas: 89882)
312
- [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93355, ~: 93314)
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)
313
236
  [PASS] test_debit() (gas: 113036)
314
- [PASS] test_debit_Dust() (gas: 135880)
315
- [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 137838, ~: 138823)
316
- [PASS] test_debit_PushesFees() (gas: 161342)
317
- [PASS] test_debit_Revert_SlippageExceeded() (gas: 131850)
318
- [PASS] test_debit_SmallAmount_DustOnly() (gas: 135931)
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)
319
242
  [PASS] test_debit_WithFee() (gas: 163924)
320
- [PASS] test_debit_WithFee_Dust() (gas: 161430)
321
- [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 161828, ~: 160967)
322
- [PASS] test_initialize() (gas: 24678)
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)
323
246
  [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92822)
324
- [PASS] test_pause_unpause() (gas: 143924)
247
+ [PASS] test_pause_unpause() (gas: 145524)
325
248
  [PASS] test_quoteOFT() (gas: 70757)
326
249
  [PASS] test_quoteOFT_GloballyDisabled() (gas: 80605)
327
- [PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59262)
250
+ [PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59240)
328
251
  [PASS] test_quoteOFT_Paused() (gas: 56637)
329
- [PASS] test_quoteOFT_RateLimiterUsage() (gas: 198848)
330
- [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 241184)
331
- [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 196089, ~: 195912)
332
- [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84321)
333
- [PASS] test_rateLimit_Inflow() (gas: 130622)
334
- [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157652)
335
- [PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 174915)
336
- [PASS] test_send() (gas: 418929)
337
- [PASS] test_send_Revert_MsgInspection() (gas: 325718)
338
- [PASS] test_send_WithFee() (gas: 474453)
339
- [PASS] test_setFeeDeposit() (gas: 28337)
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)
340
264
  [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22583)
341
- [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38877, ~: 38945)
342
- Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 576.10ms (1.31s CPU time)
343
-
344
- Ran 32 tests for test/OFTBurnMintExtendedRBACAlt.t.sol:OFTBurnMintExtendedRBACAltTest
345
- [PASS] test_credit() (gas: 89871)
346
- [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 92808, ~: 93303)
347
- [PASS] test_debit() (gas: 98327)
348
- [PASS] test_debit_Dust() (gas: 141836)
349
- [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 144373, ~: 145461)
350
- [PASS] test_debit_PushesFees() (gas: 167796)
351
- [PASS] test_debit_Revert_SlippageExceeded() (gas: 133872)
352
- [PASS] test_debit_SmallAmount_DustOnly() (gas: 141789)
353
- [PASS] test_debit_WithFee() (gas: 165270)
354
- [PASS] test_debit_WithFee_Dust() (gas: 167884)
355
- [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 171343, ~: 173204)
356
- [PASS] test_initialize() (gas: 24700)
357
- [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
358
- [PASS] test_pause_unpause() (gas: 132067)
359
- [PASS] test_quoteOFT() (gas: 70712)
360
- [PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
361
- [PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59173)
362
- [PASS] test_quoteOFT_Paused() (gas: 56570)
363
- [PASS] test_quoteOFT_RateLimiterUsage() (gas: 187257)
364
- [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 235398)
365
- [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 202509, ~: 202299)
366
- [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84254)
367
- [PASS] test_rateLimit_Inflow() (gas: 108824)
368
- [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 159696)
369
- [PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 181347)
370
- [PASS] test_send() (gas: 421733)
371
- [PASS] test_send_Revert_MsgInspection() (gas: 310849)
372
- [PASS] test_send_Revert_OnlyAltToken() (gas: 198819)
373
- [PASS] test_send_WithFee() (gas: 493959)
374
- [PASS] test_setFeeDeposit() (gas: 28445)
375
- [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
376
- [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38933, ~: 39034)
377
- Suite result: ok. 32 passed; 0 failed; 0 skipped; finished in 576.21ms (1.27s CPU time)
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)
378
267
 
379
268
  Ran 32 tests for test/OFTBurnSelfMintExtendedRBAC.t.sol:OFTBurnSelfMintExtendedRBACTest
380
269
  [PASS] test_credit() (gas: 89873)
381
- [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93142, ~: 93305)
270
+ [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93129, ~: 93305)
382
271
  [PASS] test_debit() (gas: 120710)
383
272
  [PASS] test_debit_Dust() (gas: 143616)
384
- [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 145955, ~: 146486)
273
+ [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 145817, ~: 146486)
385
274
  [PASS] test_debit_PushesFees() (gas: 164384)
386
275
  [PASS] test_debit_Revert_SlippageExceeded() (gas: 131872)
387
276
  [PASS] test_debit_SmallAmount_DustOnly() (gas: 143579)
388
277
  [PASS] test_debit_TokensTransferredToSelfThenBurned() (gas: 122517)
389
278
  [PASS] test_debit_WithFee() (gas: 166449)
390
279
  [PASS] test_debit_WithFee_Dust() (gas: 164455)
391
- [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 166620, ~: 168646)
280
+ [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 166826, ~: 168645)
392
281
  [PASS] test_initialize() (gas: 24700)
393
282
  [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
394
283
  [PASS] test_pause_unpause() (gas: 151598)
@@ -398,7 +287,7 @@ Ran 32 tests for test/OFTBurnSelfMintExtendedRBAC.t.sol:OFTBurnSelfMintExtendedR
398
287
  [PASS] test_quoteOFT_Paused() (gas: 56570)
399
288
  [PASS] test_quoteOFT_RateLimiterUsage() (gas: 242240)
400
289
  [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 268746)
401
- [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 192061, ~: 191921)
290
+ [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 192051, ~: 191921)
402
291
  [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84254)
403
292
  [PASS] test_rateLimit_Inflow() (gas: 108738)
404
293
  [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
@@ -408,8 +297,43 @@ Ran 32 tests for test/OFTBurnSelfMintExtendedRBAC.t.sol:OFTBurnSelfMintExtendedR
408
297
  [PASS] test_send_WithFee() (gas: 462592)
409
298
  [PASS] test_setFeeDeposit() (gas: 28445)
410
299
  [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
411
- [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38952, ~: 39034)
412
- Suite result: ok. 32 passed; 0 failed; 0 skipped; finished in 576.23ms (1.37s 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)
413
337
 
414
- Ran 9 test suites in 692.38ms (4.66s CPU time): 292 tests passed, 0 failed, 0 skipped (292 total tests)
415
- ⏳ forge test: 1:08.771 (m:ss.mmm)
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.109",
3
+ "version": "0.2.111",
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.109",
18
- "@layerzerolabs/oapp-upgradeable-evm-contracts": "0.2.109",
19
- "@layerzerolabs/solhint-configuration": "0.2.109",
20
- "@layerzerolabs/oft-evm-contracts": "0.2.109",
21
- "@layerzerolabs/test-utils-evm-contracts": "0.2.109",
22
- "@layerzerolabs/typescript-configuration": "0.2.109",
23
- "@layerzerolabs/utils-upgradeable-evm-contracts": "0.2.109",
24
- "@layerzerolabs/tsup-configuration": "0.2.109",
25
- "@layerzerolabs/utils-evm-contracts": "0.2.109",
26
- "@layerzerolabs/vm-tooling-evm": "0.2.109"
17
+ "@layerzerolabs/oapp-evm-contracts": "0.2.111",
18
+ "@layerzerolabs/oft-evm-contracts": "0.2.111",
19
+ "@layerzerolabs/oapp-upgradeable-evm-contracts": "0.2.111",
20
+ "@layerzerolabs/test-utils-evm-contracts": "0.2.111",
21
+ "@layerzerolabs/solhint-configuration": "0.2.111",
22
+ "@layerzerolabs/tsup-configuration": "0.2.111",
23
+ "@layerzerolabs/typescript-configuration": "0.2.111",
24
+ "@layerzerolabs/utils-upgradeable-evm-contracts": "0.2.111",
25
+ "@layerzerolabs/vm-tooling-evm": "0.2.111",
26
+ "@layerzerolabs/utils-evm-contracts": "0.2.111"
27
27
  },
28
28
  "publishConfig": {
29
29
  "access": "public",