@layerzerolabs/oapp-upgradeable-evm-contracts 0.2.116 → 0.2.120
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.
- package/.turbo/turbo-test.log +77 -38
- package/foundry.toml +1 -1
- package/package.json +10 -10
package/.turbo/turbo-test.log
CHANGED
|
@@ -4,46 +4,94 @@
|
|
|
4
4
|
|
|
5
5
|
✅ forge-1.3.6-hardhat-2.26.3
|
|
6
6
|
🔧 forge version: 1.3.6
|
|
7
|
-
📦 Using mini workspace: /tmp/lz-mini-workspace-
|
|
7
|
+
📦 Using mini workspace: /tmp/lz-mini-workspace-SFFUta
|
|
8
8
|
📦 Copied 11 workspace package source(s)
|
|
9
9
|
📦 No mini-workspace pruner configured; using unpruned package-level source copy fallback.
|
|
10
|
-
(node:
|
|
10
|
+
(node:86461) [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-mini-workspace-
|
|
15
|
+
-v /tmp/lz-mini-workspace-SFFUta:/workspace
|
|
16
16
|
-v /home/runner/work/monorepo-internal/monorepo-internal/apps/oapp-app/contracts/evm/upgradeable:/workspace/apps/oapp-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
|
+
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: Already exists
|
|
24
|
+
eef7c391911c: Already exists
|
|
25
|
+
cc2ecf4065b7: Already exists
|
|
26
|
+
5760fdd70374: Already exists
|
|
27
|
+
c70db14240a1: Already exists
|
|
28
|
+
0cb2c6965bde: Already exists
|
|
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: Download complete
|
|
39
|
+
36e15e3f2788: Download complete
|
|
40
|
+
44c09156221f: Download complete
|
|
41
|
+
f2fb700979ad: Download complete
|
|
42
|
+
2a1ced882ba9: Download complete
|
|
43
|
+
597168d5c38e: Download complete
|
|
44
|
+
e431adaf232f: Download complete
|
|
45
|
+
8e167e77288f: Download complete
|
|
46
|
+
885bca26f927: Pull complete
|
|
47
|
+
8e167e77288f: Pull complete
|
|
48
|
+
45d43cc973ba: Pull complete
|
|
49
|
+
44c09156221f: Pull complete
|
|
50
|
+
f2fb700979ad: Pull complete
|
|
51
|
+
2a1ced882ba9: Pull complete
|
|
52
|
+
597168d5c38e: Pull complete
|
|
53
|
+
e431adaf232f: Pull complete
|
|
54
|
+
36e15e3f2788: Pull complete
|
|
55
|
+
Digest: sha256:08b858b586759ec59f4df44c0bc5eac9f856a1eb32b6ce37f79f31a20a89ed52
|
|
56
|
+
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
|
|
57
|
+
438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3
|
|
58
|
+
✅ Successfully pulled: 438003944538.dkr.ecr.us-east-1.amazonaws.com/layerzerolabs/evm-tooling:forge-1.3.6-hardhat-2.26.3-patch-3
|
|
20
59
|
👤 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-mini-workspace-
|
|
60
|
+
$ docker run --rm --add-host=host.docker.internal:host-gateway -e LOCAL_UID=1001 -e LOCAL_GID=1001 -v /tmp/lz-mini-workspace-SFFUta:/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
61
|
Compiling 150 files with Solc 0.8.22
|
|
23
|
-
Solc 0.8.22 finished in
|
|
62
|
+
Solc 0.8.22 finished in 12.73s
|
|
24
63
|
Compiler run successful!
|
|
25
64
|
|
|
26
65
|
Ran 6 tests for test/OAppAltUpgradeable.t.sol:OAppAltUpgradeableTest
|
|
27
66
|
[PASS] test_constructor() (gas: 15583)
|
|
28
67
|
[PASS] test_constructor_Revert_InvalidNativeToken() (gas: 4353096)
|
|
29
68
|
[PASS] test_payNative() (gas: 97285)
|
|
30
|
-
[PASS] test_payNative_Fuzz(uint96) (runs: 1000, μ:
|
|
69
|
+
[PASS] test_payNative_Fuzz(uint96) (runs: 1000, μ: 99259, ~: 99198)
|
|
31
70
|
[PASS] test_payNative_Revert_OnlyAltToken() (gas: 101951)
|
|
32
71
|
[PASS] test_payNative_ZeroFee() (gas: 18992)
|
|
33
|
-
Suite result: ok. 6 passed; 0 failed; 0 skipped; finished in
|
|
72
|
+
Suite result: ok. 6 passed; 0 failed; 0 skipped; finished in 140.10ms (136.05ms CPU time)
|
|
34
73
|
|
|
35
|
-
Ran
|
|
36
|
-
[PASS]
|
|
37
|
-
[PASS]
|
|
38
|
-
[PASS]
|
|
39
|
-
[PASS]
|
|
40
|
-
[PASS]
|
|
41
|
-
[PASS]
|
|
42
|
-
|
|
74
|
+
Ran 15 tests for test/OAppOptionsType3RBACUpgradeable.t.sol:OAppOptionsType3RBACUpgradeableTest
|
|
75
|
+
[PASS] test_combineOptions_CombinesType3Options() (gas: 58107)
|
|
76
|
+
[PASS] test_combineOptions_Fuzz(uint32,uint16,uint128,uint128) (runs: 1000, μ: 60840, ~: 60830)
|
|
77
|
+
[PASS] test_combineOptions_Fuzz_Revert_InvalidExtraOptionsType(uint16) (runs: 1000, μ: 53266, ~: 53266)
|
|
78
|
+
[PASS] test_combineOptions_NoEnforcedOptions() (gas: 19925)
|
|
79
|
+
[PASS] test_combineOptions_NoExtraOptions() (gas: 97203)
|
|
80
|
+
[PASS] test_combineOptions_PassthroughAfterReset() (gas: 82500)
|
|
81
|
+
[PASS] test_combineOptions_Revert_SingleByteExtraOptions() (gas: 51905)
|
|
82
|
+
[PASS] test_enforcedOptions() (gas: 49826)
|
|
83
|
+
[PASS] test_enforcedOptions_Empty() (gas: 17366)
|
|
84
|
+
[PASS] test_initialize_Revert_AlreadyInitialized() (gas: 17898)
|
|
85
|
+
[PASS] test_setEnforcedOptions() (gas: 135081)
|
|
86
|
+
[PASS] test_setEnforcedOptions_EmptyOptionsResetsEnforced() (gas: 44859)
|
|
87
|
+
[PASS] test_setEnforcedOptions_Fuzz(uint32,uint16,uint128) (runs: 1000, μ: 53636, ~: 53630)
|
|
88
|
+
[PASS] test_setEnforcedOptions_Fuzz_Revert_InvalidOptionsType(uint16) (runs: 1000, μ: 20171, ~: 20171)
|
|
89
|
+
[PASS] test_setEnforcedOptions_Revert_Unauthorized() (gas: 23046)
|
|
90
|
+
Suite result: ok. 15 passed; 0 failed; 0 skipped; finished in 214.00ms (693.77ms CPU time)
|
|
43
91
|
|
|
44
92
|
Ran 14 tests for test/OAppOptionsType3BaseUpgradeable.t.sol:OAppOptionsType3BaseUpgradeableTest
|
|
45
93
|
[PASS] test_combineOptions_CombinesType3Options() (gas: 55506)
|
|
46
|
-
[PASS] test_combineOptions_Fuzz(uint32,uint16,uint128,uint128) (runs: 1000, μ:
|
|
94
|
+
[PASS] test_combineOptions_Fuzz(uint32,uint16,uint128,uint128) (runs: 1000, μ: 58346, ~: 58337)
|
|
47
95
|
[PASS] test_combineOptions_Fuzz_Revert_InvalidExtraOptionsType(uint16) (runs: 1000, μ: 50697, ~: 50697)
|
|
48
96
|
[PASS] test_combineOptions_NoEnforcedOptions() (gas: 19825)
|
|
49
97
|
[PASS] test_combineOptions_NoExtraOptions() (gas: 94671)
|
|
@@ -54,27 +102,18 @@ Ran 14 tests for test/OAppOptionsType3BaseUpgradeable.t.sol:OAppOptionsType3Base
|
|
|
54
102
|
[PASS] test_initialize_Revert_AlreadyInitialized() (gas: 15583)
|
|
55
103
|
[PASS] test_setEnforcedOptions() (gas: 132440)
|
|
56
104
|
[PASS] test_setEnforcedOptions_EmptyOptionsResetsEnforced() (gas: 42400)
|
|
57
|
-
[PASS] test_setEnforcedOptions_Fuzz(uint32,uint16,uint128) (runs: 1000, μ:
|
|
105
|
+
[PASS] test_setEnforcedOptions_Fuzz(uint32,uint16,uint128) (runs: 1000, μ: 51096, ~: 51093)
|
|
58
106
|
[PASS] test_setEnforcedOptions_Fuzz_Revert_InvalidOptionsType(uint16) (runs: 1000, μ: 17649, ~: 17649)
|
|
59
|
-
Suite result: ok. 14 passed; 0 failed; 0 skipped; finished in
|
|
107
|
+
Suite result: ok. 14 passed; 0 failed; 0 skipped; finished in 284.82ms (710.55ms CPU time)
|
|
60
108
|
|
|
61
|
-
Ran
|
|
62
|
-
[PASS]
|
|
63
|
-
[PASS]
|
|
64
|
-
[PASS]
|
|
65
|
-
[PASS]
|
|
66
|
-
[PASS]
|
|
67
|
-
[PASS]
|
|
68
|
-
|
|
69
|
-
[PASS] test_enforcedOptions() (gas: 49826)
|
|
70
|
-
[PASS] test_enforcedOptions_Empty() (gas: 17366)
|
|
71
|
-
[PASS] test_initialize_Revert_AlreadyInitialized() (gas: 17898)
|
|
72
|
-
[PASS] test_setEnforcedOptions() (gas: 135081)
|
|
73
|
-
[PASS] test_setEnforcedOptions_EmptyOptionsResetsEnforced() (gas: 44859)
|
|
74
|
-
[PASS] test_setEnforcedOptions_Fuzz(uint32,uint16,uint128) (runs: 1000, μ: 53633, ~: 53630)
|
|
75
|
-
[PASS] test_setEnforcedOptions_Fuzz_Revert_InvalidOptionsType(uint16) (runs: 1000, μ: 20171, ~: 20171)
|
|
76
|
-
[PASS] test_setEnforcedOptions_Revert_Unauthorized() (gas: 23046)
|
|
77
|
-
Suite result: ok. 15 passed; 0 failed; 0 skipped; finished in 216.27ms (578.74ms CPU time)
|
|
109
|
+
Ran 6 tests for test/OAppCoreRBACUpgradeable.t.sol:OAppCoreRBACUpgradeableTest
|
|
110
|
+
[PASS] test_acceptDefaultAdminTransfer() (gas: 107512)
|
|
111
|
+
[PASS] test_acceptDefaultAdminTransfer_ChainedTransfers() (gas: 175705)
|
|
112
|
+
[PASS] test_acceptDefaultAdminTransfer_Fuzz(address) (runs: 1000, μ: 108495, ~: 108498)
|
|
113
|
+
[PASS] test_initialize_SetsDelegate() (gas: 15127)
|
|
114
|
+
[PASS] test_setDelegate_Revert_CannotDirectlySetDelegate_Admin() (gas: 15597)
|
|
115
|
+
[PASS] test_setDelegate_Revert_CannotDirectlySetDelegate_NonAdmin() (gas: 16016)
|
|
116
|
+
Suite result: ok. 6 passed; 0 failed; 0 skipped; finished in 357.53ms (351.48ms CPU time)
|
|
78
117
|
|
|
79
|
-
Ran 4 test suites in
|
|
80
|
-
⏳ forge test:
|
|
118
|
+
Ran 4 test suites in 372.52ms (996.45ms CPU time): 41 tests passed, 0 failed, 0 skipped (41 total tests)
|
|
119
|
+
⏳ forge test: 16.667s
|
package/foundry.toml
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@layerzerolabs/oapp-upgradeable-evm-contracts",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.120",
|
|
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.
|
|
19
|
-
"@layerzerolabs/test-utils-evm-contracts": "0.2.
|
|
20
|
-
"@layerzerolabs/solhint-configuration": "0.2.
|
|
21
|
-
"@layerzerolabs/
|
|
22
|
-
"@layerzerolabs/
|
|
23
|
-
"@layerzerolabs/utils-evm-contracts": "0.2.
|
|
24
|
-
"@layerzerolabs/
|
|
25
|
-
"@layerzerolabs/
|
|
18
|
+
"@layerzerolabs/oapp-evm-contracts": "0.2.120",
|
|
19
|
+
"@layerzerolabs/test-utils-evm-contracts": "0.2.120",
|
|
20
|
+
"@layerzerolabs/solhint-configuration": "0.2.120",
|
|
21
|
+
"@layerzerolabs/tsup-configuration": "0.2.120",
|
|
22
|
+
"@layerzerolabs/typescript-configuration": "0.2.120",
|
|
23
|
+
"@layerzerolabs/utils-evm-contracts": "0.2.120",
|
|
24
|
+
"@layerzerolabs/utils-upgradeable-evm-contracts": "0.2.120",
|
|
25
|
+
"@layerzerolabs/vm-tooling-evm": "0.2.120"
|
|
26
26
|
},
|
|
27
27
|
"publishConfig": {
|
|
28
28
|
"access": "public",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
]
|
|
36
36
|
},
|
|
37
37
|
"scripts": {
|
|
38
|
-
"clean-artifacts": "rm -rf artifacts* cache hh-cache*",
|
|
38
|
+
"clean-artifacts": "rm -rf artifacts* cache hh-cache* out",
|
|
39
39
|
"lint": "solhint --config solhint.config.js 'contracts/**/*.sol' 'test/**/*.sol' --fix --noPrompt",
|
|
40
40
|
"test": "pnpm lz-tool forge test"
|
|
41
41
|
}
|