@locuschain/lib 0.1.20 → 0.1.22
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/dist/constant/index.amd.js +2 -2
- package/dist/constant/index.cjs.cjs +2 -2
- package/dist/constant/index.d.cts +1 -1
- package/dist/constant/index.d.mts +1 -1
- package/dist/constant/index.esm.js +2 -2
- package/dist/index.amd.js +1 -1
- package/dist/index.cjs.cjs +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/libs/ethers.js-5.5.4-24bytes-addr/ethers.esm.min.d.ts +1307 -0
- package/package.json +1 -1
|
@@ -0,0 +1,1307 @@
|
|
|
1
|
+
export class BaseContract {
|
|
2
|
+
static getContractAddress(transaction: any): string | null;
|
|
3
|
+
static getInterface(contractInterface: any): any;
|
|
4
|
+
static isIndexed(value: any): boolean;
|
|
5
|
+
constructor(addressOrName: any, contractInterface: any, signerOrProvider: any);
|
|
6
|
+
deployed(): any;
|
|
7
|
+
_deployed(blockTag: any): any;
|
|
8
|
+
_deployedPromise: any;
|
|
9
|
+
fallback(overrides: any): any;
|
|
10
|
+
connect(signerOrProvider: any): any;
|
|
11
|
+
attach(addressOrName: any): any;
|
|
12
|
+
_normalizeRunningEvent(runningEvent: any): any;
|
|
13
|
+
_getRunningEvent(eventName: any): any;
|
|
14
|
+
_checkRunningEvents(runningEvent: any): void;
|
|
15
|
+
_wrapEvent(runningEvent: any, log: any, listener: any): any;
|
|
16
|
+
_addEventListener(runningEvent: any, listener: any, once: any): void;
|
|
17
|
+
queryFilter(event: any, fromBlockOrBlockhash: any, toBlock: any): any;
|
|
18
|
+
on(event: any, listener: any): this;
|
|
19
|
+
once(event: any, listener: any): this;
|
|
20
|
+
emit(eventName: any, ...args: any[]): boolean;
|
|
21
|
+
listenerCount(eventName: any): any;
|
|
22
|
+
listeners(eventName: any): any;
|
|
23
|
+
removeAllListeners(eventName: any): this;
|
|
24
|
+
off(eventName: any, listener: any): this;
|
|
25
|
+
removeListener(eventName: any, listener: any): this;
|
|
26
|
+
}
|
|
27
|
+
export class BigNumber {
|
|
28
|
+
static from(value: any): any;
|
|
29
|
+
static isBigNumber(value: any): boolean;
|
|
30
|
+
constructor(constructorGuard: any, hex: any);
|
|
31
|
+
_hex: any;
|
|
32
|
+
_isBigNumber: boolean;
|
|
33
|
+
fromTwos(value: any): any;
|
|
34
|
+
toTwos(value: any): any;
|
|
35
|
+
abs(): any;
|
|
36
|
+
add(other: any): any;
|
|
37
|
+
sub(other: any): any;
|
|
38
|
+
div(other: any): any;
|
|
39
|
+
mul(other: any): any;
|
|
40
|
+
mod(other: any): any;
|
|
41
|
+
pow(other: any): any;
|
|
42
|
+
and(other: any): any;
|
|
43
|
+
or(other: any): any;
|
|
44
|
+
xor(other: any): any;
|
|
45
|
+
mask(value: any): any;
|
|
46
|
+
shl(value: any): any;
|
|
47
|
+
shr(value: any): any;
|
|
48
|
+
eq(other: any): any;
|
|
49
|
+
lt(other: any): any;
|
|
50
|
+
lte(other: any): any;
|
|
51
|
+
gt(other: any): any;
|
|
52
|
+
gte(other: any): any;
|
|
53
|
+
isNegative(): boolean;
|
|
54
|
+
isZero(): any;
|
|
55
|
+
toNumber(): any;
|
|
56
|
+
toBigInt(): bigint | void;
|
|
57
|
+
toString(...args: any[]): any;
|
|
58
|
+
toHexString(): any;
|
|
59
|
+
toJSON(key: any): {
|
|
60
|
+
type: string;
|
|
61
|
+
hex: any;
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
export class Contract extends BaseContract {
|
|
65
|
+
}
|
|
66
|
+
export class ContractFactory {
|
|
67
|
+
static fromSolidity(compilerOutput: any, signer: any): ContractFactory;
|
|
68
|
+
static getInterface(contractInterface: any): any;
|
|
69
|
+
static getContractAddress(tx: any): string | null;
|
|
70
|
+
static getContract(address: any, contractInterface: any, signer: any): Contract;
|
|
71
|
+
constructor(contractInterface: any, bytecode: any, signer: any);
|
|
72
|
+
getDeployTransaction(...args: any[]): {
|
|
73
|
+
data: any;
|
|
74
|
+
};
|
|
75
|
+
deploy(...args: any[]): Promise<any>;
|
|
76
|
+
attach(address: any): any;
|
|
77
|
+
connect(signer: any): any;
|
|
78
|
+
}
|
|
79
|
+
export class FixedNumber {
|
|
80
|
+
static fromValue(value: any, decimals: any, format: any): FixedNumber;
|
|
81
|
+
static fromString(value: any, format: any): FixedNumber;
|
|
82
|
+
static fromBytes(value: any, format: any): FixedNumber;
|
|
83
|
+
static from(value: any, format: any): void | FixedNumber;
|
|
84
|
+
static isFixedNumber(value: any): boolean;
|
|
85
|
+
constructor(constructorGuard: any, hex: any, value: any, format: any);
|
|
86
|
+
format: any;
|
|
87
|
+
_hex: any;
|
|
88
|
+
_value: any;
|
|
89
|
+
_isFixedNumber: boolean;
|
|
90
|
+
_checkFormat(other: any): void;
|
|
91
|
+
addUnsafe(other: any): FixedNumber;
|
|
92
|
+
subUnsafe(other: any): FixedNumber;
|
|
93
|
+
mulUnsafe(other: any): FixedNumber;
|
|
94
|
+
divUnsafe(other: any): FixedNumber;
|
|
95
|
+
floor(): void | FixedNumber;
|
|
96
|
+
ceiling(): void | FixedNumber;
|
|
97
|
+
round(decimals: any): any;
|
|
98
|
+
isZero(): boolean;
|
|
99
|
+
isNegative(): boolean;
|
|
100
|
+
toString(): any;
|
|
101
|
+
toHexString(width: any): any;
|
|
102
|
+
toUnsafeFloat(): number;
|
|
103
|
+
toFormat(format: any): FixedNumber;
|
|
104
|
+
}
|
|
105
|
+
export class Signer {
|
|
106
|
+
static isSigner(value: any): boolean;
|
|
107
|
+
getBalance(blockTag: any): Promise<any>;
|
|
108
|
+
getTransactionCount(blockTag: any): Promise<any>;
|
|
109
|
+
estimateGas(transaction: any): Promise<any>;
|
|
110
|
+
call(transaction: any, blockTag: any): Promise<any>;
|
|
111
|
+
sendTransaction(transaction: any): Promise<any>;
|
|
112
|
+
getChainId(): Promise<any>;
|
|
113
|
+
getGasPrice(): Promise<any>;
|
|
114
|
+
getFeeData(): Promise<any>;
|
|
115
|
+
resolveName(name: any): Promise<any>;
|
|
116
|
+
checkTransaction(transaction: any): {};
|
|
117
|
+
populateTransaction(transaction: any): Promise<{}>;
|
|
118
|
+
_checkProvider(operation: any): void;
|
|
119
|
+
}
|
|
120
|
+
export class VoidSigner extends Signer {
|
|
121
|
+
constructor(address: any, provider: any);
|
|
122
|
+
getAddress(): Promise<any>;
|
|
123
|
+
_fail(message: any, operation: any): Promise<void>;
|
|
124
|
+
signMessage(message: any): Promise<void>;
|
|
125
|
+
signTransaction(transaction: any): Promise<void>;
|
|
126
|
+
_signTypedData(domain: any, types: any, value: any): Promise<void>;
|
|
127
|
+
connect(provider: any): VoidSigner;
|
|
128
|
+
}
|
|
129
|
+
export class Wallet extends Signer {
|
|
130
|
+
static createRandom(options: any): Wallet;
|
|
131
|
+
static fromEncryptedJson(json: any, password: any, progressCallback: any): Promise<Wallet>;
|
|
132
|
+
static fromEncryptedJsonSync(json: any, password: any): Wallet;
|
|
133
|
+
static fromMnemonic(mnemonic: any, path: any, wordlist: any): Wallet;
|
|
134
|
+
constructor(privateKey: any, provider: any);
|
|
135
|
+
get mnemonic(): any;
|
|
136
|
+
get privateKey(): any;
|
|
137
|
+
get publicKey(): any;
|
|
138
|
+
getAddress(): Promise<any>;
|
|
139
|
+
connect(provider: any): Wallet;
|
|
140
|
+
signTransaction(transaction: any): Promise<any>;
|
|
141
|
+
signMessage(message: any): Promise<any>;
|
|
142
|
+
_signTypedData(domain: any, types: any, value: any): Promise<any>;
|
|
143
|
+
encrypt(password: any, options: any, progressCallback: any): any;
|
|
144
|
+
}
|
|
145
|
+
export class Wordlist {
|
|
146
|
+
static check(wordlist: any): string;
|
|
147
|
+
static register(lang: any, name: any): void;
|
|
148
|
+
constructor(locale: any);
|
|
149
|
+
split(mnemonic: any): any;
|
|
150
|
+
join(words: any): any;
|
|
151
|
+
}
|
|
152
|
+
declare var index$1: Readonly<{
|
|
153
|
+
__proto__: null;
|
|
154
|
+
AddressZero: "0x0000000000000000000000000000000000000000";
|
|
155
|
+
NegativeOne: any;
|
|
156
|
+
Zero: any;
|
|
157
|
+
One: any;
|
|
158
|
+
Two: any;
|
|
159
|
+
WeiPerEther: any;
|
|
160
|
+
MaxUint256: any;
|
|
161
|
+
MinInt256: any;
|
|
162
|
+
MaxInt256: any;
|
|
163
|
+
HashZero: "0x0000000000000000000000000000000000000000000000000000000000000000";
|
|
164
|
+
EtherSymbol: "Ξ";
|
|
165
|
+
}>;
|
|
166
|
+
declare var ErrorCode: any;
|
|
167
|
+
export var ethers: Readonly<{
|
|
168
|
+
__proto__: null;
|
|
169
|
+
Signer: typeof Signer;
|
|
170
|
+
Wallet: typeof Wallet;
|
|
171
|
+
VoidSigner: typeof VoidSigner;
|
|
172
|
+
getDefaultProvider: typeof getDefaultProvider;
|
|
173
|
+
providers: Readonly<{
|
|
174
|
+
__proto__: null;
|
|
175
|
+
Provider: typeof Provider;
|
|
176
|
+
BaseProvider: typeof BaseProvider;
|
|
177
|
+
Resolver: typeof Resolver;
|
|
178
|
+
UrlJsonRpcProvider: typeof UrlJsonRpcProvider;
|
|
179
|
+
FallbackProvider: typeof FallbackProvider;
|
|
180
|
+
AlchemyProvider: typeof AlchemyProvider;
|
|
181
|
+
AlchemyWebSocketProvider: typeof AlchemyWebSocketProvider;
|
|
182
|
+
CloudflareProvider: typeof CloudflareProvider;
|
|
183
|
+
EtherscanProvider: typeof EtherscanProvider;
|
|
184
|
+
InfuraProvider: typeof InfuraProvider;
|
|
185
|
+
InfuraWebSocketProvider: typeof InfuraWebSocketProvider;
|
|
186
|
+
JsonRpcProvider: typeof JsonRpcProvider;
|
|
187
|
+
JsonRpcBatchProvider: typeof JsonRpcBatchProvider;
|
|
188
|
+
NodesmithProvider: typeof NodesmithProvider;
|
|
189
|
+
PocketProvider: typeof PocketProvider;
|
|
190
|
+
StaticJsonRpcProvider: typeof StaticJsonRpcProvider;
|
|
191
|
+
Web3Provider: typeof Web3Provider;
|
|
192
|
+
WebSocketProvider: typeof WebSocketProvider;
|
|
193
|
+
IpcProvider: null;
|
|
194
|
+
JsonRpcSigner: typeof JsonRpcSigner;
|
|
195
|
+
getDefaultProvider: typeof getDefaultProvider;
|
|
196
|
+
getNetwork: typeof getNetwork;
|
|
197
|
+
isCommunityResource: typeof isCommunityResource;
|
|
198
|
+
isCommunityResourcable: typeof isCommunityResourcable;
|
|
199
|
+
showThrottleMessage: typeof showThrottleMessage;
|
|
200
|
+
Formatter: typeof Formatter;
|
|
201
|
+
}>;
|
|
202
|
+
BaseContract: typeof BaseContract;
|
|
203
|
+
Contract: typeof Contract;
|
|
204
|
+
ContractFactory: typeof ContractFactory;
|
|
205
|
+
BigNumber: typeof BigNumber;
|
|
206
|
+
FixedNumber: typeof FixedNumber;
|
|
207
|
+
constants: Readonly<{
|
|
208
|
+
__proto__: null;
|
|
209
|
+
AddressZero: "0x0000000000000000000000000000000000000000";
|
|
210
|
+
NegativeOne: any;
|
|
211
|
+
Zero: any;
|
|
212
|
+
One: any;
|
|
213
|
+
Two: any;
|
|
214
|
+
WeiPerEther: any;
|
|
215
|
+
MaxUint256: any;
|
|
216
|
+
MinInt256: any;
|
|
217
|
+
MaxInt256: any;
|
|
218
|
+
HashZero: "0x0000000000000000000000000000000000000000000000000000000000000000";
|
|
219
|
+
EtherSymbol: "Ξ";
|
|
220
|
+
}>;
|
|
221
|
+
readonly errors: any;
|
|
222
|
+
logger: Logger;
|
|
223
|
+
utils: Readonly<{
|
|
224
|
+
__proto__: null;
|
|
225
|
+
AbiCoder: typeof AbiCoder;
|
|
226
|
+
defaultAbiCoder: AbiCoder;
|
|
227
|
+
Fragment: typeof Fragment;
|
|
228
|
+
ConstructorFragment: typeof ConstructorFragment;
|
|
229
|
+
ErrorFragment: typeof ErrorFragment;
|
|
230
|
+
EventFragment: typeof EventFragment;
|
|
231
|
+
FunctionFragment: typeof FunctionFragment;
|
|
232
|
+
ParamType: typeof ParamType;
|
|
233
|
+
FormatTypes: Readonly<{
|
|
234
|
+
sighash: "sighash";
|
|
235
|
+
minimal: "minimal";
|
|
236
|
+
full: "full";
|
|
237
|
+
json: "json";
|
|
238
|
+
}>;
|
|
239
|
+
checkResultErrors: typeof checkResultErrors;
|
|
240
|
+
Logger: typeof Logger;
|
|
241
|
+
RLP: Readonly<{
|
|
242
|
+
__proto__: null;
|
|
243
|
+
encode: typeof encode;
|
|
244
|
+
decode: typeof decode;
|
|
245
|
+
}>;
|
|
246
|
+
_fetchData: typeof _fetchData;
|
|
247
|
+
fetchJson: typeof fetchJson;
|
|
248
|
+
poll: typeof poll;
|
|
249
|
+
checkProperties: typeof checkProperties;
|
|
250
|
+
deepCopy: typeof deepCopy;
|
|
251
|
+
defineReadOnly: typeof defineReadOnly;
|
|
252
|
+
getStatic: typeof getStatic;
|
|
253
|
+
resolveProperties: typeof resolveProperties;
|
|
254
|
+
shallowCopy: typeof shallowCopy;
|
|
255
|
+
arrayify: typeof arrayify;
|
|
256
|
+
concat: typeof concat;
|
|
257
|
+
stripZeros: typeof stripZeros;
|
|
258
|
+
zeroPad: typeof zeroPad;
|
|
259
|
+
isBytes: typeof isBytes;
|
|
260
|
+
isBytesLike: typeof isBytesLike;
|
|
261
|
+
defaultPath: "m/44'/60'/0'/0/0";
|
|
262
|
+
HDNode: typeof HDNode;
|
|
263
|
+
SigningKey: typeof SigningKey;
|
|
264
|
+
Interface: typeof Interface;
|
|
265
|
+
LogDescription: typeof LogDescription;
|
|
266
|
+
TransactionDescription: typeof TransactionDescription;
|
|
267
|
+
base58: BaseX;
|
|
268
|
+
base64: Readonly<{
|
|
269
|
+
__proto__: null;
|
|
270
|
+
decode: typeof decode$1;
|
|
271
|
+
encode: typeof encode$1;
|
|
272
|
+
}>;
|
|
273
|
+
hexlify: typeof hexlify;
|
|
274
|
+
isHexString: typeof isHexString;
|
|
275
|
+
hexConcat: typeof hexConcat;
|
|
276
|
+
hexStripZeros: typeof hexStripZeros;
|
|
277
|
+
hexValue: typeof hexValue;
|
|
278
|
+
hexZeroPad: typeof hexZeroPad;
|
|
279
|
+
hexDataLength: typeof hexDataLength;
|
|
280
|
+
hexDataSlice: typeof hexDataSlice;
|
|
281
|
+
nameprep: typeof nameprep;
|
|
282
|
+
_toEscapedUtf8String: typeof _toEscapedUtf8String;
|
|
283
|
+
toUtf8Bytes: typeof toUtf8Bytes;
|
|
284
|
+
toUtf8CodePoints: typeof toUtf8CodePoints;
|
|
285
|
+
toUtf8String: typeof toUtf8String;
|
|
286
|
+
Utf8ErrorFuncs: Readonly<{
|
|
287
|
+
error: typeof errorFunc;
|
|
288
|
+
ignore: typeof ignoreFunc;
|
|
289
|
+
replace: typeof replaceFunc;
|
|
290
|
+
}>;
|
|
291
|
+
formatBytes32String: typeof formatBytes32String;
|
|
292
|
+
parseBytes32String: typeof parseBytes32String;
|
|
293
|
+
hashMessage: typeof hashMessage;
|
|
294
|
+
namehash: typeof namehash;
|
|
295
|
+
isValidName: typeof isValidName;
|
|
296
|
+
id: typeof id;
|
|
297
|
+
_TypedDataEncoder: typeof TypedDataEncoder;
|
|
298
|
+
getAddress: typeof getAddress;
|
|
299
|
+
getIcapAddress: typeof getIcapAddress;
|
|
300
|
+
getContractAddress: typeof getContractAddress;
|
|
301
|
+
getCreate2Address: typeof getCreate2Address;
|
|
302
|
+
isAddress: typeof isAddress;
|
|
303
|
+
formatEther: typeof formatEther;
|
|
304
|
+
parseEther: typeof parseEther;
|
|
305
|
+
formatUnits: typeof formatUnits;
|
|
306
|
+
parseUnits: typeof parseUnits;
|
|
307
|
+
commify: typeof commify;
|
|
308
|
+
computeHmac: typeof computeHmac;
|
|
309
|
+
keccak256: typeof keccak256;
|
|
310
|
+
ripemd160: typeof ripemd160$1;
|
|
311
|
+
sha256: typeof sha256$1;
|
|
312
|
+
sha512: typeof sha512$1;
|
|
313
|
+
randomBytes: typeof randomBytes;
|
|
314
|
+
shuffled: typeof shuffled;
|
|
315
|
+
solidityPack: typeof pack$1;
|
|
316
|
+
solidityKeccak256: typeof keccak256$1;
|
|
317
|
+
soliditySha256: typeof sha256$2;
|
|
318
|
+
splitSignature: typeof splitSignature;
|
|
319
|
+
joinSignature: typeof joinSignature;
|
|
320
|
+
accessListify: typeof accessListify;
|
|
321
|
+
parseTransaction: typeof parse;
|
|
322
|
+
serializeTransaction: typeof serialize;
|
|
323
|
+
readonly TransactionTypes: any;
|
|
324
|
+
getJsonWalletAddress: typeof getJsonWalletAddress;
|
|
325
|
+
computeAddress: typeof computeAddress;
|
|
326
|
+
recoverAddress: typeof recoverAddress;
|
|
327
|
+
computePublicKey: typeof computePublicKey;
|
|
328
|
+
recoverPublicKey: typeof recoverPublicKey;
|
|
329
|
+
verifyMessage: typeof verifyMessage;
|
|
330
|
+
verifyTypedData: typeof verifyTypedData;
|
|
331
|
+
getAccountPath: typeof getAccountPath;
|
|
332
|
+
mnemonicToEntropy: typeof mnemonicToEntropy;
|
|
333
|
+
entropyToMnemonic: typeof entropyToMnemonic;
|
|
334
|
+
isValidMnemonic: typeof isValidMnemonic;
|
|
335
|
+
mnemonicToSeed: typeof mnemonicToSeed;
|
|
336
|
+
readonly SupportedAlgorithm: any;
|
|
337
|
+
readonly UnicodeNormalizationForm: any;
|
|
338
|
+
readonly Utf8ErrorReason: any;
|
|
339
|
+
Indexed: typeof Indexed;
|
|
340
|
+
}>;
|
|
341
|
+
wordlists: {
|
|
342
|
+
en: LangEn;
|
|
343
|
+
};
|
|
344
|
+
version: "ethers/5.5.4";
|
|
345
|
+
Wordlist: typeof Wordlist;
|
|
346
|
+
}>;
|
|
347
|
+
export function getDefaultProvider(network: any, options: any): any;
|
|
348
|
+
declare const logger$I: Logger;
|
|
349
|
+
declare var index$3: Readonly<{
|
|
350
|
+
__proto__: null;
|
|
351
|
+
Provider: typeof Provider;
|
|
352
|
+
BaseProvider: typeof BaseProvider;
|
|
353
|
+
Resolver: typeof Resolver;
|
|
354
|
+
UrlJsonRpcProvider: typeof UrlJsonRpcProvider;
|
|
355
|
+
FallbackProvider: typeof FallbackProvider;
|
|
356
|
+
AlchemyProvider: typeof AlchemyProvider;
|
|
357
|
+
AlchemyWebSocketProvider: typeof AlchemyWebSocketProvider;
|
|
358
|
+
CloudflareProvider: typeof CloudflareProvider;
|
|
359
|
+
EtherscanProvider: typeof EtherscanProvider;
|
|
360
|
+
InfuraProvider: typeof InfuraProvider;
|
|
361
|
+
InfuraWebSocketProvider: typeof InfuraWebSocketProvider;
|
|
362
|
+
JsonRpcProvider: typeof JsonRpcProvider;
|
|
363
|
+
JsonRpcBatchProvider: typeof JsonRpcBatchProvider;
|
|
364
|
+
NodesmithProvider: typeof NodesmithProvider;
|
|
365
|
+
PocketProvider: typeof PocketProvider;
|
|
366
|
+
StaticJsonRpcProvider: typeof StaticJsonRpcProvider;
|
|
367
|
+
Web3Provider: typeof Web3Provider;
|
|
368
|
+
WebSocketProvider: typeof WebSocketProvider;
|
|
369
|
+
IpcProvider: null;
|
|
370
|
+
JsonRpcSigner: typeof JsonRpcSigner;
|
|
371
|
+
getDefaultProvider: typeof getDefaultProvider;
|
|
372
|
+
getNetwork: typeof getNetwork;
|
|
373
|
+
isCommunityResource: typeof isCommunityResource;
|
|
374
|
+
isCommunityResourcable: typeof isCommunityResourcable;
|
|
375
|
+
showThrottleMessage: typeof showThrottleMessage;
|
|
376
|
+
Formatter: typeof Formatter;
|
|
377
|
+
}>;
|
|
378
|
+
declare var utils$1: Readonly<{
|
|
379
|
+
__proto__: null;
|
|
380
|
+
AbiCoder: typeof AbiCoder;
|
|
381
|
+
defaultAbiCoder: AbiCoder;
|
|
382
|
+
Fragment: typeof Fragment;
|
|
383
|
+
ConstructorFragment: typeof ConstructorFragment;
|
|
384
|
+
ErrorFragment: typeof ErrorFragment;
|
|
385
|
+
EventFragment: typeof EventFragment;
|
|
386
|
+
FunctionFragment: typeof FunctionFragment;
|
|
387
|
+
ParamType: typeof ParamType;
|
|
388
|
+
FormatTypes: Readonly<{
|
|
389
|
+
sighash: "sighash";
|
|
390
|
+
minimal: "minimal";
|
|
391
|
+
full: "full";
|
|
392
|
+
json: "json";
|
|
393
|
+
}>;
|
|
394
|
+
checkResultErrors: typeof checkResultErrors;
|
|
395
|
+
Logger: typeof Logger;
|
|
396
|
+
RLP: Readonly<{
|
|
397
|
+
__proto__: null;
|
|
398
|
+
encode: typeof encode;
|
|
399
|
+
decode: typeof decode;
|
|
400
|
+
}>;
|
|
401
|
+
_fetchData: typeof _fetchData;
|
|
402
|
+
fetchJson: typeof fetchJson;
|
|
403
|
+
poll: typeof poll;
|
|
404
|
+
checkProperties: typeof checkProperties;
|
|
405
|
+
deepCopy: typeof deepCopy;
|
|
406
|
+
defineReadOnly: typeof defineReadOnly;
|
|
407
|
+
getStatic: typeof getStatic;
|
|
408
|
+
resolveProperties: typeof resolveProperties;
|
|
409
|
+
shallowCopy: typeof shallowCopy;
|
|
410
|
+
arrayify: typeof arrayify;
|
|
411
|
+
concat: typeof concat;
|
|
412
|
+
stripZeros: typeof stripZeros;
|
|
413
|
+
zeroPad: typeof zeroPad;
|
|
414
|
+
isBytes: typeof isBytes;
|
|
415
|
+
isBytesLike: typeof isBytesLike;
|
|
416
|
+
defaultPath: "m/44'/60'/0'/0/0";
|
|
417
|
+
HDNode: typeof HDNode;
|
|
418
|
+
SigningKey: typeof SigningKey;
|
|
419
|
+
Interface: typeof Interface;
|
|
420
|
+
LogDescription: typeof LogDescription;
|
|
421
|
+
TransactionDescription: typeof TransactionDescription;
|
|
422
|
+
base58: BaseX;
|
|
423
|
+
base64: Readonly<{
|
|
424
|
+
__proto__: null;
|
|
425
|
+
decode: typeof decode$1;
|
|
426
|
+
encode: typeof encode$1;
|
|
427
|
+
}>;
|
|
428
|
+
hexlify: typeof hexlify;
|
|
429
|
+
isHexString: typeof isHexString;
|
|
430
|
+
hexConcat: typeof hexConcat;
|
|
431
|
+
hexStripZeros: typeof hexStripZeros;
|
|
432
|
+
hexValue: typeof hexValue;
|
|
433
|
+
hexZeroPad: typeof hexZeroPad;
|
|
434
|
+
hexDataLength: typeof hexDataLength;
|
|
435
|
+
hexDataSlice: typeof hexDataSlice;
|
|
436
|
+
nameprep: typeof nameprep;
|
|
437
|
+
_toEscapedUtf8String: typeof _toEscapedUtf8String;
|
|
438
|
+
toUtf8Bytes: typeof toUtf8Bytes;
|
|
439
|
+
toUtf8CodePoints: typeof toUtf8CodePoints;
|
|
440
|
+
toUtf8String: typeof toUtf8String;
|
|
441
|
+
Utf8ErrorFuncs: Readonly<{
|
|
442
|
+
error: typeof errorFunc;
|
|
443
|
+
ignore: typeof ignoreFunc;
|
|
444
|
+
replace: typeof replaceFunc;
|
|
445
|
+
}>;
|
|
446
|
+
formatBytes32String: typeof formatBytes32String;
|
|
447
|
+
parseBytes32String: typeof parseBytes32String;
|
|
448
|
+
hashMessage: typeof hashMessage;
|
|
449
|
+
namehash: typeof namehash;
|
|
450
|
+
isValidName: typeof isValidName;
|
|
451
|
+
id: typeof id;
|
|
452
|
+
_TypedDataEncoder: typeof TypedDataEncoder;
|
|
453
|
+
getAddress: typeof getAddress;
|
|
454
|
+
getIcapAddress: typeof getIcapAddress;
|
|
455
|
+
getContractAddress: typeof getContractAddress;
|
|
456
|
+
getCreate2Address: typeof getCreate2Address;
|
|
457
|
+
isAddress: typeof isAddress;
|
|
458
|
+
formatEther: typeof formatEther;
|
|
459
|
+
parseEther: typeof parseEther;
|
|
460
|
+
formatUnits: typeof formatUnits;
|
|
461
|
+
parseUnits: typeof parseUnits;
|
|
462
|
+
commify: typeof commify;
|
|
463
|
+
computeHmac: typeof computeHmac;
|
|
464
|
+
keccak256: typeof keccak256;
|
|
465
|
+
ripemd160: typeof ripemd160$1;
|
|
466
|
+
sha256: typeof sha256$1;
|
|
467
|
+
sha512: typeof sha512$1;
|
|
468
|
+
randomBytes: typeof randomBytes;
|
|
469
|
+
shuffled: typeof shuffled;
|
|
470
|
+
solidityPack: typeof pack$1;
|
|
471
|
+
solidityKeccak256: typeof keccak256$1;
|
|
472
|
+
soliditySha256: typeof sha256$2;
|
|
473
|
+
splitSignature: typeof splitSignature;
|
|
474
|
+
joinSignature: typeof joinSignature;
|
|
475
|
+
accessListify: typeof accessListify;
|
|
476
|
+
parseTransaction: typeof parse;
|
|
477
|
+
serializeTransaction: typeof serialize;
|
|
478
|
+
readonly TransactionTypes: any;
|
|
479
|
+
getJsonWalletAddress: typeof getJsonWalletAddress;
|
|
480
|
+
computeAddress: typeof computeAddress;
|
|
481
|
+
recoverAddress: typeof recoverAddress;
|
|
482
|
+
computePublicKey: typeof computePublicKey;
|
|
483
|
+
recoverPublicKey: typeof recoverPublicKey;
|
|
484
|
+
verifyMessage: typeof verifyMessage;
|
|
485
|
+
verifyTypedData: typeof verifyTypedData;
|
|
486
|
+
getAccountPath: typeof getAccountPath;
|
|
487
|
+
mnemonicToEntropy: typeof mnemonicToEntropy;
|
|
488
|
+
entropyToMnemonic: typeof entropyToMnemonic;
|
|
489
|
+
isValidMnemonic: typeof isValidMnemonic;
|
|
490
|
+
mnemonicToSeed: typeof mnemonicToSeed;
|
|
491
|
+
readonly SupportedAlgorithm: any;
|
|
492
|
+
readonly UnicodeNormalizationForm: any;
|
|
493
|
+
readonly Utf8ErrorReason: any;
|
|
494
|
+
Indexed: typeof Indexed;
|
|
495
|
+
}>;
|
|
496
|
+
declare const version$p: "ethers/5.5.4";
|
|
497
|
+
export namespace wordlists {
|
|
498
|
+
export { langEn as en };
|
|
499
|
+
}
|
|
500
|
+
declare class Provider {
|
|
501
|
+
static isProvider(value: any): boolean;
|
|
502
|
+
getFeeData(): Promise<{
|
|
503
|
+
maxFeePerGas: any;
|
|
504
|
+
maxPriorityFeePerGas: any;
|
|
505
|
+
gasPrice: any;
|
|
506
|
+
}>;
|
|
507
|
+
addListener(eventName: any, listener: any): any;
|
|
508
|
+
removeListener(eventName: any, listener: any): any;
|
|
509
|
+
}
|
|
510
|
+
declare class BaseProvider extends Provider {
|
|
511
|
+
static getFormatter(): any;
|
|
512
|
+
static getNetwork(network: any): any;
|
|
513
|
+
constructor(network: any);
|
|
514
|
+
_events: any[];
|
|
515
|
+
_emitted: {
|
|
516
|
+
block: number;
|
|
517
|
+
};
|
|
518
|
+
formatter: any;
|
|
519
|
+
_networkPromise: Promise<any> | undefined;
|
|
520
|
+
_maxInternalBlockNumber: number;
|
|
521
|
+
_lastBlockNumber: number;
|
|
522
|
+
_pollingInterval: number;
|
|
523
|
+
_fastQueryDate: number;
|
|
524
|
+
_ready(): Promise<any>;
|
|
525
|
+
_network: any;
|
|
526
|
+
get ready(): Promise<any>;
|
|
527
|
+
_getInternalBlockNumber(maxAge: any): Promise<any>;
|
|
528
|
+
_internalBlockNumber: Promise<{
|
|
529
|
+
blockNumber: any;
|
|
530
|
+
reqTime: number;
|
|
531
|
+
respTime: number;
|
|
532
|
+
}> | null | undefined;
|
|
533
|
+
poll(): Promise<void>;
|
|
534
|
+
resetEventsBlock(blockNumber: any): void;
|
|
535
|
+
get network(): any;
|
|
536
|
+
detectNetwork(): Promise<void>;
|
|
537
|
+
getNetwork(): Promise<any>;
|
|
538
|
+
_fastBlockNumber: any;
|
|
539
|
+
_fastBlockNumberPromise: Promise<any> | Promise<any> | null | undefined;
|
|
540
|
+
get blockNumber(): any;
|
|
541
|
+
set polling(value: boolean);
|
|
542
|
+
get polling(): boolean;
|
|
543
|
+
_poller: number | null | undefined;
|
|
544
|
+
_bootstrapPoll: any;
|
|
545
|
+
set pollingInterval(value: number);
|
|
546
|
+
get pollingInterval(): number;
|
|
547
|
+
_getFastBlockNumber(): Promise<any> | Promise<any> | null | undefined;
|
|
548
|
+
_setFastBlockNumber(blockNumber: any): void;
|
|
549
|
+
waitForTransaction(transactionHash: any, confirmations: any, timeout: any): Promise<any>;
|
|
550
|
+
_waitForTransaction(transactionHash: any, confirmations: any, timeout: any, replaceable: any): Promise<any>;
|
|
551
|
+
getBlockNumber(): Promise<any>;
|
|
552
|
+
getGasPrice(): Promise<any>;
|
|
553
|
+
getBalance(addressOrName: any, blockTag: any): Promise<any>;
|
|
554
|
+
getTransactionCount(addressOrName: any, blockTag: any): Promise<any>;
|
|
555
|
+
getCode(addressOrName: any, blockTag: any): Promise<any>;
|
|
556
|
+
getStorageAt(addressOrName: any, position: any, blockTag: any): Promise<any>;
|
|
557
|
+
_wrapTransaction(tx: any, hash: any, startBlock: any): any;
|
|
558
|
+
sendTransaction(signedTransaction: any): Promise<any>;
|
|
559
|
+
_getTransactionRequest(transaction: any): Promise<any>;
|
|
560
|
+
_getFilter(filter: any): Promise<any>;
|
|
561
|
+
call(transaction: any, blockTag: any): Promise<any>;
|
|
562
|
+
estimateGas(transaction: any): Promise<any>;
|
|
563
|
+
_getAddress(addressOrName: any): Promise<any>;
|
|
564
|
+
_getBlock(blockHashOrBlockTag: any, includeTransactions: any): Promise<any>;
|
|
565
|
+
getBlock(blockHashOrBlockTag: any): Promise<any>;
|
|
566
|
+
getBlockWithTransactions(blockHashOrBlockTag: any): Promise<any>;
|
|
567
|
+
getTransaction(transactionHash: any): Promise<any>;
|
|
568
|
+
getTransactionReceipt(transactionHash: any): Promise<any>;
|
|
569
|
+
getLogs(filter: any): Promise<any[]>;
|
|
570
|
+
getEtherPrice(): Promise<void>;
|
|
571
|
+
_getBlockTag(blockTag: any): Promise<any>;
|
|
572
|
+
getResolver(name: any): Promise<Resolver | null>;
|
|
573
|
+
_getResolver(name: any): Promise<any>;
|
|
574
|
+
resolveName(name: any): Promise<any>;
|
|
575
|
+
lookupAddress(address: any): Promise<any>;
|
|
576
|
+
getAvatar(nameOrAddress: any): Promise<any>;
|
|
577
|
+
perform(method: any, params: any): void;
|
|
578
|
+
_startEvent(event: any): void;
|
|
579
|
+
_stopEvent(event: any): void;
|
|
580
|
+
_addEventListener(eventName: any, listener: any, once: any): this;
|
|
581
|
+
on(eventName: any, listener: any): this;
|
|
582
|
+
once(eventName: any, listener: any): this;
|
|
583
|
+
emit(eventName: any, ...args: any[]): boolean;
|
|
584
|
+
listenerCount(eventName: any): number;
|
|
585
|
+
listeners(eventName: any): any[];
|
|
586
|
+
off(eventName: any, listener: any): this;
|
|
587
|
+
removeAllListeners(eventName: any): this;
|
|
588
|
+
}
|
|
589
|
+
declare class Resolver {
|
|
590
|
+
constructor(provider: any, address: any, name: any, resolvedAddress: any);
|
|
591
|
+
_fetchBytes(selector: any, parameters: any): Promise<string | null>;
|
|
592
|
+
_getAddress(coinType: any, hexBytes: any): any;
|
|
593
|
+
getAddress(coinType: any): Promise<any>;
|
|
594
|
+
getAvatar(): Promise<{
|
|
595
|
+
linkage: {
|
|
596
|
+
type: string;
|
|
597
|
+
content: any;
|
|
598
|
+
}[];
|
|
599
|
+
url: any;
|
|
600
|
+
} | null>;
|
|
601
|
+
getContentHash(): Promise<string | void | null>;
|
|
602
|
+
getText(key: any): Promise<any>;
|
|
603
|
+
}
|
|
604
|
+
declare class UrlJsonRpcProvider extends StaticJsonRpcProvider {
|
|
605
|
+
static getApiKey(apiKey: any): any;
|
|
606
|
+
static getUrl(network: any, apiKey: any): void;
|
|
607
|
+
isCommunityResource(): boolean;
|
|
608
|
+
getSigner(address: any): void;
|
|
609
|
+
listAccounts(): Promise<never[]>;
|
|
610
|
+
}
|
|
611
|
+
declare class FallbackProvider extends BaseProvider {
|
|
612
|
+
constructor(providers: any, quorum: any);
|
|
613
|
+
_highestBlockNumber: number;
|
|
614
|
+
detectNetwork(): Promise<any>;
|
|
615
|
+
perform(method: any, params: any): Promise<any>;
|
|
616
|
+
}
|
|
617
|
+
declare class AlchemyProvider extends UrlJsonRpcProvider {
|
|
618
|
+
static getWebSocketProvider(network: any, apiKey: any): AlchemyWebSocketProvider;
|
|
619
|
+
static getUrl(network: any, apiKey: any, ...args: any[]): {
|
|
620
|
+
allowGzip: boolean;
|
|
621
|
+
url: string;
|
|
622
|
+
throttleCallback: (attempt: any, url: any) => Promise<boolean>;
|
|
623
|
+
};
|
|
624
|
+
}
|
|
625
|
+
declare class AlchemyWebSocketProvider extends WebSocketProvider {
|
|
626
|
+
isCommunityResource(): boolean;
|
|
627
|
+
}
|
|
628
|
+
declare class CloudflareProvider extends UrlJsonRpcProvider {
|
|
629
|
+
static getApiKey(apiKey: any): null;
|
|
630
|
+
static getUrl(network: any, apiKey: any, ...args: any[]): string | null;
|
|
631
|
+
}
|
|
632
|
+
declare class EtherscanProvider extends BaseProvider {
|
|
633
|
+
constructor(network: any, apiKey: any);
|
|
634
|
+
getBaseUrl(): void | "https://api.etherscan.io" | "https://api-ropsten.etherscan.io" | "https://api-rinkeby.etherscan.io" | "https://api-kovan.etherscan.io" | "https://api-goerli.etherscan.io";
|
|
635
|
+
getUrl(module: any, params: any): string;
|
|
636
|
+
getPostUrl(): string;
|
|
637
|
+
getPostData(module: any, params: any): any;
|
|
638
|
+
fetch(module: any, params: any, post: any): Promise<any>;
|
|
639
|
+
detectNetwork(): Promise<any>;
|
|
640
|
+
perform(method: any, params: any): Promise<any>;
|
|
641
|
+
getHistory(addressOrName: any, startBlock: any, endBlock: any): Promise<any>;
|
|
642
|
+
isCommunityResource(): boolean;
|
|
643
|
+
}
|
|
644
|
+
declare class InfuraProvider extends UrlJsonRpcProvider {
|
|
645
|
+
static getWebSocketProvider(network: any, apiKey: any): InfuraWebSocketProvider;
|
|
646
|
+
static getApiKey(apiKey: any): {
|
|
647
|
+
apiKey: string;
|
|
648
|
+
projectId: string;
|
|
649
|
+
projectSecret: null;
|
|
650
|
+
};
|
|
651
|
+
static getUrl(network: any, apiKey: any): {
|
|
652
|
+
allowGzip: boolean;
|
|
653
|
+
url: string;
|
|
654
|
+
throttleCallback: (attempt: any, url: any) => Promise<boolean>;
|
|
655
|
+
};
|
|
656
|
+
}
|
|
657
|
+
declare class InfuraWebSocketProvider extends WebSocketProvider {
|
|
658
|
+
isCommunityResource(): boolean;
|
|
659
|
+
}
|
|
660
|
+
declare class JsonRpcProvider extends BaseProvider {
|
|
661
|
+
static defaultUrl(): string;
|
|
662
|
+
static hexlifyTransaction(transaction: any, allowExtra: any): {
|
|
663
|
+
accessList: {
|
|
664
|
+
address: string | null;
|
|
665
|
+
storageKeys: any;
|
|
666
|
+
}[];
|
|
667
|
+
};
|
|
668
|
+
constructor(url: any, network: any);
|
|
669
|
+
_nextId: number;
|
|
670
|
+
get _cache(): {};
|
|
671
|
+
_eventLoopCache: {} | undefined;
|
|
672
|
+
detectNetwork(): any;
|
|
673
|
+
_uncachedDetectNetwork(): Promise<any>;
|
|
674
|
+
getSigner(addressOrIndex: any): JsonRpcSigner;
|
|
675
|
+
getUncheckedSigner(addressOrIndex: any): UncheckedJsonRpcSigner;
|
|
676
|
+
listAccounts(): any;
|
|
677
|
+
send(method: any, params: any): any;
|
|
678
|
+
prepareRequest(method: any, params: any): (string | any[])[] | null;
|
|
679
|
+
perform(method: any, params: any): Promise<any>;
|
|
680
|
+
_startPending(): void;
|
|
681
|
+
_pendingFilter: any;
|
|
682
|
+
}
|
|
683
|
+
declare class JsonRpcBatchProvider extends JsonRpcProvider {
|
|
684
|
+
send(method: any, params: any): Promise<any>;
|
|
685
|
+
_pendingBatch: any[] | null | undefined;
|
|
686
|
+
_pendingBatchAggregator: any;
|
|
687
|
+
}
|
|
688
|
+
declare class NodesmithProvider extends UrlJsonRpcProvider {
|
|
689
|
+
static getUrl(network: any, apiKey: any, ...args: any[]): string;
|
|
690
|
+
}
|
|
691
|
+
declare class PocketProvider extends UrlJsonRpcProvider {
|
|
692
|
+
static getApiKey(apiKey: any): {
|
|
693
|
+
applicationId: null;
|
|
694
|
+
loadBalancer: boolean;
|
|
695
|
+
applicationSecretKey: null;
|
|
696
|
+
};
|
|
697
|
+
static getUrl(network: any, apiKey: any): {
|
|
698
|
+
url: string;
|
|
699
|
+
};
|
|
700
|
+
}
|
|
701
|
+
declare class StaticJsonRpcProvider extends JsonRpcProvider {
|
|
702
|
+
detectNetwork(): Promise<any>;
|
|
703
|
+
}
|
|
704
|
+
declare class Web3Provider extends JsonRpcProvider {
|
|
705
|
+
}
|
|
706
|
+
declare class WebSocketProvider extends JsonRpcProvider {
|
|
707
|
+
_wsReady: boolean;
|
|
708
|
+
poll(): Promise<null>;
|
|
709
|
+
set polling(value: any);
|
|
710
|
+
send(method: any, params: any): Promise<any>;
|
|
711
|
+
_subscribe(tag: any, param: any, processFunc: any): Promise<void>;
|
|
712
|
+
destroy(): Promise<void>;
|
|
713
|
+
}
|
|
714
|
+
declare class JsonRpcSigner extends Signer {
|
|
715
|
+
constructor(constructorGuard: any, provider: any, addressOrIndex: any);
|
|
716
|
+
connect(provider: any): void;
|
|
717
|
+
connectUnchecked(): UncheckedJsonRpcSigner;
|
|
718
|
+
getAddress(): any;
|
|
719
|
+
sendUncheckedTransaction(transaction: any): Promise<any>;
|
|
720
|
+
signTransaction(transaction: any): void;
|
|
721
|
+
signMessage(message: any): Promise<any>;
|
|
722
|
+
_legacySignMessage(message: any): Promise<any>;
|
|
723
|
+
_signTypedData(domain: any, types: any, value: any): Promise<any>;
|
|
724
|
+
unlock(password: any): Promise<any>;
|
|
725
|
+
}
|
|
726
|
+
declare function getNetwork(network: any): any;
|
|
727
|
+
declare function isCommunityResource(value: any): any;
|
|
728
|
+
declare function isCommunityResourcable(value: any): any;
|
|
729
|
+
declare function showThrottleMessage(): void;
|
|
730
|
+
declare class Formatter {
|
|
731
|
+
static check(format: any, object: any): {};
|
|
732
|
+
static allowNull(format: any, nullValue: any): (value: any) => any;
|
|
733
|
+
static allowFalsish(format: any, replaceValue: any): (value: any) => any;
|
|
734
|
+
static arrayOf(format: any): (array: any) => any[];
|
|
735
|
+
formats: {
|
|
736
|
+
transaction: {
|
|
737
|
+
hash: (value: any, strict: any) => any;
|
|
738
|
+
type: (number: any) => any;
|
|
739
|
+
accessList: (value: any) => any;
|
|
740
|
+
blockHash: (value: any) => any;
|
|
741
|
+
blockNumber: (value: any) => any;
|
|
742
|
+
transactionIndex: (value: any) => any;
|
|
743
|
+
confirmations: (value: any) => any;
|
|
744
|
+
from: (value: any) => string | null;
|
|
745
|
+
gasPrice: (value: any) => any;
|
|
746
|
+
maxPriorityFeePerGas: (value: any) => any;
|
|
747
|
+
maxFeePerGas: (value: any) => any;
|
|
748
|
+
gasLimit: (value: any) => any;
|
|
749
|
+
to: (value: any) => any;
|
|
750
|
+
value: (value: any) => any;
|
|
751
|
+
nonce: (number: any) => any;
|
|
752
|
+
data: (value: any, strict: any) => any;
|
|
753
|
+
r: (value: any) => any;
|
|
754
|
+
s: (value: any) => any;
|
|
755
|
+
v: (value: any) => any;
|
|
756
|
+
creates: (value: any) => any;
|
|
757
|
+
raw: (value: any) => any;
|
|
758
|
+
};
|
|
759
|
+
transactionRequest: {
|
|
760
|
+
from: (value: any) => any;
|
|
761
|
+
nonce: (value: any) => any;
|
|
762
|
+
gasLimit: (value: any) => any;
|
|
763
|
+
gasPrice: (value: any) => any;
|
|
764
|
+
maxPriorityFeePerGas: (value: any) => any;
|
|
765
|
+
maxFeePerGas: (value: any) => any;
|
|
766
|
+
to: (value: any) => any;
|
|
767
|
+
value: (value: any) => any;
|
|
768
|
+
data: (value: any) => any;
|
|
769
|
+
type: (value: any) => any;
|
|
770
|
+
accessList: (value: any) => any;
|
|
771
|
+
};
|
|
772
|
+
receiptLog: {
|
|
773
|
+
transactionIndex: (number: any) => any;
|
|
774
|
+
blockNumber: (number: any) => any;
|
|
775
|
+
transactionHash: (value: any, strict: any) => any;
|
|
776
|
+
address: (value: any) => string | null;
|
|
777
|
+
topics: (array: any) => any[];
|
|
778
|
+
data: (value: any, strict: any) => any;
|
|
779
|
+
logIndex: (number: any) => any;
|
|
780
|
+
blockHash: (value: any, strict: any) => any;
|
|
781
|
+
};
|
|
782
|
+
receipt: {
|
|
783
|
+
to: (value: any) => any;
|
|
784
|
+
from: (value: any) => any;
|
|
785
|
+
contractAddress: (value: any) => any;
|
|
786
|
+
transactionIndex: (number: any) => any;
|
|
787
|
+
root: (value: any) => any;
|
|
788
|
+
gasUsed: (value: any) => any;
|
|
789
|
+
logsBloom: (value: any) => any;
|
|
790
|
+
blockHash: (value: any, strict: any) => any;
|
|
791
|
+
transactionHash: (value: any, strict: any) => any;
|
|
792
|
+
logs: (array: any) => any[];
|
|
793
|
+
blockNumber: (number: any) => any;
|
|
794
|
+
confirmations: (value: any) => any;
|
|
795
|
+
cumulativeGasUsed: (value: any) => any;
|
|
796
|
+
effectiveGasPrice: (value: any) => any;
|
|
797
|
+
status: (value: any) => any;
|
|
798
|
+
type: (number: any) => any;
|
|
799
|
+
};
|
|
800
|
+
block: {
|
|
801
|
+
hash: (value: any, strict: any) => any;
|
|
802
|
+
parentHash: (value: any, strict: any) => any;
|
|
803
|
+
number: (number: any) => any;
|
|
804
|
+
timestamp: (number: any) => any;
|
|
805
|
+
nonce: (value: any) => any;
|
|
806
|
+
difficulty: (value: any) => any;
|
|
807
|
+
gasLimit: (value: any) => any;
|
|
808
|
+
gasUsed: (value: any) => any;
|
|
809
|
+
miner: (value: any) => string | null;
|
|
810
|
+
extraData: (value: any, strict: any) => any;
|
|
811
|
+
transactions: (value: any) => any;
|
|
812
|
+
baseFeePerGas: (value: any) => any;
|
|
813
|
+
};
|
|
814
|
+
blockWithTransactions: {};
|
|
815
|
+
filter: {
|
|
816
|
+
fromBlock: (value: any) => any;
|
|
817
|
+
toBlock: (value: any) => any;
|
|
818
|
+
blockHash: (value: any) => any;
|
|
819
|
+
address: (value: any) => any;
|
|
820
|
+
topics: (value: any) => any;
|
|
821
|
+
};
|
|
822
|
+
filterLog: {
|
|
823
|
+
blockNumber: (value: any) => any;
|
|
824
|
+
blockHash: (value: any) => any;
|
|
825
|
+
transactionIndex: (number: any) => any;
|
|
826
|
+
removed: (value: any) => any;
|
|
827
|
+
address: (value: any) => string | null;
|
|
828
|
+
data: (value: any) => any;
|
|
829
|
+
topics: (array: any) => any[];
|
|
830
|
+
transactionHash: (value: any, strict: any) => any;
|
|
831
|
+
logIndex: (number: any) => any;
|
|
832
|
+
};
|
|
833
|
+
};
|
|
834
|
+
getDefaultFormats(): {
|
|
835
|
+
transaction: {
|
|
836
|
+
hash: (value: any, strict: any) => any;
|
|
837
|
+
type: (number: any) => any;
|
|
838
|
+
accessList: (value: any) => any;
|
|
839
|
+
blockHash: (value: any) => any;
|
|
840
|
+
blockNumber: (value: any) => any;
|
|
841
|
+
transactionIndex: (value: any) => any;
|
|
842
|
+
confirmations: (value: any) => any;
|
|
843
|
+
from: (value: any) => string | null;
|
|
844
|
+
gasPrice: (value: any) => any;
|
|
845
|
+
maxPriorityFeePerGas: (value: any) => any;
|
|
846
|
+
maxFeePerGas: (value: any) => any;
|
|
847
|
+
gasLimit: (value: any) => any;
|
|
848
|
+
to: (value: any) => any;
|
|
849
|
+
value: (value: any) => any;
|
|
850
|
+
nonce: (number: any) => any;
|
|
851
|
+
data: (value: any, strict: any) => any;
|
|
852
|
+
r: (value: any) => any;
|
|
853
|
+
s: (value: any) => any;
|
|
854
|
+
v: (value: any) => any;
|
|
855
|
+
creates: (value: any) => any;
|
|
856
|
+
raw: (value: any) => any;
|
|
857
|
+
};
|
|
858
|
+
transactionRequest: {
|
|
859
|
+
from: (value: any) => any;
|
|
860
|
+
nonce: (value: any) => any;
|
|
861
|
+
gasLimit: (value: any) => any;
|
|
862
|
+
gasPrice: (value: any) => any;
|
|
863
|
+
maxPriorityFeePerGas: (value: any) => any;
|
|
864
|
+
maxFeePerGas: (value: any) => any;
|
|
865
|
+
to: (value: any) => any;
|
|
866
|
+
value: (value: any) => any;
|
|
867
|
+
data: (value: any) => any;
|
|
868
|
+
type: (value: any) => any;
|
|
869
|
+
accessList: (value: any) => any;
|
|
870
|
+
};
|
|
871
|
+
receiptLog: {
|
|
872
|
+
transactionIndex: (number: any) => any;
|
|
873
|
+
blockNumber: (number: any) => any;
|
|
874
|
+
transactionHash: (value: any, strict: any) => any;
|
|
875
|
+
address: (value: any) => string | null;
|
|
876
|
+
topics: (array: any) => any[];
|
|
877
|
+
data: (value: any, strict: any) => any;
|
|
878
|
+
logIndex: (number: any) => any;
|
|
879
|
+
blockHash: (value: any, strict: any) => any;
|
|
880
|
+
};
|
|
881
|
+
receipt: {
|
|
882
|
+
to: (value: any) => any;
|
|
883
|
+
from: (value: any) => any;
|
|
884
|
+
contractAddress: (value: any) => any;
|
|
885
|
+
transactionIndex: (number: any) => any;
|
|
886
|
+
root: (value: any) => any;
|
|
887
|
+
gasUsed: (value: any) => any;
|
|
888
|
+
logsBloom: (value: any) => any;
|
|
889
|
+
blockHash: (value: any, strict: any) => any;
|
|
890
|
+
transactionHash: (value: any, strict: any) => any;
|
|
891
|
+
logs: (array: any) => any[];
|
|
892
|
+
blockNumber: (number: any) => any;
|
|
893
|
+
confirmations: (value: any) => any;
|
|
894
|
+
cumulativeGasUsed: (value: any) => any;
|
|
895
|
+
effectiveGasPrice: (value: any) => any;
|
|
896
|
+
status: (value: any) => any;
|
|
897
|
+
type: (number: any) => any;
|
|
898
|
+
};
|
|
899
|
+
block: {
|
|
900
|
+
hash: (value: any, strict: any) => any;
|
|
901
|
+
parentHash: (value: any, strict: any) => any;
|
|
902
|
+
number: (number: any) => any;
|
|
903
|
+
timestamp: (number: any) => any;
|
|
904
|
+
nonce: (value: any) => any;
|
|
905
|
+
difficulty: (value: any) => any;
|
|
906
|
+
gasLimit: (value: any) => any;
|
|
907
|
+
gasUsed: (value: any) => any;
|
|
908
|
+
miner: (value: any) => string | null;
|
|
909
|
+
extraData: (value: any, strict: any) => any;
|
|
910
|
+
transactions: (value: any) => any;
|
|
911
|
+
baseFeePerGas: (value: any) => any;
|
|
912
|
+
};
|
|
913
|
+
blockWithTransactions: {};
|
|
914
|
+
filter: {
|
|
915
|
+
fromBlock: (value: any) => any;
|
|
916
|
+
toBlock: (value: any) => any;
|
|
917
|
+
blockHash: (value: any) => any;
|
|
918
|
+
address: (value: any) => any;
|
|
919
|
+
topics: (value: any) => any;
|
|
920
|
+
};
|
|
921
|
+
filterLog: {
|
|
922
|
+
blockNumber: (value: any) => any;
|
|
923
|
+
blockHash: (value: any) => any;
|
|
924
|
+
transactionIndex: (number: any) => any;
|
|
925
|
+
removed: (value: any) => any;
|
|
926
|
+
address: (value: any) => string | null;
|
|
927
|
+
data: (value: any) => any;
|
|
928
|
+
topics: (array: any) => any[];
|
|
929
|
+
transactionHash: (value: any, strict: any) => any;
|
|
930
|
+
logIndex: (number: any) => any;
|
|
931
|
+
};
|
|
932
|
+
};
|
|
933
|
+
accessList(accessList: any): {
|
|
934
|
+
address: string | null;
|
|
935
|
+
storageKeys: any;
|
|
936
|
+
}[];
|
|
937
|
+
number(number: any): any;
|
|
938
|
+
type(number: any): any;
|
|
939
|
+
bigNumber(value: any): any;
|
|
940
|
+
boolean(value: any): boolean;
|
|
941
|
+
hex(value: any, strict: any): any;
|
|
942
|
+
data(value: any, strict: any): any;
|
|
943
|
+
address(value: any): string | null;
|
|
944
|
+
callAddress(value: any): string | null;
|
|
945
|
+
contractAddress(value: any): string | null;
|
|
946
|
+
blockTag(blockTag: any): any;
|
|
947
|
+
hash(value: any, strict: any): any;
|
|
948
|
+
difficulty(value: any): any;
|
|
949
|
+
uint256(value: any): any;
|
|
950
|
+
_block(value: any, format: any): {};
|
|
951
|
+
block(value: any): {};
|
|
952
|
+
blockWithTransactions(value: any): {};
|
|
953
|
+
transactionRequest(value: any): {};
|
|
954
|
+
transactionResponse(transaction: any): {};
|
|
955
|
+
transaction(value: any): void | {
|
|
956
|
+
nonce: any;
|
|
957
|
+
gasPrice: any;
|
|
958
|
+
gasLimit: any;
|
|
959
|
+
to: string | null;
|
|
960
|
+
value: any;
|
|
961
|
+
data: any;
|
|
962
|
+
chainId: number;
|
|
963
|
+
} | {
|
|
964
|
+
type: number;
|
|
965
|
+
chainId: any;
|
|
966
|
+
nonce: any;
|
|
967
|
+
gasPrice: any;
|
|
968
|
+
gasLimit: any;
|
|
969
|
+
to: string | null;
|
|
970
|
+
value: any;
|
|
971
|
+
data: any;
|
|
972
|
+
accessList: {
|
|
973
|
+
address: string | null;
|
|
974
|
+
storageKeys: any;
|
|
975
|
+
}[];
|
|
976
|
+
};
|
|
977
|
+
receiptLog(value: any): {};
|
|
978
|
+
receipt(value: any): {};
|
|
979
|
+
topics(value: any): any;
|
|
980
|
+
filter(value: any): {};
|
|
981
|
+
filterLog(value: any): {};
|
|
982
|
+
}
|
|
983
|
+
declare class Logger {
|
|
984
|
+
static globalLogger(): any;
|
|
985
|
+
static setCensorship(censorship: any, permanent: any): void;
|
|
986
|
+
static setLogLevel(logLevel: any): void;
|
|
987
|
+
static from(version: any): Logger;
|
|
988
|
+
constructor(version: any);
|
|
989
|
+
_log(logLevel: any, args: any): void;
|
|
990
|
+
debug(...args: any[]): void;
|
|
991
|
+
info(...args: any[]): void;
|
|
992
|
+
warn(...args: any[]): void;
|
|
993
|
+
makeError(message: any, code: any, params: any): any;
|
|
994
|
+
throwError(message: any, code: any, params: any): void;
|
|
995
|
+
throwArgumentError(message: any, name: any, value: any): void;
|
|
996
|
+
assert(condition: any, message: any, code: any, params: any): void;
|
|
997
|
+
assertArgument(condition: any, message: any, name: any, value: any): void;
|
|
998
|
+
checkNormalize(message: any): void;
|
|
999
|
+
checkSafeUint53(value: any, message: any): void;
|
|
1000
|
+
checkArgumentCount(count: any, expectedCount: any, message: any): void;
|
|
1001
|
+
checkNew(target: any, kind: any): void;
|
|
1002
|
+
checkAbstract(target: any, kind: any): void;
|
|
1003
|
+
}
|
|
1004
|
+
declare namespace Logger {
|
|
1005
|
+
export { ErrorCode as errors };
|
|
1006
|
+
export { LogLevel as levels };
|
|
1007
|
+
}
|
|
1008
|
+
declare class AbiCoder {
|
|
1009
|
+
constructor(coerceFunc: any);
|
|
1010
|
+
_getCoder(param: any): any;
|
|
1011
|
+
_getWordSize(): number;
|
|
1012
|
+
_getReader(data: any, allowLoose: any): Reader;
|
|
1013
|
+
_getWriter(): Writer;
|
|
1014
|
+
getDefaultValue(types: any): readonly any[];
|
|
1015
|
+
encode(types: any, values: any): string;
|
|
1016
|
+
decode(types: any, data: any, loose: any): any;
|
|
1017
|
+
}
|
|
1018
|
+
declare class Fragment {
|
|
1019
|
+
static from(value: any): any;
|
|
1020
|
+
static fromObject(value: any): any;
|
|
1021
|
+
static fromString(value: any): any;
|
|
1022
|
+
static isFragment(value: any): boolean;
|
|
1023
|
+
constructor(constructorGuard: any, params: any);
|
|
1024
|
+
_isFragment: boolean;
|
|
1025
|
+
}
|
|
1026
|
+
declare class ConstructorFragment extends Fragment {
|
|
1027
|
+
static isConstructorFragment(value: any): any;
|
|
1028
|
+
format(format: any): string;
|
|
1029
|
+
}
|
|
1030
|
+
declare class ErrorFragment extends Fragment {
|
|
1031
|
+
static isErrorFragment(value: any): any;
|
|
1032
|
+
format(format: any): string;
|
|
1033
|
+
}
|
|
1034
|
+
declare class EventFragment extends Fragment {
|
|
1035
|
+
static isEventFragment(value: any): any;
|
|
1036
|
+
format(format: any): string;
|
|
1037
|
+
}
|
|
1038
|
+
declare class FunctionFragment extends ConstructorFragment {
|
|
1039
|
+
static isFunctionFragment(value: any): any;
|
|
1040
|
+
}
|
|
1041
|
+
declare class ParamType {
|
|
1042
|
+
static from(value: any, allowIndexed: any): any;
|
|
1043
|
+
static fromObject(value: any): any;
|
|
1044
|
+
static fromString(value: any, allowIndexed: any): any;
|
|
1045
|
+
static isParamType(value: any): boolean;
|
|
1046
|
+
constructor(constructorGuard: any, params: any);
|
|
1047
|
+
_isParamType: boolean;
|
|
1048
|
+
format(format: any): string;
|
|
1049
|
+
}
|
|
1050
|
+
declare function checkResultErrors(result: any): any[];
|
|
1051
|
+
declare function encode(object: any): any;
|
|
1052
|
+
declare function decode(data: any): any;
|
|
1053
|
+
declare function _fetchData(connection: any, body: any, processFunc: any): Promise<any>;
|
|
1054
|
+
declare function fetchJson(connection: any, json: any, processFunc: any): Promise<any>;
|
|
1055
|
+
declare function poll(func: any, options: any): Promise<any>;
|
|
1056
|
+
declare function checkProperties(object: any, properties: any): void;
|
|
1057
|
+
declare function deepCopy(object: any): any;
|
|
1058
|
+
declare function defineReadOnly(object: any, name: any, value: any): void;
|
|
1059
|
+
declare function getStatic(ctor: any, key: any): any;
|
|
1060
|
+
declare function resolveProperties(object: any): Promise<{}>;
|
|
1061
|
+
declare function shallowCopy(object: any): {};
|
|
1062
|
+
declare function arrayify(value: any, options: any): any;
|
|
1063
|
+
declare function concat(items: any): any;
|
|
1064
|
+
declare function stripZeros(value: any): any;
|
|
1065
|
+
declare function zeroPad(value: any, length: any, ...args: any[]): any;
|
|
1066
|
+
declare function isBytes(value: any): boolean;
|
|
1067
|
+
declare function isBytesLike(value: any): boolean;
|
|
1068
|
+
declare class HDNode {
|
|
1069
|
+
static _fromSeed(seed: any, mnemonic: any): HDNode;
|
|
1070
|
+
static fromMnemonic(mnemonic: any, password: any, wordlist: any): HDNode;
|
|
1071
|
+
static fromSeed(seed: any): HDNode;
|
|
1072
|
+
static fromExtendedKey(extendedKey: any): void | HDNode;
|
|
1073
|
+
constructor(constructorGuard: any, privateKey: any, publicKey: any, parentFingerprint: any, chainCode: any, index: any, depth: any, mnemonicOrPath: any);
|
|
1074
|
+
get extendedKey(): string;
|
|
1075
|
+
neuter(): HDNode;
|
|
1076
|
+
_derive(index: any): HDNode;
|
|
1077
|
+
derivePath(path: any): this;
|
|
1078
|
+
}
|
|
1079
|
+
declare class SigningKey {
|
|
1080
|
+
static isSigningKey(value: any): boolean;
|
|
1081
|
+
constructor(privateKey: any);
|
|
1082
|
+
_addPoint(other: any): string;
|
|
1083
|
+
signDigest(digest: any): {
|
|
1084
|
+
r: string;
|
|
1085
|
+
s: string;
|
|
1086
|
+
_vs: string;
|
|
1087
|
+
recoveryParam: number;
|
|
1088
|
+
v: number;
|
|
1089
|
+
};
|
|
1090
|
+
computeSharedSecret(otherKey: any): any;
|
|
1091
|
+
}
|
|
1092
|
+
declare class Interface {
|
|
1093
|
+
static getAbiCoder(): AbiCoder;
|
|
1094
|
+
static getAddress(address: any): string | null;
|
|
1095
|
+
static getSighash(fragment: any): string;
|
|
1096
|
+
static getEventTopic(eventFragment: any): string;
|
|
1097
|
+
static isInterface(value: any): boolean;
|
|
1098
|
+
constructor(fragments: any);
|
|
1099
|
+
format(format: any): any;
|
|
1100
|
+
getFunction(nameOrSignatureOrSighash: any): any;
|
|
1101
|
+
getEvent(nameOrSignatureOrTopic: any): any;
|
|
1102
|
+
getError(nameOrSignatureOrSighash: any): any;
|
|
1103
|
+
getSighash(fragment: any): any;
|
|
1104
|
+
getEventTopic(eventFragment: any): any;
|
|
1105
|
+
_decodeParams(params: any, data: any): any;
|
|
1106
|
+
_encodeParams(params: any, values: any): any;
|
|
1107
|
+
encodeDeploy(values: any): any;
|
|
1108
|
+
decodeErrorResult(fragment: any, data: any): any;
|
|
1109
|
+
encodeErrorResult(fragment: any, values: any): any;
|
|
1110
|
+
decodeFunctionData(functionFragment: any, data: any): any;
|
|
1111
|
+
encodeFunctionData(functionFragment: any, values: any): any;
|
|
1112
|
+
decodeFunctionResult(functionFragment: any, data: any): any;
|
|
1113
|
+
encodeFunctionResult(functionFragment: any, values: any): any;
|
|
1114
|
+
encodeFilterTopics(eventFragment: any, values: any): any[];
|
|
1115
|
+
encodeEventLog(eventFragment: any, values: any): {
|
|
1116
|
+
data: any;
|
|
1117
|
+
topics: any[];
|
|
1118
|
+
};
|
|
1119
|
+
decodeEventLog(eventFragment: any, data: any, topics: any): readonly any[];
|
|
1120
|
+
parseTransaction(tx: any): TransactionDescription | null;
|
|
1121
|
+
parseLog(log: any): LogDescription | null;
|
|
1122
|
+
parseError(data: any): ErrorDescription | null;
|
|
1123
|
+
}
|
|
1124
|
+
declare class LogDescription extends Description {
|
|
1125
|
+
}
|
|
1126
|
+
declare class TransactionDescription extends Description {
|
|
1127
|
+
}
|
|
1128
|
+
declare class BaseX {
|
|
1129
|
+
constructor(alphabet: any);
|
|
1130
|
+
encode(value: any): string;
|
|
1131
|
+
decode(value: any): any;
|
|
1132
|
+
}
|
|
1133
|
+
declare function decode$1(textData: any): any;
|
|
1134
|
+
declare function encode$1(data: any): string;
|
|
1135
|
+
declare function hexlify(value: any, options: any): any;
|
|
1136
|
+
declare function isHexString(value: any, length: any): boolean;
|
|
1137
|
+
declare function hexConcat(items: any): string;
|
|
1138
|
+
declare function hexStripZeros(value: any): string;
|
|
1139
|
+
declare function hexValue(value: any): string;
|
|
1140
|
+
declare function hexZeroPad(value: any, length: any, ...args: any[]): any;
|
|
1141
|
+
declare function hexDataLength(data: any): number | null;
|
|
1142
|
+
declare function hexDataSlice(data: any, offset: any, endOffset: any): string;
|
|
1143
|
+
declare function nameprep(value: any): any;
|
|
1144
|
+
declare function _toEscapedUtf8String(bytes: any, onError: any): string;
|
|
1145
|
+
declare function toUtf8Bytes(str: any, form?: any): any;
|
|
1146
|
+
declare function toUtf8CodePoints(str: any, form?: any): any[];
|
|
1147
|
+
declare function toUtf8String(bytes: any, onError: any): any;
|
|
1148
|
+
declare function errorFunc(reason: any, offset: any, bytes: any, output: any, badCodepoint: any): void;
|
|
1149
|
+
declare function ignoreFunc(reason: any, offset: any, bytes: any, output: any, badCodepoint: any): number;
|
|
1150
|
+
declare function replaceFunc(reason: any, offset: any, bytes: any, output: any, badCodepoint: any): number;
|
|
1151
|
+
declare function formatBytes32String(text: any): any;
|
|
1152
|
+
declare function parseBytes32String(bytes: any): any;
|
|
1153
|
+
declare function hashMessage(message: any): string;
|
|
1154
|
+
declare function namehash(name: any): any;
|
|
1155
|
+
declare function isValidName(name: any): boolean;
|
|
1156
|
+
declare function id(text: any): string;
|
|
1157
|
+
declare class TypedDataEncoder {
|
|
1158
|
+
static from(types: any): TypedDataEncoder;
|
|
1159
|
+
static getPrimaryType(types: any): any;
|
|
1160
|
+
static hashStruct(name: any, types: any, value: any): string;
|
|
1161
|
+
static hashDomain(domain: any): string;
|
|
1162
|
+
static encode(domain: any, types: any, value: any): string;
|
|
1163
|
+
static hash(domain: any, types: any, value: any): string;
|
|
1164
|
+
static resolveNames(domain: any, types: any, value: any, resolveName: any): Promise<{
|
|
1165
|
+
domain: any;
|
|
1166
|
+
value: any;
|
|
1167
|
+
}>;
|
|
1168
|
+
static getPayload(domain: any, types: any, value: any): {
|
|
1169
|
+
types: {};
|
|
1170
|
+
domain: {};
|
|
1171
|
+
primaryType: any;
|
|
1172
|
+
message: any;
|
|
1173
|
+
};
|
|
1174
|
+
constructor(types: any);
|
|
1175
|
+
getEncoder(type: any): any;
|
|
1176
|
+
_getEncoder(type: any): void | ((value: any) => any);
|
|
1177
|
+
encodeType(name: any): any;
|
|
1178
|
+
encodeData(type: any, value: any): any;
|
|
1179
|
+
hashStruct(name: any, value: any): string;
|
|
1180
|
+
encode(value: any): any;
|
|
1181
|
+
hash(value: any): string;
|
|
1182
|
+
_visit(type: any, value: any, callback: any): any;
|
|
1183
|
+
visit(value: any, callback: any): any;
|
|
1184
|
+
}
|
|
1185
|
+
declare function getAddress(address: any): string | null;
|
|
1186
|
+
declare function getIcapAddress(address: any): string;
|
|
1187
|
+
declare function getContractAddress(transaction: any): string | null;
|
|
1188
|
+
declare function getCreate2Address(from: any, salt: any, initCodeHash: any): string | null;
|
|
1189
|
+
declare function isAddress(address: any): boolean;
|
|
1190
|
+
declare function formatEther(wei: any): any;
|
|
1191
|
+
declare function parseEther(ether: any): any;
|
|
1192
|
+
declare function formatUnits(value: any, unitName: any): any;
|
|
1193
|
+
declare function parseUnits(value: any, unitName: any): any;
|
|
1194
|
+
declare function commify(value: any): string;
|
|
1195
|
+
declare function computeHmac(algorithm: any, key: any, data: any): string;
|
|
1196
|
+
declare function keccak256(data: any): string;
|
|
1197
|
+
declare function ripemd160$1(data: any): string;
|
|
1198
|
+
declare function sha256$1(data: any): string;
|
|
1199
|
+
declare function sha512$1(data: any): string;
|
|
1200
|
+
declare function randomBytes(length: any): any;
|
|
1201
|
+
declare function shuffled(array: any): any;
|
|
1202
|
+
declare function pack$1(types: any, values: any): any;
|
|
1203
|
+
declare function keccak256$1(types: any, values: any): string;
|
|
1204
|
+
declare function sha256$2(types: any, values: any): string;
|
|
1205
|
+
declare function splitSignature(signature: any): {
|
|
1206
|
+
r: string;
|
|
1207
|
+
s: string;
|
|
1208
|
+
_vs: string;
|
|
1209
|
+
recoveryParam: number;
|
|
1210
|
+
v: number;
|
|
1211
|
+
};
|
|
1212
|
+
declare function joinSignature(signature: any): any;
|
|
1213
|
+
declare function accessListify(value: any): {
|
|
1214
|
+
address: string | null;
|
|
1215
|
+
storageKeys: any;
|
|
1216
|
+
}[];
|
|
1217
|
+
declare function parse(rawTransaction: any): void | {
|
|
1218
|
+
nonce: any;
|
|
1219
|
+
gasPrice: any;
|
|
1220
|
+
gasLimit: any;
|
|
1221
|
+
to: string | null;
|
|
1222
|
+
value: any;
|
|
1223
|
+
data: any;
|
|
1224
|
+
chainId: number;
|
|
1225
|
+
} | {
|
|
1226
|
+
type: number;
|
|
1227
|
+
chainId: any;
|
|
1228
|
+
nonce: any;
|
|
1229
|
+
gasPrice: any;
|
|
1230
|
+
gasLimit: any;
|
|
1231
|
+
to: string | null;
|
|
1232
|
+
value: any;
|
|
1233
|
+
data: any;
|
|
1234
|
+
accessList: {
|
|
1235
|
+
address: string | null;
|
|
1236
|
+
storageKeys: any;
|
|
1237
|
+
}[];
|
|
1238
|
+
};
|
|
1239
|
+
declare function serialize(transaction: any, signature: any): any;
|
|
1240
|
+
declare function getJsonWalletAddress(json: any): string | null;
|
|
1241
|
+
declare function computeAddress(key: any): string | null;
|
|
1242
|
+
declare function recoverAddress(digest: any, signature: any): string | null;
|
|
1243
|
+
declare function computePublicKey(key: any, compressed: any): any;
|
|
1244
|
+
declare function recoverPublicKey(digest: any, signature: any): string;
|
|
1245
|
+
declare function verifyMessage(message: any, signature: any): string | null;
|
|
1246
|
+
declare function verifyTypedData(domain: any, types: any, value: any, signature: any): string | null;
|
|
1247
|
+
declare function getAccountPath(index: any): string;
|
|
1248
|
+
declare function mnemonicToEntropy(mnemonic: any, wordlist: any): any;
|
|
1249
|
+
declare function entropyToMnemonic(entropy: any, wordlist: any): any;
|
|
1250
|
+
declare function isValidMnemonic(mnemonic: any, wordlist: any): boolean;
|
|
1251
|
+
declare function mnemonicToSeed(mnemonic: any, password: any): any;
|
|
1252
|
+
declare class Indexed extends Description {
|
|
1253
|
+
static isIndexed(value: any): boolean;
|
|
1254
|
+
}
|
|
1255
|
+
declare class LangEn extends Wordlist {
|
|
1256
|
+
constructor();
|
|
1257
|
+
getWord(index: any): any;
|
|
1258
|
+
getWordIndex(word: any): any;
|
|
1259
|
+
}
|
|
1260
|
+
declare const langEn: LangEn;
|
|
1261
|
+
declare class UncheckedJsonRpcSigner extends JsonRpcSigner {
|
|
1262
|
+
sendTransaction(transaction: any): Promise<{
|
|
1263
|
+
hash: any;
|
|
1264
|
+
nonce: null;
|
|
1265
|
+
gasLimit: null;
|
|
1266
|
+
gasPrice: null;
|
|
1267
|
+
data: null;
|
|
1268
|
+
value: null;
|
|
1269
|
+
chainId: null;
|
|
1270
|
+
confirmations: number;
|
|
1271
|
+
from: null;
|
|
1272
|
+
wait: (confirmations: any) => any;
|
|
1273
|
+
}>;
|
|
1274
|
+
}
|
|
1275
|
+
declare var LogLevel: any;
|
|
1276
|
+
declare class Reader {
|
|
1277
|
+
static coerce(name: any, value: any): any;
|
|
1278
|
+
constructor(data: any, wordSize: any, coerceFunc: any, allowLoose: any);
|
|
1279
|
+
_offset: number;
|
|
1280
|
+
get data(): any;
|
|
1281
|
+
get consumed(): number;
|
|
1282
|
+
coerce(name: any, value: any): any;
|
|
1283
|
+
_peekBytes(offset: any, length: any, loose: any): any;
|
|
1284
|
+
subReader(offset: any): Reader;
|
|
1285
|
+
readBytes(length: any, loose: any): any;
|
|
1286
|
+
readValue(): any;
|
|
1287
|
+
}
|
|
1288
|
+
declare class Writer {
|
|
1289
|
+
constructor(wordSize: any);
|
|
1290
|
+
_data: any[];
|
|
1291
|
+
_dataLength: number;
|
|
1292
|
+
_padding: Uint8Array<any>;
|
|
1293
|
+
get data(): string;
|
|
1294
|
+
get length(): number;
|
|
1295
|
+
_writeData(data: any): any;
|
|
1296
|
+
appendWriter(writer: any): any;
|
|
1297
|
+
writeBytes(value: any): any;
|
|
1298
|
+
_getValue(value: any): any;
|
|
1299
|
+
writeValue(value: any): any;
|
|
1300
|
+
writeUpdatableValue(): (value: any) => void;
|
|
1301
|
+
}
|
|
1302
|
+
declare class ErrorDescription extends Description {
|
|
1303
|
+
}
|
|
1304
|
+
declare class Description {
|
|
1305
|
+
constructor(info: any);
|
|
1306
|
+
}
|
|
1307
|
+
export { index$1 as constants, ErrorCode as errors, logger$I as logger, index$3 as providers, utils$1 as utils, version$p as version };
|