@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.
- package/dist/node/client/client.gen.d.ts +12 -0
- package/dist/node/client/client.gen.js +6 -0
- package/dist/node/client/client.gen.js.map +1 -0
- package/dist/node/client/sdk.gen.d.ts +53 -26
- package/dist/node/client/sdk.gen.js +322 -48
- package/dist/node/client/sdk.gen.js.map +1 -1
- package/dist/node/client/types.gen.d.ts +1815 -621
- package/dist/node/config.js +1 -1
- package/dist/node/config.js.map +1 -1
- package/dist/node/index.cjs +318 -50
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/tsconfig.web.tsbuildinfo +1 -1
- package/dist/web/client/client.gen.d.ts +12 -0
- package/dist/web/client/client.gen.js +6 -0
- package/dist/web/client/client.gen.js.map +1 -0
- package/dist/web/client/sdk.gen.d.ts +53 -26
- package/dist/web/client/sdk.gen.js +322 -48
- package/dist/web/client/sdk.gen.js.map +1 -1
- package/dist/web/client/types.gen.d.ts +1815 -621
- package/dist/web/config.js +1 -1
- package/dist/web/config.js.map +1 -1
- package/package.json +4 -5
- package/src/client/client.gen.ts +18 -0
- package/src/client/sdk.gen.ts +362 -72
- package/src/client/types.gen.ts +1829 -584
- package/src/config.ts +1 -1
package/dist/node/config.js
CHANGED
package/dist/node/config.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAEhD,MAAM,UAAU,MAAM,CAAC,EACrB,MAAM,EACN,KAAK,EACL,YAAY,GAKb;IACC,MAAM,CAAC,SAAS,CAAC;QACf,OAAO,EAAE;YACP,WAAW,EAAE,MAAM;SACpB;QACD,OAAO,EACL,KAAK,KAAK,MAAM;YACd,CAAC,CAAC,gCAAgC;YAClC,CAAC,CAAC,KAAK,KAAK,QAAQ;gBACpB,CAAC,CAAC,uCAAuC;gBACzC,CAAC,CAAC,gCAAgC;QACtC,YAAY,EAAE,YAAY,IAAI,IAAI;KACnC,CAAC,CAAC;AACL,CAAC"}
|
package/dist/node/index.cjs
CHANGED
|
@@ -23,7 +23,6 @@ __export(index_exports, {
|
|
|
23
23
|
airdropTokens: () => airdropTokens,
|
|
24
24
|
burnTokens: () => burnTokens,
|
|
25
25
|
buyTokens: () => buyTokens,
|
|
26
|
-
client: () => client,
|
|
27
26
|
config: () => config,
|
|
28
27
|
faucet: () => faucet,
|
|
29
28
|
getContractInfo: () => getContractInfo,
|
|
@@ -31,7 +30,9 @@ __export(index_exports, {
|
|
|
31
30
|
getProof: () => getProof,
|
|
32
31
|
getTokenBalance: () => getTokenBalance,
|
|
33
32
|
getTokenInfo: () => getTokenInfo,
|
|
33
|
+
launchNftCollection: () => launchNftCollection,
|
|
34
34
|
launchToken: () => launchToken,
|
|
35
|
+
mintNft: () => mintNft,
|
|
35
36
|
mintTokens: () => mintTokens,
|
|
36
37
|
prove: () => prove,
|
|
37
38
|
redeemTokens: () => redeemTokens,
|
|
@@ -50,145 +51,411 @@ __export(index_exports, {
|
|
|
50
51
|
});
|
|
51
52
|
module.exports = __toCommonJS(index_exports);
|
|
52
53
|
|
|
53
|
-
// dist/node/client/
|
|
54
|
+
// dist/node/client/client.gen.js
|
|
54
55
|
var import_client_fetch = require("@hey-api/client-fetch");
|
|
55
|
-
var client = (0, import_client_fetch.createClient)((0, import_client_fetch.createConfig)(
|
|
56
|
+
var client = (0, import_client_fetch.createClient)((0, import_client_fetch.createConfig)({
|
|
57
|
+
baseUrl: "https://minatokens.com/api/v1/"
|
|
58
|
+
}));
|
|
59
|
+
|
|
60
|
+
// dist/node/client/sdk.gen.js
|
|
61
|
+
var launchNftCollection = (options) => {
|
|
62
|
+
return (options.client ?? client).post({
|
|
63
|
+
security: [
|
|
64
|
+
{
|
|
65
|
+
name: "x-api-key",
|
|
66
|
+
type: "apiKey"
|
|
67
|
+
}
|
|
68
|
+
],
|
|
69
|
+
url: "/nft/launch",
|
|
70
|
+
...options,
|
|
71
|
+
headers: {
|
|
72
|
+
"Content-Type": "application/json",
|
|
73
|
+
...options?.headers
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
};
|
|
56
77
|
var launchToken = (options) => {
|
|
57
|
-
return (options
|
|
78
|
+
return (options.client ?? client).post({
|
|
79
|
+
security: [
|
|
80
|
+
{
|
|
81
|
+
name: "x-api-key",
|
|
82
|
+
type: "apiKey"
|
|
83
|
+
}
|
|
84
|
+
],
|
|
85
|
+
url: "/token/launch",
|
|
58
86
|
...options,
|
|
59
|
-
|
|
87
|
+
headers: {
|
|
88
|
+
"Content-Type": "application/json",
|
|
89
|
+
...options?.headers
|
|
90
|
+
}
|
|
60
91
|
});
|
|
61
92
|
};
|
|
62
93
|
var getContractInfo = (options) => {
|
|
63
|
-
return (options
|
|
94
|
+
return (options.client ?? client).post({
|
|
95
|
+
security: [
|
|
96
|
+
{
|
|
97
|
+
name: "x-api-key",
|
|
98
|
+
type: "apiKey"
|
|
99
|
+
}
|
|
100
|
+
],
|
|
101
|
+
url: "/info/contract",
|
|
64
102
|
...options,
|
|
65
|
-
|
|
103
|
+
headers: {
|
|
104
|
+
"Content-Type": "application/json",
|
|
105
|
+
...options?.headers
|
|
106
|
+
}
|
|
66
107
|
});
|
|
67
108
|
};
|
|
68
109
|
var getNftV2Info = (options) => {
|
|
69
|
-
return (options
|
|
110
|
+
return (options.client ?? client).post({
|
|
111
|
+
security: [
|
|
112
|
+
{
|
|
113
|
+
name: "x-api-key",
|
|
114
|
+
type: "apiKey"
|
|
115
|
+
}
|
|
116
|
+
],
|
|
117
|
+
url: "/info/nft-v2",
|
|
70
118
|
...options,
|
|
71
|
-
|
|
119
|
+
headers: {
|
|
120
|
+
"Content-Type": "application/json",
|
|
121
|
+
...options?.headers
|
|
122
|
+
}
|
|
72
123
|
});
|
|
73
124
|
};
|
|
74
125
|
var faucet = (options) => {
|
|
75
|
-
return (options
|
|
126
|
+
return (options.client ?? client).post({
|
|
127
|
+
security: [
|
|
128
|
+
{
|
|
129
|
+
name: "x-api-key",
|
|
130
|
+
type: "apiKey"
|
|
131
|
+
}
|
|
132
|
+
],
|
|
133
|
+
url: "/faucet",
|
|
76
134
|
...options,
|
|
77
|
-
|
|
135
|
+
headers: {
|
|
136
|
+
"Content-Type": "application/json",
|
|
137
|
+
...options?.headers
|
|
138
|
+
}
|
|
78
139
|
});
|
|
79
140
|
};
|
|
80
141
|
var getTokenInfo = (options) => {
|
|
81
|
-
return (options
|
|
142
|
+
return (options.client ?? client).post({
|
|
143
|
+
security: [
|
|
144
|
+
{
|
|
145
|
+
name: "x-api-key",
|
|
146
|
+
type: "apiKey"
|
|
147
|
+
}
|
|
148
|
+
],
|
|
149
|
+
url: "/info/token",
|
|
82
150
|
...options,
|
|
83
|
-
|
|
151
|
+
headers: {
|
|
152
|
+
"Content-Type": "application/json",
|
|
153
|
+
...options?.headers
|
|
154
|
+
}
|
|
84
155
|
});
|
|
85
156
|
};
|
|
86
157
|
var getTokenBalance = (options) => {
|
|
87
|
-
return (options
|
|
158
|
+
return (options.client ?? client).post({
|
|
159
|
+
security: [
|
|
160
|
+
{
|
|
161
|
+
name: "x-api-key",
|
|
162
|
+
type: "apiKey"
|
|
163
|
+
}
|
|
164
|
+
],
|
|
165
|
+
url: "/info/balance",
|
|
88
166
|
...options,
|
|
89
|
-
|
|
167
|
+
headers: {
|
|
168
|
+
"Content-Type": "application/json",
|
|
169
|
+
...options?.headers
|
|
170
|
+
}
|
|
90
171
|
});
|
|
91
172
|
};
|
|
92
173
|
var prove = (options) => {
|
|
93
|
-
return (options
|
|
174
|
+
return (options.client ?? client).post({
|
|
175
|
+
security: [
|
|
176
|
+
{
|
|
177
|
+
name: "x-api-key",
|
|
178
|
+
type: "apiKey"
|
|
179
|
+
}
|
|
180
|
+
],
|
|
181
|
+
url: "/transaction/prove",
|
|
94
182
|
...options,
|
|
95
|
-
|
|
183
|
+
headers: {
|
|
184
|
+
"Content-Type": "application/json",
|
|
185
|
+
...options?.headers
|
|
186
|
+
}
|
|
96
187
|
});
|
|
97
188
|
};
|
|
98
189
|
var getProof = (options) => {
|
|
99
|
-
return (options
|
|
190
|
+
return (options.client ?? client).post({
|
|
191
|
+
security: [
|
|
192
|
+
{
|
|
193
|
+
name: "x-api-key",
|
|
194
|
+
type: "apiKey"
|
|
195
|
+
}
|
|
196
|
+
],
|
|
197
|
+
url: "/transaction/proof",
|
|
100
198
|
...options,
|
|
101
|
-
|
|
199
|
+
headers: {
|
|
200
|
+
"Content-Type": "application/json",
|
|
201
|
+
...options?.headers
|
|
202
|
+
}
|
|
102
203
|
});
|
|
103
204
|
};
|
|
104
205
|
var txStatus = (options) => {
|
|
105
|
-
return (options
|
|
206
|
+
return (options.client ?? client).post({
|
|
207
|
+
security: [
|
|
208
|
+
{
|
|
209
|
+
name: "x-api-key",
|
|
210
|
+
type: "apiKey"
|
|
211
|
+
}
|
|
212
|
+
],
|
|
213
|
+
url: "/transaction/status",
|
|
106
214
|
...options,
|
|
107
|
-
|
|
215
|
+
headers: {
|
|
216
|
+
"Content-Type": "application/json",
|
|
217
|
+
...options?.headers
|
|
218
|
+
}
|
|
108
219
|
});
|
|
109
220
|
};
|
|
110
221
|
var mintTokens = (options) => {
|
|
111
|
-
return (options
|
|
222
|
+
return (options.client ?? client).post({
|
|
223
|
+
security: [
|
|
224
|
+
{
|
|
225
|
+
name: "x-api-key",
|
|
226
|
+
type: "apiKey"
|
|
227
|
+
}
|
|
228
|
+
],
|
|
229
|
+
url: "/token/mint",
|
|
230
|
+
...options,
|
|
231
|
+
headers: {
|
|
232
|
+
"Content-Type": "application/json",
|
|
233
|
+
...options?.headers
|
|
234
|
+
}
|
|
235
|
+
});
|
|
236
|
+
};
|
|
237
|
+
var mintNft = (options) => {
|
|
238
|
+
return (options.client ?? client).post({
|
|
239
|
+
security: [
|
|
240
|
+
{
|
|
241
|
+
name: "x-api-key",
|
|
242
|
+
type: "apiKey"
|
|
243
|
+
}
|
|
244
|
+
],
|
|
245
|
+
url: "/nft/mint",
|
|
112
246
|
...options,
|
|
113
|
-
|
|
247
|
+
headers: {
|
|
248
|
+
"Content-Type": "application/json",
|
|
249
|
+
...options?.headers
|
|
250
|
+
}
|
|
114
251
|
});
|
|
115
252
|
};
|
|
116
253
|
var transferTokens = (options) => {
|
|
117
|
-
return (options
|
|
254
|
+
return (options.client ?? client).post({
|
|
255
|
+
security: [
|
|
256
|
+
{
|
|
257
|
+
name: "x-api-key",
|
|
258
|
+
type: "apiKey"
|
|
259
|
+
}
|
|
260
|
+
],
|
|
261
|
+
url: "/token/transfer",
|
|
118
262
|
...options,
|
|
119
|
-
|
|
263
|
+
headers: {
|
|
264
|
+
"Content-Type": "application/json",
|
|
265
|
+
...options?.headers
|
|
266
|
+
}
|
|
120
267
|
});
|
|
121
268
|
};
|
|
122
269
|
var airdropTokens = (options) => {
|
|
123
|
-
return (options
|
|
270
|
+
return (options.client ?? client).post({
|
|
271
|
+
security: [
|
|
272
|
+
{
|
|
273
|
+
name: "x-api-key",
|
|
274
|
+
type: "apiKey"
|
|
275
|
+
}
|
|
276
|
+
],
|
|
277
|
+
url: "/token/airdrop",
|
|
124
278
|
...options,
|
|
125
|
-
|
|
279
|
+
headers: {
|
|
280
|
+
"Content-Type": "application/json",
|
|
281
|
+
...options?.headers
|
|
282
|
+
}
|
|
126
283
|
});
|
|
127
284
|
};
|
|
128
285
|
var redeemTokens = (options) => {
|
|
129
|
-
return (options
|
|
286
|
+
return (options.client ?? client).post({
|
|
287
|
+
security: [
|
|
288
|
+
{
|
|
289
|
+
name: "x-api-key",
|
|
290
|
+
type: "apiKey"
|
|
291
|
+
}
|
|
292
|
+
],
|
|
293
|
+
url: "/token/redeem",
|
|
130
294
|
...options,
|
|
131
|
-
|
|
295
|
+
headers: {
|
|
296
|
+
"Content-Type": "application/json",
|
|
297
|
+
...options?.headers
|
|
298
|
+
}
|
|
132
299
|
});
|
|
133
300
|
};
|
|
134
301
|
var burnTokens = (options) => {
|
|
135
|
-
return (options
|
|
302
|
+
return (options.client ?? client).post({
|
|
303
|
+
security: [
|
|
304
|
+
{
|
|
305
|
+
name: "x-api-key",
|
|
306
|
+
type: "apiKey"
|
|
307
|
+
}
|
|
308
|
+
],
|
|
309
|
+
url: "/token/burn",
|
|
136
310
|
...options,
|
|
137
|
-
|
|
311
|
+
headers: {
|
|
312
|
+
"Content-Type": "application/json",
|
|
313
|
+
...options?.headers
|
|
314
|
+
}
|
|
138
315
|
});
|
|
139
316
|
};
|
|
140
317
|
var tokenBid = (options) => {
|
|
141
|
-
return (options
|
|
318
|
+
return (options.client ?? client).post({
|
|
319
|
+
security: [
|
|
320
|
+
{
|
|
321
|
+
name: "x-api-key",
|
|
322
|
+
type: "apiKey"
|
|
323
|
+
}
|
|
324
|
+
],
|
|
325
|
+
url: "/token/bid/create",
|
|
142
326
|
...options,
|
|
143
|
-
|
|
327
|
+
headers: {
|
|
328
|
+
"Content-Type": "application/json",
|
|
329
|
+
...options?.headers
|
|
330
|
+
}
|
|
144
331
|
});
|
|
145
332
|
};
|
|
146
333
|
var tokenOffer = (options) => {
|
|
147
|
-
return (options
|
|
334
|
+
return (options.client ?? client).post({
|
|
335
|
+
security: [
|
|
336
|
+
{
|
|
337
|
+
name: "x-api-key",
|
|
338
|
+
type: "apiKey"
|
|
339
|
+
}
|
|
340
|
+
],
|
|
341
|
+
url: "/token/offer/create",
|
|
148
342
|
...options,
|
|
149
|
-
|
|
343
|
+
headers: {
|
|
344
|
+
"Content-Type": "application/json",
|
|
345
|
+
...options?.headers
|
|
346
|
+
}
|
|
150
347
|
});
|
|
151
348
|
};
|
|
152
349
|
var buyTokens = (options) => {
|
|
153
|
-
return (options
|
|
350
|
+
return (options.client ?? client).post({
|
|
351
|
+
security: [
|
|
352
|
+
{
|
|
353
|
+
name: "x-api-key",
|
|
354
|
+
type: "apiKey"
|
|
355
|
+
}
|
|
356
|
+
],
|
|
357
|
+
url: "/token/offer/buy",
|
|
154
358
|
...options,
|
|
155
|
-
|
|
359
|
+
headers: {
|
|
360
|
+
"Content-Type": "application/json",
|
|
361
|
+
...options?.headers
|
|
362
|
+
}
|
|
156
363
|
});
|
|
157
364
|
};
|
|
158
365
|
var sellTokens = (options) => {
|
|
159
|
-
return (options
|
|
366
|
+
return (options.client ?? client).post({
|
|
367
|
+
security: [
|
|
368
|
+
{
|
|
369
|
+
name: "x-api-key",
|
|
370
|
+
type: "apiKey"
|
|
371
|
+
}
|
|
372
|
+
],
|
|
373
|
+
url: "/token/bid/sell",
|
|
160
374
|
...options,
|
|
161
|
-
|
|
375
|
+
headers: {
|
|
376
|
+
"Content-Type": "application/json",
|
|
377
|
+
...options?.headers
|
|
378
|
+
}
|
|
162
379
|
});
|
|
163
380
|
};
|
|
164
381
|
var withdrawTokenBid = (options) => {
|
|
165
|
-
return (options
|
|
382
|
+
return (options.client ?? client).post({
|
|
383
|
+
security: [
|
|
384
|
+
{
|
|
385
|
+
name: "x-api-key",
|
|
386
|
+
type: "apiKey"
|
|
387
|
+
}
|
|
388
|
+
],
|
|
389
|
+
url: "/token/bid/withdraw",
|
|
166
390
|
...options,
|
|
167
|
-
|
|
391
|
+
headers: {
|
|
392
|
+
"Content-Type": "application/json",
|
|
393
|
+
...options?.headers
|
|
394
|
+
}
|
|
168
395
|
});
|
|
169
396
|
};
|
|
170
397
|
var withdrawTokenOffer = (options) => {
|
|
171
|
-
return (options
|
|
398
|
+
return (options.client ?? client).post({
|
|
399
|
+
security: [
|
|
400
|
+
{
|
|
401
|
+
name: "x-api-key",
|
|
402
|
+
type: "apiKey"
|
|
403
|
+
}
|
|
404
|
+
],
|
|
405
|
+
url: "/token/offer/withdraw",
|
|
172
406
|
...options,
|
|
173
|
-
|
|
407
|
+
headers: {
|
|
408
|
+
"Content-Type": "application/json",
|
|
409
|
+
...options?.headers
|
|
410
|
+
}
|
|
174
411
|
});
|
|
175
412
|
};
|
|
176
413
|
var updateTokenBidWhitelist = (options) => {
|
|
177
|
-
return (options
|
|
414
|
+
return (options.client ?? client).post({
|
|
415
|
+
security: [
|
|
416
|
+
{
|
|
417
|
+
name: "x-api-key",
|
|
418
|
+
type: "apiKey"
|
|
419
|
+
}
|
|
420
|
+
],
|
|
421
|
+
url: "/token/bid/whitelist",
|
|
178
422
|
...options,
|
|
179
|
-
|
|
423
|
+
headers: {
|
|
424
|
+
"Content-Type": "application/json",
|
|
425
|
+
...options?.headers
|
|
426
|
+
}
|
|
180
427
|
});
|
|
181
428
|
};
|
|
182
429
|
var updateTokenOfferWhitelist = (options) => {
|
|
183
|
-
return (options
|
|
430
|
+
return (options.client ?? client).post({
|
|
431
|
+
security: [
|
|
432
|
+
{
|
|
433
|
+
name: "x-api-key",
|
|
434
|
+
type: "apiKey"
|
|
435
|
+
}
|
|
436
|
+
],
|
|
437
|
+
url: "/token/offer/whitelist",
|
|
184
438
|
...options,
|
|
185
|
-
|
|
439
|
+
headers: {
|
|
440
|
+
"Content-Type": "application/json",
|
|
441
|
+
...options?.headers
|
|
442
|
+
}
|
|
186
443
|
});
|
|
187
444
|
};
|
|
188
445
|
var updateTokenAdminWhitelist = (options) => {
|
|
189
|
-
return (options
|
|
446
|
+
return (options.client ?? client).post({
|
|
447
|
+
security: [
|
|
448
|
+
{
|
|
449
|
+
name: "x-api-key",
|
|
450
|
+
type: "apiKey"
|
|
451
|
+
}
|
|
452
|
+
],
|
|
453
|
+
url: "/token/admin/whitelist",
|
|
190
454
|
...options,
|
|
191
|
-
|
|
455
|
+
headers: {
|
|
456
|
+
"Content-Type": "application/json",
|
|
457
|
+
...options?.headers
|
|
458
|
+
}
|
|
192
459
|
});
|
|
193
460
|
};
|
|
194
461
|
|
|
@@ -259,7 +526,6 @@ async function sleep(ms) {
|
|
|
259
526
|
airdropTokens,
|
|
260
527
|
burnTokens,
|
|
261
528
|
buyTokens,
|
|
262
|
-
client,
|
|
263
529
|
config,
|
|
264
530
|
faucet,
|
|
265
531
|
getContractInfo,
|
|
@@ -267,7 +533,9 @@ async function sleep(ms) {
|
|
|
267
533
|
getProof,
|
|
268
534
|
getTokenBalance,
|
|
269
535
|
getTokenInfo,
|
|
536
|
+
launchNftCollection,
|
|
270
537
|
launchToken,
|
|
538
|
+
mintNft,
|
|
271
539
|
mintTokens,
|
|
272
540
|
prove,
|
|
273
541
|
redeemTokens,
|