@imtbl/sdk 0.1.8-alpha.1 → 0.1.8-alpha.2

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.
@@ -1,3 +1,261 @@
1
- declare const erc721permissionedmintable = 1;
1
+ declare type Bytes = ArrayLike<number>;
2
+ declare type BytesLike = Bytes | string;
3
+ interface Hexable {
4
+ toHexString(): string;
5
+ }
2
6
 
3
- export { erc721permissionedmintable };
7
+ declare type BigNumberish = BigNumber | Bytes | bigint | string | number;
8
+ declare class BigNumber implements Hexable {
9
+ readonly _hex: string;
10
+ readonly _isBigNumber: boolean;
11
+ constructor(constructorGuard: any, hex: string);
12
+ fromTwos(value: number): BigNumber;
13
+ toTwos(value: number): BigNumber;
14
+ abs(): BigNumber;
15
+ add(other: BigNumberish): BigNumber;
16
+ sub(other: BigNumberish): BigNumber;
17
+ div(other: BigNumberish): BigNumber;
18
+ mul(other: BigNumberish): BigNumber;
19
+ mod(other: BigNumberish): BigNumber;
20
+ pow(other: BigNumberish): BigNumber;
21
+ and(other: BigNumberish): BigNumber;
22
+ or(other: BigNumberish): BigNumber;
23
+ xor(other: BigNumberish): BigNumber;
24
+ mask(value: number): BigNumber;
25
+ shl(value: number): BigNumber;
26
+ shr(value: number): BigNumber;
27
+ eq(other: BigNumberish): boolean;
28
+ lt(other: BigNumberish): boolean;
29
+ lte(other: BigNumberish): boolean;
30
+ gt(other: BigNumberish): boolean;
31
+ gte(other: BigNumberish): boolean;
32
+ isNegative(): boolean;
33
+ isZero(): boolean;
34
+ toNumber(): number;
35
+ toBigInt(): bigint;
36
+ toString(): string;
37
+ toHexString(): string;
38
+ toJSON(key?: string): any;
39
+ static from(value: any): BigNumber;
40
+ static isBigNumber(value: any): value is BigNumber;
41
+ }
42
+
43
+ declare type AccessList = Array<{
44
+ address: string;
45
+ storageKeys: Array<string>;
46
+ }>;
47
+ declare type AccessListish = AccessList | Array<[string, Array<string>]> | Record<string, Array<string>>;
48
+
49
+ declare type BlockTag = string | number;
50
+
51
+ interface Overrides {
52
+ gasLimit?: BigNumberish | Promise<BigNumberish>;
53
+ gasPrice?: BigNumberish | Promise<BigNumberish>;
54
+ maxFeePerGas?: BigNumberish | Promise<BigNumberish>;
55
+ maxPriorityFeePerGas?: BigNumberish | Promise<BigNumberish>;
56
+ nonce?: BigNumberish | Promise<BigNumberish>;
57
+ type?: number;
58
+ accessList?: AccessListish;
59
+ customData?: Record<string, any>;
60
+ ccipReadEnabled?: boolean;
61
+ }
62
+ interface PayableOverrides extends Overrides {
63
+ value?: BigNumberish | Promise<BigNumberish>;
64
+ }
65
+ interface CallOverrides extends PayableOverrides {
66
+ blockTag?: BlockTag | Promise<BlockTag>;
67
+ from?: string | Promise<string>;
68
+ }
69
+ interface PopulatedTransaction {
70
+ to?: string;
71
+ from?: string;
72
+ nonce?: number;
73
+ gasLimit?: BigNumber;
74
+ gasPrice?: BigNumber;
75
+ data?: string;
76
+ value?: BigNumber;
77
+ chainId?: number;
78
+ type?: number;
79
+ accessList?: AccessList;
80
+ maxFeePerGas?: BigNumber;
81
+ maxPriorityFeePerGas?: BigNumber;
82
+ customData?: Record<string, any>;
83
+ ccipReadEnabled?: boolean;
84
+ }
85
+
86
+ type PromiseOrValue<T> = T | Promise<T>;
87
+
88
+ declare class ERC721PermissionedMintable {
89
+ private readonly contract;
90
+ constructor(contractAddress: string);
91
+ /**
92
+ * @returns a promise that resolves with a populated transaction
93
+ */
94
+ DEFAULT_ADMIN_ROLE(overrides?: CallOverrides): Promise<PopulatedTransaction>;
95
+ /**
96
+ * @returns a promise that resolves with a populated transaction
97
+ */
98
+ MINTER_ROLE(overrides?: CallOverrides): Promise<PopulatedTransaction>;
99
+ /**
100
+ * @returns a promise that resolves with a populated transaction
101
+ */
102
+ approve(to: PromiseOrValue<string>, tokenId: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
103
+ from?: PromiseOrValue<string>;
104
+ }): Promise<PopulatedTransaction>;
105
+ /**
106
+ * @returns a promise that resolves with a populated transaction
107
+ */
108
+ balanceOf(owner: PromiseOrValue<string>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
109
+ /**
110
+ * @returns a promise that resolves with a populated transaction
111
+ */
112
+ baseURI(overrides?: CallOverrides): Promise<PopulatedTransaction>;
113
+ /**
114
+ * @returns a promise that resolves with a populated transaction
115
+ */
116
+ burn(tokenId: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
117
+ from?: PromiseOrValue<string>;
118
+ }): Promise<PopulatedTransaction>;
119
+ /**
120
+ * @returns a promise that resolves with a populated transaction
121
+ */
122
+ contractURI(overrides?: CallOverrides): Promise<PopulatedTransaction>;
123
+ /**
124
+ * @returns a promise that resolves with a populated transaction
125
+ */
126
+ getAdmins(overrides?: CallOverrides): Promise<PopulatedTransaction>;
127
+ /**
128
+ * @returns a promise that resolves with a populated transaction
129
+ */
130
+ getApproved(tokenId: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
131
+ /**
132
+ * @returns a promise that resolves with a populated transaction
133
+ */
134
+ getRoleAdmin(role: PromiseOrValue<BytesLike>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
135
+ /**
136
+ * @returns a promise that resolves with a populated transaction
137
+ */
138
+ getRoleMember(role: PromiseOrValue<BytesLike>, index: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
139
+ /**
140
+ * @returns a promise that resolves with a populated transaction
141
+ */
142
+ getRoleMemberCount(role: PromiseOrValue<BytesLike>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
143
+ /**
144
+ * @returns a promise that resolves with a populated transaction
145
+ */
146
+ grantMinterRole(user: PromiseOrValue<string>, overrides?: Overrides & {
147
+ from?: PromiseOrValue<string>;
148
+ }): Promise<PopulatedTransaction>;
149
+ /**
150
+ * @returns a promise that resolves with a populated transaction
151
+ */
152
+ grantRole(role: PromiseOrValue<BytesLike>, account: PromiseOrValue<string>, overrides?: Overrides & {
153
+ from?: PromiseOrValue<string>;
154
+ }): Promise<PopulatedTransaction>;
155
+ /**
156
+ * @returns a promise that resolves with a populated transaction
157
+ */
158
+ hasRole(role: PromiseOrValue<BytesLike>, account: PromiseOrValue<string>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
159
+ /**
160
+ * @returns a promise that resolves with a populated transaction
161
+ */
162
+ isApprovedForAll(owner: PromiseOrValue<string>, operator: PromiseOrValue<string>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
163
+ /**
164
+ * @returns a promise that resolves with a populated transaction
165
+ */
166
+ mint(to: PromiseOrValue<string>, amount: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
167
+ from?: PromiseOrValue<string>;
168
+ }): Promise<PopulatedTransaction>;
169
+ /**
170
+ * @returns a promise that resolves with a populated transaction
171
+ */
172
+ name(overrides?: CallOverrides): Promise<PopulatedTransaction>;
173
+ /**
174
+ * @returns a promise that resolves with a populated transaction
175
+ */
176
+ ownerOf(tokenId: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
177
+ /**
178
+ * @returns a promise that resolves with a populated transaction
179
+ */
180
+ renounceRole(role: PromiseOrValue<BytesLike>, account: PromiseOrValue<string>, overrides?: Overrides & {
181
+ from?: PromiseOrValue<string>;
182
+ }): Promise<PopulatedTransaction>;
183
+ /**
184
+ * @returns a promise that resolves with a populated transaction
185
+ */
186
+ revokeMinterRole(user: PromiseOrValue<string>, overrides?: Overrides & {
187
+ from?: PromiseOrValue<string>;
188
+ }): Promise<PopulatedTransaction>;
189
+ /**
190
+ * @returns a promise that resolves with a populated transaction
191
+ */
192
+ revokeRole(role: PromiseOrValue<BytesLike>, account: PromiseOrValue<string>, overrides?: Overrides & {
193
+ from?: PromiseOrValue<string>;
194
+ }): Promise<PopulatedTransaction>;
195
+ /**
196
+ * @returns a promise that resolves with a populated transaction
197
+ */
198
+ royaltyAllowlist(overrides?: CallOverrides): Promise<PopulatedTransaction>;
199
+ /**
200
+ * @returns a promise that resolves with a populated transaction
201
+ */
202
+ royaltyInfo(_tokenId: PromiseOrValue<BigNumberish>, _salePrice: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
203
+ /**
204
+ * @returns a promise that resolves with a populated transaction
205
+ */
206
+ 'safeTransferFrom(address,address,uint256)'(from: PromiseOrValue<string>, to: PromiseOrValue<string>, tokenId: PromiseOrValue<BigNumberish>, overrides?: Overrides & {
207
+ from?: PromiseOrValue<string>;
208
+ }): Promise<PopulatedTransaction>;
209
+ /**
210
+ * @returns a promise that resolves with a populated transaction
211
+ */
212
+ 'safeTransferFrom(address,address,uint256,bytes)'(from: PromiseOrValue<string>, to: PromiseOrValue<string>, tokenId: PromiseOrValue<BigNumberish>, data: PromiseOrValue<BytesLike>, overrides?: Overrides & {
213
+ from?: PromiseOrValue<string>;
214
+ }): Promise<PopulatedTransaction>;
215
+ /**
216
+ * @returns a promise that resolves with a populated transaction
217
+ */
218
+ setApprovalForAll(operator: PromiseOrValue<string>, approved: PromiseOrValue<boolean>, overrides?: Overrides & {
219
+ from?: PromiseOrValue<string>;
220
+ }): Promise<PopulatedTransaction>;
221
+ /**
222
+ * @returns a promise that resolves with a populated transaction
223
+ */
224
+ setBaseURI(baseURI_: PromiseOrValue<string>, overrides?: Overrides & {
225
+ from?: PromiseOrValue<string>;
226
+ }): Promise<PopulatedTransaction>;
227
+ /**
228
+ * @returns a promise that resolves with a populated transaction
229
+ */
230
+ setContractURI(_contractURI: PromiseOrValue<string>, overrides?: Overrides & {
231
+ from?: PromiseOrValue<string>;
232
+ }): Promise<PopulatedTransaction>;
233
+ /**
234
+ * @returns a promise that resolves with a populated transaction
235
+ */
236
+ setRoyaltyAllowlistRegistry(_royaltyAllowlist: PromiseOrValue<string>, overrides?: Overrides & {
237
+ from?: PromiseOrValue<string>;
238
+ }): Promise<PopulatedTransaction>;
239
+ /**
240
+ * @returns a promise that resolves with a populated transaction
241
+ */
242
+ symbol(overrides?: CallOverrides): Promise<PopulatedTransaction>;
243
+ /**
244
+ * @returns a promise that resolves with a populated transaction
245
+ */
246
+ tokenByIndex(index: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
247
+ /**
248
+ * @returns a promise that resolves with a populated transaction
249
+ */
250
+ tokenOfOwnerByIndex(owner: PromiseOrValue<string>, index: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
251
+ /**
252
+ * @returns a promise that resolves with a populated transaction
253
+ */
254
+ tokenURI(tokenId: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
255
+ /**
256
+ * @returns a promise that resolves with a populated transaction
257
+ */
258
+ totalSupply(overrides?: CallOverrides): Promise<PopulatedTransaction>;
259
+ }
260
+
261
+ export { ERC721PermissionedMintable };