@layerzerolabs/oft-upgradeable-evm-contracts 1.2.11 → 1.2.12

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.
@@ -11,23 +11,103 @@
11
11
   WARN  Issue while reading "/home/runner/work/monorepo-internal/monorepo-internal/.npmrc". Failed to replace env in config: ${NPM_TOKEN}
12
12
  ✅ forge-1.3.6-hardhat-2.26.3
13
13
  🔧 hardhat version: 2.26.3
14
- 📦 Using scoped workspace: /tmp/lz-scoped-workspace-hzlk3e
14
+ 📦 Using scoped workspace: /tmp/lz-scoped-workspace-yZlnx0
15
15
  📦 Copied 13 workspace package source(s)
16
16
  📦 No scoped-workspace pruner configured; using unpruned package-level source copy fallback.
17
- (node:208154) [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.
17
+ (node:30031) [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.
18
18
  Reparsing as ES module because module syntax was detected. This incurs a performance overhead.
19
19
  To eliminate this warning, add "type": "module" to /home/runner/work/monorepo-internal/monorepo-internal/package.json.
20
20
  (Use `node --trace-warnings ...` to show where the warning was created)
21
21
  📦 Docker volumes:
22
- -v /tmp/lz-scoped-workspace-hzlk3e:/workspace
22
+ -v /tmp/lz-scoped-workspace-yZlnx0:/workspace
23
23
  -v /home/runner/work/monorepo-internal/monorepo-internal/apps/oft-app/contracts/evm/upgradeable:/workspace/apps/oft-app/contracts/evm/upgradeable
24
24
  -v /home/runner/work/monorepo-internal/monorepo-internal/node_modules/.pnpm:/workspace/node_modules/.pnpm:ro
25
25
  $ 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
26
+ 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
27
+ 📥 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 (platform: linux/amd64)
28
+ $ docker pull --platform linux/amd64 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3
29
+ forge-1.3.6-hardhat-2.26.3-patch-3: Pulling from layerzerolabs/evm-tooling
30
+ 86ec798129ac: Pulling fs layer
31
+ eef7c391911c: Pulling fs layer
32
+ cc2ecf4065b7: Pulling fs layer
33
+ 5760fdd70374: Pulling fs layer
34
+ c70db14240a1: Pulling fs layer
35
+ 0cb2c6965bde: Pulling fs layer
36
+ 885bca26f927: Pulling fs layer
37
+ 8e167e77288f: Pulling fs layer
38
+ 45d43cc973ba: Pulling fs layer
39
+ 44c09156221f: Pulling fs layer
40
+ f2fb700979ad: Pulling fs layer
41
+ 2a1ced882ba9: Pulling fs layer
42
+ 597168d5c38e: Pulling fs layer
43
+ e431adaf232f: Pulling fs layer
44
+ 36e15e3f2788: Pulling fs layer
45
+ 36e15e3f2788: Waiting
46
+ 0cb2c6965bde: Waiting
47
+ 885bca26f927: Waiting
48
+ 8e167e77288f: Waiting
49
+ 45d43cc973ba: Waiting
50
+ 597168d5c38e: Waiting
51
+ 2a1ced882ba9: Waiting
52
+ e431adaf232f: Waiting
53
+ 44c09156221f: Waiting
54
+ f2fb700979ad: Waiting
55
+ cc2ecf4065b7: Waiting
56
+ 86ec798129ac: Waiting
57
+ 5760fdd70374: Waiting
58
+ eef7c391911c: Waiting
59
+ c70db14240a1: Waiting
60
+ eef7c391911c: Verifying Checksum
61
+ eef7c391911c: Download complete
62
+ 86ec798129ac: Verifying Checksum
63
+ 86ec798129ac: Download complete
64
+ 5760fdd70374: Verifying Checksum
65
+ 5760fdd70374: Download complete
66
+ c70db14240a1: Download complete
67
+ cc2ecf4065b7: Verifying Checksum
68
+ cc2ecf4065b7: Download complete
69
+ 0cb2c6965bde: Verifying Checksum
70
+ 0cb2c6965bde: Download complete
71
+ 86ec798129ac: Pull complete
72
+ eef7c391911c: Pull complete
73
+ 8e167e77288f: Verifying Checksum
74
+ 8e167e77288f: Download complete
75
+ 45d43cc973ba: Verifying Checksum
76
+ 44c09156221f: Verifying Checksum
77
+ 44c09156221f: Download complete
78
+ f2fb700979ad: Verifying Checksum
79
+ f2fb700979ad: Download complete
80
+ cc2ecf4065b7: Pull complete
81
+ 5760fdd70374: Pull complete
82
+ c70db14240a1: Pull complete
83
+ 2a1ced882ba9: Verifying Checksum
84
+ 2a1ced882ba9: Download complete
85
+ 597168d5c38e: Verifying Checksum
86
+ 597168d5c38e: Download complete
87
+ 0cb2c6965bde: Pull complete
88
+ 885bca26f927: Verifying Checksum
89
+ 885bca26f927: Download complete
90
+ e431adaf232f: Verifying Checksum
91
+ e431adaf232f: Download complete
92
+ 36e15e3f2788: Verifying Checksum
93
+ 36e15e3f2788: Download complete
94
+ 885bca26f927: Pull complete
95
+ 8e167e77288f: Pull complete
96
+ 45d43cc973ba: Pull complete
97
+ 44c09156221f: Pull complete
98
+ f2fb700979ad: Pull complete
99
+ 2a1ced882ba9: Pull complete
100
+ 597168d5c38e: Pull complete
101
+ e431adaf232f: Pull complete
102
+ 36e15e3f2788: Pull complete
103
+ Digest: sha256:08b858b586759ec59f4df44c0bc5eac9f856a1eb32b6ce37f79f31a20a89ed52
104
+ 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
105
+ 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3
26
106
  $ 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
27
- $ docker container rm baef7d2e1417fe11b602f5e341af43d81af6d7c7cf79b32f4baf6c40241d66ce
28
- ✅ 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)
107
+ $ docker container rm 5cea09f80519e89ad293379b9e14d69f1e032d97143a7b03db4e6e9f87bed504
108
+ ✅ Successfully pulled: 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3
29
109
  👤 Running container as UID:GID 1001:1001
30
- $ docker run --platform linux/amd64 --rm --add-host=host.docker.internal:host-gateway -e LOCAL_UID=1001 -e LOCAL_GID=1001 -v /tmp/lz-scoped-workspace-hzlk3e:/workspace -v /home/runner/work/monorepo-internal/monorepo-internal/apps/oft-app/contracts/evm/upgradeable:/workspace/apps/oft-app/contracts/evm/upgradeable -v /home/runner/work/monorepo-internal/monorepo-internal/node_modules/.pnpm:/workspace/node_modules/.pnpm:ro -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
110
+ $ docker run --platform linux/amd64 --rm --add-host=host.docker.internal:host-gateway -e LOCAL_UID=1001 -e LOCAL_GID=1001 -v /tmp/lz-scoped-workspace-yZlnx0:/workspace -v /home/runner/work/monorepo-internal/monorepo-internal/apps/oft-app/contracts/evm/upgradeable:/workspace/apps/oft-app/contracts/evm/upgradeable -v /home/runner/work/monorepo-internal/monorepo-internal/node_modules/.pnpm:/workspace/node_modules/.pnpm:ro -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
31
111
  Compiling 76 Solidity files
32
112
  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.
33
113
  --> contracts/extended/OFTBurnMintExtendedRBACUpgradeable.sol:28:1:
@@ -79,7 +159,7 @@ Warning: Contract code size is 27524 bytes and exceeds 24576 bytes (a limit intr
79
159
 
80
160
 
81
161
  Successfully compiled 76 Solidity files
82
- ⏳ hardhat compile --config /hardhat/hardhat.default.config.js: 8.933s
162
+ ⏳ hardhat compile --config /hardhat/hardhat.default.config.js: 10.351s
83
163
   WARN  Issue while reading "/home/runner/work/monorepo-internal/monorepo-internal/.npmrc". Failed to replace env in config: ${NPM_TOKEN}
84
164
 
85
165
  > @layerzerolabs/oft-upgradeable-evm-contracts@0.0.0 compile:zksync /home/runner/work/monorepo-internal/monorepo-internal/apps/oft-app/contracts/evm/upgradeable
@@ -88,29 +168,29 @@ Successfully compiled 76 Solidity files
88
168
   WARN  Issue while reading "/home/runner/work/monorepo-internal/monorepo-internal/.npmrc". Failed to replace env in config: ${NPM_TOKEN}
89
169
  ✅ forge-1.3.6-hardhat-2.26.3
90
170
  🔧 hardhat version: 2.26.3
91
- 📦 Using scoped workspace: /tmp/lz-scoped-workspace-mQwS8e
171
+ 📦 Using scoped workspace: /tmp/lz-scoped-workspace-OiRY2y
92
172
  📦 Copied 13 workspace package source(s)
93
173
  📦 No scoped-workspace pruner configured; using unpruned package-level source copy fallback.
94
- (node:220223) [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.
174
+ (node:31349) [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.
95
175
  Reparsing as ES module because module syntax was detected. This incurs a performance overhead.
96
176
  To eliminate this warning, add "type": "module" to /home/runner/work/monorepo-internal/monorepo-internal/package.json.
97
177
  (Use `node --trace-warnings ...` to show where the warning was created)
98
178
  📦 Docker volumes:
99
- -v /tmp/lz-scoped-workspace-mQwS8e:/workspace
179
+ -v /tmp/lz-scoped-workspace-OiRY2y:/workspace
100
180
  -v /home/runner/work/monorepo-internal/monorepo-internal/apps/oft-app/contracts/evm/upgradeable:/workspace/apps/oft-app/contracts/evm/upgradeable
101
181
  -v /home/runner/work/monorepo-internal/monorepo-internal/node_modules/.pnpm:/workspace/node_modules/.pnpm:ro
102
182
  $ 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
103
183
  $ 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
104
- $ docker container rm 3513a183f8cd2be871ca19f61e277a285f34f33b151bec3473de24116c40aac7
184
+ $ docker container rm 91ce964d78d1c721fd6602585d3ec403c4118d133d267a745c54237a2bbee886
105
185
  ✅ 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)
106
186
  👤 Running container as UID:GID 1001:1001
107
- $ docker run --platform linux/amd64 --rm --add-host=host.docker.internal:host-gateway -e LOCAL_UID=1001 -e LOCAL_GID=1001 -v /tmp/lz-scoped-workspace-mQwS8e:/workspace -v /home/runner/work/monorepo-internal/monorepo-internal/apps/oft-app/contracts/evm/upgradeable:/workspace/apps/oft-app/contracts/evm/upgradeable -v /home/runner/work/monorepo-internal/monorepo-internal/node_modules/.pnpm:/workspace/node_modules/.pnpm:ro -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
187
+ $ docker run --platform linux/amd64 --rm --add-host=host.docker.internal:host-gateway -e LOCAL_UID=1001 -e LOCAL_GID=1001 -v /tmp/lz-scoped-workspace-OiRY2y:/workspace -v /home/runner/work/monorepo-internal/monorepo-internal/apps/oft-app/contracts/evm/upgradeable:/workspace/apps/oft-app/contracts/evm/upgradeable -v /home/runner/work/monorepo-internal/monorepo-internal/node_modules/.pnpm:/workspace/node_modules/.pnpm:ro -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
108
188
  The solc version 1.3.22 is deprecated and will be removed for security reasons soon. Please update to v1.4.0 or newer.
109
189
  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.
110
190
  Compiling contracts for ZKsync Era with zksolc v1.3.22 and zkvm-solc v0.8.23-1.0.1
111
191
  Compiling 76 Solidity files
112
192
  Successfully compiled 76 Solidity files
113
- ⏳ hardhat compile --config /hardhat/hardhat.default.config.js --network zksync-mainnet: 1:05.580 (m:ss.mmm)
193
+ ⏳ hardhat compile --config /hardhat/hardhat.default.config.js --network zksync-mainnet: 1:15.210 (m:ss.mmm)
114
194
   WARN  Issue while reading "/home/runner/work/monorepo-internal/monorepo-internal/.npmrc". Failed to replace env in config: ${NPM_TOKEN}
115
195
 
116
196
  > @layerzerolabs/oft-upgradeable-evm-contracts@0.0.0 compile:tron /home/runner/work/monorepo-internal/monorepo-internal/apps/oft-app/contracts/evm/upgradeable
@@ -119,23 +199,23 @@ Successfully compiled 76 Solidity files
119
199
   WARN  Issue while reading "/home/runner/work/monorepo-internal/monorepo-internal/.npmrc". Failed to replace env in config: ${NPM_TOKEN}
120
200
  ✅ forge-1.3.6-hardhat-2.26.3
121
201
  🔧 hardhat version: 2.26.3
122
- 📦 Using scoped workspace: /tmp/lz-scoped-workspace-xgCdqS
202
+ 📦 Using scoped workspace: /tmp/lz-scoped-workspace-wXwMsz
123
203
  📦 Copied 13 workspace package source(s)
124
204
  📦 No scoped-workspace pruner configured; using unpruned package-level source copy fallback.
125
- (node:258859) [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.
205
+ (node:50477) [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.
126
206
  Reparsing as ES module because module syntax was detected. This incurs a performance overhead.
127
207
  To eliminate this warning, add "type": "module" to /home/runner/work/monorepo-internal/monorepo-internal/package.json.
128
208
  (Use `node --trace-warnings ...` to show where the warning was created)
129
209
  📦 Docker volumes:
130
- -v /tmp/lz-scoped-workspace-xgCdqS:/workspace
210
+ -v /tmp/lz-scoped-workspace-wXwMsz:/workspace
131
211
  -v /home/runner/work/monorepo-internal/monorepo-internal/apps/oft-app/contracts/evm/upgradeable:/workspace/apps/oft-app/contracts/evm/upgradeable
132
212
  -v /home/runner/work/monorepo-internal/monorepo-internal/node_modules/.pnpm:/workspace/node_modules/.pnpm:ro
133
213
  $ 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
134
214
  $ 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
135
- $ docker container rm 752cce81c7c84ac9db45f6e3cc73709ba8773780e223926b6c5b6424c9c552ac
215
+ $ docker container rm 96e53b59ae5018fe6191c57d5555811db5fa25be76f989cf1b5c794e8067ce8f
136
216
  ✅ 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)
137
217
  👤 Running container as UID:GID 1001:1001
138
- $ docker run --platform linux/amd64 --rm --add-host=host.docker.internal:host-gateway -e LOCAL_UID=1001 -e LOCAL_GID=1001 -v /tmp/lz-scoped-workspace-xgCdqS:/workspace -v /home/runner/work/monorepo-internal/monorepo-internal/apps/oft-app/contracts/evm/upgradeable:/workspace/apps/oft-app/contracts/evm/upgradeable -v /home/runner/work/monorepo-internal/monorepo-internal/node_modules/.pnpm:/workspace/node_modules/.pnpm:ro -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
218
+ $ docker run --platform linux/amd64 --rm --add-host=host.docker.internal:host-gateway -e LOCAL_UID=1001 -e LOCAL_GID=1001 -v /tmp/lz-scoped-workspace-wXwMsz:/workspace -v /home/runner/work/monorepo-internal/monorepo-internal/apps/oft-app/contracts/evm/upgradeable:/workspace/apps/oft-app/contracts/evm/upgradeable -v /home/runner/work/monorepo-internal/monorepo-internal/node_modules/.pnpm:/workspace/node_modules/.pnpm:ro -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
139
219
  detected tron network, replacing deployments extension with custom one
140
220
  Tron-solc v0.8.23 is unknown version, attempting anyway...
141
221
  Compiling contracts with tron solc v0.8.23
@@ -190,4 +270,4 @@ Warning: Contract code size is 29394 bytes and exceeds 24576 bytes (a limit intr
190
270
 
191
271
 
192
272
  Successfully compiled 76 Solidity files
193
- ⏳ hardhat compile --config /hardhat/hardhat.default.config.js --network tron-mainnet: 24.600s
273
+ ⏳ hardhat compile --config /hardhat/hardhat.default.config.js --network tron-mainnet: 32.903s
@@ -4,73 +4,74 @@
4
4
 
5
5
  ✅ forge-1.3.6-hardhat-2.26.3
6
6
  🔧 forge version: 1.3.6
7
- 📦 Using scoped workspace: /tmp/lz-scoped-workspace-XeLjPX
7
+ 📦 Using scoped workspace: /tmp/lz-scoped-workspace-w7qJl7
8
8
  📦 Copied 13 workspace package source(s)
9
9
  📦 No scoped-workspace pruner configured; using unpruned package-level source copy fallback.
10
- (node:240831) [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.
10
+ (node:368213) [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.
11
11
  Reparsing as ES module because module syntax was detected. This incurs a performance overhead.
12
12
  To eliminate this warning, add "type": "module" to /home/runner/work/monorepo-internal/monorepo-internal/package.json.
13
13
  (Use `node --trace-warnings ...` to show where the warning was created)
14
14
  📦 Docker volumes:
15
- -v /tmp/lz-scoped-workspace-XeLjPX:/workspace
15
+ -v /tmp/lz-scoped-workspace-w7qJl7:/workspace
16
16
  -v /home/runner/work/monorepo-internal/monorepo-internal/apps/oft-app/contracts/evm/upgradeable:/workspace/apps/oft-app/contracts/evm/upgradeable
17
17
  -v /home/runner/work/monorepo-internal/monorepo-internal/node_modules/.pnpm:/workspace/node_modules/.pnpm:ro
18
18
  $ 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
19
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)
20
20
  👤 Running container as UID:GID 1001:1001
21
- $ docker run --rm --add-host=host.docker.internal:host-gateway -e LOCAL_UID=1001 -e LOCAL_GID=1001 -v /tmp/lz-scoped-workspace-XeLjPX:/workspace -v /home/runner/work/monorepo-internal/monorepo-internal/apps/oft-app/contracts/evm/upgradeable:/workspace/apps/oft-app/contracts/evm/upgradeable -v /home/runner/work/monorepo-internal/monorepo-internal/node_modules/.pnpm:/workspace/node_modules/.pnpm:ro -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
21
+ $ docker run --rm --add-host=host.docker.internal:host-gateway -e LOCAL_UID=1001 -e LOCAL_GID=1001 -v /tmp/lz-scoped-workspace-w7qJl7:/workspace -v /home/runner/work/monorepo-internal/monorepo-internal/apps/oft-app/contracts/evm/upgradeable:/workspace/apps/oft-app/contracts/evm/upgradeable -v /home/runner/work/monorepo-internal/monorepo-internal/node_modules/.pnpm:/workspace/node_modules/.pnpm:ro -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
22
22
  Compiling 185 files with Solc 0.8.22
23
- Solc 0.8.22 finished in 61.58s
23
+ Solc 0.8.22 finished in 46.97s
24
24
  Compiler run successful!
25
25
 
26
- Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACRedeemIssueTest
27
- [PASS] test_credit() (gas: 89907)
28
- [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93132, ~: 93339)
29
- [PASS] test_debit() (gas: 98305)
30
- [PASS] test_debit_Dust() (gas: 139763)
31
- [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 142565, ~: 143477)
32
- [PASS] test_debit_PushesFees() (gas: 165812)
33
- [PASS] test_debit_Revert_SlippageExceeded() (gas: 131894)
34
- [PASS] test_debit_SmallAmount_DustOnly() (gas: 139827)
35
- [PASS] test_debit_WithFee() (gas: 165286)
36
- [PASS] test_debit_WithFee_Dust() (gas: 165900)
37
- [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 168848, ~: 171220)
38
- [PASS] test_initialize() (gas: 24722)
39
- [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
40
- [PASS] test_pause_unpause() (gas: 130445)
41
- [PASS] test_quoteOFT() (gas: 70712)
42
- [PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
43
- [PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59195)
44
- [PASS] test_quoteOFT_Paused() (gas: 56570)
45
- [PASS] test_quoteOFT_RateLimiterUsage() (gas: 185614)
46
- [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 233430)
47
- [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 200489, ~: 200315)
48
- [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84276)
49
- [PASS] test_rateLimit_Inflow() (gas: 108772)
50
- [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
51
- [PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 179385)
52
- [PASS] test_send() (gas: 400494)
53
- [PASS] test_send_Revert_MsgInspection() (gas: 308847)
54
- [PASS] test_send_WithFee() (gas: 477358)
55
- [PASS] test_setFeeDeposit() (gas: 28359)
56
- [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
57
- [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38880, ~: 38967)
58
- Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 576.29ms (1.85s CPU time)
26
+ Ran 32 tests for test/OFTLockUnlockExtendedRBACAlt.t.sol:OFTLockUnlockExtendedRBACAltTest
27
+ [PASS] test_credit() (gas: 91882)
28
+ [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 95083, ~: 95314)
29
+ [PASS] test_debit() (gas: 113036)
30
+ [PASS] test_debit_Dust() (gas: 137551)
31
+ [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 140067, ~: 140423)
32
+ [PASS] test_debit_PushesFees() (gas: 163342)
33
+ [PASS] test_debit_Revert_SlippageExceeded() (gas: 133828)
34
+ [PASS] test_debit_SmallAmount_DustOnly() (gas: 137513)
35
+ [PASS] test_debit_WithFee() (gas: 163924)
36
+ [PASS] test_debit_WithFee_Dust() (gas: 163430)
37
+ [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 163211, ~: 162567)
38
+ [PASS] test_initialize() (gas: 24656)
39
+ [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92822)
40
+ [PASS] test_pause_unpause() (gas: 145524)
41
+ [PASS] test_quoteOFT() (gas: 70757)
42
+ [PASS] test_quoteOFT_GloballyDisabled() (gas: 80605)
43
+ [PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59240)
44
+ [PASS] test_quoteOFT_Paused() (gas: 56637)
45
+ [PASS] test_quoteOFT_RateLimiterUsage() (gas: 200448)
46
+ [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 242784)
47
+ [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 198102, ~: 197912)
48
+ [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84299)
49
+ [PASS] test_rateLimit_Inflow() (gas: 132710)
50
+ [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 159652)
51
+ [PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 176893)
52
+ [PASS] test_send() (gas: 465637)
53
+ [PASS] test_send_Revert_MsgInspection() (gas: 327696)
54
+ [PASS] test_send_Revert_OnlyAltToken() (gas: 241148)
55
+ [PASS] test_send_WithFee() (gas: 516566)
56
+ [PASS] test_setFeeDeposit() (gas: 28423)
57
+ [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22583)
58
+ [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38925, ~: 39012)
59
+ Suite result: ok. 32 passed; 0 failed; 0 skipped; finished in 560.51ms (1.61s CPU time)
59
60
 
60
61
  Ran 39 tests for test/OFTNativeExtendedRBAC.t.sol:OFTNativeExtendedRBACTest
61
62
  [PASS] test_approvalRequired() (gas: 13426)
62
63
  [PASS] test_credit() (gas: 62369)
63
- [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 65891, ~: 65954)
64
+ [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 65872, ~: 65954)
64
65
  [PASS] test_credit_Revert_CreditFailed() (gas: 91478)
65
66
  [PASS] test_debit() (gas: 36831)
66
67
  [PASS] test_debit_Dust() (gas: 76272)
67
- [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 79490, ~: 79886)
68
+ [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 79488, ~: 79886)
68
69
  [PASS] test_debit_PushesFees() (gas: 101339)
69
70
  [PASS] test_debit_Revert_SlippageExceeded() (gas: 54229)
70
71
  [PASS] test_debit_SmallAmount_DustOnly() (gas: 76226)
71
72
  [PASS] test_debit_WithFee() (gas: 101145)
72
73
  [PASS] test_debit_WithFee_Dust() (gas: 102376)
73
- [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 105795, ~: 107585)
74
+ [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 105767, ~: 107585)
74
75
  [PASS] test_initialize() (gas: 22406)
75
76
  [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92778)
76
77
  [PASS] test_pause_unpause() (gas: 61117)
@@ -80,7 +81,7 @@ Ran 39 tests for test/OFTNativeExtendedRBAC.t.sol:OFTNativeExtendedRBACTest
80
81
  [PASS] test_quoteOFT_Paused() (gas: 56703)
81
82
  [PASS] test_quoteOFT_RateLimiterUsage() (gas: 97744)
82
83
  [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 160139)
83
- [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 137874, ~: 137703)
84
+ [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 137871, ~: 137703)
84
85
  [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84387)
85
86
  [PASS] test_rateLimit_Inflow() (gas: 87713)
86
87
  [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 80123)
@@ -95,57 +96,127 @@ Ran 39 tests for test/OFTNativeExtendedRBAC.t.sol:OFTNativeExtendedRBACTest
95
96
  [PASS] test_send_WithFee() (gas: 415240)
96
97
  [PASS] test_setFeeDeposit() (gas: 28425)
97
98
  [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22627)
98
- [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38910, ~: 39011)
99
+ [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38902, ~: 39011)
99
100
  [PASS] test_token() (gas: 13483)
100
- Suite result: ok. 39 passed; 0 failed; 0 skipped; finished in 664.46ms (1.51s CPU time)
101
+ Suite result: ok. 39 passed; 0 failed; 0 skipped; finished in 668.16ms (1.54s CPU time)
101
102
 
102
- Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACTest
103
+ Ran 32 tests for test/OFTBurnMintExtendedRBACAlt.t.sol:OFTBurnMintExtendedRBACAltTest
103
104
  [PASS] test_credit() (gas: 89871)
104
- [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93191, ~: 93303)
105
+ [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93111, ~: 93303)
105
106
  [PASS] test_debit() (gas: 98327)
106
- [PASS] test_debit_Dust() (gas: 139747)
107
- [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 142689, ~: 143461)
108
- [PASS] test_debit_PushesFees() (gas: 165796)
109
- [PASS] test_debit_Revert_SlippageExceeded() (gas: 131894)
110
- [PASS] test_debit_SmallAmount_DustOnly() (gas: 139811)
107
+ [PASS] test_debit_Dust() (gas: 141836)
108
+ [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 144373, ~: 145461)
109
+ [PASS] test_debit_PushesFees() (gas: 167796)
110
+ [PASS] test_debit_Revert_SlippageExceeded() (gas: 133872)
111
+ [PASS] test_debit_SmallAmount_DustOnly() (gas: 141789)
111
112
  [PASS] test_debit_WithFee() (gas: 165270)
112
- [PASS] test_debit_WithFee_Dust() (gas: 165884)
113
- [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 169299, ~: 171204)
113
+ [PASS] test_debit_WithFee_Dust() (gas: 167884)
114
+ [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 170784, ~: 173204)
115
+ [PASS] test_initialize() (gas: 24700)
116
+ [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
117
+ [PASS] test_pause_unpause() (gas: 132067)
118
+ [PASS] test_quoteOFT() (gas: 70712)
119
+ [PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
120
+ [PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59173)
121
+ [PASS] test_quoteOFT_Paused() (gas: 56570)
122
+ [PASS] test_quoteOFT_RateLimiterUsage() (gas: 187257)
123
+ [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 235398)
124
+ [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 202473, ~: 202293)
125
+ [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84254)
126
+ [PASS] test_rateLimit_Inflow() (gas: 108824)
127
+ [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 159696)
128
+ [PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 181347)
129
+ [PASS] test_send() (gas: 421733)
130
+ [PASS] test_send_Revert_MsgInspection() (gas: 310849)
131
+ [PASS] test_send_Revert_OnlyAltToken() (gas: 198819)
132
+ [PASS] test_send_WithFee() (gas: 493959)
133
+ [PASS] test_setFeeDeposit() (gas: 28445)
134
+ [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
135
+ [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38952, ~: 39034)
136
+ Suite result: ok. 32 passed; 0 failed; 0 skipped; finished in 677.23ms (2.14s CPU time)
137
+
138
+ Ran 32 tests for test/OFTBurnSelfMintExtendedRBAC.t.sol:OFTBurnSelfMintExtendedRBACTest
139
+ [PASS] test_credit() (gas: 89873)
140
+ [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 92763, ~: 93305)
141
+ [PASS] test_debit() (gas: 120710)
142
+ [PASS] test_debit_Dust() (gas: 143616)
143
+ [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 145607, ~: 146486)
144
+ [PASS] test_debit_PushesFees() (gas: 164384)
145
+ [PASS] test_debit_Revert_SlippageExceeded() (gas: 131872)
146
+ [PASS] test_debit_SmallAmount_DustOnly() (gas: 143579)
147
+ [PASS] test_debit_TokensTransferredToSelfThenBurned() (gas: 122517)
148
+ [PASS] test_debit_WithFee() (gas: 166449)
149
+ [PASS] test_debit_WithFee_Dust() (gas: 164455)
150
+ [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 166621, ~: 168645)
151
+ [PASS] test_initialize() (gas: 24700)
152
+ [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
153
+ [PASS] test_pause_unpause() (gas: 151598)
154
+ [PASS] test_quoteOFT() (gas: 70712)
155
+ [PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
156
+ [PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59173)
157
+ [PASS] test_quoteOFT_Paused() (gas: 56570)
158
+ [PASS] test_quoteOFT_RateLimiterUsage() (gas: 242240)
159
+ [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 268746)
160
+ [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 192072, ~: 191921)
161
+ [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84254)
162
+ [PASS] test_rateLimit_Inflow() (gas: 108738)
163
+ [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
164
+ [PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 175225)
165
+ [PASS] test_send() (gas: 387136)
166
+ [PASS] test_send_Revert_MsgInspection() (gas: 335267)
167
+ [PASS] test_send_WithFee() (gas: 462592)
168
+ [PASS] test_setFeeDeposit() (gas: 28445)
169
+ [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
170
+ [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38971, ~: 39034)
171
+ Suite result: ok. 32 passed; 0 failed; 0 skipped; finished in 735.80ms (2.38s CPU time)
172
+
173
+ Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACRedeemIssueTest
174
+ [PASS] test_credit() (gas: 89907)
175
+ [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93090, ~: 93339)
176
+ [PASS] test_debit() (gas: 98305)
177
+ [PASS] test_debit_Dust() (gas: 139763)
178
+ [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 142740, ~: 143477)
179
+ [PASS] test_debit_PushesFees() (gas: 165812)
180
+ [PASS] test_debit_Revert_SlippageExceeded() (gas: 131894)
181
+ [PASS] test_debit_SmallAmount_DustOnly() (gas: 139827)
182
+ [PASS] test_debit_WithFee() (gas: 165286)
183
+ [PASS] test_debit_WithFee_Dust() (gas: 165900)
184
+ [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 168959, ~: 171220)
114
185
  [PASS] test_initialize() (gas: 24722)
115
186
  [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
116
- [PASS] test_pause_unpause() (gas: 130467)
187
+ [PASS] test_pause_unpause() (gas: 130445)
117
188
  [PASS] test_quoteOFT() (gas: 70712)
118
189
  [PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
119
190
  [PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59195)
120
191
  [PASS] test_quoteOFT_Paused() (gas: 56570)
121
- [PASS] test_quoteOFT_RateLimiterUsage() (gas: 185657)
122
- [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 233398)
123
- [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 200487, ~: 200299)
192
+ [PASS] test_quoteOFT_RateLimiterUsage() (gas: 185614)
193
+ [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 233430)
194
+ [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 200509, ~: 200315)
124
195
  [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84276)
125
- [PASS] test_rateLimit_Inflow() (gas: 108736)
196
+ [PASS] test_rateLimit_Inflow() (gas: 108772)
126
197
  [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
127
- [PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 179369)
128
- [PASS] test_send() (gas: 400518)
129
- [PASS] test_send_Revert_MsgInspection() (gas: 308871)
130
- [PASS] test_send_WithFee() (gas: 477338)
198
+ [PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 179385)
199
+ [PASS] test_send() (gas: 400494)
200
+ [PASS] test_send_Revert_MsgInspection() (gas: 308847)
201
+ [PASS] test_send_WithFee() (gas: 477358)
131
202
  [PASS] test_setFeeDeposit() (gas: 28359)
132
203
  [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
133
- [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38861, ~: 38967)
134
- Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 676.83ms (2.27s CPU time)
204
+ [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38813, ~: 38967)
205
+ Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 744.08ms (2.24s CPU time)
135
206
 
136
207
  Ran 33 tests for test/OFTBurnSelfMintExtendedRBACAlt.t.sol:OFTBurnSelfMintExtendedRBACAltTest
137
208
  [PASS] test_credit() (gas: 89873)
138
- [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93071, ~: 93305)
209
+ [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93341, ~: 93305)
139
210
  [PASS] test_debit() (gas: 120710)
140
211
  [PASS] test_debit_Dust() (gas: 145216)
141
- [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 147533, ~: 148086)
212
+ [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 147440, ~: 148086)
142
213
  [PASS] test_debit_PushesFees() (gas: 165984)
143
214
  [PASS] test_debit_Revert_SlippageExceeded() (gas: 133872)
144
215
  [PASS] test_debit_SmallAmount_DustOnly() (gas: 145179)
145
216
  [PASS] test_debit_TokensTransferredToSelfThenBurned() (gas: 122500)
146
217
  [PASS] test_debit_WithFee() (gas: 166449)
147
218
  [PASS] test_debit_WithFee_Dust() (gas: 166055)
148
- [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 168356, ~: 170245)
219
+ [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 168355, ~: 170245)
149
220
  [PASS] test_initialize() (gas: 24700)
150
221
  [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
151
222
  [PASS] test_pause_unpause() (gas: 153198)
@@ -155,7 +226,7 @@ Ran 33 tests for test/OFTBurnSelfMintExtendedRBACAlt.t.sol:OFTBurnSelfMintExtend
155
226
  [PASS] test_quoteOFT_Paused() (gas: 56570)
156
227
  [PASS] test_quoteOFT_RateLimiterUsage() (gas: 243840)
157
228
  [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 270346)
158
- [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 193670, ~: 193521)
229
+ [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 193659, ~: 193521)
159
230
  [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84254)
160
231
  [PASS] test_rateLimit_Inflow() (gas: 108826)
161
232
  [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 159696)
@@ -166,21 +237,21 @@ Ran 33 tests for test/OFTBurnSelfMintExtendedRBACAlt.t.sol:OFTBurnSelfMintExtend
166
237
  [PASS] test_send_WithFee() (gas: 504694)
167
238
  [PASS] test_setFeeDeposit() (gas: 28445)
168
239
  [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
169
- [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38957, ~: 39034)
170
- Suite result: ok. 33 passed; 0 failed; 0 skipped; finished in 681.99ms (1.92s CPU time)
240
+ [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38942, ~: 39034)
241
+ Suite result: ok. 33 passed; 0 failed; 0 skipped; finished in 826.64ms (2.24s CPU time)
171
242
 
172
243
  Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACCrosschainTest
173
244
  [PASS] test_credit() (gas: 89874)
174
- [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93264, ~: 93306)
245
+ [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 92952, ~: 93306)
175
246
  [PASS] test_debit() (gas: 98332)
176
247
  [PASS] test_debit_Dust() (gas: 139763)
177
- [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 142343, ~: 143477)
248
+ [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 142558, ~: 143477)
178
249
  [PASS] test_debit_PushesFees() (gas: 165812)
179
250
  [PASS] test_debit_Revert_SlippageExceeded() (gas: 131894)
180
251
  [PASS] test_debit_SmallAmount_DustOnly() (gas: 139827)
181
252
  [PASS] test_debit_WithFee() (gas: 165286)
182
253
  [PASS] test_debit_WithFee_Dust() (gas: 165900)
183
- [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 169065, ~: 171220)
254
+ [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 168930, ~: 171220)
184
255
  [PASS] test_initialize() (gas: 24722)
185
256
  [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
186
257
  [PASS] test_pause_unpause() (gas: 130472)
@@ -190,7 +261,7 @@ Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACCross
190
261
  [PASS] test_quoteOFT_Paused() (gas: 56570)
191
262
  [PASS] test_quoteOFT_RateLimiterUsage() (gas: 185667)
192
263
  [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 233430)
193
- [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 200474, ~: 200309)
264
+ [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 200498, ~: 200315)
194
265
  [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84276)
195
266
  [PASS] test_rateLimit_Inflow() (gas: 108739)
196
267
  [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
@@ -201,20 +272,54 @@ Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACCross
201
272
  [PASS] test_setFeeDeposit() (gas: 28359)
202
273
  [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
203
274
  [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38880, ~: 38967)
204
- Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 682.76ms (2.14s CPU time)
275
+ Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 860.00ms (1.88s CPU time)
276
+
277
+ Ran 31 tests for test/OFTBurnMintExtendedRBAC.t.sol:OFTBurnMintExtendedRBACTest
278
+ [PASS] test_credit() (gas: 89871)
279
+ [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 92950, ~: 93303)
280
+ [PASS] test_debit() (gas: 98327)
281
+ [PASS] test_debit_Dust() (gas: 139747)
282
+ [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 141977, ~: 143461)
283
+ [PASS] test_debit_PushesFees() (gas: 165796)
284
+ [PASS] test_debit_Revert_SlippageExceeded() (gas: 131894)
285
+ [PASS] test_debit_SmallAmount_DustOnly() (gas: 139811)
286
+ [PASS] test_debit_WithFee() (gas: 165270)
287
+ [PASS] test_debit_WithFee_Dust() (gas: 165884)
288
+ [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 169238, ~: 171204)
289
+ [PASS] test_initialize() (gas: 24722)
290
+ [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
291
+ [PASS] test_pause_unpause() (gas: 130467)
292
+ [PASS] test_quoteOFT() (gas: 70712)
293
+ [PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
294
+ [PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59195)
295
+ [PASS] test_quoteOFT_Paused() (gas: 56570)
296
+ [PASS] test_quoteOFT_RateLimiterUsage() (gas: 185657)
297
+ [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 233398)
298
+ [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 200473, ~: 200293)
299
+ [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84276)
300
+ [PASS] test_rateLimit_Inflow() (gas: 108736)
301
+ [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
302
+ [PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 179369)
303
+ [PASS] test_send() (gas: 400518)
304
+ [PASS] test_send_Revert_MsgInspection() (gas: 308871)
305
+ [PASS] test_send_WithFee() (gas: 477338)
306
+ [PASS] test_setFeeDeposit() (gas: 28359)
307
+ [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
308
+ [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38895, ~: 38967)
309
+ Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 887.21ms (2.10s CPU time)
205
310
 
206
311
  Ran 31 tests for test/OFTLockUnlockExtendedRBAC.t.sol:OFTLockUnlockExtendedRBACTest
207
312
  [PASS] test_credit() (gas: 89882)
208
- [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93324, ~: 93314)
313
+ [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93039, ~: 93314)
209
314
  [PASS] test_debit() (gas: 113036)
210
315
  [PASS] test_debit_Dust() (gas: 135880)
211
- [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 138501, ~: 138823)
316
+ [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 138057, ~: 138823)
212
317
  [PASS] test_debit_PushesFees() (gas: 161342)
213
318
  [PASS] test_debit_Revert_SlippageExceeded() (gas: 131850)
214
319
  [PASS] test_debit_SmallAmount_DustOnly() (gas: 135931)
215
320
  [PASS] test_debit_WithFee() (gas: 163924)
216
321
  [PASS] test_debit_WithFee_Dust() (gas: 161430)
217
- [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 161431, ~: 160967)
322
+ [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 161327, ~: 160967)
218
323
  [PASS] test_initialize() (gas: 24678)
219
324
  [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92822)
220
325
  [PASS] test_pause_unpause() (gas: 143924)
@@ -224,7 +329,7 @@ Ran 31 tests for test/OFTLockUnlockExtendedRBAC.t.sol:OFTLockUnlockExtendedRBACT
224
329
  [PASS] test_quoteOFT_Paused() (gas: 56637)
225
330
  [PASS] test_quoteOFT_RateLimiterUsage() (gas: 198848)
226
331
  [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 241184)
227
- [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 196109, ~: 195912)
332
+ [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 196089, ~: 195912)
228
333
  [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84321)
229
334
  [PASS] test_rateLimit_Inflow() (gas: 130622)
230
335
  [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157652)
@@ -234,113 +339,8 @@ Ran 31 tests for test/OFTLockUnlockExtendedRBAC.t.sol:OFTLockUnlockExtendedRBACT
234
339
  [PASS] test_send_WithFee() (gas: 474453)
235
340
  [PASS] test_setFeeDeposit() (gas: 28337)
236
341
  [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22583)
237
- [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38873, ~: 38945)
238
- Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 703.35ms (1.89s CPU time)
239
-
240
- Ran 32 tests for test/OFTBurnSelfMintExtendedRBAC.t.sol:OFTBurnSelfMintExtendedRBACTest
241
- [PASS] test_credit() (gas: 89873)
242
- [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93273, ~: 93305)
243
- [PASS] test_debit() (gas: 120710)
244
- [PASS] test_debit_Dust() (gas: 143616)
245
- [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 145438, ~: 146486)
246
- [PASS] test_debit_PushesFees() (gas: 164384)
247
- [PASS] test_debit_Revert_SlippageExceeded() (gas: 131872)
248
- [PASS] test_debit_SmallAmount_DustOnly() (gas: 143579)
249
- [PASS] test_debit_TokensTransferredToSelfThenBurned() (gas: 122517)
250
- [PASS] test_debit_WithFee() (gas: 166449)
251
- [PASS] test_debit_WithFee_Dust() (gas: 164455)
252
- [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 166579, ~: 168645)
253
- [PASS] test_initialize() (gas: 24700)
254
- [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
255
- [PASS] test_pause_unpause() (gas: 151598)
256
- [PASS] test_quoteOFT() (gas: 70712)
257
- [PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
258
- [PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59173)
259
- [PASS] test_quoteOFT_Paused() (gas: 56570)
260
- [PASS] test_quoteOFT_RateLimiterUsage() (gas: 242240)
261
- [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 268746)
262
- [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 192067, ~: 191921)
263
- [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84254)
264
- [PASS] test_rateLimit_Inflow() (gas: 108738)
265
- [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 157696)
266
- [PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 175225)
267
- [PASS] test_send() (gas: 387136)
268
- [PASS] test_send_Revert_MsgInspection() (gas: 335267)
269
- [PASS] test_send_WithFee() (gas: 462592)
270
- [PASS] test_setFeeDeposit() (gas: 28445)
271
- [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
272
- [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38933, ~: 39034)
273
- Suite result: ok. 32 passed; 0 failed; 0 skipped; finished in 710.39ms (1.89s CPU time)
274
-
275
- Ran 32 tests for test/OFTLockUnlockExtendedRBACAlt.t.sol:OFTLockUnlockExtendedRBACAltTest
276
- [PASS] test_credit() (gas: 91882)
277
- [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 95120, ~: 95314)
278
- [PASS] test_debit() (gas: 113036)
279
- [PASS] test_debit_Dust() (gas: 137551)
280
- [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 139867, ~: 141029)
281
- [PASS] test_debit_PushesFees() (gas: 163342)
282
- [PASS] test_debit_Revert_SlippageExceeded() (gas: 133828)
283
- [PASS] test_debit_SmallAmount_DustOnly() (gas: 137513)
284
- [PASS] test_debit_WithFee() (gas: 163924)
285
- [PASS] test_debit_WithFee_Dust() (gas: 163430)
286
- [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 163634, ~: 162567)
287
- [PASS] test_initialize() (gas: 24656)
288
- [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92822)
289
- [PASS] test_pause_unpause() (gas: 145524)
290
- [PASS] test_quoteOFT() (gas: 70757)
291
- [PASS] test_quoteOFT_GloballyDisabled() (gas: 80605)
292
- [PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59240)
293
- [PASS] test_quoteOFT_Paused() (gas: 56637)
294
- [PASS] test_quoteOFT_RateLimiterUsage() (gas: 200448)
295
- [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 242784)
296
- [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 198090, ~: 197912)
297
- [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84299)
298
- [PASS] test_rateLimit_Inflow() (gas: 132710)
299
- [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 159652)
300
- [PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 176893)
301
- [PASS] test_send() (gas: 465637)
302
- [PASS] test_send_Revert_MsgInspection() (gas: 327696)
303
- [PASS] test_send_Revert_OnlyAltToken() (gas: 241148)
304
- [PASS] test_send_WithFee() (gas: 516566)
305
- [PASS] test_setFeeDeposit() (gas: 28423)
306
- [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22583)
307
- [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38916, ~: 39012)
308
- Suite result: ok. 32 passed; 0 failed; 0 skipped; finished in 734.19ms (2.10s CPU time)
309
-
310
- Ran 32 tests for test/OFTBurnMintExtendedRBACAlt.t.sol:OFTBurnMintExtendedRBACAltTest
311
- [PASS] test_credit() (gas: 89871)
312
- [PASS] test_credit_Fuzz(uint256) (runs: 1000, μ: 93171, ~: 93303)
313
- [PASS] test_debit() (gas: 98327)
314
- [PASS] test_debit_Dust() (gas: 141836)
315
- [PASS] test_debit_NoFee_Fuzz(uint256) (runs: 1000, μ: 144489, ~: 145461)
316
- [PASS] test_debit_PushesFees() (gas: 167796)
317
- [PASS] test_debit_Revert_SlippageExceeded() (gas: 133872)
318
- [PASS] test_debit_SmallAmount_DustOnly() (gas: 141789)
319
- [PASS] test_debit_WithFee() (gas: 165270)
320
- [PASS] test_debit_WithFee_Dust() (gas: 167884)
321
- [PASS] test_debit_WithFee_Fuzz(uint256,uint16) (runs: 1000, μ: 170460, ~: 173204)
322
- [PASS] test_initialize() (gas: 24700)
323
- [PASS] test_initialize_Revert_InvalidInitialAdmin() (gas: 92844)
324
- [PASS] test_pause_unpause() (gas: 132067)
325
- [PASS] test_quoteOFT() (gas: 70712)
326
- [PASS] test_quoteOFT_GloballyDisabled() (gas: 80538)
327
- [PASS] test_quoteOFT_OutboundRateLimitDisabled() (gas: 59173)
328
- [PASS] test_quoteOFT_Paused() (gas: 56570)
329
- [PASS] test_quoteOFT_RateLimiterUsage() (gas: 187257)
330
- [PASS] test_quoteOFT_RateLimiterWithFee() (gas: 235398)
331
- [PASS] test_quoteOFT_RateLimiterWithFee_Fuzz(uint96,uint16) (runs: 1000, μ: 202482, ~: 202299)
332
- [PASS] test_quoteOFT_RateLimiterWithMaxFee() (gas: 84254)
333
- [PASS] test_rateLimit_Inflow() (gas: 108824)
334
- [PASS] test_rateLimit_Outflow_WithFee_Revert_ExceedsLimit() (gas: 159696)
335
- [PASS] test_rateLimit_Outflow_WithFee_Success() (gas: 181347)
336
- [PASS] test_send() (gas: 421733)
337
- [PASS] test_send_Revert_MsgInspection() (gas: 310849)
338
- [PASS] test_send_Revert_OnlyAltToken() (gas: 198819)
339
- [PASS] test_send_WithFee() (gas: 493959)
340
- [PASS] test_setFeeDeposit() (gas: 28445)
341
- [PASS] test_setFeeDeposit_Revert_Unauthorized() (gas: 22605)
342
- [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38938, ~: 39034)
343
- Suite result: ok. 32 passed; 0 failed; 0 skipped; finished in 875.02ms (1.62s CPU time)
342
+ [PASS] test_setRateLimitConfig_Fuzz(uint96) (runs: 1000, μ: 38822, ~: 38945)
343
+ Suite result: ok. 31 passed; 0 failed; 0 skipped; finished in 887.31ms (1.64s CPU time)
344
344
 
345
- Ran 9 test suites in 903.57ms (6.31s CPU time): 292 tests passed, 0 failed, 0 skipped (292 total tests)
346
- ⏳ forge test: 1:06.433 (m:ss.mmm)
345
+ Ran 9 test suites in 1.02s (6.85s CPU time): 292 tests passed, 0 failed, 0 skipped (292 total tests)
346
+ ⏳ forge test: 50.901s
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@layerzerolabs/oft-upgradeable-evm-contracts",
3
- "version": "1.2.11",
3
+ "version": "1.2.12",
4
4
  "private": false,
5
5
  "description": "LayerZero Labs reference EVM upgradeable OFT implementation",
6
6
  "license": "MIT",
@@ -14,14 +14,14 @@
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": "1.2.11",
18
- "@layerzerolabs/oft-evm-contracts": "1.2.11",
19
- "@layerzerolabs/solhint-configuration": "1.2.11",
20
- "@layerzerolabs/oapp-upgradeable-evm-contracts": "1.2.11",
21
- "@layerzerolabs/test-utils-evm-contracts": "1.2.11",
22
- "@layerzerolabs/utils-evm-contracts": "1.2.11",
23
- "@layerzerolabs/utils-upgradeable-evm-contracts": "1.2.11",
24
- "@layerzerolabs/vm-tooling-evm": "1.2.11"
17
+ "@layerzerolabs/oapp-evm-contracts": "1.2.12",
18
+ "@layerzerolabs/oft-evm-contracts": "1.2.12",
19
+ "@layerzerolabs/solhint-configuration": "1.2.12",
20
+ "@layerzerolabs/oapp-upgradeable-evm-contracts": "1.2.12",
21
+ "@layerzerolabs/test-utils-evm-contracts": "1.2.12",
22
+ "@layerzerolabs/utils-evm-contracts": "1.2.12",
23
+ "@layerzerolabs/utils-upgradeable-evm-contracts": "1.2.12",
24
+ "@layerzerolabs/vm-tooling-evm": "1.2.12"
25
25
  },
26
26
  "publishConfig": {
27
27
  "access": "public",