@layerzerolabs/lz-evm-sdk-v1 1.5.7 → 1.5.8
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/artifacts/contracts/interfaces/IContractOne.sol/IContractOne.json +24 -0
- package/artifacts/contracts/interfaces/ILayerZeroEndpoint.sol/ILayerZeroEndpoint.json +447 -0
- package/artifacts/contracts/interfaces/ILayerZeroMessagingLibrary.sol/ILayerZeroMessagingLibrary.json +160 -0
- package/artifacts/contracts/interfaces/ILayerZeroMessagingLibraryV2.sol/ILayerZeroMessagingLibraryV2.json +184 -0
- package/artifacts/contracts/interfaces/ILayerZeroOracle.sol/ILayerZeroOracle.json +77 -0
- package/artifacts/contracts/interfaces/ILayerZeroOracleV2.sol/ILayerZeroOracleV2.json +97 -0
- package/artifacts/contracts/interfaces/ILayerZeroPriceFeed.sol/ILayerZeroPriceFeed.json +107 -0
- package/artifacts/contracts/interfaces/ILayerZeroReceiver.sol/ILayerZeroReceiver.json +39 -0
- package/artifacts/contracts/interfaces/ILayerZeroRelayer.sol/ILayerZeroRelayer.json +92 -0
- package/artifacts/contracts/interfaces/ILayerZeroRelayerV2.sol/ILayerZeroRelayerV2.json +107 -0
- package/artifacts/contracts/interfaces/ILayerZeroRelayerV2PriceData.sol/ILayerZeroRelayerV2PriceData.json +83 -0
- package/artifacts/contracts/interfaces/ILayerZeroTreasury.sol/ILayerZeroTreasury.json +40 -0
- package/artifacts/contracts/interfaces/ILayerZeroUltraLightNodeV1.sol/ILayerZeroUltraLightNodeV1.json +156 -0
- package/artifacts/contracts/interfaces/ILayerZeroUltraLightNodeV2.sol/ILayerZeroUltraLightNodeV2.json +582 -0
- package/artifacts/contracts/interfaces/ILayerZeroUserApplicationConfig.sol/ILayerZeroUserApplicationConfig.json +83 -0
- package/artifacts/contracts/interfaces/ILayerZeroValidationLibrary.sol/ILayerZeroValidationLibrary.json +77 -0
- package/artifacts/contracts/interfaces/IValidationLibraryHelper.sol/IValidationLibraryHelper.json +146 -0
- package/artifacts/contracts/interfaces/IValidationLibraryHelperV2.sol/IValidationLibraryHelperV2.json +154 -0
- package/artifacts/contracts/proof/FPValidator.sol/FPValidator.json +326 -0
- package/artifacts/contracts/proof/FPValidator.sol/IStargate.json +10 -0
- package/artifacts/contracts/proof/MPTValidator.sol/MPTValidator.json +146 -0
- package/artifacts/contracts/proof/MPTValidator01.sol/IStargate.json +10 -0
- package/artifacts/contracts/proof/MPTValidator01.sol/MPTValidator01.json +339 -0
- package/artifacts/contracts/proof/MPTValidatorStgV3.sol/MPTValidatorStgV3.json +310 -0
- package/artifacts/contracts/proof/MPTValidatorV2.sol/MPTValidatorV2.json +212 -0
- package/artifacts/contracts/proof/MPTValidatorV4.sol/IStargate.json +10 -0
- package/artifacts/contracts/proof/MPTValidatorV4.sol/IUltraLightNode.json +108 -0
- package/artifacts/contracts/proof/MPTValidatorV4.sol/MPTValidatorV4.json +414 -0
- package/artifacts/contracts/proof/MPTValidatorV5.sol/IStargate.json +10 -0
- package/artifacts/contracts/proof/MPTValidatorV5.sol/IUltraLightNode.json +108 -0
- package/artifacts/contracts/proof/MPTValidatorV5.sol/MPTValidatorV5.json +432 -0
- package/artifacts/contracts/proof/utility/Buffer.sol/Buffer.json +10 -0
- package/artifacts/contracts/proof/utility/LayerZeroPacket.sol/LayerZeroPacket.json +10 -0
- package/artifacts/contracts/proof/utility/RLPDecode.sol/RLPDecode.json +10 -0
- package/artifacts/contracts/proof/utility/UltraLightNodeEVMDecoder.sol/UltraLightNodeEVMDecoder.json +10 -0
- package/package.json +8 -4
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_format": "hh-sol-artifact-1",
|
|
3
|
+
"contractName": "ILayerZeroValidationLibrary",
|
|
4
|
+
"sourceName": "contracts/interfaces/ILayerZeroValidationLibrary.sol",
|
|
5
|
+
"abi": [
|
|
6
|
+
{
|
|
7
|
+
"inputs": [
|
|
8
|
+
{
|
|
9
|
+
"internalType": "bytes32",
|
|
10
|
+
"name": "blockData",
|
|
11
|
+
"type": "bytes32"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"internalType": "bytes",
|
|
15
|
+
"name": "_data",
|
|
16
|
+
"type": "bytes"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"internalType": "uint256",
|
|
20
|
+
"name": "_remoteAddressSize",
|
|
21
|
+
"type": "uint256"
|
|
22
|
+
}
|
|
23
|
+
],
|
|
24
|
+
"name": "validateProof",
|
|
25
|
+
"outputs": [
|
|
26
|
+
{
|
|
27
|
+
"components": [
|
|
28
|
+
{
|
|
29
|
+
"internalType": "uint16",
|
|
30
|
+
"name": "srcChainId",
|
|
31
|
+
"type": "uint16"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"internalType": "uint16",
|
|
35
|
+
"name": "dstChainId",
|
|
36
|
+
"type": "uint16"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"internalType": "uint64",
|
|
40
|
+
"name": "nonce",
|
|
41
|
+
"type": "uint64"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"internalType": "address",
|
|
45
|
+
"name": "dstAddress",
|
|
46
|
+
"type": "address"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"internalType": "bytes",
|
|
50
|
+
"name": "srcAddress",
|
|
51
|
+
"type": "bytes"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"internalType": "bytes32",
|
|
55
|
+
"name": "ulnAddress",
|
|
56
|
+
"type": "bytes32"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"internalType": "bytes",
|
|
60
|
+
"name": "payload",
|
|
61
|
+
"type": "bytes"
|
|
62
|
+
}
|
|
63
|
+
],
|
|
64
|
+
"internalType": "struct LayerZeroPacket.Packet",
|
|
65
|
+
"name": "packet",
|
|
66
|
+
"type": "tuple"
|
|
67
|
+
}
|
|
68
|
+
],
|
|
69
|
+
"stateMutability": "nonpayable",
|
|
70
|
+
"type": "function"
|
|
71
|
+
}
|
|
72
|
+
],
|
|
73
|
+
"bytecode": "0x",
|
|
74
|
+
"deployedBytecode": "0x",
|
|
75
|
+
"linkReferences": {},
|
|
76
|
+
"deployedLinkReferences": {}
|
|
77
|
+
}
|
package/artifacts/contracts/interfaces/IValidationLibraryHelper.sol/IValidationLibraryHelper.json
ADDED
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_format": "hh-sol-artifact-1",
|
|
3
|
+
"contractName": "IValidationLibraryHelper",
|
|
4
|
+
"sourceName": "contracts/interfaces/IValidationLibraryHelper.sol",
|
|
5
|
+
"abi": [
|
|
6
|
+
{
|
|
7
|
+
"inputs": [
|
|
8
|
+
{
|
|
9
|
+
"internalType": "bytes",
|
|
10
|
+
"name": "data",
|
|
11
|
+
"type": "bytes"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"internalType": "uint16",
|
|
15
|
+
"name": "srcChain",
|
|
16
|
+
"type": "uint16"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"internalType": "uint256",
|
|
20
|
+
"name": "sizeOfSrcAddress",
|
|
21
|
+
"type": "uint256"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"internalType": "bytes32",
|
|
25
|
+
"name": "ulnAddress",
|
|
26
|
+
"type": "bytes32"
|
|
27
|
+
}
|
|
28
|
+
],
|
|
29
|
+
"name": "getPacket",
|
|
30
|
+
"outputs": [
|
|
31
|
+
{
|
|
32
|
+
"components": [
|
|
33
|
+
{
|
|
34
|
+
"internalType": "uint16",
|
|
35
|
+
"name": "srcChainId",
|
|
36
|
+
"type": "uint16"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"internalType": "uint16",
|
|
40
|
+
"name": "dstChainId",
|
|
41
|
+
"type": "uint16"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"internalType": "uint64",
|
|
45
|
+
"name": "nonce",
|
|
46
|
+
"type": "uint64"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"internalType": "address",
|
|
50
|
+
"name": "dstAddress",
|
|
51
|
+
"type": "address"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"internalType": "bytes",
|
|
55
|
+
"name": "srcAddress",
|
|
56
|
+
"type": "bytes"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"internalType": "bytes32",
|
|
60
|
+
"name": "ulnAddress",
|
|
61
|
+
"type": "bytes32"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"internalType": "bytes",
|
|
65
|
+
"name": "payload",
|
|
66
|
+
"type": "bytes"
|
|
67
|
+
}
|
|
68
|
+
],
|
|
69
|
+
"internalType": "struct LayerZeroPacket.Packet",
|
|
70
|
+
"name": "",
|
|
71
|
+
"type": "tuple"
|
|
72
|
+
}
|
|
73
|
+
],
|
|
74
|
+
"stateMutability": "pure",
|
|
75
|
+
"type": "function"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"inputs": [],
|
|
79
|
+
"name": "getUtilsVersion",
|
|
80
|
+
"outputs": [
|
|
81
|
+
{
|
|
82
|
+
"internalType": "uint8",
|
|
83
|
+
"name": "",
|
|
84
|
+
"type": "uint8"
|
|
85
|
+
}
|
|
86
|
+
],
|
|
87
|
+
"stateMutability": "view",
|
|
88
|
+
"type": "function"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"inputs": [
|
|
92
|
+
{
|
|
93
|
+
"internalType": "bytes32",
|
|
94
|
+
"name": "hashRoot",
|
|
95
|
+
"type": "bytes32"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"internalType": "uint256[]",
|
|
99
|
+
"name": "receiptSlotIndex",
|
|
100
|
+
"type": "uint256[]"
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"internalType": "uint256",
|
|
104
|
+
"name": "logIndex",
|
|
105
|
+
"type": "uint256"
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"internalType": "bytes[]",
|
|
109
|
+
"name": "proof",
|
|
110
|
+
"type": "bytes[]"
|
|
111
|
+
}
|
|
112
|
+
],
|
|
113
|
+
"name": "getVerifyLog",
|
|
114
|
+
"outputs": [
|
|
115
|
+
{
|
|
116
|
+
"components": [
|
|
117
|
+
{
|
|
118
|
+
"internalType": "bytes32",
|
|
119
|
+
"name": "contractAddress",
|
|
120
|
+
"type": "bytes32"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"internalType": "bytes32",
|
|
124
|
+
"name": "topicZeroSig",
|
|
125
|
+
"type": "bytes32"
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"internalType": "bytes",
|
|
129
|
+
"name": "data",
|
|
130
|
+
"type": "bytes"
|
|
131
|
+
}
|
|
132
|
+
],
|
|
133
|
+
"internalType": "struct IValidationLibraryHelper.ULNLog",
|
|
134
|
+
"name": "",
|
|
135
|
+
"type": "tuple"
|
|
136
|
+
}
|
|
137
|
+
],
|
|
138
|
+
"stateMutability": "pure",
|
|
139
|
+
"type": "function"
|
|
140
|
+
}
|
|
141
|
+
],
|
|
142
|
+
"bytecode": "0x",
|
|
143
|
+
"deployedBytecode": "0x",
|
|
144
|
+
"linkReferences": {},
|
|
145
|
+
"deployedLinkReferences": {}
|
|
146
|
+
}
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_format": "hh-sol-artifact-1",
|
|
3
|
+
"contractName": "IValidationLibraryHelperV2",
|
|
4
|
+
"sourceName": "contracts/interfaces/IValidationLibraryHelperV2.sol",
|
|
5
|
+
"abi": [
|
|
6
|
+
{
|
|
7
|
+
"inputs": [
|
|
8
|
+
{
|
|
9
|
+
"internalType": "bytes",
|
|
10
|
+
"name": "data",
|
|
11
|
+
"type": "bytes"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"internalType": "uint256",
|
|
15
|
+
"name": "sizeOfSrcAddress",
|
|
16
|
+
"type": "uint256"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"internalType": "bytes32",
|
|
20
|
+
"name": "ulnAddress",
|
|
21
|
+
"type": "bytes32"
|
|
22
|
+
}
|
|
23
|
+
],
|
|
24
|
+
"name": "getPacket",
|
|
25
|
+
"outputs": [
|
|
26
|
+
{
|
|
27
|
+
"components": [
|
|
28
|
+
{
|
|
29
|
+
"internalType": "uint16",
|
|
30
|
+
"name": "srcChainId",
|
|
31
|
+
"type": "uint16"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"internalType": "uint16",
|
|
35
|
+
"name": "dstChainId",
|
|
36
|
+
"type": "uint16"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"internalType": "uint64",
|
|
40
|
+
"name": "nonce",
|
|
41
|
+
"type": "uint64"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"internalType": "address",
|
|
45
|
+
"name": "dstAddress",
|
|
46
|
+
"type": "address"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"internalType": "bytes",
|
|
50
|
+
"name": "srcAddress",
|
|
51
|
+
"type": "bytes"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"internalType": "bytes32",
|
|
55
|
+
"name": "ulnAddress",
|
|
56
|
+
"type": "bytes32"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"internalType": "bytes",
|
|
60
|
+
"name": "payload",
|
|
61
|
+
"type": "bytes"
|
|
62
|
+
}
|
|
63
|
+
],
|
|
64
|
+
"internalType": "struct LayerZeroPacket.Packet",
|
|
65
|
+
"name": "",
|
|
66
|
+
"type": "tuple"
|
|
67
|
+
}
|
|
68
|
+
],
|
|
69
|
+
"stateMutability": "pure",
|
|
70
|
+
"type": "function"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"inputs": [],
|
|
74
|
+
"name": "getProofType",
|
|
75
|
+
"outputs": [
|
|
76
|
+
{
|
|
77
|
+
"internalType": "uint8",
|
|
78
|
+
"name": "",
|
|
79
|
+
"type": "uint8"
|
|
80
|
+
}
|
|
81
|
+
],
|
|
82
|
+
"stateMutability": "view",
|
|
83
|
+
"type": "function"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"inputs": [],
|
|
87
|
+
"name": "getUtilsVersion",
|
|
88
|
+
"outputs": [
|
|
89
|
+
{
|
|
90
|
+
"internalType": "uint8",
|
|
91
|
+
"name": "",
|
|
92
|
+
"type": "uint8"
|
|
93
|
+
}
|
|
94
|
+
],
|
|
95
|
+
"stateMutability": "view",
|
|
96
|
+
"type": "function"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"inputs": [
|
|
100
|
+
{
|
|
101
|
+
"internalType": "bytes32",
|
|
102
|
+
"name": "hashRoot",
|
|
103
|
+
"type": "bytes32"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"internalType": "uint256[]",
|
|
107
|
+
"name": "receiptSlotIndex",
|
|
108
|
+
"type": "uint256[]"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"internalType": "uint256",
|
|
112
|
+
"name": "logIndex",
|
|
113
|
+
"type": "uint256"
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"internalType": "bytes[]",
|
|
117
|
+
"name": "proof",
|
|
118
|
+
"type": "bytes[]"
|
|
119
|
+
}
|
|
120
|
+
],
|
|
121
|
+
"name": "getVerifyLog",
|
|
122
|
+
"outputs": [
|
|
123
|
+
{
|
|
124
|
+
"components": [
|
|
125
|
+
{
|
|
126
|
+
"internalType": "bytes32",
|
|
127
|
+
"name": "contractAddress",
|
|
128
|
+
"type": "bytes32"
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"internalType": "bytes32",
|
|
132
|
+
"name": "topicZeroSig",
|
|
133
|
+
"type": "bytes32"
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"internalType": "bytes",
|
|
137
|
+
"name": "data",
|
|
138
|
+
"type": "bytes"
|
|
139
|
+
}
|
|
140
|
+
],
|
|
141
|
+
"internalType": "struct IValidationLibraryHelperV2.ULNLog",
|
|
142
|
+
"name": "",
|
|
143
|
+
"type": "tuple"
|
|
144
|
+
}
|
|
145
|
+
],
|
|
146
|
+
"stateMutability": "pure",
|
|
147
|
+
"type": "function"
|
|
148
|
+
}
|
|
149
|
+
],
|
|
150
|
+
"bytecode": "0x",
|
|
151
|
+
"deployedBytecode": "0x",
|
|
152
|
+
"linkReferences": {},
|
|
153
|
+
"deployedLinkReferences": {}
|
|
154
|
+
}
|