@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.
- package/dist/browser/index.js +84 -8
- package/dist/node/index.cjs +27 -25
- package/dist/node/index.js +6 -4
- package/dist/types/contracts/@openzeppelin/contracts/token/ERC20/IERC20.d.ts +127 -114
- package/dist/types/contracts/@openzeppelin/contracts/token/ERC721/IERC721.d.ts +201 -180
- package/dist/types/contracts/@openzeppelin/contracts/utils/introspection/IERC165.d.ts +36 -23
- package/dist/types/contracts/common.d.ts +12 -40
- package/dist/types/contracts/contracts/v3/Core.d.ts +1194 -991
- package/dist/types/contracts/contracts/v3/Registration.d.ts +165 -151
- package/dist/types/contracts/contracts/v4/CoreV4.d.ts +1569 -1497
- package/dist/types/contracts/contracts/v4/RegistrationV4.d.ts +129 -97
- package/dist/types/contracts/factories/@openzeppelin/contracts/token/ERC20/IERC20__factory.d.ts +31 -143
- package/dist/types/contracts/factories/@openzeppelin/contracts/token/ERC721/IERC721__factory.d.ts +31 -223
- package/dist/types/contracts/factories/@openzeppelin/contracts/utils/introspection/IERC165__factory.d.ts +18 -17
- package/dist/types/contracts/factories/contracts/v3/Core__factory.d.ts +31 -1250
- package/dist/types/contracts/factories/contracts/v3/Registration__factory.d.ts +37 -206
- package/dist/types/contracts/factories/contracts/v4/CoreV4__factory.d.ts +38 -1886
- package/dist/types/contracts/factories/contracts/v4/RegistrationV4__factory.d.ts +47 -160
- package/dist/types/types/api.d.ts +3 -1
- package/dist/types/types/signers.d.ts +1 -1
- package/dist/types/utils/crypto/crypto.d.ts +1 -1
- package/dist/types/utils/stark/legacy/crypto/crypto.d.ts +2 -0
- package/dist/types/utils/stark/starkCurve.d.ts +1 -1
- package/dist/types/workflows/minting.d.ts +1 -1
- package/dist/types/workflows/workflows.d.ts +1 -1
- package/package.json +14 -5
|
@@ -1,18 +1,44 @@
|
|
|
1
|
-
import type { BaseContract, BigNumberish, BytesLike,
|
|
2
|
-
import type {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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 IERC721Interface extends utils.Interface {
|
|
6
|
+
functions: {
|
|
7
|
+
"approve(address,uint256)": FunctionFragment;
|
|
8
|
+
"balanceOf(address)": FunctionFragment;
|
|
9
|
+
"getApproved(uint256)": FunctionFragment;
|
|
10
|
+
"isApprovedForAll(address,address)": FunctionFragment;
|
|
11
|
+
"ownerOf(uint256)": FunctionFragment;
|
|
12
|
+
"safeTransferFrom(address,address,uint256)": FunctionFragment;
|
|
13
|
+
"safeTransferFrom(address,address,uint256,bytes)": FunctionFragment;
|
|
14
|
+
"setApprovalForAll(address,bool)": FunctionFragment;
|
|
15
|
+
"supportsInterface(bytes4)": FunctionFragment;
|
|
16
|
+
"transferFrom(address,address,uint256)": FunctionFragment;
|
|
17
|
+
};
|
|
18
|
+
getFunction(nameOrSignatureOrTopic: "approve" | "balanceOf" | "getApproved" | "isApprovedForAll" | "ownerOf" | "safeTransferFrom(address,address,uint256)" | "safeTransferFrom(address,address,uint256,bytes)" | "setApprovalForAll" | "supportsInterface" | "transferFrom"): FunctionFragment;
|
|
19
|
+
encodeFunctionData(functionFragment: "approve", values: [PromiseOrValue<string>, PromiseOrValue<BigNumberish>]): string;
|
|
20
|
+
encodeFunctionData(functionFragment: "balanceOf", values: [PromiseOrValue<string>]): string;
|
|
21
|
+
encodeFunctionData(functionFragment: "getApproved", values: [PromiseOrValue<BigNumberish>]): string;
|
|
22
|
+
encodeFunctionData(functionFragment: "isApprovedForAll", values: [PromiseOrValue<string>, PromiseOrValue<string>]): string;
|
|
23
|
+
encodeFunctionData(functionFragment: "ownerOf", values: [PromiseOrValue<BigNumberish>]): string;
|
|
24
|
+
encodeFunctionData(functionFragment: "safeTransferFrom(address,address,uint256)", values: [
|
|
25
|
+
PromiseOrValue<string>,
|
|
26
|
+
PromiseOrValue<string>,
|
|
27
|
+
PromiseOrValue<BigNumberish>
|
|
28
|
+
]): string;
|
|
29
|
+
encodeFunctionData(functionFragment: "safeTransferFrom(address,address,uint256,bytes)", values: [
|
|
30
|
+
PromiseOrValue<string>,
|
|
31
|
+
PromiseOrValue<string>,
|
|
32
|
+
PromiseOrValue<BigNumberish>,
|
|
33
|
+
PromiseOrValue<BytesLike>
|
|
34
|
+
]): string;
|
|
35
|
+
encodeFunctionData(functionFragment: "setApprovalForAll", values: [PromiseOrValue<string>, PromiseOrValue<boolean>]): string;
|
|
36
|
+
encodeFunctionData(functionFragment: "supportsInterface", values: [PromiseOrValue<BytesLike>]): string;
|
|
37
|
+
encodeFunctionData(functionFragment: "transferFrom", values: [
|
|
38
|
+
PromiseOrValue<string>,
|
|
39
|
+
PromiseOrValue<string>,
|
|
40
|
+
PromiseOrValue<BigNumberish>
|
|
41
|
+
]): string;
|
|
16
42
|
decodeFunctionResult(functionFragment: "approve", data: BytesLike): Result;
|
|
17
43
|
decodeFunctionResult(functionFragment: "balanceOf", data: BytesLike): Result;
|
|
18
44
|
decodeFunctionResult(functionFragment: "getApproved", data: BytesLike): Result;
|
|
@@ -23,177 +49,172 @@ export interface IERC721Interface extends Interface {
|
|
|
23
49
|
decodeFunctionResult(functionFragment: "setApprovalForAll", data: BytesLike): Result;
|
|
24
50
|
decodeFunctionResult(functionFragment: "supportsInterface", data: BytesLike): Result;
|
|
25
51
|
decodeFunctionResult(functionFragment: "transferFrom", data: BytesLike): Result;
|
|
52
|
+
events: {
|
|
53
|
+
"Approval(address,address,uint256)": EventFragment;
|
|
54
|
+
"ApprovalForAll(address,address,bool)": EventFragment;
|
|
55
|
+
"Transfer(address,address,uint256)": EventFragment;
|
|
56
|
+
};
|
|
57
|
+
getEvent(nameOrSignatureOrTopic: "Approval"): EventFragment;
|
|
58
|
+
getEvent(nameOrSignatureOrTopic: "ApprovalForAll"): EventFragment;
|
|
59
|
+
getEvent(nameOrSignatureOrTopic: "Transfer"): EventFragment;
|
|
26
60
|
}
|
|
27
|
-
export
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
tokenId: BigNumberish
|
|
32
|
-
];
|
|
33
|
-
type OutputTuple = [owner: string, approved: string, tokenId: bigint];
|
|
34
|
-
interface OutputObject {
|
|
35
|
-
owner: string;
|
|
36
|
-
approved: string;
|
|
37
|
-
tokenId: bigint;
|
|
38
|
-
}
|
|
39
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
40
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
41
|
-
type Log = TypedEventLog<Event>;
|
|
42
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
61
|
+
export interface ApprovalEventObject {
|
|
62
|
+
owner: string;
|
|
63
|
+
approved: string;
|
|
64
|
+
tokenId: BigNumber;
|
|
43
65
|
}
|
|
44
|
-
export
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
];
|
|
55
|
-
interface OutputObject {
|
|
56
|
-
owner: string;
|
|
57
|
-
operator: string;
|
|
58
|
-
approved: boolean;
|
|
59
|
-
}
|
|
60
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
61
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
62
|
-
type Log = TypedEventLog<Event>;
|
|
63
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
66
|
+
export type ApprovalEvent = TypedEvent<[
|
|
67
|
+
string,
|
|
68
|
+
string,
|
|
69
|
+
BigNumber
|
|
70
|
+
], ApprovalEventObject>;
|
|
71
|
+
export type ApprovalEventFilter = TypedEventFilter<ApprovalEvent>;
|
|
72
|
+
export interface ApprovalForAllEventObject {
|
|
73
|
+
owner: string;
|
|
74
|
+
operator: string;
|
|
75
|
+
approved: boolean;
|
|
64
76
|
}
|
|
65
|
-
export
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
tokenId: bigint;
|
|
76
|
-
}
|
|
77
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
78
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
79
|
-
type Log = TypedEventLog<Event>;
|
|
80
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
77
|
+
export type ApprovalForAllEvent = TypedEvent<[
|
|
78
|
+
string,
|
|
79
|
+
string,
|
|
80
|
+
boolean
|
|
81
|
+
], ApprovalForAllEventObject>;
|
|
82
|
+
export type ApprovalForAllEventFilter = TypedEventFilter<ApprovalForAllEvent>;
|
|
83
|
+
export interface TransferEventObject {
|
|
84
|
+
from: string;
|
|
85
|
+
to: string;
|
|
86
|
+
tokenId: BigNumber;
|
|
81
87
|
}
|
|
88
|
+
export type TransferEvent = TypedEvent<[
|
|
89
|
+
string,
|
|
90
|
+
string,
|
|
91
|
+
BigNumber
|
|
92
|
+
], TransferEventObject>;
|
|
93
|
+
export type TransferEventFilter = TypedEventFilter<TransferEvent>;
|
|
82
94
|
export interface IERC721 extends BaseContract {
|
|
83
|
-
connect(
|
|
84
|
-
|
|
95
|
+
connect(signerOrProvider: Signer | Provider | string): this;
|
|
96
|
+
attach(addressOrName: string): this;
|
|
97
|
+
deployed(): Promise<this>;
|
|
85
98
|
interface: IERC721Interface;
|
|
86
|
-
queryFilter<
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
to:
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
operator:
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
to:
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
to:
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
from
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
tokenId: BigNumberish
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
], [
|
|
156
|
-
boolean
|
|
157
|
-
], "view">;
|
|
158
|
-
getFunction(nameOrSignature: "ownerOf"): TypedContractMethod<[tokenId: BigNumberish], [string], "view">;
|
|
159
|
-
getFunction(nameOrSignature: "safeTransferFrom(address,address,uint256)"): TypedContractMethod<[
|
|
160
|
-
from: AddressLike,
|
|
161
|
-
to: AddressLike,
|
|
162
|
-
tokenId: BigNumberish
|
|
163
|
-
], [
|
|
164
|
-
void
|
|
165
|
-
], "nonpayable">;
|
|
166
|
-
getFunction(nameOrSignature: "safeTransferFrom(address,address,uint256,bytes)"): TypedContractMethod<[
|
|
167
|
-
from: AddressLike,
|
|
168
|
-
to: AddressLike,
|
|
169
|
-
tokenId: BigNumberish,
|
|
170
|
-
data: BytesLike
|
|
171
|
-
], [
|
|
172
|
-
void
|
|
173
|
-
], "nonpayable">;
|
|
174
|
-
getFunction(nameOrSignature: "setApprovalForAll"): TypedContractMethod<[
|
|
175
|
-
operator: AddressLike,
|
|
176
|
-
_approved: boolean
|
|
177
|
-
], [
|
|
178
|
-
void
|
|
179
|
-
], "nonpayable">;
|
|
180
|
-
getFunction(nameOrSignature: "supportsInterface"): TypedContractMethod<[interfaceId: BytesLike], [boolean], "view">;
|
|
181
|
-
getFunction(nameOrSignature: "transferFrom"): TypedContractMethod<[
|
|
182
|
-
from: AddressLike,
|
|
183
|
-
to: AddressLike,
|
|
184
|
-
tokenId: BigNumberish
|
|
185
|
-
], [
|
|
186
|
-
void
|
|
187
|
-
], "nonpayable">;
|
|
188
|
-
getEvent(key: "Approval"): TypedContractEvent<ApprovalEvent.InputTuple, ApprovalEvent.OutputTuple, ApprovalEvent.OutputObject>;
|
|
189
|
-
getEvent(key: "ApprovalForAll"): TypedContractEvent<ApprovalForAllEvent.InputTuple, ApprovalForAllEvent.OutputTuple, ApprovalForAllEvent.OutputObject>;
|
|
190
|
-
getEvent(key: "Transfer"): TypedContractEvent<TransferEvent.InputTuple, TransferEvent.OutputTuple, TransferEvent.OutputObject>;
|
|
99
|
+
queryFilter<TEvent extends TypedEvent>(event: TypedEventFilter<TEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TEvent>>;
|
|
100
|
+
listeners<TEvent extends TypedEvent>(eventFilter?: TypedEventFilter<TEvent>): Array<TypedListener<TEvent>>;
|
|
101
|
+
listeners(eventName?: string): Array<Listener>;
|
|
102
|
+
removeAllListeners<TEvent extends TypedEvent>(eventFilter: TypedEventFilter<TEvent>): this;
|
|
103
|
+
removeAllListeners(eventName?: string): this;
|
|
104
|
+
off: OnEvent<this>;
|
|
105
|
+
on: OnEvent<this>;
|
|
106
|
+
once: OnEvent<this>;
|
|
107
|
+
removeListener: OnEvent<this>;
|
|
108
|
+
functions: {
|
|
109
|
+
approve(to: PromiseOrValue<string>, tokenId: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
|
|
110
|
+
from?: PromiseOrValue<string>;
|
|
111
|
+
}): Promise<ContractTransaction>;
|
|
112
|
+
balanceOf(owner: PromiseOrValue<string>, overrides?: CallOverrides): Promise<[BigNumber] & {
|
|
113
|
+
balance: BigNumber;
|
|
114
|
+
}>;
|
|
115
|
+
getApproved(tokenId: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<[string] & {
|
|
116
|
+
operator: string;
|
|
117
|
+
}>;
|
|
118
|
+
isApprovedForAll(owner: PromiseOrValue<string>, operator: PromiseOrValue<string>, overrides?: CallOverrides): Promise<[boolean]>;
|
|
119
|
+
ownerOf(tokenId: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<[string] & {
|
|
120
|
+
owner: string;
|
|
121
|
+
}>;
|
|
122
|
+
"safeTransferFrom(address,address,uint256)"(from: PromiseOrValue<string>, to: PromiseOrValue<string>, tokenId: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
|
|
123
|
+
from?: PromiseOrValue<string>;
|
|
124
|
+
}): Promise<ContractTransaction>;
|
|
125
|
+
"safeTransferFrom(address,address,uint256,bytes)"(from: PromiseOrValue<string>, to: PromiseOrValue<string>, tokenId: PromiseOrValue<BigNumberish>, data: PromiseOrValue<BytesLike>, overrides?: Overrides & {
|
|
126
|
+
from?: PromiseOrValue<string>;
|
|
127
|
+
}): Promise<ContractTransaction>;
|
|
128
|
+
setApprovalForAll(operator: PromiseOrValue<string>, _approved: PromiseOrValue<boolean>, overrides?: Overrides & {
|
|
129
|
+
from?: PromiseOrValue<string>;
|
|
130
|
+
}): Promise<ContractTransaction>;
|
|
131
|
+
supportsInterface(interfaceId: PromiseOrValue<BytesLike>, overrides?: CallOverrides): Promise<[boolean]>;
|
|
132
|
+
transferFrom(from: PromiseOrValue<string>, to: PromiseOrValue<string>, tokenId: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
|
|
133
|
+
from?: PromiseOrValue<string>;
|
|
134
|
+
}): Promise<ContractTransaction>;
|
|
135
|
+
};
|
|
136
|
+
approve(to: PromiseOrValue<string>, tokenId: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
|
|
137
|
+
from?: PromiseOrValue<string>;
|
|
138
|
+
}): Promise<ContractTransaction>;
|
|
139
|
+
balanceOf(owner: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>;
|
|
140
|
+
getApproved(tokenId: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<string>;
|
|
141
|
+
isApprovedForAll(owner: PromiseOrValue<string>, operator: PromiseOrValue<string>, overrides?: CallOverrides): Promise<boolean>;
|
|
142
|
+
ownerOf(tokenId: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<string>;
|
|
143
|
+
"safeTransferFrom(address,address,uint256)"(from: PromiseOrValue<string>, to: PromiseOrValue<string>, tokenId: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
|
|
144
|
+
from?: PromiseOrValue<string>;
|
|
145
|
+
}): Promise<ContractTransaction>;
|
|
146
|
+
"safeTransferFrom(address,address,uint256,bytes)"(from: PromiseOrValue<string>, to: PromiseOrValue<string>, tokenId: PromiseOrValue<BigNumberish>, data: PromiseOrValue<BytesLike>, overrides?: Overrides & {
|
|
147
|
+
from?: PromiseOrValue<string>;
|
|
148
|
+
}): Promise<ContractTransaction>;
|
|
149
|
+
setApprovalForAll(operator: PromiseOrValue<string>, _approved: PromiseOrValue<boolean>, overrides?: Overrides & {
|
|
150
|
+
from?: PromiseOrValue<string>;
|
|
151
|
+
}): Promise<ContractTransaction>;
|
|
152
|
+
supportsInterface(interfaceId: PromiseOrValue<BytesLike>, overrides?: CallOverrides): Promise<boolean>;
|
|
153
|
+
transferFrom(from: PromiseOrValue<string>, to: PromiseOrValue<string>, tokenId: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
|
|
154
|
+
from?: PromiseOrValue<string>;
|
|
155
|
+
}): Promise<ContractTransaction>;
|
|
156
|
+
callStatic: {
|
|
157
|
+
approve(to: PromiseOrValue<string>, tokenId: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<void>;
|
|
158
|
+
balanceOf(owner: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>;
|
|
159
|
+
getApproved(tokenId: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<string>;
|
|
160
|
+
isApprovedForAll(owner: PromiseOrValue<string>, operator: PromiseOrValue<string>, overrides?: CallOverrides): Promise<boolean>;
|
|
161
|
+
ownerOf(tokenId: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<string>;
|
|
162
|
+
"safeTransferFrom(address,address,uint256)"(from: PromiseOrValue<string>, to: PromiseOrValue<string>, tokenId: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<void>;
|
|
163
|
+
"safeTransferFrom(address,address,uint256,bytes)"(from: PromiseOrValue<string>, to: PromiseOrValue<string>, tokenId: PromiseOrValue<BigNumberish>, data: PromiseOrValue<BytesLike>, overrides?: CallOverrides): Promise<void>;
|
|
164
|
+
setApprovalForAll(operator: PromiseOrValue<string>, _approved: PromiseOrValue<boolean>, overrides?: CallOverrides): Promise<void>;
|
|
165
|
+
supportsInterface(interfaceId: PromiseOrValue<BytesLike>, overrides?: CallOverrides): Promise<boolean>;
|
|
166
|
+
transferFrom(from: PromiseOrValue<string>, to: PromiseOrValue<string>, tokenId: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<void>;
|
|
167
|
+
};
|
|
191
168
|
filters: {
|
|
192
|
-
"Approval(address,address,uint256)"
|
|
193
|
-
Approval
|
|
194
|
-
"ApprovalForAll(address,address,bool)"
|
|
195
|
-
ApprovalForAll
|
|
196
|
-
"Transfer(address,address,uint256)"
|
|
197
|
-
Transfer
|
|
169
|
+
"Approval(address,address,uint256)"(owner?: PromiseOrValue<string> | null, approved?: PromiseOrValue<string> | null, tokenId?: PromiseOrValue<BigNumberish> | null): ApprovalEventFilter;
|
|
170
|
+
Approval(owner?: PromiseOrValue<string> | null, approved?: PromiseOrValue<string> | null, tokenId?: PromiseOrValue<BigNumberish> | null): ApprovalEventFilter;
|
|
171
|
+
"ApprovalForAll(address,address,bool)"(owner?: PromiseOrValue<string> | null, operator?: PromiseOrValue<string> | null, approved?: null): ApprovalForAllEventFilter;
|
|
172
|
+
ApprovalForAll(owner?: PromiseOrValue<string> | null, operator?: PromiseOrValue<string> | null, approved?: null): ApprovalForAllEventFilter;
|
|
173
|
+
"Transfer(address,address,uint256)"(from?: PromiseOrValue<string> | null, to?: PromiseOrValue<string> | null, tokenId?: PromiseOrValue<BigNumberish> | null): TransferEventFilter;
|
|
174
|
+
Transfer(from?: PromiseOrValue<string> | null, to?: PromiseOrValue<string> | null, tokenId?: PromiseOrValue<BigNumberish> | null): TransferEventFilter;
|
|
175
|
+
};
|
|
176
|
+
estimateGas: {
|
|
177
|
+
approve(to: PromiseOrValue<string>, tokenId: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
|
|
178
|
+
from?: PromiseOrValue<string>;
|
|
179
|
+
}): Promise<BigNumber>;
|
|
180
|
+
balanceOf(owner: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>;
|
|
181
|
+
getApproved(tokenId: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<BigNumber>;
|
|
182
|
+
isApprovedForAll(owner: PromiseOrValue<string>, operator: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>;
|
|
183
|
+
ownerOf(tokenId: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<BigNumber>;
|
|
184
|
+
"safeTransferFrom(address,address,uint256)"(from: PromiseOrValue<string>, to: PromiseOrValue<string>, tokenId: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
|
|
185
|
+
from?: PromiseOrValue<string>;
|
|
186
|
+
}): Promise<BigNumber>;
|
|
187
|
+
"safeTransferFrom(address,address,uint256,bytes)"(from: PromiseOrValue<string>, to: PromiseOrValue<string>, tokenId: PromiseOrValue<BigNumberish>, data: PromiseOrValue<BytesLike>, overrides?: Overrides & {
|
|
188
|
+
from?: PromiseOrValue<string>;
|
|
189
|
+
}): Promise<BigNumber>;
|
|
190
|
+
setApprovalForAll(operator: PromiseOrValue<string>, _approved: PromiseOrValue<boolean>, overrides?: Overrides & {
|
|
191
|
+
from?: PromiseOrValue<string>;
|
|
192
|
+
}): Promise<BigNumber>;
|
|
193
|
+
supportsInterface(interfaceId: PromiseOrValue<BytesLike>, overrides?: CallOverrides): Promise<BigNumber>;
|
|
194
|
+
transferFrom(from: PromiseOrValue<string>, to: PromiseOrValue<string>, tokenId: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
|
|
195
|
+
from?: PromiseOrValue<string>;
|
|
196
|
+
}): Promise<BigNumber>;
|
|
197
|
+
};
|
|
198
|
+
populateTransaction: {
|
|
199
|
+
approve(to: PromiseOrValue<string>, tokenId: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
|
|
200
|
+
from?: PromiseOrValue<string>;
|
|
201
|
+
}): Promise<PopulatedTransaction>;
|
|
202
|
+
balanceOf(owner: PromiseOrValue<string>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
203
|
+
getApproved(tokenId: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
204
|
+
isApprovedForAll(owner: PromiseOrValue<string>, operator: PromiseOrValue<string>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
205
|
+
ownerOf(tokenId: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
206
|
+
"safeTransferFrom(address,address,uint256)"(from: PromiseOrValue<string>, to: PromiseOrValue<string>, tokenId: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
|
|
207
|
+
from?: PromiseOrValue<string>;
|
|
208
|
+
}): Promise<PopulatedTransaction>;
|
|
209
|
+
"safeTransferFrom(address,address,uint256,bytes)"(from: PromiseOrValue<string>, to: PromiseOrValue<string>, tokenId: PromiseOrValue<BigNumberish>, data: PromiseOrValue<BytesLike>, overrides?: Overrides & {
|
|
210
|
+
from?: PromiseOrValue<string>;
|
|
211
|
+
}): Promise<PopulatedTransaction>;
|
|
212
|
+
setApprovalForAll(operator: PromiseOrValue<string>, _approved: PromiseOrValue<boolean>, overrides?: Overrides & {
|
|
213
|
+
from?: PromiseOrValue<string>;
|
|
214
|
+
}): Promise<PopulatedTransaction>;
|
|
215
|
+
supportsInterface(interfaceId: PromiseOrValue<BytesLike>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
216
|
+
transferFrom(from: PromiseOrValue<string>, to: PromiseOrValue<string>, tokenId: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
|
|
217
|
+
from?: PromiseOrValue<string>;
|
|
218
|
+
}): Promise<PopulatedTransaction>;
|
|
198
219
|
};
|
|
199
220
|
}
|
|
@@ -1,29 +1,42 @@
|
|
|
1
|
-
import type { BaseContract,
|
|
2
|
-
import type {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import type { BaseContract, BigNumber, BytesLike, CallOverrides, 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 IERC165Interface extends utils.Interface {
|
|
6
|
+
functions: {
|
|
7
|
+
"supportsInterface(bytes4)": FunctionFragment;
|
|
8
|
+
};
|
|
9
|
+
getFunction(nameOrSignatureOrTopic: "supportsInterface"): FunctionFragment;
|
|
10
|
+
encodeFunctionData(functionFragment: "supportsInterface", values: [PromiseOrValue<BytesLike>]): string;
|
|
6
11
|
decodeFunctionResult(functionFragment: "supportsInterface", data: BytesLike): Result;
|
|
12
|
+
events: {};
|
|
7
13
|
}
|
|
8
14
|
export interface IERC165 extends BaseContract {
|
|
9
|
-
connect(
|
|
10
|
-
|
|
15
|
+
connect(signerOrProvider: Signer | Provider | string): this;
|
|
16
|
+
attach(addressOrName: string): this;
|
|
17
|
+
deployed(): Promise<this>;
|
|
11
18
|
interface: IERC165Interface;
|
|
12
|
-
queryFilter<
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
interfaceId: BytesLike
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
19
|
+
queryFilter<TEvent extends TypedEvent>(event: TypedEventFilter<TEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TEvent>>;
|
|
20
|
+
listeners<TEvent extends TypedEvent>(eventFilter?: TypedEventFilter<TEvent>): Array<TypedListener<TEvent>>;
|
|
21
|
+
listeners(eventName?: string): Array<Listener>;
|
|
22
|
+
removeAllListeners<TEvent extends TypedEvent>(eventFilter: TypedEventFilter<TEvent>): this;
|
|
23
|
+
removeAllListeners(eventName?: string): this;
|
|
24
|
+
off: OnEvent<this>;
|
|
25
|
+
on: OnEvent<this>;
|
|
26
|
+
once: OnEvent<this>;
|
|
27
|
+
removeListener: OnEvent<this>;
|
|
28
|
+
functions: {
|
|
29
|
+
supportsInterface(interfaceId: PromiseOrValue<BytesLike>, overrides?: CallOverrides): Promise<[boolean]>;
|
|
30
|
+
};
|
|
31
|
+
supportsInterface(interfaceId: PromiseOrValue<BytesLike>, overrides?: CallOverrides): Promise<boolean>;
|
|
32
|
+
callStatic: {
|
|
33
|
+
supportsInterface(interfaceId: PromiseOrValue<BytesLike>, overrides?: CallOverrides): Promise<boolean>;
|
|
34
|
+
};
|
|
28
35
|
filters: {};
|
|
36
|
+
estimateGas: {
|
|
37
|
+
supportsInterface(interfaceId: PromiseOrValue<BytesLike>, overrides?: CallOverrides): Promise<BigNumber>;
|
|
38
|
+
};
|
|
39
|
+
populateTransaction: {
|
|
40
|
+
supportsInterface(interfaceId: PromiseOrValue<BytesLike>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
41
|
+
};
|
|
29
42
|
}
|
|
@@ -1,50 +1,22 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
1
|
+
import type { Listener } from "@ethersproject/providers";
|
|
2
|
+
import type { Event, EventFilter } from "ethers-v5";
|
|
3
|
+
export interface TypedEvent<TArgsArray extends Array<any> = any, TArgsObject = any> extends Event {
|
|
4
|
+
args: TArgsArray & TArgsObject;
|
|
3
5
|
}
|
|
4
|
-
export interface
|
|
5
|
-
(...args: Partial<InputTuple>): TypedDeferredTopicFilter<TypedContractEvent<InputTuple, OutputTuple, OutputObject>>;
|
|
6
|
-
name: string;
|
|
7
|
-
fragment: EventFragment;
|
|
8
|
-
getFragment(...args: Partial<InputTuple>): EventFragment;
|
|
6
|
+
export interface TypedEventFilter<_TEvent extends TypedEvent> extends EventFilter {
|
|
9
7
|
}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
export interface TypedEventLog<TCEvent extends TypedContractEvent> extends Omit<EventLog, "args"> {
|
|
13
|
-
args: __TypechainAOutputTuple<TCEvent> & __TypechainOutputObject<TCEvent>;
|
|
8
|
+
export interface TypedListener<TEvent extends TypedEvent> {
|
|
9
|
+
(...listenerArg: [...__TypechainArgsArray<TEvent>, TEvent]): void;
|
|
14
10
|
}
|
|
15
|
-
|
|
16
|
-
|
|
11
|
+
type __TypechainArgsArray<T> = T extends TypedEvent<infer U> ? U : never;
|
|
12
|
+
export interface OnEvent<TRes> {
|
|
13
|
+
<TEvent extends TypedEvent>(eventFilter: TypedEventFilter<TEvent>, listener: TypedListener<TEvent>): TRes;
|
|
14
|
+
(eventName: string, listener: Listener): TRes;
|
|
17
15
|
}
|
|
18
|
-
export type TypedListener<TCEvent extends TypedContractEvent> = (...listenerArg: [
|
|
19
|
-
...__TypechainAOutputTuple<TCEvent>,
|
|
20
|
-
TypedEventLog<TCEvent>,
|
|
21
|
-
...undefined[]
|
|
22
|
-
]) => void;
|
|
23
16
|
export type MinEthersFactory<C, ARGS> = {
|
|
24
17
|
deploy(...a: ARGS[]): Promise<C>;
|
|
25
18
|
};
|
|
26
19
|
export type GetContractTypeFromFactory<F> = F extends MinEthersFactory<infer C, any> ? C : never;
|
|
27
20
|
export type GetARGsTypeFromFactory<F> = F extends MinEthersFactory<any, any> ? Parameters<F["deploy"]> : never;
|
|
28
|
-
export type
|
|
29
|
-
export type BaseOverrides = Omit<TransactionRequest, "to" | "data">;
|
|
30
|
-
export type NonPayableOverrides = Omit<BaseOverrides, "value" | "blockTag" | "enableCcipRead">;
|
|
31
|
-
export type PayableOverrides = Omit<BaseOverrides, "blockTag" | "enableCcipRead">;
|
|
32
|
-
export type ViewOverrides = Omit<TransactionRequest, "to" | "data">;
|
|
33
|
-
export type Overrides<S extends StateMutability> = S extends "nonpayable" ? NonPayableOverrides : S extends "payable" ? PayableOverrides : ViewOverrides;
|
|
34
|
-
export type PostfixOverrides<A extends Array<any>, S extends StateMutability> = A | [...A, Overrides<S>];
|
|
35
|
-
export type ContractMethodArgs<A extends Array<any>, S extends StateMutability> = PostfixOverrides<{
|
|
36
|
-
[I in keyof A]-?: A[I] | Typed;
|
|
37
|
-
}, S>;
|
|
38
|
-
export type DefaultReturnType<R> = R extends Array<any> ? R[0] : R;
|
|
39
|
-
export interface TypedContractMethod<A extends Array<any> = Array<any>, R = any, S extends StateMutability = "payable"> {
|
|
40
|
-
(...args: ContractMethodArgs<A, S>): S extends "view" ? Promise<DefaultReturnType<R>> : Promise<ContractTransactionResponse>;
|
|
41
|
-
name: string;
|
|
42
|
-
fragment: FunctionFragment;
|
|
43
|
-
getFragment(...args: ContractMethodArgs<A, S>): FunctionFragment;
|
|
44
|
-
populateTransaction(...args: ContractMethodArgs<A, S>): Promise<ContractTransaction>;
|
|
45
|
-
staticCall(...args: ContractMethodArgs<A, "view">): Promise<DefaultReturnType<R>>;
|
|
46
|
-
send(...args: ContractMethodArgs<A, S>): Promise<ContractTransactionResponse>;
|
|
47
|
-
estimateGas(...args: ContractMethodArgs<A, S>): Promise<bigint>;
|
|
48
|
-
staticCallResult(...args: ContractMethodArgs<A, "view">): Promise<R>;
|
|
49
|
-
}
|
|
21
|
+
export type PromiseOrValue<T> = T | Promise<T>;
|
|
50
22
|
export {};
|