@0xsequence/api 0.37.0 → 0.38.1
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 4d2479b7b4da1f3902a2593f729835aa16931146
|
|
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 = "4d2479b7b4da1f3902a2593f729835aa16931146"; //
|
|
40
40
|
// Types
|
|
41
41
|
//
|
|
42
42
|
|
|
@@ -273,8 +273,8 @@ class API {
|
|
|
273
273
|
});
|
|
274
274
|
};
|
|
275
275
|
|
|
276
|
-
this.
|
|
277
|
-
return this.fetch(this.url('
|
|
276
|
+
this.getCoinPrices = (args, headers) => {
|
|
277
|
+
return this.fetch(this.url('GetCoinPrices'), createHTTPRequest(args, headers)).then(res => {
|
|
278
278
|
return buildResponse(res).then(_data => {
|
|
279
279
|
return {
|
|
280
280
|
tokenPrices: _data.tokenPrices
|
|
@@ -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 4d2479b7b4da1f3902a2593f729835aa16931146
|
|
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 = "4d2479b7b4da1f3902a2593f729835aa16931146"; //
|
|
40
40
|
// Types
|
|
41
41
|
//
|
|
42
42
|
|
|
@@ -273,8 +273,8 @@ class API {
|
|
|
273
273
|
});
|
|
274
274
|
};
|
|
275
275
|
|
|
276
|
-
this.
|
|
277
|
-
return this.fetch(this.url('
|
|
276
|
+
this.getCoinPrices = (args, headers) => {
|
|
277
|
+
return this.fetch(this.url('GetCoinPrices'), createHTTPRequest(args, headers)).then(res => {
|
|
278
278
|
return buildResponse(res).then(_data => {
|
|
279
279
|
return {
|
|
280
280
|
tokenPrices: _data.tokenPrices
|
|
@@ -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 4d2479b7b4da1f3902a2593f729835aa16931146
|
|
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 = "4d2479b7b4da1f3902a2593f729835aa16931146"; //
|
|
32
32
|
// Types
|
|
33
33
|
//
|
|
34
34
|
|
|
@@ -265,8 +265,8 @@ class API {
|
|
|
265
265
|
});
|
|
266
266
|
};
|
|
267
267
|
|
|
268
|
-
this.
|
|
269
|
-
return this.fetch(this.url('
|
|
268
|
+
this.getCoinPrices = (args, headers) => {
|
|
269
|
+
return this.fetch(this.url('GetCoinPrices'), createHTTPRequest(args, headers)).then(res => {
|
|
270
270
|
return buildResponse(res).then(_data => {
|
|
271
271
|
return {
|
|
272
272
|
tokenPrices: _data.tokenPrices
|
|
@@ -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 = "4d2479b7b4da1f3902a2593f729835aa16931146";
|
|
4
4
|
export declare enum SortOrder {
|
|
5
5
|
DESC = "DESC",
|
|
6
6
|
ASC = "ASC"
|
|
@@ -78,9 +78,9 @@ export interface InviteInfo {
|
|
|
78
78
|
export interface ContractCall {
|
|
79
79
|
signature: string;
|
|
80
80
|
function: string;
|
|
81
|
-
args: Array<
|
|
81
|
+
args: Array<TupleComponent>;
|
|
82
82
|
}
|
|
83
|
-
export interface
|
|
83
|
+
export interface TupleComponent {
|
|
84
84
|
name?: string;
|
|
85
85
|
type: string;
|
|
86
86
|
value: any;
|
|
@@ -117,10 +117,17 @@ export interface Token {
|
|
|
117
117
|
contractAddress: string;
|
|
118
118
|
tokenId?: string;
|
|
119
119
|
}
|
|
120
|
+
export interface Price {
|
|
121
|
+
value: number;
|
|
122
|
+
currency: string;
|
|
123
|
+
}
|
|
120
124
|
export interface TokenPrice {
|
|
121
125
|
token: Token;
|
|
122
|
-
|
|
123
|
-
|
|
126
|
+
price?: Price;
|
|
127
|
+
price24hChange?: Price;
|
|
128
|
+
floorPrice: Price;
|
|
129
|
+
buyPrice: Price;
|
|
130
|
+
sellPrice: Price;
|
|
124
131
|
updatedAt: string;
|
|
125
132
|
}
|
|
126
133
|
export interface ExchangeRate {
|
|
@@ -152,7 +159,7 @@ export interface API {
|
|
|
152
159
|
userStorageFetchAll(args: UserStorageFetchAllArgs, headers?: object): Promise<UserStorageFetchAllReturn>;
|
|
153
160
|
getMoonpayLink(args: GetMoonpayLinkArgs, headers?: object): Promise<GetMoonpayLinkReturn>;
|
|
154
161
|
isUsingGoogleMail(args: IsUsingGoogleMailArgs, headers?: object): Promise<IsUsingGoogleMailReturn>;
|
|
155
|
-
|
|
162
|
+
getCoinPrices(args: GetCoinPricesArgs, headers?: object): Promise<GetCoinPricesReturn>;
|
|
156
163
|
getCollectiblePrices(args: GetCollectiblePricesArgs, headers?: object): Promise<GetCollectiblePricesReturn>;
|
|
157
164
|
getExchangeRate(args: GetExchangeRateArgs, headers?: object): Promise<GetExchangeRateReturn>;
|
|
158
165
|
getInviteInfo(headers?: object): Promise<GetInviteInfoReturn>;
|
|
@@ -301,10 +308,10 @@ export interface IsUsingGoogleMailArgs {
|
|
|
301
308
|
export interface IsUsingGoogleMailReturn {
|
|
302
309
|
yes: boolean;
|
|
303
310
|
}
|
|
304
|
-
export interface
|
|
311
|
+
export interface GetCoinPricesArgs {
|
|
305
312
|
tokens: Array<Token>;
|
|
306
313
|
}
|
|
307
|
-
export interface
|
|
314
|
+
export interface GetCoinPricesReturn {
|
|
308
315
|
tokenPrices: Array<TokenPrice>;
|
|
309
316
|
}
|
|
310
317
|
export interface GetCollectiblePricesArgs {
|
|
@@ -371,7 +378,7 @@ export declare class API implements API {
|
|
|
371
378
|
userStorageFetchAll: (args: UserStorageFetchAllArgs, headers?: object | undefined) => Promise<UserStorageFetchAllReturn>;
|
|
372
379
|
getMoonpayLink: (args: GetMoonpayLinkArgs, headers?: object | undefined) => Promise<GetMoonpayLinkReturn>;
|
|
373
380
|
isUsingGoogleMail: (args: IsUsingGoogleMailArgs, headers?: object | undefined) => Promise<IsUsingGoogleMailReturn>;
|
|
374
|
-
|
|
381
|
+
getCoinPrices: (args: GetCoinPricesArgs, headers?: object | undefined) => Promise<GetCoinPricesReturn>;
|
|
375
382
|
getCollectiblePrices: (args: GetCollectiblePricesArgs, headers?: object | undefined) => Promise<GetCollectiblePricesReturn>;
|
|
376
383
|
getExchangeRate: (args: GetExchangeRateArgs, headers?: object | undefined) => Promise<GetExchangeRateReturn>;
|
|
377
384
|
getInviteInfo: (headers?: object | undefined) => Promise<GetInviteInfoReturn>;
|
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 4d2479b7b4da1f3902a2593f729835aa16931146
|
|
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 = "4d2479b7b4da1f3902a2593f729835aa16931146"
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
//
|
|
@@ -110,10 +110,10 @@ export interface InviteInfo {
|
|
|
110
110
|
export interface ContractCall {
|
|
111
111
|
signature: string
|
|
112
112
|
function: string
|
|
113
|
-
args: Array<
|
|
113
|
+
args: Array<TupleComponent>
|
|
114
114
|
}
|
|
115
115
|
|
|
116
|
-
export interface
|
|
116
|
+
export interface TupleComponent {
|
|
117
117
|
name?: string
|
|
118
118
|
type: string
|
|
119
119
|
value: any
|
|
@@ -156,10 +156,18 @@ export interface Token {
|
|
|
156
156
|
tokenId?: string
|
|
157
157
|
}
|
|
158
158
|
|
|
159
|
+
export interface Price {
|
|
160
|
+
value: number
|
|
161
|
+
currency: string
|
|
162
|
+
}
|
|
163
|
+
|
|
159
164
|
export interface TokenPrice {
|
|
160
165
|
token: Token
|
|
161
|
-
|
|
162
|
-
|
|
166
|
+
price?: Price
|
|
167
|
+
price24hChange?: Price
|
|
168
|
+
floorPrice: Price
|
|
169
|
+
buyPrice: Price
|
|
170
|
+
sellPrice: Price
|
|
163
171
|
updatedAt: string
|
|
164
172
|
}
|
|
165
173
|
|
|
@@ -193,7 +201,7 @@ export interface API {
|
|
|
193
201
|
userStorageFetchAll(args: UserStorageFetchAllArgs, headers?: object): Promise<UserStorageFetchAllReturn>
|
|
194
202
|
getMoonpayLink(args: GetMoonpayLinkArgs, headers?: object): Promise<GetMoonpayLinkReturn>
|
|
195
203
|
isUsingGoogleMail(args: IsUsingGoogleMailArgs, headers?: object): Promise<IsUsingGoogleMailReturn>
|
|
196
|
-
|
|
204
|
+
getCoinPrices(args: GetCoinPricesArgs, headers?: object): Promise<GetCoinPricesReturn>
|
|
197
205
|
getCollectiblePrices(args: GetCollectiblePricesArgs, headers?: object): Promise<GetCollectiblePricesReturn>
|
|
198
206
|
getExchangeRate(args: GetExchangeRateArgs, headers?: object): Promise<GetExchangeRateReturn>
|
|
199
207
|
getInviteInfo(headers?: object): Promise<GetInviteInfoReturn>
|
|
@@ -362,11 +370,11 @@ export interface IsUsingGoogleMailArgs {
|
|
|
362
370
|
export interface IsUsingGoogleMailReturn {
|
|
363
371
|
yes: boolean
|
|
364
372
|
}
|
|
365
|
-
export interface
|
|
373
|
+
export interface GetCoinPricesArgs {
|
|
366
374
|
tokens: Array<Token>
|
|
367
375
|
}
|
|
368
376
|
|
|
369
|
-
export interface
|
|
377
|
+
export interface GetCoinPricesReturn {
|
|
370
378
|
tokenPrices: Array<TokenPrice>
|
|
371
379
|
}
|
|
372
380
|
export interface GetCollectiblePricesArgs {
|
|
@@ -695,9 +703,9 @@ export class API implements API {
|
|
|
695
703
|
})
|
|
696
704
|
}
|
|
697
705
|
|
|
698
|
-
|
|
706
|
+
getCoinPrices = (args: GetCoinPricesArgs, headers?: object): Promise<GetCoinPricesReturn> => {
|
|
699
707
|
return this.fetch(
|
|
700
|
-
this.url('
|
|
708
|
+
this.url('GetCoinPrices'),
|
|
701
709
|
createHTTPRequest(args, headers)).then((res) => {
|
|
702
710
|
return buildResponse(res).then(_data => {
|
|
703
711
|
return {
|