@imtbl/x-client 2.1.16 → 2.1.17-alpha.1

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.
Files changed (26) hide show
  1. package/dist/browser/index.js +84 -8
  2. package/dist/node/index.cjs +27 -25
  3. package/dist/node/index.js +6 -4
  4. package/dist/types/contracts/@openzeppelin/contracts/token/ERC20/IERC20.d.ts +127 -114
  5. package/dist/types/contracts/@openzeppelin/contracts/token/ERC721/IERC721.d.ts +201 -180
  6. package/dist/types/contracts/@openzeppelin/contracts/utils/introspection/IERC165.d.ts +36 -23
  7. package/dist/types/contracts/common.d.ts +12 -40
  8. package/dist/types/contracts/contracts/v3/Core.d.ts +1194 -991
  9. package/dist/types/contracts/contracts/v3/Registration.d.ts +165 -151
  10. package/dist/types/contracts/contracts/v4/CoreV4.d.ts +1569 -1497
  11. package/dist/types/contracts/contracts/v4/RegistrationV4.d.ts +129 -97
  12. package/dist/types/contracts/factories/@openzeppelin/contracts/token/ERC20/IERC20__factory.d.ts +31 -143
  13. package/dist/types/contracts/factories/@openzeppelin/contracts/token/ERC721/IERC721__factory.d.ts +31 -223
  14. package/dist/types/contracts/factories/@openzeppelin/contracts/utils/introspection/IERC165__factory.d.ts +18 -17
  15. package/dist/types/contracts/factories/contracts/v3/Core__factory.d.ts +31 -1250
  16. package/dist/types/contracts/factories/contracts/v3/Registration__factory.d.ts +37 -206
  17. package/dist/types/contracts/factories/contracts/v4/CoreV4__factory.d.ts +38 -1886
  18. package/dist/types/contracts/factories/contracts/v4/RegistrationV4__factory.d.ts +47 -160
  19. package/dist/types/types/api.d.ts +3 -1
  20. package/dist/types/types/signers.d.ts +1 -1
  21. package/dist/types/utils/crypto/crypto.d.ts +1 -1
  22. package/dist/types/utils/stark/legacy/crypto/crypto.d.ts +2 -0
  23. package/dist/types/utils/stark/starkCurve.d.ts +1 -1
  24. package/dist/types/workflows/minting.d.ts +1 -1
  25. package/dist/types/workflows/workflows.d.ts +1 -1
  26. package/package.json +14 -5
