@0xsequence/api 0.36.12 → 0.36.13
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 349b76404687929fc391d0fc3329988c3dd90d00
|
|
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 = "349b76404687929fc391d0fc3329988c3dd90d00"; //
|
|
40
40
|
// Types
|
|
41
41
|
//
|
|
42
42
|
|
|
@@ -273,6 +273,26 @@ 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
|
+
|
|
276
296
|
this.getInviteInfo = headers => {
|
|
277
297
|
return this.fetch(this.url('GetInviteInfo'), createHTTPRequest({}, headers)).then(res => {
|
|
278
298
|
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 349b76404687929fc391d0fc3329988c3dd90d00
|
|
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 = "349b76404687929fc391d0fc3329988c3dd90d00"; //
|
|
40
40
|
// Types
|
|
41
41
|
//
|
|
42
42
|
|
|
@@ -273,6 +273,26 @@ 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
|
+
|
|
276
296
|
this.getInviteInfo = headers => {
|
|
277
297
|
return this.fetch(this.url('GetInviteInfo'), createHTTPRequest({}, headers)).then(res => {
|
|
278
298
|
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 349b76404687929fc391d0fc3329988c3dd90d00
|
|
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 = "349b76404687929fc391d0fc3329988c3dd90d00"; //
|
|
32
32
|
// Types
|
|
33
33
|
//
|
|
34
34
|
|
|
@@ -265,6 +265,26 @@ 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
|
+
|
|
268
288
|
this.getInviteInfo = headers => {
|
|
269
289
|
return this.fetch(this.url('GetInviteInfo'), createHTTPRequest({}, headers)).then(res => {
|
|
270
290
|
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 = "349b76404687929fc391d0fc3329988c3dd90d00";
|
|
4
4
|
export declare enum SortOrder {
|
|
5
5
|
DESC = "DESC",
|
|
6
6
|
ASC = "ASC"
|
|
@@ -112,6 +112,17 @@ 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
|
+
}
|
|
115
126
|
export interface API {
|
|
116
127
|
ping(headers?: object): Promise<PingReturn>;
|
|
117
128
|
version(headers?: object): Promise<VersionReturn>;
|
|
@@ -134,6 +145,8 @@ export interface API {
|
|
|
134
145
|
userStorageFetchAll(args: UserStorageFetchAllArgs, headers?: object): Promise<UserStorageFetchAllReturn>;
|
|
135
146
|
getMoonpayLink(args: GetMoonpayLinkArgs, headers?: object): Promise<GetMoonpayLinkReturn>;
|
|
136
147
|
isUsingGoogleMail(args: IsUsingGoogleMailArgs, headers?: object): Promise<IsUsingGoogleMailReturn>;
|
|
148
|
+
getTokenPrices(args: GetTokenPricesArgs, headers?: object): Promise<GetTokenPricesReturn>;
|
|
149
|
+
getCollectiblePrices(args: GetCollectiblePricesArgs, headers?: object): Promise<GetCollectiblePricesReturn>;
|
|
137
150
|
getInviteInfo(headers?: object): Promise<GetInviteInfoReturn>;
|
|
138
151
|
isValidAccessCode(args: IsValidAccessCodeArgs, headers?: object): Promise<IsValidAccessCodeReturn>;
|
|
139
152
|
internalClaimAccessCode(args: InternalClaimAccessCodeArgs, headers?: object): Promise<InternalClaimAccessCodeReturn>;
|
|
@@ -280,6 +293,18 @@ export interface IsUsingGoogleMailArgs {
|
|
|
280
293
|
export interface IsUsingGoogleMailReturn {
|
|
281
294
|
yes: boolean;
|
|
282
295
|
}
|
|
296
|
+
export interface GetTokenPricesArgs {
|
|
297
|
+
tokens: Array<Token>;
|
|
298
|
+
}
|
|
299
|
+
export interface GetTokenPricesReturn {
|
|
300
|
+
tokenPrices: Array<TokenPrice>;
|
|
301
|
+
}
|
|
302
|
+
export interface GetCollectiblePricesArgs {
|
|
303
|
+
tokens: Array<Token>;
|
|
304
|
+
}
|
|
305
|
+
export interface GetCollectiblePricesReturn {
|
|
306
|
+
tokenPrices: Array<TokenPrice>;
|
|
307
|
+
}
|
|
283
308
|
export interface GetInviteInfoArgs {
|
|
284
309
|
}
|
|
285
310
|
export interface GetInviteInfoReturn {
|
|
@@ -332,6 +357,8 @@ export declare class API implements API {
|
|
|
332
357
|
userStorageFetchAll: (args: UserStorageFetchAllArgs, headers?: object | undefined) => Promise<UserStorageFetchAllReturn>;
|
|
333
358
|
getMoonpayLink: (args: GetMoonpayLinkArgs, headers?: object | undefined) => Promise<GetMoonpayLinkReturn>;
|
|
334
359
|
isUsingGoogleMail: (args: IsUsingGoogleMailArgs, headers?: object | undefined) => Promise<IsUsingGoogleMailReturn>;
|
|
360
|
+
getTokenPrices: (args: GetTokenPricesArgs, headers?: object | undefined) => Promise<GetTokenPricesReturn>;
|
|
361
|
+
getCollectiblePrices: (args: GetCollectiblePricesArgs, headers?: object | undefined) => Promise<GetCollectiblePricesReturn>;
|
|
335
362
|
getInviteInfo: (headers?: object | undefined) => Promise<GetInviteInfoReturn>;
|
|
336
363
|
isValidAccessCode: (args: IsValidAccessCodeArgs, headers?: object | undefined) => Promise<IsValidAccessCodeReturn>;
|
|
337
364
|
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 349b76404687929fc391d0fc3329988c3dd90d00
|
|
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 = "349b76404687929fc391d0fc3329988c3dd90d00"
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
//
|
|
@@ -150,6 +150,19 @@ 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
|
+
|
|
153
166
|
export interface API {
|
|
154
167
|
ping(headers?: object): Promise<PingReturn>
|
|
155
168
|
version(headers?: object): Promise<VersionReturn>
|
|
@@ -172,6 +185,8 @@ export interface API {
|
|
|
172
185
|
userStorageFetchAll(args: UserStorageFetchAllArgs, headers?: object): Promise<UserStorageFetchAllReturn>
|
|
173
186
|
getMoonpayLink(args: GetMoonpayLinkArgs, headers?: object): Promise<GetMoonpayLinkReturn>
|
|
174
187
|
isUsingGoogleMail(args: IsUsingGoogleMailArgs, headers?: object): Promise<IsUsingGoogleMailReturn>
|
|
188
|
+
getTokenPrices(args: GetTokenPricesArgs, headers?: object): Promise<GetTokenPricesReturn>
|
|
189
|
+
getCollectiblePrices(args: GetCollectiblePricesArgs, headers?: object): Promise<GetCollectiblePricesReturn>
|
|
175
190
|
getInviteInfo(headers?: object): Promise<GetInviteInfoReturn>
|
|
176
191
|
isValidAccessCode(args: IsValidAccessCodeArgs, headers?: object): Promise<IsValidAccessCodeReturn>
|
|
177
192
|
internalClaimAccessCode(args: InternalClaimAccessCodeArgs, headers?: object): Promise<InternalClaimAccessCodeReturn>
|
|
@@ -338,6 +353,20 @@ export interface IsUsingGoogleMailArgs {
|
|
|
338
353
|
export interface IsUsingGoogleMailReturn {
|
|
339
354
|
yes: boolean
|
|
340
355
|
}
|
|
356
|
+
export interface GetTokenPricesArgs {
|
|
357
|
+
tokens: Array<Token>
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
export interface GetTokenPricesReturn {
|
|
361
|
+
tokenPrices: Array<TokenPrice>
|
|
362
|
+
}
|
|
363
|
+
export interface GetCollectiblePricesArgs {
|
|
364
|
+
tokens: Array<Token>
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
export interface GetCollectiblePricesReturn {
|
|
368
|
+
tokenPrices: Array<TokenPrice>
|
|
369
|
+
}
|
|
341
370
|
export interface GetInviteInfoArgs {
|
|
342
371
|
}
|
|
343
372
|
|
|
@@ -650,6 +679,30 @@ export class API implements API {
|
|
|
650
679
|
})
|
|
651
680
|
}
|
|
652
681
|
|
|
682
|
+
getTokenPrices = (args: GetTokenPricesArgs, headers?: object): Promise<GetTokenPricesReturn> => {
|
|
683
|
+
return this.fetch(
|
|
684
|
+
this.url('GetTokenPrices'),
|
|
685
|
+
createHTTPRequest(args, headers)).then((res) => {
|
|
686
|
+
return buildResponse(res).then(_data => {
|
|
687
|
+
return {
|
|
688
|
+
tokenPrices: <Array<TokenPrice>>(_data.tokenPrices)
|
|
689
|
+
}
|
|
690
|
+
})
|
|
691
|
+
})
|
|
692
|
+
}
|
|
693
|
+
|
|
694
|
+
getCollectiblePrices = (args: GetCollectiblePricesArgs, headers?: object): Promise<GetCollectiblePricesReturn> => {
|
|
695
|
+
return this.fetch(
|
|
696
|
+
this.url('GetCollectiblePrices'),
|
|
697
|
+
createHTTPRequest(args, headers)).then((res) => {
|
|
698
|
+
return buildResponse(res).then(_data => {
|
|
699
|
+
return {
|
|
700
|
+
tokenPrices: <Array<TokenPrice>>(_data.tokenPrices)
|
|
701
|
+
}
|
|
702
|
+
})
|
|
703
|
+
})
|
|
704
|
+
}
|
|
705
|
+
|
|
653
706
|
getInviteInfo = (headers?: object): Promise<GetInviteInfoReturn> => {
|
|
654
707
|
return this.fetch(
|
|
655
708
|
this.url('GetInviteInfo'),
|