@0xsequence/api 0.40.2 → 0.40.5
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/0xsequence-api.cjs.dev.js +63 -10
- package/dist/0xsequence-api.cjs.prod.js +63 -10
- package/dist/0xsequence-api.esm.js +63 -10
- package/dist/declarations/src/api.gen.d.ts +63 -8
- package/package.json +1 -1
- package/src/api.gen.ts +136 -19
|
@@ -27,7 +27,7 @@ function _extends() {
|
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
/* eslint-disable */
|
|
30
|
-
// sequence-api v0.4.0
|
|
30
|
+
// sequence-api v0.4.0 d026b8c7eb9ac3c9c5ed52994a34e2463c1aaa14
|
|
31
31
|
// --
|
|
32
32
|
// This file has been generated by https://github.com/webrpc/webrpc using gen/typescript
|
|
33
33
|
// Do not edit by hand. Update your webrpc schema and re-generate.
|
|
@@ -36,7 +36,7 @@ const WebRPCVersion = "v1"; // Schema version of your RIDL schema
|
|
|
36
36
|
|
|
37
37
|
const WebRPCSchemaVersion = "v0.4.0"; // Schema hash generated from your RIDL schema
|
|
38
38
|
|
|
39
|
-
const WebRPCSchemaHash = "
|
|
39
|
+
const WebRPCSchemaHash = "d026b8c7eb9ac3c9c5ed52994a34e2463c1aaa14"; //
|
|
40
40
|
// Types
|
|
41
41
|
//
|
|
42
42
|
|
|
@@ -283,6 +283,46 @@ class API {
|
|
|
283
283
|
});
|
|
284
284
|
};
|
|
285
285
|
|
|
286
|
+
this.isValidSignature = (args, headers) => {
|
|
287
|
+
return this.fetch(this.url('IsValidSignature'), createHTTPRequest(args, headers)).then(res => {
|
|
288
|
+
return buildResponse(res).then(_data => {
|
|
289
|
+
return {
|
|
290
|
+
isValid: _data.isValid
|
|
291
|
+
};
|
|
292
|
+
});
|
|
293
|
+
});
|
|
294
|
+
};
|
|
295
|
+
|
|
296
|
+
this.isValidMessageSignature = (args, headers) => {
|
|
297
|
+
return this.fetch(this.url('IsValidMessageSignature'), createHTTPRequest(args, headers)).then(res => {
|
|
298
|
+
return buildResponse(res).then(_data => {
|
|
299
|
+
return {
|
|
300
|
+
isValid: _data.isValid
|
|
301
|
+
};
|
|
302
|
+
});
|
|
303
|
+
});
|
|
304
|
+
};
|
|
305
|
+
|
|
306
|
+
this.isValidTypedDataSignature = (args, headers) => {
|
|
307
|
+
return this.fetch(this.url('IsValidTypedDataSignature'), createHTTPRequest(args, headers)).then(res => {
|
|
308
|
+
return buildResponse(res).then(_data => {
|
|
309
|
+
return {
|
|
310
|
+
isValid: _data.isValid
|
|
311
|
+
};
|
|
312
|
+
});
|
|
313
|
+
});
|
|
314
|
+
};
|
|
315
|
+
|
|
316
|
+
this.isValidETHAuthProof = (args, headers) => {
|
|
317
|
+
return this.fetch(this.url('IsValidETHAuthProof'), createHTTPRequest(args, headers)).then(res => {
|
|
318
|
+
return buildResponse(res).then(_data => {
|
|
319
|
+
return {
|
|
320
|
+
isValid: _data.isValid
|
|
321
|
+
};
|
|
322
|
+
});
|
|
323
|
+
});
|
|
324
|
+
};
|
|
325
|
+
|
|
286
326
|
this.getCoinPrices = (args, headers) => {
|
|
287
327
|
return this.fetch(this.url('GetCoinPrices'), createHTTPRequest(args, headers)).then(res => {
|
|
288
328
|
return buildResponse(res).then(_data => {
|
|
@@ -313,14 +353,6 @@ class API {
|
|
|
313
353
|
});
|
|
314
354
|
};
|
|
315
355
|
|
|
316
|
-
this.invalidateOriginToken = (args, headers) => {
|
|
317
|
-
return this.fetch(this.url('InvalidateOriginToken'), createHTTPRequest(args, headers)).then(res => {
|
|
318
|
-
return buildResponse(res).then(_data => {
|
|
319
|
-
return {};
|
|
320
|
-
});
|
|
321
|
-
});
|
|
322
|
-
};
|
|
323
|
-
|
|
324
356
|
this.listPayCardsOnFile = headers => {
|
|
325
357
|
return this.fetch(this.url('ListPayCardsOnFile'), createHTTPRequest({}, headers)).then(res => {
|
|
326
358
|
return buildResponse(res).then(_data => {
|
|
@@ -395,6 +427,16 @@ class API {
|
|
|
395
427
|
});
|
|
396
428
|
};
|
|
397
429
|
|
|
430
|
+
this.smartRampGetOrder = (args, headers) => {
|
|
431
|
+
return this.fetch(this.url('SmartRampGetOrder'), createHTTPRequest(args, headers)).then(res => {
|
|
432
|
+
return buildResponse(res).then(_data => {
|
|
433
|
+
return {
|
|
434
|
+
order: _data.order
|
|
435
|
+
};
|
|
436
|
+
});
|
|
437
|
+
});
|
|
438
|
+
};
|
|
439
|
+
|
|
398
440
|
this.smartRampCheckCardAuthorization = (args, headers) => {
|
|
399
441
|
return this.fetch(this.url('SmartRampCheckCardAuthorization'), createHTTPRequest(args, headers)).then(res => {
|
|
400
442
|
return buildResponse(res).then(_data => {
|
|
@@ -415,6 +457,17 @@ class API {
|
|
|
415
457
|
});
|
|
416
458
|
};
|
|
417
459
|
|
|
460
|
+
this.smartRampOrdersList = (args, headers) => {
|
|
461
|
+
return this.fetch(this.url('SmartRampOrdersList'), createHTTPRequest(args, headers)).then(res => {
|
|
462
|
+
return buildResponse(res).then(_data => {
|
|
463
|
+
return {
|
|
464
|
+
page: _data.page,
|
|
465
|
+
orders: _data.orders
|
|
466
|
+
};
|
|
467
|
+
});
|
|
468
|
+
});
|
|
469
|
+
};
|
|
470
|
+
|
|
418
471
|
this.getInviteInfo = headers => {
|
|
419
472
|
return this.fetch(this.url('GetInviteInfo'), createHTTPRequest({}, headers)).then(res => {
|
|
420
473
|
return buildResponse(res).then(_data => {
|
|
@@ -27,7 +27,7 @@ function _extends() {
|
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
/* eslint-disable */
|
|
30
|
-
// sequence-api v0.4.0
|
|
30
|
+
// sequence-api v0.4.0 d026b8c7eb9ac3c9c5ed52994a34e2463c1aaa14
|
|
31
31
|
// --
|
|
32
32
|
// This file has been generated by https://github.com/webrpc/webrpc using gen/typescript
|
|
33
33
|
// Do not edit by hand. Update your webrpc schema and re-generate.
|
|
@@ -36,7 +36,7 @@ const WebRPCVersion = "v1"; // Schema version of your RIDL schema
|
|
|
36
36
|
|
|
37
37
|
const WebRPCSchemaVersion = "v0.4.0"; // Schema hash generated from your RIDL schema
|
|
38
38
|
|
|
39
|
-
const WebRPCSchemaHash = "
|
|
39
|
+
const WebRPCSchemaHash = "d026b8c7eb9ac3c9c5ed52994a34e2463c1aaa14"; //
|
|
40
40
|
// Types
|
|
41
41
|
//
|
|
42
42
|
|
|
@@ -283,6 +283,46 @@ class API {
|
|
|
283
283
|
});
|
|
284
284
|
};
|
|
285
285
|
|
|
286
|
+
this.isValidSignature = (args, headers) => {
|
|
287
|
+
return this.fetch(this.url('IsValidSignature'), createHTTPRequest(args, headers)).then(res => {
|
|
288
|
+
return buildResponse(res).then(_data => {
|
|
289
|
+
return {
|
|
290
|
+
isValid: _data.isValid
|
|
291
|
+
};
|
|
292
|
+
});
|
|
293
|
+
});
|
|
294
|
+
};
|
|
295
|
+
|
|
296
|
+
this.isValidMessageSignature = (args, headers) => {
|
|
297
|
+
return this.fetch(this.url('IsValidMessageSignature'), createHTTPRequest(args, headers)).then(res => {
|
|
298
|
+
return buildResponse(res).then(_data => {
|
|
299
|
+
return {
|
|
300
|
+
isValid: _data.isValid
|
|
301
|
+
};
|
|
302
|
+
});
|
|
303
|
+
});
|
|
304
|
+
};
|
|
305
|
+
|
|
306
|
+
this.isValidTypedDataSignature = (args, headers) => {
|
|
307
|
+
return this.fetch(this.url('IsValidTypedDataSignature'), createHTTPRequest(args, headers)).then(res => {
|
|
308
|
+
return buildResponse(res).then(_data => {
|
|
309
|
+
return {
|
|
310
|
+
isValid: _data.isValid
|
|
311
|
+
};
|
|
312
|
+
});
|
|
313
|
+
});
|
|
314
|
+
};
|
|
315
|
+
|
|
316
|
+
this.isValidETHAuthProof = (args, headers) => {
|
|
317
|
+
return this.fetch(this.url('IsValidETHAuthProof'), createHTTPRequest(args, headers)).then(res => {
|
|
318
|
+
return buildResponse(res).then(_data => {
|
|
319
|
+
return {
|
|
320
|
+
isValid: _data.isValid
|
|
321
|
+
};
|
|
322
|
+
});
|
|
323
|
+
});
|
|
324
|
+
};
|
|
325
|
+
|
|
286
326
|
this.getCoinPrices = (args, headers) => {
|
|
287
327
|
return this.fetch(this.url('GetCoinPrices'), createHTTPRequest(args, headers)).then(res => {
|
|
288
328
|
return buildResponse(res).then(_data => {
|
|
@@ -313,14 +353,6 @@ class API {
|
|
|
313
353
|
});
|
|
314
354
|
};
|
|
315
355
|
|
|
316
|
-
this.invalidateOriginToken = (args, headers) => {
|
|
317
|
-
return this.fetch(this.url('InvalidateOriginToken'), createHTTPRequest(args, headers)).then(res => {
|
|
318
|
-
return buildResponse(res).then(_data => {
|
|
319
|
-
return {};
|
|
320
|
-
});
|
|
321
|
-
});
|
|
322
|
-
};
|
|
323
|
-
|
|
324
356
|
this.listPayCardsOnFile = headers => {
|
|
325
357
|
return this.fetch(this.url('ListPayCardsOnFile'), createHTTPRequest({}, headers)).then(res => {
|
|
326
358
|
return buildResponse(res).then(_data => {
|
|
@@ -395,6 +427,16 @@ class API {
|
|
|
395
427
|
});
|
|
396
428
|
};
|
|
397
429
|
|
|
430
|
+
this.smartRampGetOrder = (args, headers) => {
|
|
431
|
+
return this.fetch(this.url('SmartRampGetOrder'), createHTTPRequest(args, headers)).then(res => {
|
|
432
|
+
return buildResponse(res).then(_data => {
|
|
433
|
+
return {
|
|
434
|
+
order: _data.order
|
|
435
|
+
};
|
|
436
|
+
});
|
|
437
|
+
});
|
|
438
|
+
};
|
|
439
|
+
|
|
398
440
|
this.smartRampCheckCardAuthorization = (args, headers) => {
|
|
399
441
|
return this.fetch(this.url('SmartRampCheckCardAuthorization'), createHTTPRequest(args, headers)).then(res => {
|
|
400
442
|
return buildResponse(res).then(_data => {
|
|
@@ -415,6 +457,17 @@ class API {
|
|
|
415
457
|
});
|
|
416
458
|
};
|
|
417
459
|
|
|
460
|
+
this.smartRampOrdersList = (args, headers) => {
|
|
461
|
+
return this.fetch(this.url('SmartRampOrdersList'), createHTTPRequest(args, headers)).then(res => {
|
|
462
|
+
return buildResponse(res).then(_data => {
|
|
463
|
+
return {
|
|
464
|
+
page: _data.page,
|
|
465
|
+
orders: _data.orders
|
|
466
|
+
};
|
|
467
|
+
});
|
|
468
|
+
});
|
|
469
|
+
};
|
|
470
|
+
|
|
418
471
|
this.getInviteInfo = headers => {
|
|
419
472
|
return this.fetch(this.url('GetInviteInfo'), createHTTPRequest({}, headers)).then(res => {
|
|
420
473
|
return buildResponse(res).then(_data => {
|
|
@@ -19,7 +19,7 @@ function _extends() {
|
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
/* eslint-disable */
|
|
22
|
-
// sequence-api v0.4.0
|
|
22
|
+
// sequence-api v0.4.0 d026b8c7eb9ac3c9c5ed52994a34e2463c1aaa14
|
|
23
23
|
// --
|
|
24
24
|
// This file has been generated by https://github.com/webrpc/webrpc using gen/typescript
|
|
25
25
|
// Do not edit by hand. Update your webrpc schema and re-generate.
|
|
@@ -28,7 +28,7 @@ const WebRPCVersion = "v1"; // Schema version of your RIDL schema
|
|
|
28
28
|
|
|
29
29
|
const WebRPCSchemaVersion = "v0.4.0"; // Schema hash generated from your RIDL schema
|
|
30
30
|
|
|
31
|
-
const WebRPCSchemaHash = "
|
|
31
|
+
const WebRPCSchemaHash = "d026b8c7eb9ac3c9c5ed52994a34e2463c1aaa14"; //
|
|
32
32
|
// Types
|
|
33
33
|
//
|
|
34
34
|
|
|
@@ -275,6 +275,46 @@ class API {
|
|
|
275
275
|
});
|
|
276
276
|
};
|
|
277
277
|
|
|
278
|
+
this.isValidSignature = (args, headers) => {
|
|
279
|
+
return this.fetch(this.url('IsValidSignature'), createHTTPRequest(args, headers)).then(res => {
|
|
280
|
+
return buildResponse(res).then(_data => {
|
|
281
|
+
return {
|
|
282
|
+
isValid: _data.isValid
|
|
283
|
+
};
|
|
284
|
+
});
|
|
285
|
+
});
|
|
286
|
+
};
|
|
287
|
+
|
|
288
|
+
this.isValidMessageSignature = (args, headers) => {
|
|
289
|
+
return this.fetch(this.url('IsValidMessageSignature'), createHTTPRequest(args, headers)).then(res => {
|
|
290
|
+
return buildResponse(res).then(_data => {
|
|
291
|
+
return {
|
|
292
|
+
isValid: _data.isValid
|
|
293
|
+
};
|
|
294
|
+
});
|
|
295
|
+
});
|
|
296
|
+
};
|
|
297
|
+
|
|
298
|
+
this.isValidTypedDataSignature = (args, headers) => {
|
|
299
|
+
return this.fetch(this.url('IsValidTypedDataSignature'), createHTTPRequest(args, headers)).then(res => {
|
|
300
|
+
return buildResponse(res).then(_data => {
|
|
301
|
+
return {
|
|
302
|
+
isValid: _data.isValid
|
|
303
|
+
};
|
|
304
|
+
});
|
|
305
|
+
});
|
|
306
|
+
};
|
|
307
|
+
|
|
308
|
+
this.isValidETHAuthProof = (args, headers) => {
|
|
309
|
+
return this.fetch(this.url('IsValidETHAuthProof'), createHTTPRequest(args, headers)).then(res => {
|
|
310
|
+
return buildResponse(res).then(_data => {
|
|
311
|
+
return {
|
|
312
|
+
isValid: _data.isValid
|
|
313
|
+
};
|
|
314
|
+
});
|
|
315
|
+
});
|
|
316
|
+
};
|
|
317
|
+
|
|
278
318
|
this.getCoinPrices = (args, headers) => {
|
|
279
319
|
return this.fetch(this.url('GetCoinPrices'), createHTTPRequest(args, headers)).then(res => {
|
|
280
320
|
return buildResponse(res).then(_data => {
|
|
@@ -305,14 +345,6 @@ class API {
|
|
|
305
345
|
});
|
|
306
346
|
};
|
|
307
347
|
|
|
308
|
-
this.invalidateOriginToken = (args, headers) => {
|
|
309
|
-
return this.fetch(this.url('InvalidateOriginToken'), createHTTPRequest(args, headers)).then(res => {
|
|
310
|
-
return buildResponse(res).then(_data => {
|
|
311
|
-
return {};
|
|
312
|
-
});
|
|
313
|
-
});
|
|
314
|
-
};
|
|
315
|
-
|
|
316
348
|
this.listPayCardsOnFile = headers => {
|
|
317
349
|
return this.fetch(this.url('ListPayCardsOnFile'), createHTTPRequest({}, headers)).then(res => {
|
|
318
350
|
return buildResponse(res).then(_data => {
|
|
@@ -387,6 +419,16 @@ class API {
|
|
|
387
419
|
});
|
|
388
420
|
};
|
|
389
421
|
|
|
422
|
+
this.smartRampGetOrder = (args, headers) => {
|
|
423
|
+
return this.fetch(this.url('SmartRampGetOrder'), createHTTPRequest(args, headers)).then(res => {
|
|
424
|
+
return buildResponse(res).then(_data => {
|
|
425
|
+
return {
|
|
426
|
+
order: _data.order
|
|
427
|
+
};
|
|
428
|
+
});
|
|
429
|
+
});
|
|
430
|
+
};
|
|
431
|
+
|
|
390
432
|
this.smartRampCheckCardAuthorization = (args, headers) => {
|
|
391
433
|
return this.fetch(this.url('SmartRampCheckCardAuthorization'), createHTTPRequest(args, headers)).then(res => {
|
|
392
434
|
return buildResponse(res).then(_data => {
|
|
@@ -407,6 +449,17 @@ class API {
|
|
|
407
449
|
});
|
|
408
450
|
};
|
|
409
451
|
|
|
452
|
+
this.smartRampOrdersList = (args, headers) => {
|
|
453
|
+
return this.fetch(this.url('SmartRampOrdersList'), createHTTPRequest(args, headers)).then(res => {
|
|
454
|
+
return buildResponse(res).then(_data => {
|
|
455
|
+
return {
|
|
456
|
+
page: _data.page,
|
|
457
|
+
orders: _data.orders
|
|
458
|
+
};
|
|
459
|
+
});
|
|
460
|
+
});
|
|
461
|
+
};
|
|
462
|
+
|
|
410
463
|
this.getInviteInfo = headers => {
|
|
411
464
|
return this.fetch(this.url('GetInviteInfo'), createHTTPRequest({}, headers)).then(res => {
|
|
412
465
|
return buildResponse(res).then(_data => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const WebRPCVersion = "v1";
|
|
2
2
|
export declare const WebRPCSchemaVersion = "v0.4.0";
|
|
3
|
-
export declare const WebRPCSchemaHash = "
|
|
3
|
+
export declare const WebRPCSchemaHash = "d026b8c7eb9ac3c9c5ed52994a34e2463c1aaa14";
|
|
4
4
|
export declare enum SmartRampOrderStatus {
|
|
5
5
|
UNKNOWN = "UNKNOWN",
|
|
6
6
|
RUNNING_CHECKS = "RUNNING_CHECKS",
|
|
@@ -251,10 +251,13 @@ export interface API {
|
|
|
251
251
|
userStorageFetchAll(args: UserStorageFetchAllArgs, headers?: object): Promise<UserStorageFetchAllReturn>;
|
|
252
252
|
getMoonpayLink(args: GetMoonpayLinkArgs, headers?: object): Promise<GetMoonpayLinkReturn>;
|
|
253
253
|
isUsingGoogleMail(args: IsUsingGoogleMailArgs, headers?: object): Promise<IsUsingGoogleMailReturn>;
|
|
254
|
+
isValidSignature(args: IsValidSignatureArgs, headers?: object): Promise<IsValidSignatureReturn>;
|
|
255
|
+
isValidMessageSignature(args: IsValidMessageSignatureArgs, headers?: object): Promise<IsValidMessageSignatureReturn>;
|
|
256
|
+
isValidTypedDataSignature(args: IsValidTypedDataSignatureArgs, headers?: object): Promise<IsValidTypedDataSignatureReturn>;
|
|
257
|
+
isValidETHAuthProof(args: IsValidETHAuthProofArgs, headers?: object): Promise<IsValidETHAuthProofReturn>;
|
|
254
258
|
getCoinPrices(args: GetCoinPricesArgs, headers?: object): Promise<GetCoinPricesReturn>;
|
|
255
259
|
getCollectiblePrices(args: GetCollectiblePricesArgs, headers?: object): Promise<GetCollectiblePricesReturn>;
|
|
256
260
|
getExchangeRate(args: GetExchangeRateArgs, headers?: object): Promise<GetExchangeRateReturn>;
|
|
257
|
-
invalidateOriginToken(args: InvalidateOriginTokenArgs, headers?: object): Promise<InvalidateOriginTokenReturn>;
|
|
258
261
|
listPayCardsOnFile(headers?: object): Promise<ListPayCardsOnFileReturn>;
|
|
259
262
|
savePayCard(args: SavePayCardArgs, headers?: object): Promise<SavePayCardReturn>;
|
|
260
263
|
updatePayCardCVC(args: UpdatePayCardCVCArgs, headers?: object): Promise<UpdatePayCardCVCReturn>;
|
|
@@ -262,8 +265,10 @@ export interface API {
|
|
|
262
265
|
smartRampQuote(args: SmartRampQuoteArgs, headers?: object): Promise<SmartRampQuoteReturn>;
|
|
263
266
|
smartRampPurchase(args: SmartRampPurchaseArgs, headers?: object): Promise<SmartRampPurchaseReturn>;
|
|
264
267
|
smartRampWaitOrderConfirmation(args: SmartRampWaitOrderConfirmationArgs, headers?: object): Promise<SmartRampWaitOrderConfirmationReturn>;
|
|
268
|
+
smartRampGetOrder(args: SmartRampGetOrderArgs, headers?: object): Promise<SmartRampGetOrderReturn>;
|
|
265
269
|
smartRampCheckCardAuthorization(args: SmartRampCheckCardAuthorizationArgs, headers?: object): Promise<SmartRampCheckCardAuthorizationReturn>;
|
|
266
270
|
smartRampSubmitCardAuthorization(args: SmartRampSubmitCardAuthorizationArgs, headers?: object): Promise<SmartRampSubmitCardAuthorizationReturn>;
|
|
271
|
+
smartRampOrdersList(args: SmartRampOrdersListArgs, headers?: object): Promise<SmartRampOrdersListReturn>;
|
|
267
272
|
getInviteInfo(headers?: object): Promise<GetInviteInfoReturn>;
|
|
268
273
|
isValidAccessCode(args: IsValidAccessCodeArgs, headers?: object): Promise<IsValidAccessCodeReturn>;
|
|
269
274
|
internalClaimAccessCode(args: InternalClaimAccessCodeArgs, headers?: object): Promise<InternalClaimAccessCodeReturn>;
|
|
@@ -410,6 +415,41 @@ export interface IsUsingGoogleMailArgs {
|
|
|
410
415
|
export interface IsUsingGoogleMailReturn {
|
|
411
416
|
yes: boolean;
|
|
412
417
|
}
|
|
418
|
+
export interface IsValidSignatureArgs {
|
|
419
|
+
chainId: string;
|
|
420
|
+
walletAddress: string;
|
|
421
|
+
digest: string;
|
|
422
|
+
signature: string;
|
|
423
|
+
}
|
|
424
|
+
export interface IsValidSignatureReturn {
|
|
425
|
+
isValid: boolean;
|
|
426
|
+
}
|
|
427
|
+
export interface IsValidMessageSignatureArgs {
|
|
428
|
+
chainId: string;
|
|
429
|
+
walletAddress: string;
|
|
430
|
+
message: string;
|
|
431
|
+
signature: string;
|
|
432
|
+
}
|
|
433
|
+
export interface IsValidMessageSignatureReturn {
|
|
434
|
+
isValid: boolean;
|
|
435
|
+
}
|
|
436
|
+
export interface IsValidTypedDataSignatureArgs {
|
|
437
|
+
chainId: string;
|
|
438
|
+
walletAddress: string;
|
|
439
|
+
typedData: any;
|
|
440
|
+
signature: string;
|
|
441
|
+
}
|
|
442
|
+
export interface IsValidTypedDataSignatureReturn {
|
|
443
|
+
isValid: boolean;
|
|
444
|
+
}
|
|
445
|
+
export interface IsValidETHAuthProofArgs {
|
|
446
|
+
chainId: string;
|
|
447
|
+
walletAddress: string;
|
|
448
|
+
ethAuthProof: string;
|
|
449
|
+
}
|
|
450
|
+
export interface IsValidETHAuthProofReturn {
|
|
451
|
+
isValid: boolean;
|
|
452
|
+
}
|
|
413
453
|
export interface GetCoinPricesArgs {
|
|
414
454
|
tokens: Array<Token>;
|
|
415
455
|
}
|
|
@@ -428,11 +468,6 @@ export interface GetExchangeRateArgs {
|
|
|
428
468
|
export interface GetExchangeRateReturn {
|
|
429
469
|
exchangeRate: ExchangeRate;
|
|
430
470
|
}
|
|
431
|
-
export interface InvalidateOriginTokenArgs {
|
|
432
|
-
token: Token;
|
|
433
|
-
}
|
|
434
|
-
export interface InvalidateOriginTokenReturn {
|
|
435
|
-
}
|
|
436
471
|
export interface ListPayCardsOnFileArgs {
|
|
437
472
|
}
|
|
438
473
|
export interface ListPayCardsOnFileReturn {
|
|
@@ -481,6 +516,13 @@ export interface SmartRampWaitOrderConfirmationReturn {
|
|
|
481
516
|
done: boolean;
|
|
482
517
|
receipt: SmartRampPurchaseReceipt;
|
|
483
518
|
}
|
|
519
|
+
export interface SmartRampGetOrderArgs {
|
|
520
|
+
orderId?: string;
|
|
521
|
+
id?: number;
|
|
522
|
+
}
|
|
523
|
+
export interface SmartRampGetOrderReturn {
|
|
524
|
+
order: SmartRampOrder;
|
|
525
|
+
}
|
|
484
526
|
export interface SmartRampCheckCardAuthorizationArgs {
|
|
485
527
|
orderId: string;
|
|
486
528
|
}
|
|
@@ -495,6 +537,14 @@ export interface SmartRampSubmitCardAuthorizationArgs {
|
|
|
495
537
|
export interface SmartRampSubmitCardAuthorizationReturn {
|
|
496
538
|
status: boolean;
|
|
497
539
|
}
|
|
540
|
+
export interface SmartRampOrdersListArgs {
|
|
541
|
+
page?: Page;
|
|
542
|
+
userAddressFilter?: string;
|
|
543
|
+
}
|
|
544
|
+
export interface SmartRampOrdersListReturn {
|
|
545
|
+
page: Page;
|
|
546
|
+
orders: Array<SmartRampOrder>;
|
|
547
|
+
}
|
|
498
548
|
export interface GetInviteInfoArgs {
|
|
499
549
|
}
|
|
500
550
|
export interface GetInviteInfoReturn {
|
|
@@ -547,10 +597,13 @@ export declare class API implements API {
|
|
|
547
597
|
userStorageFetchAll: (args: UserStorageFetchAllArgs, headers?: object | undefined) => Promise<UserStorageFetchAllReturn>;
|
|
548
598
|
getMoonpayLink: (args: GetMoonpayLinkArgs, headers?: object | undefined) => Promise<GetMoonpayLinkReturn>;
|
|
549
599
|
isUsingGoogleMail: (args: IsUsingGoogleMailArgs, headers?: object | undefined) => Promise<IsUsingGoogleMailReturn>;
|
|
600
|
+
isValidSignature: (args: IsValidSignatureArgs, headers?: object | undefined) => Promise<IsValidSignatureReturn>;
|
|
601
|
+
isValidMessageSignature: (args: IsValidMessageSignatureArgs, headers?: object | undefined) => Promise<IsValidMessageSignatureReturn>;
|
|
602
|
+
isValidTypedDataSignature: (args: IsValidTypedDataSignatureArgs, headers?: object | undefined) => Promise<IsValidTypedDataSignatureReturn>;
|
|
603
|
+
isValidETHAuthProof: (args: IsValidETHAuthProofArgs, headers?: object | undefined) => Promise<IsValidETHAuthProofReturn>;
|
|
550
604
|
getCoinPrices: (args: GetCoinPricesArgs, headers?: object | undefined) => Promise<GetCoinPricesReturn>;
|
|
551
605
|
getCollectiblePrices: (args: GetCollectiblePricesArgs, headers?: object | undefined) => Promise<GetCollectiblePricesReturn>;
|
|
552
606
|
getExchangeRate: (args: GetExchangeRateArgs, headers?: object | undefined) => Promise<GetExchangeRateReturn>;
|
|
553
|
-
invalidateOriginToken: (args: InvalidateOriginTokenArgs, headers?: object | undefined) => Promise<InvalidateOriginTokenReturn>;
|
|
554
607
|
listPayCardsOnFile: (headers?: object | undefined) => Promise<ListPayCardsOnFileReturn>;
|
|
555
608
|
savePayCard: (args: SavePayCardArgs, headers?: object | undefined) => Promise<SavePayCardReturn>;
|
|
556
609
|
updatePayCardCVC: (args: UpdatePayCardCVCArgs, headers?: object | undefined) => Promise<UpdatePayCardCVCReturn>;
|
|
@@ -558,8 +611,10 @@ export declare class API implements API {
|
|
|
558
611
|
smartRampQuote: (args: SmartRampQuoteArgs, headers?: object | undefined) => Promise<SmartRampQuoteReturn>;
|
|
559
612
|
smartRampPurchase: (args: SmartRampPurchaseArgs, headers?: object | undefined) => Promise<SmartRampPurchaseReturn>;
|
|
560
613
|
smartRampWaitOrderConfirmation: (args: SmartRampWaitOrderConfirmationArgs, headers?: object | undefined) => Promise<SmartRampWaitOrderConfirmationReturn>;
|
|
614
|
+
smartRampGetOrder: (args: SmartRampGetOrderArgs, headers?: object | undefined) => Promise<SmartRampGetOrderReturn>;
|
|
561
615
|
smartRampCheckCardAuthorization: (args: SmartRampCheckCardAuthorizationArgs, headers?: object | undefined) => Promise<SmartRampCheckCardAuthorizationReturn>;
|
|
562
616
|
smartRampSubmitCardAuthorization: (args: SmartRampSubmitCardAuthorizationArgs, headers?: object | undefined) => Promise<SmartRampSubmitCardAuthorizationReturn>;
|
|
617
|
+
smartRampOrdersList: (args: SmartRampOrdersListArgs, headers?: object | undefined) => Promise<SmartRampOrdersListReturn>;
|
|
563
618
|
getInviteInfo: (headers?: object | undefined) => Promise<GetInviteInfoReturn>;
|
|
564
619
|
isValidAccessCode: (args: IsValidAccessCodeArgs, headers?: object | undefined) => Promise<IsValidAccessCodeReturn>;
|
|
565
620
|
internalClaimAccessCode: (args: InternalClaimAccessCodeArgs, headers?: object | undefined) => Promise<InternalClaimAccessCodeReturn>;
|
package/package.json
CHANGED
package/src/api.gen.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
|
-
// sequence-api v0.4.0
|
|
2
|
+
// sequence-api v0.4.0 d026b8c7eb9ac3c9c5ed52994a34e2463c1aaa14
|
|
3
3
|
// --
|
|
4
4
|
// This file has been generated by https://github.com/webrpc/webrpc using gen/typescript
|
|
5
5
|
// Do not edit by hand. Update your webrpc schema and re-generate.
|
|
@@ -11,7 +11,7 @@ export const WebRPCVersion = "v1"
|
|
|
11
11
|
export const WebRPCSchemaVersion = "v0.4.0"
|
|
12
12
|
|
|
13
13
|
// Schema hash generated from your RIDL schema
|
|
14
|
-
export const WebRPCSchemaHash = "
|
|
14
|
+
export const WebRPCSchemaHash = "d026b8c7eb9ac3c9c5ed52994a34e2463c1aaa14"
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
//
|
|
@@ -298,10 +298,13 @@ export interface API {
|
|
|
298
298
|
userStorageFetchAll(args: UserStorageFetchAllArgs, headers?: object): Promise<UserStorageFetchAllReturn>
|
|
299
299
|
getMoonpayLink(args: GetMoonpayLinkArgs, headers?: object): Promise<GetMoonpayLinkReturn>
|
|
300
300
|
isUsingGoogleMail(args: IsUsingGoogleMailArgs, headers?: object): Promise<IsUsingGoogleMailReturn>
|
|
301
|
+
isValidSignature(args: IsValidSignatureArgs, headers?: object): Promise<IsValidSignatureReturn>
|
|
302
|
+
isValidMessageSignature(args: IsValidMessageSignatureArgs, headers?: object): Promise<IsValidMessageSignatureReturn>
|
|
303
|
+
isValidTypedDataSignature(args: IsValidTypedDataSignatureArgs, headers?: object): Promise<IsValidTypedDataSignatureReturn>
|
|
304
|
+
isValidETHAuthProof(args: IsValidETHAuthProofArgs, headers?: object): Promise<IsValidETHAuthProofReturn>
|
|
301
305
|
getCoinPrices(args: GetCoinPricesArgs, headers?: object): Promise<GetCoinPricesReturn>
|
|
302
306
|
getCollectiblePrices(args: GetCollectiblePricesArgs, headers?: object): Promise<GetCollectiblePricesReturn>
|
|
303
307
|
getExchangeRate(args: GetExchangeRateArgs, headers?: object): Promise<GetExchangeRateReturn>
|
|
304
|
-
invalidateOriginToken(args: InvalidateOriginTokenArgs, headers?: object): Promise<InvalidateOriginTokenReturn>
|
|
305
308
|
listPayCardsOnFile(headers?: object): Promise<ListPayCardsOnFileReturn>
|
|
306
309
|
savePayCard(args: SavePayCardArgs, headers?: object): Promise<SavePayCardReturn>
|
|
307
310
|
updatePayCardCVC(args: UpdatePayCardCVCArgs, headers?: object): Promise<UpdatePayCardCVCReturn>
|
|
@@ -309,8 +312,10 @@ export interface API {
|
|
|
309
312
|
smartRampQuote(args: SmartRampQuoteArgs, headers?: object): Promise<SmartRampQuoteReturn>
|
|
310
313
|
smartRampPurchase(args: SmartRampPurchaseArgs, headers?: object): Promise<SmartRampPurchaseReturn>
|
|
311
314
|
smartRampWaitOrderConfirmation(args: SmartRampWaitOrderConfirmationArgs, headers?: object): Promise<SmartRampWaitOrderConfirmationReturn>
|
|
315
|
+
smartRampGetOrder(args: SmartRampGetOrderArgs, headers?: object): Promise<SmartRampGetOrderReturn>
|
|
312
316
|
smartRampCheckCardAuthorization(args: SmartRampCheckCardAuthorizationArgs, headers?: object): Promise<SmartRampCheckCardAuthorizationReturn>
|
|
313
317
|
smartRampSubmitCardAuthorization(args: SmartRampSubmitCardAuthorizationArgs, headers?: object): Promise<SmartRampSubmitCardAuthorizationReturn>
|
|
318
|
+
smartRampOrdersList(args: SmartRampOrdersListArgs, headers?: object): Promise<SmartRampOrdersListReturn>
|
|
314
319
|
getInviteInfo(headers?: object): Promise<GetInviteInfoReturn>
|
|
315
320
|
isValidAccessCode(args: IsValidAccessCodeArgs, headers?: object): Promise<IsValidAccessCodeReturn>
|
|
316
321
|
internalClaimAccessCode(args: InternalClaimAccessCodeArgs, headers?: object): Promise<InternalClaimAccessCodeReturn>
|
|
@@ -477,6 +482,45 @@ export interface IsUsingGoogleMailArgs {
|
|
|
477
482
|
export interface IsUsingGoogleMailReturn {
|
|
478
483
|
yes: boolean
|
|
479
484
|
}
|
|
485
|
+
export interface IsValidSignatureArgs {
|
|
486
|
+
chainId: string
|
|
487
|
+
walletAddress: string
|
|
488
|
+
digest: string
|
|
489
|
+
signature: string
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
export interface IsValidSignatureReturn {
|
|
493
|
+
isValid: boolean
|
|
494
|
+
}
|
|
495
|
+
export interface IsValidMessageSignatureArgs {
|
|
496
|
+
chainId: string
|
|
497
|
+
walletAddress: string
|
|
498
|
+
message: string
|
|
499
|
+
signature: string
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
export interface IsValidMessageSignatureReturn {
|
|
503
|
+
isValid: boolean
|
|
504
|
+
}
|
|
505
|
+
export interface IsValidTypedDataSignatureArgs {
|
|
506
|
+
chainId: string
|
|
507
|
+
walletAddress: string
|
|
508
|
+
typedData: any
|
|
509
|
+
signature: string
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
export interface IsValidTypedDataSignatureReturn {
|
|
513
|
+
isValid: boolean
|
|
514
|
+
}
|
|
515
|
+
export interface IsValidETHAuthProofArgs {
|
|
516
|
+
chainId: string
|
|
517
|
+
walletAddress: string
|
|
518
|
+
ethAuthProof: string
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
export interface IsValidETHAuthProofReturn {
|
|
522
|
+
isValid: boolean
|
|
523
|
+
}
|
|
480
524
|
export interface GetCoinPricesArgs {
|
|
481
525
|
tokens: Array<Token>
|
|
482
526
|
}
|
|
@@ -498,12 +542,6 @@ export interface GetExchangeRateArgs {
|
|
|
498
542
|
export interface GetExchangeRateReturn {
|
|
499
543
|
exchangeRate: ExchangeRate
|
|
500
544
|
}
|
|
501
|
-
export interface InvalidateOriginTokenArgs {
|
|
502
|
-
token: Token
|
|
503
|
-
}
|
|
504
|
-
|
|
505
|
-
export interface InvalidateOriginTokenReturn {
|
|
506
|
-
}
|
|
507
545
|
export interface ListPayCardsOnFileArgs {
|
|
508
546
|
}
|
|
509
547
|
|
|
@@ -559,6 +597,14 @@ export interface SmartRampWaitOrderConfirmationReturn {
|
|
|
559
597
|
done: boolean
|
|
560
598
|
receipt: SmartRampPurchaseReceipt
|
|
561
599
|
}
|
|
600
|
+
export interface SmartRampGetOrderArgs {
|
|
601
|
+
orderId?: string
|
|
602
|
+
id?: number
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
export interface SmartRampGetOrderReturn {
|
|
606
|
+
order: SmartRampOrder
|
|
607
|
+
}
|
|
562
608
|
export interface SmartRampCheckCardAuthorizationArgs {
|
|
563
609
|
orderId: string
|
|
564
610
|
}
|
|
@@ -575,6 +621,15 @@ export interface SmartRampSubmitCardAuthorizationArgs {
|
|
|
575
621
|
export interface SmartRampSubmitCardAuthorizationReturn {
|
|
576
622
|
status: boolean
|
|
577
623
|
}
|
|
624
|
+
export interface SmartRampOrdersListArgs {
|
|
625
|
+
page?: Page
|
|
626
|
+
userAddressFilter?: string
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
export interface SmartRampOrdersListReturn {
|
|
630
|
+
page: Page
|
|
631
|
+
orders: Array<SmartRampOrder>
|
|
632
|
+
}
|
|
578
633
|
export interface GetInviteInfoArgs {
|
|
579
634
|
}
|
|
580
635
|
|
|
@@ -887,21 +942,57 @@ export class API implements API {
|
|
|
887
942
|
})
|
|
888
943
|
}
|
|
889
944
|
|
|
890
|
-
|
|
945
|
+
isValidSignature = (args: IsValidSignatureArgs, headers?: object): Promise<IsValidSignatureReturn> => {
|
|
891
946
|
return this.fetch(
|
|
892
|
-
this.url('
|
|
947
|
+
this.url('IsValidSignature'),
|
|
893
948
|
createHTTPRequest(args, headers)).then((res) => {
|
|
894
949
|
return buildResponse(res).then(_data => {
|
|
895
950
|
return {
|
|
896
|
-
|
|
951
|
+
isValid: <boolean>(_data.isValid)
|
|
897
952
|
}
|
|
898
953
|
})
|
|
899
954
|
})
|
|
900
955
|
}
|
|
901
956
|
|
|
902
|
-
|
|
957
|
+
isValidMessageSignature = (args: IsValidMessageSignatureArgs, headers?: object): Promise<IsValidMessageSignatureReturn> => {
|
|
903
958
|
return this.fetch(
|
|
904
|
-
this.url('
|
|
959
|
+
this.url('IsValidMessageSignature'),
|
|
960
|
+
createHTTPRequest(args, headers)).then((res) => {
|
|
961
|
+
return buildResponse(res).then(_data => {
|
|
962
|
+
return {
|
|
963
|
+
isValid: <boolean>(_data.isValid)
|
|
964
|
+
}
|
|
965
|
+
})
|
|
966
|
+
})
|
|
967
|
+
}
|
|
968
|
+
|
|
969
|
+
isValidTypedDataSignature = (args: IsValidTypedDataSignatureArgs, headers?: object): Promise<IsValidTypedDataSignatureReturn> => {
|
|
970
|
+
return this.fetch(
|
|
971
|
+
this.url('IsValidTypedDataSignature'),
|
|
972
|
+
createHTTPRequest(args, headers)).then((res) => {
|
|
973
|
+
return buildResponse(res).then(_data => {
|
|
974
|
+
return {
|
|
975
|
+
isValid: <boolean>(_data.isValid)
|
|
976
|
+
}
|
|
977
|
+
})
|
|
978
|
+
})
|
|
979
|
+
}
|
|
980
|
+
|
|
981
|
+
isValidETHAuthProof = (args: IsValidETHAuthProofArgs, headers?: object): Promise<IsValidETHAuthProofReturn> => {
|
|
982
|
+
return this.fetch(
|
|
983
|
+
this.url('IsValidETHAuthProof'),
|
|
984
|
+
createHTTPRequest(args, headers)).then((res) => {
|
|
985
|
+
return buildResponse(res).then(_data => {
|
|
986
|
+
return {
|
|
987
|
+
isValid: <boolean>(_data.isValid)
|
|
988
|
+
}
|
|
989
|
+
})
|
|
990
|
+
})
|
|
991
|
+
}
|
|
992
|
+
|
|
993
|
+
getCoinPrices = (args: GetCoinPricesArgs, headers?: object): Promise<GetCoinPricesReturn> => {
|
|
994
|
+
return this.fetch(
|
|
995
|
+
this.url('GetCoinPrices'),
|
|
905
996
|
createHTTPRequest(args, headers)).then((res) => {
|
|
906
997
|
return buildResponse(res).then(_data => {
|
|
907
998
|
return {
|
|
@@ -911,24 +1002,25 @@ export class API implements API {
|
|
|
911
1002
|
})
|
|
912
1003
|
}
|
|
913
1004
|
|
|
914
|
-
|
|
1005
|
+
getCollectiblePrices = (args: GetCollectiblePricesArgs, headers?: object): Promise<GetCollectiblePricesReturn> => {
|
|
915
1006
|
return this.fetch(
|
|
916
|
-
this.url('
|
|
1007
|
+
this.url('GetCollectiblePrices'),
|
|
917
1008
|
createHTTPRequest(args, headers)).then((res) => {
|
|
918
1009
|
return buildResponse(res).then(_data => {
|
|
919
1010
|
return {
|
|
920
|
-
|
|
1011
|
+
tokenPrices: <Array<TokenPrice>>(_data.tokenPrices)
|
|
921
1012
|
}
|
|
922
1013
|
})
|
|
923
1014
|
})
|
|
924
1015
|
}
|
|
925
1016
|
|
|
926
|
-
|
|
1017
|
+
getExchangeRate = (args: GetExchangeRateArgs, headers?: object): Promise<GetExchangeRateReturn> => {
|
|
927
1018
|
return this.fetch(
|
|
928
|
-
this.url('
|
|
1019
|
+
this.url('GetExchangeRate'),
|
|
929
1020
|
createHTTPRequest(args, headers)).then((res) => {
|
|
930
1021
|
return buildResponse(res).then(_data => {
|
|
931
1022
|
return {
|
|
1023
|
+
exchangeRate: <ExchangeRate>(_data.exchangeRate)
|
|
932
1024
|
}
|
|
933
1025
|
})
|
|
934
1026
|
})
|
|
@@ -1023,6 +1115,18 @@ export class API implements API {
|
|
|
1023
1115
|
})
|
|
1024
1116
|
}
|
|
1025
1117
|
|
|
1118
|
+
smartRampGetOrder = (args: SmartRampGetOrderArgs, headers?: object): Promise<SmartRampGetOrderReturn> => {
|
|
1119
|
+
return this.fetch(
|
|
1120
|
+
this.url('SmartRampGetOrder'),
|
|
1121
|
+
createHTTPRequest(args, headers)).then((res) => {
|
|
1122
|
+
return buildResponse(res).then(_data => {
|
|
1123
|
+
return {
|
|
1124
|
+
order: <SmartRampOrder>(_data.order)
|
|
1125
|
+
}
|
|
1126
|
+
})
|
|
1127
|
+
})
|
|
1128
|
+
}
|
|
1129
|
+
|
|
1026
1130
|
smartRampCheckCardAuthorization = (args: SmartRampCheckCardAuthorizationArgs, headers?: object): Promise<SmartRampCheckCardAuthorizationReturn> => {
|
|
1027
1131
|
return this.fetch(
|
|
1028
1132
|
this.url('SmartRampCheckCardAuthorization'),
|
|
@@ -1047,6 +1151,19 @@ export class API implements API {
|
|
|
1047
1151
|
})
|
|
1048
1152
|
}
|
|
1049
1153
|
|
|
1154
|
+
smartRampOrdersList = (args: SmartRampOrdersListArgs, headers?: object): Promise<SmartRampOrdersListReturn> => {
|
|
1155
|
+
return this.fetch(
|
|
1156
|
+
this.url('SmartRampOrdersList'),
|
|
1157
|
+
createHTTPRequest(args, headers)).then((res) => {
|
|
1158
|
+
return buildResponse(res).then(_data => {
|
|
1159
|
+
return {
|
|
1160
|
+
page: <Page>(_data.page),
|
|
1161
|
+
orders: <Array<SmartRampOrder>>(_data.orders)
|
|
1162
|
+
}
|
|
1163
|
+
})
|
|
1164
|
+
})
|
|
1165
|
+
}
|
|
1166
|
+
|
|
1050
1167
|
getInviteInfo = (headers?: object): Promise<GetInviteInfoReturn> => {
|
|
1051
1168
|
return this.fetch(
|
|
1052
1169
|
this.url('GetInviteInfo'),
|