@@ -1,14 +1,46 @@
1
- import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
2
- import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedListener, TypedContractMethod } from "../../common";
3
- export interface RegistrationV4Interface extends Interface {
4
- getFunction(nameOrSignature: "getVersion" | "imx" | "isRegistered" | "registerAndWithdrawAll" | "registerAndWithdrawNft" | "registerWithdrawAndMint" | "withdrawAll"): FunctionFragment;
1
+ import type { BaseContract, BigNumber, BigNumberish, BytesLike, CallOverrides, ContractTransaction, Overrides, PopulatedTransaction, Signer, utils } from "ethers-v5";
2
+ import type { FunctionFragment, Result } from "@ethersproject/abi";
3
+ import type { Listener, Provider } from "@ethersproject/providers";
4
+ import type { TypedEventFilter, TypedEvent, TypedListener, OnEvent, PromiseOrValue } from "../../common";
5
+ export interface RegistrationV4Interface extends utils.Interface {
6
+ functions: {
7
+ "getVersion()": FunctionFragment;
8
+ "imx()": FunctionFragment;
9
+ "isRegistered(uint256)": FunctionFragment;
10
+ "registerAndWithdrawAll(address,uint256,bytes,uint256)": FunctionFragment;
11
+ "registerAndWithdrawNft(address,uint256,bytes,uint256,uint256)": FunctionFragment;
12
+ "registerWithdrawAndMint(address,uint256,bytes,uint256,bytes)": FunctionFragment;
13
+ "withdrawAll(uint256,uint256,uint256)": FunctionFragment;
14
+ };
15
+ getFunction(nameOrSignatureOrTopic: "getVersion" | "imx" | "isRegistered" | "registerAndWithdrawAll" | "registerAndWithdrawNft" | "registerWithdrawAndMint" | "withdrawAll"): FunctionFragment;
5
16
  encodeFunctionData(functionFragment: "getVersion", values?: undefined): string;
6
17
  encodeFunctionData(functionFragment: "imx", values?: undefined): string;
7
- encodeFunctionData(functionFragment: "isRegistered", values: [BigNumberish]): string;
8
- encodeFunctionData(functionFragment: "registerAndWithdrawAll", values: [AddressLike, BigNumberish, BytesLike, BigNumberish]): string;
9
- encodeFunctionData(functionFragment: "registerAndWithdrawNft", values: [AddressLike, BigNumberish, BytesLike, BigNumberish, BigNumberish]): string;
10
- encodeFunctionData(functionFragment: "registerWithdrawAndMint", values: [AddressLike, BigNumberish, BytesLike, BigNumberish, BytesLike]): string;
11
- encodeFunctionData(functionFragment: "withdrawAll", values: [BigNumberish, BigNumberish, BigNumberish]): string;
18
+ encodeFunctionData(functionFragment: "isRegistered", values: [PromiseOrValue<BigNumberish>]): string;
19
+ encodeFunctionData(functionFragment: "registerAndWithdrawAll", values: [
20
+ PromiseOrValue<string>,
21
+ PromiseOrValue<BigNumberish>,
22
+ PromiseOrValue<BytesLike>,
23
+ PromiseOrValue<BigNumberish>
24
+ ]): string;
25
+ encodeFunctionData(functionFragment: "registerAndWithdrawNft", values: [
26
+ PromiseOrValue<string>,
27
+ PromiseOrValue<BigNumberish>,
28
+ PromiseOrValue<BytesLike>,
29
+ PromiseOrValue<BigNumberish>,
30
+ PromiseOrValue<BigNumberish>
31
+ ]): string;
32
+ encodeFunctionData(functionFragment: "registerWithdrawAndMint", values: [
33
+ PromiseOrValue<string>,
34
+ PromiseOrValue<BigNumberish>,
35
+ PromiseOrValue<BytesLike>,
36
+ PromiseOrValue<BigNumberish>,
37
+ PromiseOrValue<BytesLike>
38
+ ]): string;
39
+ encodeFunctionData(functionFragment: "withdrawAll", values: [
40
+ PromiseOrValue<BigNumberish>,
41
+ PromiseOrValue<BigNumberish>,
42
+ PromiseOrValue<BigNumberish>
43
+ ]): string;
12
44
  decodeFunctionResult(functionFragment: "getVersion", data: BytesLike): Result;
13
45
  decodeFunctionResult(functionFragment: "imx", data: BytesLike): Result;
14
46
  decodeFunctionResult(functionFragment: "isRegistered", data: BytesLike): Result;
@@ -16,96 +48,96 @@ export interface RegistrationV4Interface extends Interface {
16
48
  decodeFunctionResult(functionFragment: "registerAndWithdrawNft", data: BytesLike): Result;
17
49
  decodeFunctionResult(functionFragment: "registerWithdrawAndMint", data: BytesLike): Result;
18
50
  decodeFunctionResult(functionFragment: "withdrawAll", data: BytesLike): Result;
51
+ events: {};
19
52
  }
20
53
  export interface RegistrationV4 extends BaseContract {
21
- connect(runner?: ContractRunner | null): RegistrationV4;
22
- waitForDeployment(): Promise<this>;
54
+ connect(signerOrProvider: Signer | Provider | string): this;
55
+ attach(addressOrName: string): this;
56
+ deployed(): Promise<this>;
23
57
  interface: RegistrationV4Interface;
24
- queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
25
- queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
26
- on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
27
- on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
28
- once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
29
- once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
30
- listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
31
- listeners(eventName?: string): Promise<Array<Listener>>;
32
- removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
33
- getVersion: TypedContractMethod<[], [string], "view">;
34
- imx: TypedContractMethod<[], [string], "view">;
35
- isRegistered: TypedContractMethod<[
36
- starkKey: BigNumberish
37
- ], [
38
- boolean
39
- ], "view">;
40
- registerAndWithdrawAll: TypedContractMethod<[
41
- ethKey: AddressLike,
42
- starkKey: BigNumberish,
43
- signature: BytesLike,
44
- assetType: BigNumberish
45
- ], [
46
- void
47
- ], "nonpayable">;
48
- registerAndWithdrawNft: TypedContractMethod<[
49
- ethKey: AddressLike,
50
- starkKey: BigNumberish,
51
- signature: BytesLike,
52
- assetType: BigNumberish,
53
- tokenId: BigNumberish
54
- ], [
55
- void
56
- ], "nonpayable">;
57
- registerWithdrawAndMint: TypedContractMethod<[
58
- ethKey: AddressLike,
59
- starkKey: BigNumberish,
60
- signature: BytesLike,
61
- assetType: BigNumberish,
62
- mintingBlob: BytesLike
63
- ], [
64
- void
65
- ], "nonpayable">;
66
- withdrawAll: TypedContractMethod<[
67
- ethKey: BigNumberish,
68
- starkKey: BigNumberish,
69
- assetType: BigNumberish
70
- ], [
71
- void
72
- ], "nonpayable">;
73
- getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
74
- getFunction(nameOrSignature: "getVersion"): TypedContractMethod<[], [string], "view">;
75
- getFunction(nameOrSignature: "imx"): TypedContractMethod<[], [string], "view">;
76
- getFunction(nameOrSignature: "isRegistered"): TypedContractMethod<[starkKey: BigNumberish], [boolean], "view">;
77
- getFunction(nameOrSignature: "registerAndWithdrawAll"): TypedContractMethod<[
78
- ethKey: AddressLike,
79
- starkKey: BigNumberish,
80
- signature: BytesLike,
81
- assetType: BigNumberish
82
- ], [
83
- void
84
- ], "nonpayable">;
85
- getFunction(nameOrSignature: "registerAndWithdrawNft"): TypedContractMethod<[
86
- ethKey: AddressLike,
87
- starkKey: BigNumberish,
88
- signature: BytesLike,
89
- assetType: BigNumberish,
90
- tokenId: BigNumberish
91
- ], [
92
- void
93
- ], "nonpayable">;
94
- getFunction(nameOrSignature: "registerWithdrawAndMint"): TypedContractMethod<[
95
- ethKey: AddressLike,
96
- starkKey: BigNumberish,
97
- signature: BytesLike,
98
- assetType: BigNumberish,
99
- mintingBlob: BytesLike
100
- ], [
101
- void
102
- ], "nonpayable">;
103
- getFunction(nameOrSignature: "withdrawAll"): TypedContractMethod<[
104
- ethKey: BigNumberish,
105
- starkKey: BigNumberish,
106
- assetType: BigNumberish
107
- ], [
108
- void
109
- ], "nonpayable">;
58
+ queryFilter<TEvent extends TypedEvent>(event: TypedEventFilter<TEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TEvent>>;
59
+ listeners<TEvent extends TypedEvent>(eventFilter?: TypedEventFilter<TEvent>): Array<TypedListener<TEvent>>;
60
+ listeners(eventName?: string): Array<Listener>;
61
+ removeAllListeners<TEvent extends TypedEvent>(eventFilter: TypedEventFilter<TEvent>): this;
62
+ removeAllListeners(eventName?: string): this;
63
+ off: OnEvent<this>;
64
+ on: OnEvent<this>;
65
+ once: OnEvent<this>;
66
+ removeListener: OnEvent<this>;
67
+ functions: {
68
+ getVersion(overrides?: CallOverrides): Promise<[string]>;
69
+ imx(overrides?: CallOverrides): Promise<[string]>;
70
+ isRegistered(starkKey: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<[boolean]>;
71
+ registerAndWithdrawAll(ethKey: PromiseOrValue<string>, starkKey: PromiseOrValue<BigNumberish>, signature: PromiseOrValue<BytesLike>, assetType: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
72
+ from?: PromiseOrValue<string>;
73
+ }): Promise<ContractTransaction>;
74
+ registerAndWithdrawNft(ethKey: PromiseOrValue<string>, starkKey: PromiseOrValue<BigNumberish>, signature: PromiseOrValue<BytesLike>, assetType: PromiseOrValue<BigNumberish>, tokenId: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
75
+ from?: PromiseOrValue<string>;
76
+ }): Promise<ContractTransaction>;
77
+ registerWithdrawAndMint(ethKey: PromiseOrValue<string>, starkKey: PromiseOrValue<BigNumberish>, signature: PromiseOrValue<BytesLike>, assetType: PromiseOrValue<BigNumberish>, mintingBlob: PromiseOrValue<BytesLike>, overrides?: Overrides & {
78
+ from?: PromiseOrValue<string>;
79
+ }): Promise<ContractTransaction>;
80
+ withdrawAll(ethKey: PromiseOrValue<BigNumberish>, starkKey: PromiseOrValue<BigNumberish>, assetType: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
81
+ from?: PromiseOrValue<string>;
82
+ }): Promise<ContractTransaction>;
83
+ };
84
+ getVersion(overrides?: CallOverrides): Promise<string>;
85
+ imx(overrides?: CallOverrides): Promise<string>;
86
+ isRegistered(starkKey: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<boolean>;
87
+ registerAndWithdrawAll(ethKey: PromiseOrValue<string>, starkKey: PromiseOrValue<BigNumberish>, signature: PromiseOrValue<BytesLike>, assetType: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
88
+ from?: PromiseOrValue<string>;
89
+ }): Promise<ContractTransaction>;
90
+ registerAndWithdrawNft(ethKey: PromiseOrValue<string>, starkKey: PromiseOrValue<BigNumberish>, signature: PromiseOrValue<BytesLike>, assetType: PromiseOrValue<BigNumberish>, tokenId: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
91
+ from?: PromiseOrValue<string>;
92
+ }): Promise<ContractTransaction>;
93
+ registerWithdrawAndMint(ethKey: PromiseOrValue<string>, starkKey: PromiseOrValue<BigNumberish>, signature: PromiseOrValue<BytesLike>, assetType: PromiseOrValue<BigNumberish>, mintingBlob: PromiseOrValue<BytesLike>, overrides?: Overrides & {
94
+ from?: PromiseOrValue<string>;
95
+ }): Promise<ContractTransaction>;
96
+ withdrawAll(ethKey: PromiseOrValue<BigNumberish>, starkKey: PromiseOrValue<BigNumberish>, assetType: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
97
+ from?: PromiseOrValue<string>;
98
+ }): Promise<ContractTransaction>;
99
+ callStatic: {
100
+ getVersion(overrides?: CallOverrides): Promise<string>;
101
+ imx(overrides?: CallOverrides): Promise<string>;
102
+ isRegistered(starkKey: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<boolean>;
103
+ registerAndWithdrawAll(ethKey: PromiseOrValue<string>, starkKey: PromiseOrValue<BigNumberish>, signature: PromiseOrValue<BytesLike>, assetType: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<void>;
104
+ registerAndWithdrawNft(ethKey: PromiseOrValue<string>, starkKey: PromiseOrValue<BigNumberish>, signature: PromiseOrValue<BytesLike>, assetType: PromiseOrValue<BigNumberish>, tokenId: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<void>;
105
+ registerWithdrawAndMint(ethKey: PromiseOrValue<string>, starkKey: PromiseOrValue<BigNumberish>, signature: PromiseOrValue<BytesLike>, assetType: PromiseOrValue<BigNumberish>, mintingBlob: PromiseOrValue<BytesLike>, overrides?: CallOverrides): Promise<void>;
106
+ withdrawAll(ethKey: PromiseOrValue<BigNumberish>, starkKey: PromiseOrValue<BigNumberish>, assetType: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<void>;
107
+ };
110
108
  filters: {};
109
+ estimateGas: {
110
+ getVersion(overrides?: CallOverrides): Promise<BigNumber>;
111
+ imx(overrides?: CallOverrides): Promise<BigNumber>;
112
+ isRegistered(starkKey: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<BigNumber>;
113
+ registerAndWithdrawAll(ethKey: PromiseOrValue<string>, starkKey: PromiseOrValue<BigNumberish>, signature: PromiseOrValue<BytesLike>, assetType: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
114
+ from?: PromiseOrValue<string>;
115
+ }): Promise<BigNumber>;
116
+ registerAndWithdrawNft(ethKey: PromiseOrValue<string>, starkKey: PromiseOrValue<BigNumberish>, signature: PromiseOrValue<BytesLike>, assetType: PromiseOrValue<BigNumberish>, tokenId: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
117
+ from?: PromiseOrValue<string>;
118
+ }): Promise<BigNumber>;
119
+ registerWithdrawAndMint(ethKey: PromiseOrValue<string>, starkKey: PromiseOrValue<BigNumberish>, signature: PromiseOrValue<BytesLike>, assetType: PromiseOrValue<BigNumberish>, mintingBlob: PromiseOrValue<BytesLike>, overrides?: Overrides & {
120
+ from?: PromiseOrValue<string>;
121
+ }): Promise<BigNumber>;
122
+ withdrawAll(ethKey: PromiseOrValue<BigNumberish>, starkKey: PromiseOrValue<BigNumberish>, assetType: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
123
+ from?: PromiseOrValue<string>;
124
+ }): Promise<BigNumber>;
125
+ };
126
+ populateTransaction: {
127
+ getVersion(overrides?: CallOverrides): Promise<PopulatedTransaction>;
128
+ imx(overrides?: CallOverrides): Promise<PopulatedTransaction>;
129
+ isRegistered(starkKey: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
130
+ registerAndWithdrawAll(ethKey: PromiseOrValue<string>, starkKey: PromiseOrValue<BigNumberish>, signature: PromiseOrValue<BytesLike>, assetType: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
131
+ from?: PromiseOrValue<string>;
132
+ }): Promise<PopulatedTransaction>;
133
+ registerAndWithdrawNft(ethKey: PromiseOrValue<string>, starkKey: PromiseOrValue<BigNumberish>, signature: PromiseOrValue<BytesLike>, assetType: PromiseOrValue<BigNumberish>, tokenId: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
134
+ from?: PromiseOrValue<string>;
135
+ }): Promise<PopulatedTransaction>;
136
+ registerWithdrawAndMint(ethKey: PromiseOrValue<string>, starkKey: PromiseOrValue<BigNumberish>, signature: PromiseOrValue<BytesLike>, assetType: PromiseOrValue<BigNumberish>, mintingBlob: PromiseOrValue<BytesLike>, overrides?: Overrides & {
137
+ from?: PromiseOrValue<string>;
138
+ }): Promise<PopulatedTransaction>;
139
+ withdrawAll(ethKey: PromiseOrValue<BigNumberish>, starkKey: PromiseOrValue<BigNumberish>, assetType: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
140
+ from?: PromiseOrValue<string>;
141
+ }): Promise<PopulatedTransaction>;
142
+ };
111
143
  }
