@silvana-one/api 0.1.1 → 0.1.3

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,8 +1,26 @@
1
- export type AirdropTransactionResponse = {
1
+ export type TokenInfoRequestParams = {
2
2
  /**
3
- * List of token transactions created for the airdrop.
3
+ * The address of the token contract.
4
4
  */
5
- txs?: Array<TokenTransaction>;
5
+ tokenAddress: string;
6
+ };
7
+ export type TokenSymbolAndAdmin = {
8
+ /**
9
+ * The address of the token contract.
10
+ */
11
+ tokenAddress: string;
12
+ /**
13
+ * The address of the admin contract.
14
+ */
15
+ adminContractAddress: string;
16
+ /**
17
+ * The address of the administrator.
18
+ */
19
+ adminAddress: string;
20
+ /**
21
+ * The symbol of the token.
22
+ */
23
+ tokenSymbol: string;
6
24
  };
7
25
  export type BalanceRequestParams = {
8
26
  /**
@@ -34,32 +52,11 @@ export type BalanceResponse = {
34
52
  /**
35
53
  * The balance of the token for the specified address.
36
54
  */
37
- balance: (number) | null;
38
- };
39
- export type ContractInfo = {
40
- [key: string]: ContractProperty;
41
- };
42
- export type ContractInfoRequest = {
43
- /**
44
- * The contract address.
45
- */
46
- address: string;
47
- /**
48
- * Optional. The tokenId.
49
- */
50
- tokenId?: string;
51
- };
52
- export type ContractProperty = {
53
- type: ContractPropertyType;
54
- value: string;
55
- presentation?: string;
56
- };
57
- export type ContractPropertyType = 'name' | 'role' | 'address' | 'tokenId' | 'verificationKey' | 'verificationKeyHash' | 'zkappVersion' | 'bigint' | 'number' | 'field' | 'boolean' | 'ipfs' | 'string' | 'uri' | 'symbol';
58
- export type DeployedTokenTransactionBaseParams = TokenTransactionBaseParams & {
55
+ balance?: number;
59
56
  /**
60
- * The address of the token contract.
57
+ * Indicates whether the account exists.
61
58
  */
62
- tokenAddress: string;
59
+ hasAccount?: boolean;
63
60
  };
64
61
  export type ErrorResponse = {
65
62
  /**
@@ -67,31 +64,29 @@ export type ErrorResponse = {
67
64
  */
68
65
  error?: string;
69
66
  };
70
- export type FaucetParams = {
67
+ export type JobId = {
71
68
  /**
72
- * The Mina address (public key) to receive the test tokens.
69
+ * The job ID returned by the `/prove` endpoint.
73
70
  */
74
- address: string;
71
+ jobId: string;
75
72
  };
76
- export type FaucetResponse = {
73
+ export type JobResults = {
77
74
  /**
78
- * Indicates whether the faucet request was successful.
75
+ * Indicates whether the job was successful.
79
76
  */
80
77
  success?: boolean;
81
78
  /**
82
- * The transaction hash of the faucet transfer if successful.
79
+ * The current status of the job.
83
80
  */
84
- hash?: string;
81
+ jobStatus?: 'created' | 'started' | 'finished' | 'failed' | 'used' | 'restarted';
85
82
  /**
86
- * Error message if the request failed.
83
+ * Error message if the job failed.
87
84
  */
88
85
  error?: string;
89
- };
90
- export type JobId = {
91
86
  /**
92
- * The job ID returned by the `/prove` endpoint.
87
+ * Results for each transaction in the job.
93
88
  */
94
- jobId: string;
89
+ results?: Array<JobResult>;
95
90
  };
96
91
  export type JobResult = {
97
92
  /**
@@ -115,130 +110,117 @@ export type JobResult = {
115
110
  */
116
111
  hash?: string;
117
112
  };
118
- export type JobResults = {
113
+ export type TransactionStatusParams = {
119
114
  /**
120
- * Indicates whether the job was successful.
115
+ * The transaction hash to check the status of.
121
116
  */
122
- success?: boolean;
117
+ hash: string;
118
+ };
119
+ export type TransactionStatus = {
123
120
  /**
124
- * The current status of the job.
121
+ * The transaction hash.
125
122
  */
126
- jobStatus?: 'created' | 'started' | 'finished' | 'failed' | 'used' | 'restarted';
123
+ hash?: string;
127
124
  /**
128
- * Error message if the job failed.
125
+ * The status of the transaction.
126
+ */
127
+ status?: 'pending' | 'applied' | 'failed' | 'unknown';
128
+ /**
129
+ * The transaction hash.
129
130
  */
130
131
  error?: string;
131
132
  /**
132
- * Results for each transaction in the job.
133
+ * The details of the transaction.
133
134
  */
134
- results?: Array<JobResult>;
135
+ details?: {
136
+ /**
137
+ * The height of the block containing the transaction.
138
+ */
139
+ blockHeight?: number;
140
+ /**
141
+ * The state hash of the block.
142
+ */
143
+ stateHash?: string;
144
+ /**
145
+ * The status of the block.
146
+ */
147
+ blockStatus?: string;
148
+ /**
149
+ * The timestamp of the block.
150
+ */
151
+ timestamp?: number;
152
+ /**
153
+ * The transaction hash.
154
+ */
155
+ txHash?: string;
156
+ /**
157
+ * The status of the transaction in the block.
158
+ */
159
+ txStatus?: string;
160
+ };
135
161
  };
136
- /**
137
- * The current status of the job.
138
- */
139
- export type jobStatus = 'created' | 'started' | 'finished' | 'failed' | 'used' | 'restarted';
140
- export type LaunchTokenAdvancedAdminParams = LaunchTokenTransactionBaseParams & {
162
+ export type TxStatus = {
141
163
  /**
142
- * Must be "advanced" for advanced admin contract.
164
+ * The height of the block containing the transaction.
143
165
  */
144
- adminContract: 'advanced';
166
+ blockHeight?: number;
145
167
  /**
146
- * Specifies who can mint tokens.
168
+ * The state hash of the block.
147
169
  */
148
- canMint: 'whitelist' | 'anyone';
170
+ stateHash?: string;
149
171
  /**
150
- * Optional. Whether admin signature is required for minting.
172
+ * The status of the block.
151
173
  */
152
- requireAdminSignatureForMint?: boolean;
174
+ blockStatus?: string;
153
175
  /**
154
- * Optional. List of whitelisted addresses with optional amounts, or a string.
176
+ * The timestamp of the block.
155
177
  */
156
- whitelist?: Whitelist;
178
+ timestamp?: number;
157
179
  /**
158
- * Optional. Maximum total supply. Uses UInt64.MAXINT() if not provided.
180
+ * The transaction hash.
159
181
  */
160
- totalSupply?: number;
161
- };
162
- /**
163
- * Must be "advanced" for advanced admin contract.
164
- */
165
- export type adminContract = 'advanced';
166
- /**
167
- * Specifies who can mint tokens.
168
- */
169
- export type canMint = 'whitelist' | 'anyone';
170
- export type LaunchTokenBondingCurveAdminParams = LaunchTokenTransactionBaseParams & {
182
+ txHash?: string;
171
183
  /**
172
- * Must be "bondingCurve" for bonding curve admin contract.
184
+ * The status of the transaction in the block.
173
185
  */
174
- adminContract: 'bondingCurve';
186
+ txStatus?: string;
175
187
  };
176
- /**
177
- * Must be "bondingCurve" for bonding curve admin contract.
178
- */
179
- export type adminContract2 = 'bondingCurve';
180
- export type LaunchTokenStandardAdminParams = LaunchTokenTransactionBaseParams & {
188
+ export type FaucetParams = {
181
189
  /**
182
- * Must be "standard" for standard admin contract.
190
+ * The Mina address (public key) to receive the test tokens.
183
191
  */
184
- adminContract: 'standard';
192
+ address: string;
185
193
  };
186
- /**
187
- * Must be "standard" for standard admin contract.
188
- */
189
- export type adminContract3 = 'standard';
190
- export type LaunchTokenTransactionBaseParams = TokenTransactionBaseParams & {
191
- /**
192
- * Must be "token:launch"
193
- */
194
- txType?: 'token:launch';
195
- /**
196
- * The type of admin contract to use.
197
- */
198
- adminContract: 'standard' | 'advanced' | 'bondingCurve';
199
- /**
200
- * The symbol of the token.
201
- */
202
- symbol: string;
203
- /**
204
- * Optional. The number of decimal places for the token.
205
- */
206
- decimals?: number;
194
+ export type FaucetResponse = {
207
195
  /**
208
- * URI or token info object containing metadata.
196
+ * Indicates whether the faucet request was successful.
209
197
  */
210
- uri: (string | TokenInfo);
198
+ success?: boolean;
211
199
  /**
212
- * Optional. The address of the token contract.
200
+ * The transaction hash of the faucet transfer if successful.
213
201
  */
214
- tokenAddress?: string;
202
+ hash?: string;
215
203
  /**
216
- * Optional. The address of the admin contract.
204
+ * Error message if the request failed.
217
205
  */
218
- adminContractAddress?: string;
206
+ error?: string;
207
+ };
208
+ export type NftRequestParams = {
219
209
  /**
220
- * Optional. Private key for the token contract.
210
+ * Always set to this contract address for Mina NFT V2.
221
211
  */
222
- tokenContractPrivateKey?: string;
212
+ contractAddress: string;
223
213
  /**
224
- * Optional. Private key for the admin contract.
214
+ * The unique NFT address.
225
215
  */
226
- adminContractPrivateKey?: string;
216
+ nftAddress: string;
227
217
  };
228
- /**
229
- * Must be "token:launch"
230
- */
231
- export type txType = 'token:launch';
232
- /**
233
- * The type of admin contract to use.
234
- */
235
- export type adminContract4 = 'standard' | 'advanced' | 'bondingCurve';
236
- export type NFTRequestAnswer = {
218
+ export type NftRequestAnswer = {
237
219
  contractAddress?: string;
238
220
  nftAddress?: string;
239
221
  tokenId?: string;
240
222
  tokenSymbol?: string;
241
- contractUri?: (string) | null;
223
+ contractUri?: string;
242
224
  name?: string;
243
225
  metadataRoot?: {
244
226
  data?: string;
@@ -250,425 +232,388 @@ export type NFTRequestAnswer = {
250
232
  version?: number;
251
233
  metadata?: {
252
234
  [key: string]: unknown;
253
- } | null;
235
+ };
254
236
  algolia?: {
255
237
  [key: string]: unknown;
256
- } | null;
238
+ };
257
239
  };
258
- export type NFTRequestParams = {
240
+ export type TokenTransactionType = 'token:launch' | 'token:mint' | 'token:burn' | 'token:redeem' | 'token:transfer' | 'token:bid:create' | 'token:offer:create' | 'token:offer:buy' | 'token:bid:sell' | 'token:airdrop' | 'token:bid:withdraw' | 'token:offer:withdraw' | 'token:bid:whitelist' | 'token:offer:whitelist' | 'token:admin:whitelist';
241
+ export type NftTransactionType = 'nft:launch' | 'nft:mint' | 'nft:transfer';
242
+ export type TokenTransactionBaseParams = {
259
243
  /**
260
- * Always set to this contract address for Mina NFTs.
244
+ * Type of the token transaction.
261
245
  */
262
- contractAddress: string;
246
+ txType?: TokenTransactionType;
263
247
  /**
264
- * The unique NFT address.
248
+ * Optional. The address of the token contract.
265
249
  */
266
- nftAddress: string;
267
- };
268
- export type ProofResult = {
250
+ tokenAddress?: string;
269
251
  /**
270
- * Indicates whether the proof generation was successful.
252
+ * The address (public key) of the sender.
271
253
  */
272
- success?: boolean;
254
+ sender: string;
273
255
  /**
274
- * The transaction hash if the proof was successfully applied.
256
+ * The private key of the sender. It is NOT recommended to use this field. Please use the `sender` field instead. Use this field at your own risk and only if you know what you are doing and do not have access to mina-signer or wallet to get the signature.
275
257
  */
276
- hash?: string;
258
+ senderPrivateKey?: string;
277
259
  /**
278
- * Error message if proof generation failed.
260
+ * Optional. The nonce for the transaction.
279
261
  */
280
- error?: string;
262
+ nonce?: number;
263
+ /**
264
+ * Optional. A memo for the transaction.
265
+ */
266
+ memo?: string;
267
+ /**
268
+ * Optional. The developer fee for the transaction.
269
+ */
270
+ developerFee?: number;
281
271
  };
282
- export type ProveTokenTransaction = {
272
+ export type NftTransactionBaseParams = {
283
273
  /**
284
- * The transaction object.
274
+ * Type of the NFT transaction.
285
275
  */
286
- tx: TokenTransaction;
276
+ txType?: NftTransactionType;
287
277
  /**
288
- * The signed data for the transaction.
278
+ * Optional. The address of the NFT collection.
289
279
  */
290
- signedData: string;
280
+ collectionAddress?: string;
291
281
  /**
292
- * Optional. Whether to broadcast the transaction after proving.
282
+ * The address (public key) of the sender.
293
283
  */
294
- sendTransaction?: boolean;
295
- };
296
- export type ProveTokenTransactions = {
284
+ sender: string;
297
285
  /**
298
- * Array of transactions to be proved.
286
+ * The private key of the sender. It is NOT recommended to use this field. Please use the `sender` field instead. Use this field at your own risk and only if you know what you are doing and do not have access to mina-signer or wallet to get the signature.
299
287
  */
300
- txs: Array<ProveTokenTransaction>;
301
- };
302
- export type TokenAirdropTransactionParams = DeployedTokenTransactionBaseParams & {
288
+ senderPrivateKey?: string;
303
289
  /**
304
- * Must be "token:airdrop"
290
+ * Optional. The nonce for the transaction.
305
291
  */
306
- txType?: 'token:airdrop';
292
+ nonce?: number;
307
293
  /**
308
- * List of recipients and amounts for the airdrop
294
+ * Optional. A memo for the transaction.
309
295
  */
310
- recipients: Array<{
311
- /**
312
- * The recipient's address
313
- */
314
- address: string;
315
- /**
316
- * The amount to airdrop
317
- */
318
- amount: number;
319
- /**
320
- * Optional memo for this recipient
321
- */
322
- memo?: string;
323
- }>;
296
+ memo?: string;
297
+ /**
298
+ * Optional. The developer fee for the transaction.
299
+ */
300
+ developerFee?: number;
324
301
  };
325
- /**
326
- * Must be "token:airdrop"
327
- */
328
- export type txType2 = 'token:airdrop';
329
- export type TokenBidTransactionParams = DeployedTokenTransactionBaseParams & {
302
+ export type DeployedTokenTransactionBaseParams = TokenTransactionBaseParams & {
330
303
  /**
331
- * Must be "token:bid:create"
304
+ * The address of the token contract.
332
305
  */
333
- txType?: 'token:bid:create';
306
+ tokenAddress: string;
307
+ };
308
+ export type DeployedNftCollectionTransactionBaseParams = NftTransactionBaseParams & {
334
309
  /**
335
- * Optional. The private key for bidding.
310
+ * The address of the NFT collection.
336
311
  */
337
- bidPrivateKey?: string;
312
+ collectionAddress: string;
313
+ };
314
+ export type LaunchTokenTransactionBaseParams = TokenTransactionBaseParams & {
338
315
  /**
339
- * Optional. The address for bidding.
316
+ * Must be "token:launch"
340
317
  */
341
- bidAddress?: string;
318
+ txType?: 'token:launch';
342
319
  /**
343
- * The amount to bid.
320
+ * The type of admin contract to use.
344
321
  */
345
- amount: number;
322
+ adminContract: 'standard' | 'advanced' | 'bondingCurve';
346
323
  /**
347
- * The price to bid.
324
+ * The symbol of the token.
348
325
  */
349
- price: number;
350
- whitelist?: Whitelist;
351
- };
352
- /**
353
- * Must be "token:bid:create"
354
- */
355
- export type txType3 = 'token:bid:create';
356
- export type TokenBurnTransactionParams = DeployedTokenTransactionBaseParams & {
326
+ symbol: string;
357
327
  /**
358
- * Must be "token:burn"
328
+ * Optional. The number of decimal places for the token.
359
329
  */
360
- txType?: 'token:burn';
330
+ decimals?: number;
361
331
  /**
362
- * The address from which tokens are to be burned.
332
+ * URI or token info object containing metadata.
363
333
  */
364
- from: string;
334
+ uri: string | TokenInfo;
365
335
  /**
366
- * The amount of tokens to burn.
336
+ * Optional. The address of the token contract.
367
337
  */
368
- amount: number;
369
- };
370
- /**
371
- * Must be "token:burn"
372
- */
373
- export type txType4 = 'token:burn';
374
- export type TokenBuyTransactionParams = DeployedTokenTransactionBaseParams & {
338
+ tokenAddress?: string;
375
339
  /**
376
- * Must be "token:offer:buy"
340
+ * Optional. The address of the admin contract.
377
341
  */
378
- txType?: 'token:offer:buy';
342
+ adminContractAddress?: string;
379
343
  /**
380
- * The address of the offer to buy from.
344
+ * Optional. Private key for the token contract.
381
345
  */
382
- offerAddress: string;
346
+ tokenContractPrivateKey?: string;
383
347
  /**
384
- * The amount of tokens to buy.
348
+ * Optional. Private key for the admin contract.
385
349
  */
386
- amount: number;
350
+ adminContractPrivateKey?: string;
387
351
  };
388
- /**
389
- * Must be "token:offer:buy"
390
- */
391
- export type txType5 = 'token:offer:buy';
392
- export type TokenInfo = {
352
+ export type CollectionData = {
393
353
  /**
394
- * The symbol of the token.
354
+ * The royalty fee percentage (e.g., 1000 = 1%, 100 = 0.1%, 10000 = 10%, 100000 = 100%)
395
355
  */
396
- symbol?: string;
356
+ royaltyFee?: number;
397
357
  /**
398
- * Optional. The name of the token.
358
+ * The transfer fee amount
399
359
  */
400
- name?: string;
360
+ transferFee?: number;
401
361
  /**
402
- * Optional. Description of the token.
362
+ * If true, transferring NFTs requires approval from the admin contract
403
363
  */
404
- description?: string;
364
+ requireTransferApproval?: boolean;
405
365
  /**
406
- * Optional. URL of the token image.
366
+ * If true, the minting is stopped and cannot be resumed
407
367
  */
408
- imageUrl?: string;
368
+ mintingIsLimited?: boolean;
409
369
  /**
410
- * Optional. Base64-encoded image data (max 1 MB).
370
+ * Indicates whether the collection is currently paused
411
371
  */
412
- imageBase64?: string;
372
+ isPaused?: boolean;
373
+ };
374
+ export type NftMetadata = {
413
375
  /**
414
- * Optional. Twitter handle associated with the token.
376
+ * The name of the NFT
415
377
  */
416
- twitter?: string;
378
+ name: string;
417
379
  /**
418
- * Optional. Discord link associated with the token.
380
+ * The image URL or IPFS hash associated with the NFT
419
381
  */
420
- discord?: string;
382
+ image: string;
421
383
  /**
422
- * Optional. Telegram link associated with the token.
384
+ * Optional description of the NFT
423
385
  */
424
- telegram?: string;
386
+ description?: string;
425
387
  /**
426
- * Optional. Instagram handle associated with the token.
388
+ * Optional banner image URL or IPFS hash. Required for Collection Master NFT.
427
389
  */
428
- instagram?: string;
390
+ banner?: string;
391
+ traits?: Array<{
392
+ /**
393
+ * The trait key/name
394
+ */
395
+ key: string;
396
+ /**
397
+ * The type of the trait value
398
+ */
399
+ type: 'string' | 'text' | 'image' | 'url' | 'field' | 'number' | 'address' | 'map' | 'tree';
400
+ /**
401
+ * The trait value, can be a string or complex object depending on type
402
+ */
403
+ value: string | {
404
+ [key: string]: unknown;
405
+ };
406
+ /**
407
+ * Optional flag indicating if this trait is private
408
+ */
409
+ isPrivate?: boolean;
410
+ }>;
411
+ };
412
+ export type NftData = {
429
413
  /**
430
- * Optional. Facebook page associated with the token.
414
+ * The public key of the owner of the NFT
431
415
  */
432
- facebook?: string;
416
+ owner: string;
433
417
  /**
434
- * Optional. Official website of the token.
418
+ * The public key of the approved address of the NFT
435
419
  */
436
- website?: string;
420
+ approved?: string;
437
421
  /**
438
- * Optional. Code for the token contract.
422
+ * The version number of the NFT state
439
423
  */
440
- tokenContractCode?: string;
424
+ version?: number;
441
425
  /**
442
- * Optional. Code for the admin contracts.
426
+ * The unique identifier of the NFT within the collection. A bigint encoded as a string.
443
427
  */
444
- adminContractsCode?: Array<(string)>;
445
- };
446
- export type TokenInfoRequestParams = {
428
+ id?: string;
447
429
  /**
448
- * The address of the token contract.
430
+ * Determines whether the NFT's ownership can be changed via a zero-knowledge proof (readonly)
449
431
  */
450
- tokenAddress: string;
451
- };
452
- export type TokenMintTransactionParams = DeployedTokenTransactionBaseParams & {
432
+ canChangeOwnerByProof?: boolean;
453
433
  /**
454
- * Must be "token:mint"
434
+ * Specifies if the NFT's ownership can be transferred (readonly)
455
435
  */
456
- txType?: 'token:mint';
436
+ canTransfer?: boolean;
457
437
  /**
458
- * The address to which tokens are to be minted.
438
+ * Specifies if the NFT's approved address can be changed (readonly)
459
439
  */
460
- to: string;
440
+ canApprove?: boolean;
461
441
  /**
462
- * The amount of tokens to mint.
442
+ * Indicates whether the NFT's metadata can be updated (readonly)
463
443
  */
464
- amount: number;
444
+ canChangeMetadata?: boolean;
465
445
  /**
466
- * The price of the token in the bonding curve.
446
+ * Determines whether the storage associated with the NFT can be altered (readonly)
467
447
  */
468
- price?: number;
469
- };
470
- /**
471
- * Must be "token:mint"
472
- */
473
- export type txType6 = 'token:mint';
474
- export type TokenOfferTransactionParams = DeployedTokenTransactionBaseParams & {
448
+ canChangeStorage?: boolean;
475
449
  /**
476
- * Must be "token:offer:create"
450
+ * Specifies if the name of the NFT can be changed (readonly)
477
451
  */
478
- txType?: 'token:offer:create';
452
+ canChangeName?: boolean;
479
453
  /**
480
- * Optional. The private key for offering.
454
+ * Indicates whether the verification key hash for the metadata can be changed (readonly)
481
455
  */
482
- offerPrivateKey?: string;
456
+ canChangeMetadataVerificationKeyHash?: boolean;
483
457
  /**
484
- * Optional. The address for offering.
458
+ * Specifies if the NFT contract can be paused, preventing certain operations (readonly)
485
459
  */
486
- offerAddress?: string;
460
+ canPause?: boolean;
487
461
  /**
488
- * The amount to offer.
462
+ * Indicates whether the NFT contract is currently paused
489
463
  */
490
- amount: number;
464
+ isPaused?: boolean;
491
465
  /**
492
- * The price to offer.
466
+ * Determines whether the owner's authorization is required to upgrade the NFT's verification key (readonly)
493
467
  */
494
- price: number;
495
- whitelist?: Whitelist;
468
+ requireOwnerAuthorizationToUpgrade?: boolean;
496
469
  };
497
- /**
498
- * Must be "token:offer:create"
499
- */
500
- export type txType7 = 'token:offer:create';
501
- export type TokenRedeemTransactionParams = DeployedTokenTransactionBaseParams & {
502
- /**
503
- * Must be "token:redeem"
504
- */
505
- txType?: 'token:redeem';
470
+ export type NftMintParams = {
506
471
  /**
507
- * The amount of tokens to redeem.
472
+ * The name of the NFT
508
473
  */
509
- amount: number;
474
+ name: string;
510
475
  /**
511
- * The minimum price of the tokens to be redeemed.
476
+ * The address of the NFT contract
512
477
  */
513
- price: number;
478
+ address?: string;
514
479
  /**
515
- * The maximum slippage allowed for the redemption, default is 50 (5%).
480
+ * The private key of the NFT contract
516
481
  */
517
- slippage?: number;
518
- };
519
- /**
520
- * Must be "token:redeem"
521
- */
522
- export type txType8 = 'token:redeem';
523
- export type TokenSellTransactionParams = DeployedTokenTransactionBaseParams & {
482
+ addressPrivateKey?: string;
524
483
  /**
525
- * Must be "token:bid:sell"
484
+ * The token ID of the NFT
526
485
  */
527
- txType?: 'token:bid:sell';
486
+ tokenId?: number;
528
487
  /**
529
- * The address of the bid to sell to.
488
+ * The data associated with the NFT, including owner, approved, version, id, permissions and flags
530
489
  */
531
- bidAddress: string;
490
+ data: NftData;
532
491
  /**
533
- * The amount of tokens to sell.
492
+ * The fee associated with minting the NFT
534
493
  */
535
- amount: number;
536
- };
537
- /**
538
- * Must be "token:bid:sell"
539
- */
540
- export type txType9 = 'token:bid:sell';
541
- export type TokenState = {
494
+ fee?: number;
542
495
  /**
543
- * The address of the token contract.
496
+ * The metadata associated with the NFT, Field as a string or NftMetadata object
544
497
  */
545
- tokenAddress: string;
498
+ metadata: string | NftMetadata;
546
499
  /**
547
- * The unique identifier of the token.
500
+ * The off-chain storage information (e.g., IPFS hash)
548
501
  */
549
- tokenId: string;
502
+ storage?: string;
550
503
  /**
551
- * The address of the admin contract.
504
+ * The hash of the verification key used for metadata proofs, Field as a string
552
505
  */
553
- adminContractAddress: string;
506
+ metadataVerificationKeyHash?: string;
554
507
  /**
555
- * The address of the administrator.
508
+ * The expiry time slot for minting the NFT
556
509
  */
557
- adminAddress: string;
510
+ expiry?: number;
511
+ };
512
+ export type LaunchNftCollectionTransactionBaseParams = NftTransactionBaseParams & {
558
513
  /**
559
- * The token balance of the administrator.
514
+ * Must be "nft:launch"
560
515
  */
561
- adminTokenBalance: number;
516
+ txType?: 'nft:launch';
562
517
  /**
563
- * The total supply of the token.
518
+ * The type of admin contract to use. Default is "standard".
564
519
  */
565
- totalSupply: number;
520
+ adminContract?: 'standard' | 'advanced';
566
521
  /**
567
- * Indicates if the token contract is paused.
522
+ * The symbol of the NFT collection. Use NFT as a default value.
568
523
  */
569
- isPaused: boolean;
524
+ symbol?: string;
570
525
  /**
571
- * The number of decimal places the token uses.
526
+ * The URL of the NFT collection.
572
527
  */
573
- decimals: number;
528
+ url?: string;
574
529
  /**
575
- * The symbol of the token.
530
+ * The name of the NFT collection.
576
531
  */
577
- tokenSymbol: string;
532
+ collectionName: string;
578
533
  /**
579
- * The verification key hash of the token contract.
534
+ * The creator of the NFT collection. Should be the public key of the creator starting with B62.
580
535
  */
581
- verificationKeyHash: string;
536
+ creator?: string;
582
537
  /**
583
- * The URI of the token metadata.
538
+ * The base URL of the NFT collection, can be 'ipfs' or url with or without `https://`. Default is 'ipfs'.
584
539
  */
585
- uri: string;
540
+ baseURL?: string;
541
+ collectionData?: CollectionData;
542
+ masterNFT: NftMintParams;
586
543
  /**
587
- * The version number of the token contract.
544
+ * Optional. The address of the collection.
588
545
  */
589
- version: number;
546
+ collectionAddress?: string;
590
547
  /**
591
- * The symbol of the admin token.
548
+ * Optional. The address of the admin contract.
592
549
  */
593
- adminTokenSymbol: string;
550
+ adminContractAddress?: string;
594
551
  /**
595
- * The URI of the admin token metadata.
552
+ * Optional. Private key for the collection contract.
596
553
  */
597
- adminUri: string;
554
+ collectionContractPrivateKey?: string;
598
555
  /**
599
- * The verification key hash of the admin contract.
556
+ * Optional. Private key for the admin contract.
600
557
  */
601
- adminVerificationKeyHash: string;
602
- adminVersion: number;
558
+ adminContractPrivateKey?: string;
603
559
  };
604
- export type TokenSymbolAndAdmin = {
560
+ export type TokenMintTransactionParams = DeployedTokenTransactionBaseParams & {
605
561
  /**
606
- * The address of the token contract.
562
+ * Must be "token:mint"
607
563
  */
608
- tokenAddress: string;
564
+ txType?: 'token:mint';
609
565
  /**
610
- * The address of the admin contract.
566
+ * The address to which tokens are to be minted.
611
567
  */
612
- adminContractAddress: string;
568
+ to: string;
613
569
  /**
614
- * The address of the administrator.
570
+ * The amount of tokens to mint.
615
571
  */
616
- adminAddress: string;
572
+ amount: number;
617
573
  /**
618
- * The symbol of the token.
574
+ * The price of the token in the bonding curve.
619
575
  */
620
- tokenSymbol: string;
576
+ price?: number;
621
577
  };
622
- export type TokenTransaction = TransactionPayloads & {
578
+ export type NftMintTransactionParams = DeployedNftCollectionTransactionBaseParams & {
623
579
  /**
624
- * The symbol of the token.
580
+ * Must be "nft:mint"
625
581
  */
626
- symbol: string;
627
- request: (TokenTransactionParams & {
628
- /**
629
- * The type of the transaction.
630
- */
631
- txType: TokenTransactionType;
632
- });
582
+ txType: 'nft:mint';
583
+ nftMintParams: NftMintParams;
633
584
  };
634
- export type TokenTransactionBaseParams = {
585
+ export type TokenBurnTransactionParams = DeployedTokenTransactionBaseParams & {
635
586
  /**
636
- * Type of the token transaction.
587
+ * Must be "token:burn"
637
588
  */
638
- txType?: string;
589
+ txType?: 'token:burn';
639
590
  /**
640
- * Optional. The address of the token contract.
591
+ * The address from which tokens are to be burned.
641
592
  */
642
- tokenAddress?: string;
593
+ from: string;
643
594
  /**
644
- * The address (public key) of the sender.
595
+ * The amount of tokens to burn.
645
596
  */
646
- sender: string;
597
+ amount: number;
598
+ };
599
+ export type TokenRedeemTransactionParams = DeployedTokenTransactionBaseParams & {
647
600
  /**
648
- * The private key of the sender. It is NOT recommended to use this field. Please use the `sender` field instead. Use this field at your own risk and only if you know what you are doing and do not have access to mina-signer or wallet to get the signature.
601
+ * Must be "token:redeem"
649
602
  */
650
- senderPrivateKey?: string;
603
+ txType?: 'token:redeem';
651
604
  /**
652
- * Optional. The nonce for the transaction.
653
- */
654
- nonce?: number;
655
- /**
656
- * Optional. A memo for the transaction.
605
+ * The amount of tokens to redeem.
657
606
  */
658
- memo?: string;
607
+ amount: number;
659
608
  /**
660
- * Optional. The developer fee for the transaction.
609
+ * The minimum price of the tokens to be redeemed.
661
610
  */
662
- developerFee?: number;
663
- };
664
- export type TokenTransactionParams = LaunchTokenStandardAdminParams | LaunchTokenAdvancedAdminParams | TokenMintTransactionParams | TokenBurnTransactionParams | TokenRedeemTransactionParams | TokenTransferTransactionParams | TokenAirdropTransactionParams | TokenOfferTransactionParams | TokenBidTransactionParams | TokenBuyTransactionParams | TokenSellTransactionParams | TokenWithdrawBidTransactionParams | TokenWithdrawOfferTransactionParams | TokenUpdateBidWhitelistTransactionParams | TokenUpdateOfferWhitelistTransactionParams | TokenUpdateAdminWhitelistTransactionParams;
665
- export type TokenTransactions = {
611
+ price: number;
666
612
  /**
667
- * Array of token transactions.
613
+ * The maximum slippage allowed for the redemption, default is 50 (5%).
668
614
  */
669
- txs: Array<TokenTransaction>;
615
+ slippage?: number;
670
616
  };
671
- export type TokenTransactionType = 'token:launch' | 'token:mint' | 'token:burn' | 'token:redeem' | 'token:transfer' | 'token:bid:create' | 'token:offer:create' | 'token:offer:buy' | 'token:bid:sell' | 'token:airdrop' | 'token:bid:withdraw' | 'token:offer:withdraw' | 'token:bid:whitelist' | 'token:offer:whitelist' | 'token:admin:whitelist';
672
617
  export type TokenTransferTransactionParams = DeployedTokenTransactionBaseParams & {
673
618
  /**
674
619
  * Must be "token:transfer"
@@ -683,64 +628,103 @@ export type TokenTransferTransactionParams = DeployedTokenTransactionBaseParams
683
628
  */
684
629
  amount: number;
685
630
  };
686
- /**
687
- * Must be "token:transfer"
688
- */
689
- export type txType10 = 'token:transfer';
690
- export type TokenUpdateAdminWhitelistTransactionParams = DeployedTokenTransactionBaseParams & {
631
+ export type TokenAirdropTransactionParams = DeployedTokenTransactionBaseParams & {
691
632
  /**
692
- * Must be "token:admin:whitelist"
633
+ * Must be "token:airdrop"
693
634
  */
694
- txType?: 'token:admin:whitelist';
635
+ txType?: 'token:airdrop';
695
636
  /**
696
- * The address of the admin to update whitelist for.
637
+ * List of recipients and amounts for the airdrop
697
638
  */
698
- adminAddress: string;
639
+ recipients: Array<{
640
+ /**
641
+ * The recipient's address
642
+ */
643
+ address: string;
644
+ /**
645
+ * The amount to airdrop
646
+ */
647
+ amount: number;
648
+ /**
649
+ * Optional memo for this recipient
650
+ */
651
+ memo?: string;
652
+ }>;
653
+ };
654
+ export type TokenBidTransactionParams = DeployedTokenTransactionBaseParams & {
699
655
  /**
700
- * Either a list of whitelisted addresses with optional amounts, or a string representing a whitelist contract address
656
+ * Must be "token:bid:create"
701
657
  */
702
- whitelist: Whitelist;
658
+ txType?: 'token:bid:create';
659
+ /**
660
+ * Optional. The private key for bidding.
661
+ */
662
+ bidPrivateKey?: string;
663
+ /**
664
+ * Optional. The address for bidding.
665
+ */
666
+ bidAddress?: string;
667
+ /**
668
+ * The amount to bid.
669
+ */
670
+ amount: number;
671
+ /**
672
+ * The price to bid.
673
+ */
674
+ price: number;
675
+ whitelist?: Whitelist;
703
676
  };
704
- /**
705
- * Must be "token:admin:whitelist"
706
- */
707
- export type txType11 = 'token:admin:whitelist';
708
- export type TokenUpdateBidWhitelistTransactionParams = DeployedTokenTransactionBaseParams & {
677
+ export type TokenOfferTransactionParams = DeployedTokenTransactionBaseParams & {
709
678
  /**
710
- * Must be "token:bid:whitelist"
679
+ * Must be "token:offer:create"
711
680
  */
712
- txType?: 'token:bid:whitelist';
681
+ txType?: 'token:offer:create';
713
682
  /**
714
- * The address of the bid to update whitelist for.
683
+ * Optional. The private key for offering.
715
684
  */
716
- bidAddress: string;
685
+ offerPrivateKey?: string;
717
686
  /**
718
- * Either a list of whitelisted addresses with optional amounts, or a string representing a whitelist contract address
687
+ * Optional. The address for offering.
719
688
  */
720
- whitelist: Whitelist;
689
+ offerAddress?: string;
690
+ /**
691
+ * The amount to offer.
692
+ */
693
+ amount: number;
694
+ /**
695
+ * The price to offer.
696
+ */
697
+ price: number;
698
+ whitelist?: Whitelist;
721
699
  };
722
- /**
723
- * Must be "token:bid:whitelist"
724
- */
725
- export type txType12 = 'token:bid:whitelist';
726
- export type TokenUpdateOfferWhitelistTransactionParams = DeployedTokenTransactionBaseParams & {
700
+ export type TokenBuyTransactionParams = DeployedTokenTransactionBaseParams & {
727
701
  /**
728
- * Must be "token:offer:whitelist"
702
+ * Must be "token:offer:buy"
729
703
  */
730
- txType?: 'token:offer:whitelist';
704
+ txType?: 'token:offer:buy';
731
705
  /**
732
- * The address of the offer to update whitelist for.
706
+ * The address of the offer to buy from.
733
707
  */
734
708
  offerAddress: string;
735
709
  /**
736
- * Either a list of whitelisted addresses with optional amounts, or a string representing a whitelist contract address
710
+ * The amount of tokens to buy.
737
711
  */
738
- whitelist: Whitelist;
712
+ amount: number;
713
+ };
714
+ export type TokenSellTransactionParams = DeployedTokenTransactionBaseParams & {
715
+ /**
716
+ * Must be "token:bid:sell"
717
+ */
718
+ txType?: 'token:bid:sell';
719
+ /**
720
+ * The address of the bid to sell to.
721
+ */
722
+ bidAddress: string;
723
+ /**
724
+ * The amount of tokens to sell.
725
+ */
726
+ amount: number;
739
727
  };
740
- /**
741
- * Must be "token:offer:whitelist"
742
- */
743
- export type txType13 = 'token:offer:whitelist';
744
728
  export type TokenWithdrawBidTransactionParams = DeployedTokenTransactionBaseParams & {
745
729
  /**
746
730
  * Must be "token:bid:withdraw"
@@ -755,10 +739,6 @@ export type TokenWithdrawBidTransactionParams = DeployedTokenTransactionBasePara
755
739
  */
756
740
  amount: number;
757
741
  };
758
- /**
759
- * Must be "token:bid:withdraw"
760
- */
761
- export type txType14 = 'token:bid:withdraw';
762
742
  export type TokenWithdrawOfferTransactionParams = DeployedTokenTransactionBaseParams & {
763
743
  /**
764
744
  * Must be "token:offer:withdraw"
@@ -773,296 +753,1510 @@ export type TokenWithdrawOfferTransactionParams = DeployedTokenTransactionBasePa
773
753
  */
774
754
  amount: number;
775
755
  };
776
- /**
777
- * Must be "token:offer:withdraw"
778
- */
779
- export type txType15 = 'token:offer:withdraw';
780
- export type TransactionPayloads = {
756
+ export type TokenUpdateBidWhitelistTransactionParams = DeployedTokenTransactionBaseParams & {
781
757
  /**
782
- * The address initiating the transaction.
758
+ * Must be "token:bid:whitelist"
783
759
  */
784
- sender: string;
760
+ txType?: 'token:bid:whitelist';
785
761
  /**
786
- * The nonce for the transaction.
762
+ * The address of the bid to update whitelist for.
787
763
  */
788
- nonce: number;
764
+ bidAddress: string;
789
765
  /**
790
- * A memo for the transaction.
766
+ * Either a list of whitelisted addresses with optional amounts, or a string representing a whitelist contract address
791
767
  */
792
- memo: string;
768
+ whitelist: Whitelist;
769
+ };
770
+ export type TokenUpdateOfferWhitelistTransactionParams = DeployedTokenTransactionBaseParams & {
793
771
  /**
794
- * The fee for the transaction.
772
+ * Must be "token:offer:whitelist"
795
773
  */
796
- fee: number;
797
- walletPayload: {
798
- /**
799
- * The nonce for the transaction.
800
- */
801
- nonce?: number;
802
- /**
803
- * The transaction data.
804
- */
805
- transaction?: string;
806
- /**
807
- * Indicates if only signature is needed.
808
- */
809
- onlySign?: boolean;
810
- feePayer?: {
811
- /**
812
- * The fee for the transaction.
813
- */
814
- fee?: number;
815
- /**
816
- * A memo for the transaction.
817
- */
818
- memo?: string;
819
- };
820
- };
821
- minaSignerPayload: {
822
- /**
823
- * The zkApp command data.
824
- */
825
- zkappCommand: unknown;
826
- feePayer: {
827
- /**
828
- * The fee payer's address.
829
- */
830
- feePayer?: string;
831
- /**
832
- * The fee for the transaction.
833
- */
834
- fee?: number;
835
- /**
836
- * The nonce for the transaction.
837
- */
838
- nonce?: number;
839
- /**
840
- * A memo for the transaction.
841
- */
842
- memo?: string;
843
- };
844
- };
774
+ txType?: 'token:offer:whitelist';
845
775
  /**
846
- * The payload for the prover.
776
+ * The address of the offer to update whitelist for.
847
777
  */
848
- proverPayload: string;
778
+ offerAddress: string;
849
779
  /**
850
- * The signed data for the transaction.
780
+ * Either a list of whitelisted addresses with optional amounts, or a string representing a whitelist contract address
851
781
  */
852
- signedData: string;
782
+ whitelist: Whitelist;
783
+ };
784
+ export type TokenUpdateAdminWhitelistTransactionParams = DeployedTokenTransactionBaseParams & {
853
785
  /**
854
- * The raw transaction data.
786
+ * Must be "token:admin:whitelist"
855
787
  */
856
- transaction: string;
788
+ txType?: 'token:admin:whitelist';
857
789
  /**
858
- * Optional. Whether to broadcast the transaction after proving.
790
+ * The address of the admin to update whitelist for.
859
791
  */
860
- sendTransaction?: boolean;
792
+ adminAddress: string;
793
+ /**
794
+ * Either a list of whitelisted addresses with optional amounts, or a string representing a whitelist contract address
795
+ */
796
+ whitelist: Whitelist;
861
797
  };
862
- export type TransactionStatus = {
798
+ export type LaunchTokenStandardAdminParams = LaunchTokenTransactionBaseParams & {
863
799
  /**
864
- * The transaction hash.
800
+ * Must be "standard" for standard admin contract.
865
801
  */
866
- hash?: string;
802
+ adminContract: 'standard';
803
+ };
804
+ export type LaunchNftCollectionStandardAdminParams = LaunchNftCollectionTransactionBaseParams & {
867
805
  /**
868
- * The status of the transaction.
806
+ * Must be "standard" for standard admin contract.
869
807
  */
870
- status?: 'pending' | 'applied' | 'failed' | 'unknown';
808
+ adminContract: 'standard';
809
+ };
810
+ export type LaunchTokenAdvancedAdminParams = LaunchTokenTransactionBaseParams & {
871
811
  /**
872
- * The transaction hash.
812
+ * Must be "advanced" for advanced admin contract.
873
813
  */
874
- error?: string;
814
+ adminContract: 'advanced';
875
815
  /**
876
- * The details of the transaction.
816
+ * Specifies who can mint tokens.
877
817
  */
878
- details?: {
879
- /**
880
- * The height of the block containing the transaction.
881
- */
882
- blockHeight?: number;
883
- /**
884
- * The state hash of the block.
885
- */
886
- stateHash?: string;
887
- /**
888
- * The status of the block.
889
- */
890
- blockStatus?: string;
891
- /**
892
- * The timestamp of the block.
893
- */
894
- timestamp?: number;
895
- /**
896
- * The transaction hash.
897
- */
898
- txHash?: string;
899
- /**
900
- * The status of the transaction in the block.
818
+ canMint: 'whitelist' | 'anyone';
819
+ /**
820
+ * Optional. Whether admin signature is required for minting.
821
+ */
822
+ requireAdminSignatureForMint?: boolean;
823
+ /**
824
+ * Optional. List of whitelisted addresses with optional amounts, or a string.
825
+ */
826
+ whitelist?: Whitelist;
827
+ /**
828
+ * Optional. Maximum total supply. Uses UInt64.MAXINT() if not provided.
829
+ */
830
+ totalSupply?: number;
831
+ };
832
+ export type AdvancedNftCollectionAdminData = {
833
+ /**
834
+ * Indicates whether the contract can be paused
835
+ */
836
+ canPause?: boolean;
837
+ /**
838
+ * Indicates whether the contract is currently paused
839
+ */
840
+ isPaused?: boolean;
841
+ /**
842
+ * Indicates whether the contract can change the royalty fee
843
+ */
844
+ allowChangeRoyalty?: boolean;
845
+ /**
846
+ * Indicates whether the contract can change the transfer fee
847
+ */
848
+ allowChangeTransferFee?: boolean;
849
+ /**
850
+ * Indicates whether the contract can change the base URI
851
+ */
852
+ allowChangeBaseUri?: boolean;
853
+ /**
854
+ * Indicates whether the contract can change the creator
855
+ */
856
+ allowChangeCreator?: boolean;
857
+ /**
858
+ * Indicates whether the contract can change the admin
859
+ */
860
+ allowChangeAdmin?: boolean;
861
+ /**
862
+ * Indicates whether the contract can change the name
863
+ */
864
+ allowChangeName?: boolean;
865
+ };
866
+ export type LaunchNftCollectionAdvancedAdminParams = LaunchNftCollectionTransactionBaseParams & {
867
+ /**
868
+ * Must be "advanced" for advanced admin contract.
869
+ */
870
+ adminContract: 'advanced';
871
+ /**
872
+ * The address of the upgrade authority contract
873
+ */
874
+ upgradeAuthority: string;
875
+ /**
876
+ * The admin data for the NFT collection
877
+ */
878
+ adminData?: AdvancedNftCollectionAdminData;
879
+ /**
880
+ * Optional. List of whitelisted addresses with optional amounts, or a string.
881
+ */
882
+ whitelist?: Whitelist;
883
+ };
884
+ export type LaunchTokenBondingCurveAdminParams = LaunchTokenTransactionBaseParams & {
885
+ /**
886
+ * Must be "bondingCurve" for bonding curve admin contract.
887
+ */
888
+ adminContract: 'bondingCurve';
889
+ };
890
+ export type TokenInfo = {
891
+ /**
892
+ * The symbol of the token.
893
+ */
894
+ symbol?: string;
895
+ /**
896
+ * Optional. The name of the token.
897
+ */
898
+ name?: string;
899
+ /**
900
+ * Optional. Description of the token.
901
+ */
902
+ description?: string;
903
+ /**
904
+ * Optional. URL of the token image.
905
+ */
906
+ imageUrl?: string;
907
+ /**
908
+ * Optional. Base64-encoded image data (max 1 MB).
909
+ */
910
+ imageBase64?: string;
911
+ /**
912
+ * Optional. Twitter handle associated with the token.
913
+ */
914
+ twitter?: string;
915
+ /**
916
+ * Optional. Discord link associated with the token.
917
+ */
918
+ discord?: string;
919
+ /**
920
+ * Optional. Telegram link associated with the token.
921
+ */
922
+ telegram?: string;
923
+ /**
924
+ * Optional. Instagram handle associated with the token.
925
+ */
926
+ instagram?: string;
927
+ /**
928
+ * Optional. Facebook page associated with the token.
929
+ */
930
+ facebook?: string;
931
+ /**
932
+ * Optional. Official website of the token.
933
+ */
934
+ website?: string;
935
+ /**
936
+ * Optional. Code for the token contract.
937
+ */
938
+ tokenContractCode?: string;
939
+ /**
940
+ * Optional. Code for the admin contracts.
941
+ */
942
+ adminContractsCode?: Array<string>;
943
+ };
944
+ export type TransactionPayloads = {
945
+ /**
946
+ * The address initiating the transaction.
947
+ */
948
+ sender: string;
949
+ /**
950
+ * The nonce for the transaction.
951
+ */
952
+ nonce: number;
953
+ /**
954
+ * A memo for the transaction.
955
+ */
956
+ memo: string;
957
+ /**
958
+ * The fee for the transaction.
959
+ */
960
+ fee: number;
961
+ walletPayload: {
962
+ /**
963
+ * The nonce for the transaction.
901
964
  */
902
- txStatus?: string;
965
+ nonce?: number;
966
+ /**
967
+ * The transaction data.
968
+ */
969
+ transaction?: string;
970
+ /**
971
+ * Indicates if only signature is needed.
972
+ */
973
+ onlySign?: boolean;
974
+ feePayer?: {
975
+ /**
976
+ * The fee for the transaction.
977
+ */
978
+ fee?: number;
979
+ /**
980
+ * A memo for the transaction.
981
+ */
982
+ memo?: string;
983
+ };
984
+ };
985
+ minaSignerPayload: {
986
+ /**
987
+ * The zkApp command data.
988
+ */
989
+ zkappCommand: {
990
+ [key: string]: unknown;
991
+ };
992
+ feePayer: {
993
+ /**
994
+ * The fee payer's address.
995
+ */
996
+ feePayer?: string;
997
+ /**
998
+ * The fee for the transaction.
999
+ */
1000
+ fee?: number;
1001
+ /**
1002
+ * The nonce for the transaction.
1003
+ */
1004
+ nonce?: number;
1005
+ /**
1006
+ * A memo for the transaction.
1007
+ */
1008
+ memo?: string;
1009
+ };
1010
+ };
1011
+ /**
1012
+ * The payload for the prover.
1013
+ */
1014
+ proverPayload: string;
1015
+ /**
1016
+ * The signed data for the transaction.
1017
+ */
1018
+ signedData: string;
1019
+ /**
1020
+ * The raw transaction data.
1021
+ */
1022
+ transaction: string;
1023
+ /**
1024
+ * Optional. Whether to broadcast the transaction after proving.
1025
+ */
1026
+ sendTransaction?: boolean;
1027
+ };
1028
+ export type TokenTransactionParams = LaunchTokenStandardAdminParams | LaunchTokenAdvancedAdminParams | TokenMintTransactionParams | TokenBurnTransactionParams | TokenRedeemTransactionParams | TokenTransferTransactionParams | TokenAirdropTransactionParams | TokenOfferTransactionParams | TokenBidTransactionParams | TokenBuyTransactionParams | TokenSellTransactionParams | TokenWithdrawBidTransactionParams | TokenWithdrawOfferTransactionParams | TokenUpdateBidWhitelistTransactionParams | TokenUpdateOfferWhitelistTransactionParams | TokenUpdateAdminWhitelistTransactionParams;
1029
+ export type NftTransactionParams = LaunchNftCollectionStandardAdminParams | LaunchNftCollectionAdvancedAdminParams | NftMintTransactionParams;
1030
+ export type TokenTransaction = TransactionPayloads & {
1031
+ /**
1032
+ * The symbol of the token.
1033
+ */
1034
+ symbol: string;
1035
+ request: TokenTransactionParams & {
1036
+ /**
1037
+ * The type of the token transaction.
1038
+ */
1039
+ txType: TokenTransactionType;
1040
+ };
1041
+ };
1042
+ export type NftTransaction = TransactionPayloads & {
1043
+ /**
1044
+ * The symbol of the NFT collection.
1045
+ */
1046
+ symbol: string;
1047
+ request: NftTransactionParams & {
1048
+ /**
1049
+ * The type of the NFT transaction.
1050
+ */
1051
+ txType: NftTransactionType;
903
1052
  };
904
1053
  };
1054
+ export type TokenTransactions = {
1055
+ /**
1056
+ * Array of token transactions.
1057
+ */
1058
+ txs: Array<TokenTransaction>;
1059
+ };
1060
+ export type ProveTokenTransaction = {
1061
+ /**
1062
+ * The transaction object.
1063
+ */
1064
+ tx: TokenTransaction;
1065
+ /**
1066
+ * The signed data for the transaction.
1067
+ */
1068
+ signedData: string;
1069
+ /**
1070
+ * Optional. Whether to broadcast the transaction after proving.
1071
+ */
1072
+ sendTransaction?: boolean;
1073
+ };
1074
+ export type ProveNftTransaction = {
1075
+ /**
1076
+ * The transaction object.
1077
+ */
1078
+ tx: NftTransaction;
1079
+ /**
1080
+ * The signed data for the transaction.
1081
+ */
1082
+ signedData: string;
1083
+ /**
1084
+ * Optional. Whether to broadcast the transaction after proving.
1085
+ */
1086
+ sendTransaction?: boolean;
1087
+ };
1088
+ export type ProveTokenTransactions = {
1089
+ /**
1090
+ * Array of transactions to be proved.
1091
+ */
1092
+ txs: Array<ProveTokenTransaction>;
1093
+ };
1094
+ export type ProveNftTransactions = {
1095
+ /**
1096
+ * Array of transactions to be proved.
1097
+ */
1098
+ txs: Array<ProveNftTransaction>;
1099
+ };
1100
+ export type TokenState = {
1101
+ /**
1102
+ * The address of the token contract.
1103
+ */
1104
+ tokenAddress: string;
1105
+ /**
1106
+ * The unique identifier of the token.
1107
+ */
1108
+ tokenId: string;
1109
+ /**
1110
+ * The address of the admin contract.
1111
+ */
1112
+ adminContractAddress: string;
1113
+ /**
1114
+ * The address of the administrator.
1115
+ */
1116
+ adminAddress: string;
1117
+ /**
1118
+ * The token balance of the administrator.
1119
+ */
1120
+ adminTokenBalance: number;
1121
+ /**
1122
+ * The total supply of the token.
1123
+ */
1124
+ totalSupply: number;
1125
+ /**
1126
+ * Indicates if the token contract is paused.
1127
+ */
1128
+ isPaused: boolean;
1129
+ /**
1130
+ * The number of decimal places the token uses.
1131
+ */
1132
+ decimals: number;
1133
+ /**
1134
+ * The symbol of the token.
1135
+ */
1136
+ tokenSymbol: string;
1137
+ /**
1138
+ * The verification key hash of the token contract.
1139
+ */
1140
+ verificationKeyHash: string;
1141
+ /**
1142
+ * The URI of the token metadata.
1143
+ */
1144
+ uri: string;
1145
+ /**
1146
+ * The version number of the token contract.
1147
+ */
1148
+ version: number;
1149
+ /**
1150
+ * The symbol of the admin token.
1151
+ */
1152
+ adminTokenSymbol: string;
1153
+ /**
1154
+ * The URI of the admin token metadata.
1155
+ */
1156
+ adminUri: string;
1157
+ /**
1158
+ * The verification key hash of the admin contract.
1159
+ */
1160
+ adminVerificationKeyHash: string;
1161
+ adminVersion: number;
1162
+ };
1163
+ export type ProofResult = {
1164
+ /**
1165
+ * Indicates whether the proof generation was successful.
1166
+ */
1167
+ success?: boolean;
1168
+ /**
1169
+ * The transaction hash if the proof was successfully applied.
1170
+ */
1171
+ hash?: string;
1172
+ /**
1173
+ * Error message if proof generation failed.
1174
+ */
1175
+ error?: string;
1176
+ };
1177
+ export type AirdropTransactionResponse = {
1178
+ /**
1179
+ * List of token transactions created for the airdrop.
1180
+ */
1181
+ txs?: Array<TokenTransaction>;
1182
+ };
905
1183
  /**
906
- * The status of the transaction.
1184
+ * Optional. List of whitelisted addresses with optional amounts, or a string.
907
1185
  */
908
- export type status = 'pending' | 'applied' | 'failed' | 'unknown';
909
- export type TransactionStatusParams = {
1186
+ export type Whitelist = Array<{
1187
+ /**
1188
+ * The whitelisted address.
1189
+ */
1190
+ address: string;
1191
+ /**
1192
+ * Optional. The amount allowed to bid.
1193
+ */
1194
+ amount?: number;
1195
+ }> | string;
1196
+ export type ContractInfoRequest = {
1197
+ /**
1198
+ * The contract address.
1199
+ */
1200
+ address: string;
1201
+ /**
1202
+ * Optional. The tokenId.
1203
+ */
1204
+ tokenId?: string;
1205
+ };
1206
+ export type ContractPropertyType = 'name' | 'role' | 'address' | 'tokenId' | 'verificationKey' | 'verificationKeyHash' | 'zkappVersion' | 'bigint' | 'number' | 'field' | 'boolean' | 'ipfs' | 'string' | 'uri' | 'symbol';
1207
+ export type ContractProperty = {
1208
+ type: ContractPropertyType;
1209
+ value: string;
1210
+ presentation?: string;
1211
+ };
1212
+ export type ContractInfo = {
1213
+ name: ContractProperty & {
1214
+ type?: 'name';
1215
+ };
1216
+ address: ContractProperty & {
1217
+ type?: 'address';
1218
+ };
1219
+ tokenId: ContractProperty & {
1220
+ type?: 'tokenId';
1221
+ };
1222
+ derivedTokenId: ContractProperty & {
1223
+ type?: 'tokenId';
1224
+ };
1225
+ symbol: ContractProperty & {
1226
+ type?: 'symbol';
1227
+ };
1228
+ uri: ContractProperty & {
1229
+ type?: 'uri';
1230
+ };
1231
+ verificationKey: ContractProperty & {
1232
+ type?: 'verificationKey';
1233
+ };
1234
+ verificationKeyHash: ContractProperty & {
1235
+ type?: 'verificationKeyHash';
1236
+ };
1237
+ zkappVersion: ContractProperty & {
1238
+ type?: 'zkappVersion';
1239
+ };
1240
+ [key: string]: ContractProperty | (ContractProperty & {
1241
+ type?: 'name';
1242
+ }) | (ContractProperty & {
1243
+ type?: 'address';
1244
+ }) | (ContractProperty & {
1245
+ type?: 'tokenId';
1246
+ }) | (ContractProperty & {
1247
+ type?: 'tokenId';
1248
+ }) | (ContractProperty & {
1249
+ type?: 'symbol';
1250
+ }) | (ContractProperty & {
1251
+ type?: 'uri';
1252
+ }) | (ContractProperty & {
1253
+ type?: 'verificationKey';
1254
+ }) | (ContractProperty & {
1255
+ type?: 'verificationKeyHash';
1256
+ }) | (ContractProperty & {
1257
+ type?: 'zkappVersion';
1258
+ });
1259
+ };
1260
+ export type LaunchNftCollectionData = {
1261
+ body: LaunchNftCollectionStandardAdminParams | LaunchNftCollectionAdvancedAdminParams;
1262
+ path?: never;
1263
+ query?: never;
1264
+ url: '/nft/launch';
1265
+ };
1266
+ export type LaunchNftCollectionErrors = {
1267
+ /**
1268
+ * Bad request - invalid input parameters.
1269
+ */
1270
+ 400: ErrorResponse;
1271
+ /**
1272
+ * Unauthorized - user not authenticated.
1273
+ */
1274
+ 401: ErrorResponse;
1275
+ /**
1276
+ * Forbidden - user doesn't have permission.
1277
+ */
1278
+ 403: ErrorResponse;
1279
+ /**
1280
+ * Too many requests.
1281
+ */
1282
+ 429: ErrorResponse;
1283
+ /**
1284
+ * Internal server error - something went wrong during the request.
1285
+ */
1286
+ 500: ErrorResponse;
1287
+ /**
1288
+ * Service unavailable - blockchain or other external service is down.
1289
+ */
1290
+ 503: ErrorResponse;
1291
+ };
1292
+ export type LaunchNftCollectionError = LaunchNftCollectionErrors[keyof LaunchNftCollectionErrors];
1293
+ export type LaunchNftCollectionResponses = {
1294
+ /**
1295
+ * Successful deployment of a new NFT Collection.
1296
+ */
1297
+ 200: NftTransaction;
1298
+ };
1299
+ export type LaunchNftCollectionResponse = LaunchNftCollectionResponses[keyof LaunchNftCollectionResponses];
1300
+ export type LaunchTokenData = {
1301
+ body: LaunchTokenStandardAdminParams | LaunchTokenAdvancedAdminParams | LaunchTokenBondingCurveAdminParams;
1302
+ path?: never;
1303
+ query?: never;
1304
+ url: '/token/launch';
1305
+ };
1306
+ export type LaunchTokenErrors = {
1307
+ /**
1308
+ * Bad request - invalid input parameters.
1309
+ */
1310
+ 400: ErrorResponse;
1311
+ /**
1312
+ * Unauthorized - user not authenticated.
1313
+ */
1314
+ 401: ErrorResponse;
1315
+ /**
1316
+ * Forbidden - user doesn't have permission.
1317
+ */
1318
+ 403: ErrorResponse;
1319
+ /**
1320
+ * Too many requests.
1321
+ */
1322
+ 429: ErrorResponse;
1323
+ /**
1324
+ * Internal server error - something went wrong during the request.
1325
+ */
1326
+ 500: ErrorResponse;
1327
+ /**
1328
+ * Service unavailable - blockchain or other external service is down.
1329
+ */
1330
+ 503: ErrorResponse;
1331
+ };
1332
+ export type LaunchTokenError = LaunchTokenErrors[keyof LaunchTokenErrors];
1333
+ export type LaunchTokenResponses = {
1334
+ /**
1335
+ * Successful deployment of a new token.
1336
+ */
1337
+ 200: TokenTransaction;
1338
+ };
1339
+ export type LaunchTokenResponse = LaunchTokenResponses[keyof LaunchTokenResponses];
1340
+ export type GetContractInfoData = {
1341
+ body: ContractInfoRequest;
1342
+ path?: never;
1343
+ query?: never;
1344
+ url: '/info/contract';
1345
+ };
1346
+ export type GetContractInfoErrors = {
1347
+ /**
1348
+ * Bad request - invalid input parameters.
1349
+ */
1350
+ 400: ErrorResponse;
1351
+ /**
1352
+ * Unauthorized - user not authenticated.
1353
+ */
1354
+ 401: ErrorResponse;
1355
+ /**
1356
+ * Forbidden - user doesn't have permission.
1357
+ */
1358
+ 403: ErrorResponse;
1359
+ /**
1360
+ * Too many requests.
1361
+ */
1362
+ 429: ErrorResponse;
1363
+ /**
1364
+ * Internal server error - something went wrong during the request.
1365
+ */
1366
+ 500: ErrorResponse;
1367
+ /**
1368
+ * Service unavailable - blockchain or other external service is down.
1369
+ */
1370
+ 503: ErrorResponse;
1371
+ };
1372
+ export type GetContractInfoError = GetContractInfoErrors[keyof GetContractInfoErrors];
1373
+ export type GetContractInfoResponses = {
1374
+ /**
1375
+ * Successful retrieval of contract info for the given contract and his admin contract and other contracts that are related to it.
1376
+ */
1377
+ 200: Array<ContractInfo>;
1378
+ };
1379
+ export type GetContractInfoResponse = GetContractInfoResponses[keyof GetContractInfoResponses];
1380
+ export type GetNftV2InfoData = {
1381
+ body: NftRequestParams;
1382
+ path?: never;
1383
+ query?: never;
1384
+ url: '/info/nft-v2';
1385
+ };
1386
+ export type GetNftV2InfoErrors = {
1387
+ /**
1388
+ * Bad request - invalid input parameters.
1389
+ */
1390
+ 400: ErrorResponse;
1391
+ /**
1392
+ * Unauthorized - user not authenticated.
1393
+ */
1394
+ 401: ErrorResponse;
1395
+ /**
1396
+ * Forbidden - user doesn't have permission.
1397
+ */
1398
+ 403: ErrorResponse;
1399
+ /**
1400
+ * Too many requests.
1401
+ */
1402
+ 429: ErrorResponse;
1403
+ /**
1404
+ * Internal server error - something went wrong during the request.
1405
+ */
1406
+ 500: ErrorResponse;
1407
+ /**
1408
+ * Service unavailable - blockchain or other external service is down.
1409
+ */
1410
+ 503: ErrorResponse;
1411
+ };
1412
+ export type GetNftV2InfoError = GetNftV2InfoErrors[keyof GetNftV2InfoErrors];
1413
+ export type GetNftV2InfoResponses = {
1414
+ /**
1415
+ * Successful response
1416
+ */
1417
+ 200: NftRequestAnswer;
1418
+ };
1419
+ export type GetNftV2InfoResponse = GetNftV2InfoResponses[keyof GetNftV2InfoResponses];
1420
+ export type FaucetData = {
1421
+ body: FaucetParams;
1422
+ path?: never;
1423
+ query?: never;
1424
+ url: '/faucet';
1425
+ };
1426
+ export type FaucetErrors = {
1427
+ /**
1428
+ * Bad request - invalid input parameters.
1429
+ */
1430
+ 400: ErrorResponse;
1431
+ /**
1432
+ * Unauthorized - user not authenticated.
1433
+ */
1434
+ 401: ErrorResponse;
1435
+ /**
1436
+ * Forbidden - user doesn't have permission.
1437
+ */
1438
+ 403: ErrorResponse;
1439
+ /**
1440
+ * Too many requests.
1441
+ */
1442
+ 429: ErrorResponse;
1443
+ /**
1444
+ * Internal server error - something went wrong during the request.
1445
+ */
1446
+ 500: ErrorResponse;
1447
+ /**
1448
+ * Service unavailable - blockchain or other external service is down.
1449
+ */
1450
+ 503: ErrorResponse;
1451
+ };
1452
+ export type FaucetError = FaucetErrors[keyof FaucetErrors];
1453
+ export type FaucetResponses = {
1454
+ /**
1455
+ * Faucet response
1456
+ */
1457
+ 200: FaucetResponse;
1458
+ };
1459
+ export type FaucetResponse2 = FaucetResponses[keyof FaucetResponses];
1460
+ export type GetTokenInfoData = {
1461
+ body: TokenInfoRequestParams;
1462
+ path?: never;
1463
+ query?: never;
1464
+ url: '/info/token';
1465
+ };
1466
+ export type GetTokenInfoErrors = {
1467
+ /**
1468
+ * Bad request - invalid input parameters.
1469
+ */
1470
+ 400: ErrorResponse;
1471
+ /**
1472
+ * Unauthorized - user not authenticated.
1473
+ */
1474
+ 401: ErrorResponse;
1475
+ /**
1476
+ * Forbidden - user doesn't have permission.
1477
+ */
1478
+ 403: ErrorResponse;
1479
+ /**
1480
+ * Too many requests.
1481
+ */
1482
+ 429: ErrorResponse;
1483
+ /**
1484
+ * Internal server error - something went wrong during the request.
1485
+ */
1486
+ 500: ErrorResponse;
1487
+ /**
1488
+ * Service unavailable - blockchain or other external service is down.
1489
+ */
1490
+ 503: ErrorResponse;
1491
+ };
1492
+ export type GetTokenInfoError = GetTokenInfoErrors[keyof GetTokenInfoErrors];
1493
+ export type GetTokenInfoResponses = {
1494
+ /**
1495
+ * Successful retrieval of token information.
1496
+ */
1497
+ 200: TokenState;
1498
+ };
1499
+ export type GetTokenInfoResponse = GetTokenInfoResponses[keyof GetTokenInfoResponses];
1500
+ export type GetTokenBalanceData = {
1501
+ body: BalanceRequestParams;
1502
+ path?: never;
1503
+ query?: never;
1504
+ url: '/info/balance';
1505
+ };
1506
+ export type GetTokenBalanceErrors = {
1507
+ /**
1508
+ * Bad request - invalid input parameters.
1509
+ */
1510
+ 400: ErrorResponse;
1511
+ /**
1512
+ * Unauthorized - user not authenticated.
1513
+ */
1514
+ 401: ErrorResponse;
1515
+ /**
1516
+ * Forbidden - user doesn't have permission.
1517
+ */
1518
+ 403: ErrorResponse;
1519
+ /**
1520
+ * Too many requests.
1521
+ */
1522
+ 429: ErrorResponse;
1523
+ /**
1524
+ * Internal server error - something went wrong during the request.
1525
+ */
1526
+ 500: ErrorResponse;
1527
+ /**
1528
+ * Service unavailable - blockchain or other external service is down.
1529
+ */
1530
+ 503: ErrorResponse;
1531
+ };
1532
+ export type GetTokenBalanceError = GetTokenBalanceErrors[keyof GetTokenBalanceErrors];
1533
+ export type GetTokenBalanceResponses = {
1534
+ /**
1535
+ * Successful retrieval of balance.
1536
+ */
1537
+ 200: BalanceResponse;
1538
+ };
1539
+ export type GetTokenBalanceResponse = GetTokenBalanceResponses[keyof GetTokenBalanceResponses];
1540
+ export type ProveData = {
1541
+ body: ProveTokenTransaction | ProveTokenTransactions | ProveNftTransaction | ProveNftTransactions;
1542
+ path?: never;
1543
+ query?: never;
1544
+ url: '/transaction/prove';
1545
+ };
1546
+ export type ProveErrors = {
1547
+ /**
1548
+ * Bad request - invalid input parameters.
1549
+ */
1550
+ 400: ErrorResponse;
1551
+ /**
1552
+ * Unauthorized - user not authenticated.
1553
+ */
1554
+ 401: ErrorResponse;
1555
+ /**
1556
+ * Forbidden - user doesn't have permission.
1557
+ */
1558
+ 403: ErrorResponse;
1559
+ /**
1560
+ * Too many requests.
1561
+ */
1562
+ 429: ErrorResponse;
1563
+ /**
1564
+ * Internal server error - something went wrong during the request.
1565
+ */
1566
+ 500: ErrorResponse;
1567
+ /**
1568
+ * Service unavailable - blockchain or other external service is down.
1569
+ */
1570
+ 503: ErrorResponse;
1571
+ };
1572
+ export type ProveError = ProveErrors[keyof ProveErrors];
1573
+ export type ProveResponses = {
1574
+ /**
1575
+ * Successfully initiated proof generation.
1576
+ */
1577
+ 200: JobId;
1578
+ };
1579
+ export type ProveResponse = ProveResponses[keyof ProveResponses];
1580
+ export type GetProofData = {
1581
+ body: JobId;
1582
+ path?: never;
1583
+ query?: never;
1584
+ url: '/transaction/proof';
1585
+ };
1586
+ export type GetProofErrors = {
1587
+ /**
1588
+ * Bad request - invalid input parameters.
1589
+ */
1590
+ 400: ErrorResponse;
1591
+ /**
1592
+ * Unauthorized - user not authenticated.
1593
+ */
1594
+ 401: ErrorResponse;
1595
+ /**
1596
+ * Forbidden - user doesn't have permission.
1597
+ */
1598
+ 403: ErrorResponse;
1599
+ /**
1600
+ * Too many requests.
1601
+ */
1602
+ 429: ErrorResponse;
1603
+ /**
1604
+ * Internal server error - something went wrong during the request.
1605
+ */
1606
+ 500: ErrorResponse;
1607
+ /**
1608
+ * Service unavailable - blockchain or other external service is down.
1609
+ */
1610
+ 503: ErrorResponse;
1611
+ };
1612
+ export type GetProofError = GetProofErrors[keyof GetProofErrors];
1613
+ export type GetProofResponses = {
1614
+ /**
1615
+ * Successfully retrieved job status and proofs.
1616
+ */
1617
+ 200: JobResults;
1618
+ };
1619
+ export type GetProofResponse = GetProofResponses[keyof GetProofResponses];
1620
+ export type TxStatusData = {
1621
+ body: TransactionStatusParams;
1622
+ path?: never;
1623
+ query?: never;
1624
+ url: '/transaction/status';
1625
+ };
1626
+ export type TxStatusErrors = {
1627
+ /**
1628
+ * Bad request - invalid input parameters.
1629
+ */
1630
+ 400: ErrorResponse;
1631
+ /**
1632
+ * Unauthorized - user not authenticated.
1633
+ */
1634
+ 401: ErrorResponse;
1635
+ /**
1636
+ * Forbidden - user doesn't have permission.
1637
+ */
1638
+ 403: ErrorResponse;
1639
+ /**
1640
+ * Too many requests.
1641
+ */
1642
+ 429: ErrorResponse;
1643
+ /**
1644
+ * Internal server error - something went wrong during the request.
1645
+ */
1646
+ 500: ErrorResponse;
1647
+ /**
1648
+ * Service unavailable - blockchain or other external service is down.
1649
+ */
1650
+ 503: ErrorResponse;
1651
+ };
1652
+ export type TxStatusError = TxStatusErrors[keyof TxStatusErrors];
1653
+ export type TxStatusResponses = {
1654
+ /**
1655
+ * Successfully retrieved transaction status.
1656
+ */
1657
+ 200: TransactionStatus;
1658
+ };
1659
+ export type TxStatusResponse = TxStatusResponses[keyof TxStatusResponses];
1660
+ export type MintTokensData = {
1661
+ body: TokenMintTransactionParams;
1662
+ path?: never;
1663
+ query?: never;
1664
+ url: '/token/mint';
1665
+ };
1666
+ export type MintTokensErrors = {
1667
+ /**
1668
+ * Bad request - invalid input parameters.
1669
+ */
1670
+ 400: ErrorResponse;
1671
+ /**
1672
+ * Unauthorized - user not authenticated.
1673
+ */
1674
+ 401: ErrorResponse;
1675
+ /**
1676
+ * Forbidden - user doesn't have permission.
1677
+ */
1678
+ 403: ErrorResponse;
1679
+ /**
1680
+ * Too many requests.
1681
+ */
1682
+ 429: ErrorResponse;
1683
+ /**
1684
+ * Internal server error - something went wrong during the request.
1685
+ */
1686
+ 500: ErrorResponse;
1687
+ /**
1688
+ * Service unavailable - blockchain or other external service is down.
1689
+ */
1690
+ 503: ErrorResponse;
1691
+ };
1692
+ export type MintTokensError = MintTokensErrors[keyof MintTokensErrors];
1693
+ export type MintTokensResponses = {
1694
+ /**
1695
+ * Successfully built mint transaction.
1696
+ */
1697
+ 200: TokenTransaction;
1698
+ };
1699
+ export type MintTokensResponse = MintTokensResponses[keyof MintTokensResponses];
1700
+ export type MintNftData = {
1701
+ body: NftMintTransactionParams;
1702
+ path?: never;
1703
+ query?: never;
1704
+ url: '/nft/mint';
1705
+ };
1706
+ export type MintNftErrors = {
1707
+ /**
1708
+ * Bad request - invalid input parameters.
1709
+ */
1710
+ 400: ErrorResponse;
1711
+ /**
1712
+ * Unauthorized - user not authenticated.
1713
+ */
1714
+ 401: ErrorResponse;
1715
+ /**
1716
+ * Forbidden - user doesn't have permission.
1717
+ */
1718
+ 403: ErrorResponse;
910
1719
  /**
911
- * The transaction hash to check the status of.
1720
+ * Too many requests.
912
1721
  */
913
- hash: string;
914
- };
915
- export type TxStatus = {
1722
+ 429: ErrorResponse;
916
1723
  /**
917
- * The height of the block containing the transaction.
1724
+ * Internal server error - something went wrong during the request.
918
1725
  */
919
- blockHeight?: number;
1726
+ 500: ErrorResponse;
920
1727
  /**
921
- * The state hash of the block.
1728
+ * Service unavailable - blockchain or other external service is down.
922
1729
  */
923
- stateHash?: string;
1730
+ 503: ErrorResponse;
1731
+ };
1732
+ export type MintNftError = MintNftErrors[keyof MintNftErrors];
1733
+ export type MintNftResponses = {
924
1734
  /**
925
- * The status of the block.
1735
+ * Successfully built mint transaction.
926
1736
  */
927
- blockStatus?: string;
1737
+ 200: NftTransaction;
1738
+ };
1739
+ export type MintNftResponse = MintNftResponses[keyof MintNftResponses];
1740
+ export type TransferTokensData = {
1741
+ body: TokenTransferTransactionParams;
1742
+ path?: never;
1743
+ query?: never;
1744
+ url: '/token/transfer';
1745
+ };
1746
+ export type TransferTokensErrors = {
928
1747
  /**
929
- * The timestamp of the block.
1748
+ * Bad request - invalid input parameters.
930
1749
  */
931
- timestamp?: number;
1750
+ 400: ErrorResponse;
932
1751
  /**
933
- * The transaction hash.
1752
+ * Unauthorized - user not authenticated.
934
1753
  */
935
- txHash?: string;
1754
+ 401: ErrorResponse;
936
1755
  /**
937
- * The status of the transaction in the block.
1756
+ * Forbidden - user doesn't have permission.
938
1757
  */
939
- txStatus?: string;
940
- };
941
- /**
942
- * Optional. List of whitelisted addresses with optional amounts, or a string.
943
- */
944
- export type Whitelist = Array<{
1758
+ 403: ErrorResponse;
945
1759
  /**
946
- * The whitelisted address.
1760
+ * Too many requests.
947
1761
  */
948
- address: string;
1762
+ 429: ErrorResponse;
949
1763
  /**
950
- * Optional. The amount allowed to bid.
1764
+ * Internal server error - something went wrong during the request.
951
1765
  */
952
- amount?: number;
953
- }> | string;
954
- export type LaunchTokenData = {
955
- body: (LaunchTokenStandardAdminParams | LaunchTokenAdvancedAdminParams | LaunchTokenBondingCurveAdminParams);
956
- };
957
- export type LaunchTokenResponse = (TokenTransaction);
958
- export type LaunchTokenError = (ErrorResponse);
959
- export type GetContractInfoData = {
960
- body: ContractInfoRequest;
961
- };
962
- export type GetContractInfoResponse = (Array<ContractInfo>);
963
- export type GetContractInfoError = (ErrorResponse);
964
- export type GetNftV2InfoData = {
965
- body: NFTRequestParams;
966
- };
967
- export type GetNftV2InfoResponse = (NFTRequestAnswer);
968
- export type GetNftV2InfoError = (ErrorResponse);
969
- export type FaucetData = {
970
- body: FaucetParams;
971
- };
972
- export type FaucetResponse2 = (FaucetResponse);
973
- export type FaucetError = (ErrorResponse);
974
- export type GetTokenInfoData = {
975
- body: TokenInfoRequestParams;
976
- };
977
- export type GetTokenInfoResponse = (TokenState);
978
- export type GetTokenInfoError = (ErrorResponse);
979
- export type GetTokenBalanceData = {
980
- body: BalanceRequestParams;
981
- };
982
- export type GetTokenBalanceResponse = (BalanceResponse);
983
- export type GetTokenBalanceError = (ErrorResponse);
984
- export type ProveData = {
985
- body: (ProveTokenTransaction | ProveTokenTransactions);
986
- };
987
- export type ProveResponse = (JobId);
988
- export type ProveError = (ErrorResponse);
989
- export type GetProofData = {
990
- body: JobId;
991
- };
992
- export type GetProofResponse = (JobResults);
993
- export type GetProofError = (ErrorResponse);
994
- export type TxStatusData = {
995
- body: TransactionStatusParams;
996
- };
997
- export type TxStatusResponse = (TransactionStatus);
998
- export type TxStatusError = (ErrorResponse);
999
- export type MintTokensData = {
1000
- body: TokenMintTransactionParams;
1766
+ 500: ErrorResponse;
1767
+ /**
1768
+ * Service unavailable - blockchain or other external service is down.
1769
+ */
1770
+ 503: ErrorResponse;
1001
1771
  };
1002
- export type MintTokensResponse = (TokenTransaction);
1003
- export type MintTokensError = (ErrorResponse);
1004
- export type TransferTokensData = {
1005
- body: TokenTransferTransactionParams;
1772
+ export type TransferTokensError = TransferTokensErrors[keyof TransferTokensErrors];
1773
+ export type TransferTokensResponses = {
1774
+ /**
1775
+ * Successfully built transfer transaction.
1776
+ */
1777
+ 200: TokenTransaction;
1006
1778
  };
1007
- export type TransferTokensResponse = (TokenTransaction);
1008
- export type TransferTokensError = (ErrorResponse);
1779
+ export type TransferTokensResponse = TransferTokensResponses[keyof TransferTokensResponses];
1009
1780
  export type AirdropTokensData = {
1010
1781
  body: TokenAirdropTransactionParams;
1782
+ path?: never;
1783
+ query?: never;
1784
+ url: '/token/airdrop';
1785
+ };
1786
+ export type AirdropTokensErrors = {
1787
+ /**
1788
+ * Bad request - invalid input parameters.
1789
+ */
1790
+ 400: ErrorResponse;
1791
+ /**
1792
+ * Unauthorized - user not authenticated.
1793
+ */
1794
+ 401: ErrorResponse;
1795
+ /**
1796
+ * Forbidden - user doesn't have permission.
1797
+ */
1798
+ 403: ErrorResponse;
1799
+ /**
1800
+ * Too many requests.
1801
+ */
1802
+ 429: ErrorResponse;
1803
+ /**
1804
+ * Internal server error - something went wrong during the request.
1805
+ */
1806
+ 500: ErrorResponse;
1807
+ /**
1808
+ * Service unavailable - blockchain or other external service is down.
1809
+ */
1810
+ 503: ErrorResponse;
1011
1811
  };
1012
- export type AirdropTokensResponse = (AirdropTransactionResponse);
1013
- export type AirdropTokensError = (ErrorResponse);
1812
+ export type AirdropTokensError = AirdropTokensErrors[keyof AirdropTokensErrors];
1813
+ export type AirdropTokensResponses = {
1814
+ /**
1815
+ * Successfully built airdrop transaction.
1816
+ */
1817
+ 200: AirdropTransactionResponse;
1818
+ };
1819
+ export type AirdropTokensResponse = AirdropTokensResponses[keyof AirdropTokensResponses];
1014
1820
  export type RedeemTokensData = {
1015
1821
  body: TokenRedeemTransactionParams;
1822
+ path?: never;
1823
+ query?: never;
1824
+ url: '/token/redeem';
1825
+ };
1826
+ export type RedeemTokensErrors = {
1827
+ /**
1828
+ * Bad request - invalid input parameters.
1829
+ */
1830
+ 400: ErrorResponse;
1831
+ /**
1832
+ * Unauthorized - user not authenticated.
1833
+ */
1834
+ 401: ErrorResponse;
1835
+ /**
1836
+ * Forbidden - user doesn't have permission.
1837
+ */
1838
+ 403: ErrorResponse;
1839
+ /**
1840
+ * Too many requests.
1841
+ */
1842
+ 429: ErrorResponse;
1843
+ /**
1844
+ * Internal server error - something went wrong during the request.
1845
+ */
1846
+ 500: ErrorResponse;
1847
+ /**
1848
+ * Service unavailable - blockchain or other external service is down.
1849
+ */
1850
+ 503: ErrorResponse;
1016
1851
  };
1017
- export type RedeemTokensResponse = (TokenTransaction);
1018
- export type RedeemTokensError = (ErrorResponse);
1852
+ export type RedeemTokensError = RedeemTokensErrors[keyof RedeemTokensErrors];
1853
+ export type RedeemTokensResponses = {
1854
+ /**
1855
+ * Successfully built redeem transaction.
1856
+ */
1857
+ 200: TokenTransaction;
1858
+ };
1859
+ export type RedeemTokensResponse = RedeemTokensResponses[keyof RedeemTokensResponses];
1019
1860
  export type BurnTokensData = {
1020
1861
  body: TokenBurnTransactionParams;
1862
+ path?: never;
1863
+ query?: never;
1864
+ url: '/token/burn';
1865
+ };
1866
+ export type BurnTokensErrors = {
1867
+ /**
1868
+ * Bad request - invalid input parameters.
1869
+ */
1870
+ 400: ErrorResponse;
1871
+ /**
1872
+ * Unauthorized - user not authenticated.
1873
+ */
1874
+ 401: ErrorResponse;
1875
+ /**
1876
+ * Forbidden - user doesn't have permission.
1877
+ */
1878
+ 403: ErrorResponse;
1879
+ /**
1880
+ * Too many requests.
1881
+ */
1882
+ 429: ErrorResponse;
1883
+ /**
1884
+ * Internal server error - something went wrong during the request.
1885
+ */
1886
+ 500: ErrorResponse;
1887
+ /**
1888
+ * Service unavailable - blockchain or other external service is down.
1889
+ */
1890
+ 503: ErrorResponse;
1021
1891
  };
1022
- export type BurnTokensResponse = (TokenTransaction);
1023
- export type BurnTokensError = (ErrorResponse);
1892
+ export type BurnTokensError = BurnTokensErrors[keyof BurnTokensErrors];
1893
+ export type BurnTokensResponses = {
1894
+ /**
1895
+ * Successfully built burn transaction.
1896
+ */
1897
+ 200: TokenTransaction;
1898
+ };
1899
+ export type BurnTokensResponse = BurnTokensResponses[keyof BurnTokensResponses];
1024
1900
  export type TokenBidData = {
1025
1901
  body: TokenBidTransactionParams;
1902
+ path?: never;
1903
+ query?: never;
1904
+ url: '/token/bid/create';
1905
+ };
1906
+ export type TokenBidErrors = {
1907
+ /**
1908
+ * Bad request - invalid input parameters.
1909
+ */
1910
+ 400: ErrorResponse;
1911
+ /**
1912
+ * Unauthorized - user not authenticated.
1913
+ */
1914
+ 401: ErrorResponse;
1915
+ /**
1916
+ * Forbidden - user doesn't have permission.
1917
+ */
1918
+ 403: ErrorResponse;
1919
+ /**
1920
+ * Too many requests.
1921
+ */
1922
+ 429: ErrorResponse;
1923
+ /**
1924
+ * Internal server error - something went wrong during the request.
1925
+ */
1926
+ 500: ErrorResponse;
1927
+ /**
1928
+ * Service unavailable - blockchain or other external service is down.
1929
+ */
1930
+ 503: ErrorResponse;
1026
1931
  };
1027
- export type TokenBidResponse = (TokenTransaction);
1028
- export type TokenBidError = (ErrorResponse);
1932
+ export type TokenBidError = TokenBidErrors[keyof TokenBidErrors];
1933
+ export type TokenBidResponses = {
1934
+ /**
1935
+ * Successfully built bid transaction.
1936
+ */
1937
+ 200: TokenTransaction;
1938
+ };
1939
+ export type TokenBidResponse = TokenBidResponses[keyof TokenBidResponses];
1029
1940
  export type TokenOfferData = {
1030
1941
  body: TokenOfferTransactionParams;
1942
+ path?: never;
1943
+ query?: never;
1944
+ url: '/token/offer/create';
1945
+ };
1946
+ export type TokenOfferErrors = {
1947
+ /**
1948
+ * Bad request - invalid input parameters.
1949
+ */
1950
+ 400: ErrorResponse;
1951
+ /**
1952
+ * Unauthorized - user not authenticated.
1953
+ */
1954
+ 401: ErrorResponse;
1955
+ /**
1956
+ * Forbidden - user doesn't have permission.
1957
+ */
1958
+ 403: ErrorResponse;
1959
+ /**
1960
+ * Too many requests.
1961
+ */
1962
+ 429: ErrorResponse;
1963
+ /**
1964
+ * Internal server error - something went wrong during the request.
1965
+ */
1966
+ 500: ErrorResponse;
1967
+ /**
1968
+ * Service unavailable - blockchain or other external service is down.
1969
+ */
1970
+ 503: ErrorResponse;
1031
1971
  };
1032
- export type TokenOfferResponse = (TokenTransaction);
1033
- export type TokenOfferError = (ErrorResponse);
1972
+ export type TokenOfferError = TokenOfferErrors[keyof TokenOfferErrors];
1973
+ export type TokenOfferResponses = {
1974
+ /**
1975
+ * Successfully created offer transaction.
1976
+ */
1977
+ 200: TokenTransaction;
1978
+ };
1979
+ export type TokenOfferResponse = TokenOfferResponses[keyof TokenOfferResponses];
1034
1980
  export type BuyTokensData = {
1035
1981
  body: TokenBuyTransactionParams;
1982
+ path?: never;
1983
+ query?: never;
1984
+ url: '/token/offer/buy';
1985
+ };
1986
+ export type BuyTokensErrors = {
1987
+ /**
1988
+ * Bad request - invalid input parameters.
1989
+ */
1990
+ 400: ErrorResponse;
1991
+ /**
1992
+ * Unauthorized - user not authenticated.
1993
+ */
1994
+ 401: ErrorResponse;
1995
+ /**
1996
+ * Forbidden - user doesn't have permission.
1997
+ */
1998
+ 403: ErrorResponse;
1999
+ /**
2000
+ * Too many requests.
2001
+ */
2002
+ 429: ErrorResponse;
2003
+ /**
2004
+ * Internal server error - something went wrong during the request.
2005
+ */
2006
+ 500: ErrorResponse;
2007
+ /**
2008
+ * Service unavailable - blockchain or other external service is down.
2009
+ */
2010
+ 503: ErrorResponse;
1036
2011
  };
1037
- export type BuyTokensResponse = (TokenTransaction);
1038
- export type BuyTokensError = (ErrorResponse);
2012
+ export type BuyTokensError = BuyTokensErrors[keyof BuyTokensErrors];
2013
+ export type BuyTokensResponses = {
2014
+ /**
2015
+ * Successfully built buy transaction.
2016
+ */
2017
+ 200: TokenTransaction;
2018
+ };
2019
+ export type BuyTokensResponse = BuyTokensResponses[keyof BuyTokensResponses];
1039
2020
  export type SellTokensData = {
1040
2021
  body: TokenSellTransactionParams;
2022
+ path?: never;
2023
+ query?: never;
2024
+ url: '/token/bid/sell';
2025
+ };
2026
+ export type SellTokensErrors = {
2027
+ /**
2028
+ * Bad request - invalid input parameters.
2029
+ */
2030
+ 400: ErrorResponse;
2031
+ /**
2032
+ * Unauthorized - user not authenticated.
2033
+ */
2034
+ 401: ErrorResponse;
2035
+ /**
2036
+ * Forbidden - user doesn't have permission.
2037
+ */
2038
+ 403: ErrorResponse;
2039
+ /**
2040
+ * Too many requests.
2041
+ */
2042
+ 429: ErrorResponse;
2043
+ /**
2044
+ * Internal server error - something went wrong during the request.
2045
+ */
2046
+ 500: ErrorResponse;
2047
+ /**
2048
+ * Service unavailable - blockchain or other external service is down.
2049
+ */
2050
+ 503: ErrorResponse;
1041
2051
  };
1042
- export type SellTokensResponse = (TokenTransaction);
1043
- export type SellTokensError = (ErrorResponse);
2052
+ export type SellTokensError = SellTokensErrors[keyof SellTokensErrors];
2053
+ export type SellTokensResponses = {
2054
+ /**
2055
+ * Successfully built sell transaction.
2056
+ */
2057
+ 200: TokenTransaction;
2058
+ };
2059
+ export type SellTokensResponse = SellTokensResponses[keyof SellTokensResponses];
1044
2060
  export type WithdrawTokenBidData = {
1045
2061
  body: TokenWithdrawBidTransactionParams;
2062
+ path?: never;
2063
+ query?: never;
2064
+ url: '/token/bid/withdraw';
2065
+ };
2066
+ export type WithdrawTokenBidErrors = {
2067
+ /**
2068
+ * Bad request - invalid input parameters.
2069
+ */
2070
+ 400: ErrorResponse;
2071
+ /**
2072
+ * Unauthorized - user not authenticated.
2073
+ */
2074
+ 401: ErrorResponse;
2075
+ /**
2076
+ * Forbidden - user doesn't have permission.
2077
+ */
2078
+ 403: ErrorResponse;
2079
+ /**
2080
+ * Too many requests.
2081
+ */
2082
+ 429: ErrorResponse;
2083
+ /**
2084
+ * Internal server error - something went wrong during the request.
2085
+ */
2086
+ 500: ErrorResponse;
2087
+ /**
2088
+ * Service unavailable - blockchain or other external service is down.
2089
+ */
2090
+ 503: ErrorResponse;
1046
2091
  };
1047
- export type WithdrawTokenBidResponse = (TokenTransaction);
1048
- export type WithdrawTokenBidError = (ErrorResponse);
2092
+ export type WithdrawTokenBidError = WithdrawTokenBidErrors[keyof WithdrawTokenBidErrors];
2093
+ export type WithdrawTokenBidResponses = {
2094
+ /**
2095
+ * Successfully built withdraw bid transaction.
2096
+ */
2097
+ 200: TokenTransaction;
2098
+ };
2099
+ export type WithdrawTokenBidResponse = WithdrawTokenBidResponses[keyof WithdrawTokenBidResponses];
1049
2100
  export type WithdrawTokenOfferData = {
1050
2101
  body: TokenWithdrawOfferTransactionParams;
2102
+ path?: never;
2103
+ query?: never;
2104
+ url: '/token/offer/withdraw';
2105
+ };
2106
+ export type WithdrawTokenOfferErrors = {
2107
+ /**
2108
+ * Bad request - invalid input parameters.
2109
+ */
2110
+ 400: ErrorResponse;
2111
+ /**
2112
+ * Unauthorized - user not authenticated.
2113
+ */
2114
+ 401: ErrorResponse;
2115
+ /**
2116
+ * Forbidden - user doesn't have permission.
2117
+ */
2118
+ 403: ErrorResponse;
2119
+ /**
2120
+ * Too many requests.
2121
+ */
2122
+ 429: ErrorResponse;
2123
+ /**
2124
+ * Internal server error - something went wrong during the request.
2125
+ */
2126
+ 500: ErrorResponse;
2127
+ /**
2128
+ * Service unavailable - blockchain or other external service is down.
2129
+ */
2130
+ 503: ErrorResponse;
1051
2131
  };
1052
- export type WithdrawTokenOfferResponse = (TokenTransaction);
1053
- export type WithdrawTokenOfferError = (ErrorResponse);
2132
+ export type WithdrawTokenOfferError = WithdrawTokenOfferErrors[keyof WithdrawTokenOfferErrors];
2133
+ export type WithdrawTokenOfferResponses = {
2134
+ /**
2135
+ * Successfully built withdraw offer transaction.
2136
+ */
2137
+ 200: TokenTransaction;
2138
+ };
2139
+ export type WithdrawTokenOfferResponse = WithdrawTokenOfferResponses[keyof WithdrawTokenOfferResponses];
1054
2140
  export type UpdateTokenBidWhitelistData = {
1055
2141
  body: TokenUpdateBidWhitelistTransactionParams;
2142
+ path?: never;
2143
+ query?: never;
2144
+ url: '/token/bid/whitelist';
2145
+ };
2146
+ export type UpdateTokenBidWhitelistErrors = {
2147
+ /**
2148
+ * Bad request - invalid input parameters.
2149
+ */
2150
+ 400: ErrorResponse;
2151
+ /**
2152
+ * Unauthorized - user not authenticated.
2153
+ */
2154
+ 401: ErrorResponse;
2155
+ /**
2156
+ * Forbidden - user doesn't have permission.
2157
+ */
2158
+ 403: ErrorResponse;
2159
+ /**
2160
+ * Too many requests.
2161
+ */
2162
+ 429: ErrorResponse;
2163
+ /**
2164
+ * Internal server error - something went wrong during the request.
2165
+ */
2166
+ 500: ErrorResponse;
2167
+ /**
2168
+ * Service unavailable - blockchain or other external service is down.
2169
+ */
2170
+ 503: ErrorResponse;
1056
2171
  };
1057
- export type UpdateTokenBidWhitelistResponse = (TokenTransaction);
1058
- export type UpdateTokenBidWhitelistError = (ErrorResponse);
2172
+ export type UpdateTokenBidWhitelistError = UpdateTokenBidWhitelistErrors[keyof UpdateTokenBidWhitelistErrors];
2173
+ export type UpdateTokenBidWhitelistResponses = {
2174
+ /**
2175
+ * Successfully built update bid whitelist transaction.
2176
+ */
2177
+ 200: TokenTransaction;
2178
+ };
2179
+ export type UpdateTokenBidWhitelistResponse = UpdateTokenBidWhitelistResponses[keyof UpdateTokenBidWhitelistResponses];
1059
2180
  export type UpdateTokenOfferWhitelistData = {
1060
2181
  body: TokenUpdateOfferWhitelistTransactionParams;
2182
+ path?: never;
2183
+ query?: never;
2184
+ url: '/token/offer/whitelist';
2185
+ };
2186
+ export type UpdateTokenOfferWhitelistErrors = {
2187
+ /**
2188
+ * Bad request - invalid input parameters.
2189
+ */
2190
+ 400: ErrorResponse;
2191
+ /**
2192
+ * Unauthorized - user not authenticated.
2193
+ */
2194
+ 401: ErrorResponse;
2195
+ /**
2196
+ * Forbidden - user doesn't have permission.
2197
+ */
2198
+ 403: ErrorResponse;
2199
+ /**
2200
+ * Too many requests.
2201
+ */
2202
+ 429: ErrorResponse;
2203
+ /**
2204
+ * Internal server error - something went wrong during the request.
2205
+ */
2206
+ 500: ErrorResponse;
2207
+ /**
2208
+ * Service unavailable - blockchain or other external service is down.
2209
+ */
2210
+ 503: ErrorResponse;
1061
2211
  };
1062
- export type UpdateTokenOfferWhitelistResponse = (TokenTransaction);
1063
- export type UpdateTokenOfferWhitelistError = (ErrorResponse);
2212
+ export type UpdateTokenOfferWhitelistError = UpdateTokenOfferWhitelistErrors[keyof UpdateTokenOfferWhitelistErrors];
2213
+ export type UpdateTokenOfferWhitelistResponses = {
2214
+ /**
2215
+ * Successfully built update offer whitelist transaction.
2216
+ */
2217
+ 200: TokenTransaction;
2218
+ };
2219
+ export type UpdateTokenOfferWhitelistResponse = UpdateTokenOfferWhitelistResponses[keyof UpdateTokenOfferWhitelistResponses];
1064
2220
  export type UpdateTokenAdminWhitelistData = {
1065
2221
  body: TokenUpdateAdminWhitelistTransactionParams;
2222
+ path?: never;
2223
+ query?: never;
2224
+ url: '/token/admin/whitelist';
2225
+ };
2226
+ export type UpdateTokenAdminWhitelistErrors = {
2227
+ /**
2228
+ * Bad request - invalid input parameters.
2229
+ */
2230
+ 400: ErrorResponse;
2231
+ /**
2232
+ * Unauthorized - user not authenticated.
2233
+ */
2234
+ 401: ErrorResponse;
2235
+ /**
2236
+ * Forbidden - user doesn't have permission.
2237
+ */
2238
+ 403: ErrorResponse;
2239
+ /**
2240
+ * Too many requests.
2241
+ */
2242
+ 429: ErrorResponse;
2243
+ /**
2244
+ * Internal server error - something went wrong during the request.
2245
+ */
2246
+ 500: ErrorResponse;
2247
+ /**
2248
+ * Service unavailable - blockchain or other external service is down.
2249
+ */
2250
+ 503: ErrorResponse;
2251
+ };
2252
+ export type UpdateTokenAdminWhitelistError = UpdateTokenAdminWhitelistErrors[keyof UpdateTokenAdminWhitelistErrors];
2253
+ export type UpdateTokenAdminWhitelistResponses = {
2254
+ /**
2255
+ * Successfully built update admin whitelist transaction.
2256
+ */
2257
+ 200: TokenTransaction;
2258
+ };
2259
+ export type UpdateTokenAdminWhitelistResponse = UpdateTokenAdminWhitelistResponses[keyof UpdateTokenAdminWhitelistResponses];
2260
+ export type ClientOptions = {
2261
+ baseUrl: 'https://minatokens.com/api/v1/' | 'https://devnet.minatokens.com/api/v1/' | 'https://zekotokens.com/api/v1/' | (string & {});
1066
2262
  };
1067
- export type UpdateTokenAdminWhitelistResponse = (TokenTransaction);
1068
- export type UpdateTokenAdminWhitelistError = (ErrorResponse);