@layerzerolabs/oft-evm-contracts 0.2.98 → 0.2.100

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.
@@ -6,63 +6,66 @@
6
6
   WARN  Issue while reading "/home/runner/work/monorepo-internal/monorepo-internal/.npmrc". Failed to replace env in config: ${NPM_TOKEN}
7
7
 
8
8
  > @layerzerolabs/oft-evm-contracts@0.0.0 compile:evm /home/runner/work/monorepo-internal/monorepo-internal/apps/oft-app/contracts/evm/non-upgradeable
9
- > pnpm lz-tool hardhat compile --config /hardhat/hardhat.default.config.js
9
+ > pnpm lz-tool --env TS_NODE_COMPILER_OPTIONS='{"module":"CommonJS","moduleResolution":"node"}' hardhat compile --config /hardhat/hardhat.default.config.js
10
10
 
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
14
  $ docker image inspect --format {{.Id}} 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3
15
- (node:25411) [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:68617) [MODULE_TYPELESS_PACKAGE_JSON] Warning: Module type of file:///home/runner/work/monorepo-internal/monorepo-internal/configs/vm-tooling/values/docker-image-repo.ts is not specified and it doesn't parse as CommonJS.
16
16
  Reparsing as ES module because module syntax was detected. This incurs a performance overhead.
17
17
  To eliminate this warning, add "type": "module" to /home/runner/work/monorepo-internal/monorepo-internal/package.json.
18
18
  (Use `node --trace-warnings ...` to show where the warning was created)
19
19
  ✅ 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
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 /home/runner/work/monorepo-internal/monorepo-internal:/workspace -w /workspace/apps/oft-app/contracts/evm/non-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
21
+ 🌍 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/non-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
22
23
  Compiling 21 Solidity files
23
24
  Successfully compiled 21 Solidity files
24
- ⏳ hardhat compile --config /hardhat/hardhat.default.config.js: 2.440s
25
+ ⏳ hardhat compile --config /hardhat/hardhat.default.config.js: 3.361s
25
26
   WARN  Issue while reading "/home/runner/work/monorepo-internal/monorepo-internal/.npmrc". Failed to replace env in config: ${NPM_TOKEN}
26
27
 
27
28
  > @layerzerolabs/oft-evm-contracts@0.0.0 compile:zksync /home/runner/work/monorepo-internal/monorepo-internal/apps/oft-app/contracts/evm/non-upgradeable
28
- > pnpm lz-tool hardhat compile --config /hardhat/hardhat.default.config.js --network zksync-mainnet
29
+ > pnpm lz-tool --env TS_NODE_COMPILER_OPTIONS='{"module":"CommonJS","moduleResolution":"node"}' hardhat compile --config /hardhat/hardhat.default.config.js --network zksync-mainnet
29
30
 
30
31
   WARN  Issue while reading "/home/runner/work/monorepo-internal/monorepo-internal/.npmrc". Failed to replace env in config: ${NPM_TOKEN}
31
32
  ✅ forge-1.3.6-hardhat-2.26.3
32
33
  🔧 hardhat version: 2.26.3
33
34
  $ docker image inspect --format {{.Id}} 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3
