@0xsequence/api 2.3.32 → 2.3.34
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 +38 -199
- package/dist/0xsequence-api.cjs.prod.js +38 -199
- package/dist/0xsequence-api.esm.js +39 -198
- package/dist/declarations/src/api.gen.d.ts +37 -255
- package/package.json +1 -1
- package/src/api.gen.ts +1685 -1782
package/src/api.gen.ts
CHANGED
|
@@ -1,95 +1,80 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
|
-
// sequence-api v0.4.0
|
|
2
|
+
// sequence-api v0.4.0 d7026da603b2c29baf21c6aceeebc86eada372d8
|
|
3
3
|
// --
|
|
4
4
|
// Code generated by webrpc-gen@v0.25.3 with typescript generator. DO NOT EDIT.
|
|
5
5
|
//
|
|
6
6
|
// webrpc-gen -schema=api.ridl -target=typescript -client -out=./clients/api.gen.ts
|
|
7
7
|
|
|
8
|
-
export const WebrpcHeader =
|
|
8
|
+
export const WebrpcHeader = 'Webrpc'
|
|
9
9
|
|
|
10
|
-
export const WebrpcHeaderValue =
|
|
10
|
+
export const WebrpcHeaderValue = 'webrpc@v0.25.3;gen-typescript@v0.17.0;sequence-api@v0.4.0'
|
|
11
11
|
|
|
12
12
|
// WebRPC description and code-gen version
|
|
13
|
-
export const WebRPCVersion =
|
|
13
|
+
export const WebRPCVersion = 'v1'
|
|
14
14
|
|
|
15
15
|
// Schema version of your RIDL schema
|
|
16
|
-
export const WebRPCSchemaVersion =
|
|
16
|
+
export const WebRPCSchemaVersion = 'v0.4.0'
|
|
17
17
|
|
|
18
18
|
// Schema hash generated from your RIDL schema
|
|
19
|
-
export const WebRPCSchemaHash =
|
|
19
|
+
export const WebRPCSchemaHash = 'd7026da603b2c29baf21c6aceeebc86eada372d8'
|
|
20
20
|
|
|
21
21
|
type WebrpcGenVersions = {
|
|
22
|
-
webrpcGenVersion: string
|
|
23
|
-
codeGenName: string
|
|
24
|
-
codeGenVersion: string
|
|
25
|
-
schemaName: string
|
|
26
|
-
schemaVersion: string
|
|
27
|
-
}
|
|
22
|
+
webrpcGenVersion: string
|
|
23
|
+
codeGenName: string
|
|
24
|
+
codeGenVersion: string
|
|
25
|
+
schemaName: string
|
|
26
|
+
schemaVersion: string
|
|
27
|
+
}
|
|
28
28
|
|
|
29
29
|
export function VersionFromHeader(headers: Headers): WebrpcGenVersions {
|
|
30
|
-
const headerValue = headers.get(WebrpcHeader)
|
|
30
|
+
const headerValue = headers.get(WebrpcHeader)
|
|
31
31
|
if (!headerValue) {
|
|
32
32
|
return {
|
|
33
|
-
webrpcGenVersion:
|
|
34
|
-
codeGenName:
|
|
35
|
-
codeGenVersion:
|
|
36
|
-
schemaName:
|
|
37
|
-
schemaVersion:
|
|
38
|
-
}
|
|
33
|
+
webrpcGenVersion: '',
|
|
34
|
+
codeGenName: '',
|
|
35
|
+
codeGenVersion: '',
|
|
36
|
+
schemaName: '',
|
|
37
|
+
schemaVersion: ''
|
|
38
|
+
}
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
return parseWebrpcGenVersions(headerValue)
|
|
41
|
+
return parseWebrpcGenVersions(headerValue)
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
function parseWebrpcGenVersions(header: string): WebrpcGenVersions {
|
|
45
|
-
const versions = header.split(
|
|
45
|
+
const versions = header.split(';')
|
|
46
46
|
if (versions.length < 3) {
|
|
47
47
|
return {
|
|
48
|
-
webrpcGenVersion:
|
|
49
|
-
codeGenName:
|
|
50
|
-
codeGenVersion:
|
|
51
|
-
schemaName:
|
|
52
|
-
schemaVersion:
|
|
53
|
-
}
|
|
48
|
+
webrpcGenVersion: '',
|
|
49
|
+
codeGenName: '',
|
|
50
|
+
codeGenVersion: '',
|
|
51
|
+
schemaName: '',
|
|
52
|
+
schemaVersion: ''
|
|
53
|
+
}
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
-
const [_, webrpcGenVersion] = versions[0]!.split(
|
|
57
|
-
const [codeGenName, codeGenVersion] = versions[1]!.split(
|
|
58
|
-
const [schemaName, schemaVersion] = versions[2]!.split(
|
|
56
|
+
const [_, webrpcGenVersion] = versions[0]!.split('@')
|
|
57
|
+
const [codeGenName, codeGenVersion] = versions[1]!.split('@')
|
|
58
|
+
const [schemaName, schemaVersion] = versions[2]!.split('@')
|
|
59
59
|
|
|
60
60
|
return {
|
|
61
|
-
webrpcGenVersion: webrpcGenVersion ??
|
|
62
|
-
codeGenName: codeGenName ??
|
|
63
|
-
codeGenVersion: codeGenVersion ??
|
|
64
|
-
schemaName: schemaName ??
|
|
65
|
-
schemaVersion: schemaVersion ??
|
|
66
|
-
}
|
|
61
|
+
webrpcGenVersion: webrpcGenVersion ?? '',
|
|
62
|
+
codeGenName: codeGenName ?? '',
|
|
63
|
+
codeGenVersion: codeGenVersion ?? '',
|
|
64
|
+
schemaName: schemaName ?? '',
|
|
65
|
+
schemaVersion: schemaVersion ?? ''
|
|
66
|
+
}
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
//
|
|
70
70
|
// Types
|
|
71
71
|
//
|
|
72
72
|
|
|
73
|
-
|
|
74
73
|
export enum SortOrder {
|
|
75
74
|
DESC = 'DESC',
|
|
76
75
|
ASC = 'ASC'
|
|
77
76
|
}
|
|
78
77
|
|
|
79
|
-
export enum SardinePaymentType {
|
|
80
|
-
ach = 'ach',
|
|
81
|
-
debit = 'debit',
|
|
82
|
-
credit = 'credit',
|
|
83
|
-
us_debit = 'us_debit',
|
|
84
|
-
international_debit = 'international_debit',
|
|
85
|
-
international_credit = 'international_credit'
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
export enum SardineQuoteType {
|
|
89
|
-
buy = 'buy',
|
|
90
|
-
sell = 'sell'
|
|
91
|
-
}
|
|
92
|
-
|
|
93
78
|
export enum GetLifiSwapRouteDirection {
|
|
94
79
|
to = 'to',
|
|
95
80
|
from = 'from'
|
|
@@ -120,13 +105,11 @@ export enum CheckoutOptionCrypto {
|
|
|
120
105
|
|
|
121
106
|
export enum CheckoutOptionNFTCheckoutProvider {
|
|
122
107
|
unknown = 'unknown',
|
|
123
|
-
sardine = 'sardine',
|
|
124
108
|
transak = 'transak'
|
|
125
109
|
}
|
|
126
110
|
|
|
127
111
|
export enum CheckoutOptionOnRampProvider {
|
|
128
112
|
unknown = 'unknown',
|
|
129
|
-
sardine = 'sardine',
|
|
130
113
|
transak = 'transak'
|
|
131
114
|
}
|
|
132
115
|
|
|
@@ -150,7 +133,7 @@ export interface RuntimeStatus {
|
|
|
150
133
|
branch: string
|
|
151
134
|
commitHash: string
|
|
152
135
|
checks: RuntimeChecks
|
|
153
|
-
numTxnsRelayed: {[key: string]: NumTxnsRelayed}
|
|
136
|
+
numTxnsRelayed: { [key: string]: NumTxnsRelayed }
|
|
154
137
|
}
|
|
155
138
|
|
|
156
139
|
export interface NumTxnsRelayed {
|
|
@@ -160,8 +143,7 @@ export interface NumTxnsRelayed {
|
|
|
160
143
|
period: number
|
|
161
144
|
}
|
|
162
145
|
|
|
163
|
-
export interface RuntimeChecks {
|
|
164
|
-
}
|
|
146
|
+
export interface RuntimeChecks {}
|
|
165
147
|
|
|
166
148
|
export interface SequenceContext {
|
|
167
149
|
factory: string
|
|
@@ -372,159 +354,6 @@ export interface SortBy {
|
|
|
372
354
|
order: SortOrder
|
|
373
355
|
}
|
|
374
356
|
|
|
375
|
-
export interface SardineNFTCheckoutParams {
|
|
376
|
-
name: string
|
|
377
|
-
imageUrl: string
|
|
378
|
-
network: string
|
|
379
|
-
recipientAddress: string
|
|
380
|
-
blockchainNftId: string
|
|
381
|
-
contractAddress: string
|
|
382
|
-
quantity: number
|
|
383
|
-
decimals?: number
|
|
384
|
-
tokenAmount: string
|
|
385
|
-
tokenAddress: string
|
|
386
|
-
tokenSymbol: string
|
|
387
|
-
tokenDecimals?: number
|
|
388
|
-
calldata: string
|
|
389
|
-
platform: string
|
|
390
|
-
approvedSpenderAddress?: string
|
|
391
|
-
}
|
|
392
|
-
|
|
393
|
-
export interface SardineNFTCheckout {
|
|
394
|
-
token: string
|
|
395
|
-
expiresAt: string
|
|
396
|
-
orderId: string
|
|
397
|
-
}
|
|
398
|
-
|
|
399
|
-
export interface SardineOrder {
|
|
400
|
-
id: string
|
|
401
|
-
createdAt?: string
|
|
402
|
-
referenceId: string
|
|
403
|
-
status: string
|
|
404
|
-
fiatCurrency: string
|
|
405
|
-
fiatExchangeRateUSD: number
|
|
406
|
-
transactionId: string
|
|
407
|
-
expiresAt?: string
|
|
408
|
-
total: number
|
|
409
|
-
subTotal: number
|
|
410
|
-
transactionFee: number
|
|
411
|
-
networkFee: number
|
|
412
|
-
paymentCurrency?: string
|
|
413
|
-
paymentMethodType?: string
|
|
414
|
-
transactionType: string
|
|
415
|
-
name: string
|
|
416
|
-
price: number
|
|
417
|
-
imageUrl: string
|
|
418
|
-
contractAddress?: string
|
|
419
|
-
transactionHash?: string
|
|
420
|
-
recipientAddress: string
|
|
421
|
-
}
|
|
422
|
-
|
|
423
|
-
export interface SardineRegion {
|
|
424
|
-
countryCode: string
|
|
425
|
-
isAllowedOnRamp: boolean
|
|
426
|
-
isAllowedOnNFT: boolean
|
|
427
|
-
isBasicKycRequired: Array<string>
|
|
428
|
-
isSsnRequired: Array<string>
|
|
429
|
-
name: string
|
|
430
|
-
currencyCode: string
|
|
431
|
-
isPayrollSupported: boolean
|
|
432
|
-
supportedDocuments: Array<string>
|
|
433
|
-
paymentMethods: Array<SardineRegionPaymentMethod>
|
|
434
|
-
states: Array<SardineRegionState>
|
|
435
|
-
}
|
|
436
|
-
|
|
437
|
-
export interface SardineRegionPaymentMethod {
|
|
438
|
-
name: string
|
|
439
|
-
isAllowedOnRamp: boolean
|
|
440
|
-
isAllowedOnNFT: boolean
|
|
441
|
-
subTypes: Array<string>
|
|
442
|
-
type: string
|
|
443
|
-
subType: string
|
|
444
|
-
}
|
|
445
|
-
|
|
446
|
-
export interface SardineRegionState {
|
|
447
|
-
code: string
|
|
448
|
-
name: string
|
|
449
|
-
isAllowedOnRamp: boolean
|
|
450
|
-
isAllowedOnNFT: boolean
|
|
451
|
-
}
|
|
452
|
-
|
|
453
|
-
export interface SardineSupportedToken {
|
|
454
|
-
network: string
|
|
455
|
-
assetSymbol: string
|
|
456
|
-
assetName: string
|
|
457
|
-
chainId: string
|
|
458
|
-
tokenName: string
|
|
459
|
-
token: string
|
|
460
|
-
tokenAddress: string
|
|
461
|
-
}
|
|
462
|
-
|
|
463
|
-
export interface SardineSupportedTokenForSwap {
|
|
464
|
-
isSupported: boolean
|
|
465
|
-
isSupportedForAbstraction: boolean
|
|
466
|
-
currentBalance: string
|
|
467
|
-
}
|
|
468
|
-
|
|
469
|
-
export interface SardineEnabledToken {
|
|
470
|
-
network: string
|
|
471
|
-
assetSymbol: string
|
|
472
|
-
assetName: string
|
|
473
|
-
chainId: string
|
|
474
|
-
tokenName: string
|
|
475
|
-
token: string
|
|
476
|
-
tokenAddress: string
|
|
477
|
-
}
|
|
478
|
-
|
|
479
|
-
export interface SardineGetQuoteParams {
|
|
480
|
-
assetType: string
|
|
481
|
-
network: string
|
|
482
|
-
total: number
|
|
483
|
-
currency?: string
|
|
484
|
-
paymentType?: SardinePaymentType
|
|
485
|
-
quoteType?: SardineQuoteType
|
|
486
|
-
walletAddress?: string
|
|
487
|
-
}
|
|
488
|
-
|
|
489
|
-
export interface SardineQuote {
|
|
490
|
-
quantity: number
|
|
491
|
-
network: string
|
|
492
|
-
assetType: string
|
|
493
|
-
total: number
|
|
494
|
-
currency: string
|
|
495
|
-
expiresAt: string
|
|
496
|
-
paymentType: string
|
|
497
|
-
price: number
|
|
498
|
-
subtotal: number
|
|
499
|
-
transactionFee: number
|
|
500
|
-
networkFee: number
|
|
501
|
-
highNetworkFee: boolean
|
|
502
|
-
minTransactionValue: number
|
|
503
|
-
maxTransactionValue: number
|
|
504
|
-
liquidityProvider: string
|
|
505
|
-
}
|
|
506
|
-
|
|
507
|
-
export interface SardineFiatCurrency {
|
|
508
|
-
currencyCode: string
|
|
509
|
-
name: string
|
|
510
|
-
currencySymbol: string
|
|
511
|
-
paymentOptions: Array<SardinePaymentOption>
|
|
512
|
-
supportingCountries: Array<string>
|
|
513
|
-
}
|
|
514
|
-
|
|
515
|
-
export interface SardinePaymentOption {
|
|
516
|
-
name: string
|
|
517
|
-
dailyLimit: number
|
|
518
|
-
weeklyLimit: number
|
|
519
|
-
monthlyLimit: number
|
|
520
|
-
maxAmount: number
|
|
521
|
-
minAmount: number
|
|
522
|
-
subTypes: Array<string>
|
|
523
|
-
type: string
|
|
524
|
-
subType: string
|
|
525
|
-
processingTime: string
|
|
526
|
-
}
|
|
527
|
-
|
|
528
357
|
export interface LifiToken {
|
|
529
358
|
chainId: number
|
|
530
359
|
address: string
|
|
@@ -806,6 +635,36 @@ export interface TransakGetPriceParams {
|
|
|
806
635
|
quoteCountryCode: string
|
|
807
636
|
}
|
|
808
637
|
|
|
638
|
+
export interface TransakNFTData {
|
|
639
|
+
imageUrl: string
|
|
640
|
+
nftName: string
|
|
641
|
+
collectionAddress: string
|
|
642
|
+
tokenIds: Array<string>
|
|
643
|
+
prices: Array<number>
|
|
644
|
+
quantity: number
|
|
645
|
+
nftType: string
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
export interface TransakGetWidgetURLParams {
|
|
649
|
+
targetContractAddress?: string
|
|
650
|
+
isNft?: boolean
|
|
651
|
+
calldata?: string
|
|
652
|
+
cryptoCurrencyCode?: string
|
|
653
|
+
estimatedGasLimit?: number
|
|
654
|
+
nftData: Array<TransakNFTData>
|
|
655
|
+
walletAddress?: string
|
|
656
|
+
disableWalletAddressForm?: boolean
|
|
657
|
+
partnerOrderId?: string
|
|
658
|
+
network?: string
|
|
659
|
+
referrerDomain?: string
|
|
660
|
+
fiatAmount?: string
|
|
661
|
+
fiatCurrency?: string
|
|
662
|
+
defaultFiatAmount?: string
|
|
663
|
+
defaultCryptoCurrency?: string
|
|
664
|
+
cryptoCurrencyList?: string
|
|
665
|
+
networks?: string
|
|
666
|
+
}
|
|
667
|
+
|
|
809
668
|
export interface TransakChain {
|
|
810
669
|
name: string
|
|
811
670
|
chainId: number
|
|
@@ -960,14 +819,14 @@ export interface IntentQuote {
|
|
|
960
819
|
quoteProvider: string
|
|
961
820
|
quoteProviderRequestId: string
|
|
962
821
|
quoteProviderFeeUsd: string
|
|
963
|
-
feeQuotes: {[key: string]: string}
|
|
822
|
+
feeQuotes: { [key: string]: string }
|
|
964
823
|
}
|
|
965
824
|
|
|
966
825
|
export interface API {
|
|
967
826
|
/**
|
|
968
|
-
*
|
|
827
|
+
*
|
|
969
828
|
* Runtime
|
|
970
|
-
*
|
|
829
|
+
*
|
|
971
830
|
*/
|
|
972
831
|
ping(headers?: object, signal?: AbortSignal): Promise<PingReturn>
|
|
973
832
|
version(headers?: object, signal?: AbortSignal): Promise<VersionReturn>
|
|
@@ -975,48 +834,60 @@ export interface API {
|
|
|
975
834
|
clock(headers?: object, signal?: AbortSignal): Promise<ClockReturn>
|
|
976
835
|
getSequenceContext(headers?: object, signal?: AbortSignal): Promise<GetSequenceContextReturn>
|
|
977
836
|
/**
|
|
978
|
-
*
|
|
837
|
+
*
|
|
979
838
|
* Auth
|
|
980
|
-
*
|
|
839
|
+
*
|
|
981
840
|
* TODO: rename 'ewtString' arg to 'ethauthProof'
|
|
982
841
|
*/
|
|
983
842
|
getAuthToken(args: GetAuthTokenArgs, headers?: object, signal?: AbortSignal): Promise<GetAuthTokenReturn>
|
|
984
843
|
getAuthToken2(args: GetAuthToken2Args, headers?: object, signal?: AbortSignal): Promise<GetAuthToken2Return>
|
|
985
|
-
sendPasswordlessLink(
|
|
844
|
+
sendPasswordlessLink(
|
|
845
|
+
args: SendPasswordlessLinkArgs,
|
|
846
|
+
headers?: object,
|
|
847
|
+
signal?: AbortSignal
|
|
848
|
+
): Promise<SendPasswordlessLinkReturn>
|
|
986
849
|
registerPublicKey(args: RegisterPublicKeyArgs, headers?: object, signal?: AbortSignal): Promise<RegisterPublicKeyReturn>
|
|
987
850
|
getPublicKey(args: GetPublicKeyArgs, headers?: object, signal?: AbortSignal): Promise<GetPublicKeyReturn>
|
|
988
851
|
/**
|
|
989
|
-
*
|
|
852
|
+
*
|
|
990
853
|
* Contacts / Friends
|
|
991
|
-
*
|
|
854
|
+
*
|
|
992
855
|
*/
|
|
993
856
|
friendList(args: FriendListArgs, headers?: object, signal?: AbortSignal): Promise<FriendListReturn>
|
|
994
857
|
getFriendByAddress(args: GetFriendByAddressArgs, headers?: object, signal?: AbortSignal): Promise<GetFriendByAddressReturn>
|
|
995
858
|
searchFriends(args: SearchFriendsArgs, headers?: object, signal?: AbortSignal): Promise<SearchFriendsReturn>
|
|
996
859
|
addFriend(args: AddFriendArgs, headers?: object, signal?: AbortSignal): Promise<AddFriendReturn>
|
|
997
|
-
updateFriendNickname(
|
|
860
|
+
updateFriendNickname(
|
|
861
|
+
args: UpdateFriendNicknameArgs,
|
|
862
|
+
headers?: object,
|
|
863
|
+
signal?: AbortSignal
|
|
864
|
+
): Promise<UpdateFriendNicknameReturn>
|
|
998
865
|
removeFriend(args: RemoveFriendArgs, headers?: object, signal?: AbortSignal): Promise<RemoveFriendReturn>
|
|
999
866
|
/**
|
|
1000
|
-
*
|
|
867
|
+
*
|
|
1001
868
|
* Chain-Utils
|
|
1002
|
-
*
|
|
869
|
+
*
|
|
1003
870
|
*/
|
|
1004
871
|
contractCall(args: ContractCallArgs, headers?: object, signal?: AbortSignal): Promise<ContractCallReturn>
|
|
1005
872
|
decodeContractCall(args: DecodeContractCallArgs, headers?: object, signal?: AbortSignal): Promise<DecodeContractCallReturn>
|
|
1006
|
-
lookupContractCallSelectors(
|
|
873
|
+
lookupContractCallSelectors(
|
|
874
|
+
args: LookupContractCallSelectorsArgs,
|
|
875
|
+
headers?: object,
|
|
876
|
+
signal?: AbortSignal
|
|
877
|
+
): Promise<LookupContractCallSelectorsReturn>
|
|
1007
878
|
/**
|
|
1008
|
-
*
|
|
879
|
+
*
|
|
1009
880
|
* User Storage
|
|
1010
|
-
*
|
|
881
|
+
*
|
|
1011
882
|
*/
|
|
1012
883
|
userStorageFetch(args: UserStorageFetchArgs, headers?: object, signal?: AbortSignal): Promise<UserStorageFetchReturn>
|
|
1013
884
|
userStorageSave(args: UserStorageSaveArgs, headers?: object, signal?: AbortSignal): Promise<UserStorageSaveReturn>
|
|
1014
885
|
userStorageDelete(args: UserStorageDeleteArgs, headers?: object, signal?: AbortSignal): Promise<UserStorageDeleteReturn>
|
|
1015
886
|
userStorageFetchAll(args: UserStorageFetchAllArgs, headers?: object, signal?: AbortSignal): Promise<UserStorageFetchAllReturn>
|
|
1016
887
|
/**
|
|
1017
|
-
*
|
|
888
|
+
*
|
|
1018
889
|
* Wallet utils
|
|
1019
|
-
*
|
|
890
|
+
*
|
|
1020
891
|
*/
|
|
1021
892
|
getMoonpayLink(args: GetMoonpayLinkArgs, headers?: object, signal?: AbortSignal): Promise<GetMoonpayLinkReturn>
|
|
1022
893
|
/**
|
|
@@ -1028,83 +899,82 @@ export interface API {
|
|
|
1028
899
|
* NOTE: chainId can be either a number or canonical name
|
|
1029
900
|
*/
|
|
1030
901
|
isValidSignature(args: IsValidSignatureArgs, headers?: object, signal?: AbortSignal): Promise<IsValidSignatureReturn>
|
|
1031
|
-
isValidMessageSignature(
|
|
1032
|
-
|
|
902
|
+
isValidMessageSignature(
|
|
903
|
+
args: IsValidMessageSignatureArgs,
|
|
904
|
+
headers?: object,
|
|
905
|
+
signal?: AbortSignal
|
|
906
|
+
): Promise<IsValidMessageSignatureReturn>
|
|
907
|
+
isValidTypedDataSignature(
|
|
908
|
+
args: IsValidTypedDataSignatureArgs,
|
|
909
|
+
headers?: object,
|
|
910
|
+
signal?: AbortSignal
|
|
911
|
+
): Promise<IsValidTypedDataSignatureReturn>
|
|
1033
912
|
isValidETHAuthProof(args: IsValidETHAuthProofArgs, headers?: object, signal?: AbortSignal): Promise<IsValidETHAuthProofReturn>
|
|
1034
913
|
getOnRampURL(args: GetOnRampURLArgs, headers?: object, signal?: AbortSignal): Promise<GetOnRampURLReturn>
|
|
1035
|
-
sardineGetClientToken(headers?: object, signal?: AbortSignal): Promise<SardineGetClientTokenReturn>
|
|
1036
|
-
sardineGetNFTCheckoutToken(args: SardineGetNFTCheckoutTokenArgs, headers?: object, signal?: AbortSignal): Promise<SardineGetNFTCheckoutTokenReturn>
|
|
1037
|
-
sardineGetNFTCheckoutOrderStatus(args: SardineGetNFTCheckoutOrderStatusArgs, headers?: object, signal?: AbortSignal): Promise<SardineGetNFTCheckoutOrderStatusReturn>
|
|
1038
|
-
sardineGetSupportedRegions(headers?: object, signal?: AbortSignal): Promise<SardineGetSupportedRegionsReturn>
|
|
1039
|
-
sardineGetSupportedFiatCurrencies(headers?: object, signal?: AbortSignal): Promise<SardineGetSupportedFiatCurrenciesReturn>
|
|
1040
|
-
sardineGetSupportedTokens(headers?: object, signal?: AbortSignal): Promise<SardineGetSupportedTokensReturn>
|
|
1041
|
-
sardineGetSupportedTokenForSwap(args: SardineGetSupportedTokenForSwapArgs, headers?: object, signal?: AbortSignal): Promise<SardineGetSupportedTokenForSwapReturn>
|
|
1042
|
-
sardineGetEnabledTokens(headers?: object, signal?: AbortSignal): Promise<SardineGetEnabledTokensReturn>
|
|
1043
|
-
sardineGetQuote(args: SardineGetQuoteArgs, headers?: object, signal?: AbortSignal): Promise<SardineGetQuoteReturn>
|
|
1044
|
-
/**
|
|
1045
|
-
* Deprecated. Use SardineGetClientToken() instead.
|
|
1046
|
-
*/
|
|
1047
|
-
getSardineClientToken(headers?: object, signal?: AbortSignal): Promise<GetSardineClientTokenReturn>
|
|
1048
|
-
/**
|
|
1049
|
-
* Deprecated. Use SardineGetNFTCheckoutToken() instead.
|
|
1050
|
-
*/
|
|
1051
|
-
getSardineNFTCheckoutToken(args: GetSardineNFTCheckoutTokenArgs, headers?: object, signal?: AbortSignal): Promise<GetSardineNFTCheckoutTokenReturn>
|
|
1052
|
-
/**
|
|
1053
|
-
* Deprecated. Use SardineGetNFTCheckoutOrderStatus() instead.
|
|
1054
|
-
*/
|
|
1055
|
-
getSardineNFTCheckoutOrderStatus(args: GetSardineNFTCheckoutOrderStatusArgs, headers?: object, signal?: AbortSignal): Promise<GetSardineNFTCheckoutOrderStatusReturn>
|
|
1056
914
|
transakGetCountries(headers?: object, signal?: AbortSignal): Promise<TransakGetCountriesReturn>
|
|
1057
915
|
transakGetCryptoCurrencies(headers?: object, signal?: AbortSignal): Promise<TransakGetCryptoCurrenciesReturn>
|
|
1058
916
|
transakGetFiatCurrencies(headers?: object, signal?: AbortSignal): Promise<TransakGetFiatCurrenciesReturn>
|
|
1059
917
|
transakGetPrice(args: TransakGetPriceArgs, headers?: object, signal?: AbortSignal): Promise<TransakGetPriceReturn>
|
|
1060
|
-
transakGetSupportedNFTCheckoutChains(
|
|
918
|
+
transakGetSupportedNFTCheckoutChains(
|
|
919
|
+
headers?: object,
|
|
920
|
+
signal?: AbortSignal
|
|
921
|
+
): Promise<TransakGetSupportedNFTCheckoutChainsReturn>
|
|
922
|
+
transakGetWidgetURL(args: TransakGetWidgetURLArgs, headers?: object, signal?: AbortSignal): Promise<TransakGetWidgetURLReturn>
|
|
1061
923
|
/**
|
|
1062
|
-
*
|
|
924
|
+
*
|
|
1063
925
|
* Price Feed
|
|
1064
|
-
*
|
|
926
|
+
*
|
|
1065
927
|
*/
|
|
1066
928
|
getCoinPrices(args: GetCoinPricesArgs, headers?: object, signal?: AbortSignal): Promise<GetCoinPricesReturn>
|
|
1067
|
-
getCollectiblePrices(
|
|
929
|
+
getCollectiblePrices(
|
|
930
|
+
args: GetCollectiblePricesArgs,
|
|
931
|
+
headers?: object,
|
|
932
|
+
signal?: AbortSignal
|
|
933
|
+
): Promise<GetCollectiblePricesReturn>
|
|
1068
934
|
/**
|
|
1069
|
-
*
|
|
935
|
+
*
|
|
1070
936
|
* Price Feed utils
|
|
1071
|
-
*
|
|
937
|
+
*
|
|
1072
938
|
*/
|
|
1073
939
|
getExchangeRate(args: GetExchangeRateArgs, headers?: object, signal?: AbortSignal): Promise<GetExchangeRateReturn>
|
|
1074
940
|
/**
|
|
1075
|
-
*
|
|
941
|
+
*
|
|
1076
942
|
* Util / misc
|
|
1077
|
-
*
|
|
943
|
+
*
|
|
1078
944
|
*/
|
|
1079
945
|
memoryStore(args: MemoryStoreArgs, headers?: object, signal?: AbortSignal): Promise<MemoryStoreReturn>
|
|
1080
946
|
memoryLoad(args: MemoryLoadArgs, headers?: object, signal?: AbortSignal): Promise<MemoryLoadReturn>
|
|
1081
947
|
/**
|
|
1082
|
-
*
|
|
948
|
+
*
|
|
1083
949
|
* Legacy
|
|
1084
|
-
*
|
|
950
|
+
*
|
|
1085
951
|
*/
|
|
1086
952
|
getInviteInfo(headers?: object, signal?: AbortSignal): Promise<GetInviteInfoReturn>
|
|
1087
953
|
/**
|
|
1088
954
|
* NOTE: we're still using this from SW-API to Sequence-API to claim invite code
|
|
1089
955
|
*/
|
|
1090
956
|
isValidAccessCode(args: IsValidAccessCodeArgs, headers?: object, signal?: AbortSignal): Promise<IsValidAccessCodeReturn>
|
|
1091
|
-
internalClaimAccessCode(
|
|
957
|
+
internalClaimAccessCode(
|
|
958
|
+
args: InternalClaimAccessCodeArgs,
|
|
959
|
+
headers?: object,
|
|
960
|
+
signal?: AbortSignal
|
|
961
|
+
): Promise<InternalClaimAccessCodeReturn>
|
|
1092
962
|
/**
|
|
1093
963
|
* Utils
|
|
1094
964
|
*/
|
|
1095
965
|
blockNumberAtTime(args: BlockNumberAtTimeArgs, headers?: object, signal?: AbortSignal): Promise<BlockNumberAtTimeReturn>
|
|
1096
966
|
/**
|
|
1097
|
-
*
|
|
967
|
+
*
|
|
1098
968
|
* Paper
|
|
1099
969
|
* TODO: deprecate in the future
|
|
1100
|
-
*
|
|
970
|
+
*
|
|
1101
971
|
*/
|
|
1102
972
|
paperSessionSecret(args: PaperSessionSecretArgs, headers?: object, signal?: AbortSignal): Promise<PaperSessionSecretReturn>
|
|
1103
973
|
paperSessionSecret2(args: PaperSessionSecret2Args, headers?: object, signal?: AbortSignal): Promise<PaperSessionSecret2Return>
|
|
1104
974
|
/**
|
|
1105
|
-
*
|
|
975
|
+
*
|
|
1106
976
|
* Linked wallets (v0 -- simple support)
|
|
1107
|
-
*
|
|
977
|
+
*
|
|
1108
978
|
*/
|
|
1109
979
|
linkWallet(args: LinkWalletArgs, headers?: object, signal?: AbortSignal): Promise<LinkWalletReturn>
|
|
1110
980
|
getLinkedWallets(args: GetLinkedWalletsArgs, headers?: object, signal?: AbortSignal): Promise<GetLinkedWalletsReturn>
|
|
@@ -1113,13 +983,21 @@ export interface API {
|
|
|
1113
983
|
* NOTE: these methods are deprecated, please do not use them. We may resurface them in the future, but just wanted
|
|
1114
984
|
* to be clear, they are not necessary for our linked wallets.
|
|
1115
985
|
*/
|
|
1116
|
-
generateWaaSVerificationURL(
|
|
1117
|
-
|
|
986
|
+
generateWaaSVerificationURL(
|
|
987
|
+
args: GenerateWaaSVerificationURLArgs,
|
|
988
|
+
headers?: object,
|
|
989
|
+
signal?: AbortSignal
|
|
990
|
+
): Promise<GenerateWaaSVerificationURLReturn>
|
|
991
|
+
validateWaaSVerificationNonce(
|
|
992
|
+
args: ValidateWaaSVerificationNonceArgs,
|
|
993
|
+
headers?: object,
|
|
994
|
+
signal?: AbortSignal
|
|
995
|
+
): Promise<ValidateWaaSVerificationNonceReturn>
|
|
1118
996
|
/**
|
|
1119
|
-
*
|
|
1120
|
-
*
|
|
997
|
+
*
|
|
998
|
+
*
|
|
1121
999
|
* WaaS child wallet adoption
|
|
1122
|
-
*
|
|
1000
|
+
*
|
|
1123
1001
|
*/
|
|
1124
1002
|
listAdoptedWallets(args: ListAdoptedWalletsArgs, headers?: object, signal?: AbortSignal): Promise<ListAdoptedWalletsReturn>
|
|
1125
1003
|
getLifiChains(headers?: object, signal?: AbortSignal): Promise<GetLifiChainsReturn>
|
|
@@ -1131,30 +1009,62 @@ export interface API {
|
|
|
1131
1009
|
getLifiSwapRoutes(args: GetLifiSwapRoutesArgs, headers?: object, signal?: AbortSignal): Promise<GetLifiSwapRoutesReturn>
|
|
1132
1010
|
getLifiSwapQuote(args: GetLifiSwapQuoteArgs, headers?: object, signal?: AbortSignal): Promise<GetLifiSwapQuoteReturn>
|
|
1133
1011
|
/**
|
|
1134
|
-
*
|
|
1012
|
+
*
|
|
1135
1013
|
* Chain abstraction
|
|
1136
|
-
*
|
|
1014
|
+
*
|
|
1137
1015
|
*/
|
|
1138
|
-
getIntentCallsPayloads(
|
|
1016
|
+
getIntentCallsPayloads(
|
|
1017
|
+
args: GetIntentCallsPayloadsArgs,
|
|
1018
|
+
headers?: object,
|
|
1019
|
+
signal?: AbortSignal
|
|
1020
|
+
): Promise<GetIntentCallsPayloadsReturn>
|
|
1139
1021
|
commitIntentConfig(args: CommitIntentConfigArgs, headers?: object, signal?: AbortSignal): Promise<CommitIntentConfigReturn>
|
|
1140
1022
|
getIntentConfig(args: GetIntentConfigArgs, headers?: object, signal?: AbortSignal): Promise<GetIntentConfigReturn>
|
|
1141
1023
|
/**
|
|
1142
|
-
*
|
|
1024
|
+
*
|
|
1143
1025
|
* Inventory, payments and management
|
|
1144
|
-
*
|
|
1026
|
+
*
|
|
1145
1027
|
*/
|
|
1146
1028
|
listCurrencyGroups(headers?: object, signal?: AbortSignal): Promise<ListCurrencyGroupsReturn>
|
|
1147
|
-
addOffchainInventory(
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1029
|
+
addOffchainInventory(
|
|
1030
|
+
args: AddOffchainInventoryArgs,
|
|
1031
|
+
headers?: object,
|
|
1032
|
+
signal?: AbortSignal
|
|
1033
|
+
): Promise<AddOffchainInventoryReturn>
|
|
1034
|
+
getOffchainInventory(
|
|
1035
|
+
args: GetOffchainInventoryArgs,
|
|
1036
|
+
headers?: object,
|
|
1037
|
+
signal?: AbortSignal
|
|
1038
|
+
): Promise<GetOffchainInventoryReturn>
|
|
1039
|
+
listOffchainInventories(
|
|
1040
|
+
args: ListOffchainInventoriesArgs,
|
|
1041
|
+
headers?: object,
|
|
1042
|
+
signal?: AbortSignal
|
|
1043
|
+
): Promise<ListOffchainInventoriesReturn>
|
|
1044
|
+
updateOffchainInventory(
|
|
1045
|
+
args: UpdateOffchainInventoryArgs,
|
|
1046
|
+
headers?: object,
|
|
1047
|
+
signal?: AbortSignal
|
|
1048
|
+
): Promise<UpdateOffchainInventoryReturn>
|
|
1049
|
+
deleteOffchainInventory(
|
|
1050
|
+
args: DeleteOffchainInventoryArgs,
|
|
1051
|
+
headers?: object,
|
|
1052
|
+
signal?: AbortSignal
|
|
1053
|
+
): Promise<DeleteOffchainInventoryReturn>
|
|
1054
|
+
requestOffchainPayment(
|
|
1055
|
+
args: RequestOffchainPaymentArgs,
|
|
1056
|
+
headers?: object,
|
|
1057
|
+
signal?: AbortSignal
|
|
1058
|
+
): Promise<RequestOffchainPaymentReturn>
|
|
1059
|
+
listOffchainPayments(
|
|
1060
|
+
args: ListOffchainPaymentsArgs,
|
|
1061
|
+
headers?: object,
|
|
1062
|
+
signal?: AbortSignal
|
|
1063
|
+
): Promise<ListOffchainPaymentsReturn>
|
|
1154
1064
|
/**
|
|
1155
|
-
*
|
|
1065
|
+
*
|
|
1156
1066
|
* Packs
|
|
1157
|
-
*
|
|
1067
|
+
*
|
|
1158
1068
|
*/
|
|
1159
1069
|
savePack(args: SavePackArgs, headers?: object, signal?: AbortSignal): Promise<SavePackReturn>
|
|
1160
1070
|
getPack(args: GetPackArgs, headers?: object, signal?: AbortSignal): Promise<GetPackReturn>
|
|
@@ -1162,58 +1072,81 @@ export interface API {
|
|
|
1162
1072
|
deletePack(args: DeletePackArgs, headers?: object, signal?: AbortSignal): Promise<DeletePackReturn>
|
|
1163
1073
|
updatePackContent(args: UpdatePackContentArgs, headers?: object, signal?: AbortSignal): Promise<UpdatePackContentReturn>
|
|
1164
1074
|
getRevealTxData(args: GetRevealTxDataArgs, headers?: object, signal?: AbortSignal): Promise<GetRevealTxDataReturn>
|
|
1165
|
-
checkoutOptionsPrimary(
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1075
|
+
checkoutOptionsPrimary(
|
|
1076
|
+
args: CheckoutOptionsPrimaryArgs,
|
|
1077
|
+
headers?: object,
|
|
1078
|
+
signal?: AbortSignal
|
|
1079
|
+
): Promise<CheckoutOptionsPrimaryReturn>
|
|
1080
|
+
checkoutOptionsSecondary(
|
|
1081
|
+
args: CheckoutOptionsSecondaryArgs,
|
|
1082
|
+
headers?: object,
|
|
1083
|
+
signal?: AbortSignal
|
|
1084
|
+
): Promise<CheckoutOptionsSecondaryReturn>
|
|
1085
|
+
checkoutOptionsGetTransakContractID(
|
|
1086
|
+
args: CheckoutOptionsGetTransakContractIDArgs,
|
|
1087
|
+
headers?: object,
|
|
1088
|
+
signal?: AbortSignal
|
|
1089
|
+
): Promise<CheckoutOptionsGetTransakContractIDReturn>
|
|
1090
|
+
fortePayCreateIntent(
|
|
1091
|
+
args: FortePayCreateIntentArgs,
|
|
1092
|
+
headers?: object,
|
|
1093
|
+
signal?: AbortSignal
|
|
1094
|
+
): Promise<FortePayCreateIntentReturn>
|
|
1095
|
+
fortePayGetPaymentStatuses(
|
|
1096
|
+
args: FortePayGetPaymentStatusesArgs,
|
|
1097
|
+
headers?: object,
|
|
1098
|
+
signal?: AbortSignal
|
|
1099
|
+
): Promise<FortePayGetPaymentStatusesReturn>
|
|
1170
1100
|
/**
|
|
1171
|
-
*
|
|
1101
|
+
*
|
|
1172
1102
|
* CCTP
|
|
1173
|
-
*
|
|
1103
|
+
*
|
|
1174
1104
|
*/
|
|
1175
1105
|
getCCTPTransfer(args: GetCCTPTransferArgs, headers?: object, signal?: AbortSignal): Promise<GetCCTPTransferReturn>
|
|
1176
1106
|
queueCCTPTransfer(args: QueueCCTPTransferArgs, headers?: object, signal?: AbortSignal): Promise<QueueCCTPTransferReturn>
|
|
1177
1107
|
/**
|
|
1178
|
-
*
|
|
1108
|
+
*
|
|
1179
1109
|
* Intent Machine Worker
|
|
1180
|
-
*
|
|
1110
|
+
*
|
|
1181
1111
|
*/
|
|
1182
|
-
queueIntentConfigExecution(
|
|
1183
|
-
|
|
1112
|
+
queueIntentConfigExecution(
|
|
1113
|
+
args: QueueIntentConfigExecutionArgs,
|
|
1114
|
+
headers?: object,
|
|
1115
|
+
signal?: AbortSignal
|
|
1116
|
+
): Promise<QueueIntentConfigExecutionReturn>
|
|
1117
|
+
getIntentConfigExecutionStatus(
|
|
1118
|
+
args: GetIntentConfigExecutionStatusArgs,
|
|
1119
|
+
headers?: object,
|
|
1120
|
+
signal?: AbortSignal
|
|
1121
|
+
): Promise<GetIntentConfigExecutionStatusReturn>
|
|
1184
1122
|
listIntentConfigs(args: ListIntentConfigsArgs, headers?: object, signal?: AbortSignal): Promise<ListIntentConfigsReturn>
|
|
1185
1123
|
queueMetaTxnReceipt(args: QueueMetaTxnReceiptArgs, headers?: object, signal?: AbortSignal): Promise<QueueMetaTxnReceiptReturn>
|
|
1186
1124
|
}
|
|
1187
1125
|
|
|
1188
|
-
export interface PingArgs {
|
|
1189
|
-
}
|
|
1126
|
+
export interface PingArgs {}
|
|
1190
1127
|
|
|
1191
1128
|
export interface PingReturn {
|
|
1192
|
-
status: boolean
|
|
1193
|
-
}
|
|
1194
|
-
export interface VersionArgs {
|
|
1129
|
+
status: boolean
|
|
1195
1130
|
}
|
|
1131
|
+
export interface VersionArgs {}
|
|
1196
1132
|
|
|
1197
1133
|
export interface VersionReturn {
|
|
1198
|
-
version: Version
|
|
1199
|
-
}
|
|
1200
|
-
export interface RuntimeStatusArgs {
|
|
1134
|
+
version: Version
|
|
1201
1135
|
}
|
|
1136
|
+
export interface RuntimeStatusArgs {}
|
|
1202
1137
|
|
|
1203
1138
|
export interface RuntimeStatusReturn {
|
|
1204
|
-
status: RuntimeStatus
|
|
1205
|
-
}
|
|
1206
|
-
export interface ClockArgs {
|
|
1139
|
+
status: RuntimeStatus
|
|
1207
1140
|
}
|
|
1141
|
+
export interface ClockArgs {}
|
|
1208
1142
|
|
|
1209
1143
|
export interface ClockReturn {
|
|
1210
|
-
serverTime: string
|
|
1211
|
-
}
|
|
1212
|
-
export interface GetSequenceContextArgs {
|
|
1144
|
+
serverTime: string
|
|
1213
1145
|
}
|
|
1146
|
+
export interface GetSequenceContextArgs {}
|
|
1214
1147
|
|
|
1215
1148
|
export interface GetSequenceContextReturn {
|
|
1216
|
-
data: SequenceContext
|
|
1149
|
+
data: SequenceContext
|
|
1217
1150
|
}
|
|
1218
1151
|
export interface GetAuthTokenArgs {
|
|
1219
1152
|
ewtString: string
|
|
@@ -1224,7 +1157,7 @@ export interface GetAuthTokenReturn {
|
|
|
1224
1157
|
status: boolean
|
|
1225
1158
|
jwtToken: string
|
|
1226
1159
|
address: string
|
|
1227
|
-
user?: User
|
|
1160
|
+
user?: User
|
|
1228
1161
|
}
|
|
1229
1162
|
export interface GetAuthToken2Args {
|
|
1230
1163
|
ewtString: string
|
|
@@ -1235,7 +1168,7 @@ export interface GetAuthToken2Return {
|
|
|
1235
1168
|
status: boolean
|
|
1236
1169
|
jwtToken: string
|
|
1237
1170
|
address: string
|
|
1238
|
-
user?: User
|
|
1171
|
+
user?: User
|
|
1239
1172
|
}
|
|
1240
1173
|
export interface SendPasswordlessLinkArgs {
|
|
1241
1174
|
email: string
|
|
@@ -1244,21 +1177,21 @@ export interface SendPasswordlessLinkArgs {
|
|
|
1244
1177
|
}
|
|
1245
1178
|
|
|
1246
1179
|
export interface SendPasswordlessLinkReturn {
|
|
1247
|
-
status: boolean
|
|
1180
|
+
status: boolean
|
|
1248
1181
|
}
|
|
1249
1182
|
export interface RegisterPublicKeyArgs {
|
|
1250
1183
|
publicKey: PublicKey
|
|
1251
1184
|
}
|
|
1252
1185
|
|
|
1253
1186
|
export interface RegisterPublicKeyReturn {
|
|
1254
|
-
status: boolean
|
|
1187
|
+
status: boolean
|
|
1255
1188
|
}
|
|
1256
1189
|
export interface GetPublicKeyArgs {
|
|
1257
1190
|
id: string
|
|
1258
1191
|
}
|
|
1259
1192
|
|
|
1260
1193
|
export interface GetPublicKeyReturn {
|
|
1261
|
-
publicKey: PublicKey
|
|
1194
|
+
publicKey: PublicKey
|
|
1262
1195
|
}
|
|
1263
1196
|
export interface FriendListArgs {
|
|
1264
1197
|
nickname?: string
|
|
@@ -1267,7 +1200,7 @@ export interface FriendListArgs {
|
|
|
1267
1200
|
|
|
1268
1201
|
export interface FriendListReturn {
|
|
1269
1202
|
page: Page
|
|
1270
|
-
friends: Array<Friend>
|
|
1203
|
+
friends: Array<Friend>
|
|
1271
1204
|
}
|
|
1272
1205
|
export interface GetFriendByAddressArgs {
|
|
1273
1206
|
friendAddress: string
|
|
@@ -1275,7 +1208,7 @@ export interface GetFriendByAddressArgs {
|
|
|
1275
1208
|
|
|
1276
1209
|
export interface GetFriendByAddressReturn {
|
|
1277
1210
|
status: boolean
|
|
1278
|
-
friend: Friend
|
|
1211
|
+
friend: Friend
|
|
1279
1212
|
}
|
|
1280
1213
|
export interface SearchFriendsArgs {
|
|
1281
1214
|
filterUsername: string
|
|
@@ -1283,7 +1216,7 @@ export interface SearchFriendsArgs {
|
|
|
1283
1216
|
}
|
|
1284
1217
|
|
|
1285
1218
|
export interface SearchFriendsReturn {
|
|
1286
|
-
friends: Array<Friend>
|
|
1219
|
+
friends: Array<Friend>
|
|
1287
1220
|
}
|
|
1288
1221
|
export interface AddFriendArgs {
|
|
1289
1222
|
friendAddress: string
|
|
@@ -1292,7 +1225,7 @@ export interface AddFriendArgs {
|
|
|
1292
1225
|
|
|
1293
1226
|
export interface AddFriendReturn {
|
|
1294
1227
|
status: boolean
|
|
1295
|
-
friend?: Friend
|
|
1228
|
+
friend?: Friend
|
|
1296
1229
|
}
|
|
1297
1230
|
export interface UpdateFriendNicknameArgs {
|
|
1298
1231
|
friendAddress: string
|
|
@@ -1301,14 +1234,14 @@ export interface UpdateFriendNicknameArgs {
|
|
|
1301
1234
|
|
|
1302
1235
|
export interface UpdateFriendNicknameReturn {
|
|
1303
1236
|
status: boolean
|
|
1304
|
-
friend?: Friend
|
|
1237
|
+
friend?: Friend
|
|
1305
1238
|
}
|
|
1306
1239
|
export interface RemoveFriendArgs {
|
|
1307
1240
|
friendAddress: string
|
|
1308
1241
|
}
|
|
1309
1242
|
|
|
1310
1243
|
export interface RemoveFriendReturn {
|
|
1311
|
-
status: boolean
|
|
1244
|
+
status: boolean
|
|
1312
1245
|
}
|
|
1313
1246
|
export interface ContractCallArgs {
|
|
1314
1247
|
chainID: string
|
|
@@ -1319,28 +1252,28 @@ export interface ContractCallArgs {
|
|
|
1319
1252
|
}
|
|
1320
1253
|
|
|
1321
1254
|
export interface ContractCallReturn {
|
|
1322
|
-
returns: Array<string>
|
|
1255
|
+
returns: Array<string>
|
|
1323
1256
|
}
|
|
1324
1257
|
export interface DecodeContractCallArgs {
|
|
1325
1258
|
callData: string
|
|
1326
1259
|
}
|
|
1327
1260
|
|
|
1328
1261
|
export interface DecodeContractCallReturn {
|
|
1329
|
-
call: ContractCall
|
|
1262
|
+
call: ContractCall
|
|
1330
1263
|
}
|
|
1331
1264
|
export interface LookupContractCallSelectorsArgs {
|
|
1332
1265
|
selectors: Array<string>
|
|
1333
1266
|
}
|
|
1334
1267
|
|
|
1335
1268
|
export interface LookupContractCallSelectorsReturn {
|
|
1336
|
-
signatures: Array<Array<string>>
|
|
1269
|
+
signatures: Array<Array<string>>
|
|
1337
1270
|
}
|
|
1338
1271
|
export interface UserStorageFetchArgs {
|
|
1339
1272
|
key: string
|
|
1340
1273
|
}
|
|
1341
1274
|
|
|
1342
1275
|
export interface UserStorageFetchReturn {
|
|
1343
|
-
object: any
|
|
1276
|
+
object: any
|
|
1344
1277
|
}
|
|
1345
1278
|
export interface UserStorageSaveArgs {
|
|
1346
1279
|
key: string
|
|
@@ -1348,28 +1281,28 @@ export interface UserStorageSaveArgs {
|
|
|
1348
1281
|
}
|
|
1349
1282
|
|
|
1350
1283
|
export interface UserStorageSaveReturn {
|
|
1351
|
-
ok: boolean
|
|
1284
|
+
ok: boolean
|
|
1352
1285
|
}
|
|
1353
1286
|
export interface UserStorageDeleteArgs {
|
|
1354
1287
|
key: string
|
|
1355
1288
|
}
|
|
1356
1289
|
|
|
1357
1290
|
export interface UserStorageDeleteReturn {
|
|
1358
|
-
ok: boolean
|
|
1291
|
+
ok: boolean
|
|
1359
1292
|
}
|
|
1360
1293
|
export interface UserStorageFetchAllArgs {
|
|
1361
1294
|
keys?: Array<string>
|
|
1362
1295
|
}
|
|
1363
1296
|
|
|
1364
1297
|
export interface UserStorageFetchAllReturn {
|
|
1365
|
-
objects: {[key: string]: any}
|
|
1298
|
+
objects: { [key: string]: any }
|
|
1366
1299
|
}
|
|
1367
1300
|
export interface GetMoonpayLinkArgs {
|
|
1368
1301
|
url: string
|
|
1369
1302
|
}
|
|
1370
1303
|
|
|
1371
1304
|
export interface GetMoonpayLinkReturn {
|
|
1372
|
-
signedUrl: string
|
|
1305
|
+
signedUrl: string
|
|
1373
1306
|
}
|
|
1374
1307
|
export interface ResolveENSAddressArgs {
|
|
1375
1308
|
ens: string
|
|
@@ -1377,7 +1310,7 @@ export interface ResolveENSAddressArgs {
|
|
|
1377
1310
|
|
|
1378
1311
|
export interface ResolveENSAddressReturn {
|
|
1379
1312
|
address: string
|
|
1380
|
-
ok: boolean
|
|
1313
|
+
ok: boolean
|
|
1381
1314
|
}
|
|
1382
1315
|
export interface IsValidSignatureArgs {
|
|
1383
1316
|
chainId: string
|
|
@@ -1387,7 +1320,7 @@ export interface IsValidSignatureArgs {
|
|
|
1387
1320
|
}
|
|
1388
1321
|
|
|
1389
1322
|
export interface IsValidSignatureReturn {
|
|
1390
|
-
isValid: boolean
|
|
1323
|
+
isValid: boolean
|
|
1391
1324
|
}
|
|
1392
1325
|
export interface IsValidMessageSignatureArgs {
|
|
1393
1326
|
chainId: string
|
|
@@ -1397,7 +1330,7 @@ export interface IsValidMessageSignatureArgs {
|
|
|
1397
1330
|
}
|
|
1398
1331
|
|
|
1399
1332
|
export interface IsValidMessageSignatureReturn {
|
|
1400
|
-
isValid: boolean
|
|
1333
|
+
isValid: boolean
|
|
1401
1334
|
}
|
|
1402
1335
|
export interface IsValidTypedDataSignatureArgs {
|
|
1403
1336
|
chainId: string
|
|
@@ -1407,7 +1340,7 @@ export interface IsValidTypedDataSignatureArgs {
|
|
|
1407
1340
|
}
|
|
1408
1341
|
|
|
1409
1342
|
export interface IsValidTypedDataSignatureReturn {
|
|
1410
|
-
isValid: boolean
|
|
1343
|
+
isValid: boolean
|
|
1411
1344
|
}
|
|
1412
1345
|
export interface IsValidETHAuthProofArgs {
|
|
1413
1346
|
chainId: string
|
|
@@ -1416,145 +1349,69 @@ export interface IsValidETHAuthProofArgs {
|
|
|
1416
1349
|
}
|
|
1417
1350
|
|
|
1418
1351
|
export interface IsValidETHAuthProofReturn {
|
|
1419
|
-
isValid: boolean
|
|
1352
|
+
isValid: boolean
|
|
1420
1353
|
}
|
|
1421
1354
|
export interface GetOnRampURLArgs {
|
|
1422
1355
|
chainId: string
|
|
1423
1356
|
}
|
|
1424
1357
|
|
|
1425
1358
|
export interface GetOnRampURLReturn {
|
|
1426
|
-
url: string
|
|
1427
|
-
}
|
|
1428
|
-
export interface SardineGetClientTokenArgs {
|
|
1429
|
-
}
|
|
1430
|
-
|
|
1431
|
-
export interface SardineGetClientTokenReturn {
|
|
1432
|
-
token: string
|
|
1433
|
-
}
|
|
1434
|
-
export interface SardineGetNFTCheckoutTokenArgs {
|
|
1435
|
-
params: SardineNFTCheckoutParams
|
|
1436
|
-
}
|
|
1437
|
-
|
|
1438
|
-
export interface SardineGetNFTCheckoutTokenReturn {
|
|
1439
|
-
resp: SardineNFTCheckout
|
|
1440
|
-
}
|
|
1441
|
-
export interface SardineGetNFTCheckoutOrderStatusArgs {
|
|
1442
|
-
orderId: string
|
|
1443
|
-
}
|
|
1444
|
-
|
|
1445
|
-
export interface SardineGetNFTCheckoutOrderStatusReturn {
|
|
1446
|
-
resp: SardineOrder
|
|
1447
|
-
}
|
|
1448
|
-
export interface SardineGetSupportedRegionsArgs {
|
|
1449
|
-
}
|
|
1450
|
-
|
|
1451
|
-
export interface SardineGetSupportedRegionsReturn {
|
|
1452
|
-
regions: Array<SardineRegion>
|
|
1453
|
-
}
|
|
1454
|
-
export interface SardineGetSupportedFiatCurrenciesArgs {
|
|
1455
|
-
}
|
|
1456
|
-
|
|
1457
|
-
export interface SardineGetSupportedFiatCurrenciesReturn {
|
|
1458
|
-
tokens: Array<SardineFiatCurrency>
|
|
1459
|
-
}
|
|
1460
|
-
export interface SardineGetSupportedTokensArgs {
|
|
1461
|
-
}
|
|
1462
|
-
|
|
1463
|
-
export interface SardineGetSupportedTokensReturn {
|
|
1464
|
-
tokens: Array<SardineSupportedToken>
|
|
1465
|
-
}
|
|
1466
|
-
export interface SardineGetSupportedTokenForSwapArgs {
|
|
1467
|
-
network: string
|
|
1468
|
-
tokenAddress: string
|
|
1469
|
-
}
|
|
1470
|
-
|
|
1471
|
-
export interface SardineGetSupportedTokenForSwapReturn {
|
|
1472
|
-
token: SardineSupportedTokenForSwap
|
|
1473
|
-
}
|
|
1474
|
-
export interface SardineGetEnabledTokensArgs {
|
|
1475
|
-
}
|
|
1476
|
-
|
|
1477
|
-
export interface SardineGetEnabledTokensReturn {
|
|
1478
|
-
tokens: Array<SardineEnabledToken>
|
|
1479
|
-
}
|
|
1480
|
-
export interface SardineGetQuoteArgs {
|
|
1481
|
-
params: SardineGetQuoteParams
|
|
1482
|
-
}
|
|
1483
|
-
|
|
1484
|
-
export interface SardineGetQuoteReturn {
|
|
1485
|
-
quote: SardineQuote
|
|
1486
|
-
}
|
|
1487
|
-
export interface GetSardineClientTokenArgs {
|
|
1488
|
-
}
|
|
1489
|
-
|
|
1490
|
-
export interface GetSardineClientTokenReturn {
|
|
1491
|
-
token: string
|
|
1492
|
-
}
|
|
1493
|
-
export interface GetSardineNFTCheckoutTokenArgs {
|
|
1494
|
-
params: SardineNFTCheckoutParams
|
|
1495
|
-
}
|
|
1496
|
-
|
|
1497
|
-
export interface GetSardineNFTCheckoutTokenReturn {
|
|
1498
|
-
resp: SardineNFTCheckout
|
|
1499
|
-
}
|
|
1500
|
-
export interface GetSardineNFTCheckoutOrderStatusArgs {
|
|
1501
|
-
orderId: string
|
|
1502
|
-
}
|
|
1503
|
-
|
|
1504
|
-
export interface GetSardineNFTCheckoutOrderStatusReturn {
|
|
1505
|
-
resp: SardineOrder
|
|
1506
|
-
}
|
|
1507
|
-
export interface TransakGetCountriesArgs {
|
|
1359
|
+
url: string
|
|
1508
1360
|
}
|
|
1361
|
+
export interface TransakGetCountriesArgs {}
|
|
1509
1362
|
|
|
1510
1363
|
export interface TransakGetCountriesReturn {
|
|
1511
|
-
regions: Array<TransakCountry>
|
|
1512
|
-
}
|
|
1513
|
-
export interface TransakGetCryptoCurrenciesArgs {
|
|
1364
|
+
regions: Array<TransakCountry>
|
|
1514
1365
|
}
|
|
1366
|
+
export interface TransakGetCryptoCurrenciesArgs {}
|
|
1515
1367
|
|
|
1516
1368
|
export interface TransakGetCryptoCurrenciesReturn {
|
|
1517
|
-
currencies: Array<TransakCryptoCurrency>
|
|
1518
|
-
}
|
|
1519
|
-
export interface TransakGetFiatCurrenciesArgs {
|
|
1369
|
+
currencies: Array<TransakCryptoCurrency>
|
|
1520
1370
|
}
|
|
1371
|
+
export interface TransakGetFiatCurrenciesArgs {}
|
|
1521
1372
|
|
|
1522
1373
|
export interface TransakGetFiatCurrenciesReturn {
|
|
1523
|
-
currencies: Array<TransakFiatCurrency>
|
|
1374
|
+
currencies: Array<TransakFiatCurrency>
|
|
1524
1375
|
}
|
|
1525
1376
|
export interface TransakGetPriceArgs {
|
|
1526
1377
|
params: TransakGetPriceParams
|
|
1527
1378
|
}
|
|
1528
1379
|
|
|
1529
1380
|
export interface TransakGetPriceReturn {
|
|
1530
|
-
price: TransakPrice
|
|
1531
|
-
}
|
|
1532
|
-
export interface TransakGetSupportedNFTCheckoutChainsArgs {
|
|
1381
|
+
price: TransakPrice
|
|
1533
1382
|
}
|
|
1383
|
+
export interface TransakGetSupportedNFTCheckoutChainsArgs {}
|
|
1534
1384
|
|
|
1535
1385
|
export interface TransakGetSupportedNFTCheckoutChainsReturn {
|
|
1536
|
-
chains: Array<TransakChain>
|
|
1386
|
+
chains: Array<TransakChain>
|
|
1387
|
+
}
|
|
1388
|
+
export interface TransakGetWidgetURLArgs {
|
|
1389
|
+
params: TransakGetWidgetURLParams
|
|
1390
|
+
}
|
|
1391
|
+
|
|
1392
|
+
export interface TransakGetWidgetURLReturn {
|
|
1393
|
+
url: string
|
|
1537
1394
|
}
|
|
1538
1395
|
export interface GetCoinPricesArgs {
|
|
1539
1396
|
tokens: Array<Token>
|
|
1540
1397
|
}
|
|
1541
1398
|
|
|
1542
1399
|
export interface GetCoinPricesReturn {
|
|
1543
|
-
tokenPrices: Array<TokenPrice>
|
|
1400
|
+
tokenPrices: Array<TokenPrice>
|
|
1544
1401
|
}
|
|
1545
1402
|
export interface GetCollectiblePricesArgs {
|
|
1546
1403
|
tokens: Array<Token>
|
|
1547
1404
|
}
|
|
1548
1405
|
|
|
1549
1406
|
export interface GetCollectiblePricesReturn {
|
|
1550
|
-
tokenPrices: Array<TokenPrice>
|
|
1407
|
+
tokenPrices: Array<TokenPrice>
|
|
1551
1408
|
}
|
|
1552
1409
|
export interface GetExchangeRateArgs {
|
|
1553
1410
|
toCurrency: string
|
|
1554
1411
|
}
|
|
1555
1412
|
|
|
1556
1413
|
export interface GetExchangeRateReturn {
|
|
1557
|
-
exchangeRate: ExchangeRate
|
|
1414
|
+
exchangeRate: ExchangeRate
|
|
1558
1415
|
}
|
|
1559
1416
|
export interface MemoryStoreArgs {
|
|
1560
1417
|
key: string
|
|
@@ -1562,27 +1419,26 @@ export interface MemoryStoreArgs {
|
|
|
1562
1419
|
}
|
|
1563
1420
|
|
|
1564
1421
|
export interface MemoryStoreReturn {
|
|
1565
|
-
ok: boolean
|
|
1422
|
+
ok: boolean
|
|
1566
1423
|
}
|
|
1567
1424
|
export interface MemoryLoadArgs {
|
|
1568
1425
|
key: string
|
|
1569
1426
|
}
|
|
1570
1427
|
|
|
1571
1428
|
export interface MemoryLoadReturn {
|
|
1572
|
-
value: string
|
|
1573
|
-
}
|
|
1574
|
-
export interface GetInviteInfoArgs {
|
|
1429
|
+
value: string
|
|
1575
1430
|
}
|
|
1431
|
+
export interface GetInviteInfoArgs {}
|
|
1576
1432
|
|
|
1577
1433
|
export interface GetInviteInfoReturn {
|
|
1578
|
-
inviteInfo: InviteInfo
|
|
1434
|
+
inviteInfo: InviteInfo
|
|
1579
1435
|
}
|
|
1580
1436
|
export interface IsValidAccessCodeArgs {
|
|
1581
1437
|
accessCode: string
|
|
1582
1438
|
}
|
|
1583
1439
|
|
|
1584
1440
|
export interface IsValidAccessCodeReturn {
|
|
1585
|
-
status: boolean
|
|
1441
|
+
status: boolean
|
|
1586
1442
|
}
|
|
1587
1443
|
export interface InternalClaimAccessCodeArgs {
|
|
1588
1444
|
address: string
|
|
@@ -1590,7 +1446,7 @@ export interface InternalClaimAccessCodeArgs {
|
|
|
1590
1446
|
}
|
|
1591
1447
|
|
|
1592
1448
|
export interface InternalClaimAccessCodeReturn {
|
|
1593
|
-
status: boolean
|
|
1449
|
+
status: boolean
|
|
1594
1450
|
}
|
|
1595
1451
|
export interface BlockNumberAtTimeArgs {
|
|
1596
1452
|
chainId: number
|
|
@@ -1598,7 +1454,7 @@ export interface BlockNumberAtTimeArgs {
|
|
|
1598
1454
|
}
|
|
1599
1455
|
|
|
1600
1456
|
export interface BlockNumberAtTimeReturn {
|
|
1601
|
-
blocks: Array<number>
|
|
1457
|
+
blocks: Array<number>
|
|
1602
1458
|
}
|
|
1603
1459
|
export interface PaperSessionSecretArgs {
|
|
1604
1460
|
chainName: string
|
|
@@ -1608,7 +1464,7 @@ export interface PaperSessionSecretArgs {
|
|
|
1608
1464
|
}
|
|
1609
1465
|
|
|
1610
1466
|
export interface PaperSessionSecretReturn {
|
|
1611
|
-
secret: string
|
|
1467
|
+
secret: string
|
|
1612
1468
|
}
|
|
1613
1469
|
export interface PaperSessionSecret2Args {
|
|
1614
1470
|
chainName: string
|
|
@@ -1618,7 +1474,7 @@ export interface PaperSessionSecret2Args {
|
|
|
1618
1474
|
}
|
|
1619
1475
|
|
|
1620
1476
|
export interface PaperSessionSecret2Return {
|
|
1621
|
-
secret: string
|
|
1477
|
+
secret: string
|
|
1622
1478
|
}
|
|
1623
1479
|
export interface LinkWalletArgs {
|
|
1624
1480
|
parentWalletAddress: string
|
|
@@ -1632,7 +1488,7 @@ export interface LinkWalletArgs {
|
|
|
1632
1488
|
}
|
|
1633
1489
|
|
|
1634
1490
|
export interface LinkWalletReturn {
|
|
1635
|
-
status: boolean
|
|
1491
|
+
status: boolean
|
|
1636
1492
|
}
|
|
1637
1493
|
export interface GetLinkedWalletsArgs {
|
|
1638
1494
|
parentWalletAddress: string
|
|
@@ -1642,7 +1498,7 @@ export interface GetLinkedWalletsArgs {
|
|
|
1642
1498
|
}
|
|
1643
1499
|
|
|
1644
1500
|
export interface GetLinkedWalletsReturn {
|
|
1645
|
-
linkedWallets: Array<LinkedWallet>
|
|
1501
|
+
linkedWallets: Array<LinkedWallet>
|
|
1646
1502
|
}
|
|
1647
1503
|
export interface RemoveLinkedWalletArgs {
|
|
1648
1504
|
parentWalletAddress: string
|
|
@@ -1653,7 +1509,7 @@ export interface RemoveLinkedWalletArgs {
|
|
|
1653
1509
|
}
|
|
1654
1510
|
|
|
1655
1511
|
export interface RemoveLinkedWalletReturn {
|
|
1656
|
-
status: boolean
|
|
1512
|
+
status: boolean
|
|
1657
1513
|
}
|
|
1658
1514
|
export interface GenerateWaaSVerificationURLArgs {
|
|
1659
1515
|
walletAddress: string
|
|
@@ -1661,7 +1517,7 @@ export interface GenerateWaaSVerificationURLArgs {
|
|
|
1661
1517
|
|
|
1662
1518
|
export interface GenerateWaaSVerificationURLReturn {
|
|
1663
1519
|
nonce: string
|
|
1664
|
-
verificationURL: string
|
|
1520
|
+
verificationURL: string
|
|
1665
1521
|
}
|
|
1666
1522
|
export interface ValidateWaaSVerificationNonceArgs {
|
|
1667
1523
|
nonce: string
|
|
@@ -1671,7 +1527,7 @@ export interface ValidateWaaSVerificationNonceArgs {
|
|
|
1671
1527
|
}
|
|
1672
1528
|
|
|
1673
1529
|
export interface ValidateWaaSVerificationNonceReturn {
|
|
1674
|
-
walletAddress: string
|
|
1530
|
+
walletAddress: string
|
|
1675
1531
|
}
|
|
1676
1532
|
export interface ListAdoptedWalletsArgs {
|
|
1677
1533
|
page?: Page
|
|
@@ -1679,20 +1535,19 @@ export interface ListAdoptedWalletsArgs {
|
|
|
1679
1535
|
|
|
1680
1536
|
export interface ListAdoptedWalletsReturn {
|
|
1681
1537
|
page: Page
|
|
1682
|
-
wallets: Array<AdoptedChildWallet>
|
|
1683
|
-
}
|
|
1684
|
-
export interface GetLifiChainsArgs {
|
|
1538
|
+
wallets: Array<AdoptedChildWallet>
|
|
1685
1539
|
}
|
|
1540
|
+
export interface GetLifiChainsArgs {}
|
|
1686
1541
|
|
|
1687
1542
|
export interface GetLifiChainsReturn {
|
|
1688
|
-
chains: Array<number>
|
|
1543
|
+
chains: Array<number>
|
|
1689
1544
|
}
|
|
1690
1545
|
export interface GetLifiTokensArgs {
|
|
1691
1546
|
chainIds: Array<number>
|
|
1692
1547
|
}
|
|
1693
1548
|
|
|
1694
1549
|
export interface GetLifiTokensReturn {
|
|
1695
|
-
tokens: Array<Token>
|
|
1550
|
+
tokens: Array<Token>
|
|
1696
1551
|
}
|
|
1697
1552
|
export interface GetLifiSwapRoutesArgs {
|
|
1698
1553
|
params: GetLifiSwapRouteParams
|
|
@@ -1703,14 +1558,14 @@ export interface GetLifiSwapRoutesArgs {
|
|
|
1703
1558
|
}
|
|
1704
1559
|
|
|
1705
1560
|
export interface GetLifiSwapRoutesReturn {
|
|
1706
|
-
routes: Array<LifiSwapRoute>
|
|
1561
|
+
routes: Array<LifiSwapRoute>
|
|
1707
1562
|
}
|
|
1708
1563
|
export interface GetLifiSwapQuoteArgs {
|
|
1709
1564
|
params: GetLifiSwapQuoteParams
|
|
1710
1565
|
}
|
|
1711
1566
|
|
|
1712
1567
|
export interface GetLifiSwapQuoteReturn {
|
|
1713
|
-
quote: LifiSwapQuote
|
|
1568
|
+
quote: LifiSwapQuote
|
|
1714
1569
|
}
|
|
1715
1570
|
export interface GetIntentCallsPayloadsArgs {
|
|
1716
1571
|
userAddress: string
|
|
@@ -1737,9 +1592,9 @@ export interface GetIntentCallsPayloadsReturn {
|
|
|
1737
1592
|
metaTxns: Array<MetaTxn>
|
|
1738
1593
|
trailsFee: TrailsFee
|
|
1739
1594
|
quote: IntentQuote
|
|
1740
|
-
feeQuotes: {[key: string]: string}
|
|
1595
|
+
feeQuotes: { [key: string]: string }
|
|
1741
1596
|
originIntentAddress: string
|
|
1742
|
-
destinationIntentAddress: string
|
|
1597
|
+
destinationIntentAddress: string
|
|
1743
1598
|
}
|
|
1744
1599
|
export interface CommitIntentConfigArgs {
|
|
1745
1600
|
originIntentAddress: string
|
|
@@ -1751,54 +1606,52 @@ export interface CommitIntentConfigArgs {
|
|
|
1751
1606
|
}
|
|
1752
1607
|
|
|
1753
1608
|
export interface CommitIntentConfigReturn {
|
|
1754
|
-
config: IntentConfig
|
|
1609
|
+
config: IntentConfig
|
|
1755
1610
|
}
|
|
1756
1611
|
export interface GetIntentConfigArgs {
|
|
1757
1612
|
intentAddress: string
|
|
1758
1613
|
}
|
|
1759
1614
|
|
|
1760
1615
|
export interface GetIntentConfigReturn {
|
|
1761
|
-
config: IntentConfig
|
|
1762
|
-
}
|
|
1763
|
-
export interface ListCurrencyGroupsArgs {
|
|
1616
|
+
config: IntentConfig
|
|
1764
1617
|
}
|
|
1618
|
+
export interface ListCurrencyGroupsArgs {}
|
|
1765
1619
|
|
|
1766
1620
|
export interface ListCurrencyGroupsReturn {
|
|
1767
|
-
currencyGroups: Array<CurrencyGroup>
|
|
1621
|
+
currencyGroups: Array<CurrencyGroup>
|
|
1768
1622
|
}
|
|
1769
1623
|
export interface AddOffchainInventoryArgs {
|
|
1770
1624
|
inventory: OffchainInventory
|
|
1771
1625
|
}
|
|
1772
1626
|
|
|
1773
1627
|
export interface AddOffchainInventoryReturn {
|
|
1774
|
-
inventoryId: number
|
|
1628
|
+
inventoryId: number
|
|
1775
1629
|
}
|
|
1776
1630
|
export interface GetOffchainInventoryArgs {
|
|
1777
1631
|
inventoryId: number
|
|
1778
1632
|
}
|
|
1779
1633
|
|
|
1780
1634
|
export interface GetOffchainInventoryReturn {
|
|
1781
|
-
inventory: OffchainInventory
|
|
1635
|
+
inventory: OffchainInventory
|
|
1782
1636
|
}
|
|
1783
1637
|
export interface ListOffchainInventoriesArgs {
|
|
1784
1638
|
projectId: number
|
|
1785
1639
|
}
|
|
1786
1640
|
|
|
1787
1641
|
export interface ListOffchainInventoriesReturn {
|
|
1788
|
-
inventory: Array<OffchainInventory>
|
|
1642
|
+
inventory: Array<OffchainInventory>
|
|
1789
1643
|
}
|
|
1790
1644
|
export interface UpdateOffchainInventoryArgs {
|
|
1791
1645
|
inventory: OffchainInventory
|
|
1792
1646
|
}
|
|
1793
1647
|
|
|
1794
|
-
export interface UpdateOffchainInventoryReturn {
|
|
1795
|
-
}
|
|
1648
|
+
export interface UpdateOffchainInventoryReturn {}
|
|
1796
1649
|
export interface DeleteOffchainInventoryArgs {
|
|
1797
1650
|
inventoryId: number
|
|
1798
1651
|
}
|
|
1799
1652
|
|
|
1800
1653
|
export interface DeleteOffchainInventoryReturn {
|
|
1801
|
-
ok: boolean
|
|
1654
|
+
ok: boolean
|
|
1802
1655
|
}
|
|
1803
1656
|
export interface RequestOffchainPaymentArgs {
|
|
1804
1657
|
inventoryId: number
|
|
@@ -1808,7 +1661,7 @@ export interface RequestOffchainPaymentArgs {
|
|
|
1808
1661
|
}
|
|
1809
1662
|
|
|
1810
1663
|
export interface RequestOffchainPaymentReturn {
|
|
1811
|
-
payment: PaymentResponse
|
|
1664
|
+
payment: PaymentResponse
|
|
1812
1665
|
}
|
|
1813
1666
|
export interface ListOffchainPaymentsArgs {
|
|
1814
1667
|
inventoryId: number
|
|
@@ -1817,14 +1670,14 @@ export interface ListOffchainPaymentsArgs {
|
|
|
1817
1670
|
|
|
1818
1671
|
export interface ListOffchainPaymentsReturn {
|
|
1819
1672
|
page: Page
|
|
1820
|
-
payments: Array<OffchainPayment>
|
|
1673
|
+
payments: Array<OffchainPayment>
|
|
1821
1674
|
}
|
|
1822
1675
|
export interface SavePackArgs {
|
|
1823
1676
|
pack: Pack
|
|
1824
1677
|
}
|
|
1825
1678
|
|
|
1826
1679
|
export interface SavePackReturn {
|
|
1827
|
-
merkleRoot: string
|
|
1680
|
+
merkleRoot: string
|
|
1828
1681
|
}
|
|
1829
1682
|
export interface GetPackArgs {
|
|
1830
1683
|
contractAddress: string
|
|
@@ -1833,7 +1686,7 @@ export interface GetPackArgs {
|
|
|
1833
1686
|
}
|
|
1834
1687
|
|
|
1835
1688
|
export interface GetPackReturn {
|
|
1836
|
-
pack: Pack
|
|
1689
|
+
pack: Pack
|
|
1837
1690
|
}
|
|
1838
1691
|
export interface GetPackIdsArgs {
|
|
1839
1692
|
contractAddress: string
|
|
@@ -1841,7 +1694,7 @@ export interface GetPackIdsArgs {
|
|
|
1841
1694
|
}
|
|
1842
1695
|
|
|
1843
1696
|
export interface GetPackIdsReturn {
|
|
1844
|
-
packIds: Array<string>
|
|
1697
|
+
packIds: Array<string>
|
|
1845
1698
|
}
|
|
1846
1699
|
export interface DeletePackArgs {
|
|
1847
1700
|
contractAddress: string
|
|
@@ -1850,14 +1703,14 @@ export interface DeletePackArgs {
|
|
|
1850
1703
|
}
|
|
1851
1704
|
|
|
1852
1705
|
export interface DeletePackReturn {
|
|
1853
|
-
status: boolean
|
|
1706
|
+
status: boolean
|
|
1854
1707
|
}
|
|
1855
1708
|
export interface UpdatePackContentArgs {
|
|
1856
1709
|
pack: Pack
|
|
1857
1710
|
}
|
|
1858
1711
|
|
|
1859
1712
|
export interface UpdatePackContentReturn {
|
|
1860
|
-
merkleRoot: string
|
|
1713
|
+
merkleRoot: string
|
|
1861
1714
|
}
|
|
1862
1715
|
export interface GetRevealTxDataArgs {
|
|
1863
1716
|
contractAddress: string
|
|
@@ -1867,7 +1720,7 @@ export interface GetRevealTxDataArgs {
|
|
|
1867
1720
|
}
|
|
1868
1721
|
|
|
1869
1722
|
export interface GetRevealTxDataReturn {
|
|
1870
|
-
txData: string
|
|
1723
|
+
txData: string
|
|
1871
1724
|
}
|
|
1872
1725
|
export interface CheckoutOptionsPrimaryArgs {
|
|
1873
1726
|
chainId: number
|
|
@@ -1878,7 +1731,7 @@ export interface CheckoutOptionsPrimaryArgs {
|
|
|
1878
1731
|
}
|
|
1879
1732
|
|
|
1880
1733
|
export interface CheckoutOptionsPrimaryReturn {
|
|
1881
|
-
options: CheckoutOptions
|
|
1734
|
+
options: CheckoutOptions
|
|
1882
1735
|
}
|
|
1883
1736
|
export interface CheckoutOptionsSecondaryArgs {
|
|
1884
1737
|
chainId: number
|
|
@@ -1887,7 +1740,7 @@ export interface CheckoutOptionsSecondaryArgs {
|
|
|
1887
1740
|
}
|
|
1888
1741
|
|
|
1889
1742
|
export interface CheckoutOptionsSecondaryReturn {
|
|
1890
|
-
options: CheckoutOptions
|
|
1743
|
+
options: CheckoutOptions
|
|
1891
1744
|
}
|
|
1892
1745
|
export interface CheckoutOptionsGetTransakContractIDArgs {
|
|
1893
1746
|
chainId: number
|
|
@@ -1895,28 +1748,28 @@ export interface CheckoutOptionsGetTransakContractIDArgs {
|
|
|
1895
1748
|
}
|
|
1896
1749
|
|
|
1897
1750
|
export interface CheckoutOptionsGetTransakContractIDReturn {
|
|
1898
|
-
contractId: string
|
|
1751
|
+
contractId: string
|
|
1899
1752
|
}
|
|
1900
1753
|
export interface FortePayCreateIntentArgs {
|
|
1901
1754
|
intent: FortePayCreateIntent
|
|
1902
1755
|
}
|
|
1903
1756
|
|
|
1904
1757
|
export interface FortePayCreateIntentReturn {
|
|
1905
|
-
resp: FortePayIntent
|
|
1758
|
+
resp: FortePayIntent
|
|
1906
1759
|
}
|
|
1907
1760
|
export interface FortePayGetPaymentStatusesArgs {
|
|
1908
1761
|
paymentIntentIds: Array<string>
|
|
1909
1762
|
}
|
|
1910
1763
|
|
|
1911
1764
|
export interface FortePayGetPaymentStatusesReturn {
|
|
1912
|
-
statuses: Array<FortePaymentStatus>
|
|
1765
|
+
statuses: Array<FortePaymentStatus>
|
|
1913
1766
|
}
|
|
1914
1767
|
export interface GetCCTPTransferArgs {
|
|
1915
1768
|
id: string
|
|
1916
1769
|
}
|
|
1917
1770
|
|
|
1918
1771
|
export interface GetCCTPTransferReturn {
|
|
1919
|
-
transfer: CCTPTransfer
|
|
1772
|
+
transfer: CCTPTransfer
|
|
1920
1773
|
}
|
|
1921
1774
|
export interface QueueCCTPTransferArgs {
|
|
1922
1775
|
sourceTxHash?: string
|
|
@@ -1926,21 +1779,21 @@ export interface QueueCCTPTransferArgs {
|
|
|
1926
1779
|
}
|
|
1927
1780
|
|
|
1928
1781
|
export interface QueueCCTPTransferReturn {
|
|
1929
|
-
transfer: CCTPTransfer
|
|
1782
|
+
transfer: CCTPTransfer
|
|
1930
1783
|
}
|
|
1931
1784
|
export interface QueueIntentConfigExecutionArgs {
|
|
1932
1785
|
intentConfigId: number
|
|
1933
1786
|
}
|
|
1934
1787
|
|
|
1935
1788
|
export interface QueueIntentConfigExecutionReturn {
|
|
1936
|
-
status: boolean
|
|
1789
|
+
status: boolean
|
|
1937
1790
|
}
|
|
1938
1791
|
export interface GetIntentConfigExecutionStatusArgs {
|
|
1939
1792
|
intentConfigId: number
|
|
1940
1793
|
}
|
|
1941
1794
|
|
|
1942
1795
|
export interface GetIntentConfigExecutionStatusReturn {
|
|
1943
|
-
executionStatus: string
|
|
1796
|
+
executionStatus: string
|
|
1944
1797
|
}
|
|
1945
1798
|
export interface ListIntentConfigsArgs {
|
|
1946
1799
|
page?: Page
|
|
@@ -1949,18 +1802,16 @@ export interface ListIntentConfigsArgs {
|
|
|
1949
1802
|
|
|
1950
1803
|
export interface ListIntentConfigsReturn {
|
|
1951
1804
|
page: Page
|
|
1952
|
-
intentConfigs: Array<IntentConfig>
|
|
1805
|
+
intentConfigs: Array<IntentConfig>
|
|
1953
1806
|
}
|
|
1954
1807
|
export interface QueueMetaTxnReceiptArgs {
|
|
1955
1808
|
metaTxID: string
|
|
1956
1809
|
}
|
|
1957
1810
|
|
|
1958
1811
|
export interface QueueMetaTxnReceiptReturn {
|
|
1959
|
-
status: boolean
|
|
1812
|
+
status: boolean
|
|
1960
1813
|
}
|
|
1961
1814
|
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
1815
|
//
|
|
1965
1816
|
// Client
|
|
1966
1817
|
//
|
|
@@ -1977,1393 +1828,1448 @@ export class API implements API {
|
|
|
1977
1828
|
private url(name: string): string {
|
|
1978
1829
|
return this.hostname + this.path + name
|
|
1979
1830
|
}
|
|
1980
|
-
|
|
1831
|
+
|
|
1981
1832
|
ping = (headers?: object, signal?: AbortSignal): Promise<PingReturn> => {
|
|
1982
|
-
return this.fetch(
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1833
|
+
return this.fetch(this.url('Ping'), createHTTPRequest({}, headers, signal)).then(
|
|
1834
|
+
res => {
|
|
1835
|
+
return buildResponse(res).then(_data => {
|
|
1836
|
+
return {
|
|
1837
|
+
status: <boolean>_data.status
|
|
1838
|
+
}
|
|
1839
|
+
})
|
|
1840
|
+
},
|
|
1841
|
+
error => {
|
|
1842
|
+
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
|
|
1843
|
+
}
|
|
1844
|
+
)
|
|
1994
1845
|
}
|
|
1995
|
-
|
|
1846
|
+
|
|
1996
1847
|
version = (headers?: object, signal?: AbortSignal): Promise<VersionReturn> => {
|
|
1997
|
-
return this.fetch(
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
1848
|
+
return this.fetch(this.url('Version'), createHTTPRequest({}, headers, signal)).then(
|
|
1849
|
+
res => {
|
|
1850
|
+
return buildResponse(res).then(_data => {
|
|
1851
|
+
return {
|
|
1852
|
+
version: <Version>_data.version
|
|
1853
|
+
}
|
|
1854
|
+
})
|
|
1855
|
+
},
|
|
1856
|
+
error => {
|
|
1857
|
+
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
|
|
1858
|
+
}
|
|
1859
|
+
)
|
|
2009
1860
|
}
|
|
2010
|
-
|
|
1861
|
+
|
|
2011
1862
|
runtimeStatus = (headers?: object, signal?: AbortSignal): Promise<RuntimeStatusReturn> => {
|
|
2012
|
-
return this.fetch(
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
1863
|
+
return this.fetch(this.url('RuntimeStatus'), createHTTPRequest({}, headers, signal)).then(
|
|
1864
|
+
res => {
|
|
1865
|
+
return buildResponse(res).then(_data => {
|
|
1866
|
+
return {
|
|
1867
|
+
status: <RuntimeStatus>_data.status
|
|
1868
|
+
}
|
|
1869
|
+
})
|
|
1870
|
+
},
|
|
1871
|
+
error => {
|
|
1872
|
+
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
|
|
1873
|
+
}
|
|
1874
|
+
)
|
|
2024
1875
|
}
|
|
2025
|
-
|
|
1876
|
+
|
|
2026
1877
|
clock = (headers?: object, signal?: AbortSignal): Promise<ClockReturn> => {
|
|
2027
|
-
return this.fetch(
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
1878
|
+
return this.fetch(this.url('Clock'), createHTTPRequest({}, headers, signal)).then(
|
|
1879
|
+
res => {
|
|
1880
|
+
return buildResponse(res).then(_data => {
|
|
1881
|
+
return {
|
|
1882
|
+
serverTime: <string>_data.serverTime
|
|
1883
|
+
}
|
|
1884
|
+
})
|
|
1885
|
+
},
|
|
1886
|
+
error => {
|
|
1887
|
+
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
|
|
1888
|
+
}
|
|
1889
|
+
)
|
|
2039
1890
|
}
|
|
2040
|
-
|
|
1891
|
+
|
|
2041
1892
|
getSequenceContext = (headers?: object, signal?: AbortSignal): Promise<GetSequenceContextReturn> => {
|
|
2042
|
-
return this.fetch(
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
1893
|
+
return this.fetch(this.url('GetSequenceContext'), createHTTPRequest({}, headers, signal)).then(
|
|
1894
|
+
res => {
|
|
1895
|
+
return buildResponse(res).then(_data => {
|
|
1896
|
+
return {
|
|
1897
|
+
data: <SequenceContext>_data.data
|
|
1898
|
+
}
|
|
1899
|
+
})
|
|
1900
|
+
},
|
|
1901
|
+
error => {
|
|
1902
|
+
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
|
|
1903
|
+
}
|
|
1904
|
+
)
|
|
2054
1905
|
}
|
|
2055
|
-
|
|
1906
|
+
|
|
2056
1907
|
getAuthToken = (args: GetAuthTokenArgs, headers?: object, signal?: AbortSignal): Promise<GetAuthTokenReturn> => {
|
|
2057
|
-
return this.fetch(
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
}
|
|
2067
|
-
}
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
1908
|
+
return this.fetch(this.url('GetAuthToken'), createHTTPRequest(args, headers, signal)).then(
|
|
1909
|
+
res => {
|
|
1910
|
+
return buildResponse(res).then(_data => {
|
|
1911
|
+
return {
|
|
1912
|
+
status: <boolean>_data.status,
|
|
1913
|
+
jwtToken: <string>_data.jwtToken,
|
|
1914
|
+
address: <string>_data.address,
|
|
1915
|
+
user: <User>_data.user
|
|
1916
|
+
}
|
|
1917
|
+
})
|
|
1918
|
+
},
|
|
1919
|
+
error => {
|
|
1920
|
+
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
|
|
1921
|
+
}
|
|
1922
|
+
)
|
|
2071
1923
|
}
|
|
2072
|
-
|
|
1924
|
+
|
|
2073
1925
|
getAuthToken2 = (args: GetAuthToken2Args, headers?: object, signal?: AbortSignal): Promise<GetAuthToken2Return> => {
|
|
2074
|
-
return this.fetch(
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
}
|
|
2084
|
-
}
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
1926
|
+
return this.fetch(this.url('GetAuthToken2'), createHTTPRequest(args, headers, signal)).then(
|
|
1927
|
+
res => {
|
|
1928
|
+
return buildResponse(res).then(_data => {
|
|
1929
|
+
return {
|
|
1930
|
+
status: <boolean>_data.status,
|
|
1931
|
+
jwtToken: <string>_data.jwtToken,
|
|
1932
|
+
address: <string>_data.address,
|
|
1933
|
+
user: <User>_data.user
|
|
1934
|
+
}
|
|
1935
|
+
})
|
|
1936
|
+
},
|
|
1937
|
+
error => {
|
|
1938
|
+
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
|
|
1939
|
+
}
|
|
1940
|
+
)
|
|
1941
|
+
}
|
|
1942
|
+
|
|
1943
|
+
sendPasswordlessLink = (
|
|
1944
|
+
args: SendPasswordlessLinkArgs,
|
|
1945
|
+
headers?: object,
|
|
1946
|
+
signal?: AbortSignal
|
|
1947
|
+
): Promise<SendPasswordlessLinkReturn> => {
|
|
1948
|
+
return this.fetch(this.url('SendPasswordlessLink'), createHTTPRequest(args, headers, signal)).then(
|
|
1949
|
+
res => {
|
|
1950
|
+
return buildResponse(res).then(_data => {
|
|
1951
|
+
return {
|
|
1952
|
+
status: <boolean>_data.status
|
|
1953
|
+
}
|
|
1954
|
+
})
|
|
1955
|
+
},
|
|
1956
|
+
error => {
|
|
1957
|
+
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
|
|
1958
|
+
}
|
|
1959
|
+
)
|
|
2102
1960
|
}
|
|
2103
|
-
|
|
1961
|
+
|
|
2104
1962
|
registerPublicKey = (args: RegisterPublicKeyArgs, headers?: object, signal?: AbortSignal): Promise<RegisterPublicKeyReturn> => {
|
|
2105
|
-
return this.fetch(
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
}
|
|
2112
|
-
}
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
1963
|
+
return this.fetch(this.url('RegisterPublicKey'), createHTTPRequest(args, headers, signal)).then(
|
|
1964
|
+
res => {
|
|
1965
|
+
return buildResponse(res).then(_data => {
|
|
1966
|
+
return {
|
|
1967
|
+
status: <boolean>_data.status
|
|
1968
|
+
}
|
|
1969
|
+
})
|
|
1970
|
+
},
|
|
1971
|
+
error => {
|
|
1972
|
+
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
|
|
1973
|
+
}
|
|
1974
|
+
)
|
|
2116
1975
|
}
|
|
2117
|
-
|
|
1976
|
+
|
|
2118
1977
|
getPublicKey = (args: GetPublicKeyArgs, headers?: object, signal?: AbortSignal): Promise<GetPublicKeyReturn> => {
|
|
2119
|
-
return this.fetch(
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
}
|
|
2126
|
-
}
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
1978
|
+
return this.fetch(this.url('GetPublicKey'), createHTTPRequest(args, headers, signal)).then(
|
|
1979
|
+
res => {
|
|
1980
|
+
return buildResponse(res).then(_data => {
|
|
1981
|
+
return {
|
|
1982
|
+
publicKey: <PublicKey>_data.publicKey
|
|
1983
|
+
}
|
|
1984
|
+
})
|
|
1985
|
+
},
|
|
1986
|
+
error => {
|
|
1987
|
+
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
|
|
1988
|
+
}
|
|
1989
|
+
)
|
|
2130
1990
|
}
|
|
2131
|
-
|
|
1991
|
+
|
|
2132
1992
|
friendList = (args: FriendListArgs, headers?: object, signal?: AbortSignal): Promise<FriendListReturn> => {
|
|
2133
|
-
return this.fetch(
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
}
|
|
2141
|
-
}
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
1993
|
+
return this.fetch(this.url('FriendList'), createHTTPRequest(args, headers, signal)).then(
|
|
1994
|
+
res => {
|
|
1995
|
+
return buildResponse(res).then(_data => {
|
|
1996
|
+
return {
|
|
1997
|
+
page: <Page>_data.page,
|
|
1998
|
+
friends: <Array<Friend>>_data.friends
|
|
1999
|
+
}
|
|
2000
|
+
})
|
|
2001
|
+
},
|
|
2002
|
+
error => {
|
|
2003
|
+
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
|
|
2004
|
+
}
|
|
2005
|
+
)
|
|
2006
|
+
}
|
|
2007
|
+
|
|
2008
|
+
getFriendByAddress = (
|
|
2009
|
+
args: GetFriendByAddressArgs,
|
|
2010
|
+
headers?: object,
|
|
2011
|
+
signal?: AbortSignal
|
|
2012
|
+
): Promise<GetFriendByAddressReturn> => {
|
|
2013
|
+
return this.fetch(this.url('GetFriendByAddress'), createHTTPRequest(args, headers, signal)).then(
|
|
2014
|
+
res => {
|
|
2015
|
+
return buildResponse(res).then(_data => {
|
|
2016
|
+
return {
|
|
2017
|
+
status: <boolean>_data.status,
|
|
2018
|
+
friend: <Friend>_data.friend
|
|
2019
|
+
}
|
|
2020
|
+
})
|
|
2021
|
+
},
|
|
2022
|
+
error => {
|
|
2023
|
+
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
|
|
2024
|
+
}
|
|
2025
|
+
)
|
|
2160
2026
|
}
|
|
2161
|
-
|
|
2027
|
+
|
|
2162
2028
|
searchFriends = (args: SearchFriendsArgs, headers?: object, signal?: AbortSignal): Promise<SearchFriendsReturn> => {
|
|
2163
|
-
return this.fetch(
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
}
|
|
2170
|
-
}
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2029
|
+
return this.fetch(this.url('SearchFriends'), createHTTPRequest(args, headers, signal)).then(
|
|
2030
|
+
res => {
|
|
2031
|
+
return buildResponse(res).then(_data => {
|
|
2032
|
+
return {
|
|
2033
|
+
friends: <Array<Friend>>_data.friends
|
|
2034
|
+
}
|
|
2035
|
+
})
|
|
2036
|
+
},
|
|
2037
|
+
error => {
|
|
2038
|
+
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
|
|
2039
|
+
}
|
|
2040
|
+
)
|
|
2174
2041
|
}
|
|
2175
|
-
|
|
2042
|
+
|
|
2176
2043
|
addFriend = (args: AddFriendArgs, headers?: object, signal?: AbortSignal): Promise<AddFriendReturn> => {
|
|
2177
|
-
return this.fetch(
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
}
|
|
2185
|
-
}
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2044
|
+
return this.fetch(this.url('AddFriend'), createHTTPRequest(args, headers, signal)).then(
|
|
2045
|
+
res => {
|
|
2046
|
+
return buildResponse(res).then(_data => {
|
|
2047
|
+
return {
|
|
2048
|
+
status: <boolean>_data.status,
|
|
2049
|
+
friend: <Friend>_data.friend
|
|
2050
|
+
}
|
|
2051
|
+
})
|
|
2052
|
+
},
|
|
2053
|
+
error => {
|
|
2054
|
+
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
|
|
2055
|
+
}
|
|
2056
|
+
)
|
|
2057
|
+
}
|
|
2058
|
+
|
|
2059
|
+
updateFriendNickname = (
|
|
2060
|
+
args: UpdateFriendNicknameArgs,
|
|
2061
|
+
headers?: object,
|
|
2062
|
+
signal?: AbortSignal
|
|
2063
|
+
): Promise<UpdateFriendNicknameReturn> => {
|
|
2064
|
+
return this.fetch(this.url('UpdateFriendNickname'), createHTTPRequest(args, headers, signal)).then(
|
|
2065
|
+
res => {
|
|
2066
|
+
return buildResponse(res).then(_data => {
|
|
2067
|
+
return {
|
|
2068
|
+
status: <boolean>_data.status,
|
|
2069
|
+
friend: <Friend>_data.friend
|
|
2070
|
+
}
|
|
2071
|
+
})
|
|
2072
|
+
},
|
|
2073
|
+
error => {
|
|
2074
|
+
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
|
|
2075
|
+
}
|
|
2076
|
+
)
|
|
2204
2077
|
}
|
|
2205
|
-
|
|
2078
|
+
|
|
2206
2079
|
removeFriend = (args: RemoveFriendArgs, headers?: object, signal?: AbortSignal): Promise<RemoveFriendReturn> => {
|
|
2207
|
-
return this.fetch(
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
}
|
|
2214
|
-
}
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2080
|
+
return this.fetch(this.url('RemoveFriend'), createHTTPRequest(args, headers, signal)).then(
|
|
2081
|
+
res => {
|
|
2082
|
+
return buildResponse(res).then(_data => {
|
|
2083
|
+
return {
|
|
2084
|
+
status: <boolean>_data.status
|
|
2085
|
+
}
|
|
2086
|
+
})
|
|
2087
|
+
},
|
|
2088
|
+
error => {
|
|
2089
|
+
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
|
|
2090
|
+
}
|
|
2091
|
+
)
|
|
2218
2092
|
}
|
|
2219
|
-
|
|
2093
|
+
|
|
2220
2094
|
contractCall = (args: ContractCallArgs, headers?: object, signal?: AbortSignal): Promise<ContractCallReturn> => {
|
|
2221
|
-
return this.fetch(
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
}
|
|
2228
|
-
}
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2095
|
+
return this.fetch(this.url('ContractCall'), createHTTPRequest(args, headers, signal)).then(
|
|
2096
|
+
res => {
|
|
2097
|
+
return buildResponse(res).then(_data => {
|
|
2098
|
+
return {
|
|
2099
|
+
returns: <Array<string>>_data.returns
|
|
2100
|
+
}
|
|
2101
|
+
})
|
|
2102
|
+
},
|
|
2103
|
+
error => {
|
|
2104
|
+
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
|
|
2105
|
+
}
|
|
2106
|
+
)
|
|
2107
|
+
}
|
|
2108
|
+
|
|
2109
|
+
decodeContractCall = (
|
|
2110
|
+
args: DecodeContractCallArgs,
|
|
2111
|
+
headers?: object,
|
|
2112
|
+
signal?: AbortSignal
|
|
2113
|
+
): Promise<DecodeContractCallReturn> => {
|
|
2114
|
+
return this.fetch(this.url('DecodeContractCall'), createHTTPRequest(args, headers, signal)).then(
|
|
2115
|
+
res => {
|
|
2116
|
+
return buildResponse(res).then(_data => {
|
|
2117
|
+
return {
|
|
2118
|
+
call: <ContractCall>_data.call
|
|
2119
|
+
}
|
|
2120
|
+
})
|
|
2121
|
+
},
|
|
2122
|
+
error => {
|
|
2123
|
+
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
|
|
2124
|
+
}
|
|
2125
|
+
)
|
|
2126
|
+
}
|
|
2127
|
+
|
|
2128
|
+
lookupContractCallSelectors = (
|
|
2129
|
+
args: LookupContractCallSelectorsArgs,
|
|
2130
|
+
headers?: object,
|
|
2131
|
+
signal?: AbortSignal
|
|
2132
|
+
): Promise<LookupContractCallSelectorsReturn> => {
|
|
2133
|
+
return this.fetch(this.url('LookupContractCallSelectors'), createHTTPRequest(args, headers, signal)).then(
|
|
2134
|
+
res => {
|
|
2135
|
+
return buildResponse(res).then(_data => {
|
|
2136
|
+
return {
|
|
2137
|
+
signatures: <Array<Array<string>>>_data.signatures
|
|
2138
|
+
}
|
|
2139
|
+
})
|
|
2140
|
+
},
|
|
2141
|
+
error => {
|
|
2142
|
+
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
|
|
2143
|
+
}
|
|
2144
|
+
)
|
|
2260
2145
|
}
|
|
2261
|
-
|
|
2146
|
+
|
|
2262
2147
|
userStorageFetch = (args: UserStorageFetchArgs, headers?: object, signal?: AbortSignal): Promise<UserStorageFetchReturn> => {
|
|
2263
|
-
return this.fetch(
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
}
|
|
2270
|
-
}
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2148
|
+
return this.fetch(this.url('UserStorageFetch'), createHTTPRequest(args, headers, signal)).then(
|
|
2149
|
+
res => {
|
|
2150
|
+
return buildResponse(res).then(_data => {
|
|
2151
|
+
return {
|
|
2152
|
+
object: <any>_data.object
|
|
2153
|
+
}
|
|
2154
|
+
})
|
|
2155
|
+
},
|
|
2156
|
+
error => {
|
|
2157
|
+
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
|
|
2158
|
+
}
|
|
2159
|
+
)
|
|
2274
2160
|
}
|
|
2275
|
-
|
|
2161
|
+
|
|
2276
2162
|
userStorageSave = (args: UserStorageSaveArgs, headers?: object, signal?: AbortSignal): Promise<UserStorageSaveReturn> => {
|
|
2277
|
-
return this.fetch(
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
}
|
|
2284
|
-
}
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2163
|
+
return this.fetch(this.url('UserStorageSave'), createHTTPRequest(args, headers, signal)).then(
|
|
2164
|
+
res => {
|
|
2165
|
+
return buildResponse(res).then(_data => {
|
|
2166
|
+
return {
|
|
2167
|
+
ok: <boolean>_data.ok
|
|
2168
|
+
}
|
|
2169
|
+
})
|
|
2170
|
+
},
|
|
2171
|
+
error => {
|
|
2172
|
+
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
|
|
2173
|
+
}
|
|
2174
|
+
)
|
|
2288
2175
|
}
|
|
2289
|
-
|
|
2176
|
+
|
|
2290
2177
|
userStorageDelete = (args: UserStorageDeleteArgs, headers?: object, signal?: AbortSignal): Promise<UserStorageDeleteReturn> => {
|
|
2291
|
-
return this.fetch(
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
}
|
|
2298
|
-
}
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2178
|
+
return this.fetch(this.url('UserStorageDelete'), createHTTPRequest(args, headers, signal)).then(
|
|
2179
|
+
res => {
|
|
2180
|
+
return buildResponse(res).then(_data => {
|
|
2181
|
+
return {
|
|
2182
|
+
ok: <boolean>_data.ok
|
|
2183
|
+
}
|
|
2184
|
+
})
|
|
2185
|
+
},
|
|
2186
|
+
error => {
|
|
2187
|
+
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
|
|
2188
|
+
}
|
|
2189
|
+
)
|
|
2190
|
+
}
|
|
2191
|
+
|
|
2192
|
+
userStorageFetchAll = (
|
|
2193
|
+
args: UserStorageFetchAllArgs,
|
|
2194
|
+
headers?: object,
|
|
2195
|
+
signal?: AbortSignal
|
|
2196
|
+
): Promise<UserStorageFetchAllReturn> => {
|
|
2197
|
+
return this.fetch(this.url('UserStorageFetchAll'), createHTTPRequest(args, headers, signal)).then(
|
|
2198
|
+
res => {
|
|
2199
|
+
return buildResponse(res).then(_data => {
|
|
2200
|
+
return {
|
|
2201
|
+
objects: <{ [key: string]: any }>_data.objects
|
|
2202
|
+
}
|
|
2203
|
+
})
|
|
2204
|
+
},
|
|
2205
|
+
error => {
|
|
2206
|
+
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
|
|
2207
|
+
}
|
|
2208
|
+
)
|
|
2316
2209
|
}
|
|
2317
|
-
|
|
2210
|
+
|
|
2318
2211
|
getMoonpayLink = (args: GetMoonpayLinkArgs, headers?: object, signal?: AbortSignal): Promise<GetMoonpayLinkReturn> => {
|
|
2319
|
-
return this.fetch(
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
}
|
|
2326
|
-
}
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2212
|
+
return this.fetch(this.url('GetMoonpayLink'), createHTTPRequest(args, headers, signal)).then(
|
|
2213
|
+
res => {
|
|
2214
|
+
return buildResponse(res).then(_data => {
|
|
2215
|
+
return {
|
|
2216
|
+
signedUrl: <string>_data.signedUrl
|
|
2217
|
+
}
|
|
2218
|
+
})
|
|
2219
|
+
},
|
|
2220
|
+
error => {
|
|
2221
|
+
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
|
|
2222
|
+
}
|
|
2223
|
+
)
|
|
2330
2224
|
}
|
|
2331
|
-
|
|
2225
|
+
|
|
2332
2226
|
resolveENSAddress = (args: ResolveENSAddressArgs, headers?: object, signal?: AbortSignal): Promise<ResolveENSAddressReturn> => {
|
|
2333
|
-
return this.fetch(
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
}
|
|
2341
|
-
}
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2227
|
+
return this.fetch(this.url('ResolveENSAddress'), createHTTPRequest(args, headers, signal)).then(
|
|
2228
|
+
res => {
|
|
2229
|
+
return buildResponse(res).then(_data => {
|
|
2230
|
+
return {
|
|
2231
|
+
address: <string>_data.address,
|
|
2232
|
+
ok: <boolean>_data.ok
|
|
2233
|
+
}
|
|
2234
|
+
})
|
|
2235
|
+
},
|
|
2236
|
+
error => {
|
|
2237
|
+
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
|
|
2238
|
+
}
|
|
2239
|
+
)
|
|
2345
2240
|
}
|
|
2346
|
-
|
|
2241
|
+
|
|
2347
2242
|
isValidSignature = (args: IsValidSignatureArgs, headers?: object, signal?: AbortSignal): Promise<IsValidSignatureReturn> => {
|
|
2348
|
-
return this.fetch(
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
}
|
|
2355
|
-
}
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
|
|
2243
|
+
return this.fetch(this.url('IsValidSignature'), createHTTPRequest(args, headers, signal)).then(
|
|
2244
|
+
res => {
|
|
2245
|
+
return buildResponse(res).then(_data => {
|
|
2246
|
+
return {
|
|
2247
|
+
isValid: <boolean>_data.isValid
|
|
2248
|
+
}
|
|
2249
|
+
})
|
|
2250
|
+
},
|
|
2251
|
+
error => {
|
|
2252
|
+
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
|
|
2253
|
+
}
|
|
2254
|
+
)
|
|
2255
|
+
}
|
|
2256
|
+
|
|
2257
|
+
isValidMessageSignature = (
|
|
2258
|
+
args: IsValidMessageSignatureArgs,
|
|
2259
|
+
headers?: object,
|
|
2260
|
+
signal?: AbortSignal
|
|
2261
|
+
): Promise<IsValidMessageSignatureReturn> => {
|
|
2262
|
+
return this.fetch(this.url('IsValidMessageSignature'), createHTTPRequest(args, headers, signal)).then(
|
|
2263
|
+
res => {
|
|
2264
|
+
return buildResponse(res).then(_data => {
|
|
2265
|
+
return {
|
|
2266
|
+
isValid: <boolean>_data.isValid
|
|
2267
|
+
}
|
|
2268
|
+
})
|
|
2269
|
+
},
|
|
2270
|
+
error => {
|
|
2271
|
+
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
|
|
2272
|
+
}
|
|
2273
|
+
)
|
|
2274
|
+
}
|
|
2275
|
+
|
|
2276
|
+
isValidTypedDataSignature = (
|
|
2277
|
+
args: IsValidTypedDataSignatureArgs,
|
|
2278
|
+
headers?: object,
|
|
2279
|
+
signal?: AbortSignal
|
|
2280
|
+
): Promise<IsValidTypedDataSignatureReturn> => {
|
|
2281
|
+
return this.fetch(this.url('IsValidTypedDataSignature'), createHTTPRequest(args, headers, signal)).then(
|
|
2282
|
+
res => {
|
|
2283
|
+
return buildResponse(res).then(_data => {
|
|
2284
|
+
return {
|
|
2285
|
+
isValid: <boolean>_data.isValid
|
|
2286
|
+
}
|
|
2287
|
+
})
|
|
2288
|
+
},
|
|
2289
|
+
error => {
|
|
2290
|
+
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
|
|
2291
|
+
}
|
|
2292
|
+
)
|
|
2293
|
+
}
|
|
2294
|
+
|
|
2295
|
+
isValidETHAuthProof = (
|
|
2296
|
+
args: IsValidETHAuthProofArgs,
|
|
2297
|
+
headers?: object,
|
|
2298
|
+
signal?: AbortSignal
|
|
2299
|
+
): Promise<IsValidETHAuthProofReturn> => {
|
|
2300
|
+
return this.fetch(this.url('IsValidETHAuthProof'), createHTTPRequest(args, headers, signal)).then(
|
|
2301
|
+
res => {
|
|
2302
|
+
return buildResponse(res).then(_data => {
|
|
2303
|
+
return {
|
|
2304
|
+
isValid: <boolean>_data.isValid
|
|
2305
|
+
}
|
|
2306
|
+
})
|
|
2307
|
+
},
|
|
2308
|
+
error => {
|
|
2309
|
+
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
|
|
2310
|
+
}
|
|
2311
|
+
)
|
|
2401
2312
|
}
|
|
2402
|
-
|
|
2313
|
+
|
|
2403
2314
|
getOnRampURL = (args: GetOnRampURLArgs, headers?: object, signal?: AbortSignal): Promise<GetOnRampURLReturn> => {
|
|
2404
|
-
return this.fetch(
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
}
|
|
2411
|
-
}
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
sardineGetClientToken = (headers?: object, signal?: AbortSignal): Promise<SardineGetClientTokenReturn> => {
|
|
2418
|
-
return this.fetch(
|
|
2419
|
-
this.url('SardineGetClientToken'),
|
|
2420
|
-
createHTTPRequest({}, headers, signal)
|
|
2421
|
-
).then((res) => {
|
|
2422
|
-
return buildResponse(res).then(_data => {
|
|
2423
|
-
return {
|
|
2424
|
-
token: <string>(_data.token),
|
|
2425
|
-
}
|
|
2426
|
-
})
|
|
2427
|
-
}, (error) => {
|
|
2428
|
-
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
|
|
2429
|
-
})
|
|
2430
|
-
}
|
|
2431
|
-
|
|
2432
|
-
sardineGetNFTCheckoutToken = (args: SardineGetNFTCheckoutTokenArgs, headers?: object, signal?: AbortSignal): Promise<SardineGetNFTCheckoutTokenReturn> => {
|
|
2433
|
-
return this.fetch(
|
|
2434
|
-
this.url('SardineGetNFTCheckoutToken'),
|
|
2435
|
-
createHTTPRequest(args, headers, signal)).then((res) => {
|
|
2436
|
-
return buildResponse(res).then(_data => {
|
|
2437
|
-
return {
|
|
2438
|
-
resp: <SardineNFTCheckout>(_data.resp),
|
|
2439
|
-
}
|
|
2440
|
-
})
|
|
2441
|
-
}, (error) => {
|
|
2442
|
-
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
|
|
2443
|
-
})
|
|
2444
|
-
}
|
|
2445
|
-
|
|
2446
|
-
sardineGetNFTCheckoutOrderStatus = (args: SardineGetNFTCheckoutOrderStatusArgs, headers?: object, signal?: AbortSignal): Promise<SardineGetNFTCheckoutOrderStatusReturn> => {
|
|
2447
|
-
return this.fetch(
|
|
2448
|
-
this.url('SardineGetNFTCheckoutOrderStatus'),
|
|
2449
|
-
createHTTPRequest(args, headers, signal)).then((res) => {
|
|
2450
|
-
return buildResponse(res).then(_data => {
|
|
2451
|
-
return {
|
|
2452
|
-
resp: <SardineOrder>(_data.resp),
|
|
2453
|
-
}
|
|
2454
|
-
})
|
|
2455
|
-
}, (error) => {
|
|
2456
|
-
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
|
|
2457
|
-
})
|
|
2458
|
-
}
|
|
2459
|
-
|
|
2460
|
-
sardineGetSupportedRegions = (headers?: object, signal?: AbortSignal): Promise<SardineGetSupportedRegionsReturn> => {
|
|
2461
|
-
return this.fetch(
|
|
2462
|
-
this.url('SardineGetSupportedRegions'),
|
|
2463
|
-
createHTTPRequest({}, headers, signal)
|
|
2464
|
-
).then((res) => {
|
|
2465
|
-
return buildResponse(res).then(_data => {
|
|
2466
|
-
return {
|
|
2467
|
-
regions: <Array<SardineRegion>>(_data.regions),
|
|
2468
|
-
}
|
|
2469
|
-
})
|
|
2470
|
-
}, (error) => {
|
|
2471
|
-
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
|
|
2472
|
-
})
|
|
2473
|
-
}
|
|
2474
|
-
|
|
2475
|
-
sardineGetSupportedFiatCurrencies = (headers?: object, signal?: AbortSignal): Promise<SardineGetSupportedFiatCurrenciesReturn> => {
|
|
2476
|
-
return this.fetch(
|
|
2477
|
-
this.url('SardineGetSupportedFiatCurrencies'),
|
|
2478
|
-
createHTTPRequest({}, headers, signal)
|
|
2479
|
-
).then((res) => {
|
|
2480
|
-
return buildResponse(res).then(_data => {
|
|
2481
|
-
return {
|
|
2482
|
-
tokens: <Array<SardineFiatCurrency>>(_data.tokens),
|
|
2483
|
-
}
|
|
2484
|
-
})
|
|
2485
|
-
}, (error) => {
|
|
2486
|
-
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
|
|
2487
|
-
})
|
|
2488
|
-
}
|
|
2489
|
-
|
|
2490
|
-
sardineGetSupportedTokens = (headers?: object, signal?: AbortSignal): Promise<SardineGetSupportedTokensReturn> => {
|
|
2491
|
-
return this.fetch(
|
|
2492
|
-
this.url('SardineGetSupportedTokens'),
|
|
2493
|
-
createHTTPRequest({}, headers, signal)
|
|
2494
|
-
).then((res) => {
|
|
2495
|
-
return buildResponse(res).then(_data => {
|
|
2496
|
-
return {
|
|
2497
|
-
tokens: <Array<SardineSupportedToken>>(_data.tokens),
|
|
2498
|
-
}
|
|
2499
|
-
})
|
|
2500
|
-
}, (error) => {
|
|
2501
|
-
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
|
|
2502
|
-
})
|
|
2503
|
-
}
|
|
2504
|
-
|
|
2505
|
-
sardineGetSupportedTokenForSwap = (args: SardineGetSupportedTokenForSwapArgs, headers?: object, signal?: AbortSignal): Promise<SardineGetSupportedTokenForSwapReturn> => {
|
|
2506
|
-
return this.fetch(
|
|
2507
|
-
this.url('SardineGetSupportedTokenForSwap'),
|
|
2508
|
-
createHTTPRequest(args, headers, signal)).then((res) => {
|
|
2509
|
-
return buildResponse(res).then(_data => {
|
|
2510
|
-
return {
|
|
2511
|
-
token: <SardineSupportedTokenForSwap>(_data.token),
|
|
2512
|
-
}
|
|
2513
|
-
})
|
|
2514
|
-
}, (error) => {
|
|
2515
|
-
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
|
|
2516
|
-
})
|
|
2517
|
-
}
|
|
2518
|
-
|
|
2519
|
-
sardineGetEnabledTokens = (headers?: object, signal?: AbortSignal): Promise<SardineGetEnabledTokensReturn> => {
|
|
2520
|
-
return this.fetch(
|
|
2521
|
-
this.url('SardineGetEnabledTokens'),
|
|
2522
|
-
createHTTPRequest({}, headers, signal)
|
|
2523
|
-
).then((res) => {
|
|
2524
|
-
return buildResponse(res).then(_data => {
|
|
2525
|
-
return {
|
|
2526
|
-
tokens: <Array<SardineEnabledToken>>(_data.tokens),
|
|
2527
|
-
}
|
|
2528
|
-
})
|
|
2529
|
-
}, (error) => {
|
|
2530
|
-
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
|
|
2531
|
-
})
|
|
2532
|
-
}
|
|
2533
|
-
|
|
2534
|
-
sardineGetQuote = (args: SardineGetQuoteArgs, headers?: object, signal?: AbortSignal): Promise<SardineGetQuoteReturn> => {
|
|
2535
|
-
return this.fetch(
|
|
2536
|
-
this.url('SardineGetQuote'),
|
|
2537
|
-
createHTTPRequest(args, headers, signal)).then((res) => {
|
|
2538
|
-
return buildResponse(res).then(_data => {
|
|
2539
|
-
return {
|
|
2540
|
-
quote: <SardineQuote>(_data.quote),
|
|
2541
|
-
}
|
|
2542
|
-
})
|
|
2543
|
-
}, (error) => {
|
|
2544
|
-
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
|
|
2545
|
-
})
|
|
2546
|
-
}
|
|
2547
|
-
|
|
2548
|
-
getSardineClientToken = (headers?: object, signal?: AbortSignal): Promise<GetSardineClientTokenReturn> => {
|
|
2549
|
-
return this.fetch(
|
|
2550
|
-
this.url('GetSardineClientToken'),
|
|
2551
|
-
createHTTPRequest({}, headers, signal)
|
|
2552
|
-
).then((res) => {
|
|
2553
|
-
return buildResponse(res).then(_data => {
|
|
2554
|
-
return {
|
|
2555
|
-
token: <string>(_data.token),
|
|
2556
|
-
}
|
|
2557
|
-
})
|
|
2558
|
-
}, (error) => {
|
|
2559
|
-
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
|
|
2560
|
-
})
|
|
2561
|
-
}
|
|
2562
|
-
|
|
2563
|
-
getSardineNFTCheckoutToken = (args: GetSardineNFTCheckoutTokenArgs, headers?: object, signal?: AbortSignal): Promise<GetSardineNFTCheckoutTokenReturn> => {
|
|
2564
|
-
return this.fetch(
|
|
2565
|
-
this.url('GetSardineNFTCheckoutToken'),
|
|
2566
|
-
createHTTPRequest(args, headers, signal)).then((res) => {
|
|
2567
|
-
return buildResponse(res).then(_data => {
|
|
2568
|
-
return {
|
|
2569
|
-
resp: <SardineNFTCheckout>(_data.resp),
|
|
2570
|
-
}
|
|
2571
|
-
})
|
|
2572
|
-
}, (error) => {
|
|
2573
|
-
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
|
|
2574
|
-
})
|
|
2575
|
-
}
|
|
2576
|
-
|
|
2577
|
-
getSardineNFTCheckoutOrderStatus = (args: GetSardineNFTCheckoutOrderStatusArgs, headers?: object, signal?: AbortSignal): Promise<GetSardineNFTCheckoutOrderStatusReturn> => {
|
|
2578
|
-
return this.fetch(
|
|
2579
|
-
this.url('GetSardineNFTCheckoutOrderStatus'),
|
|
2580
|
-
createHTTPRequest(args, headers, signal)).then((res) => {
|
|
2581
|
-
return buildResponse(res).then(_data => {
|
|
2582
|
-
return {
|
|
2583
|
-
resp: <SardineOrder>(_data.resp),
|
|
2584
|
-
}
|
|
2585
|
-
})
|
|
2586
|
-
}, (error) => {
|
|
2587
|
-
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
|
|
2588
|
-
})
|
|
2315
|
+
return this.fetch(this.url('GetOnRampURL'), createHTTPRequest(args, headers, signal)).then(
|
|
2316
|
+
res => {
|
|
2317
|
+
return buildResponse(res).then(_data => {
|
|
2318
|
+
return {
|
|
2319
|
+
url: <string>_data.url
|
|
2320
|
+
}
|
|
2321
|
+
})
|
|
2322
|
+
},
|
|
2323
|
+
error => {
|
|
2324
|
+
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
|
|
2325
|
+
}
|
|
2326
|
+
)
|
|
2589
2327
|
}
|
|
2590
|
-
|
|
2328
|
+
|
|
2591
2329
|
transakGetCountries = (headers?: object, signal?: AbortSignal): Promise<TransakGetCountriesReturn> => {
|
|
2592
|
-
return this.fetch(
|
|
2593
|
-
|
|
2594
|
-
|
|
2595
|
-
|
|
2596
|
-
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
|
|
2601
|
-
|
|
2602
|
-
|
|
2603
|
-
|
|
2330
|
+
return this.fetch(this.url('TransakGetCountries'), createHTTPRequest({}, headers, signal)).then(
|
|
2331
|
+
res => {
|
|
2332
|
+
return buildResponse(res).then(_data => {
|
|
2333
|
+
return {
|
|
2334
|
+
regions: <Array<TransakCountry>>_data.regions
|
|
2335
|
+
}
|
|
2336
|
+
})
|
|
2337
|
+
},
|
|
2338
|
+
error => {
|
|
2339
|
+
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
|
|
2340
|
+
}
|
|
2341
|
+
)
|
|
2604
2342
|
}
|
|
2605
|
-
|
|
2343
|
+
|
|
2606
2344
|
transakGetCryptoCurrencies = (headers?: object, signal?: AbortSignal): Promise<TransakGetCryptoCurrenciesReturn> => {
|
|
2607
|
-
return this.fetch(
|
|
2608
|
-
|
|
2609
|
-
|
|
2610
|
-
|
|
2611
|
-
|
|
2612
|
-
|
|
2613
|
-
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
|
|
2618
|
-
|
|
2345
|
+
return this.fetch(this.url('TransakGetCryptoCurrencies'), createHTTPRequest({}, headers, signal)).then(
|
|
2346
|
+
res => {
|
|
2347
|
+
return buildResponse(res).then(_data => {
|
|
2348
|
+
return {
|
|
2349
|
+
currencies: <Array<TransakCryptoCurrency>>_data.currencies
|
|
2350
|
+
}
|
|
2351
|
+
})
|
|
2352
|
+
},
|
|
2353
|
+
error => {
|
|
2354
|
+
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
|
|
2355
|
+
}
|
|
2356
|
+
)
|
|
2619
2357
|
}
|
|
2620
|
-
|
|
2358
|
+
|
|
2621
2359
|
transakGetFiatCurrencies = (headers?: object, signal?: AbortSignal): Promise<TransakGetFiatCurrenciesReturn> => {
|
|
2622
|
-
return this.fetch(
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
|
|
2626
|
-
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
|
|
2360
|
+
return this.fetch(this.url('TransakGetFiatCurrencies'), createHTTPRequest({}, headers, signal)).then(
|
|
2361
|
+
res => {
|
|
2362
|
+
return buildResponse(res).then(_data => {
|
|
2363
|
+
return {
|
|
2364
|
+
currencies: <Array<TransakFiatCurrency>>_data.currencies
|
|
2365
|
+
}
|
|
2366
|
+
})
|
|
2367
|
+
},
|
|
2368
|
+
error => {
|
|
2369
|
+
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
|
|
2370
|
+
}
|
|
2371
|
+
)
|
|
2634
2372
|
}
|
|
2635
|
-
|
|
2373
|
+
|
|
2636
2374
|
transakGetPrice = (args: TransakGetPriceArgs, headers?: object, signal?: AbortSignal): Promise<TransakGetPriceReturn> => {
|
|
2637
|
-
return this.fetch(
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
|
|
2642
|
-
|
|
2643
|
-
}
|
|
2644
|
-
}
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
|
|
2648
|
-
|
|
2649
|
-
|
|
2650
|
-
|
|
2651
|
-
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
|
-
|
|
2375
|
+
return this.fetch(this.url('TransakGetPrice'), createHTTPRequest(args, headers, signal)).then(
|
|
2376
|
+
res => {
|
|
2377
|
+
return buildResponse(res).then(_data => {
|
|
2378
|
+
return {
|
|
2379
|
+
price: <TransakPrice>_data.price
|
|
2380
|
+
}
|
|
2381
|
+
})
|
|
2382
|
+
},
|
|
2383
|
+
error => {
|
|
2384
|
+
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
|
|
2385
|
+
}
|
|
2386
|
+
)
|
|
2387
|
+
}
|
|
2388
|
+
|
|
2389
|
+
transakGetSupportedNFTCheckoutChains = (
|
|
2390
|
+
headers?: object,
|
|
2391
|
+
signal?: AbortSignal
|
|
2392
|
+
): Promise<TransakGetSupportedNFTCheckoutChainsReturn> => {
|
|
2393
|
+
return this.fetch(this.url('TransakGetSupportedNFTCheckoutChains'), createHTTPRequest({}, headers, signal)).then(
|
|
2394
|
+
res => {
|
|
2395
|
+
return buildResponse(res).then(_data => {
|
|
2396
|
+
return {
|
|
2397
|
+
chains: <Array<TransakChain>>_data.chains
|
|
2398
|
+
}
|
|
2399
|
+
})
|
|
2400
|
+
},
|
|
2401
|
+
error => {
|
|
2402
|
+
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
|
|
2403
|
+
}
|
|
2404
|
+
)
|
|
2405
|
+
}
|
|
2406
|
+
|
|
2407
|
+
transakGetWidgetURL = (
|
|
2408
|
+
args: TransakGetWidgetURLArgs,
|
|
2409
|
+
headers?: object,
|
|
2410
|
+
signal?: AbortSignal
|
|
2411
|
+
): Promise<TransakGetWidgetURLReturn> => {
|
|
2412
|
+
return this.fetch(this.url('TransakGetWidgetURL'), createHTTPRequest(args, headers, signal)).then(
|
|
2413
|
+
res => {
|
|
2414
|
+
return buildResponse(res).then(_data => {
|
|
2415
|
+
return {
|
|
2416
|
+
url: <string>_data.url
|
|
2417
|
+
}
|
|
2418
|
+
})
|
|
2419
|
+
},
|
|
2420
|
+
error => {
|
|
2421
|
+
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
|
|
2422
|
+
}
|
|
2423
|
+
)
|
|
2663
2424
|
}
|
|
2664
|
-
|
|
2425
|
+
|
|
2665
2426
|
getCoinPrices = (args: GetCoinPricesArgs, headers?: object, signal?: AbortSignal): Promise<GetCoinPricesReturn> => {
|
|
2666
|
-
return this.fetch(
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
|
|
2670
|
-
|
|
2671
|
-
|
|
2672
|
-
}
|
|
2673
|
-
}
|
|
2674
|
-
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
|
|
2681
|
-
|
|
2682
|
-
|
|
2683
|
-
|
|
2684
|
-
|
|
2685
|
-
|
|
2686
|
-
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
|
|
2427
|
+
return this.fetch(this.url('GetCoinPrices'), createHTTPRequest(args, headers, signal)).then(
|
|
2428
|
+
res => {
|
|
2429
|
+
return buildResponse(res).then(_data => {
|
|
2430
|
+
return {
|
|
2431
|
+
tokenPrices: <Array<TokenPrice>>_data.tokenPrices
|
|
2432
|
+
}
|
|
2433
|
+
})
|
|
2434
|
+
},
|
|
2435
|
+
error => {
|
|
2436
|
+
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
|
|
2437
|
+
}
|
|
2438
|
+
)
|
|
2439
|
+
}
|
|
2440
|
+
|
|
2441
|
+
getCollectiblePrices = (
|
|
2442
|
+
args: GetCollectiblePricesArgs,
|
|
2443
|
+
headers?: object,
|
|
2444
|
+
signal?: AbortSignal
|
|
2445
|
+
): Promise<GetCollectiblePricesReturn> => {
|
|
2446
|
+
return this.fetch(this.url('GetCollectiblePrices'), createHTTPRequest(args, headers, signal)).then(
|
|
2447
|
+
res => {
|
|
2448
|
+
return buildResponse(res).then(_data => {
|
|
2449
|
+
return {
|
|
2450
|
+
tokenPrices: <Array<TokenPrice>>_data.tokenPrices
|
|
2451
|
+
}
|
|
2452
|
+
})
|
|
2453
|
+
},
|
|
2454
|
+
error => {
|
|
2455
|
+
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
|
|
2456
|
+
}
|
|
2457
|
+
)
|
|
2691
2458
|
}
|
|
2692
|
-
|
|
2459
|
+
|
|
2693
2460
|
getExchangeRate = (args: GetExchangeRateArgs, headers?: object, signal?: AbortSignal): Promise<GetExchangeRateReturn> => {
|
|
2694
|
-
return this.fetch(
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
}
|
|
2701
|
-
}
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
2461
|
+
return this.fetch(this.url('GetExchangeRate'), createHTTPRequest(args, headers, signal)).then(
|
|
2462
|
+
res => {
|
|
2463
|
+
return buildResponse(res).then(_data => {
|
|
2464
|
+
return {
|
|
2465
|
+
exchangeRate: <ExchangeRate>_data.exchangeRate
|
|
2466
|
+
}
|
|
2467
|
+
})
|
|
2468
|
+
},
|
|
2469
|
+
error => {
|
|
2470
|
+
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
|
|
2471
|
+
}
|
|
2472
|
+
)
|
|
2705
2473
|
}
|
|
2706
|
-
|
|
2474
|
+
|
|
2707
2475
|
memoryStore = (args: MemoryStoreArgs, headers?: object, signal?: AbortSignal): Promise<MemoryStoreReturn> => {
|
|
2708
|
-
return this.fetch(
|
|
2709
|
-
|
|
2710
|
-
|
|
2711
|
-
|
|
2712
|
-
|
|
2713
|
-
|
|
2714
|
-
}
|
|
2715
|
-
}
|
|
2716
|
-
|
|
2717
|
-
|
|
2718
|
-
|
|
2476
|
+
return this.fetch(this.url('MemoryStore'), createHTTPRequest(args, headers, signal)).then(
|
|
2477
|
+
res => {
|
|
2478
|
+
return buildResponse(res).then(_data => {
|
|
2479
|
+
return {
|
|
2480
|
+
ok: <boolean>_data.ok
|
|
2481
|
+
}
|
|
2482
|
+
})
|
|
2483
|
+
},
|
|
2484
|
+
error => {
|
|
2485
|
+
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
|
|
2486
|
+
}
|
|
2487
|
+
)
|
|
2719
2488
|
}
|
|
2720
|
-
|
|
2489
|
+
|
|
2721
2490
|
memoryLoad = (args: MemoryLoadArgs, headers?: object, signal?: AbortSignal): Promise<MemoryLoadReturn> => {
|
|
2722
|
-
return this.fetch(
|
|
2723
|
-
|
|
2724
|
-
|
|
2725
|
-
|
|
2726
|
-
|
|
2727
|
-
|
|
2728
|
-
}
|
|
2729
|
-
}
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
|
|
2491
|
+
return this.fetch(this.url('MemoryLoad'), createHTTPRequest(args, headers, signal)).then(
|
|
2492
|
+
res => {
|
|
2493
|
+
return buildResponse(res).then(_data => {
|
|
2494
|
+
return {
|
|
2495
|
+
value: <string>_data.value
|
|
2496
|
+
}
|
|
2497
|
+
})
|
|
2498
|
+
},
|
|
2499
|
+
error => {
|
|
2500
|
+
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
|
|
2501
|
+
}
|
|
2502
|
+
)
|
|
2733
2503
|
}
|
|
2734
|
-
|
|
2504
|
+
|
|
2735
2505
|
getInviteInfo = (headers?: object, signal?: AbortSignal): Promise<GetInviteInfoReturn> => {
|
|
2736
|
-
return this.fetch(
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
|
-
|
|
2740
|
-
|
|
2741
|
-
|
|
2742
|
-
|
|
2743
|
-
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
|
|
2747
|
-
|
|
2506
|
+
return this.fetch(this.url('GetInviteInfo'), createHTTPRequest({}, headers, signal)).then(
|
|
2507
|
+
res => {
|
|
2508
|
+
return buildResponse(res).then(_data => {
|
|
2509
|
+
return {
|
|
2510
|
+
inviteInfo: <InviteInfo>_data.inviteInfo
|
|
2511
|
+
}
|
|
2512
|
+
})
|
|
2513
|
+
},
|
|
2514
|
+
error => {
|
|
2515
|
+
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
|
|
2516
|
+
}
|
|
2517
|
+
)
|
|
2748
2518
|
}
|
|
2749
|
-
|
|
2519
|
+
|
|
2750
2520
|
isValidAccessCode = (args: IsValidAccessCodeArgs, headers?: object, signal?: AbortSignal): Promise<IsValidAccessCodeReturn> => {
|
|
2751
|
-
return this.fetch(
|
|
2752
|
-
|
|
2753
|
-
|
|
2754
|
-
|
|
2755
|
-
|
|
2756
|
-
|
|
2757
|
-
}
|
|
2758
|
-
}
|
|
2759
|
-
|
|
2760
|
-
|
|
2761
|
-
|
|
2762
|
-
|
|
2763
|
-
|
|
2764
|
-
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
|
|
2521
|
+
return this.fetch(this.url('IsValidAccessCode'), createHTTPRequest(args, headers, signal)).then(
|
|
2522
|
+
res => {
|
|
2523
|
+
return buildResponse(res).then(_data => {
|
|
2524
|
+
return {
|
|
2525
|
+
status: <boolean>_data.status
|
|
2526
|
+
}
|
|
2527
|
+
})
|
|
2528
|
+
},
|
|
2529
|
+
error => {
|
|
2530
|
+
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
|
|
2531
|
+
}
|
|
2532
|
+
)
|
|
2533
|
+
}
|
|
2534
|
+
|
|
2535
|
+
internalClaimAccessCode = (
|
|
2536
|
+
args: InternalClaimAccessCodeArgs,
|
|
2537
|
+
headers?: object,
|
|
2538
|
+
signal?: AbortSignal
|
|
2539
|
+
): Promise<InternalClaimAccessCodeReturn> => {
|
|
2540
|
+
return this.fetch(this.url('InternalClaimAccessCode'), createHTTPRequest(args, headers, signal)).then(
|
|
2541
|
+
res => {
|
|
2542
|
+
return buildResponse(res).then(_data => {
|
|
2543
|
+
return {
|
|
2544
|
+
status: <boolean>_data.status
|
|
2545
|
+
}
|
|
2546
|
+
})
|
|
2547
|
+
},
|
|
2548
|
+
error => {
|
|
2549
|
+
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
|
|
2550
|
+
}
|
|
2551
|
+
)
|
|
2776
2552
|
}
|
|
2777
|
-
|
|
2553
|
+
|
|
2778
2554
|
blockNumberAtTime = (args: BlockNumberAtTimeArgs, headers?: object, signal?: AbortSignal): Promise<BlockNumberAtTimeReturn> => {
|
|
2779
|
-
return this.fetch(
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
}
|
|
2786
|
-
}
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
|
|
2793
|
-
|
|
2794
|
-
|
|
2795
|
-
|
|
2796
|
-
|
|
2797
|
-
|
|
2798
|
-
|
|
2799
|
-
|
|
2800
|
-
|
|
2801
|
-
|
|
2802
|
-
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
|
|
2806
|
-
|
|
2807
|
-
|
|
2808
|
-
|
|
2809
|
-
|
|
2810
|
-
|
|
2811
|
-
|
|
2812
|
-
|
|
2813
|
-
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
|
|
2555
|
+
return this.fetch(this.url('BlockNumberAtTime'), createHTTPRequest(args, headers, signal)).then(
|
|
2556
|
+
res => {
|
|
2557
|
+
return buildResponse(res).then(_data => {
|
|
2558
|
+
return {
|
|
2559
|
+
blocks: <Array<number>>_data.blocks
|
|
2560
|
+
}
|
|
2561
|
+
})
|
|
2562
|
+
},
|
|
2563
|
+
error => {
|
|
2564
|
+
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
|
|
2565
|
+
}
|
|
2566
|
+
)
|
|
2567
|
+
}
|
|
2568
|
+
|
|
2569
|
+
paperSessionSecret = (
|
|
2570
|
+
args: PaperSessionSecretArgs,
|
|
2571
|
+
headers?: object,
|
|
2572
|
+
signal?: AbortSignal
|
|
2573
|
+
): Promise<PaperSessionSecretReturn> => {
|
|
2574
|
+
return this.fetch(this.url('PaperSessionSecret'), createHTTPRequest(args, headers, signal)).then(
|
|
2575
|
+
res => {
|
|
2576
|
+
return buildResponse(res).then(_data => {
|
|
2577
|
+
return {
|
|
2578
|
+
secret: <string>_data.secret
|
|
2579
|
+
}
|
|
2580
|
+
})
|
|
2581
|
+
},
|
|
2582
|
+
error => {
|
|
2583
|
+
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
|
|
2584
|
+
}
|
|
2585
|
+
)
|
|
2586
|
+
}
|
|
2587
|
+
|
|
2588
|
+
paperSessionSecret2 = (
|
|
2589
|
+
args: PaperSessionSecret2Args,
|
|
2590
|
+
headers?: object,
|
|
2591
|
+
signal?: AbortSignal
|
|
2592
|
+
): Promise<PaperSessionSecret2Return> => {
|
|
2593
|
+
return this.fetch(this.url('PaperSessionSecret2'), createHTTPRequest(args, headers, signal)).then(
|
|
2594
|
+
res => {
|
|
2595
|
+
return buildResponse(res).then(_data => {
|
|
2596
|
+
return {
|
|
2597
|
+
secret: <string>_data.secret
|
|
2598
|
+
}
|
|
2599
|
+
})
|
|
2600
|
+
},
|
|
2601
|
+
error => {
|
|
2602
|
+
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
|
|
2603
|
+
}
|
|
2604
|
+
)
|
|
2818
2605
|
}
|
|
2819
|
-
|
|
2606
|
+
|
|
2820
2607
|
linkWallet = (args: LinkWalletArgs, headers?: object, signal?: AbortSignal): Promise<LinkWalletReturn> => {
|
|
2821
|
-
return this.fetch(
|
|
2822
|
-
|
|
2823
|
-
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
|
|
2827
|
-
}
|
|
2828
|
-
}
|
|
2829
|
-
|
|
2830
|
-
|
|
2831
|
-
|
|
2608
|
+
return this.fetch(this.url('LinkWallet'), createHTTPRequest(args, headers, signal)).then(
|
|
2609
|
+
res => {
|
|
2610
|
+
return buildResponse(res).then(_data => {
|
|
2611
|
+
return {
|
|
2612
|
+
status: <boolean>_data.status
|
|
2613
|
+
}
|
|
2614
|
+
})
|
|
2615
|
+
},
|
|
2616
|
+
error => {
|
|
2617
|
+
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
|
|
2618
|
+
}
|
|
2619
|
+
)
|
|
2832
2620
|
}
|
|
2833
|
-
|
|
2621
|
+
|
|
2834
2622
|
getLinkedWallets = (args: GetLinkedWalletsArgs, headers?: object, signal?: AbortSignal): Promise<GetLinkedWalletsReturn> => {
|
|
2835
|
-
return this.fetch(
|
|
2836
|
-
|
|
2837
|
-
|
|
2838
|
-
|
|
2839
|
-
|
|
2840
|
-
|
|
2841
|
-
}
|
|
2842
|
-
}
|
|
2843
|
-
|
|
2844
|
-
|
|
2845
|
-
|
|
2846
|
-
|
|
2847
|
-
|
|
2848
|
-
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
|
|
2855
|
-
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
|
|
2864
|
-
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
|
|
2880
|
-
|
|
2881
|
-
|
|
2882
|
-
|
|
2883
|
-
|
|
2884
|
-
|
|
2885
|
-
|
|
2886
|
-
|
|
2887
|
-
|
|
2888
|
-
|
|
2889
|
-
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
|
|
2894
|
-
|
|
2895
|
-
|
|
2896
|
-
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
}
|
|
2900
|
-
}
|
|
2901
|
-
|
|
2902
|
-
|
|
2903
|
-
|
|
2623
|
+
return this.fetch(this.url('GetLinkedWallets'), createHTTPRequest(args, headers, signal)).then(
|
|
2624
|
+
res => {
|
|
2625
|
+
return buildResponse(res).then(_data => {
|
|
2626
|
+
return {
|
|
2627
|
+
linkedWallets: <Array<LinkedWallet>>_data.linkedWallets
|
|
2628
|
+
}
|
|
2629
|
+
})
|
|
2630
|
+
},
|
|
2631
|
+
error => {
|
|
2632
|
+
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
|
|
2633
|
+
}
|
|
2634
|
+
)
|
|
2635
|
+
}
|
|
2636
|
+
|
|
2637
|
+
removeLinkedWallet = (
|
|
2638
|
+
args: RemoveLinkedWalletArgs,
|
|
2639
|
+
headers?: object,
|
|
2640
|
+
signal?: AbortSignal
|
|
2641
|
+
): Promise<RemoveLinkedWalletReturn> => {
|
|
2642
|
+
return this.fetch(this.url('RemoveLinkedWallet'), createHTTPRequest(args, headers, signal)).then(
|
|
2643
|
+
res => {
|
|
2644
|
+
return buildResponse(res).then(_data => {
|
|
2645
|
+
return {
|
|
2646
|
+
status: <boolean>_data.status
|
|
2647
|
+
}
|
|
2648
|
+
})
|
|
2649
|
+
},
|
|
2650
|
+
error => {
|
|
2651
|
+
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
|
|
2652
|
+
}
|
|
2653
|
+
)
|
|
2654
|
+
}
|
|
2655
|
+
|
|
2656
|
+
generateWaaSVerificationURL = (
|
|
2657
|
+
args: GenerateWaaSVerificationURLArgs,
|
|
2658
|
+
headers?: object,
|
|
2659
|
+
signal?: AbortSignal
|
|
2660
|
+
): Promise<GenerateWaaSVerificationURLReturn> => {
|
|
2661
|
+
return this.fetch(this.url('GenerateWaaSVerificationURL'), createHTTPRequest(args, headers, signal)).then(
|
|
2662
|
+
res => {
|
|
2663
|
+
return buildResponse(res).then(_data => {
|
|
2664
|
+
return {
|
|
2665
|
+
nonce: <string>_data.nonce,
|
|
2666
|
+
verificationURL: <string>_data.verificationURL
|
|
2667
|
+
}
|
|
2668
|
+
})
|
|
2669
|
+
},
|
|
2670
|
+
error => {
|
|
2671
|
+
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
|
|
2672
|
+
}
|
|
2673
|
+
)
|
|
2674
|
+
}
|
|
2675
|
+
|
|
2676
|
+
validateWaaSVerificationNonce = (
|
|
2677
|
+
args: ValidateWaaSVerificationNonceArgs,
|
|
2678
|
+
headers?: object,
|
|
2679
|
+
signal?: AbortSignal
|
|
2680
|
+
): Promise<ValidateWaaSVerificationNonceReturn> => {
|
|
2681
|
+
return this.fetch(this.url('ValidateWaaSVerificationNonce'), createHTTPRequest(args, headers, signal)).then(
|
|
2682
|
+
res => {
|
|
2683
|
+
return buildResponse(res).then(_data => {
|
|
2684
|
+
return {
|
|
2685
|
+
walletAddress: <string>_data.walletAddress
|
|
2686
|
+
}
|
|
2687
|
+
})
|
|
2688
|
+
},
|
|
2689
|
+
error => {
|
|
2690
|
+
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
|
|
2691
|
+
}
|
|
2692
|
+
)
|
|
2693
|
+
}
|
|
2694
|
+
|
|
2695
|
+
listAdoptedWallets = (
|
|
2696
|
+
args: ListAdoptedWalletsArgs,
|
|
2697
|
+
headers?: object,
|
|
2698
|
+
signal?: AbortSignal
|
|
2699
|
+
): Promise<ListAdoptedWalletsReturn> => {
|
|
2700
|
+
return this.fetch(this.url('ListAdoptedWallets'), createHTTPRequest(args, headers, signal)).then(
|
|
2701
|
+
res => {
|
|
2702
|
+
return buildResponse(res).then(_data => {
|
|
2703
|
+
return {
|
|
2704
|
+
page: <Page>_data.page,
|
|
2705
|
+
wallets: <Array<AdoptedChildWallet>>_data.wallets
|
|
2706
|
+
}
|
|
2707
|
+
})
|
|
2708
|
+
},
|
|
2709
|
+
error => {
|
|
2710
|
+
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
|
|
2711
|
+
}
|
|
2712
|
+
)
|
|
2904
2713
|
}
|
|
2905
|
-
|
|
2714
|
+
|
|
2906
2715
|
getLifiChains = (headers?: object, signal?: AbortSignal): Promise<GetLifiChainsReturn> => {
|
|
2907
|
-
return this.fetch(
|
|
2908
|
-
|
|
2909
|
-
|
|
2910
|
-
|
|
2911
|
-
|
|
2912
|
-
|
|
2913
|
-
|
|
2914
|
-
|
|
2915
|
-
|
|
2916
|
-
|
|
2917
|
-
|
|
2918
|
-
|
|
2716
|
+
return this.fetch(this.url('GetLifiChains'), createHTTPRequest({}, headers, signal)).then(
|
|
2717
|
+
res => {
|
|
2718
|
+
return buildResponse(res).then(_data => {
|
|
2719
|
+
return {
|
|
2720
|
+
chains: <Array<number>>_data.chains
|
|
2721
|
+
}
|
|
2722
|
+
})
|
|
2723
|
+
},
|
|
2724
|
+
error => {
|
|
2725
|
+
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
|
|
2726
|
+
}
|
|
2727
|
+
)
|
|
2919
2728
|
}
|
|
2920
|
-
|
|
2729
|
+
|
|
2921
2730
|
getLifiTokens = (args: GetLifiTokensArgs, headers?: object, signal?: AbortSignal): Promise<GetLifiTokensReturn> => {
|
|
2922
|
-
return this.fetch(
|
|
2923
|
-
|
|
2924
|
-
|
|
2925
|
-
|
|
2926
|
-
|
|
2927
|
-
|
|
2928
|
-
}
|
|
2929
|
-
}
|
|
2930
|
-
|
|
2931
|
-
|
|
2932
|
-
|
|
2731
|
+
return this.fetch(this.url('GetLifiTokens'), createHTTPRequest(args, headers, signal)).then(
|
|
2732
|
+
res => {
|
|
2733
|
+
return buildResponse(res).then(_data => {
|
|
2734
|
+
return {
|
|
2735
|
+
tokens: <Array<Token>>_data.tokens
|
|
2736
|
+
}
|
|
2737
|
+
})
|
|
2738
|
+
},
|
|
2739
|
+
error => {
|
|
2740
|
+
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
|
|
2741
|
+
}
|
|
2742
|
+
)
|
|
2933
2743
|
}
|
|
2934
|
-
|
|
2744
|
+
|
|
2935
2745
|
getLifiSwapRoutes = (args: GetLifiSwapRoutesArgs, headers?: object, signal?: AbortSignal): Promise<GetLifiSwapRoutesReturn> => {
|
|
2936
|
-
return this.fetch(
|
|
2937
|
-
|
|
2938
|
-
|
|
2939
|
-
|
|
2940
|
-
|
|
2941
|
-
|
|
2942
|
-
}
|
|
2943
|
-
}
|
|
2944
|
-
|
|
2945
|
-
|
|
2946
|
-
|
|
2746
|
+
return this.fetch(this.url('GetLifiSwapRoutes'), createHTTPRequest(args, headers, signal)).then(
|
|
2747
|
+
res => {
|
|
2748
|
+
return buildResponse(res).then(_data => {
|
|
2749
|
+
return {
|
|
2750
|
+
routes: <Array<LifiSwapRoute>>_data.routes
|
|
2751
|
+
}
|
|
2752
|
+
})
|
|
2753
|
+
},
|
|
2754
|
+
error => {
|
|
2755
|
+
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
|
|
2756
|
+
}
|
|
2757
|
+
)
|
|
2947
2758
|
}
|
|
2948
|
-
|
|
2759
|
+
|
|
2949
2760
|
getLifiSwapQuote = (args: GetLifiSwapQuoteArgs, headers?: object, signal?: AbortSignal): Promise<GetLifiSwapQuoteReturn> => {
|
|
2950
|
-
return this.fetch(
|
|
2951
|
-
|
|
2952
|
-
|
|
2953
|
-
|
|
2954
|
-
|
|
2955
|
-
|
|
2956
|
-
}
|
|
2957
|
-
}
|
|
2958
|
-
|
|
2959
|
-
|
|
2960
|
-
|
|
2961
|
-
|
|
2962
|
-
|
|
2963
|
-
|
|
2964
|
-
|
|
2965
|
-
|
|
2966
|
-
|
|
2967
|
-
|
|
2968
|
-
|
|
2969
|
-
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
|
|
2973
|
-
|
|
2974
|
-
|
|
2975
|
-
|
|
2976
|
-
|
|
2977
|
-
|
|
2978
|
-
|
|
2979
|
-
|
|
2980
|
-
|
|
2981
|
-
|
|
2982
|
-
|
|
2983
|
-
|
|
2984
|
-
|
|
2985
|
-
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
|
|
2991
|
-
|
|
2992
|
-
|
|
2993
|
-
|
|
2994
|
-
|
|
2995
|
-
|
|
2761
|
+
return this.fetch(this.url('GetLifiSwapQuote'), createHTTPRequest(args, headers, signal)).then(
|
|
2762
|
+
res => {
|
|
2763
|
+
return buildResponse(res).then(_data => {
|
|
2764
|
+
return {
|
|
2765
|
+
quote: <LifiSwapQuote>_data.quote
|
|
2766
|
+
}
|
|
2767
|
+
})
|
|
2768
|
+
},
|
|
2769
|
+
error => {
|
|
2770
|
+
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
|
|
2771
|
+
}
|
|
2772
|
+
)
|
|
2773
|
+
}
|
|
2774
|
+
|
|
2775
|
+
getIntentCallsPayloads = (
|
|
2776
|
+
args: GetIntentCallsPayloadsArgs,
|
|
2777
|
+
headers?: object,
|
|
2778
|
+
signal?: AbortSignal
|
|
2779
|
+
): Promise<GetIntentCallsPayloadsReturn> => {
|
|
2780
|
+
return this.fetch(this.url('GetIntentCallsPayloads'), createHTTPRequest(args, headers, signal)).then(
|
|
2781
|
+
res => {
|
|
2782
|
+
return buildResponse(res).then(_data => {
|
|
2783
|
+
return {
|
|
2784
|
+
calls: <Array<IntentCallsPayload>>_data.calls,
|
|
2785
|
+
preconditions: <Array<IntentPrecondition>>_data.preconditions,
|
|
2786
|
+
metaTxns: <Array<MetaTxn>>_data.metaTxns,
|
|
2787
|
+
trailsFee: <TrailsFee>_data.trailsFee,
|
|
2788
|
+
quote: <IntentQuote>_data.quote,
|
|
2789
|
+
feeQuotes: <{ [key: string]: string }>_data.feeQuotes,
|
|
2790
|
+
originIntentAddress: <string>_data.originIntentAddress,
|
|
2791
|
+
destinationIntentAddress: <string>_data.destinationIntentAddress
|
|
2792
|
+
}
|
|
2793
|
+
})
|
|
2794
|
+
},
|
|
2795
|
+
error => {
|
|
2796
|
+
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
|
|
2797
|
+
}
|
|
2798
|
+
)
|
|
2799
|
+
}
|
|
2800
|
+
|
|
2801
|
+
commitIntentConfig = (
|
|
2802
|
+
args: CommitIntentConfigArgs,
|
|
2803
|
+
headers?: object,
|
|
2804
|
+
signal?: AbortSignal
|
|
2805
|
+
): Promise<CommitIntentConfigReturn> => {
|
|
2806
|
+
return this.fetch(this.url('CommitIntentConfig'), createHTTPRequest(args, headers, signal)).then(
|
|
2807
|
+
res => {
|
|
2808
|
+
return buildResponse(res).then(_data => {
|
|
2809
|
+
return {
|
|
2810
|
+
config: <IntentConfig>_data.config
|
|
2811
|
+
}
|
|
2812
|
+
})
|
|
2813
|
+
},
|
|
2814
|
+
error => {
|
|
2815
|
+
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
|
|
2816
|
+
}
|
|
2817
|
+
)
|
|
2996
2818
|
}
|
|
2997
|
-
|
|
2819
|
+
|
|
2998
2820
|
getIntentConfig = (args: GetIntentConfigArgs, headers?: object, signal?: AbortSignal): Promise<GetIntentConfigReturn> => {
|
|
2999
|
-
return this.fetch(
|
|
3000
|
-
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
|
|
3004
|
-
|
|
3005
|
-
}
|
|
3006
|
-
}
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
|
|
2821
|
+
return this.fetch(this.url('GetIntentConfig'), createHTTPRequest(args, headers, signal)).then(
|
|
2822
|
+
res => {
|
|
2823
|
+
return buildResponse(res).then(_data => {
|
|
2824
|
+
return {
|
|
2825
|
+
config: <IntentConfig>_data.config
|
|
2826
|
+
}
|
|
2827
|
+
})
|
|
2828
|
+
},
|
|
2829
|
+
error => {
|
|
2830
|
+
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
|
|
2831
|
+
}
|
|
2832
|
+
)
|
|
3010
2833
|
}
|
|
3011
|
-
|
|
2834
|
+
|
|
3012
2835
|
listCurrencyGroups = (headers?: object, signal?: AbortSignal): Promise<ListCurrencyGroupsReturn> => {
|
|
3013
|
-
return this.fetch(
|
|
3014
|
-
|
|
3015
|
-
|
|
3016
|
-
|
|
3017
|
-
|
|
3018
|
-
|
|
3019
|
-
|
|
3020
|
-
|
|
3021
|
-
|
|
3022
|
-
|
|
3023
|
-
|
|
3024
|
-
|
|
3025
|
-
}
|
|
3026
|
-
|
|
3027
|
-
addOffchainInventory = (
|
|
3028
|
-
|
|
3029
|
-
|
|
3030
|
-
|
|
3031
|
-
|
|
3032
|
-
|
|
3033
|
-
|
|
3034
|
-
|
|
3035
|
-
|
|
3036
|
-
|
|
3037
|
-
|
|
3038
|
-
|
|
3039
|
-
|
|
3040
|
-
|
|
3041
|
-
|
|
3042
|
-
|
|
3043
|
-
|
|
3044
|
-
|
|
3045
|
-
|
|
3046
|
-
|
|
3047
|
-
|
|
3048
|
-
|
|
3049
|
-
|
|
3050
|
-
|
|
3051
|
-
|
|
3052
|
-
|
|
3053
|
-
|
|
3054
|
-
|
|
3055
|
-
|
|
3056
|
-
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
|
|
3060
|
-
|
|
3061
|
-
|
|
3062
|
-
|
|
3063
|
-
|
|
3064
|
-
|
|
3065
|
-
|
|
3066
|
-
|
|
3067
|
-
|
|
3068
|
-
|
|
3069
|
-
|
|
3070
|
-
return this.fetch(
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
|
-
|
|
3074
|
-
|
|
3075
|
-
|
|
3076
|
-
|
|
3077
|
-
|
|
3078
|
-
|
|
3079
|
-
|
|
3080
|
-
|
|
3081
|
-
|
|
3082
|
-
|
|
3083
|
-
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
|
|
3087
|
-
|
|
3088
|
-
|
|
3089
|
-
|
|
3090
|
-
|
|
3091
|
-
|
|
3092
|
-
|
|
3093
|
-
|
|
3094
|
-
|
|
3095
|
-
|
|
3096
|
-
|
|
3097
|
-
|
|
3098
|
-
|
|
3099
|
-
|
|
3100
|
-
|
|
3101
|
-
|
|
3102
|
-
|
|
3103
|
-
|
|
3104
|
-
|
|
3105
|
-
|
|
3106
|
-
|
|
3107
|
-
|
|
3108
|
-
|
|
3109
|
-
|
|
3110
|
-
|
|
3111
|
-
|
|
3112
|
-
|
|
3113
|
-
|
|
3114
|
-
|
|
3115
|
-
|
|
3116
|
-
|
|
3117
|
-
|
|
3118
|
-
|
|
3119
|
-
|
|
3120
|
-
|
|
3121
|
-
|
|
2836
|
+
return this.fetch(this.url('ListCurrencyGroups'), createHTTPRequest({}, headers, signal)).then(
|
|
2837
|
+
res => {
|
|
2838
|
+
return buildResponse(res).then(_data => {
|
|
2839
|
+
return {
|
|
2840
|
+
currencyGroups: <Array<CurrencyGroup>>_data.currencyGroups
|
|
2841
|
+
}
|
|
2842
|
+
})
|
|
2843
|
+
},
|
|
2844
|
+
error => {
|
|
2845
|
+
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
|
|
2846
|
+
}
|
|
2847
|
+
)
|
|
2848
|
+
}
|
|
2849
|
+
|
|
2850
|
+
addOffchainInventory = (
|
|
2851
|
+
args: AddOffchainInventoryArgs,
|
|
2852
|
+
headers?: object,
|
|
2853
|
+
signal?: AbortSignal
|
|
2854
|
+
): Promise<AddOffchainInventoryReturn> => {
|
|
2855
|
+
return this.fetch(this.url('AddOffchainInventory'), createHTTPRequest(args, headers, signal)).then(
|
|
2856
|
+
res => {
|
|
2857
|
+
return buildResponse(res).then(_data => {
|
|
2858
|
+
return {
|
|
2859
|
+
inventoryId: <number>_data.inventoryId
|
|
2860
|
+
}
|
|
2861
|
+
})
|
|
2862
|
+
},
|
|
2863
|
+
error => {
|
|
2864
|
+
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
|
|
2865
|
+
}
|
|
2866
|
+
)
|
|
2867
|
+
}
|
|
2868
|
+
|
|
2869
|
+
getOffchainInventory = (
|
|
2870
|
+
args: GetOffchainInventoryArgs,
|
|
2871
|
+
headers?: object,
|
|
2872
|
+
signal?: AbortSignal
|
|
2873
|
+
): Promise<GetOffchainInventoryReturn> => {
|
|
2874
|
+
return this.fetch(this.url('GetOffchainInventory'), createHTTPRequest(args, headers, signal)).then(
|
|
2875
|
+
res => {
|
|
2876
|
+
return buildResponse(res).then(_data => {
|
|
2877
|
+
return {
|
|
2878
|
+
inventory: <OffchainInventory>_data.inventory
|
|
2879
|
+
}
|
|
2880
|
+
})
|
|
2881
|
+
},
|
|
2882
|
+
error => {
|
|
2883
|
+
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
|
|
2884
|
+
}
|
|
2885
|
+
)
|
|
2886
|
+
}
|
|
2887
|
+
|
|
2888
|
+
listOffchainInventories = (
|
|
2889
|
+
args: ListOffchainInventoriesArgs,
|
|
2890
|
+
headers?: object,
|
|
2891
|
+
signal?: AbortSignal
|
|
2892
|
+
): Promise<ListOffchainInventoriesReturn> => {
|
|
2893
|
+
return this.fetch(this.url('ListOffchainInventories'), createHTTPRequest(args, headers, signal)).then(
|
|
2894
|
+
res => {
|
|
2895
|
+
return buildResponse(res).then(_data => {
|
|
2896
|
+
return {
|
|
2897
|
+
inventory: <Array<OffchainInventory>>_data.inventory
|
|
2898
|
+
}
|
|
2899
|
+
})
|
|
2900
|
+
},
|
|
2901
|
+
error => {
|
|
2902
|
+
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
|
|
2903
|
+
}
|
|
2904
|
+
)
|
|
2905
|
+
}
|
|
2906
|
+
|
|
2907
|
+
updateOffchainInventory = (
|
|
2908
|
+
args: UpdateOffchainInventoryArgs,
|
|
2909
|
+
headers?: object,
|
|
2910
|
+
signal?: AbortSignal
|
|
2911
|
+
): Promise<UpdateOffchainInventoryReturn> => {
|
|
2912
|
+
return this.fetch(this.url('UpdateOffchainInventory'), createHTTPRequest(args, headers, signal)).then(
|
|
2913
|
+
res => {
|
|
2914
|
+
return buildResponse(res).then(_data => {
|
|
2915
|
+
return {}
|
|
2916
|
+
})
|
|
2917
|
+
},
|
|
2918
|
+
error => {
|
|
2919
|
+
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
|
|
2920
|
+
}
|
|
2921
|
+
)
|
|
2922
|
+
}
|
|
2923
|
+
|
|
2924
|
+
deleteOffchainInventory = (
|
|
2925
|
+
args: DeleteOffchainInventoryArgs,
|
|
2926
|
+
headers?: object,
|
|
2927
|
+
signal?: AbortSignal
|
|
2928
|
+
): Promise<DeleteOffchainInventoryReturn> => {
|
|
2929
|
+
return this.fetch(this.url('DeleteOffchainInventory'), createHTTPRequest(args, headers, signal)).then(
|
|
2930
|
+
res => {
|
|
2931
|
+
return buildResponse(res).then(_data => {
|
|
2932
|
+
return {
|
|
2933
|
+
ok: <boolean>_data.ok
|
|
2934
|
+
}
|
|
2935
|
+
})
|
|
2936
|
+
},
|
|
2937
|
+
error => {
|
|
2938
|
+
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
|
|
2939
|
+
}
|
|
2940
|
+
)
|
|
2941
|
+
}
|
|
2942
|
+
|
|
2943
|
+
requestOffchainPayment = (
|
|
2944
|
+
args: RequestOffchainPaymentArgs,
|
|
2945
|
+
headers?: object,
|
|
2946
|
+
signal?: AbortSignal
|
|
2947
|
+
): Promise<RequestOffchainPaymentReturn> => {
|
|
2948
|
+
return this.fetch(this.url('RequestOffchainPayment'), createHTTPRequest(args, headers, signal)).then(
|
|
2949
|
+
res => {
|
|
2950
|
+
return buildResponse(res).then(_data => {
|
|
2951
|
+
return {
|
|
2952
|
+
payment: <PaymentResponse>_data.payment
|
|
2953
|
+
}
|
|
2954
|
+
})
|
|
2955
|
+
},
|
|
2956
|
+
error => {
|
|
2957
|
+
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
|
|
2958
|
+
}
|
|
2959
|
+
)
|
|
2960
|
+
}
|
|
2961
|
+
|
|
2962
|
+
listOffchainPayments = (
|
|
2963
|
+
args: ListOffchainPaymentsArgs,
|
|
2964
|
+
headers?: object,
|
|
2965
|
+
signal?: AbortSignal
|
|
2966
|
+
): Promise<ListOffchainPaymentsReturn> => {
|
|
2967
|
+
return this.fetch(this.url('ListOffchainPayments'), createHTTPRequest(args, headers, signal)).then(
|
|
2968
|
+
res => {
|
|
2969
|
+
return buildResponse(res).then(_data => {
|
|
2970
|
+
return {
|
|
2971
|
+
page: <Page>_data.page,
|
|
2972
|
+
payments: <Array<OffchainPayment>>_data.payments
|
|
2973
|
+
}
|
|
2974
|
+
})
|
|
2975
|
+
},
|
|
2976
|
+
error => {
|
|
2977
|
+
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
|
|
2978
|
+
}
|
|
2979
|
+
)
|
|
3122
2980
|
}
|
|
3123
|
-
|
|
2981
|
+
|
|
3124
2982
|
savePack = (args: SavePackArgs, headers?: object, signal?: AbortSignal): Promise<SavePackReturn> => {
|
|
3125
|
-
return this.fetch(
|
|
3126
|
-
|
|
3127
|
-
|
|
3128
|
-
|
|
3129
|
-
|
|
3130
|
-
|
|
3131
|
-
}
|
|
3132
|
-
}
|
|
3133
|
-
|
|
3134
|
-
|
|
3135
|
-
|
|
2983
|
+
return this.fetch(this.url('SavePack'), createHTTPRequest(args, headers, signal)).then(
|
|
2984
|
+
res => {
|
|
2985
|
+
return buildResponse(res).then(_data => {
|
|
2986
|
+
return {
|
|
2987
|
+
merkleRoot: <string>_data.merkleRoot
|
|
2988
|
+
}
|
|
2989
|
+
})
|
|
2990
|
+
},
|
|
2991
|
+
error => {
|
|
2992
|
+
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
|
|
2993
|
+
}
|
|
2994
|
+
)
|
|
3136
2995
|
}
|
|
3137
|
-
|
|
2996
|
+
|
|
3138
2997
|
getPack = (args: GetPackArgs, headers?: object, signal?: AbortSignal): Promise<GetPackReturn> => {
|
|
3139
|
-
return this.fetch(
|
|
3140
|
-
|
|
3141
|
-
|
|
3142
|
-
|
|
3143
|
-
|
|
3144
|
-
|
|
3145
|
-
}
|
|
3146
|
-
}
|
|
3147
|
-
|
|
3148
|
-
|
|
3149
|
-
|
|
2998
|
+
return this.fetch(this.url('GetPack'), createHTTPRequest(args, headers, signal)).then(
|
|
2999
|
+
res => {
|
|
3000
|
+
return buildResponse(res).then(_data => {
|
|
3001
|
+
return {
|
|
3002
|
+
pack: <Pack>_data.pack
|
|
3003
|
+
}
|
|
3004
|
+
})
|
|
3005
|
+
},
|
|
3006
|
+
error => {
|
|
3007
|
+
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
|
|
3008
|
+
}
|
|
3009
|
+
)
|
|
3150
3010
|
}
|
|
3151
|
-
|
|
3011
|
+
|
|
3152
3012
|
getPackIds = (args: GetPackIdsArgs, headers?: object, signal?: AbortSignal): Promise<GetPackIdsReturn> => {
|
|
3153
|
-
return this.fetch(
|
|
3154
|
-
|
|
3155
|
-
|
|
3156
|
-
|
|
3157
|
-
|
|
3158
|
-
|
|
3159
|
-
}
|
|
3160
|
-
}
|
|
3161
|
-
|
|
3162
|
-
|
|
3163
|
-
|
|
3013
|
+
return this.fetch(this.url('GetPackIds'), createHTTPRequest(args, headers, signal)).then(
|
|
3014
|
+
res => {
|
|
3015
|
+
return buildResponse(res).then(_data => {
|
|
3016
|
+
return {
|
|
3017
|
+
packIds: <Array<string>>_data.packIds
|
|
3018
|
+
}
|
|
3019
|
+
})
|
|
3020
|
+
},
|
|
3021
|
+
error => {
|
|
3022
|
+
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
|
|
3023
|
+
}
|
|
3024
|
+
)
|
|
3164
3025
|
}
|
|
3165
|
-
|
|
3026
|
+
|
|
3166
3027
|
deletePack = (args: DeletePackArgs, headers?: object, signal?: AbortSignal): Promise<DeletePackReturn> => {
|
|
3167
|
-
return this.fetch(
|
|
3168
|
-
|
|
3169
|
-
|
|
3170
|
-
|
|
3171
|
-
|
|
3172
|
-
|
|
3173
|
-
}
|
|
3174
|
-
}
|
|
3175
|
-
|
|
3176
|
-
|
|
3177
|
-
|
|
3028
|
+
return this.fetch(this.url('DeletePack'), createHTTPRequest(args, headers, signal)).then(
|
|
3029
|
+
res => {
|
|
3030
|
+
return buildResponse(res).then(_data => {
|
|
3031
|
+
return {
|
|
3032
|
+
status: <boolean>_data.status
|
|
3033
|
+
}
|
|
3034
|
+
})
|
|
3035
|
+
},
|
|
3036
|
+
error => {
|
|
3037
|
+
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
|
|
3038
|
+
}
|
|
3039
|
+
)
|
|
3178
3040
|
}
|
|
3179
|
-
|
|
3041
|
+
|
|
3180
3042
|
updatePackContent = (args: UpdatePackContentArgs, headers?: object, signal?: AbortSignal): Promise<UpdatePackContentReturn> => {
|
|
3181
|
-
return this.fetch(
|
|
3182
|
-
|
|
3183
|
-
|
|
3184
|
-
|
|
3185
|
-
|
|
3186
|
-
|
|
3187
|
-
}
|
|
3188
|
-
}
|
|
3189
|
-
|
|
3190
|
-
|
|
3191
|
-
|
|
3043
|
+
return this.fetch(this.url('UpdatePackContent'), createHTTPRequest(args, headers, signal)).then(
|
|
3044
|
+
res => {
|
|
3045
|
+
return buildResponse(res).then(_data => {
|
|
3046
|
+
return {
|
|
3047
|
+
merkleRoot: <string>_data.merkleRoot
|
|
3048
|
+
}
|
|
3049
|
+
})
|
|
3050
|
+
},
|
|
3051
|
+
error => {
|
|
3052
|
+
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
|
|
3053
|
+
}
|
|
3054
|
+
)
|
|
3192
3055
|
}
|
|
3193
|
-
|
|
3056
|
+
|
|
3194
3057
|
getRevealTxData = (args: GetRevealTxDataArgs, headers?: object, signal?: AbortSignal): Promise<GetRevealTxDataReturn> => {
|
|
3195
|
-
return this.fetch(
|
|
3196
|
-
|
|
3197
|
-
|
|
3198
|
-
|
|
3199
|
-
|
|
3200
|
-
|
|
3201
|
-
}
|
|
3202
|
-
}
|
|
3203
|
-
|
|
3204
|
-
|
|
3205
|
-
|
|
3206
|
-
|
|
3207
|
-
|
|
3208
|
-
|
|
3209
|
-
|
|
3210
|
-
|
|
3211
|
-
|
|
3212
|
-
|
|
3213
|
-
|
|
3214
|
-
|
|
3215
|
-
|
|
3216
|
-
|
|
3217
|
-
|
|
3218
|
-
|
|
3219
|
-
|
|
3220
|
-
|
|
3221
|
-
|
|
3222
|
-
|
|
3223
|
-
|
|
3224
|
-
|
|
3225
|
-
|
|
3226
|
-
|
|
3227
|
-
|
|
3228
|
-
|
|
3229
|
-
|
|
3230
|
-
|
|
3231
|
-
|
|
3232
|
-
|
|
3233
|
-
|
|
3234
|
-
|
|
3235
|
-
|
|
3236
|
-
|
|
3237
|
-
|
|
3238
|
-
|
|
3239
|
-
|
|
3240
|
-
|
|
3241
|
-
|
|
3242
|
-
|
|
3243
|
-
|
|
3244
|
-
|
|
3245
|
-
|
|
3246
|
-
|
|
3247
|
-
|
|
3248
|
-
|
|
3249
|
-
|
|
3250
|
-
|
|
3251
|
-
|
|
3252
|
-
|
|
3253
|
-
|
|
3254
|
-
|
|
3255
|
-
|
|
3256
|
-
|
|
3257
|
-
|
|
3258
|
-
|
|
3259
|
-
|
|
3260
|
-
|
|
3261
|
-
|
|
3262
|
-
|
|
3263
|
-
|
|
3264
|
-
|
|
3265
|
-
|
|
3266
|
-
|
|
3267
|
-
|
|
3268
|
-
|
|
3269
|
-
|
|
3270
|
-
|
|
3271
|
-
|
|
3272
|
-
|
|
3273
|
-
|
|
3274
|
-
|
|
3275
|
-
|
|
3058
|
+
return this.fetch(this.url('GetRevealTxData'), createHTTPRequest(args, headers, signal)).then(
|
|
3059
|
+
res => {
|
|
3060
|
+
return buildResponse(res).then(_data => {
|
|
3061
|
+
return {
|
|
3062
|
+
txData: <string>_data.txData
|
|
3063
|
+
}
|
|
3064
|
+
})
|
|
3065
|
+
},
|
|
3066
|
+
error => {
|
|
3067
|
+
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
|
|
3068
|
+
}
|
|
3069
|
+
)
|
|
3070
|
+
}
|
|
3071
|
+
|
|
3072
|
+
checkoutOptionsPrimary = (
|
|
3073
|
+
args: CheckoutOptionsPrimaryArgs,
|
|
3074
|
+
headers?: object,
|
|
3075
|
+
signal?: AbortSignal
|
|
3076
|
+
): Promise<CheckoutOptionsPrimaryReturn> => {
|
|
3077
|
+
return this.fetch(this.url('CheckoutOptionsPrimary'), createHTTPRequest(args, headers, signal)).then(
|
|
3078
|
+
res => {
|
|
3079
|
+
return buildResponse(res).then(_data => {
|
|
3080
|
+
return {
|
|
3081
|
+
options: <CheckoutOptions>_data.options
|
|
3082
|
+
}
|
|
3083
|
+
})
|
|
3084
|
+
},
|
|
3085
|
+
error => {
|
|
3086
|
+
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
|
|
3087
|
+
}
|
|
3088
|
+
)
|
|
3089
|
+
}
|
|
3090
|
+
|
|
3091
|
+
checkoutOptionsSecondary = (
|
|
3092
|
+
args: CheckoutOptionsSecondaryArgs,
|
|
3093
|
+
headers?: object,
|
|
3094
|
+
signal?: AbortSignal
|
|
3095
|
+
): Promise<CheckoutOptionsSecondaryReturn> => {
|
|
3096
|
+
return this.fetch(this.url('CheckoutOptionsSecondary'), createHTTPRequest(args, headers, signal)).then(
|
|
3097
|
+
res => {
|
|
3098
|
+
return buildResponse(res).then(_data => {
|
|
3099
|
+
return {
|
|
3100
|
+
options: <CheckoutOptions>_data.options
|
|
3101
|
+
}
|
|
3102
|
+
})
|
|
3103
|
+
},
|
|
3104
|
+
error => {
|
|
3105
|
+
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
|
|
3106
|
+
}
|
|
3107
|
+
)
|
|
3108
|
+
}
|
|
3109
|
+
|
|
3110
|
+
checkoutOptionsGetTransakContractID = (
|
|
3111
|
+
args: CheckoutOptionsGetTransakContractIDArgs,
|
|
3112
|
+
headers?: object,
|
|
3113
|
+
signal?: AbortSignal
|
|
3114
|
+
): Promise<CheckoutOptionsGetTransakContractIDReturn> => {
|
|
3115
|
+
return this.fetch(this.url('CheckoutOptionsGetTransakContractID'), createHTTPRequest(args, headers, signal)).then(
|
|
3116
|
+
res => {
|
|
3117
|
+
return buildResponse(res).then(_data => {
|
|
3118
|
+
return {
|
|
3119
|
+
contractId: <string>_data.contractId
|
|
3120
|
+
}
|
|
3121
|
+
})
|
|
3122
|
+
},
|
|
3123
|
+
error => {
|
|
3124
|
+
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
|
|
3125
|
+
}
|
|
3126
|
+
)
|
|
3127
|
+
}
|
|
3128
|
+
|
|
3129
|
+
fortePayCreateIntent = (
|
|
3130
|
+
args: FortePayCreateIntentArgs,
|
|
3131
|
+
headers?: object,
|
|
3132
|
+
signal?: AbortSignal
|
|
3133
|
+
): Promise<FortePayCreateIntentReturn> => {
|
|
3134
|
+
return this.fetch(this.url('FortePayCreateIntent'), createHTTPRequest(args, headers, signal)).then(
|
|
3135
|
+
res => {
|
|
3136
|
+
return buildResponse(res).then(_data => {
|
|
3137
|
+
return {
|
|
3138
|
+
resp: <FortePayIntent>_data.resp
|
|
3139
|
+
}
|
|
3140
|
+
})
|
|
3141
|
+
},
|
|
3142
|
+
error => {
|
|
3143
|
+
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
|
|
3144
|
+
}
|
|
3145
|
+
)
|
|
3146
|
+
}
|
|
3147
|
+
|
|
3148
|
+
fortePayGetPaymentStatuses = (
|
|
3149
|
+
args: FortePayGetPaymentStatusesArgs,
|
|
3150
|
+
headers?: object,
|
|
3151
|
+
signal?: AbortSignal
|
|
3152
|
+
): Promise<FortePayGetPaymentStatusesReturn> => {
|
|
3153
|
+
return this.fetch(this.url('FortePayGetPaymentStatuses'), createHTTPRequest(args, headers, signal)).then(
|
|
3154
|
+
res => {
|
|
3155
|
+
return buildResponse(res).then(_data => {
|
|
3156
|
+
return {
|
|
3157
|
+
statuses: <Array<FortePaymentStatus>>_data.statuses
|
|
3158
|
+
}
|
|
3159
|
+
})
|
|
3160
|
+
},
|
|
3161
|
+
error => {
|
|
3162
|
+
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
|
|
3163
|
+
}
|
|
3164
|
+
)
|
|
3276
3165
|
}
|
|
3277
|
-
|
|
3166
|
+
|
|
3278
3167
|
getCCTPTransfer = (args: GetCCTPTransferArgs, headers?: object, signal?: AbortSignal): Promise<GetCCTPTransferReturn> => {
|
|
3279
|
-
return this.fetch(
|
|
3280
|
-
|
|
3281
|
-
|
|
3282
|
-
|
|
3283
|
-
|
|
3284
|
-
|
|
3285
|
-
}
|
|
3286
|
-
}
|
|
3287
|
-
|
|
3288
|
-
|
|
3289
|
-
|
|
3168
|
+
return this.fetch(this.url('GetCCTPTransfer'), createHTTPRequest(args, headers, signal)).then(
|
|
3169
|
+
res => {
|
|
3170
|
+
return buildResponse(res).then(_data => {
|
|
3171
|
+
return {
|
|
3172
|
+
transfer: <CCTPTransfer>_data.transfer
|
|
3173
|
+
}
|
|
3174
|
+
})
|
|
3175
|
+
},
|
|
3176
|
+
error => {
|
|
3177
|
+
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
|
|
3178
|
+
}
|
|
3179
|
+
)
|
|
3290
3180
|
}
|
|
3291
|
-
|
|
3181
|
+
|
|
3292
3182
|
queueCCTPTransfer = (args: QueueCCTPTransferArgs, headers?: object, signal?: AbortSignal): Promise<QueueCCTPTransferReturn> => {
|
|
3293
|
-
return this.fetch(
|
|
3294
|
-
|
|
3295
|
-
|
|
3296
|
-
|
|
3297
|
-
|
|
3298
|
-
|
|
3299
|
-
}
|
|
3300
|
-
}
|
|
3301
|
-
|
|
3302
|
-
|
|
3303
|
-
|
|
3304
|
-
|
|
3305
|
-
|
|
3306
|
-
|
|
3307
|
-
|
|
3308
|
-
|
|
3309
|
-
|
|
3310
|
-
|
|
3311
|
-
|
|
3312
|
-
|
|
3313
|
-
|
|
3314
|
-
|
|
3315
|
-
|
|
3316
|
-
|
|
3317
|
-
|
|
3318
|
-
|
|
3319
|
-
|
|
3320
|
-
|
|
3321
|
-
|
|
3322
|
-
|
|
3323
|
-
|
|
3324
|
-
|
|
3325
|
-
|
|
3326
|
-
|
|
3327
|
-
|
|
3328
|
-
|
|
3329
|
-
|
|
3330
|
-
|
|
3331
|
-
|
|
3183
|
+
return this.fetch(this.url('QueueCCTPTransfer'), createHTTPRequest(args, headers, signal)).then(
|
|
3184
|
+
res => {
|
|
3185
|
+
return buildResponse(res).then(_data => {
|
|
3186
|
+
return {
|
|
3187
|
+
transfer: <CCTPTransfer>_data.transfer
|
|
3188
|
+
}
|
|
3189
|
+
})
|
|
3190
|
+
},
|
|
3191
|
+
error => {
|
|
3192
|
+
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
|
|
3193
|
+
}
|
|
3194
|
+
)
|
|
3195
|
+
}
|
|
3196
|
+
|
|
3197
|
+
queueIntentConfigExecution = (
|
|
3198
|
+
args: QueueIntentConfigExecutionArgs,
|
|
3199
|
+
headers?: object,
|
|
3200
|
+
signal?: AbortSignal
|
|
3201
|
+
): Promise<QueueIntentConfigExecutionReturn> => {
|
|
3202
|
+
return this.fetch(this.url('QueueIntentConfigExecution'), createHTTPRequest(args, headers, signal)).then(
|
|
3203
|
+
res => {
|
|
3204
|
+
return buildResponse(res).then(_data => {
|
|
3205
|
+
return {
|
|
3206
|
+
status: <boolean>_data.status
|
|
3207
|
+
}
|
|
3208
|
+
})
|
|
3209
|
+
},
|
|
3210
|
+
error => {
|
|
3211
|
+
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
|
|
3212
|
+
}
|
|
3213
|
+
)
|
|
3214
|
+
}
|
|
3215
|
+
|
|
3216
|
+
getIntentConfigExecutionStatus = (
|
|
3217
|
+
args: GetIntentConfigExecutionStatusArgs,
|
|
3218
|
+
headers?: object,
|
|
3219
|
+
signal?: AbortSignal
|
|
3220
|
+
): Promise<GetIntentConfigExecutionStatusReturn> => {
|
|
3221
|
+
return this.fetch(this.url('GetIntentConfigExecutionStatus'), createHTTPRequest(args, headers, signal)).then(
|
|
3222
|
+
res => {
|
|
3223
|
+
return buildResponse(res).then(_data => {
|
|
3224
|
+
return {
|
|
3225
|
+
executionStatus: <string>_data.executionStatus
|
|
3226
|
+
}
|
|
3227
|
+
})
|
|
3228
|
+
},
|
|
3229
|
+
error => {
|
|
3230
|
+
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
|
|
3231
|
+
}
|
|
3232
|
+
)
|
|
3332
3233
|
}
|
|
3333
|
-
|
|
3234
|
+
|
|
3334
3235
|
listIntentConfigs = (args: ListIntentConfigsArgs, headers?: object, signal?: AbortSignal): Promise<ListIntentConfigsReturn> => {
|
|
3335
|
-
return this.fetch(
|
|
3336
|
-
|
|
3337
|
-
|
|
3338
|
-
|
|
3339
|
-
|
|
3340
|
-
|
|
3341
|
-
|
|
3342
|
-
}
|
|
3343
|
-
}
|
|
3344
|
-
|
|
3345
|
-
|
|
3346
|
-
|
|
3347
|
-
|
|
3348
|
-
|
|
3349
|
-
|
|
3350
|
-
|
|
3351
|
-
|
|
3352
|
-
|
|
3353
|
-
|
|
3354
|
-
|
|
3355
|
-
|
|
3356
|
-
|
|
3357
|
-
|
|
3358
|
-
|
|
3359
|
-
|
|
3360
|
-
|
|
3236
|
+
return this.fetch(this.url('ListIntentConfigs'), createHTTPRequest(args, headers, signal)).then(
|
|
3237
|
+
res => {
|
|
3238
|
+
return buildResponse(res).then(_data => {
|
|
3239
|
+
return {
|
|
3240
|
+
page: <Page>_data.page,
|
|
3241
|
+
intentConfigs: <Array<IntentConfig>>_data.intentConfigs
|
|
3242
|
+
}
|
|
3243
|
+
})
|
|
3244
|
+
},
|
|
3245
|
+
error => {
|
|
3246
|
+
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
|
|
3247
|
+
}
|
|
3248
|
+
)
|
|
3249
|
+
}
|
|
3250
|
+
|
|
3251
|
+
queueMetaTxnReceipt = (
|
|
3252
|
+
args: QueueMetaTxnReceiptArgs,
|
|
3253
|
+
headers?: object,
|
|
3254
|
+
signal?: AbortSignal
|
|
3255
|
+
): Promise<QueueMetaTxnReceiptReturn> => {
|
|
3256
|
+
return this.fetch(this.url('QueueMetaTxnReceipt'), createHTTPRequest(args, headers, signal)).then(
|
|
3257
|
+
res => {
|
|
3258
|
+
return buildResponse(res).then(_data => {
|
|
3259
|
+
return {
|
|
3260
|
+
status: <boolean>_data.status
|
|
3261
|
+
}
|
|
3262
|
+
})
|
|
3263
|
+
},
|
|
3264
|
+
error => {
|
|
3265
|
+
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
|
|
3266
|
+
}
|
|
3267
|
+
)
|
|
3361
3268
|
}
|
|
3362
|
-
|
|
3363
3269
|
}
|
|
3364
3270
|
|
|
3365
|
-
|
|
3366
|
-
const reqHeaders: {[key: string]: string} = { ...headers, 'Content-Type': 'application/json' }
|
|
3271
|
+
const createHTTPRequest = (body: object = {}, headers: object = {}, signal: AbortSignal | null = null): object => {
|
|
3272
|
+
const reqHeaders: { [key: string]: string } = { ...headers, 'Content-Type': 'application/json' }
|
|
3367
3273
|
reqHeaders[WebrpcHeader] = WebrpcHeaderValue
|
|
3368
3274
|
|
|
3369
3275
|
return {
|
|
@@ -3379,18 +3285,18 @@ const buildResponse = (res: Response): Promise<any> => {
|
|
|
3379
3285
|
let data
|
|
3380
3286
|
try {
|
|
3381
3287
|
data = JSON.parse(text)
|
|
3382
|
-
} catch(error) {
|
|
3288
|
+
} catch (error) {
|
|
3383
3289
|
let message = ''
|
|
3384
|
-
if (error instanceof Error)
|
|
3290
|
+
if (error instanceof Error) {
|
|
3385
3291
|
message = error.message
|
|
3386
3292
|
}
|
|
3387
3293
|
throw WebrpcBadResponseError.new({
|
|
3388
3294
|
status: res.status,
|
|
3389
|
-
cause: `JSON.parse(): ${message}: response text: ${text}`
|
|
3390
|
-
)
|
|
3295
|
+
cause: `JSON.parse(): ${message}: response text: ${text}`
|
|
3296
|
+
})
|
|
3391
3297
|
}
|
|
3392
3298
|
if (!res.ok) {
|
|
3393
|
-
const code: number =
|
|
3299
|
+
const code: number = typeof data.code === 'number' ? data.code : 0
|
|
3394
3300
|
throw (webrpcErrorByCode[code] || WebrpcError).new(data)
|
|
3395
3301
|
}
|
|
3396
3302
|
return data
|
|
@@ -3572,7 +3478,6 @@ export class WebrpcStreamFinishedError extends WebrpcError {
|
|
|
3572
3478
|
}
|
|
3573
3479
|
}
|
|
3574
3480
|
|
|
3575
|
-
|
|
3576
3481
|
// Schema errors
|
|
3577
3482
|
|
|
3578
3483
|
export class UnauthorizedError extends WebrpcError {
|
|
@@ -3900,7 +3805,6 @@ export class UnsupportedNetworkError extends WebrpcError {
|
|
|
3900
3805
|
}
|
|
3901
3806
|
}
|
|
3902
3807
|
|
|
3903
|
-
|
|
3904
3808
|
export enum errors {
|
|
3905
3809
|
WebrpcEndpoint = 'WebrpcEndpoint',
|
|
3906
3810
|
WebrpcRequestFailed = 'WebrpcRequestFailed',
|
|
@@ -3937,7 +3841,7 @@ export enum errors {
|
|
|
3937
3841
|
Unavailable = 'Unavailable',
|
|
3938
3842
|
QueryFailed = 'QueryFailed',
|
|
3939
3843
|
NotFound = 'NotFound',
|
|
3940
|
-
UnsupportedNetwork = 'UnsupportedNetwork'
|
|
3844
|
+
UnsupportedNetwork = 'UnsupportedNetwork'
|
|
3941
3845
|
}
|
|
3942
3846
|
|
|
3943
3847
|
export enum WebrpcErrorCodes {
|
|
@@ -3976,7 +3880,7 @@ export enum WebrpcErrorCodes {
|
|
|
3976
3880
|
Unavailable = 2002,
|
|
3977
3881
|
QueryFailed = 2003,
|
|
3978
3882
|
NotFound = 3000,
|
|
3979
|
-
UnsupportedNetwork = 3008
|
|
3883
|
+
UnsupportedNetwork = 3008
|
|
3980
3884
|
}
|
|
3981
3885
|
|
|
3982
3886
|
export const webrpcErrorByCode: { [code: number]: any } = {
|
|
@@ -4015,8 +3919,7 @@ export const webrpcErrorByCode: { [code: number]: any } = {
|
|
|
4015
3919
|
[2002]: UnavailableError,
|
|
4016
3920
|
[2003]: QueryFailedError,
|
|
4017
3921
|
[3000]: NotFoundError,
|
|
4018
|
-
[3008]: UnsupportedNetworkError
|
|
3922
|
+
[3008]: UnsupportedNetworkError
|
|
4019
3923
|
}
|
|
4020
3924
|
|
|
4021
3925
|
export type Fetch = (input: RequestInfo, init?: RequestInit) => Promise<Response>
|
|
4022
|
-
|