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