@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,270 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* Autogenerated file. Do not edit manually. */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
exports.__esModule = true;
|
|
6
|
+
exports.PreCrimeBase__factory = void 0;
|
|
7
|
+
var ethers_1 = require("ethers");
|
|
8
|
+
var _abi = [
|
|
9
|
+
{
|
|
10
|
+
inputs: [],
|
|
11
|
+
name: "CODE_MISS_SIMULATE_RESULT",
|
|
12
|
+
outputs: [
|
|
13
|
+
{
|
|
14
|
+
internalType: "uint16",
|
|
15
|
+
name: "",
|
|
16
|
+
type: "uint16"
|
|
17
|
+
},
|
|
18
|
+
],
|
|
19
|
+
stateMutability: "view",
|
|
20
|
+
type: "function"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
inputs: [],
|
|
24
|
+
name: "CODE_PACKETS_OVERSIZE",
|
|
25
|
+
outputs: [
|
|
26
|
+
{
|
|
27
|
+
internalType: "uint16",
|
|
28
|
+
name: "",
|
|
29
|
+
type: "uint16"
|
|
30
|
+
},
|
|
31
|
+
],
|
|
32
|
+
stateMutability: "view",
|
|
33
|
+
type: "function"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
inputs: [],
|
|
37
|
+
name: "CODE_PACKETS_UNSORTED",
|
|
38
|
+
outputs: [
|
|
39
|
+
{
|
|
40
|
+
internalType: "uint16",
|
|
41
|
+
name: "",
|
|
42
|
+
type: "uint16"
|
|
43
|
+
},
|
|
44
|
+
],
|
|
45
|
+
stateMutability: "view",
|
|
46
|
+
type: "function"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
inputs: [],
|
|
50
|
+
name: "CODE_PRECRIME_FAILURE",
|
|
51
|
+
outputs: [
|
|
52
|
+
{
|
|
53
|
+
internalType: "uint16",
|
|
54
|
+
name: "",
|
|
55
|
+
type: "uint16"
|
|
56
|
+
},
|
|
57
|
+
],
|
|
58
|
+
stateMutability: "view",
|
|
59
|
+
type: "function"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
inputs: [],
|
|
63
|
+
name: "CODE_SUCCESS",
|
|
64
|
+
outputs: [
|
|
65
|
+
{
|
|
66
|
+
internalType: "uint16",
|
|
67
|
+
name: "",
|
|
68
|
+
type: "uint16"
|
|
69
|
+
},
|
|
70
|
+
],
|
|
71
|
+
stateMutability: "view",
|
|
72
|
+
type: "function"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
inputs: [],
|
|
76
|
+
name: "CONFIG_VERSION",
|
|
77
|
+
outputs: [
|
|
78
|
+
{
|
|
79
|
+
internalType: "uint16",
|
|
80
|
+
name: "",
|
|
81
|
+
type: "uint16"
|
|
82
|
+
},
|
|
83
|
+
],
|
|
84
|
+
stateMutability: "view",
|
|
85
|
+
type: "function"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
inputs: [
|
|
89
|
+
{
|
|
90
|
+
components: [
|
|
91
|
+
{
|
|
92
|
+
internalType: "uint16",
|
|
93
|
+
name: "srcChainId",
|
|
94
|
+
type: "uint16"
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
internalType: "bytes32",
|
|
98
|
+
name: "srcAddress",
|
|
99
|
+
type: "bytes32"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
internalType: "uint64",
|
|
103
|
+
name: "nonce",
|
|
104
|
+
type: "uint64"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
internalType: "bytes",
|
|
108
|
+
name: "payload",
|
|
109
|
+
type: "bytes"
|
|
110
|
+
},
|
|
111
|
+
],
|
|
112
|
+
internalType: "struct IPreCrimeBase.Packet[]",
|
|
113
|
+
name: "_packets",
|
|
114
|
+
type: "tuple[]"
|
|
115
|
+
},
|
|
116
|
+
],
|
|
117
|
+
name: "getConfig",
|
|
118
|
+
outputs: [
|
|
119
|
+
{
|
|
120
|
+
internalType: "bytes",
|
|
121
|
+
name: "",
|
|
122
|
+
type: "bytes"
|
|
123
|
+
},
|
|
124
|
+
],
|
|
125
|
+
stateMutability: "view",
|
|
126
|
+
type: "function"
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
inputs: [],
|
|
130
|
+
name: "localChainId",
|
|
131
|
+
outputs: [
|
|
132
|
+
{
|
|
133
|
+
internalType: "uint16",
|
|
134
|
+
name: "",
|
|
135
|
+
type: "uint16"
|
|
136
|
+
},
|
|
137
|
+
],
|
|
138
|
+
stateMutability: "view",
|
|
139
|
+
type: "function"
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
inputs: [],
|
|
143
|
+
name: "maxBatchSize",
|
|
144
|
+
outputs: [
|
|
145
|
+
{
|
|
146
|
+
internalType: "uint64",
|
|
147
|
+
name: "",
|
|
148
|
+
type: "uint64"
|
|
149
|
+
},
|
|
150
|
+
],
|
|
151
|
+
stateMutability: "view",
|
|
152
|
+
type: "function"
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
inputs: [
|
|
156
|
+
{
|
|
157
|
+
components: [
|
|
158
|
+
{
|
|
159
|
+
internalType: "uint16",
|
|
160
|
+
name: "srcChainId",
|
|
161
|
+
type: "uint16"
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
internalType: "bytes32",
|
|
165
|
+
name: "srcAddress",
|
|
166
|
+
type: "bytes32"
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
internalType: "uint64",
|
|
170
|
+
name: "nonce",
|
|
171
|
+
type: "uint64"
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
internalType: "bytes",
|
|
175
|
+
name: "payload",
|
|
176
|
+
type: "bytes"
|
|
177
|
+
},
|
|
178
|
+
],
|
|
179
|
+
internalType: "struct IPreCrimeBase.Packet[]",
|
|
180
|
+
name: "_packets",
|
|
181
|
+
type: "tuple[]"
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
internalType: "bytes[]",
|
|
185
|
+
name: "_simulation",
|
|
186
|
+
type: "bytes[]"
|
|
187
|
+
},
|
|
188
|
+
],
|
|
189
|
+
name: "precrime",
|
|
190
|
+
outputs: [
|
|
191
|
+
{
|
|
192
|
+
internalType: "uint16",
|
|
193
|
+
name: "code",
|
|
194
|
+
type: "uint16"
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
internalType: "bytes",
|
|
198
|
+
name: "reason",
|
|
199
|
+
type: "bytes"
|
|
200
|
+
},
|
|
201
|
+
],
|
|
202
|
+
stateMutability: "view",
|
|
203
|
+
type: "function"
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
inputs: [],
|
|
207
|
+
name: "precrimeAdmin",
|
|
208
|
+
outputs: [
|
|
209
|
+
{
|
|
210
|
+
internalType: "address",
|
|
211
|
+
name: "",
|
|
212
|
+
type: "address"
|
|
213
|
+
},
|
|
214
|
+
],
|
|
215
|
+
stateMutability: "view",
|
|
216
|
+
type: "function"
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
inputs: [
|
|
220
|
+
{
|
|
221
|
+
internalType: "uint64",
|
|
222
|
+
name: "_maxBatchSize",
|
|
223
|
+
type: "uint64"
|
|
224
|
+
},
|
|
225
|
+
],
|
|
226
|
+
name: "setMaxBatchSize",
|
|
227
|
+
outputs: [],
|
|
228
|
+
stateMutability: "nonpayable",
|
|
229
|
+
type: "function"
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
inputs: [
|
|
233
|
+
{
|
|
234
|
+
internalType: "address",
|
|
235
|
+
name: "_precrimeAdmin",
|
|
236
|
+
type: "address"
|
|
237
|
+
},
|
|
238
|
+
],
|
|
239
|
+
name: "setPrecrimeAdmin",
|
|
240
|
+
outputs: [],
|
|
241
|
+
stateMutability: "nonpayable",
|
|
242
|
+
type: "function"
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
inputs: [],
|
|
246
|
+
name: "version",
|
|
247
|
+
outputs: [
|
|
248
|
+
{
|
|
249
|
+
internalType: "uint16",
|
|
250
|
+
name: "",
|
|
251
|
+
type: "uint16"
|
|
252
|
+
},
|
|
253
|
+
],
|
|
254
|
+
stateMutability: "view",
|
|
255
|
+
type: "function"
|
|
256
|
+
},
|
|
257
|
+
];
|
|
258
|
+
var PreCrimeBase__factory = /** @class */ (function () {
|
|
259
|
+
function PreCrimeBase__factory() {
|
|
260
|
+
}
|
|
261
|
+
PreCrimeBase__factory.createInterface = function () {
|
|
262
|
+
return new ethers_1.utils.Interface(_abi);
|
|
263
|
+
};
|
|
264
|
+
PreCrimeBase__factory.connect = function (address, signerOrProvider) {
|
|
265
|
+
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
|
266
|
+
};
|
|
267
|
+
PreCrimeBase__factory.abi = _abi;
|
|
268
|
+
return PreCrimeBase__factory;
|
|
269
|
+
}());
|
|
270
|
+
exports.PreCrimeBase__factory = PreCrimeBase__factory;
|
|
@@ -0,0 +1,329 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* Autogenerated file. Do not edit manually. */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
exports.__esModule = true;
|
|
6
|
+
exports.PreCrimeView__factory = void 0;
|
|
7
|
+
var ethers_1 = require("ethers");
|
|
8
|
+
var _abi = [
|
|
9
|
+
{
|
|
10
|
+
inputs: [],
|
|
11
|
+
name: "CODE_MISS_SIMULATE_RESULT",
|
|
12
|
+
outputs: [
|
|
13
|
+
{
|
|
14
|
+
internalType: "uint16",
|
|
15
|
+
name: "",
|
|
16
|
+
type: "uint16"
|
|
17
|
+
},
|
|
18
|
+
],
|
|
19
|
+
stateMutability: "view",
|
|
20
|
+
type: "function"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
inputs: [],
|
|
24
|
+
name: "CODE_PACKETS_OVERSIZE",
|
|
25
|
+
outputs: [
|
|
26
|
+
{
|
|
27
|
+
internalType: "uint16",
|
|
28
|
+
name: "",
|
|
29
|
+
type: "uint16"
|
|
30
|
+
},
|
|
31
|
+
],
|
|
32
|
+
stateMutability: "view",
|
|
33
|
+
type: "function"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
inputs: [],
|
|
37
|
+
name: "CODE_PACKETS_UNSORTED",
|
|
38
|
+
outputs: [
|
|
39
|
+
{
|
|
40
|
+
internalType: "uint16",
|
|
41
|
+
name: "",
|
|
42
|
+
type: "uint16"
|
|
43
|
+
},
|
|
44
|
+
],
|
|
45
|
+
stateMutability: "view",
|
|
46
|
+
type: "function"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
inputs: [],
|
|
50
|
+
name: "CODE_PRECRIME_FAILURE",
|
|
51
|
+
outputs: [
|
|
52
|
+
{
|
|
53
|
+
internalType: "uint16",
|
|
54
|
+
name: "",
|
|
55
|
+
type: "uint16"
|
|
56
|
+
},
|
|
57
|
+
],
|
|
58
|
+
stateMutability: "view",
|
|
59
|
+
type: "function"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
inputs: [],
|
|
63
|
+
name: "CODE_SUCCESS",
|
|
64
|
+
outputs: [
|
|
65
|
+
{
|
|
66
|
+
internalType: "uint16",
|
|
67
|
+
name: "",
|
|
68
|
+
type: "uint16"
|
|
69
|
+
},
|
|
70
|
+
],
|
|
71
|
+
stateMutability: "view",
|
|
72
|
+
type: "function"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
inputs: [],
|
|
76
|
+
name: "CONFIG_VERSION",
|
|
77
|
+
outputs: [
|
|
78
|
+
{
|
|
79
|
+
internalType: "uint16",
|
|
80
|
+
name: "",
|
|
81
|
+
type: "uint16"
|
|
82
|
+
},
|
|
83
|
+
],
|
|
84
|
+
stateMutability: "view",
|
|
85
|
+
type: "function"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
inputs: [],
|
|
89
|
+
name: "PRECRIME_VERSION",
|
|
90
|
+
outputs: [
|
|
91
|
+
{
|
|
92
|
+
internalType: "uint16",
|
|
93
|
+
name: "",
|
|
94
|
+
type: "uint16"
|
|
95
|
+
},
|
|
96
|
+
],
|
|
97
|
+
stateMutability: "view",
|
|
98
|
+
type: "function"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
inputs: [
|
|
102
|
+
{
|
|
103
|
+
components: [
|
|
104
|
+
{
|
|
105
|
+
internalType: "uint16",
|
|
106
|
+
name: "srcChainId",
|
|
107
|
+
type: "uint16"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
internalType: "bytes32",
|
|
111
|
+
name: "srcAddress",
|
|
112
|
+
type: "bytes32"
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
internalType: "uint64",
|
|
116
|
+
name: "nonce",
|
|
117
|
+
type: "uint64"
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
internalType: "bytes",
|
|
121
|
+
name: "payload",
|
|
122
|
+
type: "bytes"
|
|
123
|
+
},
|
|
124
|
+
],
|
|
125
|
+
internalType: "struct IPreCrimeBase.Packet[]",
|
|
126
|
+
name: "_packets",
|
|
127
|
+
type: "tuple[]"
|
|
128
|
+
},
|
|
129
|
+
],
|
|
130
|
+
name: "getConfig",
|
|
131
|
+
outputs: [
|
|
132
|
+
{
|
|
133
|
+
internalType: "bytes",
|
|
134
|
+
name: "",
|
|
135
|
+
type: "bytes"
|
|
136
|
+
},
|
|
137
|
+
],
|
|
138
|
+
stateMutability: "view",
|
|
139
|
+
type: "function"
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
inputs: [],
|
|
143
|
+
name: "localChainId",
|
|
144
|
+
outputs: [
|
|
145
|
+
{
|
|
146
|
+
internalType: "uint16",
|
|
147
|
+
name: "",
|
|
148
|
+
type: "uint16"
|
|
149
|
+
},
|
|
150
|
+
],
|
|
151
|
+
stateMutability: "view",
|
|
152
|
+
type: "function"
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
inputs: [],
|
|
156
|
+
name: "maxBatchSize",
|
|
157
|
+
outputs: [
|
|
158
|
+
{
|
|
159
|
+
internalType: "uint64",
|
|
160
|
+
name: "",
|
|
161
|
+
type: "uint64"
|
|
162
|
+
},
|
|
163
|
+
],
|
|
164
|
+
stateMutability: "view",
|
|
165
|
+
type: "function"
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
inputs: [
|
|
169
|
+
{
|
|
170
|
+
components: [
|
|
171
|
+
{
|
|
172
|
+
internalType: "uint16",
|
|
173
|
+
name: "srcChainId",
|
|
174
|
+
type: "uint16"
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
internalType: "bytes32",
|
|
178
|
+
name: "srcAddress",
|
|
179
|
+
type: "bytes32"
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
internalType: "uint64",
|
|
183
|
+
name: "nonce",
|
|
184
|
+
type: "uint64"
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
internalType: "bytes",
|
|
188
|
+
name: "payload",
|
|
189
|
+
type: "bytes"
|
|
190
|
+
},
|
|
191
|
+
],
|
|
192
|
+
internalType: "struct IPreCrimeBase.Packet[]",
|
|
193
|
+
name: "_packets",
|
|
194
|
+
type: "tuple[]"
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
internalType: "bytes[]",
|
|
198
|
+
name: "_simulation",
|
|
199
|
+
type: "bytes[]"
|
|
200
|
+
},
|
|
201
|
+
],
|
|
202
|
+
name: "precrime",
|
|
203
|
+
outputs: [
|
|
204
|
+
{
|
|
205
|
+
internalType: "uint16",
|
|
206
|
+
name: "code",
|
|
207
|
+
type: "uint16"
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
internalType: "bytes",
|
|
211
|
+
name: "reason",
|
|
212
|
+
type: "bytes"
|
|
213
|
+
},
|
|
214
|
+
],
|
|
215
|
+
stateMutability: "view",
|
|
216
|
+
type: "function"
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
inputs: [],
|
|
220
|
+
name: "precrimeAdmin",
|
|
221
|
+
outputs: [
|
|
222
|
+
{
|
|
223
|
+
internalType: "address",
|
|
224
|
+
name: "",
|
|
225
|
+
type: "address"
|
|
226
|
+
},
|
|
227
|
+
],
|
|
228
|
+
stateMutability: "view",
|
|
229
|
+
type: "function"
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
inputs: [
|
|
233
|
+
{
|
|
234
|
+
internalType: "uint64",
|
|
235
|
+
name: "_maxBatchSize",
|
|
236
|
+
type: "uint64"
|
|
237
|
+
},
|
|
238
|
+
],
|
|
239
|
+
name: "setMaxBatchSize",
|
|
240
|
+
outputs: [],
|
|
241
|
+
stateMutability: "nonpayable",
|
|
242
|
+
type: "function"
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
inputs: [
|
|
246
|
+
{
|
|
247
|
+
internalType: "address",
|
|
248
|
+
name: "_precrimeAdmin",
|
|
249
|
+
type: "address"
|
|
250
|
+
},
|
|
251
|
+
],
|
|
252
|
+
name: "setPrecrimeAdmin",
|
|
253
|
+
outputs: [],
|
|
254
|
+
stateMutability: "nonpayable",
|
|
255
|
+
type: "function"
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
inputs: [
|
|
259
|
+
{
|
|
260
|
+
components: [
|
|
261
|
+
{
|
|
262
|
+
internalType: "uint16",
|
|
263
|
+
name: "srcChainId",
|
|
264
|
+
type: "uint16"
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
internalType: "bytes32",
|
|
268
|
+
name: "srcAddress",
|
|
269
|
+
type: "bytes32"
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
internalType: "uint64",
|
|
273
|
+
name: "nonce",
|
|
274
|
+
type: "uint64"
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
internalType: "bytes",
|
|
278
|
+
name: "payload",
|
|
279
|
+
type: "bytes"
|
|
280
|
+
},
|
|
281
|
+
],
|
|
282
|
+
internalType: "struct IPreCrimeBase.Packet[]",
|
|
283
|
+
name: "_packets",
|
|
284
|
+
type: "tuple[]"
|
|
285
|
+
},
|
|
286
|
+
],
|
|
287
|
+
name: "simulate",
|
|
288
|
+
outputs: [
|
|
289
|
+
{
|
|
290
|
+
internalType: "uint16",
|
|
291
|
+
name: "code",
|
|
292
|
+
type: "uint16"
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
internalType: "bytes",
|
|
296
|
+
name: "data",
|
|
297
|
+
type: "bytes"
|
|
298
|
+
},
|
|
299
|
+
],
|
|
300
|
+
stateMutability: "view",
|
|
301
|
+
type: "function"
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
inputs: [],
|
|
305
|
+
name: "version",
|
|
306
|
+
outputs: [
|
|
307
|
+
{
|
|
308
|
+
internalType: "uint16",
|
|
309
|
+
name: "",
|
|
310
|
+
type: "uint16"
|
|
311
|
+
},
|
|
312
|
+
],
|
|
313
|
+
stateMutability: "pure",
|
|
314
|
+
type: "function"
|
|
315
|
+
},
|
|
316
|
+
];
|
|
317
|
+
var PreCrimeView__factory = /** @class */ (function () {
|
|
318
|
+
function PreCrimeView__factory() {
|
|
319
|
+
}
|
|
320
|
+
PreCrimeView__factory.createInterface = function () {
|
|
321
|
+
return new ethers_1.utils.Interface(_abi);
|
|
322
|
+
};
|
|
323
|
+
PreCrimeView__factory.connect = function (address, signerOrProvider) {
|
|
324
|
+
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
|
325
|
+
};
|
|
326
|
+
PreCrimeView__factory.abi = _abi;
|
|
327
|
+
return PreCrimeView__factory;
|
|
328
|
+
}());
|
|
329
|
+
exports.PreCrimeView__factory = PreCrimeView__factory;
|