@layerzerolabs/oft-upgradeable-evm-contracts 0.2.107 → 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,14 +12,16 @@
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:116871) [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
- 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)
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
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)
20
22
  👤 Running container as UID:GID 1001:1001
21
23
  🌍 Using 1 custom environment variable(s)
22
- $ docker run --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
24
+ $ 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
23
25
  Compiling 76 Solidity files
24
26
  Warning: Contract code size is 28075 bytes and exceeds 24576 bytes (a limit introduced in Spurious Dragon). This contract may not be deployable on Mainnet. Consider enabling the optimizer (with a low "runs" value!), turning off revert strings, or using libraries.
25
27
  --> contracts/extended/OFTBurnMintExtendedRBACUpgradeable.sol:28:1:
@@ -71,7 +73,7 @@ Warning: Contract code size is 27524 bytes and exceeds 24576 bytes (a limit intr
71
73
 
72
74
 
73
75
  Successfully compiled 76 Solidity files
74
- ⏳ hardhat compile --config /hardhat/hardhat.default.config.js: 10.623s
76
+ ⏳ hardhat compile --config /hardhat/hardhat.default.config.js: 10.527s
75
77
   WARN  Issue while reading "/home/runner/work/monorepo-internal/monorepo-internal/.npmrc". Failed to replace env in config: ${NPM_TOKEN}
76
78
 
77
79
  > @layerzerolabs/oft-upgradeable-evm-contracts@0.0.0 compile:zksync /home/runner/work/monorepo-internal/monorepo-internal/apps/oft-app/contracts/evm/upgradeable
@@ -81,20 +83,22 @@ Successfully compiled 76 Solidity files
81
83
  ✅ forge-1.3.6-hardhat-2.26.3
82
84
  🔧 hardhat version: 2.26.3
83
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
84
- (node:119580) [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.
85
87
  Reparsing as ES module because module syntax was detected. This incurs a performance overhead.
86
88
  To eliminate this warning, add "type": "module" to /home/runner/work/monorepo-internal/monorepo-internal/package.json.
87
89
  (Use `node --trace-warnings ...` to show where the warning was created)
88
- 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)
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
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)
89
93
  👤 Running container as UID:GID 1001:1001
90
94
  🌍 Using 1 custom environment variable(s)
91
- $ docker run --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 zksync-mainnet
95
+ $ 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 zksync-mainnet
92
96
  The solc version 1.3.22 is deprecated and will be removed for security reasons soon. Please update to v1.4.0 or newer.
93
97
  The zksolc compiler version in your Hardhat config file (1.3.22) is not the latest. We recommend using the latest version 1.5.15.
94
98
  Compiling contracts for ZKsync Era with zksolc v1.3.22 and zkvm-solc v0.8.23-1.0.1
95
99
  Compiling 76 Solidity files
96
100
  Successfully compiled 76 Solidity files
97
- ⏳ hardhat compile --config /hardhat/hardhat.default.config.js --network zksync-mainnet: 1:27.323 (m:ss.mmm)
101
+ ⏳ hardhat compile --config /hardhat/hardhat.default.config.js --network zksync-mainnet: 1:23.193 (m:ss.mmm)
98
102
   WARN  Issue while reading "/home/runner/work/monorepo-internal/monorepo-internal/.npmrc". Failed to replace env in config: ${NPM_TOKEN}
99
103
 
100
104
  > @layerzerolabs/oft-upgradeable-evm-contracts@0.0.0 compile:tron /home/runner/work/monorepo-internal/monorepo-internal/apps/oft-app/contracts/evm/upgradeable
@@ -104,17 +108,19 @@ Successfully compiled 76 Solidity files
104
108
  ✅ forge-1.3.6-hardhat-2.26.3
105
109
  🔧 hardhat version: 2.26.3
106
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
107
- (node:161367) [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.
108
112
  Reparsing as ES module because module syntax was detected. This incurs a performance overhead.
109
113
  To eliminate this warning, add "type": "module" to /home/runner/work/monorepo-internal/monorepo-internal/package.json.
110
114
  (Use `node --trace-warnings ...` to show where the warning was created)
111
- 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)
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
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)
112
118
  👤 Running container as UID:GID 1001:1001
