@layerzerolabs/lz-evm-sdk-v1 1.5.7 → 1.5.9
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/deployments/cathay-testnet/DefaultProxyAdmin.json +273 -0
- package/deployments/cathay-testnet/Endpoint.json +1282 -0
- package/deployments/cathay-testnet/FPValidator.json +382 -0
- package/deployments/cathay-testnet/MPTValidator01.json +395 -0
- package/deployments/cathay-testnet/NonceContract.json +159 -0
- package/deployments/cathay-testnet/PriceFeed.json +760 -0
- package/deployments/cathay-testnet/PriceFeed_Implementation.json +776 -0
- package/deployments/cathay-testnet/PriceFeed_Proxy.json +233 -0
- package/deployments/cathay-testnet/RelayerV2.json +1169 -0
- package/deployments/cathay-testnet/RelayerV2_Implementation.json +1270 -0
- package/deployments/cathay-testnet/RelayerV2_Proxy.json +245 -0
- package/deployments/cathay-testnet/TreasuryV2.json +458 -0
- package/deployments/cathay-testnet/UltraLightNodeV2.json +1816 -0
- package/deployments/kava-testnet/DefaultProxyAdmin.json +273 -0
- package/deployments/scroll-testnet/DefaultProxyAdmin.json +273 -0
- package/deployments/scroll-testnet/Endpoint.json +1282 -0
- package/deployments/scroll-testnet/FPValidator.json +382 -0
- package/deployments/scroll-testnet/MPTValidator01.json +395 -0
- package/deployments/scroll-testnet/NonceContract.json +159 -0
- package/deployments/scroll-testnet/PriceFeed.json +760 -0
- package/deployments/scroll-testnet/PriceFeed_Implementation.json +776 -0
- package/deployments/scroll-testnet/PriceFeed_Proxy.json +233 -0
- package/deployments/scroll-testnet/RelayerV2.json +1169 -0
- package/deployments/scroll-testnet/RelayerV2_Implementation.json +1270 -0
- package/deployments/scroll-testnet/RelayerV2_Proxy.json +245 -0
- package/deployments/scroll-testnet/TreasuryV2.json +458 -0
- package/deployments/scroll-testnet/UltraLightNodeV2.json +1816 -0
- package/deployments/tenet-testnet/DefaultProxyAdmin.json +273 -0
- package/deployments/tenet-testnet/Endpoint.json +1282 -0
- package/deployments/tenet-testnet/FPValidator.json +382 -0
- package/deployments/tenet-testnet/MPTValidator01.json +395 -0
- package/deployments/tenet-testnet/NonceContract.json +159 -0
- package/deployments/tenet-testnet/PriceFeed.json +760 -0
- package/deployments/tenet-testnet/PriceFeed_Implementation.json +776 -0
- package/deployments/tenet-testnet/PriceFeed_Proxy.json +233 -0
- package/deployments/tenet-testnet/RelayerV2.json +1169 -0
- package/deployments/tenet-testnet/RelayerV2_Implementation.json +1270 -0
- package/deployments/tenet-testnet/RelayerV2_Proxy.json +245 -0
- package/deployments/tenet-testnet/TreasuryV2.json +458 -0
- package/deployments/tenet-testnet/UltraLightNodeV2.json +1816 -0
- package/package.json +8 -4
- package/artifacts/contracts/oracle/MultiSigOracle.sol/MultiSigOracle.json +0 -827
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_format": "hh-sol-artifact-1",
|
|
3
|
+
"contractName": "ILayerZeroMessagingLibraryV2",
|
|
4
|
+
"sourceName": "contracts/interfaces/ILayerZeroMessagingLibraryV2.sol",
|
|
5
|
+
"abi": [
|
|
6
|
+
{
|
|
7
|
+
"inputs": [
|
|
8
|
+
{
|
|
9
|
+
"internalType": "uint16",
|
|
10
|
+
"name": "_chainId",
|
|
11
|
+
"type": "uint16"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"internalType": "address",
|
|
15
|
+
"name": "_userApplication",
|
|
16
|
+
"type": "address"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"internalType": "bytes",
|
|
20
|
+
"name": "_payload",
|
|
21
|
+
"type": "bytes"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"internalType": "bool",
|
|
25
|
+
"name": "_payInZRO",
|
|
26
|
+
"type": "bool"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"internalType": "bytes",
|
|
30
|
+
"name": "_adapterParam",
|
|
31
|
+
"type": "bytes"
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
"name": "estimateFees",
|
|
35
|
+
"outputs": [
|
|
36
|
+
{
|
|
37
|
+
"internalType": "uint256",
|
|
38
|
+
"name": "nativeFee",
|
|
39
|
+
"type": "uint256"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"internalType": "uint256",
|
|
43
|
+
"name": "zroFee",
|
|
44
|
+
"type": "uint256"
|
|
45
|
+
}
|
|
46
|
+
],
|
|
47
|
+
"stateMutability": "view",
|
|
48
|
+
"type": "function"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"inputs": [
|
|
52
|
+
{
|
|
53
|
+
"internalType": "uint16",
|
|
54
|
+
"name": "_chainId",
|
|
55
|
+
"type": "uint16"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"internalType": "address",
|
|
59
|
+
"name": "_userApplication",
|
|
60
|
+
"type": "address"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"internalType": "uint256",
|
|
64
|
+
"name": "_configType",
|
|
65
|
+
"type": "uint256"
|
|
66
|
+
}
|
|
67
|
+
],
|
|
68
|
+
"name": "getConfig",
|
|
69
|
+
"outputs": [
|
|
70
|
+
{
|
|
71
|
+
"internalType": "bytes",
|
|
72
|
+
"name": "",
|
|
73
|
+
"type": "bytes"
|
|
74
|
+
}
|
|
75
|
+
],
|
|
76
|
+
"stateMutability": "view",
|
|
77
|
+
"type": "function"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"inputs": [
|
|
81
|
+
{
|
|
82
|
+
"internalType": "uint16",
|
|
83
|
+
"name": "_chainId",
|
|
84
|
+
"type": "uint16"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"internalType": "bytes",
|
|
88
|
+
"name": "_path",
|
|
89
|
+
"type": "bytes"
|
|
90
|
+
}
|
|
91
|
+
],
|
|
92
|
+
"name": "getOutboundNonce",
|
|
93
|
+
"outputs": [
|
|
94
|
+
{
|
|
95
|
+
"internalType": "uint64",
|
|
96
|
+
"name": "",
|
|
97
|
+
"type": "uint64"
|
|
98
|
+
}
|
|
99
|
+
],
|
|
100
|
+
"stateMutability": "view",
|
|
101
|
+
"type": "function"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"inputs": [
|
|
105
|
+
{
|
|
106
|
+
"internalType": "address",
|
|
107
|
+
"name": "_userApplication",
|
|
108
|
+
"type": "address"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"internalType": "uint64",
|
|
112
|
+
"name": "_lastNonce",
|
|
113
|
+
"type": "uint64"
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"internalType": "uint16",
|
|
117
|
+
"name": "_chainId",
|
|
118
|
+
"type": "uint16"
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"internalType": "bytes",
|
|
122
|
+
"name": "_destination",
|
|
123
|
+
"type": "bytes"
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"internalType": "bytes",
|
|
127
|
+
"name": "_payload",
|
|
128
|
+
"type": "bytes"
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"internalType": "address payable",
|
|
132
|
+
"name": "refundAddress",
|
|
133
|
+
"type": "address"
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"internalType": "address",
|
|
137
|
+
"name": "_zroPaymentAddress",
|
|
138
|
+
"type": "address"
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"internalType": "bytes",
|
|
142
|
+
"name": "_adapterParams",
|
|
143
|
+
"type": "bytes"
|
|
144
|
+
}
|
|
145
|
+
],
|
|
146
|
+
"name": "send",
|
|
147
|
+
"outputs": [],
|
|
148
|
+
"stateMutability": "payable",
|
|
149
|
+
"type": "function"
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"inputs": [
|
|
153
|
+
{
|
|
154
|
+
"internalType": "uint16",
|
|
155
|
+
"name": "_chainId",
|
|
156
|
+
"type": "uint16"
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
"internalType": "address",
|
|
160
|
+
"name": "_userApplication",
|
|
161
|
+
"type": "address"
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"internalType": "uint256",
|
|
165
|
+
"name": "_configType",
|
|
166
|
+
"type": "uint256"
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
"internalType": "bytes",
|
|
170
|
+
"name": "_config",
|
|
171
|
+
"type": "bytes"
|
|
172
|
+
}
|
|
173
|
+
],
|
|
174
|
+
"name": "setConfig",
|
|
175
|
+
"outputs": [],
|
|
176
|
+
"stateMutability": "nonpayable",
|
|
177
|
+
"type": "function"
|
|
178
|
+
}
|
|
179
|
+
],
|
|
180
|
+
"bytecode": "0x",
|
|
181
|
+
"deployedBytecode": "0x",
|
|
182
|
+
"linkReferences": {},
|
|
183
|
+
"deployedLinkReferences": {}
|
|
184
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_format": "hh-sol-artifact-1",
|
|
3
|
+
"contractName": "ILayerZeroOracle",
|
|
4
|
+
"sourceName": "contracts/interfaces/ILayerZeroOracle.sol",
|
|
5
|
+
"abi": [
|
|
6
|
+
{
|
|
7
|
+
"inputs": [
|
|
8
|
+
{
|
|
9
|
+
"internalType": "uint16",
|
|
10
|
+
"name": "_dstChainId",
|
|
11
|
+
"type": "uint16"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"internalType": "uint16",
|
|
15
|
+
"name": "_outboundProofType",
|
|
16
|
+
"type": "uint16"
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"name": "getPrice",
|
|
20
|
+
"outputs": [
|
|
21
|
+
{
|
|
22
|
+
"internalType": "uint256",
|
|
23
|
+
"name": "price",
|
|
24
|
+
"type": "uint256"
|
|
25
|
+
}
|
|
26
|
+
],
|
|
27
|
+
"stateMutability": "view",
|
|
28
|
+
"type": "function"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"inputs": [
|
|
32
|
+
{
|
|
33
|
+
"internalType": "address",
|
|
34
|
+
"name": "_address",
|
|
35
|
+
"type": "address"
|
|
36
|
+
}
|
|
37
|
+
],
|
|
38
|
+
"name": "isApproved",
|
|
39
|
+
"outputs": [
|
|
40
|
+
{
|
|
41
|
+
"internalType": "bool",
|
|
42
|
+
"name": "approved",
|
|
43
|
+
"type": "bool"
|
|
44
|
+
}
|
|
45
|
+
],
|
|
46
|
+
"stateMutability": "view",
|
|
47
|
+
"type": "function"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"inputs": [
|
|
51
|
+
{
|
|
52
|
+
"internalType": "uint16",
|
|
53
|
+
"name": "_dstChainId",
|
|
54
|
+
"type": "uint16"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"internalType": "uint16",
|
|
58
|
+
"name": "_outboundProofType",
|
|
59
|
+
"type": "uint16"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"internalType": "uint64",
|
|
63
|
+
"name": "_outboundBlockConfirmations",
|
|
64
|
+
"type": "uint64"
|
|
65
|
+
}
|
|
66
|
+
],
|
|
67
|
+
"name": "notifyOracle",
|
|
68
|
+
"outputs": [],
|
|
69
|
+
"stateMutability": "nonpayable",
|
|
70
|
+
"type": "function"
|
|
71
|
+
}
|
|
72
|
+
],
|
|
73
|
+
"bytecode": "0x",
|
|
74
|
+
"deployedBytecode": "0x",
|
|
75
|
+
"linkReferences": {},
|
|
76
|
+
"deployedLinkReferences": {}
|
|
77
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_format": "hh-sol-artifact-1",
|
|
3
|
+
"contractName": "ILayerZeroOracleV2",
|
|
4
|
+
"sourceName": "contracts/interfaces/ILayerZeroOracleV2.sol",
|
|
5
|
+
"abi": [
|
|
6
|
+
{
|
|
7
|
+
"inputs": [
|
|
8
|
+
{
|
|
9
|
+
"internalType": "uint16",
|
|
10
|
+
"name": "_dstChainId",
|
|
11
|
+
"type": "uint16"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"internalType": "uint16",
|
|
15
|
+
"name": "_outboundProofType",
|
|
16
|
+
"type": "uint16"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"internalType": "uint64",
|
|
20
|
+
"name": "_outboundBlockConfirmation",
|
|
21
|
+
"type": "uint64"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"internalType": "address",
|
|
25
|
+
"name": "_userApplication",
|
|
26
|
+
"type": "address"
|
|
27
|
+
}
|
|
28
|
+
],
|
|
29
|
+
"name": "assignJob",
|
|
30
|
+
"outputs": [
|
|
31
|
+
{
|
|
32
|
+
"internalType": "uint256",
|
|
33
|
+
"name": "price",
|
|
34
|
+
"type": "uint256"
|
|
35
|
+
}
|
|
36
|
+
],
|
|
37
|
+
"stateMutability": "nonpayable",
|
|
38
|
+
"type": "function"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"inputs": [
|
|
42
|
+
{
|
|
43
|
+
"internalType": "uint16",
|
|
44
|
+
"name": "_dstChainId",
|
|
45
|
+
"type": "uint16"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"internalType": "uint16",
|
|
49
|
+
"name": "_outboundProofType",
|
|
50
|
+
"type": "uint16"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"internalType": "uint64",
|
|
54
|
+
"name": "_outboundBlockConfirmation",
|
|
55
|
+
"type": "uint64"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"internalType": "address",
|
|
59
|
+
"name": "_userApplication",
|
|
60
|
+
"type": "address"
|
|
61
|
+
}
|
|
62
|
+
],
|
|
63
|
+
"name": "getFee",
|
|
64
|
+
"outputs": [
|
|
65
|
+
{
|
|
66
|
+
"internalType": "uint256",
|
|
67
|
+
"name": "price",
|
|
68
|
+
"type": "uint256"
|
|
69
|
+
}
|
|
70
|
+
],
|
|
71
|
+
"stateMutability": "view",
|
|
72
|
+
"type": "function"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"inputs": [
|
|
76
|
+
{
|
|
77
|
+
"internalType": "address payable",
|
|
78
|
+
"name": "_to",
|
|
79
|
+
"type": "address"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"internalType": "uint256",
|
|
83
|
+
"name": "_amount",
|
|
84
|
+
"type": "uint256"
|
|
85
|
+
}
|
|
86
|
+
],
|
|
87
|
+
"name": "withdrawFee",
|
|
88
|
+
"outputs": [],
|
|
89
|
+
"stateMutability": "nonpayable",
|
|
90
|
+
"type": "function"
|
|
91
|
+
}
|
|
92
|
+
],
|
|
93
|
+
"bytecode": "0x",
|
|
94
|
+
"deployedBytecode": "0x",
|
|
95
|
+
"linkReferences": {},
|
|
96
|
+
"deployedLinkReferences": {}
|
|
97
|
+
}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_format": "hh-sol-artifact-1",
|
|
3
|
+
"contractName": "ILayerZeroPriceFeed",
|
|
4
|
+
"sourceName": "contracts/interfaces/ILayerZeroPriceFeed.sol",
|
|
5
|
+
"abi": [
|
|
6
|
+
{
|
|
7
|
+
"inputs": [
|
|
8
|
+
{
|
|
9
|
+
"internalType": "uint16",
|
|
10
|
+
"name": "_dstChainId",
|
|
11
|
+
"type": "uint16"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"internalType": "uint256",
|
|
15
|
+
"name": "_callDataSize",
|
|
16
|
+
"type": "uint256"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"internalType": "uint256",
|
|
20
|
+
"name": "_gas",
|
|
21
|
+
"type": "uint256"
|
|
22
|
+
}
|
|
23
|
+
],
|
|
24
|
+
"name": "estimateFeeByChain",
|
|
25
|
+
"outputs": [
|
|
26
|
+
{
|
|
27
|
+
"internalType": "uint256",
|
|
28
|
+
"name": "fee",
|
|
29
|
+
"type": "uint256"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"internalType": "uint128",
|
|
33
|
+
"name": "priceRatio",
|
|
34
|
+
"type": "uint128"
|
|
35
|
+
}
|
|
36
|
+
],
|
|
37
|
+
"stateMutability": "view",
|
|
38
|
+
"type": "function"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"inputs": [
|
|
42
|
+
{
|
|
43
|
+
"internalType": "uint16",
|
|
44
|
+
"name": "_dstChainId",
|
|
45
|
+
"type": "uint16"
|
|
46
|
+
}
|
|
47
|
+
],
|
|
48
|
+
"name": "getPrice",
|
|
49
|
+
"outputs": [
|
|
50
|
+
{
|
|
51
|
+
"components": [
|
|
52
|
+
{
|
|
53
|
+
"internalType": "uint128",
|
|
54
|
+
"name": "priceRatio",
|
|
55
|
+
"type": "uint128"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"internalType": "uint64",
|
|
59
|
+
"name": "gasPriceInUnit",
|
|
60
|
+
"type": "uint64"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"internalType": "uint32",
|
|
64
|
+
"name": "gasPerByte",
|
|
65
|
+
"type": "uint32"
|
|
66
|
+
}
|
|
67
|
+
],
|
|
68
|
+
"internalType": "struct ILayerZeroPriceFeed.Price",
|
|
69
|
+
"name": "",
|
|
70
|
+
"type": "tuple"
|
|
71
|
+
}
|
|
72
|
+
],
|
|
73
|
+
"stateMutability": "view",
|
|
74
|
+
"type": "function"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"inputs": [],
|
|
78
|
+
"name": "getPriceRatioDenominator",
|
|
79
|
+
"outputs": [
|
|
80
|
+
{
|
|
81
|
+
"internalType": "uint128",
|
|
82
|
+
"name": "",
|
|
83
|
+
"type": "uint128"
|
|
84
|
+
}
|
|
85
|
+
],
|
|
86
|
+
"stateMutability": "view",
|
|
87
|
+
"type": "function"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"inputs": [],
|
|
91
|
+
"name": "nativeTokenPriceUSD",
|
|
92
|
+
"outputs": [
|
|
93
|
+
{
|
|
94
|
+
"internalType": "uint128",
|
|
95
|
+
"name": "",
|
|
96
|
+
"type": "uint128"
|
|
97
|
+
}
|
|
98
|
+
],
|
|
99
|
+
"stateMutability": "view",
|
|
100
|
+
"type": "function"
|
|
101
|
+
}
|
|
102
|
+
],
|
|
103
|
+
"bytecode": "0x",
|
|
104
|
+
"deployedBytecode": "0x",
|
|
105
|
+
"linkReferences": {},
|
|
106
|
+
"deployedLinkReferences": {}
|
|
107
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_format": "hh-sol-artifact-1",
|
|
3
|
+
"contractName": "ILayerZeroReceiver",
|
|
4
|
+
"sourceName": "contracts/interfaces/ILayerZeroReceiver.sol",
|
|
5
|
+
"abi": [
|
|
6
|
+
{
|
|
7
|
+
"inputs": [
|
|
8
|
+
{
|
|
9
|
+
"internalType": "uint16",
|
|
10
|
+
"name": "_srcChainId",
|
|
11
|
+
"type": "uint16"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"internalType": "bytes",
|
|
15
|
+
"name": "_srcAddress",
|
|
16
|
+
"type": "bytes"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"internalType": "uint64",
|
|
20
|
+
"name": "_nonce",
|
|
21
|
+
"type": "uint64"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"internalType": "bytes",
|
|
25
|
+
"name": "_payload",
|
|
26
|
+
"type": "bytes"
|
|
27
|
+
}
|
|
28
|
+
],
|
|
29
|
+
"name": "lzReceive",
|
|
30
|
+
"outputs": [],
|
|
31
|
+
"stateMutability": "nonpayable",
|
|
32
|
+
"type": "function"
|
|
33
|
+
}
|
|
34
|
+
],
|
|
35
|
+
"bytecode": "0x",
|
|
36
|
+
"deployedBytecode": "0x",
|
|
37
|
+
"linkReferences": {},
|
|
38
|
+
"deployedLinkReferences": {}
|
|
39
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_format": "hh-sol-artifact-1",
|
|
3
|
+
"contractName": "ILayerZeroRelayer",
|
|
4
|
+
"sourceName": "contracts/interfaces/ILayerZeroRelayer.sol",
|
|
5
|
+
"abi": [
|
|
6
|
+
{
|
|
7
|
+
"inputs": [
|
|
8
|
+
{
|
|
9
|
+
"internalType": "uint16",
|
|
10
|
+
"name": "_dstChainId",
|
|
11
|
+
"type": "uint16"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"internalType": "uint16",
|
|
15
|
+
"name": "_outboundProofType",
|
|
16
|
+
"type": "uint16"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"internalType": "address",
|
|
20
|
+
"name": "_userApplication",
|
|
21
|
+
"type": "address"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"internalType": "uint256",
|
|
25
|
+
"name": "_payloadSize",
|
|
26
|
+
"type": "uint256"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"internalType": "bytes",
|
|
30
|
+
"name": "_adapterParams",
|
|
31
|
+
"type": "bytes"
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
"name": "getPrice",
|
|
35
|
+
"outputs": [
|
|
36
|
+
{
|
|
37
|
+
"internalType": "uint256",
|
|
38
|
+
"name": "price",
|
|
39
|
+
"type": "uint256"
|
|
40
|
+
}
|
|
41
|
+
],
|
|
42
|
+
"stateMutability": "view",
|
|
43
|
+
"type": "function"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"inputs": [
|
|
47
|
+
{
|
|
48
|
+
"internalType": "address",
|
|
49
|
+
"name": "_address",
|
|
50
|
+
"type": "address"
|
|
51
|
+
}
|
|
52
|
+
],
|
|
53
|
+
"name": "isApproved",
|
|
54
|
+
"outputs": [
|
|
55
|
+
{
|
|
56
|
+
"internalType": "bool",
|
|
57
|
+
"name": "approved",
|
|
58
|
+
"type": "bool"
|
|
59
|
+
}
|
|
60
|
+
],
|
|
61
|
+
"stateMutability": "view",
|
|
62
|
+
"type": "function"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"inputs": [
|
|
66
|
+
{
|
|
67
|
+
"internalType": "uint16",
|
|
68
|
+
"name": "_dstChainId",
|
|
69
|
+
"type": "uint16"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"internalType": "uint16",
|
|
73
|
+
"name": "_outboundProofType",
|
|
74
|
+
"type": "uint16"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"internalType": "bytes",
|
|
78
|
+
"name": "_adapterParams",
|
|
79
|
+
"type": "bytes"
|
|
80
|
+
}
|
|
81
|
+
],
|
|
82
|
+
"name": "notifyRelayer",
|
|
83
|
+
"outputs": [],
|
|
84
|
+
"stateMutability": "nonpayable",
|
|
85
|
+
"type": "function"
|
|
86
|
+
}
|
|
87
|
+
],
|
|
88
|
+
"bytecode": "0x",
|
|
89
|
+
"deployedBytecode": "0x",
|
|
90
|
+
"linkReferences": {},
|
|
91
|
+
"deployedLinkReferences": {}
|
|
92
|
+
}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_format": "hh-sol-artifact-1",
|
|
3
|
+
"contractName": "ILayerZeroRelayerV2",
|
|
4
|
+
"sourceName": "contracts/interfaces/ILayerZeroRelayerV2.sol",
|
|
5
|
+
"abi": [
|
|
6
|
+
{
|
|
7
|
+
"inputs": [
|
|
8
|
+
{
|
|
9
|
+
"internalType": "uint16",
|
|
10
|
+
"name": "_dstChainId",
|
|
11
|
+
"type": "uint16"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"internalType": "uint16",
|
|
15
|
+
"name": "_outboundProofType",
|
|
16
|
+
"type": "uint16"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"internalType": "address",
|
|
20
|
+
"name": "_userApplication",
|
|
21
|
+
"type": "address"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"internalType": "uint256",
|
|
25
|
+
"name": "_payloadSize",
|
|
26
|
+
"type": "uint256"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"internalType": "bytes",
|
|
30
|
+
"name": "_adapterParams",
|
|
31
|
+
"type": "bytes"
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
"name": "assignJob",
|
|
35
|
+
"outputs": [
|
|
36
|
+
{
|
|
37
|
+
"internalType": "uint256",
|
|
38
|
+
"name": "price",
|
|
39
|
+
"type": "uint256"
|
|
40
|
+
}
|
|
41
|
+
],
|
|
42
|
+
"stateMutability": "nonpayable",
|
|
43
|
+
"type": "function"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"inputs": [
|
|
47
|
+
{
|
|
48
|
+
"internalType": "uint16",
|
|
49
|
+
"name": "_dstChainId",
|
|
50
|
+
"type": "uint16"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"internalType": "uint16",
|
|
54
|
+
"name": "_outboundProofType",
|
|
55
|
+
"type": "uint16"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"internalType": "address",
|
|
59
|
+
"name": "_userApplication",
|
|
60
|
+
"type": "address"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"internalType": "uint256",
|
|
64
|
+
"name": "_payloadSize",
|
|
65
|
+
"type": "uint256"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"internalType": "bytes",
|
|
69
|
+
"name": "_adapterParams",
|
|
70
|
+
"type": "bytes"
|
|
71
|
+
}
|
|
72
|
+
],
|
|
73
|
+
"name": "getFee",
|
|
74
|
+
"outputs": [
|
|
75
|
+
{
|
|
76
|
+
"internalType": "uint256",
|
|
77
|
+
"name": "price",
|
|
78
|
+
"type": "uint256"
|
|
79
|
+
}
|
|
80
|
+
],
|
|
81
|
+
"stateMutability": "view",
|
|
82
|
+
"type": "function"
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"inputs": [
|
|
86
|
+
{
|
|
87
|
+
"internalType": "address payable",
|
|
88
|
+
"name": "_to",
|
|
89
|
+
"type": "address"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"internalType": "uint256",
|
|
93
|
+
"name": "_amount",
|
|
94
|
+
"type": "uint256"
|
|
95
|
+
}
|
|
96
|
+
],
|
|
97
|
+
"name": "withdrawFee",
|
|
98
|
+
"outputs": [],
|
|
99
|
+
"stateMutability": "nonpayable",
|
|
100
|
+
"type": "function"
|
|
101
|
+
}
|
|
102
|
+
],
|
|
103
|
+
"bytecode": "0x",
|
|
104
|
+
"deployedBytecode": "0x",
|
|
105
|
+
"linkReferences": {},
|
|
106
|
+
"deployedLinkReferences": {}
|
|
107
|
+
}
|