@layerzerolabs/oapp-upgradeable-evm-contracts 1.2.6 → 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.
@@ -4,43 +4,25 @@
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-S4tGYX
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:90707) [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-S4tGYX:/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
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-S4tGYX:/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
22
22
  Compiling 150 files with Solc 0.8.22
23
- Solc 0.8.22 finished in 12.42s
23
+ Solc 0.8.22 finished in 22.97s
24
24
  Compiler run successful!
25
25
 
26
- Ran 6 tests for test/OAppCoreRBACUpgradeable.t.sol:OAppCoreRBACUpgradeableTest
27
- [PASS] test_acceptDefaultAdminTransfer() (gas: 107512)
28
- [PASS] test_acceptDefaultAdminTransfer_ChainedTransfers() (gas: 175705)
29
- [PASS] test_acceptDefaultAdminTransfer_Fuzz(address) (runs: 1000, μ: 108498, ~: 108498)
30
- [PASS] test_initialize_SetsDelegate() (gas: 15127)
31
- [PASS] test_setDelegate_Revert_CannotDirectlySetDelegate_Admin() (gas: 15597)
32
- [PASS] test_setDelegate_Revert_CannotDirectlySetDelegate_NonAdmin() (gas: 16016)
33
- Suite result: ok. 6 passed; 0 failed; 0 skipped; finished in 121.47ms (118.20ms CPU time)
34
-
35
- Ran 6 tests for test/OAppAltUpgradeable.t.sol:OAppAltUpgradeableTest
36
- [PASS] test_constructor() (gas: 15583)
37
- [PASS] test_constructor_Revert_InvalidNativeToken() (gas: 4353096)
38
- [PASS] test_payNative() (gas: 97285)
39
- [PASS] test_payNative_Fuzz(uint96) (runs: 1000, μ: 99259, ~: 99198)
40
- [PASS] test_payNative_Revert_OnlyAltToken() (gas: 101951)
41
- [PASS] test_payNative_ZeroFee() (gas: 18992)
42
- Suite result: ok. 6 passed; 0 failed; 0 skipped; finished in 141.51ms (139.47ms CPU time)
43
-
44
26
  Ran 15 tests for test/OAppOptionsType3RBACUpgradeable.t.sol:OAppOptionsType3RBACUpgradeableTest
45
27
  [PASS] test_combineOptions_CombinesType3Options() (gas: 58107)
46
28
  [PASS] test_combineOptions_Fuzz(uint32,uint16,uint128,uint128) (runs: 1000, μ: 60840, ~: 60830)
@@ -57,11 +39,20 @@ Ran 15 tests for test/OAppOptionsType3RBACUpgradeable.t.sol:OAppOptionsType3RBAC
57
39
  [PASS] test_setEnforcedOptions_Fuzz(uint32,uint16,uint128) (runs: 1000, μ: 53635, ~: 53630)
58
40
  [PASS] test_setEnforcedOptions_Fuzz_Revert_InvalidOptionsType(uint16) (runs: 1000, μ: 20171, ~: 20171)
59
41
  [PASS] test_setEnforcedOptions_Revert_Unauthorized() (gas: 23046)
60
- Suite result: ok. 15 passed; 0 failed; 0 skipped; finished in 142.41ms (480.65ms CPU time)
42
+ Suite result: ok. 15 passed; 0 failed; 0 skipped; finished in 231.47ms (688.14ms CPU time)
43
+
44
+ Ran 6 tests for test/OAppCoreRBACUpgradeable.t.sol:OAppCoreRBACUpgradeableTest
45
+ [PASS] test_acceptDefaultAdminTransfer() (gas: 107512)
46
+ [PASS] test_acceptDefaultAdminTransfer_ChainedTransfers() (gas: 175705)
47
+ [PASS] test_acceptDefaultAdminTransfer_Fuzz(address) (runs: 1000, μ: 108498, ~: 108498)
48
+ [PASS] test_initialize_SetsDelegate() (gas: 15127)
49
+ [PASS] test_setDelegate_Revert_CannotDirectlySetDelegate_Admin() (gas: 15597)
50
+ [PASS] test_setDelegate_Revert_CannotDirectlySetDelegate_NonAdmin() (gas: 16016)
51
+ Suite result: ok. 6 passed; 0 failed; 0 skipped; finished in 256.28ms (252.28ms CPU time)
61
52
 
62
53
  Ran 14 tests for test/OAppOptionsType3BaseUpgradeable.t.sol:OAppOptionsType3BaseUpgradeableTest
63
54
  [PASS] test_combineOptions_CombinesType3Options() (gas: 55506)
64
- [PASS] test_combineOptions_Fuzz(uint32,uint16,uint128,uint128) (runs: 1000, μ: 58349, ~: 58337)
55
+ [PASS] test_combineOptions_Fuzz(uint32,uint16,uint128,uint128) (runs: 1000, μ: 58348, ~: 58337)
65
56
  [PASS] test_combineOptions_Fuzz_Revert_InvalidExtraOptionsType(uint16) (runs: 1000, μ: 50697, ~: 50697)
66
57
  [PASS] test_combineOptions_NoEnforcedOptions() (gas: 19825)
67
58
  [PASS] test_combineOptions_NoExtraOptions() (gas: 94671)
@@ -72,9 +63,18 @@ Ran 14 tests for test/OAppOptionsType3BaseUpgradeable.t.sol:OAppOptionsType3Base
72
63
  [PASS] test_initialize_Revert_AlreadyInitialized() (gas: 15583)
73
64
  [PASS] test_setEnforcedOptions() (gas: 132440)
74
65
  [PASS] test_setEnforcedOptions_EmptyOptionsResetsEnforced() (gas: 42400)
75
- [PASS] test_setEnforcedOptions_Fuzz(uint32,uint16,uint128) (runs: 1000, μ: 51095, ~: 51093)
66
+ [PASS] test_setEnforcedOptions_Fuzz(uint32,uint16,uint128) (runs: 1000, μ: 51097, ~: 51093)
76
67
  [PASS] test_setEnforcedOptions_Fuzz_Revert_InvalidOptionsType(uint16) (runs: 1000, μ: 17649, ~: 17649)
77
- Suite result: ok. 14 passed; 0 failed; 0 skipped; finished in 145.46ms (441.80ms CPU time)
68
+ Suite result: ok. 14 passed; 0 failed; 0 skipped; finished in 302.81ms (937.63ms CPU time)
69
+
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)
78
78
 
79
- Ran 4 test suites in 150.71ms (550.84ms CPU time): 41 tests passed, 0 failed, 0 skipped (41 total tests)
80
- ⏳ forge test: 14.257s
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": "1.2.6",
3
+ "version": "1.2.7",
4
4
  "private": false,
5
5
  "description": "LayerZero Labs reference EVM upgradeable OApp implementation",
6
6
  "license": "MIT",
@@ -15,12 +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": "1.2.6",
19
- "@layerzerolabs/utils-evm-contracts": "1.2.6",
20
- "@layerzerolabs/utils-upgradeable-evm-contracts": "1.2.6",
21
- "@layerzerolabs/test-utils-evm-contracts": "1.2.6",
22
- "@layerzerolabs/solhint-configuration": "1.2.6",
23
- "@layerzerolabs/vm-tooling-evm": "1.2.6"
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"
24
24
  },
25
25
  "publishConfig": {
26
26
  "access": "public",