@imtbl/x-client 2.0.0-alpha.0

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 (82) hide show
  1. package/LICENSE.md +176 -0
  2. package/README.md +53 -0
  3. package/dist/browser/index.js +2 -0
  4. package/dist/node/index.cjs +2 -0
  5. package/dist/node/index.js +2 -0
  6. package/dist/types/IMXClient.d.ts +334 -0
  7. package/dist/types/config/config.test.d.ts +1 -0
  8. package/dist/types/config/index.d.ts +77 -0
  9. package/dist/types/contracts/@openzeppelin/contracts/index.d.ts +4 -0
  10. package/dist/types/contracts/@openzeppelin/contracts/token/ERC20/IERC20.d.ts +129 -0
  11. package/dist/types/contracts/@openzeppelin/contracts/token/ERC20/index.d.ts +1 -0
  12. package/dist/types/contracts/@openzeppelin/contracts/token/ERC721/IERC721.d.ts +199 -0
  13. package/dist/types/contracts/@openzeppelin/contracts/token/ERC721/index.d.ts +1 -0
  14. package/dist/types/contracts/@openzeppelin/contracts/token/index.d.ts +4 -0
  15. package/dist/types/contracts/@openzeppelin/contracts/utils/index.d.ts +2 -0
  16. package/dist/types/contracts/@openzeppelin/contracts/utils/introspection/IERC165.d.ts +29 -0
  17. package/dist/types/contracts/@openzeppelin/contracts/utils/introspection/index.d.ts +1 -0
  18. package/dist/types/contracts/@openzeppelin/index.d.ts +2 -0
  19. package/dist/types/contracts/common.d.ts +50 -0
  20. package/dist/types/contracts/contracts/index.d.ts +4 -0
  21. package/dist/types/contracts/contracts/v3/Core.d.ts +1088 -0
  22. package/dist/types/contracts/contracts/v3/Registration.d.ts +169 -0
  23. package/dist/types/contracts/contracts/v3/index.d.ts +2 -0
  24. package/dist/types/contracts/contracts/v4/CoreV4.d.ts +1650 -0
  25. package/dist/types/contracts/contracts/v4/RegistrationV4.d.ts +111 -0
  26. package/dist/types/contracts/contracts/v4/index.d.ts +2 -0
  27. package/dist/types/contracts/factories/@openzeppelin/contracts/index.d.ts +2 -0
  28. package/dist/types/contracts/factories/@openzeppelin/contracts/token/ERC20/IERC20__factory.d.ts +147 -0
  29. package/dist/types/contracts/factories/@openzeppelin/contracts/token/ERC20/index.d.ts +1 -0
  30. package/dist/types/contracts/factories/@openzeppelin/contracts/token/ERC721/IERC721__factory.d.ts +227 -0
  31. package/dist/types/contracts/factories/@openzeppelin/contracts/token/ERC721/index.d.ts +1 -0
  32. package/dist/types/contracts/factories/@openzeppelin/contracts/token/index.d.ts +2 -0
  33. package/dist/types/contracts/factories/@openzeppelin/contracts/utils/index.d.ts +1 -0
  34. package/dist/types/contracts/factories/@openzeppelin/contracts/utils/introspection/IERC165__factory.d.ts +21 -0
  35. package/dist/types/contracts/factories/@openzeppelin/contracts/utils/introspection/index.d.ts +1 -0
  36. package/dist/types/contracts/factories/@openzeppelin/index.d.ts +1 -0
  37. package/dist/types/contracts/factories/contracts/index.d.ts +2 -0
  38. package/dist/types/contracts/factories/contracts/v3/Core__factory.d.ts +1254 -0
  39. package/dist/types/contracts/factories/contracts/v3/Registration__factory.d.ts +214 -0
  40. package/dist/types/contracts/factories/contracts/v3/index.d.ts +2 -0
  41. package/dist/types/contracts/factories/contracts/v4/CoreV4__factory.d.ts +1890 -0
  42. package/dist/types/contracts/factories/contracts/v4/RegistrationV4__factory.d.ts +168 -0
  43. package/dist/types/contracts/factories/contracts/v4/index.d.ts +2 -0
  44. package/dist/types/contracts/factories/index.d.ts +2 -0
  45. package/dist/types/contracts/index.d.ts +19 -0
  46. package/dist/types/exportContracts.d.ts +2 -0
  47. package/dist/types/exportUtils.d.ts +1 -0
  48. package/dist/types/imx.test.d.ts +1 -0
  49. package/dist/types/index.d.ts +11 -0
  50. package/dist/types/types/api.d.ts +223 -0
  51. package/dist/types/types/errors.d.ts +9 -0
  52. package/dist/types/types/index.d.ts +6 -0
  53. package/dist/types/types/requests.d.ts +53 -0
  54. package/dist/types/types/signers.d.ts +37 -0
  55. package/dist/types/types/tokens.d.ts +51 -0
  56. package/dist/types/types/transfers.d.ts +17 -0
  57. package/dist/types/utils/convertToSignableToken.d.ts +8 -0
  58. package/dist/types/utils/crypto/crypto.d.ts +16 -0
  59. package/dist/types/utils/crypto/crypto.test.d.ts +1 -0
  60. package/dist/types/utils/crypto/index.d.ts +1 -0
  61. package/dist/types/utils/formatError.d.ts +7 -0
  62. package/dist/types/utils/formatError.test.d.ts +1 -0
  63. package/dist/types/utils/index.d.ts +5 -0
  64. package/dist/types/utils/stark/errors.d.ts +3 -0
  65. package/dist/types/utils/stark/getStarkPublicKeyFromImx.d.ts +12 -0
  66. package/dist/types/utils/stark/legacy/crypto/constants.d.ts +27 -0
  67. package/dist/types/utils/stark/legacy/crypto/crypto.d.ts +14 -0
  68. package/dist/types/utils/stark/legacy/crypto/index.d.ts +2 -0
  69. package/dist/types/utils/stark/legacy/crypto/points.d.ts +1 -0
  70. package/dist/types/utils/stark/legacy/crypto/types.d.ts +18 -0
  71. package/dist/types/utils/stark/starkCurve.d.ts +18 -0
  72. package/dist/types/utils/stark/starkCurve.test.d.ts +1 -0
  73. package/dist/types/utils/stark/starkSigner.d.ts +17 -0
  74. package/dist/types/utils/stark/starkSigner.test.d.ts +1 -0
  75. package/dist/types/workflows/errors.d.ts +3 -0
  76. package/dist/types/workflows/exchangeTransfers.d.ts +8 -0
  77. package/dist/types/workflows/index.d.ts +1 -0
  78. package/dist/types/workflows/minting.d.ts +4 -0
  79. package/dist/types/workflows/orders.d.ts +13 -0
  80. package/dist/types/workflows/trades.d.ts +8 -0
  81. package/dist/types/workflows/workflows.d.ts +29 -0
  82. package/package.json +70 -0
