@0xsequence/api 0.42.2 → 0.42.4
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 9f7a841e9b1655d80084cda01db665c0dada48c9
|
|
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 = "9f7a841e9b1655d80084cda01db665c0dada48c9"; //
|
|
40
40
|
// Types
|
|
41
41
|
//
|
|
42
42
|
|
|
@@ -527,6 +527,16 @@ class API {
|
|
|
527
527
|
});
|
|
528
528
|
};
|
|
529
529
|
|
|
530
|
+
this.blockNumberAtTime = (args, headers) => {
|
|
531
|
+
return this.fetch(this.url('BlockNumberAtTime'), createHTTPRequest(args, headers)).then(res => {
|
|
532
|
+
return buildResponse(res).then(_data => {
|
|
533
|
+
return {
|
|
534
|
+
blocks: _data.blocks
|
|
535
|
+
};
|
|
536
|
+
});
|
|
537
|
+
});
|
|
538
|
+
};
|
|
539
|
+
|
|
530
540
|
this.hostname = hostname;
|
|
531
541
|
this.fetch = fetch;
|
|
532
542
|
}
|
|
@@ -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 9f7a841e9b1655d80084cda01db665c0dada48c9
|
|
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 = "9f7a841e9b1655d80084cda01db665c0dada48c9"; //
|
|
40
40
|
// Types
|
|
41
41
|
//
|
|
42
42
|
|
|
@@ -527,6 +527,16 @@ class API {
|
|
|
527
527
|
});
|
|
528
528
|
};
|
|
529
529
|
|
|
530
|
+
this.blockNumberAtTime = (args, headers) => {
|
|
531
|
+
return this.fetch(this.url('BlockNumberAtTime'), createHTTPRequest(args, headers)).then(res => {
|
|
532
|
+
return buildResponse(res).then(_data => {
|
|
533
|
+
return {
|
|
534
|
+
blocks: _data.blocks
|
|
535
|
+
};
|
|
536
|
+
});
|
|
537
|
+
});
|
|
538
|
+
};
|
|
539
|
+
|
|
530
540
|
this.hostname = hostname;
|
|
531
541
|
this.fetch = fetch;
|
|
532
542
|
}
|
|
@@ -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 9f7a841e9b1655d80084cda01db665c0dada48c9
|
|
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 = "9f7a841e9b1655d80084cda01db665c0dada48c9"; //
|
|
32
32
|
// Types
|
|
33
33
|
//
|
|
34
34
|
|
|
@@ -519,6 +519,16 @@ class API {
|
|
|
519
519
|
});
|
|
520
520
|
};
|
|
521
521
|
|
|
522
|
+
this.blockNumberAtTime = (args, headers) => {
|
|
523
|
+
return this.fetch(this.url('BlockNumberAtTime'), createHTTPRequest(args, headers)).then(res => {
|
|
524
|
+
return buildResponse(res).then(_data => {
|
|
525
|
+
return {
|
|
526
|
+
blocks: _data.blocks
|
|
527
|
+
};
|
|
528
|
+
});
|
|
529
|
+
});
|
|
530
|
+
};
|
|
531
|
+
|
|
522
532
|
this.hostname = hostname;
|
|
523
533
|
this.fetch = fetch;
|
|
524
534
|
}
|
|
@@ -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 = "9f7a841e9b1655d80084cda01db665c0dada48c9";
|
|
4
4
|
export declare enum SmartRampOrderStatus {
|
|
5
5
|
UNKNOWN = "UNKNOWN",
|
|
6
6
|
RUNNING_CHECKS = "RUNNING_CHECKS",
|
|
@@ -285,6 +285,7 @@ export interface API {
|
|
|
285
285
|
isValidAccessCode(args: IsValidAccessCodeArgs, headers?: object): Promise<IsValidAccessCodeReturn>;
|
|
286
286
|
internalClaimAccessCode(args: InternalClaimAccessCodeArgs, headers?: object): Promise<InternalClaimAccessCodeReturn>;
|
|
287
287
|
walletRecover(args: WalletRecoverArgs, headers?: object): Promise<WalletRecoverReturn>;
|
|
288
|
+
blockNumberAtTime(args: BlockNumberAtTimeArgs, headers?: object): Promise<BlockNumberAtTimeReturn>;
|
|
288
289
|
}
|
|
289
290
|
export interface PingArgs {
|
|
290
291
|
}
|
|
@@ -589,6 +590,13 @@ export interface WalletRecoverArgs {
|
|
|
589
590
|
export interface WalletRecoverReturn {
|
|
590
591
|
encryptedWallet: string;
|
|
591
592
|
}
|
|
593
|
+
export interface BlockNumberAtTimeArgs {
|
|
594
|
+
chainId: number;
|
|
595
|
+
timestamps: Array<number>;
|
|
596
|
+
}
|
|
597
|
+
export interface BlockNumberAtTimeReturn {
|
|
598
|
+
blocks: Array<number>;
|
|
599
|
+
}
|
|
592
600
|
export declare class API implements API {
|
|
593
601
|
protected hostname: string;
|
|
594
602
|
protected fetch: Fetch;
|
|
@@ -639,6 +647,7 @@ export declare class API implements API {
|
|
|
639
647
|
isValidAccessCode: (args: IsValidAccessCodeArgs, headers?: object | undefined) => Promise<IsValidAccessCodeReturn>;
|
|
640
648
|
internalClaimAccessCode: (args: InternalClaimAccessCodeArgs, headers?: object | undefined) => Promise<InternalClaimAccessCodeReturn>;
|
|
641
649
|
walletRecover: (args: WalletRecoverArgs, headers?: object | undefined) => Promise<WalletRecoverReturn>;
|
|
650
|
+
blockNumberAtTime: (args: BlockNumberAtTimeArgs, headers?: object | undefined) => Promise<BlockNumberAtTimeReturn>;
|
|
642
651
|
}
|
|
643
652
|
export interface WebRPCError extends Error {
|
|
644
653
|
code: string;
|
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 9f7a841e9b1655d80084cda01db665c0dada48c9
|
|
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 = "9f7a841e9b1655d80084cda01db665c0dada48c9"
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
//
|
|
@@ -333,6 +333,7 @@ export interface API {
|
|
|
333
333
|
isValidAccessCode(args: IsValidAccessCodeArgs, headers?: object): Promise<IsValidAccessCodeReturn>
|
|
334
334
|
internalClaimAccessCode(args: InternalClaimAccessCodeArgs, headers?: object): Promise<InternalClaimAccessCodeReturn>
|
|
335
335
|
walletRecover(args: WalletRecoverArgs, headers?: object): Promise<WalletRecoverReturn>
|
|
336
|
+
blockNumberAtTime(args: BlockNumberAtTimeArgs, headers?: object): Promise<BlockNumberAtTimeReturn>
|
|
336
337
|
}
|
|
337
338
|
|
|
338
339
|
export interface PingArgs {
|
|
@@ -680,6 +681,14 @@ export interface WalletRecoverArgs {
|
|
|
680
681
|
export interface WalletRecoverReturn {
|
|
681
682
|
encryptedWallet: string
|
|
682
683
|
}
|
|
684
|
+
export interface BlockNumberAtTimeArgs {
|
|
685
|
+
chainId: number
|
|
686
|
+
timestamps: Array<number>
|
|
687
|
+
}
|
|
688
|
+
|
|
689
|
+
export interface BlockNumberAtTimeReturn {
|
|
690
|
+
blocks: Array<number>
|
|
691
|
+
}
|
|
683
692
|
|
|
684
693
|
|
|
685
694
|
|
|
@@ -1247,6 +1256,18 @@ export class API implements API {
|
|
|
1247
1256
|
})
|
|
1248
1257
|
}
|
|
1249
1258
|
|
|
1259
|
+
blockNumberAtTime = (args: BlockNumberAtTimeArgs, headers?: object): Promise<BlockNumberAtTimeReturn> => {
|
|
1260
|
+
return this.fetch(
|
|
1261
|
+
this.url('BlockNumberAtTime'),
|
|
1262
|
+
createHTTPRequest(args, headers)).then((res) => {
|
|
1263
|
+
return buildResponse(res).then(_data => {
|
|
1264
|
+
return {
|
|
1265
|
+
blocks: <Array<number>>(_data.blocks)
|
|
1266
|
+
}
|
|
1267
|
+
})
|
|
1268
|
+
})
|
|
1269
|
+
}
|
|
1270
|
+
|
|
1250
1271
|
}
|
|
1251
1272
|
|
|
1252
1273
|
|