@layerzerolabs/oapp-upgradeable-evm-contracts 0.2.133 → 1.2.7

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.
Files changed (2) hide show
  1. package/.turbo/turbo-test.log +40 -117
  2. package/package.json +9 -10
@@ -4,102 +4,43 @@
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-DyUfkM
7
+ 📦 Using scoped workspace: /tmp/lz-scoped-workspace-83N8Da
8
8
  📦 Copied 11 workspace package source(s)
9
9
  📦 No scoped-workspace pruner configured; using unpruned package-level source copy fallback.
10
- (node:134939) [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
- Reparsing as ES module because module syntax was detected. This incurs a performance overhead.
12
- To eliminate this warning, add "type": "module" to /home/runner/work/monorepo-internal/monorepo-internal/package.json.
13
- (Use `node --trace-warnings ...` to show where the warning was created)
10
+ (node:229997) [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.
14
11
  📦 Docker volumes:
15
- -v /tmp/lz-scoped-workspace-DyUfkM:/workspace
12
+ Reparsing as ES module because module syntax was detected. This incurs a performance overhead.
13
+ -v /tmp/lz-scoped-workspace-83N8Da:/workspace
16
14
  -v /home/runner/work/monorepo-internal/monorepo-internal/apps/oapp-app/contracts/evm/upgradeable:/workspace/apps/oapp-app/contracts/evm/upgradeable
17
15
  -v /home/runner/work/monorepo-internal/monorepo-internal/node_modules/.pnpm:/workspace/node_modules/.pnpm:ro
16
+ To eliminate this warning, add "type": "module" to /home/runner/work/monorepo-internal/monorepo-internal/package.json.
17
+ (Use `node --trace-warnings ...` to show where the warning was created)
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
- 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
20
- 📥 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
21
- $ docker pull 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3
22
- forge-1.3.6-hardhat-2.26.3-patch-3: Pulling from layerzerolabs/evm-tooling
23
- 86ec798129ac: Pulling fs layer
24
- eef7c391911c: Pulling fs layer
25
- cc2ecf4065b7: Pulling fs layer
26
- 5760fdd70374: Pulling fs layer
27
- c70db14240a1: Pulling fs layer
28
- 0cb2c6965bde: Pulling fs layer
29
- 885bca26f927: Pulling fs layer
30
- 8e167e77288f: Pulling fs layer
31
- 45d43cc973ba: Pulling fs layer
32
- 44c09156221f: Pulling fs layer
33
- f2fb700979ad: Pulling fs layer
34
- 2a1ced882ba9: Pulling fs layer
35
- 597168d5c38e: Pulling fs layer
36
- e431adaf232f: Pulling fs layer
37
- 36e15e3f2788: Pulling fs layer
38
- 45d43cc973ba: Waiting
39
- 44c09156221f: Waiting
40
- f2fb700979ad: Waiting
41
- c70db14240a1: Waiting
42
- 2a1ced882ba9: Waiting
43
- 597168d5c38e: Waiting
44
- e431adaf232f: Waiting
45
- 36e15e3f2788: Waiting
46
- 0cb2c6965bde: Waiting
47
- 885bca26f927: Waiting
48
- 8e167e77288f: Waiting
49
- 5760fdd70374: Waiting
50
- eef7c391911c: Download complete
51
- 5760fdd70374: Verifying Checksum
52
- 5760fdd70374: Download complete
53
- 86ec798129ac: Verifying Checksum
54
- 86ec798129ac: Download complete
55
- cc2ecf4065b7: Verifying Checksum
56
- cc2ecf4065b7: Download complete
57
- c70db14240a1: Verifying Checksum
58
- c70db14240a1: Download complete
59
- 8e167e77288f: Verifying Checksum
60
- 8e167e77288f: Download complete
61
- 86ec798129ac: Pull complete
62
- eef7c391911c: Pull complete
63
- 45d43cc973ba: Verifying Checksum
64
- 45d43cc973ba: Download complete
65
- 44c09156221f: Verifying Checksum
66
- 44c09156221f: Download complete
67
- 0cb2c6965bde: Verifying Checksum
68
- 0cb2c6965bde: Download complete
69
- f2fb700979ad: Verifying Checksum
70
- f2fb700979ad: Download complete
71
- cc2ecf4065b7: Pull complete
72
- 5760fdd70374: Pull complete
73
- c70db14240a1: Pull complete
74
- 597168d5c38e: Verifying Checksum
75
- 597168d5c38e: Download complete
76
- 0cb2c6965bde: Pull complete
77
- 2a1ced882ba9: Verifying Checksum
78
- 2a1ced882ba9: Download complete
79
- 36e15e3f2788: Download complete
80
- e431adaf232f: Verifying Checksum
81
- e431adaf232f: Download complete
82
- 885bca26f927: Verifying Checksum
83
- 885bca26f927: Download complete
84
- 885bca26f927: Pull complete
85
- 8e167e77288f: Pull complete
86
- 45d43cc973ba: Pull complete
87
- 44c09156221f: Pull complete
88
- f2fb700979ad: Pull complete
89
- 2a1ced882ba9: Pull complete
90
- 597168d5c38e: Pull complete
91
- e431adaf232f: Pull complete
92
- 36e15e3f2788: Pull complete
93
- Digest: sha256:08b858b586759ec59f4df44c0bc5eac9f856a1eb32b6ce37f79f31a20a89ed52
94
- 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
95
- 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3
96
- ✅ Successfully pulled: 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3
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)
97
20
  👤 Running container as UID:GID 1001:1001
98
- $ docker run --rm --add-host=host.docker.internal:host-gateway -e LOCAL_UID=1001 -e LOCAL_GID=1001 -v /tmp/lz-scoped-workspace-DyUfkM:/workspace -v /home/runner/work/monorepo-internal/monorepo-internal/apps/oapp-app/contracts/evm/upgradeable:/workspace/apps/oapp-app/contracts/evm/upgradeable -v /home/runner/work/monorepo-internal/monorepo-internal/node_modules/.pnpm:/workspace/node_modules/.pnpm:ro -w /workspace/apps/oapp-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-83N8Da:/workspace -v /home/runner/work/monorepo-internal/monorepo-internal/apps/oapp-app/contracts/evm/upgradeable:/workspace/apps/oapp-app/contracts/evm/upgradeable -v /home/runner/work/monorepo-internal/monorepo-internal/node_modules/.pnpm:/workspace/node_modules/.pnpm:ro -w /workspace/apps/oapp-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
99
22
  Compiling 150 files with Solc 0.8.22
100
- Solc 0.8.22 finished in 21.58s
23
+ Solc 0.8.22 finished in 22.97s
101
24
  Compiler run successful!
102
25
 
26
+ Ran 15 tests for test/OAppOptionsType3RBACUpgradeable.t.sol:OAppOptionsType3RBACUpgradeableTest
27
+ [PASS] test_combineOptions_CombinesType3Options() (gas: 58107)
28
+ [PASS] test_combineOptions_Fuzz(uint32,uint16,uint128,uint128) (runs: 1000, μ: 60840, ~: 60830)
29
+ [PASS] test_combineOptions_Fuzz_Revert_InvalidExtraOptionsType(uint16) (runs: 1000, μ: 53266, ~: 53266)
30
+ [PASS] test_combineOptions_NoEnforcedOptions() (gas: 19925)
31
+ [PASS] test_combineOptions_NoExtraOptions() (gas: 97203)
32
+ [PASS] test_combineOptions_PassthroughAfterReset() (gas: 82500)
33
+ [PASS] test_combineOptions_Revert_SingleByteExtraOptions() (gas: 51905)
34
+ [PASS] test_enforcedOptions() (gas: 49826)
35
+ [PASS] test_enforcedOptions_Empty() (gas: 17366)
36
+ [PASS] test_initialize_Revert_AlreadyInitialized() (gas: 17898)
37
+ [PASS] test_setEnforcedOptions() (gas: 135081)
38
+ [PASS] test_setEnforcedOptions_EmptyOptionsResetsEnforced() (gas: 44859)
39
+ [PASS] test_setEnforcedOptions_Fuzz(uint32,uint16,uint128) (runs: 1000, μ: 53635, ~: 53630)
40
+ [PASS] test_setEnforcedOptions_Fuzz_Revert_InvalidOptionsType(uint16) (runs: 1000, μ: 20171, ~: 20171)
41
+ [PASS] test_setEnforcedOptions_Revert_Unauthorized() (gas: 23046)
42
+ Suite result: ok. 15 passed; 0 failed; 0 skipped; finished in 231.47ms (688.14ms CPU time)
43
+
103
44
  Ran 6 tests for test/OAppCoreRBACUpgradeable.t.sol:OAppCoreRBACUpgradeableTest
104
45
  [PASS] test_acceptDefaultAdminTransfer() (gas: 107512)
105
46
  [PASS] test_acceptDefaultAdminTransfer_ChainedTransfers() (gas: 175705)
@@ -107,20 +48,11 @@ Ran 6 tests for test/OAppCoreRBACUpgradeable.t.sol:OAppCoreRBACUpgradeableTest
107
48
  [PASS] test_initialize_SetsDelegate() (gas: 15127)
108
49
  [PASS] test_setDelegate_Revert_CannotDirectlySetDelegate_Admin() (gas: 15597)
109
50
  [PASS] test_setDelegate_Revert_CannotDirectlySetDelegate_NonAdmin() (gas: 16016)
110
- Suite result: ok. 6 passed; 0 failed; 0 skipped; finished in 172.26ms (168.51ms CPU time)
111
-
112
- Ran 6 tests for test/OAppAltUpgradeable.t.sol:OAppAltUpgradeableTest
113
- [PASS] test_constructor() (gas: 15583)
114
- [PASS] test_constructor_Revert_InvalidNativeToken() (gas: 4353096)
115
- [PASS] test_payNative() (gas: 97285)
116
- [PASS] test_payNative_Fuzz(uint96) (runs: 1000, μ: 99257, ~: 99198)
117
- [PASS] test_payNative_Revert_OnlyAltToken() (gas: 101951)
118
- [PASS] test_payNative_ZeroFee() (gas: 18992)
119
- Suite result: ok. 6 passed; 0 failed; 0 skipped; finished in 192.96ms (189.88ms CPU time)
51
+ Suite result: ok. 6 passed; 0 failed; 0 skipped; finished in 256.28ms (252.28ms CPU time)
120
52
 
121
53
  Ran 14 tests for test/OAppOptionsType3BaseUpgradeable.t.sol:OAppOptionsType3BaseUpgradeableTest
122
54
  [PASS] test_combineOptions_CombinesType3Options() (gas: 55506)
123
- [PASS] test_combineOptions_Fuzz(uint32,uint16,uint128,uint128) (runs: 1000, μ: 58346, ~: 58337)
55
+ [PASS] test_combineOptions_Fuzz(uint32,uint16,uint128,uint128) (runs: 1000, μ: 58348, ~: 58337)
124
56
  [PASS] test_combineOptions_Fuzz_Revert_InvalidExtraOptionsType(uint16) (runs: 1000, μ: 50697, ~: 50697)
125
57
  [PASS] test_combineOptions_NoEnforcedOptions() (gas: 19825)
126
58
  [PASS] test_combineOptions_NoExtraOptions() (gas: 94671)
@@ -133,25 +65,16 @@ Ran 14 tests for test/OAppOptionsType3BaseUpgradeable.t.sol:OAppOptionsType3Base
133
65
  [PASS] test_setEnforcedOptions_EmptyOptionsResetsEnforced() (gas: 42400)
134
66
  [PASS] test_setEnforcedOptions_Fuzz(uint32,uint16,uint128) (runs: 1000, μ: 51097, ~: 51093)
135
67
  [PASS] test_setEnforcedOptions_Fuzz_Revert_InvalidOptionsType(uint16) (runs: 1000, μ: 17649, ~: 17649)
136
- Suite result: ok. 14 passed; 0 failed; 0 skipped; finished in 221.20ms (616.30ms CPU time)
68
+ Suite result: ok. 14 passed; 0 failed; 0 skipped; finished in 302.81ms (937.63ms CPU time)
137
69
 
138
- Ran 15 tests for test/OAppOptionsType3RBACUpgradeable.t.sol:OAppOptionsType3RBACUpgradeableTest
139
- [PASS] test_combineOptions_CombinesType3Options() (gas: 58107)
140
- [PASS] test_combineOptions_Fuzz(uint32,uint16,uint128,uint128) (runs: 1000, μ: 60837, ~: 60830)
141
- [PASS] test_combineOptions_Fuzz_Revert_InvalidExtraOptionsType(uint16) (runs: 1000, μ: 53266, ~: 53266)
142
- [PASS] test_combineOptions_NoEnforcedOptions() (gas: 19925)
143
- [PASS] test_combineOptions_NoExtraOptions() (gas: 97203)
144
- [PASS] test_combineOptions_PassthroughAfterReset() (gas: 82500)
145
- [PASS] test_combineOptions_Revert_SingleByteExtraOptions() (gas: 51905)
146
- [PASS] test_enforcedOptions() (gas: 49826)
147
- [PASS] test_enforcedOptions_Empty() (gas: 17366)
148
- [PASS] test_initialize_Revert_AlreadyInitialized() (gas: 17898)
149
- [PASS] test_setEnforcedOptions() (gas: 135081)
150
- [PASS] test_setEnforcedOptions_EmptyOptionsResetsEnforced() (gas: 44859)
151
- [PASS] test_setEnforcedOptions_Fuzz(uint32,uint16,uint128) (runs: 1000, μ: 53635, ~: 53630)
152
- [PASS] test_setEnforcedOptions_Fuzz_Revert_InvalidOptionsType(uint16) (runs: 1000, μ: 20171, ~: 20171)
153
- [PASS] test_setEnforcedOptions_Revert_Unauthorized() (gas: 23046)
154
- Suite result: ok. 15 passed; 0 failed; 0 skipped; finished in 248.32ms (610.46ms CPU time)
70
+ Ran 6 tests for test/OAppAltUpgradeable.t.sol:OAppAltUpgradeableTest
71
+ [PASS] test_constructor() (gas: 15583)
72
+ [PASS] test_constructor_Revert_InvalidNativeToken() (gas: 4353096)
73
+ [PASS] test_payNative() (gas: 97285)
74
+ [PASS] test_payNative_Fuzz(uint96) (runs: 1000, μ: 99266, ~: 99198)
75
+ [PASS] test_payNative_Revert_OnlyAltToken() (gas: 101951)
76
+ [PASS] test_payNative_ZeroFee() (gas: 18992)
77
+ Suite result: ok. 6 passed; 0 failed; 0 skipped; finished in 312.19ms (309.10ms CPU time)
155
78
 
156
- Ran 4 test suites in 257.69ms (834.74ms CPU time): 41 tests passed, 0 failed, 0 skipped (41 total tests)
157
- ⏳ forge test: 23.653s
79
+ Ran 4 test suites in 322.36ms (1.10s CPU time): 41 tests passed, 0 failed, 0 skipped (41 total tests)
80
+ ⏳ forge test: 26.570s
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@layerzerolabs/oapp-upgradeable-evm-contracts",
3
- "version": "0.2.133",
3
+ "version": "1.2.7",
4
4
  "private": false,
5
5
  "description": "LayerZero Labs reference EVM upgradeable OApp implementation",
6
6
  "license": "MIT",
@@ -15,14 +15,12 @@
15
15
  "ethers": "^5.8.0",
16
16
  "solhint": "^6.0.1",
17
17
  "solidity-bytes-utils": "^0.8.4",
18
- "@layerzerolabs/oapp-evm-contracts": "0.2.133",
19
- "@layerzerolabs/solhint-configuration": "0.2.133",
20
- "@layerzerolabs/test-utils-evm-contracts": "0.2.133",
21
- "@layerzerolabs/tsup-configuration": "0.2.133",
22
- "@layerzerolabs/typescript-configuration": "0.2.133",
23
- "@layerzerolabs/utils-evm-contracts": "0.2.133",
24
- "@layerzerolabs/utils-upgradeable-evm-contracts": "0.2.133",
25
- "@layerzerolabs/vm-tooling-evm": "0.2.133"
18
+ "@layerzerolabs/oapp-evm-contracts": "1.2.7",
19
+ "@layerzerolabs/test-utils-evm-contracts": "1.2.7",
20
+ "@layerzerolabs/utils-upgradeable-evm-contracts": "1.2.7",
21
+ "@layerzerolabs/utils-evm-contracts": "1.2.7",
22
+ "@layerzerolabs/solhint-configuration": "1.2.7",
23
+ "@layerzerolabs/vm-tooling-evm": "1.2.7"
26
24
  },
27
25
  "publishConfig": {
28
26
  "access": "public",
@@ -35,7 +33,8 @@
35
33
  ]
36
34
  },
37
35
  "scripts": {
38
- "clean-artifacts": "rm -rf artifacts* cache hh-cache* out",
36
+ "clean": "rm -rf ./node_modules .turbo ./dist && pnpm generated:clean",
37
+ "generated:clean": "rm -rf ./artifacts* ./hh-cache* ./out ./cache",
39
38
  "lint": "solhint --config solhint.config.js 'contracts/**/*.sol' 'test/**/*.sol' --fix --noPrompt",
40
39
  "test": "pnpm lz-tool forge test"
41
40
  }