@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,129 +1,142 @@
1
- import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, EventFragment, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
2
- import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, TypedContractMethod } from "../../../../common";
3
- export interface IERC20Interface extends Interface {
4
- getFunction(nameOrSignature: "allowance" | "approve" | "balanceOf" | "totalSupply" | "transfer" | "transferFrom"): FunctionFragment;
5
- getEvent(nameOrSignatureOrTopic: "Approval" | "Transfer"): EventFragment;
6
- encodeFunctionData(functionFragment: "allowance", values: [AddressLike, AddressLike]): string;
7
- encodeFunctionData(functionFragment: "approve", values: [AddressLike, BigNumberish]): string;
8
- encodeFunctionData(functionFragment: "balanceOf", values: [AddressLike]): string;
1
+ import type { BaseContract, BigNumber, BigNumberish, BytesLike, CallOverrides, ContractTransaction, Overrides, PopulatedTransaction, Signer, utils } from "ethers-v5";
2
+ import type { FunctionFragment, Result, EventFragment } from "@ethersproject/abi";
3
+ import type { Listener, Provider } from "@ethersproject/providers";
4
+ import type { TypedEventFilter, TypedEvent, TypedListener, OnEvent, PromiseOrValue } from "../../../../common";
5
+ export interface IERC20Interface extends utils.Interface {
6
+ functions: {
7
+ "allowance(address,address)": FunctionFragment;
8
+ "approve(address,uint256)": FunctionFragment;
9
+ "balanceOf(address)": FunctionFragment;
10
+ "totalSupply()": FunctionFragment;
11
+ "transfer(address,uint256)": FunctionFragment;
12
+ "transferFrom(address,address,uint256)": FunctionFragment;
13
+ };
14
+ getFunction(nameOrSignatureOrTopic: "allowance" | "approve" | "balanceOf" | "totalSupply" | "transfer" | "transferFrom"): FunctionFragment;
15
+ encodeFunctionData(functionFragment: "allowance", values: [PromiseOrValue<string>, PromiseOrValue<string>]): string;
16
+ encodeFunctionData(functionFragment: "approve", values: [PromiseOrValue<string>, PromiseOrValue<BigNumberish>]): string;
17
+ encodeFunctionData(functionFragment: "balanceOf", values: [PromiseOrValue<string>]): string;
9
18
  encodeFunctionData(functionFragment: "totalSupply", values?: undefined): string;
10
- encodeFunctionData(functionFragment: "transfer", values: [AddressLike, BigNumberish]): string;
11
- encodeFunctionData(functionFragment: "transferFrom", values: [AddressLike, AddressLike, BigNumberish]): string;
19
+ encodeFunctionData(functionFragment: "transfer", values: [PromiseOrValue<string>, PromiseOrValue<BigNumberish>]): string;
20
+ encodeFunctionData(functionFragment: "transferFrom", values: [
21
+ PromiseOrValue<string>,
22
+ PromiseOrValue<string>,
23
+ PromiseOrValue<BigNumberish>
24
+ ]): string;
12
25
  decodeFunctionResult(functionFragment: "allowance", data: BytesLike): Result;
13
26
  decodeFunctionResult(functionFragment: "approve", data: BytesLike): Result;
14
27
  decodeFunctionResult(functionFragment: "balanceOf", data: BytesLike): Result;
15
28
  decodeFunctionResult(functionFragment: "totalSupply", data: BytesLike): Result;
16
29
  decodeFunctionResult(functionFragment: "transfer", data: BytesLike): Result;
17
30
  decodeFunctionResult(functionFragment: "transferFrom", data: BytesLike): Result;
31
+ events: {
32
+ "Approval(address,address,uint256)": EventFragment;
33
+ "Transfer(address,address,uint256)": EventFragment;
34
+ };
35
+ getEvent(nameOrSignatureOrTopic: "Approval"): EventFragment;
36
+ getEvent(nameOrSignatureOrTopic: "Transfer"): EventFragment;
18
37
  }
19
- export declare namespace ApprovalEvent {
20
- type InputTuple = [
21
- owner: AddressLike,
22
- spender: AddressLike,
23
- value: BigNumberish
24
- ];
25
- type OutputTuple = [owner: string, spender: string, value: bigint];
26
- interface OutputObject {
27
- owner: string;
28
- spender: string;
29
- value: bigint;
30
- }
31
- type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
32
- type Filter = TypedDeferredTopicFilter<Event>;
33
- type Log = TypedEventLog<Event>;
34
- type LogDescription = TypedLogDescription<Event>;
38
+ export interface ApprovalEventObject {
39
+ owner: string;
40
+ spender: string;
41
+ value: BigNumber;
35
42
  }
36
- export declare namespace TransferEvent {
37
- type InputTuple = [
38
- from: AddressLike,
39
- to: AddressLike,
40
- value: BigNumberish
41
- ];
42
- type OutputTuple = [from: string, to: string, value: bigint];
43
- interface OutputObject {
44
- from: string;
45
- to: string;
46
- value: bigint;
47
- }
48
- type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
49
- type Filter = TypedDeferredTopicFilter<Event>;
50
- type Log = TypedEventLog<Event>;
51
- type LogDescription = TypedLogDescription<Event>;
43
+ export type ApprovalEvent = TypedEvent<[
44
+ string,
45
+ string,
46
+ BigNumber
47
+ ], ApprovalEventObject>;
48
+ export type ApprovalEventFilter = TypedEventFilter<ApprovalEvent>;
49
+ export interface TransferEventObject {
50
+ from: string;
51
+ to: string;
52
+ value: BigNumber;
52
53
  }
54
+ export type TransferEvent = TypedEvent<[
55
+ string,
56
+ string,
57
+ BigNumber
58
+ ], TransferEventObject>;
59
+ export type TransferEventFilter = TypedEventFilter<TransferEvent>;
53
60
  export interface IERC20 extends BaseContract {
54
- connect(runner?: ContractRunner | null): IERC20;
55
- waitForDeployment(): Promise<this>;
61
+ connect(signerOrProvider: Signer | Provider | string): this;
62
+ attach(addressOrName: string): this;
63
+ deployed(): Promise<this>;
56
64
  interface: IERC20Interface;
57
- queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
58
- queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
59
- on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
60
- on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
61
- once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
62
- once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
63
- listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
64
- listeners(eventName?: string): Promise<Array<Listener>>;
65
- removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
66
- allowance: TypedContractMethod<[
67
- owner: AddressLike,
68
- spender: AddressLike
69
- ], [
70
- bigint
71
- ], "view">;
72
- approve: TypedContractMethod<[
73
- spender: AddressLike,
74
- amount: BigNumberish
75
- ], [
76
- boolean
77
- ], "nonpayable">;
78
- balanceOf: TypedContractMethod<[account: AddressLike], [bigint], "view">;
79
- totalSupply: TypedContractMethod<[], [bigint], "view">;
80
- transfer: TypedContractMethod<[
81
- to: AddressLike,
82
- amount: BigNumberish
83
- ], [
84
- boolean
85
- ], "nonpayable">;
86
- transferFrom: TypedContractMethod<[
87
- from: AddressLike,
88
- to: AddressLike,
89
- amount: BigNumberish
90
- ], [
91
- boolean
92
- ], "nonpayable">;
93
- getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
94
- getFunction(nameOrSignature: "allowance"): TypedContractMethod<[
95
- owner: AddressLike,
96
- spender: AddressLike
97
- ], [
98
- bigint
99
- ], "view">;
100
- getFunction(nameOrSignature: "approve"): TypedContractMethod<[
101
- spender: AddressLike,
102
- amount: BigNumberish
103
- ], [
104
- boolean
105
- ], "nonpayable">;
106
- getFunction(nameOrSignature: "balanceOf"): TypedContractMethod<[account: AddressLike], [bigint], "view">;
107
- getFunction(nameOrSignature: "totalSupply"): TypedContractMethod<[], [bigint], "view">;
108
- getFunction(nameOrSignature: "transfer"): TypedContractMethod<[
109
- to: AddressLike,
110
- amount: BigNumberish
111
- ], [
112
- boolean
113
- ], "nonpayable">;
114
- getFunction(nameOrSignature: "transferFrom"): TypedContractMethod<[
115
- from: AddressLike,
116
- to: AddressLike,
117
- amount: BigNumberish
118
- ], [
119
- boolean
120
- ], "nonpayable">;
121
- getEvent(key: "Approval"): TypedContractEvent<ApprovalEvent.InputTuple, ApprovalEvent.OutputTuple, ApprovalEvent.OutputObject>;
122
- getEvent(key: "Transfer"): TypedContractEvent<TransferEvent.InputTuple, TransferEvent.OutputTuple, TransferEvent.OutputObject>;
65
+ queryFilter<TEvent extends TypedEvent>(event: TypedEventFilter<TEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TEvent>>;
66
+ listeners<TEvent extends TypedEvent>(eventFilter?: TypedEventFilter<TEvent>): Array<TypedListener<TEvent>>;
67
+ listeners(eventName?: string): Array<Listener>;
68
+ removeAllListeners<TEvent extends TypedEvent>(eventFilter: TypedEventFilter<TEvent>): this;
69
+ removeAllListeners(eventName?: string): this;
70
+ off: OnEvent<this>;
71
+ on: OnEvent<this>;
72
+ once: OnEvent<this>;
73
+ removeListener: OnEvent<this>;
74
+ functions: {
75
+ allowance(owner: PromiseOrValue<string>, spender: PromiseOrValue<string>, overrides?: CallOverrides): Promise<[BigNumber]>;
76
+ approve(spender: PromiseOrValue<string>, amount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
77
+ from?: PromiseOrValue<string>;
78
+ }): Promise<ContractTransaction>;
79
+ balanceOf(account: PromiseOrValue<string>, overrides?: CallOverrides): Promise<[BigNumber]>;
80
+ totalSupply(overrides?: CallOverrides): Promise<[BigNumber]>;
81
+ transfer(to: PromiseOrValue<string>, amount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
82
+ from?: PromiseOrValue<string>;
83
+ }): Promise<ContractTransaction>;
84
+ transferFrom(from: PromiseOrValue<string>, to: PromiseOrValue<string>, amount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
85
+ from?: PromiseOrValue<string>;
86
+ }): Promise<ContractTransaction>;
87
+ };
88
+ allowance(owner: PromiseOrValue<string>, spender: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>;
89
+ approve(spender: PromiseOrValue<string>, amount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
90
+ from?: PromiseOrValue<string>;
91
+ }): Promise<ContractTransaction>;
92
+ balanceOf(account: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>;
93
+ totalSupply(overrides?: CallOverrides): Promise<BigNumber>;
94
+ transfer(to: PromiseOrValue<string>, amount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
95
+ from?: PromiseOrValue<string>;
96
+ }): Promise<ContractTransaction>;
97
+ transferFrom(from: PromiseOrValue<string>, to: PromiseOrValue<string>, amount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
98
+ from?: PromiseOrValue<string>;
99
+ }): Promise<ContractTransaction>;
100
+ callStatic: {
101
+ allowance(owner: PromiseOrValue<string>, spender: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>;
102
+ approve(spender: PromiseOrValue<string>, amount: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<boolean>;
103
+ balanceOf(account: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>;
104
+ totalSupply(overrides?: CallOverrides): Promise<BigNumber>;
105
+ transfer(to: PromiseOrValue<string>, amount: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<boolean>;
106
+ transferFrom(from: PromiseOrValue<string>, to: PromiseOrValue<string>, amount: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<boolean>;
107
+ };
123
108
  filters: {
124
- "Approval(address,address,uint256)": TypedContractEvent<ApprovalEvent.InputTuple, ApprovalEvent.OutputTuple, ApprovalEvent.OutputObject>;
125
- Approval: TypedContractEvent<ApprovalEvent.InputTuple, ApprovalEvent.OutputTuple, ApprovalEvent.OutputObject>;
126
- "Transfer(address,address,uint256)": TypedContractEvent<TransferEvent.InputTuple, TransferEvent.OutputTuple, TransferEvent.OutputObject>;
127
- Transfer: TypedContractEvent<TransferEvent.InputTuple, TransferEvent.OutputTuple, TransferEvent.OutputObject>;
109
+ "Approval(address,address,uint256)"(owner?: PromiseOrValue<string> | null, spender?: PromiseOrValue<string> | null, value?: null): ApprovalEventFilter;
110
+ Approval(owner?: PromiseOrValue<string> | null, spender?: PromiseOrValue<string> | null, value?: null): ApprovalEventFilter;
111
+ "Transfer(address,address,uint256)"(from?: PromiseOrValue<string> | null, to?: PromiseOrValue<string> | null, value?: null): TransferEventFilter;
112
+ Transfer(from?: PromiseOrValue<string> | null, to?: PromiseOrValue<string> | null, value?: null): TransferEventFilter;
113
+ };
114
+ estimateGas: {
115
+ allowance(owner: PromiseOrValue<string>, spender: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>;
116
+ approve(spender: PromiseOrValue<string>, amount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
117
+ from?: PromiseOrValue<string>;
118
+ }): Promise<BigNumber>;
119
+ balanceOf(account: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>;
120
+ totalSupply(overrides?: CallOverrides): Promise<BigNumber>;
121
+ transfer(to: PromiseOrValue<string>, amount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
122
+ from?: PromiseOrValue<string>;
123
+ }): Promise<BigNumber>;
124
+ transferFrom(from: PromiseOrValue<string>, to: PromiseOrValue<string>, amount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
125
+ from?: PromiseOrValue<string>;
126
+ }): Promise<BigNumber>;
127
+ };
128
+ populateTransaction: {
129
+ allowance(owner: PromiseOrValue<string>, spender: PromiseOrValue<string>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
130
+ approve(spender: PromiseOrValue<string>, amount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
131
+ from?: PromiseOrValue<string>;
132
+ }): Promise<PopulatedTransaction>;
133
+ balanceOf(account: PromiseOrValue<string>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
134
+ totalSupply(overrides?: CallOverrides): Promise<PopulatedTransaction>;
135
+ transfer(to: PromiseOrValue<string>, amount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
136
+ from?: PromiseOrValue<string>;
137
+ }): Promise<PopulatedTransaction>;
138
+ transferFrom(from: PromiseOrValue<string>, to: PromiseOrValue<string>, amount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
139
+ from?: PromiseOrValue<string>;
140
+ }): Promise<PopulatedTransaction>;
128
141
  };
129
142
  }