@silvana-one/api 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/dist/node/client/sdk.gen.d.ts +153 -0
- package/dist/node/client/sdk.gen.js +269 -0
- package/dist/node/client/sdk.gen.js.map +1 -0
- package/dist/node/client/types.gen.d.ts +1068 -0
- package/dist/node/client/types.gen.js +3 -0
- package/dist/node/client/types.gen.js.map +1 -0
- package/dist/node/config.d.ts +5 -0
- package/dist/node/config.js +15 -0
- package/dist/node/config.js.map +1 -0
- package/dist/node/index.cjs +286 -0
- package/dist/node/index.d.ts +4 -0
- package/dist/node/index.js +9 -0
- package/dist/node/index.js.map +1 -0
- package/dist/node/wait.d.ts +2 -0
- package/dist/node/wait.js +58 -0
- package/dist/node/wait.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/dist/tsconfig.web.tsbuildinfo +1 -0
- package/dist/web/client/sdk.gen.d.ts +153 -0
- package/dist/web/client/sdk.gen.js +269 -0
- package/dist/web/client/sdk.gen.js.map +1 -0
- package/dist/web/client/types.gen.d.ts +1068 -0
- package/dist/web/client/types.gen.js +3 -0
- package/dist/web/client/types.gen.js.map +1 -0
- package/dist/web/config.d.ts +5 -0
- package/dist/web/config.js +15 -0
- package/dist/web/config.js.map +1 -0
- package/dist/web/index.d.ts +4 -0
- package/dist/web/index.js +9 -0
- package/dist/web/index.js.map +1 -0
- package/dist/web/wait.d.ts +2 -0
- package/dist/web/wait.js +58 -0
- package/dist/web/wait.js.map +1 -0
- package/package.json +61 -0
- package/src/client/sdk.gen.ts +294 -0
- package/src/client/types.gen.ts +1211 -0
- package/src/config.ts +24 -0
- package/src/index.ts +8 -0
- package/src/wait.ts +73 -0
|
@@ -0,0 +1,1068 @@
|
|
|
1
|
+
export type AirdropTransactionResponse = {
|
|
2
|
+
/**
|
|
3
|
+
* List of token transactions created for the airdrop.
|
|
4
|
+
*/
|
|
5
|
+
txs?: Array<TokenTransaction>;
|
|
6
|
+
};
|
|
7
|
+
export type BalanceRequestParams = {
|
|
8
|
+
/**
|
|
9
|
+
* The address of the token contract (optional).
|
|
10
|
+
*/
|
|
11
|
+
tokenAddress?: string;
|
|
12
|
+
/**
|
|
13
|
+
* The token ID (optional).
|
|
14
|
+
*/
|
|
15
|
+
tokenId?: string;
|
|
16
|
+
/**
|
|
17
|
+
* The Mina address for which to retrieve the balance.
|
|
18
|
+
*/
|
|
19
|
+
address: string;
|
|
20
|
+
};
|
|
21
|
+
export type BalanceResponse = {
|
|
22
|
+
/**
|
|
23
|
+
* The address of the token contract (optional).
|
|
24
|
+
*/
|
|
25
|
+
tokenAddress?: string;
|
|
26
|
+
/**
|
|
27
|
+
* The token ID (optional).
|
|
28
|
+
*/
|
|
29
|
+
tokenId?: string;
|
|
30
|
+
/**
|
|
31
|
+
* The Mina address for which the balance was requested.
|
|
32
|
+
*/
|
|
33
|
+
address: string;
|
|
34
|
+
/**
|
|
35
|
+
* The balance of the token for the specified address.
|
|
36
|
+
*/
|
|
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 & {
|
|
59
|
+
/**
|
|
60
|
+
* The address of the token contract.
|
|
61
|
+
*/
|
|
62
|
+
tokenAddress: string;
|
|
63
|
+
};
|
|
64
|
+
export type ErrorResponse = {
|
|
65
|
+
/**
|
|
66
|
+
* Error message detailing the issue.
|
|
67
|
+
*/
|
|
68
|
+
error?: string;
|
|
69
|
+
};
|
|
70
|
+
export type FaucetParams = {
|
|
71
|
+
/**
|
|
72
|
+
* The Mina address (public key) to receive the test tokens.
|
|
73
|
+
*/
|
|
74
|
+
address: string;
|
|
75
|
+
};
|
|
76
|
+
export type FaucetResponse = {
|
|
77
|
+
/**
|
|
78
|
+
* Indicates whether the faucet request was successful.
|
|
79
|
+
*/
|
|
80
|
+
success?: boolean;
|
|
81
|
+
/**
|
|
82
|
+
* The transaction hash of the faucet transfer if successful.
|
|
83
|
+
*/
|
|
84
|
+
hash?: string;
|
|
85
|
+
/**
|
|
86
|
+
* Error message if the request failed.
|
|
87
|
+
*/
|
|
88
|
+
error?: string;
|
|
89
|
+
};
|
|
90
|
+
export type JobId = {
|
|
91
|
+
/**
|
|
92
|
+
* The job ID returned by the `/prove` endpoint.
|
|
93
|
+
*/
|
|
94
|
+
jobId: string;
|
|
95
|
+
};
|
|
96
|
+
export type JobResult = {
|
|
97
|
+
/**
|
|
98
|
+
* Indicates whether the proof generation for this transaction was successful.
|
|
99
|
+
*/
|
|
100
|
+
success: boolean;
|
|
101
|
+
/**
|
|
102
|
+
* Error message if proof generation failed for this transaction.
|
|
103
|
+
*/
|
|
104
|
+
error?: string;
|
|
105
|
+
/**
|
|
106
|
+
* The transaction data.
|
|
107
|
+
*/
|
|
108
|
+
tx?: string;
|
|
109
|
+
/**
|
|
110
|
+
* The status of the transaction.
|
|
111
|
+
*/
|
|
112
|
+
status?: string;
|
|
113
|
+
/**
|
|
114
|
+
* The transaction hash if broadcasted.
|
|
115
|
+
*/
|
|
116
|
+
hash?: string;
|
|
117
|
+
};
|
|
118
|
+
export type JobResults = {
|
|
119
|
+
/**
|
|
120
|
+
* Indicates whether the job was successful.
|
|
121
|
+
*/
|
|
122
|
+
success?: boolean;
|
|
123
|
+
/**
|
|
124
|
+
* The current status of the job.
|
|
125
|
+
*/
|
|
126
|
+
jobStatus?: 'created' | 'started' | 'finished' | 'failed' | 'used' | 'restarted';
|
|
127
|
+
/**
|
|
128
|
+
* Error message if the job failed.
|
|
129
|
+
*/
|
|
130
|
+
error?: string;
|
|
131
|
+
/**
|
|
132
|
+
* Results for each transaction in the job.
|
|
133
|
+
*/
|
|
134
|
+
results?: Array<JobResult>;
|
|
135
|
+
};
|
|
136
|
+
/**
|
|
137
|
+
* The current status of the job.
|
|
138
|
+
*/
|
|
139
|
+
export type jobStatus = 'created' | 'started' | 'finished' | 'failed' | 'used' | 'restarted';
|
|
140
|
+
export type LaunchTokenAdvancedAdminParams = LaunchTokenTransactionBaseParams & {
|
|
141
|
+
/**
|
|
142
|
+
* Must be "advanced" for advanced admin contract.
|
|
143
|
+
*/
|
|
144
|
+
adminContract: 'advanced';
|
|
145
|
+
/**
|
|
146
|
+
* Specifies who can mint tokens.
|
|
147
|
+
*/
|
|
148
|
+
canMint: 'whitelist' | 'anyone';
|
|
149
|
+
/**
|
|
150
|
+
* Optional. Whether admin signature is required for minting.
|
|
151
|
+
*/
|
|
152
|
+
requireAdminSignatureForMint?: boolean;
|
|
153
|
+
/**
|
|
154
|
+
* Optional. List of whitelisted addresses with optional amounts, or a string.
|
|
155
|
+
*/
|
|
156
|
+
whitelist?: Whitelist;
|
|
157
|
+
/**
|
|
158
|
+
* Optional. Maximum total supply. Uses UInt64.MAXINT() if not provided.
|
|
159
|
+
*/
|
|
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 & {
|
|
171
|
+
/**
|
|
172
|
+
* Must be "bondingCurve" for bonding curve admin contract.
|
|
173
|
+
*/
|
|
174
|
+
adminContract: 'bondingCurve';
|
|
175
|
+
};
|
|
176
|
+
/**
|
|
177
|
+
* Must be "bondingCurve" for bonding curve admin contract.
|
|
178
|
+
*/
|
|
179
|
+
export type adminContract2 = 'bondingCurve';
|
|
180
|
+
export type LaunchTokenStandardAdminParams = LaunchTokenTransactionBaseParams & {
|
|
181
|
+
/**
|
|
182
|
+
* Must be "standard" for standard admin contract.
|
|
183
|
+
*/
|
|
184
|
+
adminContract: 'standard';
|
|
185
|
+
};
|
|
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;
|
|
207
|
+
/**
|
|
208
|
+
* URI or token info object containing metadata.
|
|
209
|
+
*/
|
|
210
|
+
uri: (string | TokenInfo);
|
|
211
|
+
/**
|
|
212
|
+
* Optional. The address of the token contract.
|
|
213
|
+
*/
|
|
214
|
+
tokenAddress?: string;
|
|
215
|
+
/**
|
|
216
|
+
* Optional. The address of the admin contract.
|
|
217
|
+
*/
|
|
218
|
+
adminContractAddress?: string;
|
|
219
|
+
/**
|
|
220
|
+
* Optional. Private key for the token contract.
|
|
221
|
+
*/
|
|
222
|
+
tokenContractPrivateKey?: string;
|
|
223
|
+
/**
|
|
224
|
+
* Optional. Private key for the admin contract.
|
|
225
|
+
*/
|
|
226
|
+
adminContractPrivateKey?: string;
|
|
227
|
+
};
|
|
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 = {
|
|
237
|
+
contractAddress?: string;
|
|
238
|
+
nftAddress?: string;
|
|
239
|
+
tokenId?: string;
|
|
240
|
+
tokenSymbol?: string;
|
|
241
|
+
contractUri?: (string) | null;
|
|
242
|
+
name?: string;
|
|
243
|
+
metadataRoot?: {
|
|
244
|
+
data?: string;
|
|
245
|
+
kind?: string;
|
|
246
|
+
};
|
|
247
|
+
storage?: string;
|
|
248
|
+
owner?: string;
|
|
249
|
+
price?: number;
|
|
250
|
+
version?: number;
|
|
251
|
+
metadata?: {
|
|
252
|
+
[key: string]: unknown;
|
|
253
|
+
} | null;
|
|
254
|
+
algolia?: {
|
|
255
|
+
[key: string]: unknown;
|
|
256
|
+
} | null;
|
|
257
|
+
};
|
|
258
|
+
export type NFTRequestParams = {
|
|
259
|
+
/**
|
|
260
|
+
* Always set to this contract address for Mina NFTs.
|
|
261
|
+
*/
|
|
262
|
+
contractAddress: string;
|
|
263
|
+
/**
|
|
264
|
+
* The unique NFT address.
|
|
265
|
+
*/
|
|
266
|
+
nftAddress: string;
|
|
267
|
+
};
|
|
268
|
+
export type ProofResult = {
|
|
269
|
+
/**
|
|
270
|
+
* Indicates whether the proof generation was successful.
|
|
271
|
+
*/
|
|
272
|
+
success?: boolean;
|
|
273
|
+
/**
|
|
274
|
+
* The transaction hash if the proof was successfully applied.
|
|
275
|
+
*/
|
|
276
|
+
hash?: string;
|
|
277
|
+
/**
|
|
278
|
+
* Error message if proof generation failed.
|
|
279
|
+
*/
|
|
280
|
+
error?: string;
|
|
281
|
+
};
|
|
282
|
+
export type ProveTokenTransaction = {
|
|
283
|
+
/**
|
|
284
|
+
* The transaction object.
|
|
285
|
+
*/
|
|
286
|
+
tx: TokenTransaction;
|
|
287
|
+
/**
|
|
288
|
+
* The signed data for the transaction.
|
|
289
|
+
*/
|
|
290
|
+
signedData: string;
|
|
291
|
+
/**
|
|
292
|
+
* Optional. Whether to broadcast the transaction after proving.
|
|
293
|
+
*/
|
|
294
|
+
sendTransaction?: boolean;
|
|
295
|
+
};
|
|
296
|
+
export type ProveTokenTransactions = {
|
|
297
|
+
/**
|
|
298
|
+
* Array of transactions to be proved.
|
|
299
|
+
*/
|
|
300
|
+
txs: Array<ProveTokenTransaction>;
|
|
301
|
+
};
|
|
302
|
+
export type TokenAirdropTransactionParams = DeployedTokenTransactionBaseParams & {
|
|
303
|
+
/**
|
|
304
|
+
* Must be "token:airdrop"
|
|
305
|
+
*/
|
|
306
|
+
txType?: 'token:airdrop';
|
|
307
|
+
/**
|
|
308
|
+
* List of recipients and amounts for the airdrop
|
|
309
|
+
*/
|
|
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
|
+
}>;
|
|
324
|
+
};
|
|
325
|
+
/**
|
|
326
|
+
* Must be "token:airdrop"
|
|
327
|
+
*/
|
|
328
|
+
export type txType2 = 'token:airdrop';
|
|
329
|
+
export type TokenBidTransactionParams = DeployedTokenTransactionBaseParams & {
|
|
330
|
+
/**
|
|
331
|
+
* Must be "token:bid:create"
|
|
332
|
+
*/
|
|
333
|
+
txType?: 'token:bid:create';
|
|
334
|
+
/**
|
|
335
|
+
* Optional. The private key for bidding.
|
|
336
|
+
*/
|
|
337
|
+
bidPrivateKey?: string;
|
|
338
|
+
/**
|
|
339
|
+
* Optional. The address for bidding.
|
|
340
|
+
*/
|
|
341
|
+
bidAddress?: string;
|
|
342
|
+
/**
|
|
343
|
+
* The amount to bid.
|
|
344
|
+
*/
|
|
345
|
+
amount: number;
|
|
346
|
+
/**
|
|
347
|
+
* The price to bid.
|
|
348
|
+
*/
|
|
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 & {
|
|
357
|
+
/**
|
|
358
|
+
* Must be "token:burn"
|
|
359
|
+
*/
|
|
360
|
+
txType?: 'token:burn';
|
|
361
|
+
/**
|
|
362
|
+
* The address from which tokens are to be burned.
|
|
363
|
+
*/
|
|
364
|
+
from: string;
|
|
365
|
+
/**
|
|
366
|
+
* The amount of tokens to burn.
|
|
367
|
+
*/
|
|
368
|
+
amount: number;
|
|
369
|
+
};
|
|
370
|
+
/**
|
|
371
|
+
* Must be "token:burn"
|
|
372
|
+
*/
|
|
373
|
+
export type txType4 = 'token:burn';
|
|
374
|
+
export type TokenBuyTransactionParams = DeployedTokenTransactionBaseParams & {
|
|
375
|
+
/**
|
|
376
|
+
* Must be "token:offer:buy"
|
|
377
|
+
*/
|
|
378
|
+
txType?: 'token:offer:buy';
|
|
379
|
+
/**
|
|
380
|
+
* The address of the offer to buy from.
|
|
381
|
+
*/
|
|
382
|
+
offerAddress: string;
|
|
383
|
+
/**
|
|
384
|
+
* The amount of tokens to buy.
|
|
385
|
+
*/
|
|
386
|
+
amount: number;
|
|
387
|
+
};
|
|
388
|
+
/**
|
|
389
|
+
* Must be "token:offer:buy"
|
|
390
|
+
*/
|
|
391
|
+
export type txType5 = 'token:offer:buy';
|
|
392
|
+
export type TokenInfo = {
|
|
393
|
+
/**
|
|
394
|
+
* The symbol of the token.
|
|
395
|
+
*/
|
|
396
|
+
symbol?: string;
|
|
397
|
+
/**
|
|
398
|
+
* Optional. The name of the token.
|
|
399
|
+
*/
|
|
400
|
+
name?: string;
|
|
401
|
+
/**
|
|
402
|
+
* Optional. Description of the token.
|
|
403
|
+
*/
|
|
404
|
+
description?: string;
|
|
405
|
+
/**
|
|
406
|
+
* Optional. URL of the token image.
|
|
407
|
+
*/
|
|
408
|
+
imageUrl?: string;
|
|
409
|
+
/**
|
|
410
|
+
* Optional. Base64-encoded image data (max 1 MB).
|
|
411
|
+
*/
|
|
412
|
+
imageBase64?: string;
|
|
413
|
+
/**
|
|
414
|
+
* Optional. Twitter handle associated with the token.
|
|
415
|
+
*/
|
|
416
|
+
twitter?: string;
|
|
417
|
+
/**
|
|
418
|
+
* Optional. Discord link associated with the token.
|
|
419
|
+
*/
|
|
420
|
+
discord?: string;
|
|
421
|
+
/**
|
|
422
|
+
* Optional. Telegram link associated with the token.
|
|
423
|
+
*/
|
|
424
|
+
telegram?: string;
|
|
425
|
+
/**
|
|
426
|
+
* Optional. Instagram handle associated with the token.
|
|
427
|
+
*/
|
|
428
|
+
instagram?: string;
|
|
429
|
+
/**
|
|
430
|
+
* Optional. Facebook page associated with the token.
|
|
431
|
+
*/
|
|
432
|
+
facebook?: string;
|
|
433
|
+
/**
|
|
434
|
+
* Optional. Official website of the token.
|
|
435
|
+
*/
|
|
436
|
+
website?: string;
|
|
437
|
+
/**
|
|
438
|
+
* Optional. Code for the token contract.
|
|
439
|
+
*/
|
|
440
|
+
tokenContractCode?: string;
|
|
441
|
+
/**
|
|
442
|
+
* Optional. Code for the admin contracts.
|
|
443
|
+
*/
|
|
444
|
+
adminContractsCode?: Array<(string)>;
|
|
445
|
+
};
|
|
446
|
+
export type TokenInfoRequestParams = {
|
|
447
|
+
/**
|
|
448
|
+
* The address of the token contract.
|
|
449
|
+
*/
|
|
450
|
+
tokenAddress: string;
|
|
451
|
+
};
|
|
452
|
+
export type TokenMintTransactionParams = DeployedTokenTransactionBaseParams & {
|
|
453
|
+
/**
|
|
454
|
+
* Must be "token:mint"
|
|
455
|
+
*/
|
|
456
|
+
txType?: 'token:mint';
|
|
457
|
+
/**
|
|
458
|
+
* The address to which tokens are to be minted.
|
|
459
|
+
*/
|
|
460
|
+
to: string;
|
|
461
|
+
/**
|
|
462
|
+
* The amount of tokens to mint.
|
|
463
|
+
*/
|
|
464
|
+
amount: number;
|
|
465
|
+
/**
|
|
466
|
+
* The price of the token in the bonding curve.
|
|
467
|
+
*/
|
|
468
|
+
price?: number;
|
|
469
|
+
};
|
|
470
|
+
/**
|
|
471
|
+
* Must be "token:mint"
|
|
472
|
+
*/
|
|
473
|
+
export type txType6 = 'token:mint';
|
|
474
|
+
export type TokenOfferTransactionParams = DeployedTokenTransactionBaseParams & {
|
|
475
|
+
/**
|
|
476
|
+
* Must be "token:offer:create"
|
|
477
|
+
*/
|
|
478
|
+
txType?: 'token:offer:create';
|
|
479
|
+
/**
|
|
480
|
+
* Optional. The private key for offering.
|
|
481
|
+
*/
|
|
482
|
+
offerPrivateKey?: string;
|
|
483
|
+
/**
|
|
484
|
+
* Optional. The address for offering.
|
|
485
|
+
*/
|
|
486
|
+
offerAddress?: string;
|
|
487
|
+
/**
|
|
488
|
+
* The amount to offer.
|
|
489
|
+
*/
|
|
490
|
+
amount: number;
|
|
491
|
+
/**
|
|
492
|
+
* The price to offer.
|
|
493
|
+
*/
|
|
494
|
+
price: number;
|
|
495
|
+
whitelist?: Whitelist;
|
|
496
|
+
};
|
|
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';
|
|
506
|
+
/**
|
|
507
|
+
* The amount of tokens to redeem.
|
|
508
|
+
*/
|
|
509
|
+
amount: number;
|
|
510
|
+
/**
|
|
511
|
+
* The minimum price of the tokens to be redeemed.
|
|
512
|
+
*/
|
|
513
|
+
price: number;
|
|
514
|
+
/**
|
|
515
|
+
* The maximum slippage allowed for the redemption, default is 50 (5%).
|
|
516
|
+
*/
|
|
517
|
+
slippage?: number;
|
|
518
|
+
};
|
|
519
|
+
/**
|
|
520
|
+
* Must be "token:redeem"
|
|
521
|
+
*/
|
|
522
|
+
export type txType8 = 'token:redeem';
|
|
523
|
+
export type TokenSellTransactionParams = DeployedTokenTransactionBaseParams & {
|
|
524
|
+
/**
|
|
525
|
+
* Must be "token:bid:sell"
|
|
526
|
+
*/
|
|
527
|
+
txType?: 'token:bid:sell';
|
|
528
|
+
/**
|
|
529
|
+
* The address of the bid to sell to.
|
|
530
|
+
*/
|
|
531
|
+
bidAddress: string;
|
|
532
|
+
/**
|
|
533
|
+
* The amount of tokens to sell.
|
|
534
|
+
*/
|
|
535
|
+
amount: number;
|
|
536
|
+
};
|
|
537
|
+
/**
|
|
538
|
+
* Must be "token:bid:sell"
|
|
539
|
+
*/
|
|
540
|
+
export type txType9 = 'token:bid:sell';
|
|
541
|
+
export type TokenState = {
|
|
542
|
+
/**
|
|
543
|
+
* The address of the token contract.
|
|
544
|
+
*/
|
|
545
|
+
tokenAddress: string;
|
|
546
|
+
/**
|
|
547
|
+
* The unique identifier of the token.
|
|
548
|
+
*/
|
|
549
|
+
tokenId: string;
|
|
550
|
+
/**
|
|
551
|
+
* The address of the admin contract.
|
|
552
|
+
*/
|
|
553
|
+
adminContractAddress: string;
|
|
554
|
+
/**
|
|
555
|
+
* The address of the administrator.
|
|
556
|
+
*/
|
|
557
|
+
adminAddress: string;
|
|
558
|
+
/**
|
|
559
|
+
* The token balance of the administrator.
|
|
560
|
+
*/
|
|
561
|
+
adminTokenBalance: number;
|
|
562
|
+
/**
|
|
563
|
+
* The total supply of the token.
|
|
564
|
+
*/
|
|
565
|
+
totalSupply: number;
|
|
566
|
+
/**
|
|
567
|
+
* Indicates if the token contract is paused.
|
|
568
|
+
*/
|
|
569
|
+
isPaused: boolean;
|
|
570
|
+
/**
|
|
571
|
+
* The number of decimal places the token uses.
|
|
572
|
+
*/
|
|
573
|
+
decimals: number;
|
|
574
|
+
/**
|
|
575
|
+
* The symbol of the token.
|
|
576
|
+
*/
|
|
577
|
+
tokenSymbol: string;
|
|
578
|
+
/**
|
|
579
|
+
* The verification key hash of the token contract.
|
|
580
|
+
*/
|
|
581
|
+
verificationKeyHash: string;
|
|
582
|
+
/**
|
|
583
|
+
* The URI of the token metadata.
|
|
584
|
+
*/
|
|
585
|
+
uri: string;
|
|
586
|
+
/**
|
|
587
|
+
* The version number of the token contract.
|
|
588
|
+
*/
|
|
589
|
+
version: number;
|
|
590
|
+
/**
|
|
591
|
+
* The symbol of the admin token.
|
|
592
|
+
*/
|
|
593
|
+
adminTokenSymbol: string;
|
|
594
|
+
/**
|
|
595
|
+
* The URI of the admin token metadata.
|
|
596
|
+
*/
|
|
597
|
+
adminUri: string;
|
|
598
|
+
/**
|
|
599
|
+
* The verification key hash of the admin contract.
|
|
600
|
+
*/
|
|
601
|
+
adminVerificationKeyHash: string;
|
|
602
|
+
adminVersion: number;
|
|
603
|
+
};
|
|
604
|
+
export type TokenSymbolAndAdmin = {
|
|
605
|
+
/**
|
|
606
|
+
* The address of the token contract.
|
|
607
|
+
*/
|
|
608
|
+
tokenAddress: string;
|
|
609
|
+
/**
|
|
610
|
+
* The address of the admin contract.
|
|
611
|
+
*/
|
|
612
|
+
adminContractAddress: string;
|
|
613
|
+
/**
|
|
614
|
+
* The address of the administrator.
|
|
615
|
+
*/
|
|
616
|
+
adminAddress: string;
|
|
617
|
+
/**
|
|
618
|
+
* The symbol of the token.
|
|
619
|
+
*/
|
|
620
|
+
tokenSymbol: string;
|
|
621
|
+
};
|
|
622
|
+
export type TokenTransaction = TransactionPayloads & {
|
|
623
|
+
/**
|
|
624
|
+
* The symbol of the token.
|
|
625
|
+
*/
|
|
626
|
+
symbol: string;
|
|
627
|
+
request: (TokenTransactionParams & {
|
|
628
|
+
/**
|
|
629
|
+
* The type of the transaction.
|
|
630
|
+
*/
|
|
631
|
+
txType: TokenTransactionType;
|
|
632
|
+
});
|
|
633
|
+
};
|
|
634
|
+
export type TokenTransactionBaseParams = {
|
|
635
|
+
/**
|
|
636
|
+
* Type of the token transaction.
|
|
637
|
+
*/
|
|
638
|
+
txType?: string;
|
|
639
|
+
/**
|
|
640
|
+
* Optional. The address of the token contract.
|
|
641
|
+
*/
|
|
642
|
+
tokenAddress?: string;
|
|
643
|
+
/**
|
|
644
|
+
* The address (public key) of the sender.
|
|
645
|
+
*/
|
|
646
|
+
sender: string;
|
|
647
|
+
/**
|
|
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.
|
|
649
|
+
*/
|
|
650
|
+
senderPrivateKey?: string;
|
|
651
|
+
/**
|
|
652
|
+
* Optional. The nonce for the transaction.
|
|
653
|
+
*/
|
|
654
|
+
nonce?: number;
|
|
655
|
+
/**
|
|
656
|
+
* Optional. A memo for the transaction.
|
|
657
|
+
*/
|
|
658
|
+
memo?: string;
|
|
659
|
+
/**
|
|
660
|
+
* Optional. The developer fee for the transaction.
|
|
661
|
+
*/
|
|
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 = {
|
|
666
|
+
/**
|
|
667
|
+
* Array of token transactions.
|
|
668
|
+
*/
|
|
669
|
+
txs: Array<TokenTransaction>;
|
|
670
|
+
};
|
|
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
|
+
export type TokenTransferTransactionParams = DeployedTokenTransactionBaseParams & {
|
|
673
|
+
/**
|
|
674
|
+
* Must be "token:transfer"
|
|
675
|
+
*/
|
|
676
|
+
txType?: 'token:transfer';
|
|
677
|
+
/**
|
|
678
|
+
* The address to which tokens are to be transferred.
|
|
679
|
+
*/
|
|
680
|
+
to: string;
|
|
681
|
+
/**
|
|
682
|
+
* The amount of tokens to transfer.
|
|
683
|
+
*/
|
|
684
|
+
amount: number;
|
|
685
|
+
};
|
|
686
|
+
/**
|
|
687
|
+
* Must be "token:transfer"
|
|
688
|
+
*/
|
|
689
|
+
export type txType10 = 'token:transfer';
|
|
690
|
+
export type TokenUpdateAdminWhitelistTransactionParams = DeployedTokenTransactionBaseParams & {
|
|
691
|
+
/**
|
|
692
|
+
* Must be "token:admin:whitelist"
|
|
693
|
+
*/
|
|
694
|
+
txType?: 'token:admin:whitelist';
|
|
695
|
+
/**
|
|
696
|
+
* The address of the admin to update whitelist for.
|
|
697
|
+
*/
|
|
698
|
+
adminAddress: string;
|
|
699
|
+
/**
|
|
700
|
+
* Either a list of whitelisted addresses with optional amounts, or a string representing a whitelist contract address
|
|
701
|
+
*/
|
|
702
|
+
whitelist: Whitelist;
|
|
703
|
+
};
|
|
704
|
+
/**
|
|
705
|
+
* Must be "token:admin:whitelist"
|
|
706
|
+
*/
|
|
707
|
+
export type txType11 = 'token:admin:whitelist';
|
|
708
|
+
export type TokenUpdateBidWhitelistTransactionParams = DeployedTokenTransactionBaseParams & {
|
|
709
|
+
/**
|
|
710
|
+
* Must be "token:bid:whitelist"
|
|
711
|
+
*/
|
|
712
|
+
txType?: 'token:bid:whitelist';
|
|
713
|
+
/**
|
|
714
|
+
* The address of the bid to update whitelist for.
|
|
715
|
+
*/
|
|
716
|
+
bidAddress: string;
|
|
717
|
+
/**
|
|
718
|
+
* Either a list of whitelisted addresses with optional amounts, or a string representing a whitelist contract address
|
|
719
|
+
*/
|
|
720
|
+
whitelist: Whitelist;
|
|
721
|
+
};
|
|
722
|
+
/**
|
|
723
|
+
* Must be "token:bid:whitelist"
|
|
724
|
+
*/
|
|
725
|
+
export type txType12 = 'token:bid:whitelist';
|
|
726
|
+
export type TokenUpdateOfferWhitelistTransactionParams = DeployedTokenTransactionBaseParams & {
|
|
727
|
+
/**
|
|
728
|
+
* Must be "token:offer:whitelist"
|
|
729
|
+
*/
|
|
730
|
+
txType?: 'token:offer:whitelist';
|
|
731
|
+
/**
|
|
732
|
+
* The address of the offer to update whitelist for.
|
|
733
|
+
*/
|
|
734
|
+
offerAddress: string;
|
|
735
|
+
/**
|
|
736
|
+
* Either a list of whitelisted addresses with optional amounts, or a string representing a whitelist contract address
|
|
737
|
+
*/
|
|
738
|
+
whitelist: Whitelist;
|
|
739
|
+
};
|
|
740
|
+
/**
|
|
741
|
+
* Must be "token:offer:whitelist"
|
|
742
|
+
*/
|
|
743
|
+
export type txType13 = 'token:offer:whitelist';
|
|
744
|
+
export type TokenWithdrawBidTransactionParams = DeployedTokenTransactionBaseParams & {
|
|
745
|
+
/**
|
|
746
|
+
* Must be "token:bid:withdraw"
|
|
747
|
+
*/
|
|
748
|
+
txType?: 'token:bid:withdraw';
|
|
749
|
+
/**
|
|
750
|
+
* The address of the bid to withdraw from.
|
|
751
|
+
*/
|
|
752
|
+
bidAddress: string;
|
|
753
|
+
/**
|
|
754
|
+
* The amount to withdraw from the bid.
|
|
755
|
+
*/
|
|
756
|
+
amount: number;
|
|
757
|
+
};
|
|
758
|
+
/**
|
|
759
|
+
* Must be "token:bid:withdraw"
|
|
760
|
+
*/
|
|
761
|
+
export type txType14 = 'token:bid:withdraw';
|
|
762
|
+
export type TokenWithdrawOfferTransactionParams = DeployedTokenTransactionBaseParams & {
|
|
763
|
+
/**
|
|
764
|
+
* Must be "token:offer:withdraw"
|
|
765
|
+
*/
|
|
766
|
+
txType?: 'token:offer:withdraw';
|
|
767
|
+
/**
|
|
768
|
+
* The address of the offer to withdraw from.
|
|
769
|
+
*/
|
|
770
|
+
offerAddress: string;
|
|
771
|
+
/**
|
|
772
|
+
* The amount to withdraw from the offer.
|
|
773
|
+
*/
|
|
774
|
+
amount: number;
|
|
775
|
+
};
|
|
776
|
+
/**
|
|
777
|
+
* Must be "token:offer:withdraw"
|
|
778
|
+
*/
|
|
779
|
+
export type txType15 = 'token:offer:withdraw';
|
|
780
|
+
export type TransactionPayloads = {
|
|
781
|
+
/**
|
|
782
|
+
* The address initiating the transaction.
|
|
783
|
+
*/
|
|
784
|
+
sender: string;
|
|
785
|
+
/**
|
|
786
|
+
* The nonce for the transaction.
|
|
787
|
+
*/
|
|
788
|
+
nonce: number;
|
|
789
|
+
/**
|
|
790
|
+
* A memo for the transaction.
|
|
791
|
+
*/
|
|
792
|
+
memo: string;
|
|
793
|
+
/**
|
|
794
|
+
* The fee for the transaction.
|
|
795
|
+
*/
|
|
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
|
+
};
|
|
845
|
+
/**
|
|
846
|
+
* The payload for the prover.
|
|
847
|
+
*/
|
|
848
|
+
proverPayload: string;
|
|
849
|
+
/**
|
|
850
|
+
* The signed data for the transaction.
|
|
851
|
+
*/
|
|
852
|
+
signedData: string;
|
|
853
|
+
/**
|
|
854
|
+
* The raw transaction data.
|
|
855
|
+
*/
|
|
856
|
+
transaction: string;
|
|
857
|
+
/**
|
|
858
|
+
* Optional. Whether to broadcast the transaction after proving.
|
|
859
|
+
*/
|
|
860
|
+
sendTransaction?: boolean;
|
|
861
|
+
};
|
|
862
|
+
export type TransactionStatus = {
|
|
863
|
+
/**
|
|
864
|
+
* The transaction hash.
|
|
865
|
+
*/
|
|
866
|
+
hash?: string;
|
|
867
|
+
/**
|
|
868
|
+
* The status of the transaction.
|
|
869
|
+
*/
|
|
870
|
+
status?: 'pending' | 'applied' | 'failed' | 'unknown';
|
|
871
|
+
/**
|
|
872
|
+
* The transaction hash.
|
|
873
|
+
*/
|
|
874
|
+
error?: string;
|
|
875
|
+
/**
|
|
876
|
+
* The details of the transaction.
|
|
877
|
+
*/
|
|
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.
|
|
901
|
+
*/
|
|
902
|
+
txStatus?: string;
|
|
903
|
+
};
|
|
904
|
+
};
|
|
905
|
+
/**
|
|
906
|
+
* The status of the transaction.
|
|
907
|
+
*/
|
|
908
|
+
export type status = 'pending' | 'applied' | 'failed' | 'unknown';
|
|
909
|
+
export type TransactionStatusParams = {
|
|
910
|
+
/**
|
|
911
|
+
* The transaction hash to check the status of.
|
|
912
|
+
*/
|
|
913
|
+
hash: string;
|
|
914
|
+
};
|
|
915
|
+
export type TxStatus = {
|
|
916
|
+
/**
|
|
917
|
+
* The height of the block containing the transaction.
|
|
918
|
+
*/
|
|
919
|
+
blockHeight?: number;
|
|
920
|
+
/**
|
|
921
|
+
* The state hash of the block.
|
|
922
|
+
*/
|
|
923
|
+
stateHash?: string;
|
|
924
|
+
/**
|
|
925
|
+
* The status of the block.
|
|
926
|
+
*/
|
|
927
|
+
blockStatus?: string;
|
|
928
|
+
/**
|
|
929
|
+
* The timestamp of the block.
|
|
930
|
+
*/
|
|
931
|
+
timestamp?: number;
|
|
932
|
+
/**
|
|
933
|
+
* The transaction hash.
|
|
934
|
+
*/
|
|
935
|
+
txHash?: string;
|
|
936
|
+
/**
|
|
937
|
+
* The status of the transaction in the block.
|
|
938
|
+
*/
|
|
939
|
+
txStatus?: string;
|
|
940
|
+
};
|
|
941
|
+
/**
|
|
942
|
+
* Optional. List of whitelisted addresses with optional amounts, or a string.
|
|
943
|
+
*/
|
|
944
|
+
export type Whitelist = Array<{
|
|
945
|
+
/**
|
|
946
|
+
* The whitelisted address.
|
|
947
|
+
*/
|
|
948
|
+
address: string;
|
|
949
|
+
/**
|
|
950
|
+
* Optional. The amount allowed to bid.
|
|
951
|
+
*/
|
|
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;
|
|
1001
|
+
};
|
|
1002
|
+
export type MintTokensResponse = (TokenTransaction);
|
|
1003
|
+
export type MintTokensError = (ErrorResponse);
|
|
1004
|
+
export type TransferTokensData = {
|
|
1005
|
+
body: TokenTransferTransactionParams;
|
|
1006
|
+
};
|
|
1007
|
+
export type TransferTokensResponse = (TokenTransaction);
|
|
1008
|
+
export type TransferTokensError = (ErrorResponse);
|
|
1009
|
+
export type AirdropTokensData = {
|
|
1010
|
+
body: TokenAirdropTransactionParams;
|
|
1011
|
+
};
|
|
1012
|
+
export type AirdropTokensResponse = (AirdropTransactionResponse);
|
|
1013
|
+
export type AirdropTokensError = (ErrorResponse);
|
|
1014
|
+
export type RedeemTokensData = {
|
|
1015
|
+
body: TokenRedeemTransactionParams;
|
|
1016
|
+
};
|
|
1017
|
+
export type RedeemTokensResponse = (TokenTransaction);
|
|
1018
|
+
export type RedeemTokensError = (ErrorResponse);
|
|
1019
|
+
export type BurnTokensData = {
|
|
1020
|
+
body: TokenBurnTransactionParams;
|
|
1021
|
+
};
|
|
1022
|
+
export type BurnTokensResponse = (TokenTransaction);
|
|
1023
|
+
export type BurnTokensError = (ErrorResponse);
|
|
1024
|
+
export type TokenBidData = {
|
|
1025
|
+
body: TokenBidTransactionParams;
|
|
1026
|
+
};
|
|
1027
|
+
export type TokenBidResponse = (TokenTransaction);
|
|
1028
|
+
export type TokenBidError = (ErrorResponse);
|
|
1029
|
+
export type TokenOfferData = {
|
|
1030
|
+
body: TokenOfferTransactionParams;
|
|
1031
|
+
};
|
|
1032
|
+
export type TokenOfferResponse = (TokenTransaction);
|
|
1033
|
+
export type TokenOfferError = (ErrorResponse);
|
|
1034
|
+
export type BuyTokensData = {
|
|
1035
|
+
body: TokenBuyTransactionParams;
|
|
1036
|
+
};
|
|
1037
|
+
export type BuyTokensResponse = (TokenTransaction);
|
|
1038
|
+
export type BuyTokensError = (ErrorResponse);
|
|
1039
|
+
export type SellTokensData = {
|
|
1040
|
+
body: TokenSellTransactionParams;
|
|
1041
|
+
};
|
|
1042
|
+
export type SellTokensResponse = (TokenTransaction);
|
|
1043
|
+
export type SellTokensError = (ErrorResponse);
|
|
1044
|
+
export type WithdrawTokenBidData = {
|
|
1045
|
+
body: TokenWithdrawBidTransactionParams;
|
|
1046
|
+
};
|
|
1047
|
+
export type WithdrawTokenBidResponse = (TokenTransaction);
|
|
1048
|
+
export type WithdrawTokenBidError = (ErrorResponse);
|
|
1049
|
+
export type WithdrawTokenOfferData = {
|
|
1050
|
+
body: TokenWithdrawOfferTransactionParams;
|
|
1051
|
+
};
|
|
1052
|
+
export type WithdrawTokenOfferResponse = (TokenTransaction);
|
|
1053
|
+
export type WithdrawTokenOfferError = (ErrorResponse);
|
|
1054
|
+
export type UpdateTokenBidWhitelistData = {
|
|
1055
|
+
body: TokenUpdateBidWhitelistTransactionParams;
|
|
1056
|
+
};
|
|
1057
|
+
export type UpdateTokenBidWhitelistResponse = (TokenTransaction);
|
|
1058
|
+
export type UpdateTokenBidWhitelistError = (ErrorResponse);
|
|
1059
|
+
export type UpdateTokenOfferWhitelistData = {
|
|
1060
|
+
body: TokenUpdateOfferWhitelistTransactionParams;
|
|
1061
|
+
};
|
|
1062
|
+
export type UpdateTokenOfferWhitelistResponse = (TokenTransaction);
|
|
1063
|
+
export type UpdateTokenOfferWhitelistError = (ErrorResponse);
|
|
1064
|
+
export type UpdateTokenAdminWhitelistData = {
|
|
1065
|
+
body: TokenUpdateAdminWhitelistTransactionParams;
|
|
1066
|
+
};
|
|
1067
|
+
export type UpdateTokenAdminWhitelistResponse = (TokenTransaction);
|
|
1068
|
+
export type UpdateTokenAdminWhitelistError = (ErrorResponse);
|