@layerzerolabs/oapp-upgradeable-evm-contracts 0.2.103 → 0.2.105

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.
@@ -2,7 +2,7 @@
2
2
  > @layerzerolabs/oapp-upgradeable-evm-contracts@0.0.0 lint /home/runner/work/monorepo-internal/monorepo-internal/apps/oapp-app/contracts/evm/upgradeable
3
3
  > solhint --config solhint.config.js 'contracts/**/*.sol' 'test/**/*.sol' --fix --noPrompt
4
4
 
5
- A new version of Solhint is available: 6.2.1
5
+ A new version of Solhint is available: 6.2.2
6
6
  Please consider updating your Solhint package.
7
7
 
8
8
  contracts/oapp/alt/OAppAltUpgradeable.sol
@@ -4,47 +4,39 @@
4
4
 
5
5
  ✅ forge-1.3.6-hardhat-2.26.3
6
6
  🔧 forge version: 1.3.6
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:476141) [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.
7
+ $ docker image inspect --format {{.Architecture}} 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3
8
+ (node:186790) [MODULE_TYPELESS_PACKAGE_JSON] Warning: Module type of file:///home/runner/work/monorepo-internal/monorepo-internal/configs/vm-tooling/values/docker-image-repo.ts is not specified and it doesn't parse as CommonJS.
9
9
  Reparsing as ES module because module syntax was detected. This incurs a performance overhead.
10
10
  To eliminate this warning, add "type": "module" to /home/runner/work/monorepo-internal/monorepo-internal/package.json.
11
11
  (Use `node --trace-warnings ...` to show where the warning was created)
12
- ✅ Using cached Docker image: 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3
12
+ ✅ Using cached Docker image: 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3 (amd64)
13
13
  👤 Running container as UID:GID 1001:1001
14
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/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
15
15
  Compiling 150 files with Solc 0.8.22
16
- Solc 0.8.22 finished in 20.12s
16
+ Solc 0.8.22 finished in 17.63s
17
17
  Compiler run successful!
18
18
 
19
+ Ran 6 tests for test/OAppCoreRBACUpgradeable.t.sol:OAppCoreRBACUpgradeableTest
20
+ [PASS] test_acceptDefaultAdminTransfer() (gas: 107512)
21
+ [PASS] test_acceptDefaultAdminTransfer_ChainedTransfers() (gas: 175705)
22
+ [PASS] test_acceptDefaultAdminTransfer_Fuzz(address) (runs: 1000, μ: 108498, ~: 108498)
23
+ [PASS] test_initialize_SetsDelegate() (gas: 15127)
24
+ [PASS] test_setDelegate_Revert_CannotDirectlySetDelegate_Admin() (gas: 15597)
25
+ [PASS] test_setDelegate_Revert_CannotDirectlySetDelegate_NonAdmin() (gas: 16016)
26
+ Suite result: ok. 6 passed; 0 failed; 0 skipped; finished in 129.08ms (128.52ms CPU time)
27
+
19
28
  Ran 6 tests for test/OAppAltUpgradeable.t.sol:OAppAltUpgradeableTest
20
29
  [PASS] test_constructor() (gas: 15583)
21
30
  [PASS] test_constructor_Revert_InvalidNativeToken() (gas: 4353096)
22
31
  [PASS] test_payNative() (gas: 97285)
23
- [PASS] test_payNative_Fuzz(uint96) (runs: 1000, μ: 99265, ~: 99198)
32
+ [PASS] test_payNative_Fuzz(uint96) (runs: 1000, μ: 99267, ~: 99198)
24
33
  [PASS] test_payNative_Revert_OnlyAltToken() (gas: 101951)
25
34
  [PASS] test_payNative_ZeroFee() (gas: 18992)
26
- Suite result: ok. 6 passed; 0 failed; 0 skipped; finished in 168.33ms (162.25ms CPU time)
27
-
28
- Ran 14 tests for test/OAppOptionsType3BaseUpgradeable.t.sol:OAppOptionsType3BaseUpgradeableTest
29
- [PASS] test_combineOptions_CombinesType3Options() (gas: 55506)
30
- [PASS] test_combineOptions_Fuzz(uint32,uint16,uint128,uint128) (runs: 1000, μ: 58345, ~: 58337)
31
- [PASS] test_combineOptions_Fuzz_Revert_InvalidExtraOptionsType(uint16) (runs: 1000, μ: 50697, ~: 50697)
32
- [PASS] test_combineOptions_NoEnforcedOptions() (gas: 19825)
33
- [PASS] test_combineOptions_NoExtraOptions() (gas: 94671)
34
- [PASS] test_combineOptions_PassthroughAfterReset() (gas: 80107)
35
- [PASS] test_combineOptions_Revert_SingleByteExtraOptions() (gas: 49368)
36
- [PASS] test_enforcedOptions() (gas: 47289)
37
- [PASS] test_enforcedOptions_Empty() (gas: 17289)
38
- [PASS] test_initialize_Revert_AlreadyInitialized() (gas: 15583)
39
- [PASS] test_setEnforcedOptions() (gas: 132440)
40
- [PASS] test_setEnforcedOptions_EmptyOptionsResetsEnforced() (gas: 42400)
41
- [PASS] test_setEnforcedOptions_Fuzz(uint32,uint16,uint128) (runs: 1000, μ: 51097, ~: 51093)
42
- [PASS] test_setEnforcedOptions_Fuzz_Revert_InvalidOptionsType(uint16) (runs: 1000, μ: 17649, ~: 17649)
43
- Suite result: ok. 14 passed; 0 failed; 0 skipped; finished in 220.54ms (610.62ms CPU time)
35
+ Suite result: ok. 6 passed; 0 failed; 0 skipped; finished in 161.70ms (158.17ms CPU time)
44
36
 
45
37
  Ran 15 tests for test/OAppOptionsType3RBACUpgradeable.t.sol:OAppOptionsType3RBACUpgradeableTest
46
38
  [PASS] test_combineOptions_CombinesType3Options() (gas: 58107)
47
- [PASS] test_combineOptions_Fuzz(uint32,uint16,uint128,uint128) (runs: 1000, μ: 60842, ~: 60830)
39
+ [PASS] test_combineOptions_Fuzz(uint32,uint16,uint128,uint128) (runs: 1000, μ: 60840, ~: 60830)
48
40
  [PASS] test_combineOptions_Fuzz_Revert_InvalidExtraOptionsType(uint16) (runs: 1000, μ: 53266, ~: 53266)
49
41
  [PASS] test_combineOptions_NoEnforcedOptions() (gas: 19925)
50
42
  [PASS] test_combineOptions_NoExtraOptions() (gas: 97203)
@@ -58,16 +50,24 @@ Ran 15 tests for test/OAppOptionsType3RBACUpgradeable.t.sol:OAppOptionsType3RBAC
58
50
  [PASS] test_setEnforcedOptions_Fuzz(uint32,uint16,uint128) (runs: 1000, μ: 53633, ~: 53630)
59
51
  [PASS] test_setEnforcedOptions_Fuzz_Revert_InvalidOptionsType(uint16) (runs: 1000, μ: 20171, ~: 20171)
60
52
  [PASS] test_setEnforcedOptions_Revert_Unauthorized() (gas: 23046)
61
- Suite result: ok. 15 passed; 0 failed; 0 skipped; finished in 244.56ms (627.97ms CPU time)
53
+ Suite result: ok. 15 passed; 0 failed; 0 skipped; finished in 161.97ms (496.02ms CPU time)
62
54
 
63
- Ran 6 tests for test/OAppCoreRBACUpgradeable.t.sol:OAppCoreRBACUpgradeableTest
64
- [PASS] test_acceptDefaultAdminTransfer() (gas: 107512)
65
- [PASS] test_acceptDefaultAdminTransfer_ChainedTransfers() (gas: 175705)
66
- [PASS] test_acceptDefaultAdminTransfer_Fuzz(address) (runs: 1000, μ: 108498, ~: 108498)
67
- [PASS] test_initialize_SetsDelegate() (gas: 15127)
68
- [PASS] test_setDelegate_Revert_CannotDirectlySetDelegate_Admin() (gas: 15597)
69
- [PASS] test_setDelegate_Revert_CannotDirectlySetDelegate_NonAdmin() (gas: 16016)
70
- Suite result: ok. 6 passed; 0 failed; 0 skipped; finished in 256.25ms (252.87ms CPU time)
55
+ Ran 14 tests for test/OAppOptionsType3BaseUpgradeable.t.sol:OAppOptionsType3BaseUpgradeableTest
56
+ [PASS] test_combineOptions_CombinesType3Options() (gas: 55506)
57
+ [PASS] test_combineOptions_Fuzz(uint32,uint16,uint128,uint128) (runs: 1000, μ: 58345, ~: 58337)
58
+ [PASS] test_combineOptions_Fuzz_Revert_InvalidExtraOptionsType(uint16) (runs: 1000, μ: 50697, ~: 50697)
59
+ [PASS] test_combineOptions_NoEnforcedOptions() (gas: 19825)
60
+ [PASS] test_combineOptions_NoExtraOptions() (gas: 94671)
61
+ [PASS] test_combineOptions_PassthroughAfterReset() (gas: 80107)
62
+ [PASS] test_combineOptions_Revert_SingleByteExtraOptions() (gas: 49368)
63
+ [PASS] test_enforcedOptions() (gas: 47289)
64
+ [PASS] test_enforcedOptions_Empty() (gas: 17289)
65
+ [PASS] test_initialize_Revert_AlreadyInitialized() (gas: 15583)
66
+ [PASS] test_setEnforcedOptions() (gas: 132440)
67
+ [PASS] test_setEnforcedOptions_EmptyOptionsResetsEnforced() (gas: 42400)
68
+ [PASS] test_setEnforcedOptions_Fuzz(uint32,uint16,uint128) (runs: 1000, μ: 51097, ~: 51093)
69
+ [PASS] test_setEnforcedOptions_Fuzz_Revert_InvalidOptionsType(uint16) (runs: 1000, μ: 17649, ~: 17649)
70
+ Suite result: ok. 14 passed; 0 failed; 0 skipped; finished in 211.75ms (528.05ms CPU time)
71
71
 
72
- Ran 4 test suites in 275.18ms (889.68ms CPU time): 41 tests passed, 0 failed, 0 skipped (41 total tests)
73
- ⏳ forge test: 23.467s
72
+ Ran 4 test suites in 214.52ms (664.50ms CPU time): 41 tests passed, 0 failed, 0 skipped (41 total tests)
73
+ ⏳ forge test: 20.129s
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@layerzerolabs/oapp-upgradeable-evm-contracts",
3
- "version": "0.2.103",
3
+ "version": "0.2.105",
4
4
  "private": false,
5
5
  "description": "LayerZero Labs reference EVM upgradeable OApp implementation",
6
6
  "license": "MIT",
@@ -15,14 +15,14 @@
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.103",
19
- "@layerzerolabs/test-utils-evm-contracts": "0.2.103",
20
- "@layerzerolabs/solhint-configuration": "0.2.103",
21
- "@layerzerolabs/typescript-configuration": "0.2.103",
22
- "@layerzerolabs/tsup-configuration": "0.2.103",
23
- "@layerzerolabs/utils-evm-contracts": "0.2.103",
24
- "@layerzerolabs/vm-tooling-evm": "0.2.103",
25
- "@layerzerolabs/utils-upgradeable-evm-contracts": "0.2.103"
18
+ "@layerzerolabs/solhint-configuration": "0.2.105",
19
+ "@layerzerolabs/test-utils-evm-contracts": "0.2.105",
20
+ "@layerzerolabs/typescript-configuration": "0.2.105",
21
+ "@layerzerolabs/oapp-evm-contracts": "0.2.105",
22
+ "@layerzerolabs/tsup-configuration": "0.2.105",
23
+ "@layerzerolabs/utils-evm-contracts": "0.2.105",
24
+ "@layerzerolabs/vm-tooling-evm": "0.2.105",
25
+ "@layerzerolabs/utils-upgradeable-evm-contracts": "0.2.105"
26
26
  },
27
27
  "publishConfig": {
28
28
  "access": "public",