34
- (node:26208) [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.
35
+ (node:69611) [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.
35
36
  Reparsing as ES module because module syntax was detected. This incurs a performance overhead.
36
37
  To eliminate this warning, add "type": "module" to /home/runner/work/monorepo-internal/monorepo-internal/package.json.
37
38
  (Use `node --trace-warnings ...` to show where the warning was created)
38
39
  ✅ 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
39
40
  👤 Running container as UID:GID 1001:1001
40
- $ 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/non-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
41
+ 🌍 Using 1 custom environment variable(s)
42
+ $ 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/non-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
41
43
  The solc version 1.3.22 is deprecated and will be removed for security reasons soon. Please update to v1.4.0 or newer.
42
44
  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.
43
45
  Compiling contracts for ZKsync Era with zksolc v1.3.22 and zkvm-solc v0.8.23-1.0.1
44
46
  Compiling 21 Solidity files
45
47
  Successfully compiled 21 Solidity files
46
- ⏳ hardhat compile --config /hardhat/hardhat.default.config.js --network zksync-mainnet: 2.767s
48
+ ⏳ hardhat compile --config /hardhat/hardhat.default.config.js --network zksync-mainnet: 2.838s
47
49
   WARN  Issue while reading "/home/runner/work/monorepo-internal/monorepo-internal/.npmrc". Failed to replace env in config: ${NPM_TOKEN}
48
50
 
49
51
  > @layerzerolabs/oft-evm-contracts@0.0.0 compile:tron /home/runner/work/monorepo-internal/monorepo-internal/apps/oft-app/contracts/evm/non-upgradeable
50
- > pnpm lz-tool hardhat compile --config /hardhat/hardhat.default.config.js --network tron-mainnet
52
+ > pnpm lz-tool --env TS_NODE_COMPILER_OPTIONS='{"module":"CommonJS","moduleResolution":"node"}' hardhat compile --config /hardhat/hardhat.default.config.js --network tron-mainnet
51
53
 
52
54
   WARN  Issue while reading "/home/runner/work/monorepo-internal/monorepo-internal/.npmrc". Failed to replace env in config: ${NPM_TOKEN}
53
55
  ✅ forge-1.3.6-hardhat-2.26.3
54
56
  🔧 hardhat version: 2.26.3
55
57
  $ docker image inspect --format {{.Id}} 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3
56
- (node:27069) [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.
58
+ (node:70303) [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.
57
59
  Reparsing as ES module because module syntax was detected. This incurs a performance overhead.
58
60
  To eliminate this warning, add "type": "module" to /home/runner/work/monorepo-internal/monorepo-internal/package.json.
59
61
  (Use `node --trace-warnings ...` to show where the warning was created)
60
62
  ✅ 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
61
63
  👤 Running container as UID:GID 1001:1001
62
- $ 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/non-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
64
+ 🌍 Using 1 custom environment variable(s)
65
+ $ 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/non-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
63
66
  detected tron network, replacing deployments extension with custom one
64
67
  Tron-solc v0.8.23 is unknown version, attempting anyway...
65
68
  Compiling contracts with tron solc v0.8.23
66
69
  Compiling 21 Solidity files
67
70
  Successfully compiled 21 Solidity files
68
- ⏳ hardhat compile --config /hardhat/hardhat.default.config.js --network tron-mainnet: 3.304s
71
+ ⏳ hardhat compile --config /hardhat/hardhat.default.config.js --network tron-mainnet: 3.730s
@@ -5,67 +5,15 @@
5
5
  ✅ forge-1.3.6-hardhat-2.26.3
6
6
  🔧 forge version: 1.3.6
7
7
  $ docker image inspect --format {{.Id}} 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3
8
- (node:73150) [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:135194) [MODULE_TYPELESS_PACKAGE_JSON] Warning: Module type of file:///home/runner/work/monorepo-internal/monorepo-internal/configs/vm-tooling/values/docker-image-repo.ts is not specified and it doesn't parse as CommonJS.
9
9
  Reparsing as ES module because module syntax was detected. This incurs a performance overhead.
10
10
  To eliminate this warning, add "type": "module" to /home/runner/work/monorepo-internal/monorepo-internal/package.json.
11
11
  (Use `node --trace-warnings ...` to show where the warning was created)
12
- Error response from daemon: No such image: 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3
13
- 📥 Pulling Docker image from: 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3
14
- $ docker pull 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3
15
- forge-1.3.6-hardhat-2.26.3-patch-3: Pulling from layerzerolabs/evm-tooling
16
- 86ec798129ac: Already exists
17
- eef7c391911c: Already exists
18
- cc2ecf4065b7: 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
- 36e15e3f2788: Waiting
32
- 8e167e77288f: Download complete
33
- f2fb700979ad: Download complete
34
- 45d43cc973ba: Download complete
35
- 597168d5c38e: Download complete
36
- 44c09156221f: Download complete
37
- 0cb2c6965bde: Download complete
38
- 5760fdd70374: Download complete
39
- c70db14240a1: Download complete
40
- cc2ecf4065b7: Pull complete
41
- 5760fdd70374: Pull complete
42
- c70db14240a1: Pull complete
43
- 2a1ced882ba9: Verifying Checksum
44
- 2a1ced882ba9: Download complete
45
- 36e15e3f2788: Verifying Checksum
46
- 36e15e3f2788: Download complete
47
- 0cb2c6965bde: Pull complete
48
- e431adaf232f: Verifying Checksum
49
- e431adaf232f: Download complete
50
- 885bca26f927: Verifying Checksum
51
- 885bca26f927: Download complete
52
- 885bca26f927: Pull complete
53
- 8e167e77288f: Pull complete
54
- 45d43cc973ba: Pull complete
55
- 44c09156221f: Pull complete
56
- f2fb700979ad: Pull complete
57
- 2a1ced882ba9: Pull complete
58
- 597168d5c38e: Pull complete
59
- e431adaf232f: Pull complete
60
- 36e15e3f2788: Pull complete
61
- Digest: sha256:08b858b586759ec59f4df44c0bc5eac9f856a1eb32b6ce37f79f31a20a89ed52
62
- Status: Image is up to date for 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3
63
- 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3
64
- ✅ Successfully pulled: 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3
12
+ Using cached Docker image: 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3
65
13
  👤 Running container as UID:GID 1001:1001
66
14
  $ docker run --rm --add-host=host.docker.internal:host-gateway -e LOCAL_UID=1001 -e LOCAL_GID=1001 -v /home/runner/work/monorepo-internal/monorepo-internal:/workspace -w /workspace/apps/oft-app/contracts/evm/non-upgradeable 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3 forge test
67
15
  Compiling 41 files with Solc 0.8.22
68
- Solc 0.8.22 finished in 1.26s
16
+ Solc 0.8.22 finished in 1.80s
69
17
  Compiler run successful!
70
18
 
71
19
  Ran 48 tests for test/OFTDecimalUtils.t.sol:OFTDecimalUtilsTest
@@ -78,7 +26,7 @@ Ran 48 tests for test/OFTDecimalUtils.t.sol:OFTDecimalUtilsTest
78
26
  [PASS] test_constructor_18_8() (gas: 10747)
79
27
  [PASS] test_constructor_6_6() (gas: 10747)
80
28
  [PASS] test_constructor_8_6() (gas: 10791)
81
- [PASS] test_constructor_Fuzz(uint8,uint8) (runs: 1000, μ: 191130, ~: 191177)
29
+ [PASS] test_constructor_Fuzz(uint8,uint8) (runs: 1000, μ: 191128, ~: 191177)
82
30
  [PASS] test_constructor_Revert_SharedGreaterThanLocal() (gas: 36043)
83
31
  [PASS] test_removeDust_0_0() (gas: 8695)
84
32
  [PASS] test_removeDust_18_6_NoDust() (gas: 8704)
@@ -117,7 +65,7 @@ Ran 48 tests for test/OFTDecimalUtils.t.sol:OFTDecimalUtilsTest
117
65
  [PASS] test_toSD_Revert_AmountSDOverflowed_0_0() (gas: 9119)
118
66
  [PASS] test_toSD_Revert_AmountSDOverflowed_18_6() (gas: 9264)
119
67
  [PASS] test_toSD_Revert_AmountSDOverflowed_6_6() (gas: 9186)
120
- Suite result: ok. 48 passed; 0 failed; 0 skipped; finished in 89.79ms (649.29ms CPU time)
68
+ Suite result: ok. 48 passed; 0 failed; 0 skipped; finished in 149.79ms (1.25s CPU time)
121
69
 
122
- Ran 1 test suite in 98.64ms (89.79ms CPU time): 48 tests passed, 0 failed, 0 skipped (48 total tests)
123
- ⏳ forge test: 3.350s
70
+ Ran 1 test suite in 165.24ms (149.79ms CPU time): 48 tests passed, 0 failed, 0 skipped (48 total tests)
71
+ ⏳ forge test: 4.480s
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@layerzerolabs/oft-evm-contracts",
3
- "version": "0.2.98",
3
+ "version": "0.2.100",
4
4
  "private": false,
5
5
  "description": "LayerZero Labs reference EVM OFT implementation",
6
6
  "license": "MIT",
@@ -14,12 +14,12 @@
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.98",
18
- "@layerzerolabs/solhint-configuration": "0.2.98",
19
- "@layerzerolabs/tsup-configuration": "0.2.98",
20
- "@layerzerolabs/typescript-configuration": "0.2.98",
21
- "@layerzerolabs/utils-evm-contracts": "0.2.98",
22
- "@layerzerolabs/vm-tooling-evm": "0.2.98"
17
+ "@layerzerolabs/tsup-configuration": "0.2.100",
18
+ "@layerzerolabs/typescript-configuration": "0.2.100",
19
+ "@layerzerolabs/oapp-evm-contracts": "0.2.100",
20
+ "@layerzerolabs/vm-tooling-evm": "0.2.100",
21
+ "@layerzerolabs/utils-evm-contracts": "0.2.100",
22
+ "@layerzerolabs/solhint-configuration": "0.2.100"
23
23
  },
24
24
  "publishConfig": {
25
25
  "access": "public",
@@ -35,9 +35,9 @@
35
35
  "scripts": {
36
36
  "build": "pnpm compile:evm && pnpm compile:zksync && pnpm compile:tron",
37
37
  "clean": "rm -rf ./node_modules .turbo ./dist && pnpm generated:clean",
38
- "compile:evm": "pnpm lz-tool hardhat compile --config /hardhat/hardhat.default.config.js",
39
- "compile:tron": "pnpm lz-tool hardhat compile --config /hardhat/hardhat.default.config.js --network tron-mainnet",
40
- "compile:zksync": "pnpm lz-tool hardhat compile --config /hardhat/hardhat.default.config.js --network zksync-mainnet",
38
+ "compile:evm": "pnpm lz-tool --env TS_NODE_COMPILER_OPTIONS='{\"module\":\"CommonJS\",\"moduleResolution\":\"node\"}' hardhat compile --config /hardhat/hardhat.default.config.js",
39
+ "compile:tron": "pnpm lz-tool --env TS_NODE_COMPILER_OPTIONS='{\"module\":\"CommonJS\",\"moduleResolution\":\"node\"}' hardhat compile --config /hardhat/hardhat.default.config.js --network tron-mainnet",
40
+ "compile:zksync": "pnpm lz-tool --env TS_NODE_COMPILER_OPTIONS='{\"module\":\"CommonJS\",\"moduleResolution\":\"node\"}' hardhat compile --config /hardhat/hardhat.default.config.js --network zksync-mainnet",
41
41
  "generated:clean": "rm -rf ./artifacts ./artifacts-tron ./artifacts-zk ./hh-cache ./hh-cache-tron ./hh-cache-zk",
42
42
  "lint": "solhint --config solhint.config.js 'contracts/**/*.sol' 'test/**/*.sol' --fix --noPrompt",
43
43
  "test": "pnpm lz-tool forge test"