@0xsequence/api 0.36.11 → 0.37.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -27,7 +27,7 @@ function _extends() {
|
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
/* eslint-disable */
|
|
30
|
-
// sequence-api v0.4.0
|
|
30
|
+
// sequence-api v0.4.0 25195370e01c380f47c1df5bd8e0ffe51160bec8
|
|
31
31
|
// --
|
|
32
32
|
// This file has been generated by https://github.com/webrpc/webrpc using gen/typescript
|
|
33
33
|
// Do not edit by hand. Update your webrpc schema and re-generate.
|
|
@@ -36,7 +36,7 @@ const WebRPCVersion = "v1"; // Schema version of your RIDL schema
|
|
|
36
36
|
|
|
37
37
|
const WebRPCSchemaVersion = "v0.4.0"; // Schema hash generated from your RIDL schema
|
|
38
38
|
|
|
39
|
-
const WebRPCSchemaHash = "
|
|
39
|
+
const WebRPCSchemaHash = "25195370e01c380f47c1df5bd8e0ffe51160bec8"; //
|
|
40
40
|
// Types
|
|
41
41
|
//
|
|
42
42
|
|
|
@@ -273,6 +273,36 @@ class API {
|
|
|
273
273
|
});
|
|
274
274
|
};
|
|
275
275
|
|
|
276
|
+
this.getTokenPrices = (args, headers) => {
|
|
277
|
+
return this.fetch(this.url('GetTokenPrices'), createHTTPRequest(args, headers)).then(res => {
|
|
278
|
+
return buildResponse(res).then(_data => {
|
|
279
|
+
return {
|
|
280
|
+
tokenPrices: _data.tokenPrices
|
|
281
|
+
};
|
|
282
|
+
});
|
|
283
|
+
});
|
|
284
|
+
};
|
|
285
|
+
|
|
286
|
+
this.getCollectiblePrices = (args, headers) => {
|
|
287
|
+
return this.fetch(this.url('GetCollectiblePrices'), createHTTPRequest(args, headers)).then(res => {
|
|
288
|
+
return buildResponse(res).then(_data => {
|
|
289
|
+
return {
|
|
290
|
+
tokenPrices: _data.tokenPrices
|
|
291
|
+
};
|
|
292
|
+
});
|
|
293
|
+
});
|
|
294
|
+
};
|
|
295
|
+
|
|
296
|
+
this.getExchangeRate = (args, headers) => {
|
|
297
|
+
return this.fetch(this.url('GetExchangeRate'), createHTTPRequest(args, headers)).then(res => {
|
|
298
|
+
return buildResponse(res).then(_data => {
|
|
299
|
+
return {
|
|
300
|
+
exchangeRate: _data.exchangeRate
|
|
301
|
+
};
|
|
302
|
+
});
|
|
303
|
+
});
|
|
304
|
+
};
|
|
305
|
+
|
|
276
306
|
this.getInviteInfo = headers => {
|
|
277
307
|
return this.fetch(this.url('GetInviteInfo'), createHTTPRequest({}, headers)).then(res => {
|
|
278
308
|
return buildResponse(res).then(_data => {
|
|
@@ -27,7 +27,7 @@ function _extends() {
|
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
/* eslint-disable */
|
|
30
|
-
// sequence-api v0.4.0
|
|
30
|
+
// sequence-api v0.4.0 25195370e01c380f47c1df5bd8e0ffe51160bec8
|
|
31
31
|
// --
|
|
32
32
|
// This file has been generated by https://github.com/webrpc/webrpc using gen/typescript
|
|
33
33
|
// Do not edit by hand. Update your webrpc schema and re-generate.
|
|
@@ -36,7 +36,7 @@ const WebRPCVersion = "v1"; // Schema version of your RIDL schema
|
|
|
36
36
|
|
|
37
37
|
const WebRPCSchemaVersion = "v0.4.0"; // Schema hash generated from your RIDL schema
|
|
38
38
|
|
|
39
|
-
const WebRPCSchemaHash = "
|
|
39
|
+
const WebRPCSchemaHash = "25195370e01c380f47c1df5bd8e0ffe51160bec8"; //
|
|
40
40
|
// Types
|
|
41
41
|
//
|
|
42
42
|
|
|
@@ -273,6 +273,36 @@ class API {
|
|
|
273
273
|
});
|
|
274
274
|
};
|
|
275
275
|
|
|
276
|
+
this.getTokenPrices = (args, headers) => {
|
|
277
|
+
return this.fetch(this.url('GetTokenPrices'), createHTTPRequest(args, headers)).then(res => {
|
|
278
|
+
return buildResponse(res).then(_data => {
|
|
279
|
+
return {
|
|
280
|
+
tokenPrices: _data.tokenPrices
|
|
281
|
+
};
|
|
282
|
+
});
|
|
283
|
+
});
|
|
284
|
+
};
|
|
285
|
+
|
|
286
|
+
this.getCollectiblePrices = (args, headers) => {
|
|
287
|
+
return this.fetch(this.url('GetCollectiblePrices'), createHTTPRequest(args, headers)).then(res => {
|
|
288
|
+
return buildResponse(res).then(_data => {
|
|
289
|
+
return {
|
|
290
|
+
tokenPrices: _data.tokenPrices
|
|
291
|
+
};
|
|
292
|
+
});
|
|
293
|
+
});
|
|
294
|
+
};
|
|
295
|
+
|
|
296
|
+
this.getExchangeRate = (args, headers) => {
|
|
297
|
+
return this.fetch(this.url('GetExchangeRate'), createHTTPRequest(args, headers)).then(res => {
|
|
298
|
+
return buildResponse(res).then(_data => {
|
|
299
|
+
return {
|
|
300
|
+
exchangeRate: _data.exchangeRate
|
|
301
|
+
};
|
|
302
|
+
});
|
|
303
|
+
});
|
|
304
|
+
};
|
|
305
|
+
|
|
276
306
|
this.getInviteInfo = headers => {
|
|
277
307
|
return this.fetch(this.url('GetInviteInfo'), createHTTPRequest({}, headers)).then(res => {
|
|
278
308
|
return buildResponse(res).then(_data => {
|
|
@@ -19,7 +19,7 @@ function _extends() {
|
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
/* eslint-disable */
|
|
22
|
-
// sequence-api v0.4.0
|
|
22
|
+
// sequence-api v0.4.0 25195370e01c380f47c1df5bd8e0ffe51160bec8
|
|
23
23
|
// --
|
|
24
24
|
// This file has been generated by https://github.com/webrpc/webrpc using gen/typescript
|
|
25
25
|
// Do not edit by hand. Update your webrpc schema and re-generate.
|
|
@@ -28,7 +28,7 @@ const WebRPCVersion = "v1"; // Schema version of your RIDL schema
|
|
|
28
28
|
|
|
29
29
|
const WebRPCSchemaVersion = "v0.4.0"; // Schema hash generated from your RIDL schema
|
|
30
30
|
|
|
31
|
-
const WebRPCSchemaHash = "
|
|
31
|
+
const WebRPCSchemaHash = "25195370e01c380f47c1df5bd8e0ffe51160bec8"; //
|
|
32
32
|
// Types
|
|
33
33
|
//
|
|
34
34
|
|
|
@@ -265,6 +265,36 @@ class API {
|
|
|
265
265
|
});
|
|
266
266
|
};
|
|
267
267
|
|
|
268
|
+
this.getTokenPrices = (args, headers) => {
|
|
269
|
+
return this.fetch(this.url('GetTokenPrices'), createHTTPRequest(args, headers)).then(res => {
|
|
270
|
+
return buildResponse(res).then(_data => {
|
|
271
|
+
return {
|
|
272
|
+
tokenPrices: _data.tokenPrices
|
|
273
|
+
};
|
|
274
|
+
});
|
|
275
|
+
});
|
|
276
|
+
};
|
|
277
|
+
|
|
278
|
+
this.getCollectiblePrices = (args, headers) => {
|
|
279
|
+
return this.fetch(this.url('GetCollectiblePrices'), createHTTPRequest(args, headers)).then(res => {
|
|
280
|
+
return buildResponse(res).then(_data => {
|
|
281
|
+
return {
|
|
282
|
+
tokenPrices: _data.tokenPrices
|
|
283
|
+
};
|
|
284
|
+
});
|
|
285
|
+
});
|
|
286
|
+
};
|
|
287
|
+
|
|
288
|
+
this.getExchangeRate = (args, headers) => {
|
|
289
|
+
return this.fetch(this.url('GetExchangeRate'), createHTTPRequest(args, headers)).then(res => {
|
|
290
|
+
return buildResponse(res).then(_data => {
|
|
291
|
+
return {
|
|
292
|
+
exchangeRate: _data.exchangeRate
|
|
293
|
+
};
|
|
294
|
+
});
|
|
295
|
+
});
|
|
296
|
+
};
|
|
297
|
+
|
|
268
298
|
this.getInviteInfo = headers => {
|
|
269
299
|
return this.fetch(this.url('GetInviteInfo'), createHTTPRequest({}, headers)).then(res => {
|
|
270
300
|
return buildResponse(res).then(_data => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const WebRPCVersion = "v1";
|
|
2
2
|
export declare const WebRPCSchemaVersion = "v0.4.0";
|
|
3
|
-
export declare const WebRPCSchemaHash = "
|
|
3
|
+
export declare const WebRPCSchemaHash = "25195370e01c380f47c1df5bd8e0ffe51160bec8";
|
|
4
4
|
export declare enum SortOrder {
|
|
5
5
|
DESC = "DESC",
|
|
6
6
|
ASC = "ASC"
|
|
@@ -112,6 +112,24 @@ export interface SortBy {
|
|
|
112
112
|
column: string;
|
|
113
113
|
order: SortOrder;
|
|
114
114
|
}
|
|
115
|
+
export interface Token {
|
|
116
|
+
chainId: number;
|
|
117
|
+
contractAddress: string;
|
|
118
|
+
tokenId?: string;
|
|
119
|
+
}
|
|
120
|
+
export interface TokenPrice {
|
|
121
|
+
token: Token;
|
|
122
|
+
usd?: number;
|
|
123
|
+
usd24hChange?: number;
|
|
124
|
+
updatedAt: string;
|
|
125
|
+
}
|
|
126
|
+
export interface ExchangeRate {
|
|
127
|
+
name: string;
|
|
128
|
+
symbol: string;
|
|
129
|
+
value: number;
|
|
130
|
+
vsCurrency: string;
|
|
131
|
+
currencyType: string;
|
|
132
|
+
}
|
|
115
133
|
export interface API {
|
|
116
134
|
ping(headers?: object): Promise<PingReturn>;
|
|
117
135
|
version(headers?: object): Promise<VersionReturn>;
|
|
@@ -134,6 +152,9 @@ export interface API {
|
|
|
134
152
|
userStorageFetchAll(args: UserStorageFetchAllArgs, headers?: object): Promise<UserStorageFetchAllReturn>;
|
|
135
153
|
getMoonpayLink(args: GetMoonpayLinkArgs, headers?: object): Promise<GetMoonpayLinkReturn>;
|
|
136
154
|
isUsingGoogleMail(args: IsUsingGoogleMailArgs, headers?: object): Promise<IsUsingGoogleMailReturn>;
|
|
155
|
+
getTokenPrices(args: GetTokenPricesArgs, headers?: object): Promise<GetTokenPricesReturn>;
|
|
156
|
+
getCollectiblePrices(args: GetCollectiblePricesArgs, headers?: object): Promise<GetCollectiblePricesReturn>;
|
|
157
|
+
getExchangeRate(args: GetExchangeRateArgs, headers?: object): Promise<GetExchangeRateReturn>;
|
|
137
158
|
getInviteInfo(headers?: object): Promise<GetInviteInfoReturn>;
|
|
138
159
|
isValidAccessCode(args: IsValidAccessCodeArgs, headers?: object): Promise<IsValidAccessCodeReturn>;
|
|
139
160
|
internalClaimAccessCode(args: InternalClaimAccessCodeArgs, headers?: object): Promise<InternalClaimAccessCodeReturn>;
|
|
@@ -280,6 +301,24 @@ export interface IsUsingGoogleMailArgs {
|
|
|
280
301
|
export interface IsUsingGoogleMailReturn {
|
|
281
302
|
yes: boolean;
|
|
282
303
|
}
|
|
304
|
+
export interface GetTokenPricesArgs {
|
|
305
|
+
tokens: Array<Token>;
|
|
306
|
+
}
|
|
307
|
+
export interface GetTokenPricesReturn {
|
|
308
|
+
tokenPrices: Array<TokenPrice>;
|
|
309
|
+
}
|
|
310
|
+
export interface GetCollectiblePricesArgs {
|
|
311
|
+
tokens: Array<Token>;
|
|
312
|
+
}
|
|
313
|
+
export interface GetCollectiblePricesReturn {
|
|
314
|
+
tokenPrices: Array<TokenPrice>;
|
|
315
|
+
}
|
|
316
|
+
export interface GetExchangeRateArgs {
|
|
317
|
+
toCurrency: string;
|
|
318
|
+
}
|
|
319
|
+
export interface GetExchangeRateReturn {
|
|
320
|
+
exchangeRate: ExchangeRate;
|
|
321
|
+
}
|
|
283
322
|
export interface GetInviteInfoArgs {
|
|
284
323
|
}
|
|
285
324
|
export interface GetInviteInfoReturn {
|
|
@@ -332,6 +371,9 @@ export declare class API implements API {
|
|
|
332
371
|
userStorageFetchAll: (args: UserStorageFetchAllArgs, headers?: object | undefined) => Promise<UserStorageFetchAllReturn>;
|
|
333
372
|
getMoonpayLink: (args: GetMoonpayLinkArgs, headers?: object | undefined) => Promise<GetMoonpayLinkReturn>;
|
|
334
373
|
isUsingGoogleMail: (args: IsUsingGoogleMailArgs, headers?: object | undefined) => Promise<IsUsingGoogleMailReturn>;
|
|
374
|
+
getTokenPrices: (args: GetTokenPricesArgs, headers?: object | undefined) => Promise<GetTokenPricesReturn>;
|
|
375
|
+
getCollectiblePrices: (args: GetCollectiblePricesArgs, headers?: object | undefined) => Promise<GetCollectiblePricesReturn>;
|
|
376
|
+
getExchangeRate: (args: GetExchangeRateArgs, headers?: object | undefined) => Promise<GetExchangeRateReturn>;
|
|
335
377
|
getInviteInfo: (headers?: object | undefined) => Promise<GetInviteInfoReturn>;
|
|
336
378
|
isValidAccessCode: (args: IsValidAccessCodeArgs, headers?: object | undefined) => Promise<IsValidAccessCodeReturn>;
|
|
337
379
|
internalClaimAccessCode: (args: InternalClaimAccessCodeArgs, headers?: object | undefined) => Promise<InternalClaimAccessCodeReturn>;
|
package/package.json
CHANGED
package/src/api.gen.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
|
-
// sequence-api v0.4.0
|
|
2
|
+
// sequence-api v0.4.0 25195370e01c380f47c1df5bd8e0ffe51160bec8
|
|
3
3
|
// --
|
|
4
4
|
// This file has been generated by https://github.com/webrpc/webrpc using gen/typescript
|
|
5
5
|
// Do not edit by hand. Update your webrpc schema and re-generate.
|
|
@@ -11,7 +11,7 @@ export const WebRPCVersion = "v1"
|
|
|
11
11
|
export const WebRPCSchemaVersion = "v0.4.0"
|
|
12
12
|
|
|
13
13
|
// Schema hash generated from your RIDL schema
|
|
14
|
-
export const WebRPCSchemaHash = "
|
|
14
|
+
export const WebRPCSchemaHash = "25195370e01c380f47c1df5bd8e0ffe51160bec8"
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
//
|
|
@@ -150,6 +150,27 @@ export interface SortBy {
|
|
|
150
150
|
order: SortOrder
|
|
151
151
|
}
|
|
152
152
|
|
|
153
|
+
export interface Token {
|
|
154
|
+
chainId: number
|
|
155
|
+
contractAddress: string
|
|
156
|
+
tokenId?: string
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
export interface TokenPrice {
|
|
160
|
+
token: Token
|
|
161
|
+
usd?: number
|
|
162
|
+
usd24hChange?: number
|
|
163
|
+
updatedAt: string
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
export interface ExchangeRate {
|
|
167
|
+
name: string
|
|
168
|
+
symbol: string
|
|
169
|
+
value: number
|
|
170
|
+
vsCurrency: string
|
|
171
|
+
currencyType: string
|
|
172
|
+
}
|
|
173
|
+
|
|
153
174
|
export interface API {
|
|
154
175
|
ping(headers?: object): Promise<PingReturn>
|
|
155
176
|
version(headers?: object): Promise<VersionReturn>
|
|
@@ -172,6 +193,9 @@ export interface API {
|
|
|
172
193
|
userStorageFetchAll(args: UserStorageFetchAllArgs, headers?: object): Promise<UserStorageFetchAllReturn>
|
|
173
194
|
getMoonpayLink(args: GetMoonpayLinkArgs, headers?: object): Promise<GetMoonpayLinkReturn>
|
|
174
195
|
isUsingGoogleMail(args: IsUsingGoogleMailArgs, headers?: object): Promise<IsUsingGoogleMailReturn>
|
|
196
|
+
getTokenPrices(args: GetTokenPricesArgs, headers?: object): Promise<GetTokenPricesReturn>
|
|
197
|
+
getCollectiblePrices(args: GetCollectiblePricesArgs, headers?: object): Promise<GetCollectiblePricesReturn>
|
|
198
|
+
getExchangeRate(args: GetExchangeRateArgs, headers?: object): Promise<GetExchangeRateReturn>
|
|
175
199
|
getInviteInfo(headers?: object): Promise<GetInviteInfoReturn>
|
|
176
200
|
isValidAccessCode(args: IsValidAccessCodeArgs, headers?: object): Promise<IsValidAccessCodeReturn>
|
|
177
201
|
internalClaimAccessCode(args: InternalClaimAccessCodeArgs, headers?: object): Promise<InternalClaimAccessCodeReturn>
|
|
@@ -338,6 +362,27 @@ export interface IsUsingGoogleMailArgs {
|
|
|
338
362
|
export interface IsUsingGoogleMailReturn {
|
|
339
363
|
yes: boolean
|
|
340
364
|
}
|
|
365
|
+
export interface GetTokenPricesArgs {
|
|
366
|
+
tokens: Array<Token>
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
export interface GetTokenPricesReturn {
|
|
370
|
+
tokenPrices: Array<TokenPrice>
|
|
371
|
+
}
|
|
372
|
+
export interface GetCollectiblePricesArgs {
|
|
373
|
+
tokens: Array<Token>
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
export interface GetCollectiblePricesReturn {
|
|
377
|
+
tokenPrices: Array<TokenPrice>
|
|
378
|
+
}
|
|
379
|
+
export interface GetExchangeRateArgs {
|
|
380
|
+
toCurrency: string
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
export interface GetExchangeRateReturn {
|
|
384
|
+
exchangeRate: ExchangeRate
|
|
385
|
+
}
|
|
341
386
|
export interface GetInviteInfoArgs {
|
|
342
387
|
}
|
|
343
388
|
|
|
@@ -650,6 +695,42 @@ export class API implements API {
|
|
|
650
695
|
})
|
|
651
696
|
}
|
|
652
697
|
|
|
698
|
+
getTokenPrices = (args: GetTokenPricesArgs, headers?: object): Promise<GetTokenPricesReturn> => {
|
|
699
|
+
return this.fetch(
|
|
700
|
+
this.url('GetTokenPrices'),
|
|
701
|
+
createHTTPRequest(args, headers)).then((res) => {
|
|
702
|
+
return buildResponse(res).then(_data => {
|
|
703
|
+
return {
|
|
704
|
+
tokenPrices: <Array<TokenPrice>>(_data.tokenPrices)
|
|
705
|
+
}
|
|
706
|
+
})
|
|
707
|
+
})
|
|
708
|
+
}
|
|
709
|
+
|
|
710
|
+
getCollectiblePrices = (args: GetCollectiblePricesArgs, headers?: object): Promise<GetCollectiblePricesReturn> => {
|
|
711
|
+
return this.fetch(
|
|
712
|
+
this.url('GetCollectiblePrices'),
|
|
713
|
+
createHTTPRequest(args, headers)).then((res) => {
|
|
714
|
+
return buildResponse(res).then(_data => {
|
|
715
|
+
return {
|
|
716
|
+
tokenPrices: <Array<TokenPrice>>(_data.tokenPrices)
|
|
717
|
+
}
|
|
718
|
+
})
|
|
719
|
+
})
|
|
720
|
+
}
|
|
721
|
+
|
|
722
|
+
getExchangeRate = (args: GetExchangeRateArgs, headers?: object): Promise<GetExchangeRateReturn> => {
|
|
723
|
+
return this.fetch(
|
|
724
|
+
this.url('GetExchangeRate'),
|
|
725
|
+
createHTTPRequest(args, headers)).then((res) => {
|
|
726
|
+
return buildResponse(res).then(_data => {
|
|
727
|
+
return {
|
|
728
|
+
exchangeRate: <ExchangeRate>(_data.exchangeRate)
|
|
729
|
+
}
|
|
730
|
+
})
|
|
731
|
+
})
|
|
732
|
+
}
|
|
733
|
+
|
|
653
734
|
getInviteInfo = (headers?: object): Promise<GetInviteInfoReturn> => {
|
|
654
735
|
return this.fetch(
|
|
655
736
|
this.url('GetInviteInfo'),
|