@layerzerolabs/oft-upgradeable-evm-contracts 0.2.77 → 0.2.78

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,7 +12,7 @@
12
12
  ✅ forge-1.3.6-hardhat-2.26.3
13
13
  🔧 hardhat version: 2.26.3
14
14
  $ docker image inspect --format {{.Id}} 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3
15
- (node:19572) [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:145337) [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)
@@ -70,7 +70,7 @@ Warning: Contract code size is 27524 bytes and exceeds 24576 bytes (a limit intr
70
70
 
71
71
 
72
72
  Successfully compiled 76 Solidity files
73
- ⏳ hardhat compile --config /hardhat/hardhat.default.config.js: 9.808s
73
+ ⏳ hardhat compile --config /hardhat/hardhat.default.config.js: 12.007s
74
74
   WARN  Issue while reading "/home/runner/work/monorepo-internal/monorepo-internal/.npmrc". Failed to replace env in config: ${NPM_TOKEN}
75
75
 
76
76
  > @layerzerolabs/oft-upgradeable-evm-contracts@0.0.0 compile:zksync /home/runner/work/monorepo-internal/monorepo-internal/apps/oft-app/contracts/evm/upgradeable
@@ -80,7 +80,7 @@ Successfully compiled 76 Solidity files
80
80
  ✅ forge-1.3.6-hardhat-2.26.3
81
81
  🔧 hardhat version: 2.26.3
82
82
  $ docker image inspect --format {{.Id}} 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3
83
- (node:20144) [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.
83
+ (node:150629) [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.
84
84
  Reparsing as ES module because module syntax was detected. This incurs a performance overhead.
85
85
  To eliminate this warning, add "type": "module" to /home/runner/work/monorepo-internal/monorepo-internal/package.json.
86
86
  (Use `node --trace-warnings ...` to show where the warning was created)
@@ -92,7 +92,7 @@ The zksolc compiler version in your Hardhat config file (1.3.22) is not the late
92
92
  Compiling contracts for ZKsync Era with zksolc v1.3.22 and zkvm-solc v0.8.23-1.0.1
93
93
  Compiling 76 Solidity files
94
94
  Successfully compiled 76 Solidity files
95
- ⏳ hardhat compile --config /hardhat/hardhat.default.config.js --network zksync-mainnet: 1:16.311 (m:ss.mmm)
95
+ ⏳ hardhat compile --config /hardhat/hardhat.default.config.js --network zksync-mainnet: 1:50.636 (m:ss.mmm)
96
96
   WARN  Issue while reading "/home/runner/work/monorepo-internal/monorepo-internal/.npmrc". Failed to replace env in config: ${NPM_TOKEN}
97
97
 
98
98
  > @layerzerolabs/oft-upgradeable-evm-contracts@0.0.0 compile:tron /home/runner/work/monorepo-internal/monorepo-internal/apps/oft-app/contracts/evm/upgradeable
@@ -102,7 +102,7 @@ Successfully compiled 76 Solidity files
102
102
  ✅ forge-1.3.6-hardhat-2.26.3
103
103
  🔧 hardhat version: 2.26.3
104
104
  $ docker image inspect --format {{.Id}} 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3
105
- (node:28541) [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.
105
+ (node:235239) [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.
106
106
  Reparsing as ES module because module syntax was detected. This incurs a performance overhead.
107
107
  To eliminate this warning, add "type": "module" to /home/runner/work/monorepo-internal/monorepo-internal/package.json.
108
108
  (Use `node --trace-warnings ...` to show where the warning was created)
@@ -110,8 +110,8 @@ To eliminate this warning, add "type": "module" to /home/runner/work/monorepo-in
110
110
  👤 Running container as UID:GID 1001:1001
111
111
  $ 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 hardhat compile --config /hardhat/hardhat.default.config.js --network tron-mainnet
112
112
  detected tron network, replacing deployments extension with custom one
113
- Compiling contracts with tron solc v0.8.23
114
113
  Tron-solc v0.8.23 is unknown version, attempting anyway...
114
+ Compiling contracts with tron solc v0.8.23
115
115
  Compiling 76 Solidity files
116
116
  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.
117
117
  --> contracts/extended/OFTBurnMintExtendedRBACUpgradeable.sol:28:1:
@@ -163,4 +163,4 @@ Warning: Contract code size is 29394 bytes and exceeds 24576 bytes (a limit intr
163
163
 
164
164
 
165
165
  Successfully compiled 76 Solidity files
166
- ⏳ hardhat compile --config /hardhat/hardhat.default.config.js --network tron-mainnet: 43.525s
166
+ ⏳ hardhat compile --config /hardhat/hardhat.default.config.js --network tron-mainnet: 36.720s
@@ -5,72 +5,106 @@
5
5
  ✅ forge-1.3.6-hardhat-2.26.3
6
6
  🔧 forge version: 1.3.6
7
7
  $ docker image inspect --format {{.Id}} 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3
8
- (node:67664) [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:468958) [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: Already exists
17
- eef7c391911c: Already exists
18
- cc2ecf4065b7: Already exists
19
- 5760fdd70374: Already exists
20
- c70db14240a1: Already exists
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
- 45d43cc973ba: Download complete
32
- 8e167e77288f: Download complete
33
- 36e15e3f2788: Waiting
34
- 44c09156221f: Download complete
35
- 2a1ced882ba9: Download complete
36
- 597168d5c38e: Download complete
37
- f2fb700979ad: Download complete
38
- 36e15e3f2788: Download complete
39
- 0cb2c6965bde: Pull complete
40
- e431adaf232f: Verifying Checksum
41
- e431adaf232f: Download complete
42
- 885bca26f927: Download complete
43
- 885bca26f927: Pull complete
44
- 8e167e77288f: Pull complete
45
- 45d43cc973ba: Pull complete
46
- 44c09156221f: Pull complete
47
- f2fb700979ad: Pull complete
48
- 2a1ced882ba9: Pull complete
49
- 597168d5c38e: Pull complete
50
- e431adaf232f: Pull complete
51
- 36e15e3f2788: Pull complete
52
- Digest: sha256:08b858b586759ec59f4df44c0bc5eac9f856a1eb32b6ce37f79f31a20a89ed52
53
- Status: Image is up to date for 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3
54
- 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3
55
- ✅ 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
56
13
  👤 Running container as UID:GID 1001:1001
57
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
58
15
  Compiling 185 files with Solc 0.8.22
59
- Solc 0.8.22 finished in 56.02s
16
+ Solc 0.8.22 finished in 68.88s
60
17
  Compiler run successful!
61
18
 
19
+ Ran 39 tests for test/OFTNativeExtendedRBAC.t.sol:OFTNativeExtendedRBACTest
20
+ [PASS] test_approvalRequired() (gas: 13426)
21
+ [PASS] test_credit() (gas: 62369)
22
+ [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 65979, ~: 65954)
23
+ [PASS] test_credit_Revert_CreditFailed() (gas: 91478)
24
+ [PASS] test_debit() (gas: 36831)
25
+ [PASS] test_debit_Dust() (gas: 76272)
26
+ [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 79471, ~: 79886)
27
+ [PASS] test_debit_PushesFees() (gas: 101339)
28
+ [PASS] test_debit_Revert_SlippageExceeded() (gas: 54229)
29
+ [PASS] test_debit_SmallAmount_DustOnly() (gas: 76226)
30
+ [PASS] test_debit_WithFee() (gas: 101145)
31
+ [PASS] test_debit_WithFee_Dust() (gas: 102376)
32
+ [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 105855, ~: 107585)
33
+ [PASS] test_initialize() (gas: 22406)
34
+ [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92778)
35
+ [PASS] test_pause_unpause() (gas: 61117)
36
+ [PASS] test_quoteOFT() (gas: 70779)
37
+ [PASS] test_quoteOFT_GloballyDisabled() (gas: 80649)
38
+ [PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59220)
39
+ [PASS] test_quoteOFT_Paused() (gas: 56703)
40
+ [PASS] test_quoteOFT_RateLimiterUsage() (gas: 97744)
41
+ [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 160139)
42
+ [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 137865, ~: 137703)
43
+ [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84387)
44
+ [PASS] test_rateLimit_Inflow() (gas: 87713)
45
+ [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 80123)
46
+ [PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 116713)
47
+ [PASS] test_send() (gas: 352734)
48
+ [PASS] test_send_PushesFees() (gas: 415282)
49
+ [PASS] test_send_Revert_FeeTransferFailed() (gas: 157067)
50
+ [PASS] test_send_Revert_IncorrectMessageValue_TooHigh() (gas: 30287)
51
+ [PASS] test_send_Revert_IncorrectMessageValue_TooLow() (gas: 30257)
52
+ [PASS] test_send_Revert_IncorrectMessageValue_ZeroValue() (gas: 22753)
53
+ [PASS] test_send_Revert_MsgInspection() (gas: 221169)
54
+ [PASS] test_send_WithFee() (gas: 415240)
55
+ [PASS] test_setFeeDeposit() (gas: 28425)
56
+ [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22627)
57
+ [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38919, ~: 39011)
58
+ [PASS] test_token() (gas: 13483)
59
+ Suite result: ok. 39 passed; 0 failed; 0 skipped; finished in 1.12s (2.78s CPU time)
60
+
61
+ Ran 32 tests for test/OFTLockUnlockExtendedRBACAlt.t.sol:OFTLockUnlockExtendedRBACAltTest
62
+ [PASS] test_credit() (gas: 91882)
63
+ [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 95157, ~: 95314)
64
+ [PASS] test_debit() (gas: 113036)
65
+ [PASS] test_debit_Dust() (gas: 137551)
66
+ [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 140026, ~: 141029)
67
+ [PASS] test_debit_PushesFees() (gas: 163342)
68
+ [PASS] test_debit_Revert_SlippageExceeded() (gas: 133828)
69
+ [PASS] test_debit_SmallAmount_DustOnly() (gas: 137513)
70
+ [PASS] test_debit_WithFee() (gas: 163924)
71
+ [PASS] test_debit_WithFee_Dust() (gas: 163430)
72
+ [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 163060, ~: 162567)
73
+ [PASS] test_initialize() (gas: 24656)
74
+ [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92822)
75
+ [PASS] test_pause_unpause() (gas: 145524)
76
+ [PASS] test_quoteOFT() (gas: 70757)
77
+ [PASS] test_quoteOFT_GloballyDisabled() (gas: 80605)
78
+ [PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59240)
79
+ [PASS] test_quoteOFT_Paused() (gas: 56637)
80
+ [PASS] test_quoteOFT_RateLimiterUsage() (gas: 200448)
81
+ [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 242784)
82
+ [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 198087, ~: 197912)
83
+ [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84299)
84
+ [PASS] test_rateLimit_Inflow() (gas: 132710)
85
+ [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 159652)
86
+ [PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 176893)
87
+ [PASS] test_send() (gas: 465637)
88
+ [PASS] test_send_Revert_MsgInspection() (gas: 327696)
89
+ [PASS] test_send_Revert_OnlyAltToken() (gas: 241148)
90
+ [PASS] test_send_WithFee() (gas: 516566)
91
+ [PASS] test_setFeeDeposit() (gas: 28423)
92
+ [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22583)
93
+ [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38916, ~: 39012)
94
+ Suite result: ok. 32 passed; 0 failed; 0 skipped; finished in 1.12s (3.17s CPU time)
95
+
62
96
  Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACCrosschainTest
63
97
  [PASS] test_credit() (gas: 89874)
64
- [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93265, ~: 93306)
98
+ [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93226, ~: 93306)
65
99
  [PASS] test_debit() (gas: 98332)
66
100
  [PASS] test_debit_Dust() (gas: 139763)
67
- [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 142577, ~: 143477)
101
+ [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 142859, ~: 143477)
68
102
  [PASS] test_debit_PushesFees() (gas: 165812)
69
103
  [PASS] test_debit_Revert_SlippageExceeded() (gas: 131894)
70
104
  [PASS] test_debit_SmallAmount_DustOnly() (gas: 139827)
71
105
  [PASS] test_debit_WithFee() (gas: 165286)
72
106
  [PASS] test_debit_WithFee_Dust() (gas: 165900)
73
- [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 169700, ~: 171220)
107
+ [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 168988, ~: 171220)
74
108
  [PASS] test_initialize() (gas: 24722)
75
109
  [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
76
110
  [PASS] test_pause_unpause() (gas: 130472)
@@ -80,7 +114,7 @@ Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACCross
80
114
  [PASS] test_quoteOFT_Paused() (gas: 56570)
81
115
  [PASS] test_quoteOFT_RateLimiterUsage() (gas: 185667)
82
116
  [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 233430)
83
- [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 200491, ~: 200315)
117
+ [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 200511, ~: 200315)
84
118
  [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84276)
85
119
  [PASS] test_rateLimit_Inflow() (gas: 108739)
86
120
  [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
@@ -90,21 +124,55 @@ Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACCross
90
124
  [PASS] test_send_WithFee() (gas: 477358)
91
125
  [PASS] test_setFeeDeposit() (gas: 28359)
92
126
  [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
93
- [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38879, ~: 38967)
94
- Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 1.18s (2.55s CPU time)
127
+ [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38890, ~: 38967)
128
+ Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 1.15s (3.58s CPU time)
129
+
130
+ Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACTest
131
+ [PASS] test_credit() (gas: 89871)
132
+ [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93029, ~: 93303)
133
+ [PASS] test_debit() (gas: 98327)
134
+ [PASS] test_debit_Dust() (gas: 139747)
135
+ [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 142629, ~: 143461)
136
+ [PASS] test_debit_PushesFees() (gas: 165796)
137
+ [PASS] test_debit_Revert_SlippageExceeded() (gas: 131894)
138
+ [PASS] test_debit_SmallAmount_DustOnly() (gas: 139811)
139
+ [PASS] test_debit_WithFee() (gas: 165270)
140
+ [PASS] test_debit_WithFee_Dust() (gas: 165884)
141
+ [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 169406, ~: 171204)
142
+ [PASS] test_initialize() (gas: 24722)
143
+ [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
144
+ [PASS] test_pause_unpause() (gas: 130467)
145
+ [PASS] test_quoteOFT() (gas: 70712)
146
+ [PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
147
+ [PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59195)
148
+ [PASS] test_quoteOFT_Paused() (gas: 56570)
149
+ [PASS] test_quoteOFT_RateLimiterUsage() (gas: 185657)
150
+ [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 233398)
151
+ [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 200494, ~: 200299)
152
+ [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84276)
153
+ [PASS] test_rateLimit_Inflow() (gas: 108736)
154
+ [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
155
+ [PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 179369)
156
+ [PASS] test_send() (gas: 400518)
157
+ [PASS] test_send_Revert_MsgInspection() (gas: 308871)
158
+ [PASS] test_send_WithFee() (gas: 477338)
159
+ [PASS] test_setFeeDeposit() (gas: 28359)
160
+ [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
161
+ [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38875, ~: 38967)
162
+ Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 1.15s (3.11s CPU time)
95
163
 
96
164
  Ran 32 tests for test/OFTBurnMintExtendedRBACAlt.t.sol:OFTBurnMintExtendedRBACAltTest
97
165
  [PASS] test_credit() (gas: 89871)
98
- [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93338, ~: 93303)
166
+ [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 92817, ~: 93303)
99
167
  [PASS] test_debit() (gas: 98327)
100
168
  [PASS] test_debit_Dust() (gas: 141836)
101
- [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 145198, ~: 145461)
169
+ [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 145040, ~: 145461)
102
170
  [PASS] test_debit_PushesFees() (gas: 167796)
103
171
  [PASS] test_debit_Revert_SlippageExceeded() (gas: 133872)
104
172
  [PASS] test_debit_SmallAmount_DustOnly() (gas: 141789)
105
173
  [PASS] test_debit_WithFee() (gas: 165270)
106
174
  [PASS] test_debit_WithFee_Dust() (gas: 167884)
107
- [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 170674, ~: 173204)
175
+ [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 171194, ~: 173204)
108
176
  [PASS] test_initialize() (gas: 24700)
109
177
  [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
110
178
  [PASS] test_pause_unpause() (gas: 132067)
@@ -114,7 +182,7 @@ Ran 32 tests for test/OFTBurnMintExtendedRBACAlt.t.sol:OFTBurnMintExtendedRBACAl
114
182
  [PASS] test_quoteOFT_Paused() (gas: 56570)
115
183
  [PASS] test_quoteOFT_RateLimiterUsage() (gas: 187257)
116
184
  [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 235398)
117
- [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 202487, ~: 202299)
185
+ [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 202498, ~: 202299)
118
186
  [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84254)
119
187
  [PASS] test_rateLimit_Inflow() (gas: 108824)
120
188
  [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 159696)
@@ -125,58 +193,22 @@ Ran 32 tests for test/OFTBurnMintExtendedRBACAlt.t.sol:OFTBurnMintExtendedRBACAl
125
193
  [PASS] test_send_WithFee() (gas: 493959)
126
194
  [PASS] test_setFeeDeposit() (gas: 28445)
127
195
  [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
128
- [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38940, ~: 39034)
129
- Suite result: ok. 32 passed; 0 failed; 0 skipped; finished in 1.30s (3.31s CPU time)
130
-
131
- Ran 33 tests for test/OFTBurnSelfMintExtendedRBACAlt.t.sol:OFTBurnSelfMintExtendedRBACAltTest
132
- [PASS] test_credit() (gas: 89873)
133
- [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93242, ~: 93305)
134
- [PASS] test_debit() (gas: 120710)
135
- [PASS] test_debit_Dust() (gas: 145216)
136
- [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 147190, ~: 148086)
137
- [PASS] test_debit_PushesFees() (gas: 165984)
138
- [PASS] test_debit_Revert_SlippageExceeded() (gas: 133872)
139
- [PASS] test_debit_SmallAmount_DustOnly() (gas: 145179)
140
- [PASS] test_debit_TokensTransferredToSelfThenBurned() (gas: 122500)
141
- [PASS] test_debit_WithFee() (gas: 166449)
142
- [PASS] test_debit_WithFee_Dust() (gas: 166055)
143
- [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 168546, ~: 170245)
144
- [PASS] test_initialize() (gas: 24700)
145
- [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
146
- [PASS] test_pause_unpause() (gas: 153198)
147
- [PASS] test_quoteOFT() (gas: 70712)
148
- [PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
149
- [PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59173)
150
- [PASS] test_quoteOFT_Paused() (gas: 56570)
151
- [PASS] test_quoteOFT_RateLimiterUsage() (gas: 243840)
152
- [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 270346)
153
- [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 193657, ~: 193521)
154
- [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84254)
155
- [PASS] test_rateLimit_Inflow() (gas: 108826)
156
- [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 159696)
157
- [PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 176825)
158
- [PASS] test_send() (gas: 456534)
159
- [PASS] test_send_Revert_MsgInspection() (gas: 337267)
160
- [PASS] test_send_Revert_OnlyAltToken() (gas: 250697)
161
- [PASS] test_send_WithFee() (gas: 504694)
162
- [PASS] test_setFeeDeposit() (gas: 28445)
163
- [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
164
- [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38890, ~: 39034)
165
- Suite result: ok. 33 passed; 0 failed; 0 skipped; finished in 1.32s (2.19s CPU time)
196
+ [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38923, ~: 39034)
197
+ Suite result: ok. 32 passed; 0 failed; 0 skipped; finished in 1.25s (3.68s CPU time)
166
198
 
167
199
  Ran 32 tests for test/OFTBurnSelfMintExtendedRBAC.t.sol:OFTBurnSelfMintExtendedRBACTest
168
200
  [PASS] test_credit() (gas: 89873)
169
- [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93169, ~: 93305)
201
+ [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 92826, ~: 93305)
170
202
  [PASS] test_debit() (gas: 120710)
171
203
  [PASS] test_debit_Dust() (gas: 143616)
172
- [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 145072, ~: 146486)
204
+ [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 145733, ~: 146486)
173
205
  [PASS] test_debit_PushesFees() (gas: 164384)
174
206
  [PASS] test_debit_Revert_SlippageExceeded() (gas: 131872)
175
207
  [PASS] test_debit_SmallAmount_DustOnly() (gas: 143579)
176
208
  [PASS] test_debit_TokensTransferredToSelfThenBurned() (gas: 122517)
177
209
  [PASS] test_debit_WithFee() (gas: 166449)
178
210
  [PASS] test_debit_WithFee_Dust() (gas: 164455)
179
- [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 166652, ~: 168645)
211
+ [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 166854, ~: 168645)
180
212
  [PASS] test_initialize() (gas: 24700)
181
213
  [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
182
214
  [PASS] test_pause_unpause() (gas: 151598)
@@ -186,7 +218,7 @@ Ran 32 tests for test/OFTBurnSelfMintExtendedRBAC.t.sol:OFTBurnSelfMintExtendedR
186
218
  [PASS] test_quoteOFT_Paused() (gas: 56570)
187
219
  [PASS] test_quoteOFT_RateLimiterUsage() (gas: 242240)
188
220
  [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 268746)
189
- [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 192064, ~: 191921)
221
+ [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 192060, ~: 191921)
190
222
  [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84254)
191
223
  [PASS] test_rateLimit_Inflow() (gas: 108738)
192
224
  [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
@@ -196,21 +228,21 @@ Ran 32 tests for test/OFTBurnSelfMintExtendedRBAC.t.sol:OFTBurnSelfMintExtendedR
196
228
  [PASS] test_send_WithFee() (gas: 462592)
197
229
  [PASS] test_setFeeDeposit() (gas: 28445)
198
230
  [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
199
- [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38971, ~: 39034)
200
- Suite result: ok. 32 passed; 0 failed; 0 skipped; finished in 1.44s (2.75s CPU time)
231
+ [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38947, ~: 39034)
232
+ Suite result: ok. 32 passed; 0 failed; 0 skipped; finished in 1.28s (3.94s CPU time)
201
233
 
202
234
  Ran 31 tests for test/OFTLockUnlockExtendedRBAC.t.sol:OFTLockUnlockExtendedRBACTest
203
235
  [PASS] test_credit() (gas: 89882)
204
- [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93010, ~: 93314)
236
+ [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93201, ~: 93314)
205
237
  [PASS] test_debit() (gas: 113036)
206
238
  [PASS] test_debit_Dust() (gas: 135880)
207
- [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 138552, ~: 138823)
239
+ [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 138111, ~: 138823)
208
240
  [PASS] test_debit_PushesFees() (gas: 161342)
209
241
  [PASS] test_debit_Revert_SlippageExceeded() (gas: 131850)
210
242
  [PASS] test_debit_SmallAmount_DustOnly() (gas: 135931)
211
243
  [PASS] test_debit_WithFee() (gas: 163924)
212
244
  [PASS] test_debit_WithFee_Dust() (gas: 161430)
213
- [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 161860, ~: 160967)
245
+ [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 161776, ~: 160967)
214
246
  [PASS] test_initialize() (gas: 24678)
215
247
  [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92822)
216
248
  [PASS] test_pause_unpause() (gas: 143924)
@@ -220,7 +252,7 @@ Ran 31 tests for test/OFTLockUnlockExtendedRBAC.t.sol:OFTLockUnlockExtendedRBACT
220
252
  [PASS] test_quoteOFT_Paused() (gas: 56637)
221
253
  [PASS] test_quoteOFT_RateLimiterUsage() (gas: 198848)
222
254
  [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 241184)
223
- [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 196090, ~: 195912)
255
+ [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 196095, ~: 195912)
224
256
  [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84321)
225
257
  [PASS] test_rateLimit_Inflow() (gas: 130622)
226
258
  [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157652)
@@ -230,55 +262,21 @@ Ran 31 tests for test/OFTLockUnlockExtendedRBAC.t.sol:OFTLockUnlockExtendedRBACT
230
262
  [PASS] test_send_WithFee() (gas: 474453)
231
263
  [PASS] test_setFeeDeposit() (gas: 28337)
232
264
  [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22583)
233
- [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38810, ~: 38945)
234
- Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 1.59s (2.68s CPU time)
235
-
236
- Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACTest
237
- [PASS] test_credit() (gas: 89871)
238
- [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93187, ~: 93303)
239
- [PASS] test_debit() (gas: 98327)
240
- [PASS] test_debit_Dust() (gas: 139747)
241
- [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 142934, ~: 143461)
242
- [PASS] test_debit_PushesFees() (gas: 165796)
243
- [PASS] test_debit_Revert_SlippageExceeded() (gas: 131894)
244
- [PASS] test_debit_SmallAmount_DustOnly() (gas: 139811)
245
- [PASS] test_debit_WithFee() (gas: 165270)
246
- [PASS] test_debit_WithFee_Dust() (gas: 165884)
247
- [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 168172, ~: 171204)
248
- [PASS] test_initialize() (gas: 24722)
249
- [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
250
- [PASS] test_pause_unpause() (gas: 130467)
251
- [PASS] test_quoteOFT() (gas: 70712)
252
- [PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
253
- [PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59195)
254
- [PASS] test_quoteOFT_Paused() (gas: 56570)
255
- [PASS] test_quoteOFT_RateLimiterUsage() (gas: 185657)
256
- [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 233398)
257
- [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 200481, ~: 200299)
258
- [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84276)
259
- [PASS] test_rateLimit_Inflow() (gas: 108736)
260
- [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
261
- [PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 179369)
262
- [PASS] test_send() (gas: 400518)
263
- [PASS] test_send_Revert_MsgInspection() (gas: 308871)
264
- [PASS] test_send_WithFee() (gas: 477338)
265
- [PASS] test_setFeeDeposit() (gas: 28359)
266
- [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
267
- [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38871, ~: 38967)
268
- Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 1.62s (2.96s CPU time)
265
+ [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38853, ~: 38945)
266
+ Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 1.29s (3.65s CPU time)
269
267
 
270
268
  Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACRedeemIssueTest
271
269
  [PASS] test_credit() (gas: 89907)
272
- [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93306, ~: 93339)
270
+ [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93204, ~: 93339)
273
271
  [PASS] test_debit() (gas: 98305)
274
272
  [PASS] test_debit_Dust() (gas: 139763)
275
- [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 142625, ~: 143477)
273
+ [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 142677, ~: 143477)
276
274
  [PASS] test_debit_PushesFees() (gas: 165812)
277
275
  [PASS] test_debit_Revert_SlippageExceeded() (gas: 131894)
278
276
  [PASS] test_debit_SmallAmount_DustOnly() (gas: 139827)
279
277
  [PASS] test_debit_WithFee() (gas: 165286)
280
278
  [PASS] test_debit_WithFee_Dust() (gas: 165900)
281
- [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 168954, ~: 171220)
279
+ [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 168945, ~: 171220)
282
280
  [PASS] test_initialize() (gas: 24722)
283
281
  [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
284
282
  [PASS] test_pause_unpause() (gas: 130445)
@@ -288,7 +286,7 @@ Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACRedee
288
286
  [PASS] test_quoteOFT_Paused() (gas: 56570)
289
287
  [PASS] test_quoteOFT_RateLimiterUsage() (gas: 185614)
290
288
  [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 233430)
291
- [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 200487, ~: 200315)
289
+ [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 200468, ~: 200309)
292
290
  [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84276)
293
291
  [PASS] test_rateLimit_Inflow() (gas: 108772)
294
292
  [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
@@ -298,85 +296,44 @@ Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACRedee
298
296
  [PASS] test_send_WithFee() (gas: 477358)
299
297
  [PASS] test_setFeeDeposit() (gas: 28359)
300
298
  [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
301
- [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38866, ~: 38967)
302
- Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 1.63s (2.30s CPU time)
303
-
304
- Ran 32 tests for test/OFTLockUnlockExtendedRBACAlt.t.sol:OFTLockUnlockExtendedRBACAltTest
305
- [PASS] test_credit() (gas: 91882)
306
- [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 95274, ~: 95314)
307
- [PASS] test_debit() (gas: 113036)
308
- [PASS] test_debit_Dust() (gas: 137551)
309
- [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 140119, ~: 140423)
310
- [PASS] test_debit_PushesFees() (gas: 163342)
311
- [PASS] test_debit_Revert_SlippageExceeded() (gas: 133828)
312
- [PASS] test_debit_SmallAmount_DustOnly() (gas: 137513)
313
- [PASS] test_debit_WithFee() (gas: 163924)
314
- [PASS] test_debit_WithFee_Dust() (gas: 163430)
315
- [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 163697, ~: 162567)
316
- [PASS] test_initialize() (gas: 24656)
317
- [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92822)
318
- [PASS] test_pause_unpause() (gas: 145524)
319
- [PASS] test_quoteOFT() (gas: 70757)
320
- [PASS] test_quoteOFT_GloballyDisabled() (gas: 80605)
321
- [PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59240)
322
- [PASS] test_quoteOFT_Paused() (gas: 56637)
323
- [PASS] test_quoteOFT_RateLimiterUsage() (gas: 200448)
324
- [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 242784)
325
- [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 198105, ~: 197912)
326
- [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84299)
327
- [PASS] test_rateLimit_Inflow() (gas: 132710)
328
- [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 159652)
329
- [PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 176893)
330
- [PASS] test_send() (gas: 465637)
331
- [PASS] test_send_Revert_MsgInspection() (gas: 327696)
332
- [PASS] test_send_Revert_OnlyAltToken() (gas: 241148)
333
- [PASS] test_send_WithFee() (gas: 516566)
334
- [PASS] test_setFeeDeposit() (gas: 28423)
335
- [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22583)
336
- [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38930, ~: 39012)
337
- Suite result: ok. 32 passed; 0 failed; 0 skipped; finished in 1.82s (2.49s CPU time)
299
+ [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38899, ~: 38967)
300
+ Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 1.29s (2.53s CPU time)
338
301
 
339
- Ran 39 tests for test/OFTNativeExtendedRBAC.t.sol:OFTNativeExtendedRBACTest
340
- [PASS] test_approvalRequired() (gas: 13426)
341
- [PASS] test_credit() (gas: 62369)
342
- [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 66090, ~: 65954)
343
- [PASS] test_credit_Revert_CreditFailed() (gas: 91478)
344
- [PASS] test_debit() (gas: 36831)
345
- [PASS] test_debit_Dust() (gas: 76272)
346
- [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 79274, ~: 79886)
347
- [PASS] test_debit_PushesFees() (gas: 101339)
348
- [PASS] test_debit_Revert_SlippageExceeded() (gas: 54229)
349
- [PASS] test_debit_SmallAmount_DustOnly() (gas: 76226)
350
- [PASS] test_debit_WithFee() (gas: 101145)
351
- [PASS] test_debit_WithFee_Dust() (gas: 102376)
352
- [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 105367, ~: 107585)
353
- [PASS] test_initialize() (gas: 22406)
354
- [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92778)
355
- [PASS] test_pause_unpause() (gas: 61117)
356
- [PASS] test_quoteOFT() (gas: 70779)
357
- [PASS] test_quoteOFT_GloballyDisabled() (gas: 80649)
358
- [PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59220)
359
- [PASS] test_quoteOFT_Paused() (gas: 56703)
360
- [PASS] test_quoteOFT_RateLimiterUsage() (gas: 97744)
361
- [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 160139)
362
- [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 137878, ~: 137703)
363
- [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84387)
364
- [PASS] test_rateLimit_Inflow() (gas: 87713)
365
- [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 80123)
366
- [PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 116713)
367
- [PASS] test_send() (gas: 352734)
368
- [PASS] test_send_PushesFees() (gas: 415282)
369
- [PASS] test_send_Revert_FeeTransferFailed() (gas: 157067)
370
- [PASS] test_send_Revert_IncorrectMessageValue_TooHigh() (gas: 30287)
371
- [PASS] test_send_Revert_IncorrectMessageValue_TooLow() (gas: 30257)
372
- [PASS] test_send_Revert_IncorrectMessageValue_ZeroValue() (gas: 22753)
373
- [PASS] test_send_Revert_MsgInspection() (gas: 221169)
374
- [PASS] test_send_WithFee() (gas: 415240)
375
- [PASS] test_setFeeDeposit() (gas: 28425)
376
- [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22627)
377
- [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38919, ~: 39011)
378
- [PASS] test_token() (gas: 13483)
379
- Suite result: ok. 39 passed; 0 failed; 0 skipped; finished in 1.82s (2.34s CPU time)
302
+ Ran 33 tests for test/OFTBurnSelfMintExtendedRBACAlt.t.sol:OFTBurnSelfMintExtendedRBACAltTest
303
+ [PASS] test_credit() (gas: 89873)
304
+ [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93180, ~: 93305)
305
+ [PASS] test_debit() (gas: 120710)
306
+ [PASS] test_debit_Dust() (gas: 145216)
307
+ [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 147643, ~: 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, μ: 167756, ~: 170245)
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, ~: 193524)
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, μ: 38933, ~: 39034)
336
+ Suite result: ok. 33 passed; 0 failed; 0 skipped; finished in 1.29s (2.35s CPU time)
380
337
 
381
- Ran 9 test suites in 1.90s (13.73s CPU time): 292 tests passed, 0 failed, 0 skipped (292 total tests)
382
- ⏳ forge test: 1:00.465 (m:ss.mmm)
338
+ Ran 9 test suites in 1.55s (10.92s CPU time): 292 tests passed, 0 failed, 0 skipped (292 total tests)
339
+ ⏳ forge test: 1:14.814 (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.77",
3
+ "version": "0.2.78",
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.77",
18
- "@layerzerolabs/solhint-configuration": "0.2.77",
19
- "@layerzerolabs/oft-evm-contracts": "0.2.77",
20
- "@layerzerolabs/oapp-upgradeable-evm-contracts": "0.2.77",
21
- "@layerzerolabs/test-utils-evm-contracts": "0.2.77",
22
- "@layerzerolabs/tsup-configuration": "0.2.77",
23
- "@layerzerolabs/utils-evm-contracts": "0.2.77",
24
- "@layerzerolabs/vm-tooling-evm": "0.2.77",
25
- "@layerzerolabs/utils-upgradeable-evm-contracts": "0.2.77",
26
- "@layerzerolabs/typescript-configuration": "0.2.77"
17
+ "@layerzerolabs/oapp-evm-contracts": "0.2.78",
18
+ "@layerzerolabs/oft-evm-contracts": "0.2.78",
19
+ "@layerzerolabs/oapp-upgradeable-evm-contracts": "0.2.78",
20
+ "@layerzerolabs/test-utils-evm-contracts": "0.2.78",
21
+ "@layerzerolabs/solhint-configuration": "0.2.78",
22
+ "@layerzerolabs/typescript-configuration": "0.2.78",
23
+ "@layerzerolabs/tsup-configuration": "0.2.78",
24
+ "@layerzerolabs/utils-evm-contracts": "0.2.78",
25
+ "@layerzerolabs/utils-upgradeable-evm-contracts": "0.2.78",
26
+ "@layerzerolabs/vm-tooling-evm": "0.2.78"
27
27
  },
28
28
  "publishConfig": {
29
29
  "access": "public",