113
119
  🌍 Using 1 custom environment variable(s)
114
- $ docker run --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
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
115
121
  detected tron network, replacing deployments extension with custom one
116
- Tron-solc v0.8.23 is unknown version, attempting anyway...
117
122
  Compiling contracts with tron solc v0.8.23
123
+ Tron-solc v0.8.23 is unknown version, attempting anyway...
118
124
  Compiling 76 Solidity files
119
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.
120
126
  --> contracts/extended/OFTBurnMintExtendedRBACUpgradeable.sol:28:1:
@@ -166,4 +172,4 @@ Warning: Contract code size is 29394 bytes and exceeds 24576 bytes (a limit intr
166
172
 
167
173
 
168
174
  Successfully compiled 76 Solidity files
169
- ⏳ hardhat compile --config /hardhat/hardhat.default.config.js --network tron-mainnet: 32.753s
175
+ ⏳ hardhat compile --config /hardhat/hardhat.default.config.js --network tron-mainnet: 34.895s
@@ -2,7 +2,7 @@
2
2
  > @layerzerolabs/oft-upgradeable-evm-contracts@0.0.0 lint /home/runner/work/monorepo-internal/monorepo-internal/apps/oft-app/contracts/evm/upgradeable
3
3
  > solhint --config solhint.config.js 'contracts/**/*.sol' 'test/**/*.sol' --fix --noPrompt
4
4
 
5
- A new version of Solhint is available: 6.2.2
5
+ A new version of Solhint is available: 6.2.3
6
6
  Please consider updating your Solhint package.
7
7
 
8
8
  contracts/extended/alt/OFTBurnMintExtendedRBACAltUpgradeable.sol
@@ -5,99 +5,107 @@
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:444366) [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 63.56s
92
+ Solc 0.8.22 finished in 63.95s
17
93
  Compiler run successful!
18
94
 
19
- Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACRedeemIssueTest
20
- [PASS] test_credit() (gas: 89907)
21
- [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93373, ~: 93339)
22
- [PASS] test_debit() (gas: 98305)
23
- [PASS] test_debit_Dust() (gas: 139763)
24
- [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 142743, ~: 143477)
25
- [PASS] test_debit_PushesFees() (gas: 165812)
26
- [PASS] test_debit_Revert_SlippageExceeded() (gas: 131894)
27
- [PASS] test_debit_SmallAmount_DustOnly() (gas: 139827)
28
- [PASS] test_debit_WithFee() (gas: 165286)
29
- [PASS] test_debit_WithFee_Dust() (gas: 165900)
30
- [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 169050, ~: 171220)
31
- [PASS] test_initialize() (gas: 24722)
32
- [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
33
- [PASS] test_pause_unpause() (gas: 130445)
34
- [PASS] test_quoteOFT() (gas: 70712)
35
- [PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
36
- [PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59195)
37
- [PASS] test_quoteOFT_Paused() (gas: 56570)
38
- [PASS] test_quoteOFT_RateLimiterUsage() (gas: 185614)
39
- [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 233430)
40
- [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 200495, ~: 200315)
41
- [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84276)
42
- [PASS] test_rateLimit_Inflow() (gas: 108772)
43
- [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
44
- [PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 179385)
45
- [PASS] test_send() (gas: 400494)
46
- [PASS] test_send_Revert_MsgInspection() (gas: 308847)
47
- [PASS] test_send_WithFee() (gas: 477358)
48
- [PASS] test_setFeeDeposit() (gas: 28359)
49
- [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
50
- [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38897, ~: 38967)
51
- Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 1.23s (3.34s CPU time)
52
-
53
- Ran 31 tests for test/OFTLockUnlockExtendedRBAC.t.sol:OFTLockUnlockExtendedRBACTest
54
- [PASS] test_credit() (gas: 89882)
55
- [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93224, ~: 93314)
56
- [PASS] test_debit() (gas: 113036)
57
- [PASS] test_debit_Dust() (gas: 135880)
58
- [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 138479, ~: 138823)
59
- [PASS] test_debit_PushesFees() (gas: 161342)
60
- [PASS] test_debit_Revert_SlippageExceeded() (gas: 131850)
61
- [PASS] test_debit_SmallAmount_DustOnly() (gas: 135931)
62
- [PASS] test_debit_WithFee() (gas: 163924)
63
- [PASS] test_debit_WithFee_Dust() (gas: 161430)
64
- [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 162123, ~: 160967)
65
- [PASS] test_initialize() (gas: 24678)
66
- [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92822)
67
- [PASS] test_pause_unpause() (gas: 143924)
68
- [PASS] test_quoteOFT() (gas: 70757)
69
- [PASS] test_quoteOFT_GloballyDisabled() (gas: 80605)
70
- [PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59262)
71
- [PASS] test_quoteOFT_Paused() (gas: 56637)
72
- [PASS] test_quoteOFT_RateLimiterUsage() (gas: 198848)
73
- [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 241184)
74
- [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 196080, ~: 195912)
75
- [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84321)
76
- [PASS] test_rateLimit_Inflow() (gas: 130622)
77
- [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157652)
78
- [PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 174915)
79
- [PASS] test_send() (gas: 418929)
80
- [PASS] test_send_Revert_MsgInspection() (gas: 325718)
81
- [PASS] test_send_WithFee() (gas: 474453)
82
- [PASS] test_setFeeDeposit() (gas: 28337)
83
- [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22583)
84
- [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38849, ~: 38945)
85
- Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 1.28s (3.76s CPU time)
86
-
87
95
  Ran 39 tests for test/OFTNativeExtendedRBAC.t.sol:OFTNativeExtendedRBACTest
88
96
  [PASS] test_approvalRequired() (gas: 13426)
89
97
  [PASS] test_credit() (gas: 62369)
90
- [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 65725, ~: 65954)
98
+ [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 65752, ~: 65954)
91
99
  [PASS] test_credit_Revert_CreditFailed() (gas: 91478)
92
100
  [PASS] test_debit() (gas: 36831)
93
101
  [PASS] test_debit_Dust() (gas: 76272)
94
- [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 79238, ~: 79886)
102
+ [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 79424, ~: 79886)
95
103
  [PASS] test_debit_PushesFees() (gas: 101339)
96
104
  [PASS] test_debit_Revert_SlippageExceeded() (gas: 54229)
97
105
  [PASS] test_debit_SmallAmount_DustOnly() (gas: 76226)
98
106
  [PASS] test_debit_WithFee() (gas: 101145)
99
107
  [PASS] test_debit_WithFee_Dust() (gas: 102376)
100
- [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 105835, ~: 107585)
108
+ [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 105795, ~: 107585)
101
109
  [PASS] test_initialize() (gas: 22406)
102
110
  [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92778)
103
111
  [PASS] test_pause_unpause() (gas: 61117)
@@ -107,7 +115,7 @@ Ran 39 tests for test/OFTNativeExtendedRBAC.t.sol:OFTNativeExtendedRBACTest
107
115
  [PASS] test_quoteOFT_Paused() (gas: 56703)
108
116
  [PASS] test_quoteOFT_RateLimiterUsage() (gas: 97744)
109
117
  [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 160139)
110
- [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 137870, ~: 137703)
118
+ [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 137888, ~: 137703)
111
119
  [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84387)
112
120
  [PASS] test_rateLimit_Inflow() (gas: 87713)
113
121
  [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 80123)
@@ -122,22 +130,22 @@ Ran 39 tests for test/OFTNativeExtendedRBAC.t.sol:OFTNativeExtendedRBACTest
122
130
  [PASS] test_send_WithFee() (gas: 415240)
123
131
  [PASS] test_setFeeDeposit() (gas: 28425)
124
132
  [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22627)
125
- [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38915, ~: 39011)
133
+ [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38939, ~: 39011)
126
134
  [PASS] test_token() (gas: 13483)
127
- Suite result: ok. 39 passed; 0 failed; 0 skipped; finished in 1.28s (2.51s CPU time)
135
+ Suite result: ok. 39 passed; 0 failed; 0 skipped; finished in 446.14ms (979.33ms CPU time)
128
136
 
129
137
  Ran 32 tests for test/OFTLockUnlockExtendedRBACAlt.t.sol:OFTLockUnlockExtendedRBACAltTest
130
138
  [PASS] test_credit() (gas: 91882)
131
- [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 95046, ~: 95314)
139
+ [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 95351, ~: 95314)
132
140
  [PASS] test_debit() (gas: 113036)
133
141
  [PASS] test_debit_Dust() (gas: 137551)
134
- [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 139974, ~: 141029)
142
+ [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 139996, ~: 140423)
135
143
  [PASS] test_debit_PushesFees() (gas: 163342)
136
144
  [PASS] test_debit_Revert_SlippageExceeded() (gas: 133828)
137
145
  [PASS] test_debit_SmallAmount_DustOnly() (gas: 137513)
138
146
  [PASS] test_debit_WithFee() (gas: 163924)
139
147
  [PASS] test_debit_WithFee_Dust() (gas: 163430)
140
- [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 163803, ~: 162567)
148
+ [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 163696, ~: 162567)
141
149
  [PASS] test_initialize() (gas: 24656)
142
150
  [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92822)
143
151
  [PASS] test_pause_unpause() (gas: 145524)
@@ -147,7 +155,7 @@ Ran 32 tests for test/OFTLockUnlockExtendedRBACAlt.t.sol:OFTLockUnlockExtendedRB
147
155
  [PASS] test_quoteOFT_Paused() (gas: 56637)
148
156
  [PASS] test_quoteOFT_RateLimiterUsage() (gas: 200448)
149
157
  [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 242784)
150
- [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 198101, ~: 197912)
158
+ [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 198098, ~: 197912)
151
159
  [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84299)
152
160
  [PASS] test_rateLimit_Inflow() (gas: 132710)
153
161
  [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 159652)
@@ -158,91 +166,57 @@ Ran 32 tests for test/OFTLockUnlockExtendedRBACAlt.t.sol:OFTLockUnlockExtendedRB
158
166
  [PASS] test_send_WithFee() (gas: 516566)
159
167
  [PASS] test_setFeeDeposit() (gas: 28423)
160
168
  [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22583)
161
- [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38872, ~: 39012)
162
- Suite result: ok. 32 passed; 0 failed; 0 skipped; finished in 1.32s (3.44s 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)
163
171
 
164
- Ran 32 tests for test/OFTBurnSelfMintExtendedRBAC.t.sol:OFTBurnSelfMintExtendedRBACTest
172
+ Ran 33 tests for test/OFTBurnSelfMintExtendedRBACAlt.t.sol:OFTBurnSelfMintExtendedRBACAltTest
165
173
  [PASS] test_credit() (gas: 89873)
166
- [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93116, ~: 93305)
174
+ [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93239, ~: 93305)
167
175
  [PASS] test_debit() (gas: 120710)
168
- [PASS] test_debit_Dust() (gas: 143616)
169
- [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 145540, ~: 146486)
170
- [PASS] test_debit_PushesFees() (gas: 164384)
171
- [PASS] test_debit_Revert_SlippageExceeded() (gas: 131872)
172
- [PASS] test_debit_SmallAmount_DustOnly() (gas: 143579)
173
- [PASS] test_debit_TokensTransferredToSelfThenBurned() (gas: 122517)
174
- [PASS] test_debit_WithFee() (gas: 166449)
175
- [PASS] test_debit_WithFee_Dust() (gas: 164455)
176
- [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 166785, ~: 168645)
177
- [PASS] test_initialize() (gas: 24700)
178
- [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
179
- [PASS] test_pause_unpause() (gas: 151598)
180
- [PASS] test_quoteOFT() (gas: 70712)
181
- [PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
182
- [PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59173)
183
- [PASS] test_quoteOFT_Paused() (gas: 56570)
184
- [PASS] test_quoteOFT_RateLimiterUsage() (gas: 242240)
185
- [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 268746)
186
- [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 192043, ~: 191921)
187
- [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84254)
188
- [PASS] test_rateLimit_Inflow() (gas: 108738)
189
- [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
190
- [PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 175225)
191
- [PASS] test_send() (gas: 387136)
192
- [PASS] test_send_Revert_MsgInspection() (gas: 335267)
193
- [PASS] test_send_WithFee() (gas: 462592)
194
- [PASS] test_setFeeDeposit() (gas: 28445)
195
- [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
196
- [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38935, ~: 39034)
197
- Suite result: ok. 32 passed; 0 failed; 0 skipped; finished in 1.50s (3.89s CPU time)
198
-
199
- Ran 32 tests for test/OFTBurnMintExtendedRBACAlt.t.sol:OFTBurnMintExtendedRBACAltTest
200
- [PASS] test_credit() (gas: 89871)
201
- [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93134, ~: 93303)
202
- [PASS] test_debit() (gas: 98327)
203
- [PASS] test_debit_Dust() (gas: 141836)
204
- [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 144310, ~: 145461)
205
- [PASS] test_debit_PushesFees() (gas: 167796)
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)
206
179
  [PASS] test_debit_Revert_SlippageExceeded() (gas: 133872)
207
- [PASS] test_debit_SmallAmount_DustOnly() (gas: 141789)
208
- [PASS] test_debit_WithFee() (gas: 165270)
209
- [PASS] test_debit_WithFee_Dust() (gas: 167884)
210
- [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 171147, ~: 173204)
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)
211
185
  [PASS] test_initialize() (gas: 24700)
212
186
  [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
213
- [PASS] test_pause_unpause() (gas: 132067)
187
+ [PASS] test_pause_unpause() (gas: 153198)
214
188
  [PASS] test_quoteOFT() (gas: 70712)
215
189
  [PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
216
190
  [PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59173)
217
191
  [PASS] test_quoteOFT_Paused() (gas: 56570)
218
- [PASS] test_quoteOFT_RateLimiterUsage() (gas: 187257)
219
- [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 235398)
220
- [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 202491, ~: 202299)
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)
221
195
  [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84254)
222
- [PASS] test_rateLimit_Inflow() (gas: 108824)
196
+ [PASS] test_rateLimit_Inflow() (gas: 108826)
223
197
  [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 159696)
224
- [PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 181347)
225
- [PASS] test_send() (gas: 421733)
226
- [PASS] test_send_Revert_MsgInspection() (gas: 310849)
227
- [PASS] test_send_Revert_OnlyAltToken() (gas: 198819)
228
- [PASS] test_send_WithFee() (gas: 493959)
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)
229
203
  [PASS] test_setFeeDeposit() (gas: 28445)
230
204
  [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
231
- [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38942, ~: 39034)
232
- Suite result: ok. 32 passed; 0 failed; 0 skipped; finished in 1.50s (4.28s CPU time)
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)
233
207
 
234
208
  Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACTest
235
209
  [PASS] test_credit() (gas: 89871)
236
- [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 92992, ~: 93303)
210
+ [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93141, ~: 93303)
237
211
  [PASS] test_debit() (gas: 98327)
238
212
  [PASS] test_debit_Dust() (gas: 139747)
239
- [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 142759, ~: 143461)
213
+ [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 142828, ~: 143461)
240
214
  [PASS] test_debit_PushesFees() (gas: 165796)
241
215
  [PASS] test_debit_Revert_SlippageExceeded() (gas: 131894)
242
216
  [PASS] test_debit_SmallAmount_DustOnly() (gas: 139811)
243
217
  [PASS] test_debit_WithFee() (gas: 165270)
244
218
  [PASS] test_debit_WithFee_Dust() (gas: 165884)
245
- [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 168596, ~: 171204)
219
+ [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 169141, ~: 171204)
246
220
  [PASS] test_initialize() (gas: 24722)
247
221
  [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
248
222
  [PASS] test_pause_unpause() (gas: 130467)
@@ -252,7 +226,7 @@ Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACTest
252
226
  [PASS] test_quoteOFT_Paused() (gas: 56570)
253
227
  [PASS] test_quoteOFT_RateLimiterUsage() (gas: 185657)
254
228
  [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 233398)
255
- [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 200479, ~: 200299)
229
+ [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 200456, ~: 200299)
256
230
  [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84276)
257
231
  [PASS] test_rateLimit_Inflow() (gas: 108736)
258
232
  [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
@@ -262,57 +236,21 @@ Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACTest
262
236
  [PASS] test_send_WithFee() (gas: 477338)
263
237
  [PASS] test_setFeeDeposit() (gas: 28359)
264
238
  [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
265
- [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38890, ~: 38967)
266
- Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 1.51s (4.73s CPU time)
267
-
268
- Ran 33 tests for test/OFTBurnSelfMintExtendedRBACAlt.t.sol:OFTBurnSelfMintExtendedRBACAltTest
269
- [PASS] test_credit() (gas: 89873)
270
- [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93041, ~: 93305)
271
- [PASS] test_debit() (gas: 120710)
272
- [PASS] test_debit_Dust() (gas: 145216)
273
- [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 147791, ~: 148086)
274
- [PASS] test_debit_PushesFees() (gas: 165984)
275
- [PASS] test_debit_Revert_SlippageExceeded() (gas: 133872)
276
- [PASS] test_debit_SmallAmount_DustOnly() (gas: 145179)
277
- [PASS] test_debit_TokensTransferredToSelfThenBurned() (gas: 122500)
278
- [PASS] test_debit_WithFee() (gas: 166449)
279
- [PASS] test_debit_WithFee_Dust() (gas: 166055)
280
- [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 168528, ~: 170245)
281
- [PASS] test_initialize() (gas: 24700)
282
- [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
283
- [PASS] test_pause_unpause() (gas: 153198)
284
- [PASS] test_quoteOFT() (gas: 70712)
285
- [PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
286
- [PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59173)
287
- [PASS] test_quoteOFT_Paused() (gas: 56570)
288
- [PASS] test_quoteOFT_RateLimiterUsage() (gas: 243840)
289
- [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 270346)
290
- [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 193665, ~: 193521)
291
- [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84254)
292
- [PASS] test_rateLimit_Inflow() (gas: 108826)
293
- [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 159696)
294
- [PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 176825)
295
- [PASS] test_send() (gas: 456534)
296
- [PASS] test_send_Revert_MsgInspection() (gas: 337267)
297
- [PASS] test_send_Revert_OnlyAltToken() (gas: 250697)
298
- [PASS] test_send_WithFee() (gas: 504694)
299
- [PASS] test_setFeeDeposit() (gas: 28445)
300
- [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
301
- [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38938, ~: 39034)
302
- Suite result: ok. 33 passed; 0 failed; 0 skipped; finished in 1.60s (3.42s 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)
303
241
 
304
242
  Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACCrosschainTest
305
243
  [PASS] test_credit() (gas: 89874)
306
- [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93220, ~: 93306)
244
+ [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93055, ~: 93306)
307
245
  [PASS] test_debit() (gas: 98332)
308
246
  [PASS] test_debit_Dust() (gas: 139763)
309
- [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 142484, ~: 143477)
247
+ [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 142925, ~: 143477)
310
248
  [PASS] test_debit_PushesFees() (gas: 165812)
311
249
  [PASS] test_debit_Revert_SlippageExceeded() (gas: 131894)
312
250
  [PASS] test_debit_SmallAmount_DustOnly() (gas: 139827)
313
251
  [PASS] test_debit_WithFee() (gas: 165286)
314
252
  [PASS] test_debit_WithFee_Dust() (gas: 165900)
315
- [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 168972, ~: 171220)
253
+ [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 168800, ~: 171220)
316
254
  [PASS] test_initialize() (gas: 24722)
317
255
  [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
318
256
  [PASS] test_pause_unpause() (gas: 130472)
@@ -322,7 +260,7 @@ Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACCross
322
260
  [PASS] test_quoteOFT_Paused() (gas: 56570)
323
261
  [PASS] test_quoteOFT_RateLimiterUsage() (gas: 185667)
324
262
  [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 233430)
325
- [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 200498, ~: 200315)
263
+ [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 200486, ~: 200315)
326
264
  [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84276)
327
265
  [PASS] test_rateLimit_Inflow() (gas: 108739)
328
266
  [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
@@ -332,8 +270,146 @@ Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACCross
332
270
  [PASS] test_send_WithFee() (gas: 477358)
333
271
  [PASS] test_setFeeDeposit() (gas: 28359)
334
272
  [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
335
- [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38885, ~: 38967)
336
- Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 1.61s (3.98s 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)
275
+
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)
283
+ [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)
288
+ [PASS] test_initialize() (gas: 24722)
289
+ [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
290
+ [PASS] test_pause_unpause() (gas: 130445)
291
+ [PASS] test_quoteOFT() (gas: 70712)
292
+ [PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
293
+ [PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59195)
294
+ [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)
298
+ [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84276)
299
+ [PASS] test_rateLimit_Inflow() (gas: 108772)
300
+ [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)
305
+ [PASS] test_setFeeDeposit() (gas: 28359)
306
+ [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)
309
+
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)
313
+ [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)
319
+ [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)
323
+ [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92822)
324
+ [PASS] test_pause_unpause() (gas: 143924)
325
+ [PASS] test_quoteOFT() (gas: 70757)
326
+ [PASS] test_quoteOFT_GloballyDisabled() (gas: 80605)
327
+ [PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59262)
328
+ [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)
340
+ [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)
378
+
379
+ Ran 32 tests for test/OFTBurnSelfMintExtendedRBAC.t.sol:OFTBurnSelfMintExtendedRBACTest
380
+ [PASS] test_credit() (gas: 89873)
381
+ [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93142, ~: 93305)
382
+ [PASS] test_debit() (gas: 120710)
383
+ [PASS] test_debit_Dust() (gas: 143616)
384
+ [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 145955, ~: 146486)
385
+ [PASS] test_debit_PushesFees() (gas: 164384)
386
+ [PASS] test_debit_Revert_SlippageExceeded() (gas: 131872)
387
+ [PASS] test_debit_SmallAmount_DustOnly() (gas: 143579)
388
+ [PASS] test_debit_TokensTransferredToSelfThenBurned() (gas: 122517)
389
+ [PASS] test_debit_WithFee() (gas: 166449)
390
+ [PASS] test_debit_WithFee_Dust() (gas: 164455)
391
+ [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 166620, ~: 168646)
392
+ [PASS] test_initialize() (gas: 24700)
393
+ [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
394
+ [PASS] test_pause_unpause() (gas: 151598)
395
+ [PASS] test_quoteOFT() (gas: 70712)
396
+ [PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
397
+ [PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59173)
398
+ [PASS] test_quoteOFT_Paused() (gas: 56570)
399
+ [PASS] test_quoteOFT_RateLimiterUsage() (gas: 242240)
400
+ [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 268746)
401
+ [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 192061, ~: 191921)
402
+ [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84254)
403
+ [PASS] test_rateLimit_Inflow() (gas: 108738)
404
+ [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
405
+ [PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 175225)
406
+ [PASS] test_send() (gas: 387136)
407
+ [PASS] test_send_Revert_MsgInspection() (gas: 335267)
408
+ [PASS] test_send_WithFee() (gas: 462592)
409
+ [PASS] test_setFeeDeposit() (gas: 28445)
410
+ [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)
337
413
 
338
- Ran 9 test suites in 1.76s (12.81s CPU time): 292 tests passed, 0 failed, 0 skipped (292 total tests)
339
- ⏳ forge test: 1:10.878 (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.107",
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-evm-contracts": "0.2.107",
18
- "@layerzerolabs/oapp-upgradeable-evm-contracts": "0.2.107",
19
- "@layerzerolabs/solhint-configuration": "0.2.107",
20
- "@layerzerolabs/tsup-configuration": "0.2.107",
21
- "@layerzerolabs/typescript-configuration": "0.2.107",
22
- "@layerzerolabs/oft-evm-contracts": "0.2.107",
23
- "@layerzerolabs/test-utils-evm-contracts": "0.2.107",
24
- "@layerzerolabs/utils-upgradeable-evm-contracts": "0.2.107",
25
- "@layerzerolabs/vm-tooling-evm": "0.2.107",
26
- "@layerzerolabs/utils-evm-contracts": "0.2.107"
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",