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

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:45999) [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: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.
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 4a20d1c5cabf79264d35af1b817a3fbeeaf311bdb9f0ababfcdb7a6fe09fc2b2
20
+ $ docker container rm 1cd7860736af4c0f3fd9ade8776191ca5a08c09663668a5b0378daa1cb662406
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.149s
76
+ ⏳ hardhat compile --config /hardhat/hardhat.default.config.js: 10.527s
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:48487) [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: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.
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 8cff310cf70587e8d237eece4d090af72cf17cf95016e2d8bf2813b64999f232
91
+ $ docker container rm e788611ac0dce6c3456c6d7b688ca1a81e1adee49f8991cc851c81a2f3710f3a
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:21.556 (m:ss.mmm)
101
+ ⏳ hardhat compile --config /hardhat/hardhat.default.config.js --network zksync-mainnet: 1:23.193 (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:71624) [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: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.
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 fc1e7de0646fa4a8a27f40256900d1a3f61166b6c3ecdf57fb91b625787b8f9a
116
+ $ docker container rm d50b784b3e98777d054579b41eec8e9be9016b6653d04f9eb1cbe71b6d958fb8
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
- Tron-solc v0.8.23 is unknown version, attempting anyway...
123
122
  Compiling contracts with tron solc v0.8.23
123
+ Tron-solc v0.8.23 is unknown version, attempting anyway...
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: 36.690s
175
+ ⏳ hardhat compile --config /hardhat/hardhat.default.config.js --network tron-mainnet: 34.895s
@@ -5,29 +5,147 @@
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:212808) [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: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.
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
- 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)
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
13
89
  👤 Running container as UID:GID 1001:1001
14
90
  $ 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
91
  Compiling 185 files with Solc 0.8.22
16
- Solc 0.8.22 finished in 57.16s
92
+ Solc 0.8.22 finished in 63.95s
17
93
  Compiler run successful!
18
94
 
95
+ Ran 39 tests for test/OFTNativeExtendedRBAC.t.sol:OFTNativeExtendedRBACTest
96
+ [PASS] test_approvalRequired() (gas: 13426)
97
+ [PASS] test_credit() (gas: 62369)
98
+ [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 65752, ~: 65954)
99
+ [PASS] test_credit_Revert_CreditFailed() (gas: 91478)
100
+ [PASS] test_debit() (gas: 36831)
101
+ [PASS] test_debit_Dust() (gas: 76272)
102
+ [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 79424, ~: 79886)
103
+ [PASS] test_debit_PushesFees() (gas: 101339)
104
+ [PASS] test_debit_Revert_SlippageExceeded() (gas: 54229)
105
+ [PASS] test_debit_SmallAmount_DustOnly() (gas: 76226)
106
+ [PASS] test_debit_WithFee() (gas: 101145)
107
+ [PASS] test_debit_WithFee_Dust() (gas: 102376)
108
+ [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 105795, ~: 107585)
109
+ [PASS] test_initialize() (gas: 22406)
110
+ [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92778)
111
+ [PASS] test_pause_unpause() (gas: 61117)
112
+ [PASS] test_quoteOFT() (gas: 70779)
113
+ [PASS] test_quoteOFT_GloballyDisabled() (gas: 80649)
114
+ [PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59220)
115
+ [PASS] test_quoteOFT_Paused() (gas: 56703)
116
+ [PASS] test_quoteOFT_RateLimiterUsage() (gas: 97744)
117
+ [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 160139)
118
+ [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 137888, ~: 137703)
119
+ [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84387)
120
+ [PASS] test_rateLimit_Inflow() (gas: 87713)
121
+ [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 80123)
122
+ [PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 116713)
123
+ [PASS] test_send() (gas: 352734)
124
+ [PASS] test_send_PushesFees() (gas: 415282)
125
+ [PASS] test_send_Revert_FeeTransferFailed() (gas: 157067)
126
+ [PASS] test_send_Revert_IncorrectMessageValue_TooHigh() (gas: 30287)
127
+ [PASS] test_send_Revert_IncorrectMessageValue_TooLow() (gas: 30257)
128
+ [PASS] test_send_Revert_IncorrectMessageValue_ZeroValue() (gas: 22753)
129
+ [PASS] test_send_Revert_MsgInspection() (gas: 221169)
130
+ [PASS] test_send_WithFee() (gas: 415240)
131
+ [PASS] test_setFeeDeposit() (gas: 28425)
132
+ [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22627)
133
+ [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38939, ~: 39011)
134
+ [PASS] test_token() (gas: 13483)
135
+ Suite result: ok. 39 passed; 0 failed; 0 skipped; finished in 446.14ms (979.33ms CPU time)
136
+
19
137
  Ran 32 tests for test/OFTLockUnlockExtendedRBACAlt.t.sol:OFTLockUnlockExtendedRBACAltTest
20
138
  [PASS] test_credit() (gas: 91882)
21
- [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 94912, ~: 95314)
139
+ [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 95351, ~: 95314)
22
140
  [PASS] test_debit() (gas: 113036)
23
141
  [PASS] test_debit_Dust() (gas: 137551)
24
- [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 140315, ~: 140423)
142
+ [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 139996, ~: 140423)
25
143
  [PASS] test_debit_PushesFees() (gas: 163342)
26
144
  [PASS] test_debit_Revert_SlippageExceeded() (gas: 133828)
27
145
  [PASS] test_debit_SmallAmount_DustOnly() (gas: 137513)
28
146
  [PASS] test_debit_WithFee() (gas: 163924)
29
147
  [PASS] test_debit_WithFee_Dust() (gas: 163430)
30
- [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 163608, ~: 162567)
148
+ [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 163696, ~: 162567)
31
149
  [PASS] test_initialize() (gas: 24656)
32
150
  [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92822)
33
151
  [PASS] test_pause_unpause() (gas: 145524)
@@ -37,7 +155,7 @@ Ran 32 tests for test/OFTLockUnlockExtendedRBACAlt.t.sol:OFTLockUnlockExtendedRB
37
155
  [PASS] test_quoteOFT_Paused() (gas: 56637)
38
156
  [PASS] test_quoteOFT_RateLimiterUsage() (gas: 200448)
39
157
  [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 242784)
40
- [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 198097, ~: 197912)
158
+ [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 198098, ~: 197912)
41
159
  [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84299)
42
160
  [PASS] test_rateLimit_Inflow() (gas: 132710)
43
161
  [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 159652)
@@ -48,21 +166,57 @@ Ran 32 tests for test/OFTLockUnlockExtendedRBACAlt.t.sol:OFTLockUnlockExtendedRB
48
166
  [PASS] test_send_WithFee() (gas: 516566)
49
167
  [PASS] test_setFeeDeposit() (gas: 28423)
50
168
  [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22583)
51
- [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38930, ~: 39012)
52
- Suite result: ok. 32 passed; 0 failed; 0 skipped; finished in 681.55ms (2.56s CPU time)
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)
171
+
172
+ Ran 33 tests for test/OFTBurnSelfMintExtendedRBACAlt.t.sol:OFTBurnSelfMintExtendedRBACAltTest
173
+ [PASS] test_credit() (gas: 89873)
174
+ [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93239, ~: 93305)
175
+ [PASS] test_debit() (gas: 120710)
176
+ [PASS] test_debit_Dust() (gas: 145216)
177
+ [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 147738, ~: 148086)
178
+ [PASS] test_debit_PushesFees() (gas: 165984)
179
+ [PASS] test_debit_Revert_SlippageExceeded() (gas: 133872)
180
+ [PASS] test_debit_SmallAmount_DustOnly() (gas: 145179)
181
+ [PASS] test_debit_TokensTransferredToSelfThenBurned() (gas: 122500)
182
+ [PASS] test_debit_WithFee() (gas: 166449)
183
+ [PASS] test_debit_WithFee_Dust() (gas: 166055)
184
+ [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 168454, ~: 170245)
185
+ [PASS] test_initialize() (gas: 24700)
186
+ [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
187
+ [PASS] test_pause_unpause() (gas: 153198)
188
+ [PASS] test_quoteOFT() (gas: 70712)
189
+ [PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
190
+ [PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59173)
191
+ [PASS] test_quoteOFT_Paused() (gas: 56570)
192
+ [PASS] test_quoteOFT_RateLimiterUsage() (gas: 243840)
193
+ [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 270346)
194
+ [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 193695, ~: 193524)
195
+ [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84254)
196
+ [PASS] test_rateLimit_Inflow() (gas: 108826)
197
+ [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 159696)
198
+ [PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 176825)
199
+ [PASS] test_send() (gas: 456534)
200
+ [PASS] test_send_Revert_MsgInspection() (gas: 337267)
201
+ [PASS] test_send_Revert_OnlyAltToken() (gas: 250697)
202
+ [PASS] test_send_WithFee() (gas: 504694)
203
+ [PASS] test_setFeeDeposit() (gas: 28445)
204
+ [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)
53
207
 
54
208
  Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACTest
55
209
  [PASS] test_credit() (gas: 89871)
56
- [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93132, ~: 93303)
210
+ [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93141, ~: 93303)
57
211
  [PASS] test_debit() (gas: 98327)
58
212
  [PASS] test_debit_Dust() (gas: 139747)
59
- [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 142570, ~: 143461)
213
+ [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 142828, ~: 143461)
60
214
  [PASS] test_debit_PushesFees() (gas: 165796)
61
215
  [PASS] test_debit_Revert_SlippageExceeded() (gas: 131894)
62
216
  [PASS] test_debit_SmallAmount_DustOnly() (gas: 139811)
63
217
  [PASS] test_debit_WithFee() (gas: 165270)
64
218
  [PASS] test_debit_WithFee_Dust() (gas: 165884)
65
- [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 168865, ~: 171204)
219
+ [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 169141, ~: 171204)
66
220
  [PASS] test_initialize() (gas: 24722)
67
221
  [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
68
222
  [PASS] test_pause_unpause() (gas: 130467)
@@ -72,7 +226,7 @@ Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACTest
72
226
  [PASS] test_quoteOFT_Paused() (gas: 56570)
73
227
  [PASS] test_quoteOFT_RateLimiterUsage() (gas: 185657)
74
228
  [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 233398)
75
- [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 200499, ~: 200299)
229
+ [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 200456, ~: 200299)
76
230
  [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84276)
77
231
  [PASS] test_rateLimit_Inflow() (gas: 108736)
78
232
  [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
@@ -82,124 +236,89 @@ Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACTest
82
236
  [PASS] test_send_WithFee() (gas: 477338)
83
237
  [PASS] test_setFeeDeposit() (gas: 28359)
84
238
  [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
85
- [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38875, ~: 38967)
86
- Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 689.27ms (1.49s CPU time)
87
-
88
- Ran 32 tests for test/OFTBurnMintExtendedRBACAlt.t.sol:OFTBurnMintExtendedRBACAltTest
89
- [PASS] test_credit() (gas: 89871)
90
- [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93087, ~: 93303)
91
- [PASS] test_debit() (gas: 98327)
92
- [PASS] test_debit_Dust() (gas: 141836)
93
- [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 144585, ~: 145461)
94
- [PASS] test_debit_PushesFees() (gas: 167796)
95
- [PASS] test_debit_Revert_SlippageExceeded() (gas: 133872)
96
- [PASS] test_debit_SmallAmount_DustOnly() (gas: 141789)
97
- [PASS] test_debit_WithFee() (gas: 165270)
98
- [PASS] test_debit_WithFee_Dust() (gas: 167884)
99
- [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 170401, ~: 173204)
100
- [PASS] test_initialize() (gas: 24700)
101
- [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
102
- [PASS] test_pause_unpause() (gas: 132067)
103
- [PASS] test_quoteOFT() (gas: 70712)
104
- [PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
105
- [PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59173)
106
- [PASS] test_quoteOFT_Paused() (gas: 56570)
107
- [PASS] test_quoteOFT_RateLimiterUsage() (gas: 187257)
108
- [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 235398)
109
- [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 202476, ~: 202299)
110
- [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84254)
111
- [PASS] test_rateLimit_Inflow() (gas: 108824)
112
- [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 159696)
113
- [PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 181347)
114
- [PASS] test_send() (gas: 421733)
115
- [PASS] test_send_Revert_MsgInspection() (gas: 310849)
116
- [PASS] test_send_Revert_OnlyAltToken() (gas: 198819)
117
- [PASS] test_send_WithFee() (gas: 493959)
118
- [PASS] test_setFeeDeposit() (gas: 28445)
119
- [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
120
- [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38966, ~: 39034)
121
- Suite result: ok. 32 passed; 0 failed; 0 skipped; finished in 745.42ms (1.53s CPU time)
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)
122
241
 
123
- Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACRedeemIssueTest
124
- [PASS] test_credit() (gas: 89907)
125
- [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93255, ~: 93339)
126
- [PASS] test_debit() (gas: 98305)
242
+ Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACCrosschainTest
243
+ [PASS] test_credit() (gas: 89874)
244
+ [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93055, ~: 93306)
245
+ [PASS] test_debit() (gas: 98332)
127
246
  [PASS] test_debit_Dust() (gas: 139763)
128
- [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 142593, ~: 143477)
247
+ [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 142925, ~: 143477)
129
248
  [PASS] test_debit_PushesFees() (gas: 165812)
130
249
  [PASS] test_debit_Revert_SlippageExceeded() (gas: 131894)
131
250
  [PASS] test_debit_SmallAmount_DustOnly() (gas: 139827)
132
251
  [PASS] test_debit_WithFee() (gas: 165286)
133
252
  [PASS] test_debit_WithFee_Dust() (gas: 165900)
134
- [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 168799, ~: 171220)
253
+ [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 168800, ~: 171220)
135
254
  [PASS] test_initialize() (gas: 24722)
136
255
  [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
137
- [PASS] test_pause_unpause() (gas: 130445)
256
+ [PASS] test_pause_unpause() (gas: 130472)
138
257
  [PASS] test_quoteOFT() (gas: 70712)
139
258
  [PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
140
259
  [PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59195)
141
260
  [PASS] test_quoteOFT_Paused() (gas: 56570)
142
- [PASS] test_quoteOFT_RateLimiterUsage() (gas: 185614)
261
+ [PASS] test_quoteOFT_RateLimiterUsage() (gas: 185667)
143
262
  [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 233430)
144
- [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 200478, ~: 200315)
263
+ [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 200486, ~: 200315)
145
264
  [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84276)
146
- [PASS] test_rateLimit_Inflow() (gas: 108772)
265
+ [PASS] test_rateLimit_Inflow() (gas: 108739)
147
266
  [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
148
267
  [PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 179385)
149
- [PASS] test_send() (gas: 400494)
150
- [PASS] test_send_Revert_MsgInspection() (gas: 308847)
268
+ [PASS] test_send() (gas: 400527)
269
+ [PASS] test_send_Revert_MsgInspection() (gas: 308880)
151
270
  [PASS] test_send_WithFee() (gas: 477358)
152
271
  [PASS] test_setFeeDeposit() (gas: 28359)
153
272
  [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
154
- [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38885, ~: 38967)
155
- Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 864.07ms (1.96s CPU time)
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)
156
275
 
157
- Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACCrosschainTest
158
- [PASS] test_credit() (gas: 89874)
159
- [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93103, ~: 93306)
160
- [PASS] test_debit() (gas: 98332)
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)
161
280
  [PASS] test_debit_Dust() (gas: 139763)
162
- [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 142572, ~: 143477)
281
+ [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 142621, ~: 143477)
163
282
  [PASS] test_debit_PushesFees() (gas: 165812)
164
283
  [PASS] test_debit_Revert_SlippageExceeded() (gas: 131894)
165
284
  [PASS] test_debit_SmallAmount_DustOnly() (gas: 139827)
166
285
  [PASS] test_debit_WithFee() (gas: 165286)
167
286
  [PASS] test_debit_WithFee_Dust() (gas: 165900)
168
- [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 168850, ~: 171220)
287
+ [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 168993, ~: 171220)
169
288
  [PASS] test_initialize() (gas: 24722)
170
289
  [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
171
- [PASS] test_pause_unpause() (gas: 130472)
290
+ [PASS] test_pause_unpause() (gas: 130445)
172
291
  [PASS] test_quoteOFT() (gas: 70712)
173
292
  [PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
174
293
  [PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59195)
175
294
  [PASS] test_quoteOFT_Paused() (gas: 56570)
176
- [PASS] test_quoteOFT_RateLimiterUsage() (gas: 185667)
295
+ [PASS] test_quoteOFT_RateLimiterUsage() (gas: 185614)
177
296
  [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 233430)
178
- [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 200526, ~: 200315)
297
+ [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 200494, ~: 200315)
179
298
  [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84276)
180
- [PASS] test_rateLimit_Inflow() (gas: 108739)
299
+ [PASS] test_rateLimit_Inflow() (gas: 108772)
181
300
  [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
182
301
  [PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 179385)
183
- [PASS] test_send() (gas: 400527)
184
- [PASS] test_send_Revert_MsgInspection() (gas: 308880)
302
+ [PASS] test_send() (gas: 400494)
303
+ [PASS] test_send_Revert_MsgInspection() (gas: 308847)
185
304
  [PASS] test_send_WithFee() (gas: 477358)
186
305
  [PASS] test_setFeeDeposit() (gas: 28359)
187
306
  [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
188
- [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38909, ~: 38967)
189
- Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 864.25ms (2.03s CPU time)
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)
190
309
 
191
310
  Ran 31 tests for test/OFTLockUnlockExtendedRBAC.t.sol:OFTLockUnlockExtendedRBACTest
192
311
  [PASS] test_credit() (gas: 89882)
193
- [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93254, ~: 93314)
312
+ [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93355, ~: 93314)
194
313
  [PASS] test_debit() (gas: 113036)
195
314
  [PASS] test_debit_Dust() (gas: 135880)
196
- [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 138300, ~: 139029)
315
+ [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 137838, ~: 138823)
197
316
  [PASS] test_debit_PushesFees() (gas: 161342)
198
317
  [PASS] test_debit_Revert_SlippageExceeded() (gas: 131850)
199
318
  [PASS] test_debit_SmallAmount_DustOnly() (gas: 135931)
200
319
  [PASS] test_debit_WithFee() (gas: 163924)
201
320
  [PASS] test_debit_WithFee_Dust() (gas: 161430)
202
- [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 161289, ~: 160967)
321
+ [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 161828, ~: 160967)
203
322
  [PASS] test_initialize() (gas: 24678)
204
323
  [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92822)
205
324
  [PASS] test_pause_unpause() (gas: 143924)
@@ -209,7 +328,7 @@ Ran 31 tests for test/OFTLockUnlockExtendedRBAC.t.sol:OFTLockUnlockExtendedRBACT
209
328
  [PASS] test_quoteOFT_Paused() (gas: 56637)
210
329
  [PASS] test_quoteOFT_RateLimiterUsage() (gas: 198848)
211
330
  [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 241184)
212
- [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 196102, ~: 195912)
331
+ [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 196089, ~: 195912)
213
332
  [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84321)
214
333
  [PASS] test_rateLimit_Inflow() (gas: 130622)
215
334
  [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157652)
@@ -219,22 +338,57 @@ Ran 31 tests for test/OFTLockUnlockExtendedRBAC.t.sol:OFTLockUnlockExtendedRBACT
219
338
  [PASS] test_send_WithFee() (gas: 474453)
220
339
  [PASS] test_setFeeDeposit() (gas: 28337)
221
340
  [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22583)
222
- [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38839, ~: 38945)
223
- Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 864.18ms (1.58s CPU time)
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)
224
378
 
225
379
  Ran 32 tests for test/OFTBurnSelfMintExtendedRBAC.t.sol:OFTBurnSelfMintExtendedRBACTest
226
380
  [PASS] test_credit() (gas: 89873)
227
- [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 92900, ~: 93305)
381
+ [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93142, ~: 93305)
228
382
  [PASS] test_debit() (gas: 120710)
229
383
  [PASS] test_debit_Dust() (gas: 143616)
230
- [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 146307, ~: 146486)
384
+ [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 145955, ~: 146486)
231
385
  [PASS] test_debit_PushesFees() (gas: 164384)
232
386
  [PASS] test_debit_Revert_SlippageExceeded() (gas: 131872)
233
387
  [PASS] test_debit_SmallAmount_DustOnly() (gas: 143579)
234
388
  [PASS] test_debit_TokensTransferredToSelfThenBurned() (gas: 122517)
235
389
  [PASS] test_debit_WithFee() (gas: 166449)
236
390
  [PASS] test_debit_WithFee_Dust() (gas: 164455)
237
- [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 166846, ~: 168645)
391
+ [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 166620, ~: 168646)
238
392
  [PASS] test_initialize() (gas: 24700)
239
393
  [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
240
394
  [PASS] test_pause_unpause() (gas: 151598)
@@ -244,7 +398,7 @@ Ran 32 tests for test/OFTBurnSelfMintExtendedRBAC.t.sol:OFTBurnSelfMintExtendedR
244
398
  [PASS] test_quoteOFT_Paused() (gas: 56570)
245
399
  [PASS] test_quoteOFT_RateLimiterUsage() (gas: 242240)
246
400
  [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 268746)
247
- [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 192048, ~: 191921)
401
+ [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 192061, ~: 191921)
248
402
  [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84254)
249
403
  [PASS] test_rateLimit_Inflow() (gas: 108738)
250
404
  [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
@@ -255,85 +409,7 @@ Ran 32 tests for test/OFTBurnSelfMintExtendedRBAC.t.sol:OFTBurnSelfMintExtendedR
255
409
  [PASS] test_setFeeDeposit() (gas: 28445)
256
410
  [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
257
411
  [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38952, ~: 39034)
258
- Suite result: ok. 32 passed; 0 failed; 0 skipped; finished in 871.36ms (2.63s CPU time)
259
-
260
- Ran 39 tests for test/OFTNativeExtendedRBAC.t.sol:OFTNativeExtendedRBACTest
261
- [PASS] test_approvalRequired() (gas: 13426)
262
- [PASS] test_credit() (gas: 62369)
263
- [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 65834, ~: 65954)
264
- [PASS] test_credit_Revert_CreditFailed() (gas: 91478)
265
- [PASS] test_debit() (gas: 36831)
266
- [PASS] test_debit_Dust() (gas: 76272)
267
- [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 79440, ~: 79886)
268
- [PASS] test_debit_PushesFees() (gas: 101339)
269
- [PASS] test_debit_Revert_SlippageExceeded() (gas: 54229)
270
- [PASS] test_debit_SmallAmount_DustOnly() (gas: 76226)
271
- [PASS] test_debit_WithFee() (gas: 101145)
272
- [PASS] test_debit_WithFee_Dust() (gas: 102376)
273
- [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 105880, ~: 107585)
274
- [PASS] test_initialize() (gas: 22406)
275
- [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92778)
276
- [PASS] test_pause_unpause() (gas: 61117)
277
- [PASS] test_quoteOFT() (gas: 70779)
278
- [PASS] test_quoteOFT_GloballyDisabled() (gas: 80649)
279
- [PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59220)
280
- [PASS] test_quoteOFT_Paused() (gas: 56703)
281
- [PASS] test_quoteOFT_RateLimiterUsage() (gas: 97744)
282
- [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 160139)
283
- [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 137886, ~: 137703)
284
- [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84387)
285
- [PASS] test_rateLimit_Inflow() (gas: 87713)
286
- [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 80123)
287
- [PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 116713)
288
- [PASS] test_send() (gas: 352734)
289
- [PASS] test_send_PushesFees() (gas: 415282)
290
- [PASS] test_send_Revert_FeeTransferFailed() (gas: 157067)
291
- [PASS] test_send_Revert_IncorrectMessageValue_TooHigh() (gas: 30287)
292
- [PASS] test_send_Revert_IncorrectMessageValue_TooLow() (gas: 30257)
293
- [PASS] test_send_Revert_IncorrectMessageValue_ZeroValue() (gas: 22753)
294
- [PASS] test_send_Revert_MsgInspection() (gas: 221169)
295
- [PASS] test_send_WithFee() (gas: 415240)
296
- [PASS] test_setFeeDeposit() (gas: 28425)
297
- [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22627)
298
- [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38919, ~: 39011)
299
- [PASS] test_token() (gas: 13483)
300
- Suite result: ok. 39 passed; 0 failed; 0 skipped; finished in 871.28ms (1.56s CPU time)
301
-
302
- Ran 33 tests for test/OFTBurnSelfMintExtendedRBACAlt.t.sol:OFTBurnSelfMintExtendedRBACAltTest
303
- [PASS] test_credit() (gas: 89873)
304
- [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93035, ~: 93305)
305
- [PASS] test_debit() (gas: 120710)
306
- [PASS] test_debit_Dust() (gas: 145216)
307
- [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 147243, ~: 148086)
308
- [PASS] test_debit_PushesFees() (gas: 165984)
309
- [PASS] test_debit_Revert_SlippageExceeded() (gas: 133872)
310
- [PASS] test_debit_SmallAmount_DustOnly() (gas: 145179)
311
- [PASS] test_debit_TokensTransferredToSelfThenBurned() (gas: 122500)
312
- [PASS] test_debit_WithFee() (gas: 166449)
313
- [PASS] test_debit_WithFee_Dust() (gas: 166055)
314
- [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 168282, ~: 170243)
315
- [PASS] test_initialize() (gas: 24700)
316
- [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
317
- [PASS] test_pause_unpause() (gas: 153198)
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: 243840)
323
- [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 270346)
324
- [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 193679, ~: 193521)
325
- [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84254)
326
- [PASS] test_rateLimit_Inflow() (gas: 108826)
327
- [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 159696)
328
- [PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 176825)
329
- [PASS] test_send() (gas: 456534)
330
- [PASS] test_send_Revert_MsgInspection() (gas: 337267)
331
- [PASS] test_send_Revert_OnlyAltToken() (gas: 250697)
332
- [PASS] test_send_WithFee() (gas: 504694)
333
- [PASS] test_setFeeDeposit() (gas: 28445)
334
- [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
335
- [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38942, ~: 39034)
336
- Suite result: ok. 33 passed; 0 failed; 0 skipped; finished in 895.70ms (2.35s CPU time)
412
+ Suite result: ok. 32 passed; 0 failed; 0 skipped; finished in 576.23ms (1.37s CPU time)
337
413
 
338
- Ran 9 test suites in 1.13s (7.35s CPU time): 292 tests passed, 0 failed, 0 skipped (292 total tests)
339
- ⏳ forge test: 1:02.391 (m:ss.mmm)
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)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@layerzerolabs/oft-upgradeable-evm-contracts",
3
- "version": "0.2.108",
3
+ "version": "0.2.109",
4
4
  "private": false,
5
5
  "description": "LayerZero Labs reference EVM upgradeable OFT implementation",
6
6
  "license": "MIT",
@@ -14,16 +14,16 @@
14
14
  "@openzeppelin/contracts-upgradeable": "^5.0.2",
15
15
  "ethers": "^5.8.0",
16
16
  "solhint": "^6.0.1",
17
- "@layerzerolabs/oapp-upgradeable-evm-contracts": "0.2.108",
18
- "@layerzerolabs/solhint-configuration": "0.2.108",
19
- "@layerzerolabs/oft-evm-contracts": "0.2.108",
20
- "@layerzerolabs/test-utils-evm-contracts": "0.2.108",
21
- "@layerzerolabs/oapp-evm-contracts": "0.2.108",
22
- "@layerzerolabs/tsup-configuration": "0.2.108",
23
- "@layerzerolabs/utils-evm-contracts": "0.2.108",
24
- "@layerzerolabs/typescript-configuration": "0.2.108",
25
- "@layerzerolabs/vm-tooling-evm": "0.2.108",
26
- "@layerzerolabs/utils-upgradeable-evm-contracts": "0.2.108"
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"
27
27
  },
28
28
  "publishConfig": {
29
29
  "access": "public",