@0xsequence/api 0.36.13 → 0.38.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 5bceb4017bb362196d400b1e8cf74bcdf0823f33
|
|
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 = "5bceb4017bb362196d400b1e8cf74bcdf0823f33"; //
|
|
40
40
|
// Types
|
|
41
41
|
//
|
|
42
42
|
|
|
@@ -293,6 +293,16 @@ class API {
|
|
|
293
293
|
});
|
|
294
294
|
};
|
|
295
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
|
+
|
|
296
306
|
this.getInviteInfo = headers => {
|
|
297
307
|
return this.fetch(this.url('GetInviteInfo'), createHTTPRequest({}, headers)).then(res => {
|
|
298
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 5bceb4017bb362196d400b1e8cf74bcdf0823f33
|
|
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 = "5bceb4017bb362196d400b1e8cf74bcdf0823f33"; //
|
|
40
40
|
// Types
|
|
41
41
|
//
|
|
42
42
|
|
|
@@ -293,6 +293,16 @@ class API {
|
|
|
293
293
|
});
|
|
294
294
|
};
|
|
295
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
|
+
|
|
296
306
|
this.getInviteInfo = headers => {
|
|
297
307
|
return this.fetch(this.url('GetInviteInfo'), createHTTPRequest({}, headers)).then(res => {
|
|
298
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 5bceb4017bb362196d400b1e8cf74bcdf0823f33
|
|
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 = "5bceb4017bb362196d400b1e8cf74bcdf0823f33"; //
|
|
32
32
|
// Types
|
|
33
33
|
//
|
|
34
34
|
|
|
@@ -285,6 +285,16 @@ class API {
|
|
|
285
285
|
});
|
|
286
286
|
};
|
|
287
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
|
+
|
|
288
298
|
this.getInviteInfo = headers => {
|
|
289
299
|
return this.fetch(this.url('GetInviteInfo'), createHTTPRequest({}, headers)).then(res => {
|
|
290
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 = "5bceb4017bb362196d400b1e8cf74bcdf0823f33";
|
|
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,12 +117,26 @@ 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
|
}
|
|
133
|
+
export interface ExchangeRate {
|
|
134
|
+
name: string;
|
|
135
|
+
symbol: string;
|
|
136
|
+
value: number;
|
|
137
|
+
vsCurrency: string;
|
|
138
|
+
currencyType: string;
|
|
139
|
+
}
|
|
126
140
|
export interface API {
|
|
127
141
|
ping(headers?: object): Promise<PingReturn>;
|
|
128
142
|
version(headers?: object): Promise<VersionReturn>;
|
|
@@ -147,6 +161,7 @@ export interface API {
|
|
|
147
161
|
isUsingGoogleMail(args: IsUsingGoogleMailArgs, headers?: object): Promise<IsUsingGoogleMailReturn>;
|
|
148
162
|
getTokenPrices(args: GetTokenPricesArgs, headers?: object): Promise<GetTokenPricesReturn>;
|
|
149
163
|
getCollectiblePrices(args: GetCollectiblePricesArgs, headers?: object): Promise<GetCollectiblePricesReturn>;
|
|
164
|
+
getExchangeRate(args: GetExchangeRateArgs, headers?: object): Promise<GetExchangeRateReturn>;
|
|
150
165
|
getInviteInfo(headers?: object): Promise<GetInviteInfoReturn>;
|
|
151
166
|
isValidAccessCode(args: IsValidAccessCodeArgs, headers?: object): Promise<IsValidAccessCodeReturn>;
|
|
152
167
|
internalClaimAccessCode(args: InternalClaimAccessCodeArgs, headers?: object): Promise<InternalClaimAccessCodeReturn>;
|
|
@@ -305,6 +320,12 @@ export interface GetCollectiblePricesArgs {
|
|
|
305
320
|
export interface GetCollectiblePricesReturn {
|
|
306
321
|
tokenPrices: Array<TokenPrice>;
|
|
307
322
|
}
|
|
323
|
+
export interface GetExchangeRateArgs {
|
|
324
|
+
toCurrency: string;
|
|
325
|
+
}
|
|
326
|
+
export interface GetExchangeRateReturn {
|
|
327
|
+
exchangeRate: ExchangeRate;
|
|
328
|
+
}
|
|
308
329
|
export interface GetInviteInfoArgs {
|
|
309
330
|
}
|
|
310
331
|
export interface GetInviteInfoReturn {
|
|
@@ -359,6 +380,7 @@ export declare class API implements API {
|
|
|
359
380
|
isUsingGoogleMail: (args: IsUsingGoogleMailArgs, headers?: object | undefined) => Promise<IsUsingGoogleMailReturn>;
|
|
360
381
|
getTokenPrices: (args: GetTokenPricesArgs, headers?: object | undefined) => Promise<GetTokenPricesReturn>;
|
|
361
382
|
getCollectiblePrices: (args: GetCollectiblePricesArgs, headers?: object | undefined) => Promise<GetCollectiblePricesReturn>;
|
|
383
|
+
getExchangeRate: (args: GetExchangeRateArgs, headers?: object | undefined) => Promise<GetExchangeRateReturn>;
|
|
362
384
|
getInviteInfo: (headers?: object | undefined) => Promise<GetInviteInfoReturn>;
|
|
363
385
|
isValidAccessCode: (args: IsValidAccessCodeArgs, headers?: object | undefined) => Promise<IsValidAccessCodeReturn>;
|
|
364
386
|
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 5bceb4017bb362196d400b1e8cf74bcdf0823f33
|
|
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 = "5bceb4017bb362196d400b1e8cf74bcdf0823f33"
|
|
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,13 +156,29 @@ 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
|
|
|
174
|
+
export interface ExchangeRate {
|
|
175
|
+
name: string
|
|
176
|
+
symbol: string
|
|
177
|
+
value: number
|
|
178
|
+
vsCurrency: string
|
|
179
|
+
currencyType: string
|
|
180
|
+
}
|
|
181
|
+
|
|
166
182
|
export interface API {
|
|
167
183
|
ping(headers?: object): Promise<PingReturn>
|
|
168
184
|
version(headers?: object): Promise<VersionReturn>
|
|
@@ -187,6 +203,7 @@ export interface API {
|
|
|
187
203
|
isUsingGoogleMail(args: IsUsingGoogleMailArgs, headers?: object): Promise<IsUsingGoogleMailReturn>
|
|
188
204
|
getTokenPrices(args: GetTokenPricesArgs, headers?: object): Promise<GetTokenPricesReturn>
|
|
189
205
|
getCollectiblePrices(args: GetCollectiblePricesArgs, headers?: object): Promise<GetCollectiblePricesReturn>
|
|
206
|
+
getExchangeRate(args: GetExchangeRateArgs, headers?: object): Promise<GetExchangeRateReturn>
|
|
190
207
|
getInviteInfo(headers?: object): Promise<GetInviteInfoReturn>
|
|
191
208
|
isValidAccessCode(args: IsValidAccessCodeArgs, headers?: object): Promise<IsValidAccessCodeReturn>
|
|
192
209
|
internalClaimAccessCode(args: InternalClaimAccessCodeArgs, headers?: object): Promise<InternalClaimAccessCodeReturn>
|
|
@@ -367,6 +384,13 @@ export interface GetCollectiblePricesArgs {
|
|
|
367
384
|
export interface GetCollectiblePricesReturn {
|
|
368
385
|
tokenPrices: Array<TokenPrice>
|
|
369
386
|
}
|
|
387
|
+
export interface GetExchangeRateArgs {
|
|
388
|
+
toCurrency: string
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
export interface GetExchangeRateReturn {
|
|
392
|
+
exchangeRate: ExchangeRate
|
|
393
|
+
}
|
|
370
394
|
export interface GetInviteInfoArgs {
|
|
371
395
|
}
|
|
372
396
|
|
|
@@ -703,6 +727,18 @@ export class API implements API {
|
|
|
703
727
|
})
|
|
704
728
|
}
|
|
705
729
|
|
|
730
|
+
getExchangeRate = (args: GetExchangeRateArgs, headers?: object): Promise<GetExchangeRateReturn> => {
|
|
731
|
+
return this.fetch(
|
|
732
|
+
this.url('GetExchangeRate'),
|
|
733
|
+
createHTTPRequest(args, headers)).then((res) => {
|
|
734
|
+
return buildResponse(res).then(_data => {
|
|
735
|
+
return {
|
|
736
|
+
exchangeRate: <ExchangeRate>(_data.exchangeRate)
|
|
737
|
+
}
|
|
738
|
+
})
|
|
739
|
+
})
|
|
740
|
+
}
|
|
741
|
+
|
|
706
742
|
getInviteInfo = (headers?: object): Promise<GetInviteInfoReturn> => {
|
|
707
743
|
return this.fetch(
|
|
708
744
|
this.url('GetInviteInfo'),
|