@0xsequence/api 0.30.0 → 0.35.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.
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,37 @@
|
|
|
1
1
|
# @0xsequence/api
|
|
2
2
|
|
|
3
|
+
## 0.35.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- - config: add buildStubSignature
|
|
8
|
+
- provider: add checks to signing cases for wallet deployment and config statuses
|
|
9
|
+
- provider: add prompt for wallet deployment
|
|
10
|
+
- relayer: add BaseRelayer.prependWalletDeploy
|
|
11
|
+
- relayer: add Relayer.feeOptions
|
|
12
|
+
- relayer: account for wallet deployment in fee estimation
|
|
13
|
+
- transactions: add fromTransactionish
|
|
14
|
+
- wallet: add Account.prependConfigUpdate
|
|
15
|
+
- wallet: add Account.getFeeOptions
|
|
16
|
+
|
|
17
|
+
## 0.34.0
|
|
18
|
+
|
|
19
|
+
### Minor Changes
|
|
20
|
+
|
|
21
|
+
- - upgrade deps
|
|
22
|
+
|
|
23
|
+
## 0.33.1
|
|
24
|
+
|
|
25
|
+
### Patch Changes
|
|
26
|
+
|
|
27
|
+
- update bindings
|
|
28
|
+
|
|
29
|
+
## 0.31.0
|
|
30
|
+
|
|
31
|
+
### Minor Changes
|
|
32
|
+
|
|
33
|
+
- - upgrading to ethers v5.5
|
|
34
|
+
|
|
3
35
|
## 0.30.0
|
|
4
36
|
|
|
5
37
|
### Minor Changes
|
|
@@ -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 db6421c0a8d94ad6eafa79249ba7692c55059b39
|
|
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 = "db6421c0a8d94ad6eafa79249ba7692c55059b39"; //
|
|
40
40
|
// Types
|
|
41
41
|
//
|
|
42
42
|
|
|
@@ -253,6 +253,16 @@ class API {
|
|
|
253
253
|
});
|
|
254
254
|
};
|
|
255
255
|
|
|
256
|
+
this.getMoonpayLink = (args, headers) => {
|
|
257
|
+
return this.fetch(this.url('GetMoonpayLink'), createHTTPRequest(args, headers)).then(res => {
|
|
258
|
+
return buildResponse(res).then(_data => {
|
|
259
|
+
return {
|
|
260
|
+
signedUrl: _data.signedUrl
|
|
261
|
+
};
|
|
262
|
+
});
|
|
263
|
+
});
|
|
264
|
+
};
|
|
265
|
+
|
|
256
266
|
this.isUsingGoogleMail = (args, headers) => {
|
|
257
267
|
return this.fetch(this.url('IsUsingGoogleMail'), createHTTPRequest(args, headers)).then(res => {
|
|
258
268
|
return buildResponse(res).then(_data => {
|
|
@@ -347,7 +357,7 @@ const buildResponse = res => {
|
|
|
347
357
|
|
|
348
358
|
class SequenceAPIClient extends API {
|
|
349
359
|
constructor(hostname, jwtAuth) {
|
|
350
|
-
super(hostname, fetch__default[
|
|
360
|
+
super(hostname, fetch__default["default"]);
|
|
351
361
|
this.jwtAuth = jwtAuth;
|
|
352
362
|
|
|
353
363
|
this._fetch = (input, init) => {
|
|
@@ -361,7 +371,7 @@ class SequenceAPIClient extends API {
|
|
|
361
371
|
|
|
362
372
|
|
|
363
373
|
init.headers = _extends({}, init.headers, headers);
|
|
364
|
-
return fetch__default[
|
|
374
|
+
return fetch__default["default"](input, init);
|
|
365
375
|
};
|
|
366
376
|
|
|
367
377
|
this.fetch = this._fetch;
|
|
@@ -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 db6421c0a8d94ad6eafa79249ba7692c55059b39
|
|
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 = "db6421c0a8d94ad6eafa79249ba7692c55059b39"; //
|
|
40
40
|
// Types
|
|
41
41
|
//
|
|
42
42
|
|
|
@@ -253,6 +253,16 @@ class API {
|
|
|
253
253
|
});
|
|
254
254
|
};
|
|
255
255
|
|
|
256
|
+
this.getMoonpayLink = (args, headers) => {
|
|
257
|
+
return this.fetch(this.url('GetMoonpayLink'), createHTTPRequest(args, headers)).then(res => {
|
|
258
|
+
return buildResponse(res).then(_data => {
|
|
259
|
+
return {
|
|
260
|
+
signedUrl: _data.signedUrl
|
|
261
|
+
};
|
|
262
|
+
});
|
|
263
|
+
});
|
|
264
|
+
};
|
|
265
|
+
|
|
256
266
|
this.isUsingGoogleMail = (args, headers) => {
|
|
257
267
|
return this.fetch(this.url('IsUsingGoogleMail'), createHTTPRequest(args, headers)).then(res => {
|
|
258
268
|
return buildResponse(res).then(_data => {
|
|
@@ -347,7 +357,7 @@ const buildResponse = res => {
|
|
|
347
357
|
|
|
348
358
|
class SequenceAPIClient extends API {
|
|
349
359
|
constructor(hostname, jwtAuth) {
|
|
350
|
-
super(hostname, fetch__default[
|
|
360
|
+
super(hostname, fetch__default["default"]);
|
|
351
361
|
this.jwtAuth = jwtAuth;
|
|
352
362
|
|
|
353
363
|
this._fetch = (input, init) => {
|
|
@@ -361,7 +371,7 @@ class SequenceAPIClient extends API {
|
|
|
361
371
|
|
|
362
372
|
|
|
363
373
|
init.headers = _extends({}, init.headers, headers);
|
|
364
|
-
return fetch__default[
|
|
374
|
+
return fetch__default["default"](input, init);
|
|
365
375
|
};
|
|
366
376
|
|
|
367
377
|
this.fetch = this._fetch;
|
|
@@ -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 db6421c0a8d94ad6eafa79249ba7692c55059b39
|
|
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 = "db6421c0a8d94ad6eafa79249ba7692c55059b39"; //
|
|
32
32
|
// Types
|
|
33
33
|
//
|
|
34
34
|
|
|
@@ -245,6 +245,16 @@ class API {
|
|
|
245
245
|
});
|
|
246
246
|
};
|
|
247
247
|
|
|
248
|
+
this.getMoonpayLink = (args, headers) => {
|
|
249
|
+
return this.fetch(this.url('GetMoonpayLink'), createHTTPRequest(args, headers)).then(res => {
|
|
250
|
+
return buildResponse(res).then(_data => {
|
|
251
|
+
return {
|
|
252
|
+
signedUrl: _data.signedUrl
|
|
253
|
+
};
|
|
254
|
+
});
|
|
255
|
+
});
|
|
256
|
+
};
|
|
257
|
+
|
|
248
258
|
this.isUsingGoogleMail = (args, headers) => {
|
|
249
259
|
return this.fetch(this.url('IsUsingGoogleMail'), createHTTPRequest(args, headers)).then(res => {
|
|
250
260
|
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 = "db6421c0a8d94ad6eafa79249ba7692c55059b39";
|
|
4
4
|
export declare enum SortOrder {
|
|
5
5
|
DESC = "DESC",
|
|
6
6
|
ASC = "ASC"
|
|
@@ -132,6 +132,7 @@ export interface API {
|
|
|
132
132
|
userStorageSave(args: UserStorageSaveArgs, headers?: object): Promise<UserStorageSaveReturn>;
|
|
133
133
|
userStorageDelete(args: UserStorageDeleteArgs, headers?: object): Promise<UserStorageDeleteReturn>;
|
|
134
134
|
userStorageFetchAll(args: UserStorageFetchAllArgs, headers?: object): Promise<UserStorageFetchAllReturn>;
|
|
135
|
+
getMoonpayLink(args: GetMoonpayLinkArgs, headers?: object): Promise<GetMoonpayLinkReturn>;
|
|
135
136
|
isUsingGoogleMail(args: IsUsingGoogleMailArgs, headers?: object): Promise<IsUsingGoogleMailReturn>;
|
|
136
137
|
getInviteInfo(headers?: object): Promise<GetInviteInfoReturn>;
|
|
137
138
|
isValidAccessCode(args: IsValidAccessCodeArgs, headers?: object): Promise<IsValidAccessCodeReturn>;
|
|
@@ -267,6 +268,12 @@ export interface UserStorageFetchAllReturn {
|
|
|
267
268
|
[key: string]: any;
|
|
268
269
|
};
|
|
269
270
|
}
|
|
271
|
+
export interface GetMoonpayLinkArgs {
|
|
272
|
+
url: string;
|
|
273
|
+
}
|
|
274
|
+
export interface GetMoonpayLinkReturn {
|
|
275
|
+
signedUrl: string;
|
|
276
|
+
}
|
|
270
277
|
export interface IsUsingGoogleMailArgs {
|
|
271
278
|
domain: string;
|
|
272
279
|
}
|
|
@@ -323,6 +330,7 @@ export declare class API implements API {
|
|
|
323
330
|
userStorageSave: (args: UserStorageSaveArgs, headers?: object | undefined) => Promise<UserStorageSaveReturn>;
|
|
324
331
|
userStorageDelete: (args: UserStorageDeleteArgs, headers?: object | undefined) => Promise<UserStorageDeleteReturn>;
|
|
325
332
|
userStorageFetchAll: (args: UserStorageFetchAllArgs, headers?: object | undefined) => Promise<UserStorageFetchAllReturn>;
|
|
333
|
+
getMoonpayLink: (args: GetMoonpayLinkArgs, headers?: object | undefined) => Promise<GetMoonpayLinkReturn>;
|
|
326
334
|
isUsingGoogleMail: (args: IsUsingGoogleMailArgs, headers?: object | undefined) => Promise<IsUsingGoogleMailReturn>;
|
|
327
335
|
getInviteInfo: (headers?: object | undefined) => Promise<GetInviteInfoReturn>;
|
|
328
336
|
isValidAccessCode: (args: IsValidAccessCodeArgs, headers?: object | undefined) => Promise<IsValidAccessCodeReturn>;
|
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 db6421c0a8d94ad6eafa79249ba7692c55059b39
|
|
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 = "db6421c0a8d94ad6eafa79249ba7692c55059b39"
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
//
|
|
@@ -170,6 +170,7 @@ export interface API {
|
|
|
170
170
|
userStorageSave(args: UserStorageSaveArgs, headers?: object): Promise<UserStorageSaveReturn>
|
|
171
171
|
userStorageDelete(args: UserStorageDeleteArgs, headers?: object): Promise<UserStorageDeleteReturn>
|
|
172
172
|
userStorageFetchAll(args: UserStorageFetchAllArgs, headers?: object): Promise<UserStorageFetchAllReturn>
|
|
173
|
+
getMoonpayLink(args: GetMoonpayLinkArgs, headers?: object): Promise<GetMoonpayLinkReturn>
|
|
173
174
|
isUsingGoogleMail(args: IsUsingGoogleMailArgs, headers?: object): Promise<IsUsingGoogleMailReturn>
|
|
174
175
|
getInviteInfo(headers?: object): Promise<GetInviteInfoReturn>
|
|
175
176
|
isValidAccessCode(args: IsValidAccessCodeArgs, headers?: object): Promise<IsValidAccessCodeReturn>
|
|
@@ -323,6 +324,13 @@ export interface UserStorageFetchAllArgs {
|
|
|
323
324
|
export interface UserStorageFetchAllReturn {
|
|
324
325
|
objects: {[key: string]: any}
|
|
325
326
|
}
|
|
327
|
+
export interface GetMoonpayLinkArgs {
|
|
328
|
+
url: string
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
export interface GetMoonpayLinkReturn {
|
|
332
|
+
signedUrl: string
|
|
333
|
+
}
|
|
326
334
|
export interface IsUsingGoogleMailArgs {
|
|
327
335
|
domain: string
|
|
328
336
|
}
|
|
@@ -618,6 +626,18 @@ export class API implements API {
|
|
|
618
626
|
})
|
|
619
627
|
}
|
|
620
628
|
|
|
629
|
+
getMoonpayLink = (args: GetMoonpayLinkArgs, headers?: object): Promise<GetMoonpayLinkReturn> => {
|
|
630
|
+
return this.fetch(
|
|
631
|
+
this.url('GetMoonpayLink'),
|
|
632
|
+
createHTTPRequest(args, headers)).then((res) => {
|
|
633
|
+
return buildResponse(res).then(_data => {
|
|
634
|
+
return {
|
|
635
|
+
signedUrl: <string>(_data.signedUrl)
|
|
636
|
+
}
|
|
637
|
+
})
|
|
638
|
+
})
|
|
639
|
+
}
|
|
640
|
+
|
|
621
641
|
isUsingGoogleMail = (args: IsUsingGoogleMailArgs, headers?: object): Promise<IsUsingGoogleMailReturn> => {
|
|
622
642
|
return this.fetch(
|
|
623
643
|
this.url('IsUsingGoogleMail'),
|