@layerzerolabs/lz-evm-sdk-v1 2.0.1 → 2.0.3
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/deployments/chaos-testnet/DefaultProxyAdmin.json +273 -0
- package/deployments/{avalanche-sandbox-local → chaos-testnet}/Endpoint.json +16 -16
- package/deployments/{bsc-sandbox-local → chaos-testnet}/FPValidator.json +9 -9
- package/deployments/{avalanche-sandbox-local → chaos-testnet}/MPTValidator01.json +9 -9
- package/deployments/{bsc-sandbox-local → chaos-testnet}/NonceContract.json +10 -10
- package/deployments/chaos-testnet/RelayerV2.json +1239 -0
- package/deployments/chaos-testnet/RelayerV2_Implementation.json +1366 -0
- package/deployments/chaos-testnet/RelayerV2_Proxy.json +245 -0
- package/deployments/chaos-testnet/TreasuryV2.json +458 -0
- package/deployments/chaos-testnet/UltraLightNodeV2.json +1816 -0
- package/dist/index.browser.js +23 -0
- package/dist/index.js +30 -0
- package/dist/typechain-types/Endpoint.js +2 -0
- package/dist/typechain-types/EndpointLite.js +2 -0
- package/dist/typechain-types/FeeHandler.js +2 -0
- package/dist/typechain-types/NonceContract.js +2 -0
- package/dist/typechain-types/NonceContractRadar.js +2 -0
- package/dist/typechain-types/PriceFeed.js +2 -0
- package/dist/typechain-types/Relayer.js +2 -0
- package/dist/typechain-types/RelayerV2.sol/IStargateComposer.js +2 -0
- package/dist/typechain-types/RelayerV2.sol/RelayerV2.js +2 -0
- package/dist/typechain-types/RelayerV2.sol/index.js +2 -0
- package/dist/typechain-types/RelayerV2Radar.js +2 -0
- package/dist/typechain-types/Treasury.js +2 -0
- package/dist/typechain-types/TreasuryV2.js +2 -0
- package/dist/typechain-types/TreasuryV2Radar.js +2 -0
- package/dist/typechain-types/UltraLightNode.js +2 -0
- package/dist/typechain-types/UltraLightNodeV2.js +2 -0
- package/dist/typechain-types/UltraLightNodeV2AltToken.js +2 -0
- package/dist/typechain-types/UltraLightNodeV2Radar.js +2 -0
- package/dist/typechain-types/arbitrum/index.js +2 -0
- package/dist/typechain-types/arbitrum/interfaces/ArbSys.js +2 -0
- package/dist/typechain-types/arbitrum/interfaces/index.js +2 -0
- package/dist/typechain-types/common.js +2 -0
- package/dist/typechain-types/example/AltTokenUA.js +2 -0
- package/dist/typechain-types/example/index.js +2 -0
- package/dist/typechain-types/factories/EndpointLite__factory.js +988 -0
- package/dist/typechain-types/factories/Endpoint__factory.js +1012 -0
- package/dist/typechain-types/factories/FeeHandler__factory.js +203 -0
- package/dist/typechain-types/factories/NonceContractRadar__factory.js +183 -0
- package/dist/typechain-types/factories/NonceContract__factory.js +142 -0
- package/dist/typechain-types/factories/PriceFeed__factory.js +585 -0
- package/dist/typechain-types/factories/RelayerV2.sol/IStargateComposer__factory.js +35 -0
- package/dist/typechain-types/factories/RelayerV2.sol/RelayerV2__factory.js +1048 -0
- package/dist/typechain-types/factories/RelayerV2.sol/index.js +21 -0
- package/dist/typechain-types/factories/RelayerV2Radar__factory.js +853 -0
- package/dist/typechain-types/factories/Relayer__factory.js +642 -0
- package/dist/typechain-types/factories/TreasuryV2Radar__factory.js +362 -0
- package/dist/typechain-types/factories/TreasuryV2__factory.js +385 -0
- package/dist/typechain-types/factories/Treasury__factory.js +362 -0
- package/dist/typechain-types/factories/UltraLightNodeV2AltToken__factory.js +1495 -0
- package/dist/typechain-types/factories/UltraLightNodeV2Radar__factory.js +1599 -0
- package/dist/typechain-types/factories/UltraLightNodeV2__factory.js +1477 -0
- package/dist/typechain-types/factories/UltraLightNode__factory.js +1529 -0
- package/dist/typechain-types/factories/arbitrum/index.js +7 -0
- package/dist/typechain-types/factories/arbitrum/interfaces/ArbSys__factory.js +290 -0
- package/dist/typechain-types/factories/arbitrum/interfaces/index.js +19 -0
- package/dist/typechain-types/factories/example/AltTokenUA__factory.js +186 -0
- package/dist/typechain-types/factories/example/index.js +19 -0
- package/dist/typechain-types/factories/index.js +54 -0
- package/dist/typechain-types/factories/interfaces/IContractOne__factory.js +35 -0
- package/dist/typechain-types/factories/interfaces/ILayerZeroEndpoint__factory.js +458 -0
- package/dist/typechain-types/factories/interfaces/ILayerZeroMessagingLibraryV2__factory.js +195 -0
- package/dist/typechain-types/factories/interfaces/ILayerZeroMessagingLibrary__factory.js +171 -0
- package/dist/typechain-types/factories/interfaces/ILayerZeroOracleV2__factory.js +108 -0
- package/dist/typechain-types/factories/interfaces/ILayerZeroOracle__factory.js +88 -0
- package/dist/typechain-types/factories/interfaces/ILayerZeroPriceFeedV2__factory.js +115 -0
- package/dist/typechain-types/factories/interfaces/ILayerZeroPriceFeed__factory.js +118 -0
- package/dist/typechain-types/factories/interfaces/ILayerZeroReceiver__factory.js +50 -0
- package/dist/typechain-types/factories/interfaces/ILayerZeroRelayerV2PriceData__factory.js +94 -0
- package/dist/typechain-types/factories/interfaces/ILayerZeroRelayerV2__factory.js +118 -0
- package/dist/typechain-types/factories/interfaces/ILayerZeroRelayer__factory.js +103 -0
- package/dist/typechain-types/factories/interfaces/ILayerZeroTreasury__factory.js +51 -0
- package/dist/typechain-types/factories/interfaces/ILayerZeroUltraLightNodeV1__factory.js +167 -0
- package/dist/typechain-types/factories/interfaces/ILayerZeroUltraLightNodeV2__factory.js +593 -0
- package/dist/typechain-types/factories/interfaces/ILayerZeroUserApplicationConfig__factory.js +94 -0
- package/dist/typechain-types/factories/interfaces/ILayerZeroValidationLibrary__factory.js +88 -0
- package/dist/typechain-types/factories/interfaces/IValidationLibraryHelperV2__factory.js +165 -0
- package/dist/typechain-types/factories/interfaces/IValidationLibraryHelper__factory.js +157 -0
- package/dist/typechain-types/factories/interfaces/index.js +55 -0
- package/dist/typechain-types/factories/precrime/PreCrimeBase__factory.js +270 -0
- package/dist/typechain-types/factories/precrime/PreCrimeView__factory.js +329 -0
- package/dist/typechain-types/factories/precrime/PreCrime__factory.js +364 -0
- package/dist/typechain-types/factories/precrime/example/index.js +8 -0
- package/dist/typechain-types/factories/precrime/example/inherit/CounterI__factory.js +677 -0
- package/dist/typechain-types/factories/precrime/example/inherit/CounterPrecrime__factory.js +468 -0
- package/dist/typechain-types/factories/precrime/example/inherit/index.js +21 -0
- package/dist/typechain-types/factories/precrime/example/view/CounterPrecrimeView__factory.js +470 -0
- package/dist/typechain-types/factories/precrime/example/view/CounterV__factory.js +231 -0
- package/dist/typechain-types/factories/precrime/example/view/CounterView__factory.js +219 -0
- package/dist/typechain-types/factories/precrime/example/view/index.js +23 -0
- package/dist/typechain-types/factories/precrime/index.js +25 -0
- package/dist/typechain-types/factories/precrime/interfaces/IPreCrimeBase__factory.js +127 -0
- package/dist/typechain-types/factories/precrime/interfaces/IPreCrimeView__factory.js +173 -0
- package/dist/typechain-types/factories/precrime/interfaces/IPreCrime__factory.js +173 -0
- package/dist/typechain-types/factories/precrime/interfaces/index.js +23 -0
- package/dist/typechain-types/factories/proof/FPValidator__factory.js +380 -0
- package/dist/typechain-types/factories/proof/MPTValidator01__factory.js +393 -0
- package/dist/typechain-types/factories/proof/MPTValidatorStgV3__factory.js +364 -0
- package/dist/typechain-types/factories/proof/MPTValidatorV2__factory.js +266 -0
- package/dist/typechain-types/factories/proof/MPTValidatorV4.sol/IUltraLightNode__factory.js +119 -0
- package/dist/typechain-types/factories/proof/MPTValidatorV4.sol/MPTValidatorV4__factory.js +468 -0
- package/dist/typechain-types/factories/proof/MPTValidatorV4.sol/index.js +21 -0
- package/dist/typechain-types/factories/proof/MPTValidatorV5.sol/IUltraLightNode__factory.js +119 -0
- package/dist/typechain-types/factories/proof/MPTValidatorV5.sol/MPTValidatorV5__factory.js +486 -0
- package/dist/typechain-types/factories/proof/MPTValidatorV5.sol/index.js +21 -0
- package/dist/typechain-types/factories/proof/MPTValidator__factory.js +200 -0
- package/dist/typechain-types/factories/proof/index.js +29 -0
- package/dist/typechain-types/factories/proxy/DefaultProxyAdmin__factory.js +225 -0
- package/dist/typechain-types/factories/proxy/TransparentUpgradeableProxy__factory.js +196 -0
- package/dist/typechain-types/factories/proxy/index.js +21 -0
- package/dist/typechain-types/index.js +134 -0
- package/dist/typechain-types/interfaces/IContractOne.js +2 -0
- package/dist/typechain-types/interfaces/ILayerZeroEndpoint.js +2 -0
- package/dist/typechain-types/interfaces/ILayerZeroMessagingLibrary.js +2 -0
- package/dist/typechain-types/interfaces/ILayerZeroMessagingLibraryV2.js +2 -0
- package/dist/typechain-types/interfaces/ILayerZeroOracle.js +2 -0
- package/dist/typechain-types/interfaces/ILayerZeroOracleV2.js +2 -0
- package/dist/typechain-types/interfaces/ILayerZeroPriceFeed.js +2 -0
- package/dist/typechain-types/interfaces/ILayerZeroPriceFeedV2.js +2 -0
- package/dist/typechain-types/interfaces/ILayerZeroReceiver.js +2 -0
- package/dist/typechain-types/interfaces/ILayerZeroRelayer.js +2 -0
- package/dist/typechain-types/interfaces/ILayerZeroRelayerV2.js +2 -0
- package/dist/typechain-types/interfaces/ILayerZeroRelayerV2PriceData.js +2 -0
- package/dist/typechain-types/interfaces/ILayerZeroTreasury.js +2 -0
- package/dist/typechain-types/interfaces/ILayerZeroUltraLightNodeV1.js +2 -0
- package/dist/typechain-types/interfaces/ILayerZeroUltraLightNodeV2.js +2 -0
- package/dist/typechain-types/interfaces/ILayerZeroUserApplicationConfig.js +2 -0
- package/dist/typechain-types/interfaces/ILayerZeroValidationLibrary.js +2 -0
- package/dist/typechain-types/interfaces/IValidationLibraryHelper.js +2 -0
- package/dist/typechain-types/interfaces/IValidationLibraryHelperV2.js +2 -0
- package/dist/typechain-types/interfaces/index.js +2 -0
- package/dist/typechain-types/precrime/PreCrime.js +2 -0
- package/dist/typechain-types/precrime/PreCrimeBase.js +2 -0
- package/dist/typechain-types/precrime/PreCrimeView.js +2 -0
- package/dist/typechain-types/precrime/example/index.js +2 -0
- package/dist/typechain-types/precrime/example/inherit/CounterI.js +2 -0
- package/dist/typechain-types/precrime/example/inherit/CounterPrecrime.js +2 -0
- package/dist/typechain-types/precrime/example/inherit/index.js +2 -0
- package/dist/typechain-types/precrime/example/view/CounterPrecrimeView.js +2 -0
- package/dist/typechain-types/precrime/example/view/CounterV.js +2 -0
- package/dist/typechain-types/precrime/example/view/CounterView.js +2 -0
- package/dist/typechain-types/precrime/example/view/index.js +2 -0
- package/dist/typechain-types/precrime/index.js +2 -0
- package/dist/typechain-types/precrime/interfaces/IPreCrime.js +2 -0
- package/dist/typechain-types/precrime/interfaces/IPreCrimeBase.js +2 -0
- package/dist/typechain-types/precrime/interfaces/IPreCrimeView.js +2 -0
- package/dist/typechain-types/precrime/interfaces/index.js +2 -0
- package/dist/typechain-types/proof/FPValidator.js +2 -0
- package/dist/typechain-types/proof/MPTValidator.js +2 -0
- package/dist/typechain-types/proof/MPTValidator01.js +2 -0
- package/dist/typechain-types/proof/MPTValidatorStgV3.js +2 -0
- package/dist/typechain-types/proof/MPTValidatorV2.js +2 -0
- package/dist/typechain-types/proof/MPTValidatorV4.sol/IUltraLightNode.js +2 -0
- package/dist/typechain-types/proof/MPTValidatorV4.sol/MPTValidatorV4.js +2 -0
- package/dist/typechain-types/proof/MPTValidatorV4.sol/index.js +2 -0
- package/dist/typechain-types/proof/MPTValidatorV5.sol/IUltraLightNode.js +2 -0
- package/dist/typechain-types/proof/MPTValidatorV5.sol/MPTValidatorV5.js +2 -0
- package/dist/typechain-types/proof/MPTValidatorV5.sol/index.js +2 -0
- package/dist/typechain-types/proof/index.js +2 -0
- package/dist/typechain-types/proxy/DefaultProxyAdmin.js +2 -0
- package/dist/typechain-types/proxy/TransparentUpgradeableProxy.js +2 -0
- package/dist/typechain-types/proxy/index.js +2 -0
- package/package.json +4 -4
- package/deployments/avalanche-sandbox-local/FPValidator.json +0 -382
- package/deployments/avalanche-sandbox-local/NonceContract.json +0 -159
- package/deployments/bsc-sandbox-local/Endpoint.json +0 -1282
- package/deployments/bsc-sandbox-local/MPTValidator01.json +0 -395
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* Autogenerated file. Do not edit manually. */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
exports.__esModule = true;
|
|
6
|
+
exports.ILayerZeroMessagingLibrary__factory = void 0;
|
|
7
|
+
var ethers_1 = require("ethers");
|
|
8
|
+
var _abi = [
|
|
9
|
+
{
|
|
10
|
+
inputs: [
|
|
11
|
+
{
|
|
12
|
+
internalType: "uint16",
|
|
13
|
+
name: "_chainId",
|
|
14
|
+
type: "uint16"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
internalType: "address",
|
|
18
|
+
name: "_userApplication",
|
|
19
|
+
type: "address"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
internalType: "bytes",
|
|
23
|
+
name: "_payload",
|
|
24
|
+
type: "bytes"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
internalType: "bool",
|
|
28
|
+
name: "_payInZRO",
|
|
29
|
+
type: "bool"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
internalType: "bytes",
|
|
33
|
+
name: "_adapterParam",
|
|
34
|
+
type: "bytes"
|
|
35
|
+
},
|
|
36
|
+
],
|
|
37
|
+
name: "estimateFees",
|
|
38
|
+
outputs: [
|
|
39
|
+
{
|
|
40
|
+
internalType: "uint256",
|
|
41
|
+
name: "nativeFee",
|
|
42
|
+
type: "uint256"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
internalType: "uint256",
|
|
46
|
+
name: "zroFee",
|
|
47
|
+
type: "uint256"
|
|
48
|
+
},
|
|
49
|
+
],
|
|
50
|
+
stateMutability: "view",
|
|
51
|
+
type: "function"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
inputs: [
|
|
55
|
+
{
|
|
56
|
+
internalType: "uint16",
|
|
57
|
+
name: "_chainId",
|
|
58
|
+
type: "uint16"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
internalType: "address",
|
|
62
|
+
name: "_userApplication",
|
|
63
|
+
type: "address"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
internalType: "uint256",
|
|
67
|
+
name: "_configType",
|
|
68
|
+
type: "uint256"
|
|
69
|
+
},
|
|
70
|
+
],
|
|
71
|
+
name: "getConfig",
|
|
72
|
+
outputs: [
|
|
73
|
+
{
|
|
74
|
+
internalType: "bytes",
|
|
75
|
+
name: "",
|
|
76
|
+
type: "bytes"
|
|
77
|
+
},
|
|
78
|
+
],
|
|
79
|
+
stateMutability: "view",
|
|
80
|
+
type: "function"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
inputs: [
|
|
84
|
+
{
|
|
85
|
+
internalType: "address",
|
|
86
|
+
name: "_userApplication",
|
|
87
|
+
type: "address"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
internalType: "uint64",
|
|
91
|
+
name: "_lastNonce",
|
|
92
|
+
type: "uint64"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
internalType: "uint16",
|
|
96
|
+
name: "_chainId",
|
|
97
|
+
type: "uint16"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
internalType: "bytes",
|
|
101
|
+
name: "_destination",
|
|
102
|
+
type: "bytes"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
internalType: "bytes",
|
|
106
|
+
name: "_payload",
|
|
107
|
+
type: "bytes"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
internalType: "address payable",
|
|
111
|
+
name: "refundAddress",
|
|
112
|
+
type: "address"
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
internalType: "address",
|
|
116
|
+
name: "_zroPaymentAddress",
|
|
117
|
+
type: "address"
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
internalType: "bytes",
|
|
121
|
+
name: "_adapterParams",
|
|
122
|
+
type: "bytes"
|
|
123
|
+
},
|
|
124
|
+
],
|
|
125
|
+
name: "send",
|
|
126
|
+
outputs: [],
|
|
127
|
+
stateMutability: "payable",
|
|
128
|
+
type: "function"
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
inputs: [
|
|
132
|
+
{
|
|
133
|
+
internalType: "uint16",
|
|
134
|
+
name: "_chainId",
|
|
135
|
+
type: "uint16"
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
internalType: "address",
|
|
139
|
+
name: "_userApplication",
|
|
140
|
+
type: "address"
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
internalType: "uint256",
|
|
144
|
+
name: "_configType",
|
|
145
|
+
type: "uint256"
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
internalType: "bytes",
|
|
149
|
+
name: "_config",
|
|
150
|
+
type: "bytes"
|
|
151
|
+
},
|
|
152
|
+
],
|
|
153
|
+
name: "setConfig",
|
|
154
|
+
outputs: [],
|
|
155
|
+
stateMutability: "nonpayable",
|
|
156
|
+
type: "function"
|
|
157
|
+
},
|
|
158
|
+
];
|
|
159
|
+
var ILayerZeroMessagingLibrary__factory = /** @class */ (function () {
|
|
160
|
+
function ILayerZeroMessagingLibrary__factory() {
|
|
161
|
+
}
|
|
162
|
+
ILayerZeroMessagingLibrary__factory.createInterface = function () {
|
|
163
|
+
return new ethers_1.utils.Interface(_abi);
|
|
164
|
+
};
|
|
165
|
+
ILayerZeroMessagingLibrary__factory.connect = function (address, signerOrProvider) {
|
|
166
|
+
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
|
167
|
+
};
|
|
168
|
+
ILayerZeroMessagingLibrary__factory.abi = _abi;
|
|
169
|
+
return ILayerZeroMessagingLibrary__factory;
|
|
170
|
+
}());
|
|
171
|
+
exports.ILayerZeroMessagingLibrary__factory = ILayerZeroMessagingLibrary__factory;
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* Autogenerated file. Do not edit manually. */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
exports.__esModule = true;
|
|
6
|
+
exports.ILayerZeroOracleV2__factory = void 0;
|
|
7
|
+
var ethers_1 = require("ethers");
|
|
8
|
+
var _abi = [
|
|
9
|
+
{
|
|
10
|
+
inputs: [
|
|
11
|
+
{
|
|
12
|
+
internalType: "uint16",
|
|
13
|
+
name: "_dstChainId",
|
|
14
|
+
type: "uint16"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
internalType: "uint16",
|
|
18
|
+
name: "_outboundProofType",
|
|
19
|
+
type: "uint16"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
internalType: "uint64",
|
|
23
|
+
name: "_outboundBlockConfirmation",
|
|
24
|
+
type: "uint64"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
internalType: "address",
|
|
28
|
+
name: "_userApplication",
|
|
29
|
+
type: "address"
|
|
30
|
+
},
|
|
31
|
+
],
|
|
32
|
+
name: "assignJob",
|
|
33
|
+
outputs: [
|
|
34
|
+
{
|
|
35
|
+
internalType: "uint256",
|
|
36
|
+
name: "price",
|
|
37
|
+
type: "uint256"
|
|
38
|
+
},
|
|
39
|
+
],
|
|
40
|
+
stateMutability: "nonpayable",
|
|
41
|
+
type: "function"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
inputs: [
|
|
45
|
+
{
|
|
46
|
+
internalType: "uint16",
|
|
47
|
+
name: "_dstChainId",
|
|
48
|
+
type: "uint16"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
internalType: "uint16",
|
|
52
|
+
name: "_outboundProofType",
|
|
53
|
+
type: "uint16"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
internalType: "uint64",
|
|
57
|
+
name: "_outboundBlockConfirmation",
|
|
58
|
+
type: "uint64"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
internalType: "address",
|
|
62
|
+
name: "_userApplication",
|
|
63
|
+
type: "address"
|
|
64
|
+
},
|
|
65
|
+
],
|
|
66
|
+
name: "getFee",
|
|
67
|
+
outputs: [
|
|
68
|
+
{
|
|
69
|
+
internalType: "uint256",
|
|
70
|
+
name: "price",
|
|
71
|
+
type: "uint256"
|
|
72
|
+
},
|
|
73
|
+
],
|
|
74
|
+
stateMutability: "view",
|
|
75
|
+
type: "function"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
inputs: [
|
|
79
|
+
{
|
|
80
|
+
internalType: "address payable",
|
|
81
|
+
name: "_to",
|
|
82
|
+
type: "address"
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
internalType: "uint256",
|
|
86
|
+
name: "_amount",
|
|
87
|
+
type: "uint256"
|
|
88
|
+
},
|
|
89
|
+
],
|
|
90
|
+
name: "withdrawFee",
|
|
91
|
+
outputs: [],
|
|
92
|
+
stateMutability: "nonpayable",
|
|
93
|
+
type: "function"
|
|
94
|
+
},
|
|
95
|
+
];
|
|
96
|
+
var ILayerZeroOracleV2__factory = /** @class */ (function () {
|
|
97
|
+
function ILayerZeroOracleV2__factory() {
|
|
98
|
+
}
|
|
99
|
+
ILayerZeroOracleV2__factory.createInterface = function () {
|
|
100
|
+
return new ethers_1.utils.Interface(_abi);
|
|
101
|
+
};
|
|
102
|
+
ILayerZeroOracleV2__factory.connect = function (address, signerOrProvider) {
|
|
103
|
+
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
|
104
|
+
};
|
|
105
|
+
ILayerZeroOracleV2__factory.abi = _abi;
|
|
106
|
+
return ILayerZeroOracleV2__factory;
|
|
107
|
+
}());
|
|
108
|
+
exports.ILayerZeroOracleV2__factory = ILayerZeroOracleV2__factory;
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* Autogenerated file. Do not edit manually. */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
exports.__esModule = true;
|
|
6
|
+
exports.ILayerZeroOracle__factory = void 0;
|
|
7
|
+
var ethers_1 = require("ethers");
|
|
8
|
+
var _abi = [
|
|
9
|
+
{
|
|
10
|
+
inputs: [
|
|
11
|
+
{
|
|
12
|
+
internalType: "uint16",
|
|
13
|
+
name: "_dstChainId",
|
|
14
|
+
type: "uint16"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
internalType: "uint16",
|
|
18
|
+
name: "_outboundProofType",
|
|
19
|
+
type: "uint16"
|
|
20
|
+
},
|
|
21
|
+
],
|
|
22
|
+
name: "getPrice",
|
|
23
|
+
outputs: [
|
|
24
|
+
{
|
|
25
|
+
internalType: "uint256",
|
|
26
|
+
name: "price",
|
|
27
|
+
type: "uint256"
|
|
28
|
+
},
|
|
29
|
+
],
|
|
30
|
+
stateMutability: "view",
|
|
31
|
+
type: "function"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
inputs: [
|
|
35
|
+
{
|
|
36
|
+
internalType: "address",
|
|
37
|
+
name: "_address",
|
|
38
|
+
type: "address"
|
|
39
|
+
},
|
|
40
|
+
],
|
|
41
|
+
name: "isApproved",
|
|
42
|
+
outputs: [
|
|
43
|
+
{
|
|
44
|
+
internalType: "bool",
|
|
45
|
+
name: "approved",
|
|
46
|
+
type: "bool"
|
|
47
|
+
},
|
|
48
|
+
],
|
|
49
|
+
stateMutability: "view",
|
|
50
|
+
type: "function"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
inputs: [
|
|
54
|
+
{
|
|
55
|
+
internalType: "uint16",
|
|
56
|
+
name: "_dstChainId",
|
|
57
|
+
type: "uint16"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
internalType: "uint16",
|
|
61
|
+
name: "_outboundProofType",
|
|
62
|
+
type: "uint16"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
internalType: "uint64",
|
|
66
|
+
name: "_outboundBlockConfirmations",
|
|
67
|
+
type: "uint64"
|
|
68
|
+
},
|
|
69
|
+
],
|
|
70
|
+
name: "notifyOracle",
|
|
71
|
+
outputs: [],
|
|
72
|
+
stateMutability: "nonpayable",
|
|
73
|
+
type: "function"
|
|
74
|
+
},
|
|
75
|
+
];
|
|
76
|
+
var ILayerZeroOracle__factory = /** @class */ (function () {
|
|
77
|
+
function ILayerZeroOracle__factory() {
|
|
78
|
+
}
|
|
79
|
+
ILayerZeroOracle__factory.createInterface = function () {
|
|
80
|
+
return new ethers_1.utils.Interface(_abi);
|
|
81
|
+
};
|
|
82
|
+
ILayerZeroOracle__factory.connect = function (address, signerOrProvider) {
|
|
83
|
+
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
|
84
|
+
};
|
|
85
|
+
ILayerZeroOracle__factory.abi = _abi;
|
|
86
|
+
return ILayerZeroOracle__factory;
|
|
87
|
+
}());
|
|
88
|
+
exports.ILayerZeroOracle__factory = ILayerZeroOracle__factory;
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* Autogenerated file. Do not edit manually. */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
exports.__esModule = true;
|
|
6
|
+
exports.ILayerZeroPriceFeedV2__factory = void 0;
|
|
7
|
+
var ethers_1 = require("ethers");
|
|
8
|
+
var _abi = [
|
|
9
|
+
{
|
|
10
|
+
inputs: [
|
|
11
|
+
{
|
|
12
|
+
internalType: "uint32",
|
|
13
|
+
name: "_dstEid",
|
|
14
|
+
type: "uint32"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
internalType: "uint256",
|
|
18
|
+
name: "_callDataSize",
|
|
19
|
+
type: "uint256"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
internalType: "uint256",
|
|
23
|
+
name: "_gas",
|
|
24
|
+
type: "uint256"
|
|
25
|
+
},
|
|
26
|
+
],
|
|
27
|
+
name: "estimateFeeByEid",
|
|
28
|
+
outputs: [
|
|
29
|
+
{
|
|
30
|
+
internalType: "uint256",
|
|
31
|
+
name: "fee",
|
|
32
|
+
type: "uint256"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
internalType: "uint128",
|
|
36
|
+
name: "priceRatio",
|
|
37
|
+
type: "uint128"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
internalType: "uint128",
|
|
41
|
+
name: "priceRatioDenominator",
|
|
42
|
+
type: "uint128"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
internalType: "uint128",
|
|
46
|
+
name: "nativePriceUSD",
|
|
47
|
+
type: "uint128"
|
|
48
|
+
},
|
|
49
|
+
],
|
|
50
|
+
stateMutability: "view",
|
|
51
|
+
type: "function"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
inputs: [
|
|
55
|
+
{
|
|
56
|
+
internalType: "uint32",
|
|
57
|
+
name: "_dstEid",
|
|
58
|
+
type: "uint32"
|
|
59
|
+
},
|
|
60
|
+
],
|
|
61
|
+
name: "getPrice",
|
|
62
|
+
outputs: [
|
|
63
|
+
{
|
|
64
|
+
components: [
|
|
65
|
+
{
|
|
66
|
+
internalType: "uint128",
|
|
67
|
+
name: "priceRatio",
|
|
68
|
+
type: "uint128"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
internalType: "uint64",
|
|
72
|
+
name: "gasPriceInUnit",
|
|
73
|
+
type: "uint64"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
internalType: "uint32",
|
|
77
|
+
name: "gasPerByte",
|
|
78
|
+
type: "uint32"
|
|
79
|
+
},
|
|
80
|
+
],
|
|
81
|
+
internalType: "struct ILayerZeroPriceFeedV2.Price",
|
|
82
|
+
name: "",
|
|
83
|
+
type: "tuple"
|
|
84
|
+
},
|
|
85
|
+
],
|
|
86
|
+
stateMutability: "view",
|
|
87
|
+
type: "function"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
inputs: [],
|
|
91
|
+
name: "getPriceRatioDenominator",
|
|
92
|
+
outputs: [
|
|
93
|
+
{
|
|
94
|
+
internalType: "uint128",
|
|
95
|
+
name: "",
|
|
96
|
+
type: "uint128"
|
|
97
|
+
},
|
|
98
|
+
],
|
|
99
|
+
stateMutability: "view",
|
|
100
|
+
type: "function"
|
|
101
|
+
},
|
|
102
|
+
];
|
|
103
|
+
var ILayerZeroPriceFeedV2__factory = /** @class */ (function () {
|
|
104
|
+
function ILayerZeroPriceFeedV2__factory() {
|
|
105
|
+
}
|
|
106
|
+
ILayerZeroPriceFeedV2__factory.createInterface = function () {
|
|
107
|
+
return new ethers_1.utils.Interface(_abi);
|
|
108
|
+
};
|
|
109
|
+
ILayerZeroPriceFeedV2__factory.connect = function (address, signerOrProvider) {
|
|
110
|
+
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
|
111
|
+
};
|
|
112
|
+
ILayerZeroPriceFeedV2__factory.abi = _abi;
|
|
113
|
+
return ILayerZeroPriceFeedV2__factory;
|
|
114
|
+
}());
|
|
115
|
+
exports.ILayerZeroPriceFeedV2__factory = ILayerZeroPriceFeedV2__factory;
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* Autogenerated file. Do not edit manually. */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
exports.__esModule = true;
|
|
6
|
+
exports.ILayerZeroPriceFeed__factory = void 0;
|
|
7
|
+
var ethers_1 = require("ethers");
|
|
8
|
+
var _abi = [
|
|
9
|
+
{
|
|
10
|
+
inputs: [
|
|
11
|
+
{
|
|
12
|
+
internalType: "uint16",
|
|
13
|
+
name: "_dstChainId",
|
|
14
|
+
type: "uint16"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
internalType: "uint256",
|
|
18
|
+
name: "_callDataSize",
|
|
19
|
+
type: "uint256"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
internalType: "uint256",
|
|
23
|
+
name: "_gas",
|
|
24
|
+
type: "uint256"
|
|
25
|
+
},
|
|
26
|
+
],
|
|
27
|
+
name: "estimateFeeByChain",
|
|
28
|
+
outputs: [
|
|
29
|
+
{
|
|
30
|
+
internalType: "uint256",
|
|
31
|
+
name: "fee",
|
|
32
|
+
type: "uint256"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
internalType: "uint128",
|
|
36
|
+
name: "priceRatio",
|
|
37
|
+
type: "uint128"
|
|
38
|
+
},
|
|
39
|
+
],
|
|
40
|
+
stateMutability: "view",
|
|
41
|
+
type: "function"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
inputs: [
|
|
45
|
+
{
|
|
46
|
+
internalType: "uint16",
|
|
47
|
+
name: "_dstChainId",
|
|
48
|
+
type: "uint16"
|
|
49
|
+
},
|
|
50
|
+
],
|
|
51
|
+
name: "getPrice",
|
|
52
|
+
outputs: [
|
|
53
|
+
{
|
|
54
|
+
components: [
|
|
55
|
+
{
|
|
56
|
+
internalType: "uint128",
|
|
57
|
+
name: "priceRatio",
|
|
58
|
+
type: "uint128"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
internalType: "uint64",
|
|
62
|
+
name: "gasPriceInUnit",
|
|
63
|
+
type: "uint64"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
internalType: "uint32",
|
|
67
|
+
name: "gasPerByte",
|
|
68
|
+
type: "uint32"
|
|
69
|
+
},
|
|
70
|
+
],
|
|
71
|
+
internalType: "struct ILayerZeroPriceFeed.Price",
|
|
72
|
+
name: "",
|
|
73
|
+
type: "tuple"
|
|
74
|
+
},
|
|
75
|
+
],
|
|
76
|
+
stateMutability: "view",
|
|
77
|
+
type: "function"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
inputs: [],
|
|
81
|
+
name: "getPriceRatioDenominator",
|
|
82
|
+
outputs: [
|
|
83
|
+
{
|
|
84
|
+
internalType: "uint128",
|
|
85
|
+
name: "",
|
|
86
|
+
type: "uint128"
|
|
87
|
+
},
|
|
88
|
+
],
|
|
89
|
+
stateMutability: "view",
|
|
90
|
+
type: "function"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
inputs: [],
|
|
94
|
+
name: "nativeTokenPriceUSD",
|
|
95
|
+
outputs: [
|
|
96
|
+
{
|
|
97
|
+
internalType: "uint128",
|
|
98
|
+
name: "",
|
|
99
|
+
type: "uint128"
|
|
100
|
+
},
|
|
101
|
+
],
|
|
102
|
+
stateMutability: "view",
|
|
103
|
+
type: "function"
|
|
104
|
+
},
|
|
105
|
+
];
|
|
106
|
+
var ILayerZeroPriceFeed__factory = /** @class */ (function () {
|
|
107
|
+
function ILayerZeroPriceFeed__factory() {
|
|
108
|
+
}
|
|
109
|
+
ILayerZeroPriceFeed__factory.createInterface = function () {
|
|
110
|
+
return new ethers_1.utils.Interface(_abi);
|
|
111
|
+
};
|
|
112
|
+
ILayerZeroPriceFeed__factory.connect = function (address, signerOrProvider) {
|
|
113
|
+
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
|
114
|
+
};
|
|
115
|
+
ILayerZeroPriceFeed__factory.abi = _abi;
|
|
116
|
+
return ILayerZeroPriceFeed__factory;
|
|
117
|
+
}());
|
|
118
|
+
exports.ILayerZeroPriceFeed__factory = ILayerZeroPriceFeed__factory;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* Autogenerated file. Do not edit manually. */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
exports.__esModule = true;
|
|
6
|
+
exports.ILayerZeroReceiver__factory = void 0;
|
|
7
|
+
var ethers_1 = require("ethers");
|
|
8
|
+
var _abi = [
|
|
9
|
+
{
|
|
10
|
+
inputs: [
|
|
11
|
+
{
|
|
12
|
+
internalType: "uint16",
|
|
13
|
+
name: "_srcChainId",
|
|
14
|
+
type: "uint16"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
internalType: "bytes",
|
|
18
|
+
name: "_srcAddress",
|
|
19
|
+
type: "bytes"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
internalType: "uint64",
|
|
23
|
+
name: "_nonce",
|
|
24
|
+
type: "uint64"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
internalType: "bytes",
|
|
28
|
+
name: "_payload",
|
|
29
|
+
type: "bytes"
|
|
30
|
+
},
|
|
31
|
+
],
|
|
32
|
+
name: "lzReceive",
|
|
33
|
+
outputs: [],
|
|
34
|
+
stateMutability: "nonpayable",
|
|
35
|
+
type: "function"
|
|
36
|
+
},
|
|
37
|
+
];
|
|
38
|
+
var ILayerZeroReceiver__factory = /** @class */ (function () {
|
|
39
|
+
function ILayerZeroReceiver__factory() {
|
|
40
|
+
}
|
|
41
|
+
ILayerZeroReceiver__factory.createInterface = function () {
|
|
42
|
+
return new ethers_1.utils.Interface(_abi);
|
|
43
|
+
};
|
|
44
|
+
ILayerZeroReceiver__factory.connect = function (address, signerOrProvider) {
|
|
45
|
+
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
|
46
|
+
};
|
|
47
|
+
ILayerZeroReceiver__factory.abi = _abi;
|
|
48
|
+
return ILayerZeroReceiver__factory;
|
|
49
|
+
}());
|
|
50
|
+
exports.ILayerZeroReceiver__factory = ILayerZeroReceiver__factory;
|