@@ -1,147 +1,35 @@
1
- import { type ContractRunner } from "ethers";
1
+ import { Signer } from "ethers-v5";
2
+ import type { Provider } from "@ethersproject/providers";
2
3
  import type { IERC20, IERC20Interface } from "../../../../../@openzeppelin/contracts/token/ERC20/IERC20";
3
4
  export declare class IERC20__factory {
4
- static readonly abi: readonly [{
5
- readonly anonymous: false;
6
- readonly inputs: readonly [{
7
- readonly indexed: true;
8
- readonly internalType: "address";
9
- readonly name: "owner";
10
- readonly type: "address";
11
- }, {
12
- readonly indexed: true;
13
- readonly internalType: "address";
14
- readonly name: "spender";
15
- readonly type: "address";
16
- }, {
17
- readonly indexed: false;
18
- readonly internalType: "uint256";
19
- readonly name: "value";
20
- readonly type: "uint256";
21
- }];
22
- readonly name: "Approval";
23
- readonly type: "event";
24
- }, {
25
- readonly anonymous: false;
26
- readonly inputs: readonly [{
27
- readonly indexed: true;
28
- readonly internalType: "address";
29
- readonly name: "from";
30
- readonly type: "address";
31
- }, {
32
- readonly indexed: true;
33
- readonly internalType: "address";
34
- readonly name: "to";
35
- readonly type: "address";
36
- }, {
37
- readonly indexed: false;
38
- readonly internalType: "uint256";
39
- readonly name: "value";
40
- readonly type: "uint256";
41
- }];
42
- readonly name: "Transfer";
43
- readonly type: "event";
44
- }, {
45
- readonly inputs: readonly [{
46
- readonly internalType: "address";
47
- readonly name: "owner";
48
- readonly type: "address";
49
- }, {
50
- readonly internalType: "address";
51
- readonly name: "spender";
52
- readonly type: "address";
53
- }];
54
- readonly name: "allowance";
55
- readonly outputs: readonly [{
56
- readonly internalType: "uint256";
57
- readonly name: "";
58
- readonly type: "uint256";
59
- }];
60
- readonly stateMutability: "view";
61
- readonly type: "function";
62
- }, {
63
- readonly inputs: readonly [{
64
- readonly internalType: "address";
65
- readonly name: "spender";
66
- readonly type: "address";
67
- }, {
68
- readonly internalType: "uint256";
69
- readonly name: "amount";
70
- readonly type: "uint256";
71
- }];
72
- readonly name: "approve";
73
- readonly outputs: readonly [{
74
- readonly internalType: "bool";
75
- readonly name: "";
76
- readonly type: "bool";
77
- }];
78
- readonly stateMutability: "nonpayable";
79
- readonly type: "function";
80
- }, {
81
- readonly inputs: readonly [{
82
- readonly internalType: "address";
83
- readonly name: "account";
84
- readonly type: "address";
85
- }];
86
- readonly name: "balanceOf";
87
- readonly outputs: readonly [{
88
- readonly internalType: "uint256";
89
- readonly name: "";
90
- readonly type: "uint256";
91
- }];
92
- readonly stateMutability: "view";
93
- readonly type: "function";
94
- }, {
95
- readonly inputs: readonly [];
96
- readonly name: "totalSupply";
97
- readonly outputs: readonly [{
98
- readonly internalType: "uint256";
99
- readonly name: "";
100
- readonly type: "uint256";
101
- }];
102
- readonly stateMutability: "view";
103
- readonly type: "function";
104
- }, {
105
- readonly inputs: readonly [{
106
- readonly internalType: "address";
107
- readonly name: "to";
108
- readonly type: "address";
109
- }, {
110
- readonly internalType: "uint256";
111
- readonly name: "amount";
112
- readonly type: "uint256";
113
- }];
114
- readonly name: "transfer";
115
- readonly outputs: readonly [{
116
- readonly internalType: "bool";
117
- readonly name: "";
118
- readonly type: "bool";
119
- }];
120
- readonly stateMutability: "nonpayable";
121
- readonly type: "function";
122
- }, {
123
- readonly inputs: readonly [{
124
- readonly internalType: "address";
125
- readonly name: "from";
126
- readonly type: "address";
127
- }, {
128
- readonly internalType: "address";
129
- readonly name: "to";
130
- readonly type: "address";
131
- }, {
132
- readonly internalType: "uint256";
133
- readonly name: "amount";
134
- readonly type: "uint256";
135
- }];
136
- readonly name: "transferFrom";
137
- readonly outputs: readonly [{
138
- readonly internalType: "bool";
139
- readonly name: "";
140
- readonly type: "bool";
141
- }];
142
- readonly stateMutability: "nonpayable";
143
- readonly type: "function";
144
- }];
5
+ static readonly abi: ({
6
+ anonymous: boolean;
7
+ inputs: {
8
+ indexed: boolean;
9
+ internalType: string;
10
+ name: string;
11
+ type: string;
12
+ }[];
13
+ name: string;
14
+ type: string;
15
+ outputs?: undefined;
16
+ stateMutability?: undefined;
17
+ } | {
18
+ inputs: {
19
+ internalType: string;
20
+ name: string;
21
+ type: string;
22
+ }[];
23
+ name: string;
24
+ outputs: {
25
+ internalType: string;
26
+ name: string;
27
+ type: string;
28
+ }[];
29
+ stateMutability: string;
30
+ type: string;
31
+ anonymous?: undefined;
32
+ })[];
145
33
  static createInterface(): IERC20Interface;
146
- static connect(address: string, runner?: ContractRunner | null): IERC20;
34
+ static connect(address: string, signerOrProvider: Signer | Provider): IERC20;
147
35
  }