@layerzerolabs/lz-evm-sdk-v1 2.0.2 → 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/chaos-testnet/Endpoint.json +1282 -0
- package/deployments/chaos-testnet/FPValidator.json +382 -0
- package/deployments/chaos-testnet/MPTValidator01.json +395 -0
- package/deployments/chaos-testnet/NonceContract.json +159 -0
- 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
|
@@ -0,0 +1,677 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
exports.__esModule = true;
|
|
18
|
+
exports.CounterI__factory = void 0;
|
|
19
|
+
/* Autogenerated file. Do not edit manually. */
|
|
20
|
+
/* tslint:disable */
|
|
21
|
+
/* eslint-disable */
|
|
22
|
+
var ethers_1 = require("ethers");
|
|
23
|
+
var _abi = [
|
|
24
|
+
{
|
|
25
|
+
inputs: [
|
|
26
|
+
{
|
|
27
|
+
internalType: "uint16",
|
|
28
|
+
name: "_chainId",
|
|
29
|
+
type: "uint16"
|
|
30
|
+
},
|
|
31
|
+
],
|
|
32
|
+
stateMutability: "nonpayable",
|
|
33
|
+
type: "constructor"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
anonymous: false,
|
|
37
|
+
inputs: [
|
|
38
|
+
{
|
|
39
|
+
indexed: false,
|
|
40
|
+
internalType: "uint16",
|
|
41
|
+
name: "srcChainId",
|
|
42
|
+
type: "uint16"
|
|
43
|
+
},
|
|
44
|
+
],
|
|
45
|
+
name: "Receive",
|
|
46
|
+
type: "event"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
anonymous: false,
|
|
50
|
+
inputs: [
|
|
51
|
+
{
|
|
52
|
+
indexed: false,
|
|
53
|
+
internalType: "uint16",
|
|
54
|
+
name: "dstChainId",
|
|
55
|
+
type: "uint16"
|
|
56
|
+
},
|
|
57
|
+
],
|
|
58
|
+
name: "Send",
|
|
59
|
+
type: "event"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
inputs: [],
|
|
63
|
+
name: "CODE_MISS_SIMULATE_RESULT",
|
|
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: "CODE_PACKETS_OVERSIZE",
|
|
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: "CODE_PACKETS_UNSORTED",
|
|
90
|
+
outputs: [
|
|
91
|
+
{
|
|
92
|
+
internalType: "uint16",
|
|
93
|
+
name: "",
|
|
94
|
+
type: "uint16"
|
|
95
|
+
},
|
|
96
|
+
],
|
|
97
|
+
stateMutability: "view",
|
|
98
|
+
type: "function"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
inputs: [],
|
|
102
|
+
name: "CODE_PRECRIME_FAILURE",
|
|
103
|
+
outputs: [
|
|
104
|
+
{
|
|
105
|
+
internalType: "uint16",
|
|
106
|
+
name: "",
|
|
107
|
+
type: "uint16"
|
|
108
|
+
},
|
|
109
|
+
],
|
|
110
|
+
stateMutability: "view",
|
|
111
|
+
type: "function"
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
inputs: [],
|
|
115
|
+
name: "CODE_SUCCESS",
|
|
116
|
+
outputs: [
|
|
117
|
+
{
|
|
118
|
+
internalType: "uint16",
|
|
119
|
+
name: "",
|
|
120
|
+
type: "uint16"
|
|
121
|
+
},
|
|
122
|
+
],
|
|
123
|
+
stateMutability: "view",
|
|
124
|
+
type: "function"
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
inputs: [],
|
|
128
|
+
name: "CONFIG_VERSION",
|
|
129
|
+
outputs: [
|
|
130
|
+
{
|
|
131
|
+
internalType: "uint16",
|
|
132
|
+
name: "",
|
|
133
|
+
type: "uint16"
|
|
134
|
+
},
|
|
135
|
+
],
|
|
136
|
+
stateMutability: "view",
|
|
137
|
+
type: "function"
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
inputs: [],
|
|
141
|
+
name: "PRECRIME_VERSION",
|
|
142
|
+
outputs: [
|
|
143
|
+
{
|
|
144
|
+
internalType: "uint16",
|
|
145
|
+
name: "",
|
|
146
|
+
type: "uint16"
|
|
147
|
+
},
|
|
148
|
+
],
|
|
149
|
+
stateMutability: "view",
|
|
150
|
+
type: "function"
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
inputs: [
|
|
154
|
+
{
|
|
155
|
+
components: [
|
|
156
|
+
{
|
|
157
|
+
internalType: "uint16",
|
|
158
|
+
name: "srcChainId",
|
|
159
|
+
type: "uint16"
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
internalType: "bytes32",
|
|
163
|
+
name: "srcAddress",
|
|
164
|
+
type: "bytes32"
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
internalType: "uint64",
|
|
168
|
+
name: "nonce",
|
|
169
|
+
type: "uint64"
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
internalType: "bytes",
|
|
173
|
+
name: "payload",
|
|
174
|
+
type: "bytes"
|
|
175
|
+
},
|
|
176
|
+
],
|
|
177
|
+
internalType: "struct IPreCrimeBase.Packet[]",
|
|
178
|
+
name: "_packets",
|
|
179
|
+
type: "tuple[]"
|
|
180
|
+
},
|
|
181
|
+
],
|
|
182
|
+
name: "_simulateAndRevert",
|
|
183
|
+
outputs: [],
|
|
184
|
+
stateMutability: "nonpayable",
|
|
185
|
+
type: "function"
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
inputs: [
|
|
189
|
+
{
|
|
190
|
+
internalType: "uint16",
|
|
191
|
+
name: "_dstChainId",
|
|
192
|
+
type: "uint16"
|
|
193
|
+
},
|
|
194
|
+
],
|
|
195
|
+
name: "brokeIncrement",
|
|
196
|
+
outputs: [],
|
|
197
|
+
stateMutability: "nonpayable",
|
|
198
|
+
type: "function"
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
inputs: [],
|
|
202
|
+
name: "brokeTotalCount",
|
|
203
|
+
outputs: [],
|
|
204
|
+
stateMutability: "nonpayable",
|
|
205
|
+
type: "function"
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
inputs: [],
|
|
209
|
+
name: "chainId",
|
|
210
|
+
outputs: [
|
|
211
|
+
{
|
|
212
|
+
internalType: "uint16",
|
|
213
|
+
name: "",
|
|
214
|
+
type: "uint16"
|
|
215
|
+
},
|
|
216
|
+
],
|
|
217
|
+
stateMutability: "view",
|
|
218
|
+
type: "function"
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
inputs: [
|
|
222
|
+
{
|
|
223
|
+
components: [
|
|
224
|
+
{
|
|
225
|
+
internalType: "uint16",
|
|
226
|
+
name: "srcChainId",
|
|
227
|
+
type: "uint16"
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
internalType: "bytes32",
|
|
231
|
+
name: "srcAddress",
|
|
232
|
+
type: "bytes32"
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
internalType: "uint64",
|
|
236
|
+
name: "nonce",
|
|
237
|
+
type: "uint64"
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
internalType: "bytes",
|
|
241
|
+
name: "payload",
|
|
242
|
+
type: "bytes"
|
|
243
|
+
},
|
|
244
|
+
],
|
|
245
|
+
internalType: "struct IPreCrimeBase.Packet[]",
|
|
246
|
+
name: "_packets",
|
|
247
|
+
type: "tuple[]"
|
|
248
|
+
},
|
|
249
|
+
],
|
|
250
|
+
name: "getConfig",
|
|
251
|
+
outputs: [
|
|
252
|
+
{
|
|
253
|
+
internalType: "bytes",
|
|
254
|
+
name: "",
|
|
255
|
+
type: "bytes"
|
|
256
|
+
},
|
|
257
|
+
],
|
|
258
|
+
stateMutability: "view",
|
|
259
|
+
type: "function"
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
inputs: [
|
|
263
|
+
{
|
|
264
|
+
internalType: "uint16[]",
|
|
265
|
+
name: "peers",
|
|
266
|
+
type: "uint16[]"
|
|
267
|
+
},
|
|
268
|
+
],
|
|
269
|
+
name: "getCountState",
|
|
270
|
+
outputs: [
|
|
271
|
+
{
|
|
272
|
+
components: [
|
|
273
|
+
{
|
|
274
|
+
internalType: "uint256",
|
|
275
|
+
name: "totalCount",
|
|
276
|
+
type: "uint256"
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
components: [
|
|
280
|
+
{
|
|
281
|
+
internalType: "uint16",
|
|
282
|
+
name: "eid",
|
|
283
|
+
type: "uint16"
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
internalType: "uint256",
|
|
287
|
+
name: "inboundCount",
|
|
288
|
+
type: "uint256"
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
internalType: "uint256",
|
|
292
|
+
name: "outboundCount",
|
|
293
|
+
type: "uint256"
|
|
294
|
+
},
|
|
295
|
+
],
|
|
296
|
+
internalType: "struct CounterPrecrime.ChainPathCount[]",
|
|
297
|
+
name: "chainPathCounts",
|
|
298
|
+
type: "tuple[]"
|
|
299
|
+
},
|
|
300
|
+
],
|
|
301
|
+
internalType: "struct CounterPrecrime.CountState",
|
|
302
|
+
name: "",
|
|
303
|
+
type: "tuple"
|
|
304
|
+
},
|
|
305
|
+
],
|
|
306
|
+
stateMutability: "view",
|
|
307
|
+
type: "function"
|
|
308
|
+
},
|
|
309
|
+
{
|
|
310
|
+
inputs: [
|
|
311
|
+
{
|
|
312
|
+
internalType: "uint32",
|
|
313
|
+
name: "_chainId",
|
|
314
|
+
type: "uint32"
|
|
315
|
+
},
|
|
316
|
+
],
|
|
317
|
+
name: "getInboundNonce",
|
|
318
|
+
outputs: [
|
|
319
|
+
{
|
|
320
|
+
internalType: "uint256",
|
|
321
|
+
name: "",
|
|
322
|
+
type: "uint256"
|
|
323
|
+
},
|
|
324
|
+
],
|
|
325
|
+
stateMutability: "view",
|
|
326
|
+
type: "function"
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
inputs: [
|
|
330
|
+
{
|
|
331
|
+
internalType: "uint32",
|
|
332
|
+
name: "",
|
|
333
|
+
type: "uint32"
|
|
334
|
+
},
|
|
335
|
+
],
|
|
336
|
+
name: "inboundCount",
|
|
337
|
+
outputs: [
|
|
338
|
+
{
|
|
339
|
+
internalType: "uint256",
|
|
340
|
+
name: "",
|
|
341
|
+
type: "uint256"
|
|
342
|
+
},
|
|
343
|
+
],
|
|
344
|
+
stateMutability: "view",
|
|
345
|
+
type: "function"
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
inputs: [
|
|
349
|
+
{
|
|
350
|
+
internalType: "uint16",
|
|
351
|
+
name: "_dstChainId",
|
|
352
|
+
type: "uint16"
|
|
353
|
+
},
|
|
354
|
+
],
|
|
355
|
+
name: "increment",
|
|
356
|
+
outputs: [],
|
|
357
|
+
stateMutability: "nonpayable",
|
|
358
|
+
type: "function"
|
|
359
|
+
},
|
|
360
|
+
{
|
|
361
|
+
inputs: [],
|
|
362
|
+
name: "localChainId",
|
|
363
|
+
outputs: [
|
|
364
|
+
{
|
|
365
|
+
internalType: "uint16",
|
|
366
|
+
name: "",
|
|
367
|
+
type: "uint16"
|
|
368
|
+
},
|
|
369
|
+
],
|
|
370
|
+
stateMutability: "view",
|
|
371
|
+
type: "function"
|
|
372
|
+
},
|
|
373
|
+
{
|
|
374
|
+
inputs: [
|
|
375
|
+
{
|
|
376
|
+
internalType: "uint16",
|
|
377
|
+
name: "_srcChainId",
|
|
378
|
+
type: "uint16"
|
|
379
|
+
},
|
|
380
|
+
],
|
|
381
|
+
name: "lzReceive",
|
|
382
|
+
outputs: [],
|
|
383
|
+
stateMutability: "nonpayable",
|
|
384
|
+
type: "function"
|
|
385
|
+
},
|
|
386
|
+
{
|
|
387
|
+
inputs: [],
|
|
388
|
+
name: "maxBatchSize",
|
|
389
|
+
outputs: [
|
|
390
|
+
{
|
|
391
|
+
internalType: "uint64",
|
|
392
|
+
name: "",
|
|
393
|
+
type: "uint64"
|
|
394
|
+
},
|
|
395
|
+
],
|
|
396
|
+
stateMutability: "view",
|
|
397
|
+
type: "function"
|
|
398
|
+
},
|
|
399
|
+
{
|
|
400
|
+
inputs: [
|
|
401
|
+
{
|
|
402
|
+
internalType: "uint32",
|
|
403
|
+
name: "",
|
|
404
|
+
type: "uint32"
|
|
405
|
+
},
|
|
406
|
+
],
|
|
407
|
+
name: "outboundCount",
|
|
408
|
+
outputs: [
|
|
409
|
+
{
|
|
410
|
+
internalType: "uint256",
|
|
411
|
+
name: "",
|
|
412
|
+
type: "uint256"
|
|
413
|
+
},
|
|
414
|
+
],
|
|
415
|
+
stateMutability: "view",
|
|
416
|
+
type: "function"
|
|
417
|
+
},
|
|
418
|
+
{
|
|
419
|
+
inputs: [
|
|
420
|
+
{
|
|
421
|
+
components: [
|
|
422
|
+
{
|
|
423
|
+
internalType: "uint16",
|
|
424
|
+
name: "srcChainId",
|
|
425
|
+
type: "uint16"
|
|
426
|
+
},
|
|
427
|
+
{
|
|
428
|
+
internalType: "bytes32",
|
|
429
|
+
name: "srcAddress",
|
|
430
|
+
type: "bytes32"
|
|
431
|
+
},
|
|
432
|
+
{
|
|
433
|
+
internalType: "uint64",
|
|
434
|
+
name: "nonce",
|
|
435
|
+
type: "uint64"
|
|
436
|
+
},
|
|
437
|
+
{
|
|
438
|
+
internalType: "bytes",
|
|
439
|
+
name: "payload",
|
|
440
|
+
type: "bytes"
|
|
441
|
+
},
|
|
442
|
+
],
|
|
443
|
+
internalType: "struct IPreCrimeBase.Packet[]",
|
|
444
|
+
name: "_packets",
|
|
445
|
+
type: "tuple[]"
|
|
446
|
+
},
|
|
447
|
+
{
|
|
448
|
+
internalType: "bytes[]",
|
|
449
|
+
name: "_simulation",
|
|
450
|
+
type: "bytes[]"
|
|
451
|
+
},
|
|
452
|
+
],
|
|
453
|
+
name: "precrime",
|
|
454
|
+
outputs: [
|
|
455
|
+
{
|
|
456
|
+
internalType: "uint16",
|
|
457
|
+
name: "code",
|
|
458
|
+
type: "uint16"
|
|
459
|
+
},
|
|
460
|
+
{
|
|
461
|
+
internalType: "bytes",
|
|
462
|
+
name: "reason",
|
|
463
|
+
type: "bytes"
|
|
464
|
+
},
|
|
465
|
+
],
|
|
466
|
+
stateMutability: "view",
|
|
467
|
+
type: "function"
|
|
468
|
+
},
|
|
469
|
+
{
|
|
470
|
+
inputs: [],
|
|
471
|
+
name: "precrimeAdmin",
|
|
472
|
+
outputs: [
|
|
473
|
+
{
|
|
474
|
+
internalType: "address",
|
|
475
|
+
name: "",
|
|
476
|
+
type: "address"
|
|
477
|
+
},
|
|
478
|
+
],
|
|
479
|
+
stateMutability: "view",
|
|
480
|
+
type: "function"
|
|
481
|
+
},
|
|
482
|
+
{
|
|
483
|
+
inputs: [
|
|
484
|
+
{
|
|
485
|
+
internalType: "uint256",
|
|
486
|
+
name: "",
|
|
487
|
+
type: "uint256"
|
|
488
|
+
},
|
|
489
|
+
],
|
|
490
|
+
name: "remoteChainIds",
|
|
491
|
+
outputs: [
|
|
492
|
+
{
|
|
493
|
+
internalType: "uint16",
|
|
494
|
+
name: "",
|
|
495
|
+
type: "uint16"
|
|
496
|
+
},
|
|
497
|
+
],
|
|
498
|
+
stateMutability: "view",
|
|
499
|
+
type: "function"
|
|
500
|
+
},
|
|
501
|
+
{
|
|
502
|
+
inputs: [
|
|
503
|
+
{
|
|
504
|
+
internalType: "uint256",
|
|
505
|
+
name: "",
|
|
506
|
+
type: "uint256"
|
|
507
|
+
},
|
|
508
|
+
],
|
|
509
|
+
name: "remotePrecrimeAddresses",
|
|
510
|
+
outputs: [
|
|
511
|
+
{
|
|
512
|
+
internalType: "bytes32",
|
|
513
|
+
name: "",
|
|
514
|
+
type: "bytes32"
|
|
515
|
+
},
|
|
516
|
+
],
|
|
517
|
+
stateMutability: "view",
|
|
518
|
+
type: "function"
|
|
519
|
+
},
|
|
520
|
+
{
|
|
521
|
+
inputs: [
|
|
522
|
+
{
|
|
523
|
+
internalType: "uint64",
|
|
524
|
+
name: "_maxBatchSize",
|
|
525
|
+
type: "uint64"
|
|
526
|
+
},
|
|
527
|
+
],
|
|
528
|
+
name: "setMaxBatchSize",
|
|
529
|
+
outputs: [],
|
|
530
|
+
stateMutability: "nonpayable",
|
|
531
|
+
type: "function"
|
|
532
|
+
},
|
|
533
|
+
{
|
|
534
|
+
inputs: [
|
|
535
|
+
{
|
|
536
|
+
internalType: "address",
|
|
537
|
+
name: "_precrimeAdmin",
|
|
538
|
+
type: "address"
|
|
539
|
+
},
|
|
540
|
+
],
|
|
541
|
+
name: "setPrecrimeAdmin",
|
|
542
|
+
outputs: [],
|
|
543
|
+
stateMutability: "nonpayable",
|
|
544
|
+
type: "function"
|
|
545
|
+
},
|
|
546
|
+
{
|
|
547
|
+
inputs: [
|
|
548
|
+
{
|
|
549
|
+
internalType: "uint16[]",
|
|
550
|
+
name: "_remoteChainIds",
|
|
551
|
+
type: "uint16[]"
|
|
552
|
+
},
|
|
553
|
+
{
|
|
554
|
+
internalType: "bytes32[]",
|
|
555
|
+
name: "_remotePrecrimeAddresses",
|
|
556
|
+
type: "bytes32[]"
|
|
557
|
+
},
|
|
558
|
+
],
|
|
559
|
+
name: "setRemotePrecrimeAddresses",
|
|
560
|
+
outputs: [],
|
|
561
|
+
stateMutability: "nonpayable",
|
|
562
|
+
type: "function"
|
|
563
|
+
},
|
|
564
|
+
{
|
|
565
|
+
inputs: [
|
|
566
|
+
{
|
|
567
|
+
components: [
|
|
568
|
+
{
|
|
569
|
+
internalType: "uint16",
|
|
570
|
+
name: "srcChainId",
|
|
571
|
+
type: "uint16"
|
|
572
|
+
},
|
|
573
|
+
{
|
|
574
|
+
internalType: "bytes32",
|
|
575
|
+
name: "srcAddress",
|
|
576
|
+
type: "bytes32"
|
|
577
|
+
},
|
|
578
|
+
{
|
|
579
|
+
internalType: "uint64",
|
|
580
|
+
name: "nonce",
|
|
581
|
+
type: "uint64"
|
|
582
|
+
},
|
|
583
|
+
{
|
|
584
|
+
internalType: "bytes",
|
|
585
|
+
name: "payload",
|
|
586
|
+
type: "bytes"
|
|
587
|
+
},
|
|
588
|
+
],
|
|
589
|
+
internalType: "struct IPreCrimeBase.Packet[]",
|
|
590
|
+
name: "_packets",
|
|
591
|
+
type: "tuple[]"
|
|
592
|
+
},
|
|
593
|
+
],
|
|
594
|
+
name: "simulate",
|
|
595
|
+
outputs: [
|
|
596
|
+
{
|
|
597
|
+
internalType: "uint16",
|
|
598
|
+
name: "code",
|
|
599
|
+
type: "uint16"
|
|
600
|
+
},
|
|
601
|
+
{
|
|
602
|
+
internalType: "bytes",
|
|
603
|
+
name: "data",
|
|
604
|
+
type: "bytes"
|
|
605
|
+
},
|
|
606
|
+
],
|
|
607
|
+
stateMutability: "nonpayable",
|
|
608
|
+
type: "function"
|
|
609
|
+
},
|
|
610
|
+
{
|
|
611
|
+
inputs: [],
|
|
612
|
+
name: "totalCount",
|
|
613
|
+
outputs: [
|
|
614
|
+
{
|
|
615
|
+
internalType: "uint256",
|
|
616
|
+
name: "",
|
|
617
|
+
type: "uint256"
|
|
618
|
+
},
|
|
619
|
+
],
|
|
620
|
+
stateMutability: "view",
|
|
621
|
+
type: "function"
|
|
622
|
+
},
|
|
623
|
+
{
|
|
624
|
+
inputs: [],
|
|
625
|
+
name: "version",
|
|
626
|
+
outputs: [
|
|
627
|
+
{
|
|
628
|
+
internalType: "uint16",
|
|
629
|
+
name: "",
|
|
630
|
+
type: "uint16"
|
|
631
|
+
},
|
|
632
|
+
],
|
|
633
|
+
stateMutability: "pure",
|
|
634
|
+
type: "function"
|
|
635
|
+
},
|
|
636
|
+
];
|
|
637
|
+
var _bytecode = "0x60a06040523480156200001157600080fd5b50604051620028da380380620028da833981016040819052620000349162000092565b60f081901b6001600160f01b03191660805260008054600a600160401b600160e01b0319909116336801000000000000000002176001600160401b0319161790556006805461ffff90921661ffff19909216919091179055620000bd565b600060208284031215620000a4578081fd5b815161ffff81168114620000b6578182fd5b9392505050565b60805160f01c6127e6620000f4600039806105855280610c895280610d295280611183528061167f52806116f752506127e66000f3fe608060405234801561001057600080fd5b50600436106101da5760003560e01c8063622f17f611610104578063bb968368116100a2578063e9dc2d7611610071578063e9dc2d761461038f578063ec67df30146103a2578063f0099e2a146103c3578063f95d1404146103d6576101da565b8063bb96836814610359578063c6be4b9b1461036c578063c892b2fc14610374578063d5795de41461037c576101da565b80639a8a0592116100de5780639a8a05921461030b5780639eb51f5b14610313578063ab2b35ec14610326578063afea44ef14610346576101da565b8063622f17f6146102c557806392d99a7f146102d85780639590dc9d146102eb576101da565b806334e300971161017c5780634e0ab1ab1161014b5780634e0ab1ab1461028f57806354fd4d50146102a257806356a47289146102aa5780635b056da5146102bd576101da565b806334e300971461025f57806334eafb111461026757806337de4ba11461027c578063472641c11461025f576101da565b806317c9efb0116101b857806317c9efb01461021a5780632913daa01461022257806329e7504d146102375780632ce909c61461024a576101da565b80630638fb64146101df5780630e735a63146101fd57806316fb432514610205575b600080fd5b6101e76103de565b6040516101f49190612567565b60405180910390f35b6101e76103e3565b610218610213366004611ee3565b6103e8565b005b6101e7610422565b61022a610427565b6040516101f49190612593565b610218610245366004611ee3565b610437565b61025261048d565b6040516101f4919061228c565b6101e76104b5565b61026f6104ba565b6040516101f491906123e7565b61021861028a366004611bdd565b6104c0565b61026f61029d366004611fd6565b61054a565b6101e761056b565b61026f6102b8366004611fee565b610571565b6101e7610583565b61026f6102d3366004611fee565b6105a7565b6102186102e6366004611ba2565b6105b9565b6102fe6102f9366004611bdd565b610672565b6040516101f491906123f0565b6101e76106ca565b6101e7610321366004611fd6565b6106d4565b610339610334366004611c86565b61070c565b6040516101f4919061252b565b610218610354366004612012565b61080a565b610218610367366004611cc1565b6108a2565b6101e7610966565b61021861096b565b61021861038a366004611ee3565b610976565b61026f61039d366004611fee565b6109c0565b6103b56103b0366004611c1d565b6109d8565b6040516101f4929190612576565b6103b56103d1366004611bdd565b610b2f565b6101e7610cd6565b600281565b600381565b7fcb0b88af7634dddeb013597e4fe3c505cc18eb1ba8a4f866b2116a8e7c03bc3f816040516104179190612567565b60405180910390a150565b600081565b60005467ffffffffffffffff1681565b61ffff81166000908152600460205260409081902080546001908101909155600380549091019055517f1a60eb2fda5707f4f6d9c8ff94ff294beddf56ed57f62a58fecb430cf4e7341690610417908390612567565b60005468010000000000000000900473ffffffffffffffffffffffffffffffffffffffff1681565b600181565b60035481565b3330146104cc57600080fd5b6000806104d98484610cdc565b9150915060007f3ef05302deb6e14f33ae2b21afd103358bb2c6820565d5bae8d19d738bce07d18383604051602001610513929190612576565b60408051601f198184030181529082905261053192916020016120ed565b6040516020818303038152906040529050805160208201fd5b6002818154811061055a57600080fd5b600091825260209091200154905081565b614e2190565b60046020526000908152604090205481565b7f000000000000000000000000000000000000000000000000000000000000000081565b60056020526000908152604090205481565b60005468010000000000000000900473ffffffffffffffffffffffffffffffffffffffff16331461061f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161061690612460565b60405180910390fd5b6000805473ffffffffffffffffffffffffffffffffffffffff90921668010000000000000000027fffffffff0000000000000000000000000000000000000000ffffffffffffffff909216919091179055565b60606000806106818585610e01565b60005482516040519395509193506106b09260019267ffffffffffffffff9092169190869086906020016121cc565b604051602081830303815290604052925050505b92915050565b60065461ffff1681565b600181815481106106e457600080fd5b9060005260206000209060109182820401919006600202915054906101000a900461ffff1681565b61071461189d565b6000825167ffffffffffffffff8111801561072e57600080fd5b5060405190808252806020026020018201604052801561076857816020015b6107556118b7565b81526020019060019003908161074d5790505b50905060005b83518110156107ea57600084828151811061078557fe5b6020908102919091018101516040805160608101825261ffff83168082526000818152600486528381205483870152908152600590945292819020549083015284519092508490849081106107d657fe5b60209081029190910101525060010161076e565b50604080518082019091526003548152602081019190915290505b919050565b60005468010000000000000000900473ffffffffffffffffffffffffffffffffffffffff163314610867576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161061690612460565b600080547fffffffffffffffffffffffffffffffffffffffffffffffff00000000000000001667ffffffffffffffff92909216919091179055565b60005468010000000000000000900473ffffffffffffffffffffffffffffffffffffffff1633146108ff576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161061690612460565b805182511461093a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610616906124f4565b815161094d9060019060208501906118dc565b508051610961906002906020840190611985565b505050565b600481565b600380546001019055565b61ffff81166000908152600560205260409081902080546001019055517fcb0b88af7634dddeb013597e4fe3c505cc18eb1ba8a4f866b2116a8e7c03bc3f90610417908390612567565b63ffffffff1660009081526004602052604090205490565b60006060818367ffffffffffffffff811180156109f457600080fd5b50604051908082528060200260200182016040528015610a2857816020015b6060815260200190600190039081610a135790505b50905060008467ffffffffffffffff81118015610a4457600080fd5b50604051908082528060200260200182016040528015610a6e578160200160208202803683370190505b50905060005b85811015610af357600080888884818110610a8b57fe5b9050602002810190610a9d91906125a8565b810190610aaa9190611eff565b9150915081848481518110610abb57fe5b602002602001019061ffff16908161ffff168152505080858481518110610ade57fe5b60209081029190910101525050600101610a74565b50610aff8888836110a5565b909450925061ffff841615610b15575050610b26565b610b1e82611237565b909450925050505b94509492505050565b60006060610b3d848461130d565b909250905061ffff821615610b5157610ccf565b6000803073ffffffffffffffffffffffffffffffffffffffff166337de4ba160e01b8787604051602401610b869291906122ad565b60408051601f198184030181529181526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000909416939093179092529051610bf19190612135565b6000604051808303816000865af19150503d8060008114610c2e576040519150601f19603f3d011682016040523d82523d6000602084013e610c33565b606091505b50915091508115610c70576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161061690612403565b610c798161149f565b909450925061ffff8416610ccc577f000000000000000000000000000000000000000000000000000000000000000083604051602001610cba929190612576565b60405160208183030381529060405292505b50505b9250929050565b614e2181565b6000606060005b83811015610d1957610d11858583818110610cfa57fe5b9050602002810190610d0c919061260b565b61151f565b600101610ce3565b50600060405180604001604052807f000000000000000000000000000000000000000000000000000000000000000061ffff168152602001610dd26001805480602002602001604051908101604052809291908181526020018280548015610dc857602002820191906000526020600020906000905b82829054906101000a900461ffff1661ffff1681526020019060020190602082600101049283019260010382029150808411610d8f5790505b505050505061070c565b9052604051610de4919060200161253e565b60408051808303601f190181529190526000969095509350505050565b60608082610ee2576001600281805480602002602001604051908101604052809291908181526020018280548015610e8057602002820191906000526020600020906000905b82829054906101000a900461ffff1661ffff1681526020019060020190602082600101049283019260010382029150808411610e475790505b5050505050915080805480602002602001604051908101604052809291908181526020018280548015610ed257602002820191906000526020600020905b815481526020019060010190808311610ebe575b5050505050905091509150610ccf565b6000610ef6610ef185876126a2565b611532565b905061ffff81161561109d578061ffff1667ffffffffffffffff81118015610f1d57600080fd5b50604051908082528060200260200182016040528015610f47578160200160208202803683370190505b50925060008161ffff1667ffffffffffffffff81118015610f6757600080fd5b50604051908082528060200260200182016040528015610f91578160200160208202803683370190505b50925060005b60015461ffff8216101561109a5760005b61ffff811687111561109157600088888361ffff16818110610fc657fe5b9050602002810190610fd8919061260b565b610fe6906020810190611ee3565b90508061ffff1660018461ffff1681548110610ffe57fe5b60009182526020909120601082040154600f9091166002026101000a900461ffff161415611088578087858151811061103357fe5b602002602001019061ffff16908161ffff168152505060028361ffff168154811061105a57fe5b906000526020600020015486858151811061107157fe5b602090810291909101015250600190920191611091565b50600101610fa8565b50600101610f97565b50505b509250929050565b6000606083156111745760006110bb8686610e01565b50905060005b8151811015611171576000805b865181101561111e578383815181106110e357fe5b602002602001015161ffff168782815181106110fb57fe5b602002602001015161ffff161415611116576001915061111e565b6001016110ce565b50806111685760046040518060400160405280602081526020017f6d697373696e672072656d6f74652073696d756c6174696f6e20726573756c748152509450945050505061122f565b506001016110c1565b50505b6000805b84518110156111d5577f000000000000000000000000000000000000000000000000000000000000000061ffff168582815181106111b257fe5b602002602001015161ffff1614156111cd57600191506111d5565b600101611178565b508061121a57505060408051808201909152601f81527f6d697373696e67206c6f63616c2073696d756c6174696f6e20726573756c740060208201526004915061122f565b50506040805160208101909152600080825291505b935093915050565b60006060600080611247856115cf565b915091506000805b836020015160200151518110156112c8576000846020015160200151828151811061127657fe5b6020026020010151905060006112908583600001516116ea565b905061129c82826117e6565b909850965061ffff8816156112b657505050505050611308565b6040015192909201915060010161124f565b506112d7836020015182611852565b909550935061ffff8516156112ee57505050611308565b600060405180602001604052806000815250945094505050505b915091565b6000805460609067ffffffffffffffff1683111561134e57600260405160200161133690612151565b60405160208183030381529060405291509150610ccf565b82156114855760008080805b8681101561148057600088888381811061137057fe5b9050602002810190611382919061260b565b61138b906126f0565b90508461ffff16816000015161ffff161415806113ac575083816020015114155b15611424578051602082015160408301519196509450925060006113cf82611886565b60010190508067ffffffffffffffff168467ffffffffffffffff161461141e5760036040516020016114009061217a565b60405160208183030381529060405297509750505050505050610ccf565b50611477565b8260010192508267ffffffffffffffff16816040015167ffffffffffffffff161461147757600360405160200161145a906121a3565b604051602081830303815290604052965096505050505050610ccf565b5060010161135a565b505050505b505060408051602081019091526000808252909250929050565b60208101516000906060907fffffffff0000000000000000000000000000000000000000000000000000000081167f3ef0530200000000000000000000000000000000000000000000000000000000146114fb57835160208501fd5b600484019350838060200190518101906115159190611f4d565b9250925050915091565b61152f6102456020830183611ee3565b50565b6000805b60015461ffff821610156115c95760005b83518161ffff1610156115c057838161ffff168151811061156457fe5b60200260200101516000015161ffff1660018361ffff168154811061158557fe5b60009182526020909120601082040154600f9091166002026101000a900461ffff1614156115b8576001909201916115c0565b600101611547565b50600101611536565b50919050565b6115d76119c0565b6060825167ffffffffffffffff811180156115f157600080fd5b5060405190808252806020026020018201604052801561162b57816020015b6116186119c0565b8152602001906001900390816116105790505b50905060005b83518110156116e457600084828151811061164857fe5b60200260200101519050808060200190518101906116669190611d7a565b83838151811061167257fe5b60200260200101819052507f000000000000000000000000000000000000000000000000000000000000000061ffff168383815181106116ae57fe5b60200260200101516000015161ffff1614156116db578282815181106116d057fe5b602002602001015193505b50600101611631565b50915091565b6116f26118b7565b61ffff7f00000000000000000000000000000000000000000000000000000000000000001660005b84518110156117b357600085828151811061173157fe5b602002602001015190508461ffff16816000015161ffff1614156117aa5760005b816020015160200151518110156117a8576000826020015160200151828151811061177957fe5b6020026020010151905084816000015161ffff16141561179f5794506106c49350505050565b50600101611752565b505b5060010161171a565b506040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161061690612497565b6000606082604001518460200151111561181e57600160405180606001604052806026815260200161278b6026913991509150610ccf565b82602001518460400151111561148557600160405180606001604052806026815260200161273d6026913991509150610ccf565b600060608284600001511115610ccf5760016040518060600160405280602881526020016127636028913991509150610ccf565b5161ffff1660009081526004602052604090205490565b604051806040016040528060008152602001606081525090565b6040518060600160405280600061ffff16815260200160008152602001600081525090565b82805482825590600052602060002090600f016010900481019282156119755791602002820160005b8382111561194557835183826101000a81548161ffff021916908361ffff1602179055509260200192600201602081600101049283019260010302611905565b80156119735782816101000a81549061ffff0219169055600201602081600101049283019260010302611945565b505b506119819291506119e3565b5090565b828054828255906000526020600020908101928215611975579160200282015b828111156119755782518255916020019190600101906119a5565b6040518060400160405280600061ffff1681526020016119de61189d565b905290565b5b8082111561198157600081556001016119e4565b60008083601f840112611a09578182fd5b50813567ffffffffffffffff811115611a20578182fd5b6020830191508360208083028501011115610ccf57600080fd5b600082601f830112611a4a578081fd5b81356020611a5f611a5a83612662565b61263e565b8281528181019085830183850287018401881015611a7b578586fd5b855b85811015611aa2578135611a908161272c565b84529284019290840190600101611a7d565b5090979650505050505050565b600082601f830112611abf578081fd5b8135611acd611a5a82612680565b818152846020838601011115611ae1578283fd5b816020850160208301379081016020019190915292915050565b600060808284031215611b0c578081fd5b6040516080810167ffffffffffffffff8282108183111715611b2a57fe5b8160405282935084359150611b3e8261272c565b81835260208501356020840152611b5760408601611b8a565b60408401526060850135915080821115611b7057600080fd5b50611b7d85828601611aaf565b6060830152505092915050565b803567ffffffffffffffff8116811461080557600080fd5b600060208284031215611bb3578081fd5b813573ffffffffffffffffffffffffffffffffffffffff81168114611bd6578182fd5b9392505050565b60008060208385031215611bef578081fd5b823567ffffffffffffffff811115611c05578182fd5b611c11858286016119f8565b90969095509350505050565b60008060008060408587031215611c32578182fd5b843567ffffffffffffffff80821115611c49578384fd5b611c55888389016119f8565b90965094506020870135915080821115611c6d578384fd5b50611c7a878288016119f8565b95989497509550505050565b600060208284031215611c97578081fd5b813567ffffffffffffffff811115611cad578182fd5b611cb984828501611a3a565b949350505050565b60008060408385031215611cd3578182fd5b823567ffffffffffffffff80821115611cea578384fd5b611cf686838701611a3a565b9350602091508185013581811115611d0c578384fd5b85019050601f81018613611d1e578283fd5b8035611d2c611a5a82612662565b81815283810190838501858402850186018a1015611d48578687fd5b8694505b83851015611d6a578035835260019490940193918501918501611d4c565b5080955050505050509250929050565b60006020808385031215611d8c578182fd5b825167ffffffffffffffff80821115611da3578384fd5b81850191506040808388031215611db8578485fd5b80518181018181108482111715611dcb57fe5b82528351611dd88161272c565b81528385015183811115611dea578687fd5b808501945050818489031215611dfe578586fd5b81518281018181108582111715611e1157fe5b8352845181528585015184811115611e27578788fd5b80860195505088601f860112611e3b578687fd5b8451611e49611a5a82612662565b8181528781019087890160608085028a018b018e1015611e67578b8cfd5b8b99505b848a1015611ec95780828f031215611e81578b8cfd5b87518181018181108b82111715611e9457fe5b89528251611ea18161272c565b8152828c01518c8201528883015189820152845260019990990198928a019290810190611e6b565b505083890152505094810194909452509195945050505050565b600060208284031215611ef4578081fd5b8135611bd68161272c565b60008060408385031215611f11578182fd5b8235611f1c8161272c565b9150602083013567ffffffffffffffff811115611f37578182fd5b611f4385828601611aaf565b9150509250929050565b60008060408385031215611f5f578182fd5b8251611f6a8161272c565b602084015190925067ffffffffffffffff811115611f86578182fd5b8301601f81018513611f96578182fd5b8051611fa4611a5a82612680565b818152866020838501011115611fb8578384fd5b611fc98260208301602086016126fc565b8093505050509250929050565b600060208284031215611fe7578081fd5b5035919050565b600060208284031215611fff578081fd5b813563ffffffff81168114611bd6578182fd5b600060208284031215612023578081fd5b611bd682611b8a565b60008284528282602086013780602084860101526020601f19601f85011685010190509392505050565b6000815180845261206e8160208601602086016126fc565b601f01601f19169290920160200192915050565b600060408084018351855260208085015183828801528281518085526060945084890191508383019250865b818110156120df578351805161ffff16845285810151868501528701518784015292840192918501916001016120ae565b509098975050505050505050565b60007fffffffff000000000000000000000000000000000000000000000000000000008416825282516121278160048501602087016126fc565b919091016004019392505050565b600082516121478184602087016126fc565b9190910192915050565b7f7061636b6574732073697a6520657863656564206c696d6974656400000000008152601b0190565b7f736b697070656420696e626f756e644e6f6e636520666f7262696464656e00008152601e0190565b7f756e736f72746564207061636b65747300000000000000000000000000000000815260100190565b60007fffff0000000000000000000000000000000000000000000000000000000000008760f01b1682527fffffffffffffffff0000000000000000000000000000000000000000000000008660c01b16600283015284600a830152602a820184516020808701845b8381101561225457815161ffff1685529382019390820190600101612234565b50508551818701939250845b8181101561227c57845184529382019392820192600101612260565b50919a9950505050505050505050565b73ffffffffffffffffffffffffffffffffffffffff91909116815260200190565b602080825281810183905260009060408084018583028501820187855b888110156120df577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc088840301845281357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff818b360301811261232a578788fd5b8a01608081356123398161272c565b61ffff1685528188013588860152612352878301611b8a565b67ffffffffffffffff8082168988015260609150818401357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe1853603018112612399578b8cfd5b84018035828111156123a9578c8dfd5b8036038613156123b7578c8dfd5b84848a01526123cb858a01828e850161202c565b998c0199985050509489019450505060019190910190506122ca565b90815260200190565b600060208252611bd66020830184612056565b60208082526024908201527f73696d756c6174652073686f756c64206e657665722072657475726e2073756360408201527f6365737300000000000000000000000000000000000000000000000000000000606082015260800190565b6020808252600a908201527f6f6e6c792061646d696e00000000000000000000000000000000000000000000604082015260600190565b6020808252603d908201527f5072656372696d653a20636f756e745374617465206e6f7420666f756e642c2060408201527f61726520796f75206d697373696e6720612073696d756c6174696f6e3f000000606082015260800190565b60208082526016908201527f5072656372696d653a20696e76616c69642073697a6500000000000000000000604082015260600190565b600060208252611bd66020830184612082565b60006020825261ffff83511660208301526020830151604080840152611cb96060840182612082565b61ffff91909116815260200190565b600061ffff8416825260406020830152611cb96040830184612056565b67ffffffffffffffff91909116815260200190565b60008083357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe18436030181126125dc578283fd5b83018035915067ffffffffffffffff8211156125f6578283fd5b602001915036819003821315610ccf57600080fd5b600082357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81833603018112612147578182fd5b60405181810167ffffffffffffffff8111828210171561265a57fe5b604052919050565b600067ffffffffffffffff82111561267657fe5b5060209081020190565b600067ffffffffffffffff82111561269457fe5b50601f01601f191660200190565b60006126b0611a5a84612662565b8381526020808201919084845b878110156126e4576126d23683358901611afb565b855293820193908201906001016126bd565b50919695505050505050565b60006106c43683611afb565b60005b838110156127175781810151838201526020016126ff565b83811115612726576000848401525b50505050565b61ffff8116811461152f57600080fdfe5072656372696d653a206f7574626f756e64436f756e74203e20696e626f756e64436f756e745072656372696d653a20746f74616c436f756e74203e2073756d206f7574626f756e64436f756e745072656372696d653a20696e626f756e64436f756e74203e206f7574626f756e64436f756e74a26469706673582212202c9c9ff37abde3d3d5bc2a6c39197678998a4e2a1c314b48fd841c2c50e4d3c064736f6c63430007060033";
|
|
638
|
+
var isSuperArgs = function (xs) { return xs.length > 1; };
|
|
639
|
+
var CounterI__factory = /** @class */ (function (_super) {
|
|
640
|
+
__extends(CounterI__factory, _super);
|
|
641
|
+
function CounterI__factory() {
|
|
642
|
+
var args = [];
|
|
643
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
644
|
+
args[_i] = arguments[_i];
|
|
645
|
+
}
|
|
646
|
+
var _this = this;
|
|
647
|
+
if (isSuperArgs(args)) {
|
|
648
|
+
_this = _super.apply(this, args) || this;
|
|
649
|
+
}
|
|
650
|
+
else {
|
|
651
|
+
_this = _super.call(this, _abi, _bytecode, args[0]) || this;
|
|
652
|
+
}
|
|
653
|
+
return _this;
|
|
654
|
+
}
|
|
655
|
+
CounterI__factory.prototype.deploy = function (_chainId, overrides) {
|
|
656
|
+
return _super.prototype.deploy.call(this, _chainId, overrides || {});
|
|
657
|
+
};
|
|
658
|
+
CounterI__factory.prototype.getDeployTransaction = function (_chainId, overrides) {
|
|
659
|
+
return _super.prototype.getDeployTransaction.call(this, _chainId, overrides || {});
|
|
660
|
+
};
|
|
661
|
+
CounterI__factory.prototype.attach = function (address) {
|
|
662
|
+
return _super.prototype.attach.call(this, address);
|
|
663
|
+
};
|
|
664
|
+
CounterI__factory.prototype.connect = function (signer) {
|
|
665
|
+
return _super.prototype.connect.call(this, signer);
|
|
666
|
+
};
|
|
667
|
+
CounterI__factory.createInterface = function () {
|
|
668
|
+
return new ethers_1.utils.Interface(_abi);
|
|
669
|
+
};
|
|
670
|
+
CounterI__factory.connect = function (address, signerOrProvider) {
|
|
671
|
+
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
|
672
|
+
};
|
|
673
|
+
CounterI__factory.bytecode = _bytecode;
|
|
674
|
+
CounterI__factory.abi = _abi;
|
|
675
|
+
return CounterI__factory;
|
|
676
|
+
}(ethers_1.ContractFactory));
|
|
677
|
+
exports.CounterI__factory = CounterI__factory;
|