@@ -0,0 +1,111 @@
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;
5
+ encodeFunctionData(functionFragment: "getVersion", values?: undefined): string;
6
+ 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;
12
+ decodeFunctionResult(functionFragment: "getVersion", data: BytesLike): Result;
13
+ decodeFunctionResult(functionFragment: "imx", data: BytesLike): Result;
14
+ decodeFunctionResult(functionFragment: "isRegistered", data: BytesLike): Result;
15
+ decodeFunctionResult(functionFragment: "registerAndWithdrawAll", data: BytesLike): Result;
16
+ decodeFunctionResult(functionFragment: "registerAndWithdrawNft", data: BytesLike): Result;
17
+ decodeFunctionResult(functionFragment: "registerWithdrawAndMint", data: BytesLike): Result;
18
+ decodeFunctionResult(functionFragment: "withdrawAll", data: BytesLike): Result;
19
+ }
20
+ export interface RegistrationV4 extends BaseContract {
21
+ connect(runner?: ContractRunner | null): RegistrationV4;
22
+ waitForDeployment(): Promise<this>;
23
+ 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">;
110
+ filters: {};
111
+ }
@@ -0,0 +1,2 @@
1
+ export type { CoreV4 } from "./CoreV4";
2
+ export type { RegistrationV4 } from "./RegistrationV4";
@@ -0,0 +1,2 @@
1
+ export * as token from "./token";
2
+ export * as utils from "./utils";
@@ -0,0 +1,147 @@
1
+ import { type ContractRunner } from "ethers";
2
+ import type { IERC20, IERC20Interface } from "../../../../../@openzeppelin/contracts/token/ERC20/IERC20";
3
+ 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
+ }];
145
+ static createInterface(): IERC20Interface;
146
+ static connect(address: string, runner?: ContractRunner | null): IERC20;
147
+ }
@@ -0,0 +1 @@
1
+ export { IERC20__factory } from "./IERC20__factory";
@@ -0,0 +1,227 @@
1
+ import { type ContractRunner } from "ethers";
2
+ import type { IERC721, IERC721Interface } from "../../../../../@openzeppelin/contracts/token/ERC721/IERC721";
3
+ export declare class IERC721__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: "approved";
15
+ readonly type: "address";
16
+ }, {
17
+ readonly indexed: true;
18
+ readonly internalType: "uint256";
19
+ readonly name: "tokenId";
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: "owner";
30
+ readonly type: "address";
31
+ }, {
32
+ readonly indexed: true;
33
+ readonly internalType: "address";
34
+ readonly name: "operator";
35
+ readonly type: "address";
36
+ }, {
37
+ readonly indexed: false;
38
+ readonly internalType: "bool";
39
+ readonly name: "approved";
40
+ readonly type: "bool";
41
+ }];
42
+ readonly name: "ApprovalForAll";
43
+ readonly type: "event";
44
+ }, {
45
+ readonly anonymous: false;
46
+ readonly inputs: readonly [{
47
+ readonly indexed: true;
48
+ readonly internalType: "address";
49
+ readonly name: "from";
50
+ readonly type: "address";
51
+ }, {
52
+ readonly indexed: true;
53
+ readonly internalType: "address";
54
+ readonly name: "to";
55
+ readonly type: "address";
56
+ }, {
57
+ readonly indexed: true;
58
+ readonly internalType: "uint256";
59
+ readonly name: "tokenId";
60
+ readonly type: "uint256";
61
+ }];
62
+ readonly name: "Transfer";
63
+ readonly type: "event";
64
+ }, {
65
+ readonly inputs: readonly [{
66
+ readonly internalType: "address";
67
+ readonly name: "to";
68
+ readonly type: "address";
69
+ }, {
70
+ readonly internalType: "uint256";
71
+ readonly name: "tokenId";
72
+ readonly type: "uint256";
73
+ }];
74
+ readonly name: "approve";
75
+ readonly outputs: readonly [];
76
+ readonly stateMutability: "nonpayable";
77
+ readonly type: "function";
78
+ }, {
79
+ readonly inputs: readonly [{
80
+ readonly internalType: "address";
81
+ readonly name: "owner";
82
+ readonly type: "address";
83
+ }];
84
+ readonly name: "balanceOf";
85
+ readonly outputs: readonly [{
86
+ readonly internalType: "uint256";
87
+ readonly name: "balance";
88
+ readonly type: "uint256";
89
+ }];
90
+ readonly stateMutability: "view";
91
+ readonly type: "function";
92
+ }, {
93
+ readonly inputs: readonly [{
94
+ readonly internalType: "uint256";
95
+ readonly name: "tokenId";
96
+ readonly type: "uint256";
97
+ }];
98
+ readonly name: "getApproved";
99
+ readonly outputs: readonly [{
100
+ readonly internalType: "address";
101
+ readonly name: "operator";
102
+ readonly type: "address";
103
+ }];
104
+ readonly stateMutability: "view";
105
+ readonly type: "function";
106
+ }, {
107
+ readonly inputs: readonly [{
108
+ readonly internalType: "address";
109
+ readonly name: "owner";
110
+ readonly type: "address";
111
+ }, {
112
+ readonly internalType: "address";
113
+ readonly name: "operator";
114
+ readonly type: "address";
115
+ }];
116
+ readonly name: "isApprovedForAll";
117
+ readonly outputs: readonly [{
118
+ readonly internalType: "bool";
119
+ readonly name: "";
120
+ readonly type: "bool";
121
+ }];
122
+ readonly stateMutability: "view";
123
+ readonly type: "function";
124
+ }, {
125
+ readonly inputs: readonly [{
126
+ readonly internalType: "uint256";
127
+ readonly name: "tokenId";
128
+ readonly type: "uint256";
129
+ }];
130
+ readonly name: "ownerOf";
131
+ readonly outputs: readonly [{
132
+ readonly internalType: "address";
133
+ readonly name: "owner";
134
+ readonly type: "address";
135
+ }];
136
+ readonly stateMutability: "view";
137
+ readonly type: "function";
138
+ }, {
139
+ readonly inputs: readonly [{
140
+ readonly internalType: "address";
141
+ readonly name: "from";
142
+ readonly type: "address";
143
+ }, {
144
+ readonly internalType: "address";
145
+ readonly name: "to";
146
+ readonly type: "address";
147
+ }, {
148
+ readonly internalType: "uint256";
149
+ readonly name: "tokenId";
150
+ readonly type: "uint256";
151
+ }];
152
+ readonly name: "safeTransferFrom";
153
+ readonly outputs: readonly [];
154
+ readonly stateMutability: "nonpayable";
155
+ readonly type: "function";
156
+ }, {
157
+ readonly inputs: readonly [{
158
+ readonly internalType: "address";
159
+ readonly name: "from";
160
+ readonly type: "address";
161
+ }, {
162
+ readonly internalType: "address";
163
+ readonly name: "to";
164
+ readonly type: "address";
165
+ }, {
166
+ readonly internalType: "uint256";
167
+ readonly name: "tokenId";
168
+ readonly type: "uint256";
169
+ }, {
170
+ readonly internalType: "bytes";
171
+ readonly name: "data";
172
+ readonly type: "bytes";
173
+ }];
174
+ readonly name: "safeTransferFrom";
175
+ readonly outputs: readonly [];
176
+ readonly stateMutability: "nonpayable";
177
+ readonly type: "function";
178
+ }, {
179
+ readonly inputs: readonly [{
180
+ readonly internalType: "address";
181
+ readonly name: "operator";
182
+ readonly type: "address";
183
+ }, {
184
+ readonly internalType: "bool";
185
+ readonly name: "_approved";
186
+ readonly type: "bool";
187
+ }];
188
+ readonly name: "setApprovalForAll";
189
+ readonly outputs: readonly [];
190
+ readonly stateMutability: "nonpayable";
191
+ readonly type: "function";
192
+ }, {
193
+ readonly inputs: readonly [{
194
+ readonly internalType: "bytes4";
195
+ readonly name: "interfaceId";
196
+ readonly type: "bytes4";
197
+ }];
198
+ readonly name: "supportsInterface";
199
+ readonly outputs: readonly [{
200
+ readonly internalType: "bool";
201
+ readonly name: "";
202
+ readonly type: "bool";
203
+ }];
204
+ readonly stateMutability: "view";
205
+ readonly type: "function";
206
+ }, {
207
+ readonly inputs: readonly [{
208
+ readonly internalType: "address";
209
+ readonly name: "from";
210
+ readonly type: "address";
211
+ }, {
212
+ readonly internalType: "address";
213
+ readonly name: "to";
214
+ readonly type: "address";
215
+ }, {
216
+ readonly internalType: "uint256";
217
+ readonly name: "tokenId";
218
+ readonly type: "uint256";
219
+ }];
220
+ readonly name: "transferFrom";
221
+ readonly outputs: readonly [];
222
+ readonly stateMutability: "nonpayable";
223
+ readonly type: "function";
224
+ }];
225
+ static createInterface(): IERC721Interface;
226
+ static connect(address: string, runner?: ContractRunner | null): IERC721;
227
+ }
@@ -0,0 +1 @@
1
+ export { IERC721__factory } from "./IERC721__factory";
@@ -0,0 +1,2 @@
1
+ export * as erc20 from "./ERC20";
2
+ export * as erc721 from "./ERC721";
@@ -0,0 +1 @@
1
+ export * as introspection from "./introspection";
@@ -0,0 +1,21 @@
1
+ import { type ContractRunner } from "ethers";
2
+ import type { IERC165, IERC165Interface } from "../../../../../@openzeppelin/contracts/utils/introspection/IERC165";
3
+ export declare class IERC165__factory {
4
+ static readonly abi: readonly [{
5
+ readonly inputs: readonly [{
6
+ readonly internalType: "bytes4";
7
+ readonly name: "interfaceId";
8
+ readonly type: "bytes4";
9
+ }];
10
+ readonly name: "supportsInterface";
11
+ readonly outputs: readonly [{
12
+ readonly internalType: "bool";
13
+ readonly name: "";
14
+ readonly type: "bool";
15
+ }];
16
+ readonly stateMutability: "view";
17
+ readonly type: "function";
18
+ }];
19
+ static createInterface(): IERC165Interface;
20
+ static connect(address: string, runner?: ContractRunner | null): IERC165;
21
+ }
@@ -0,0 +1 @@
1
+ export { IERC165__factory } from "./IERC165__factory";
@@ -0,0 +1 @@
1
+ export * as contracts from "./contracts";
@@ -0,0 +1,2 @@
1
+ export * as v3 from "./v3";
2
+ export * as v4 from "./v4";