@layerzerolabs/lz-evm-sdk-v1 1.5.78 → 2.0.2
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/ethereum-sandbox-local/DefaultProxyAdmin.json +10 -10
- package/deployments/ethereum-sandbox-local/Endpoint.json +7 -7
- package/deployments/ethereum-sandbox-local/FPValidator.json +4 -4
- package/deployments/ethereum-sandbox-local/MPTValidator01.json +4 -4
- package/deployments/ethereum-sandbox-local/NonceContract.json +4 -4
- package/deployments/ethereum-sandbox-local/RelayerV2.json +16 -16
- package/deployments/ethereum-sandbox-local/RelayerV2_Implementation.json +4 -4
- package/deployments/ethereum-sandbox-local/RelayerV2_Proxy.json +16 -16
- package/deployments/ethereum-sandbox-local/TreasuryV2.json +7 -7
- package/deployments/ethereum-sandbox-local/UltraLightNode.json +7 -7
- package/deployments/ethereum-sandbox-local/UltraLightNodeV2.json +7 -7
- package/deployments/polygon-sandbox-local/DefaultProxyAdmin.json +10 -10
- package/deployments/polygon-sandbox-local/Endpoint.json +7 -7
- package/deployments/polygon-sandbox-local/FPValidator.json +4 -4
- package/deployments/polygon-sandbox-local/MPTValidator01.json +4 -4
- package/deployments/polygon-sandbox-local/NonceContract.json +4 -4
- package/deployments/polygon-sandbox-local/RelayerV2.json +16 -16
- package/deployments/polygon-sandbox-local/RelayerV2_Implementation.json +4 -4
- package/deployments/polygon-sandbox-local/RelayerV2_Proxy.json +16 -16
- package/deployments/polygon-sandbox-local/TreasuryV2.json +7 -7
- package/deployments/polygon-sandbox-local/UltraLightNode.json +7 -7
- package/deployments/polygon-sandbox-local/UltraLightNodeV2.json +7 -7
- package/package.json +4 -4
- package/dist/index.browser.js +0 -23
- package/dist/index.js +0 -30
- package/dist/typechain-types/Endpoint.js +0 -2
- package/dist/typechain-types/EndpointLite.js +0 -2
- package/dist/typechain-types/FeeHandler.js +0 -2
- package/dist/typechain-types/NonceContract.js +0 -2
- package/dist/typechain-types/NonceContractRadar.js +0 -2
- package/dist/typechain-types/PriceFeed.js +0 -2
- package/dist/typechain-types/Relayer.js +0 -2
- package/dist/typechain-types/RelayerV2.sol/IStargateComposer.js +0 -2
- package/dist/typechain-types/RelayerV2.sol/RelayerV2.js +0 -2
- package/dist/typechain-types/RelayerV2.sol/index.js +0 -2
- package/dist/typechain-types/RelayerV2Radar.js +0 -2
- package/dist/typechain-types/Treasury.js +0 -2
- package/dist/typechain-types/TreasuryV2.js +0 -2
- package/dist/typechain-types/TreasuryV2Radar.js +0 -2
- package/dist/typechain-types/UltraLightNode.js +0 -2
- package/dist/typechain-types/UltraLightNodeV2.js +0 -2
- package/dist/typechain-types/UltraLightNodeV2AltToken.js +0 -2
- package/dist/typechain-types/UltraLightNodeV2Radar.js +0 -2
- package/dist/typechain-types/arbitrum/index.js +0 -2
- package/dist/typechain-types/arbitrum/interfaces/ArbSys.js +0 -2
- package/dist/typechain-types/arbitrum/interfaces/index.js +0 -2
- package/dist/typechain-types/common.js +0 -2
- package/dist/typechain-types/example/AltTokenUA.js +0 -2
- package/dist/typechain-types/example/index.js +0 -2
- package/dist/typechain-types/factories/EndpointLite__factory.js +0 -988
- package/dist/typechain-types/factories/Endpoint__factory.js +0 -1012
- package/dist/typechain-types/factories/FeeHandler__factory.js +0 -203
- package/dist/typechain-types/factories/NonceContractRadar__factory.js +0 -183
- package/dist/typechain-types/factories/NonceContract__factory.js +0 -142
- package/dist/typechain-types/factories/PriceFeed__factory.js +0 -585
- package/dist/typechain-types/factories/RelayerV2.sol/IStargateComposer__factory.js +0 -35
- package/dist/typechain-types/factories/RelayerV2.sol/RelayerV2__factory.js +0 -1048
- package/dist/typechain-types/factories/RelayerV2.sol/index.js +0 -21
- package/dist/typechain-types/factories/RelayerV2Radar__factory.js +0 -853
- package/dist/typechain-types/factories/Relayer__factory.js +0 -642
- package/dist/typechain-types/factories/TreasuryV2Radar__factory.js +0 -362
- package/dist/typechain-types/factories/TreasuryV2__factory.js +0 -385
- package/dist/typechain-types/factories/Treasury__factory.js +0 -362
- package/dist/typechain-types/factories/UltraLightNodeV2AltToken__factory.js +0 -1495
- package/dist/typechain-types/factories/UltraLightNodeV2Radar__factory.js +0 -1599
- package/dist/typechain-types/factories/UltraLightNodeV2__factory.js +0 -1477
- package/dist/typechain-types/factories/UltraLightNode__factory.js +0 -1529
- package/dist/typechain-types/factories/arbitrum/index.js +0 -7
- package/dist/typechain-types/factories/arbitrum/interfaces/ArbSys__factory.js +0 -290
- package/dist/typechain-types/factories/arbitrum/interfaces/index.js +0 -19
- package/dist/typechain-types/factories/example/AltTokenUA__factory.js +0 -186
- package/dist/typechain-types/factories/example/index.js +0 -19
- package/dist/typechain-types/factories/index.js +0 -54
- package/dist/typechain-types/factories/interfaces/IContractOne__factory.js +0 -35
- package/dist/typechain-types/factories/interfaces/ILayerZeroEndpoint__factory.js +0 -458
- package/dist/typechain-types/factories/interfaces/ILayerZeroMessagingLibraryV2__factory.js +0 -195
- package/dist/typechain-types/factories/interfaces/ILayerZeroMessagingLibrary__factory.js +0 -171
- package/dist/typechain-types/factories/interfaces/ILayerZeroOracleV2__factory.js +0 -108
- package/dist/typechain-types/factories/interfaces/ILayerZeroOracle__factory.js +0 -88
- package/dist/typechain-types/factories/interfaces/ILayerZeroPriceFeedV2__factory.js +0 -115
- package/dist/typechain-types/factories/interfaces/ILayerZeroPriceFeed__factory.js +0 -118
- package/dist/typechain-types/factories/interfaces/ILayerZeroReceiver__factory.js +0 -50
- package/dist/typechain-types/factories/interfaces/ILayerZeroRelayerV2PriceData__factory.js +0 -94
- package/dist/typechain-types/factories/interfaces/ILayerZeroRelayerV2__factory.js +0 -118
- package/dist/typechain-types/factories/interfaces/ILayerZeroRelayer__factory.js +0 -103
- package/dist/typechain-types/factories/interfaces/ILayerZeroTreasury__factory.js +0 -51
- package/dist/typechain-types/factories/interfaces/ILayerZeroUltraLightNodeV1__factory.js +0 -167
- package/dist/typechain-types/factories/interfaces/ILayerZeroUltraLightNodeV2__factory.js +0 -593
- package/dist/typechain-types/factories/interfaces/ILayerZeroUserApplicationConfig__factory.js +0 -94
- package/dist/typechain-types/factories/interfaces/ILayerZeroValidationLibrary__factory.js +0 -88
- package/dist/typechain-types/factories/interfaces/IValidationLibraryHelperV2__factory.js +0 -165
- package/dist/typechain-types/factories/interfaces/IValidationLibraryHelper__factory.js +0 -157
- package/dist/typechain-types/factories/interfaces/index.js +0 -55
- package/dist/typechain-types/factories/precrime/PreCrimeBase__factory.js +0 -270
- package/dist/typechain-types/factories/precrime/PreCrimeView__factory.js +0 -329
- package/dist/typechain-types/factories/precrime/PreCrime__factory.js +0 -364
- package/dist/typechain-types/factories/precrime/example/index.js +0 -8
- package/dist/typechain-types/factories/precrime/example/inherit/CounterI__factory.js +0 -677
- package/dist/typechain-types/factories/precrime/example/inherit/CounterPrecrime__factory.js +0 -468
- package/dist/typechain-types/factories/precrime/example/inherit/index.js +0 -21
- package/dist/typechain-types/factories/precrime/example/view/CounterPrecrimeView__factory.js +0 -470
- package/dist/typechain-types/factories/precrime/example/view/CounterV__factory.js +0 -231
- package/dist/typechain-types/factories/precrime/example/view/CounterView__factory.js +0 -219
- package/dist/typechain-types/factories/precrime/example/view/index.js +0 -23
- package/dist/typechain-types/factories/precrime/index.js +0 -25
- package/dist/typechain-types/factories/precrime/interfaces/IPreCrimeBase__factory.js +0 -127
- package/dist/typechain-types/factories/precrime/interfaces/IPreCrimeView__factory.js +0 -173
- package/dist/typechain-types/factories/precrime/interfaces/IPreCrime__factory.js +0 -173
- package/dist/typechain-types/factories/precrime/interfaces/index.js +0 -23
- package/dist/typechain-types/factories/proof/FPValidator__factory.js +0 -380
- package/dist/typechain-types/factories/proof/MPTValidator01__factory.js +0 -393
- package/dist/typechain-types/factories/proof/MPTValidatorStgV3__factory.js +0 -364
- package/dist/typechain-types/factories/proof/MPTValidatorV2__factory.js +0 -266
- package/dist/typechain-types/factories/proof/MPTValidatorV4.sol/IUltraLightNode__factory.js +0 -119
- package/dist/typechain-types/factories/proof/MPTValidatorV4.sol/MPTValidatorV4__factory.js +0 -468
- package/dist/typechain-types/factories/proof/MPTValidatorV4.sol/index.js +0 -21
- package/dist/typechain-types/factories/proof/MPTValidatorV5.sol/IUltraLightNode__factory.js +0 -119
- package/dist/typechain-types/factories/proof/MPTValidatorV5.sol/MPTValidatorV5__factory.js +0 -486
- package/dist/typechain-types/factories/proof/MPTValidatorV5.sol/index.js +0 -21
- package/dist/typechain-types/factories/proof/MPTValidator__factory.js +0 -200
- package/dist/typechain-types/factories/proof/index.js +0 -29
- package/dist/typechain-types/factories/proxy/DefaultProxyAdmin__factory.js +0 -225
- package/dist/typechain-types/factories/proxy/TransparentUpgradeableProxy__factory.js +0 -196
- package/dist/typechain-types/factories/proxy/index.js +0 -21
- package/dist/typechain-types/index.js +0 -134
- package/dist/typechain-types/interfaces/IContractOne.js +0 -2
- package/dist/typechain-types/interfaces/ILayerZeroEndpoint.js +0 -2
- package/dist/typechain-types/interfaces/ILayerZeroMessagingLibrary.js +0 -2
- package/dist/typechain-types/interfaces/ILayerZeroMessagingLibraryV2.js +0 -2
- package/dist/typechain-types/interfaces/ILayerZeroOracle.js +0 -2
- package/dist/typechain-types/interfaces/ILayerZeroOracleV2.js +0 -2
- package/dist/typechain-types/interfaces/ILayerZeroPriceFeed.js +0 -2
- package/dist/typechain-types/interfaces/ILayerZeroPriceFeedV2.js +0 -2
- package/dist/typechain-types/interfaces/ILayerZeroReceiver.js +0 -2
- package/dist/typechain-types/interfaces/ILayerZeroRelayer.js +0 -2
- package/dist/typechain-types/interfaces/ILayerZeroRelayerV2.js +0 -2
- package/dist/typechain-types/interfaces/ILayerZeroRelayerV2PriceData.js +0 -2
- package/dist/typechain-types/interfaces/ILayerZeroTreasury.js +0 -2
- package/dist/typechain-types/interfaces/ILayerZeroUltraLightNodeV1.js +0 -2
- package/dist/typechain-types/interfaces/ILayerZeroUltraLightNodeV2.js +0 -2
- package/dist/typechain-types/interfaces/ILayerZeroUserApplicationConfig.js +0 -2
- package/dist/typechain-types/interfaces/ILayerZeroValidationLibrary.js +0 -2
- package/dist/typechain-types/interfaces/IValidationLibraryHelper.js +0 -2
- package/dist/typechain-types/interfaces/IValidationLibraryHelperV2.js +0 -2
- package/dist/typechain-types/interfaces/index.js +0 -2
- package/dist/typechain-types/precrime/PreCrime.js +0 -2
- package/dist/typechain-types/precrime/PreCrimeBase.js +0 -2
- package/dist/typechain-types/precrime/PreCrimeView.js +0 -2
- package/dist/typechain-types/precrime/example/index.js +0 -2
- package/dist/typechain-types/precrime/example/inherit/CounterI.js +0 -2
- package/dist/typechain-types/precrime/example/inherit/CounterPrecrime.js +0 -2
- package/dist/typechain-types/precrime/example/inherit/index.js +0 -2
- package/dist/typechain-types/precrime/example/view/CounterPrecrimeView.js +0 -2
- package/dist/typechain-types/precrime/example/view/CounterV.js +0 -2
- package/dist/typechain-types/precrime/example/view/CounterView.js +0 -2
- package/dist/typechain-types/precrime/example/view/index.js +0 -2
- package/dist/typechain-types/precrime/index.js +0 -2
- package/dist/typechain-types/precrime/interfaces/IPreCrime.js +0 -2
- package/dist/typechain-types/precrime/interfaces/IPreCrimeBase.js +0 -2
- package/dist/typechain-types/precrime/interfaces/IPreCrimeView.js +0 -2
- package/dist/typechain-types/precrime/interfaces/index.js +0 -2
- package/dist/typechain-types/proof/FPValidator.js +0 -2
- package/dist/typechain-types/proof/MPTValidator.js +0 -2
- package/dist/typechain-types/proof/MPTValidator01.js +0 -2
- package/dist/typechain-types/proof/MPTValidatorStgV3.js +0 -2
- package/dist/typechain-types/proof/MPTValidatorV2.js +0 -2
- package/dist/typechain-types/proof/MPTValidatorV4.sol/IUltraLightNode.js +0 -2
- package/dist/typechain-types/proof/MPTValidatorV4.sol/MPTValidatorV4.js +0 -2
- package/dist/typechain-types/proof/MPTValidatorV4.sol/index.js +0 -2
- package/dist/typechain-types/proof/MPTValidatorV5.sol/IUltraLightNode.js +0 -2
- package/dist/typechain-types/proof/MPTValidatorV5.sol/MPTValidatorV5.js +0 -2
- package/dist/typechain-types/proof/MPTValidatorV5.sol/index.js +0 -2
- package/dist/typechain-types/proof/index.js +0 -2
- package/dist/typechain-types/proxy/DefaultProxyAdmin.js +0 -2
- package/dist/typechain-types/proxy/TransparentUpgradeableProxy.js +0 -2
- package/dist/typechain-types/proxy/index.js +0 -2
|
@@ -1,270 +0,0 @@
|
|
|
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;
|
|
@@ -1,329 +0,0 @@
|
|
|
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;
|