1 | import * as ethers from "ethers";
|
2 | import { providers, utils } from "ethers";
|
3 |
|
4 | export { Contract } from "ethers";
|
5 |
|
6 | export type JsonRpcProvider = providers.JsonRpcProvider;
|
7 | export const JsonRpcProvider = providers.JsonRpcProvider;
|
8 |
|
9 | export type TransactionReceipt = providers.TransactionReceipt;
|
10 |
|
11 | export type TransactionResponse = providers.TransactionResponse;
|
12 |
|
13 | export type BigNumberish = ethers.BigNumberish;
|
14 | export type Network = providers.Network;
|
15 | export type Transaction = providers.TransactionRequest;
|
16 |
|
17 |
|
18 |
|
19 | export type ABIEncoding = string;
|
20 | export type Address = string;
|
21 | export type AssetId = string;
|
22 | export type Bytes32 = string;
|
23 | export type DecString = string;
|
24 | export type HexString = string;
|
25 | export type PublicIdentifier = string;
|
26 | export type PublicKey = string;
|
27 | export type PrivateKey = string;
|
28 | export type SignatureString = string;
|
29 | export type UrlString = string;
|
30 |
|
31 | export type BigNumber = ethers.BigNumber;
|
32 | export const BigNumber = ethers.BigNumber;
|
33 |
|
34 |
|
35 |
|
36 | export type BigNumberJson = { _hex: HexString; _isBigNumber: true };
|
37 |
|
38 | export type StringMapping = { [key: string]: string };
|
39 |
|
40 | export interface EthSignature {
|
41 | r: string;
|
42 | s: string;
|
43 | v: string;
|
44 | }
|
45 |
|
46 |
|
47 | export type ContractABI = Array<string | utils.ParamType> | string | utils.Interface;
|
48 |
|
49 | export type SolidityPrimitiveType = string | ethers.BigNumberish | boolean;
|
50 |
|
51 | type SolidityABIEncoderV2Struct = {
|
52 | [x: string]: SolidityValueType;
|
53 | };
|
54 |
|
55 |
|
56 |
|
57 | type SolidityABIEncoderV2SArray = Array<SolidityValueType>;
|
58 |
|
59 |
|
60 |
|
61 |
|
62 |
|
63 |
|
64 |
|
65 |
|
66 |
|
67 | export type SolidityValueType =
|
68 | | SolidityPrimitiveType
|
69 | | SolidityABIEncoderV2Struct
|
70 | | SolidityABIEncoderV2SArray;
|
71 |
|
72 | export type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
|