@0xsequence/api 0.43.19 → 0.43.21
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.
|
@@ -18,7 +18,7 @@ function _extends() {
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
/* eslint-disable */
|
|
21
|
-
// sequence-api v0.4.0
|
|
21
|
+
// sequence-api v0.4.0 d1f6b3f5d785b3363324bd82228e3efd291664fb
|
|
22
22
|
// --
|
|
23
23
|
// Code generated by webrpc-gen@v0.10.x-dev with typescript generator. DO NOT EDIT.
|
|
24
24
|
//
|
|
@@ -31,7 +31,7 @@ const WebRPCVersion = "v1";
|
|
|
31
31
|
const WebRPCSchemaVersion = "v0.4.0";
|
|
32
32
|
|
|
33
33
|
// Schema hash generated from your RIDL schema
|
|
34
|
-
const WebRPCSchemaHash = "
|
|
34
|
+
const WebRPCSchemaHash = "d1f6b3f5d785b3363324bd82228e3efd291664fb";
|
|
35
35
|
|
|
36
36
|
//
|
|
37
37
|
// Types
|
|
@@ -546,6 +546,15 @@ class API {
|
|
|
546
546
|
});
|
|
547
547
|
});
|
|
548
548
|
};
|
|
549
|
+
this.paperSessionSecret = (args, headers) => {
|
|
550
|
+
return this.fetch(this.url('PaperSessionSecret'), createHTTPRequest(args, headers)).then(res => {
|
|
551
|
+
return buildResponse(res).then(_data => {
|
|
552
|
+
return {
|
|
553
|
+
secret: _data.secret
|
|
554
|
+
};
|
|
555
|
+
});
|
|
556
|
+
});
|
|
557
|
+
};
|
|
549
558
|
this.hostname = hostname;
|
|
550
559
|
this.fetch = (input, init) => fetch(input, init);
|
|
551
560
|
}
|
|
@@ -18,7 +18,7 @@ function _extends() {
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
/* eslint-disable */
|
|
21
|
-
// sequence-api v0.4.0
|
|
21
|
+
// sequence-api v0.4.0 d1f6b3f5d785b3363324bd82228e3efd291664fb
|
|
22
22
|
// --
|
|
23
23
|
// Code generated by webrpc-gen@v0.10.x-dev with typescript generator. DO NOT EDIT.
|
|
24
24
|
//
|
|
@@ -31,7 +31,7 @@ const WebRPCVersion = "v1";
|
|
|
31
31
|
const WebRPCSchemaVersion = "v0.4.0";
|
|
32
32
|
|
|
33
33
|
// Schema hash generated from your RIDL schema
|
|
34
|
-
const WebRPCSchemaHash = "
|
|
34
|
+
const WebRPCSchemaHash = "d1f6b3f5d785b3363324bd82228e3efd291664fb";
|
|
35
35
|
|
|
36
36
|
//
|
|
37
37
|
// Types
|
|
@@ -546,6 +546,15 @@ class API {
|
|
|
546
546
|
});
|
|
547
547
|
});
|
|
548
548
|
};
|
|
549
|
+
this.paperSessionSecret = (args, headers) => {
|
|
550
|
+
return this.fetch(this.url('PaperSessionSecret'), createHTTPRequest(args, headers)).then(res => {
|
|
551
|
+
return buildResponse(res).then(_data => {
|
|
552
|
+
return {
|
|
553
|
+
secret: _data.secret
|
|
554
|
+
};
|
|
555
|
+
});
|
|
556
|
+
});
|
|
557
|
+
};
|
|
549
558
|
this.hostname = hostname;
|
|
550
559
|
this.fetch = (input, init) => fetch(input, init);
|
|
551
560
|
}
|
|
@@ -14,7 +14,7 @@ function _extends() {
|
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
/* eslint-disable */
|
|
17
|
-
// sequence-api v0.4.0
|
|
17
|
+
// sequence-api v0.4.0 d1f6b3f5d785b3363324bd82228e3efd291664fb
|
|
18
18
|
// --
|
|
19
19
|
// Code generated by webrpc-gen@v0.10.x-dev with typescript generator. DO NOT EDIT.
|
|
20
20
|
//
|
|
@@ -27,7 +27,7 @@ const WebRPCVersion = "v1";
|
|
|
27
27
|
const WebRPCSchemaVersion = "v0.4.0";
|
|
28
28
|
|
|
29
29
|
// Schema hash generated from your RIDL schema
|
|
30
|
-
const WebRPCSchemaHash = "
|
|
30
|
+
const WebRPCSchemaHash = "d1f6b3f5d785b3363324bd82228e3efd291664fb";
|
|
31
31
|
|
|
32
32
|
//
|
|
33
33
|
// Types
|
|
@@ -542,6 +542,15 @@ class API {
|
|
|
542
542
|
});
|
|
543
543
|
});
|
|
544
544
|
};
|
|
545
|
+
this.paperSessionSecret = (args, headers) => {
|
|
546
|
+
return this.fetch(this.url('PaperSessionSecret'), createHTTPRequest(args, headers)).then(res => {
|
|
547
|
+
return buildResponse(res).then(_data => {
|
|
548
|
+
return {
|
|
549
|
+
secret: _data.secret
|
|
550
|
+
};
|
|
551
|
+
});
|
|
552
|
+
});
|
|
553
|
+
};
|
|
545
554
|
this.hostname = hostname;
|
|
546
555
|
this.fetch = (input, init) => fetch(input, init);
|
|
547
556
|
}
|
|
@@ -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 = "d1f6b3f5d785b3363324bd82228e3efd291664fb";
|
|
4
4
|
export declare enum SmartRampOrderStatus {
|
|
5
5
|
UNKNOWN = "UNKNOWN",
|
|
6
6
|
RUNNING_CHECKS = "RUNNING_CHECKS",
|
|
@@ -294,6 +294,7 @@ export interface API {
|
|
|
294
294
|
internalClaimAccessCode(args: InternalClaimAccessCodeArgs, headers?: object): Promise<InternalClaimAccessCodeReturn>;
|
|
295
295
|
walletRecover(args: WalletRecoverArgs, headers?: object): Promise<WalletRecoverReturn>;
|
|
296
296
|
blockNumberAtTime(args: BlockNumberAtTimeArgs, headers?: object): Promise<BlockNumberAtTimeReturn>;
|
|
297
|
+
paperSessionSecret(args: PaperSessionSecretArgs, headers?: object): Promise<PaperSessionSecretReturn>;
|
|
297
298
|
}
|
|
298
299
|
export interface PingArgs {
|
|
299
300
|
}
|
|
@@ -649,6 +650,15 @@ export interface BlockNumberAtTimeArgs {
|
|
|
649
650
|
export interface BlockNumberAtTimeReturn {
|
|
650
651
|
blocks: Array<number>;
|
|
651
652
|
}
|
|
653
|
+
export interface PaperSessionSecretArgs {
|
|
654
|
+
chainName: string;
|
|
655
|
+
contractAddress: string;
|
|
656
|
+
paramsJson: string;
|
|
657
|
+
contractType: string;
|
|
658
|
+
}
|
|
659
|
+
export interface PaperSessionSecretReturn {
|
|
660
|
+
secret: string;
|
|
661
|
+
}
|
|
652
662
|
export declare class API implements API {
|
|
653
663
|
protected hostname: string;
|
|
654
664
|
protected fetch: Fetch;
|
|
@@ -707,6 +717,7 @@ export declare class API implements API {
|
|
|
707
717
|
internalClaimAccessCode: (args: InternalClaimAccessCodeArgs, headers?: object | undefined) => Promise<InternalClaimAccessCodeReturn>;
|
|
708
718
|
walletRecover: (args: WalletRecoverArgs, headers?: object | undefined) => Promise<WalletRecoverReturn>;
|
|
709
719
|
blockNumberAtTime: (args: BlockNumberAtTimeArgs, headers?: object | undefined) => Promise<BlockNumberAtTimeReturn>;
|
|
720
|
+
paperSessionSecret: (args: PaperSessionSecretArgs, headers?: object | undefined) => Promise<PaperSessionSecretReturn>;
|
|
710
721
|
}
|
|
711
722
|
export interface WebRPCError extends Error {
|
|
712
723
|
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 d1f6b3f5d785b3363324bd82228e3efd291664fb
|
|
3
3
|
// --
|
|
4
4
|
// Code generated by webrpc-gen@v0.10.x-dev with typescript generator. DO NOT EDIT.
|
|
5
5
|
//
|
|
@@ -12,7 +12,7 @@ export const WebRPCVersion = "v1"
|
|
|
12
12
|
export const WebRPCSchemaVersion = "v0.4.0"
|
|
13
13
|
|
|
14
14
|
// Schema hash generated from your RIDL schema
|
|
15
|
-
export const WebRPCSchemaHash = "
|
|
15
|
+
export const WebRPCSchemaHash = "d1f6b3f5d785b3363324bd82228e3efd291664fb"
|
|
16
16
|
|
|
17
17
|
//
|
|
18
18
|
// Types
|
|
@@ -341,6 +341,7 @@ export interface API {
|
|
|
341
341
|
internalClaimAccessCode(args: InternalClaimAccessCodeArgs, headers?: object): Promise<InternalClaimAccessCodeReturn>
|
|
342
342
|
walletRecover(args: WalletRecoverArgs, headers?: object): Promise<WalletRecoverReturn>
|
|
343
343
|
blockNumberAtTime(args: BlockNumberAtTimeArgs, headers?: object): Promise<BlockNumberAtTimeReturn>
|
|
344
|
+
paperSessionSecret(args: PaperSessionSecretArgs, headers?: object): Promise<PaperSessionSecretReturn>
|
|
344
345
|
}
|
|
345
346
|
|
|
346
347
|
export interface PingArgs {
|
|
@@ -747,6 +748,16 @@ export interface BlockNumberAtTimeArgs {
|
|
|
747
748
|
export interface BlockNumberAtTimeReturn {
|
|
748
749
|
blocks: Array<number>
|
|
749
750
|
}
|
|
751
|
+
export interface PaperSessionSecretArgs {
|
|
752
|
+
chainName: string
|
|
753
|
+
contractAddress: string
|
|
754
|
+
paramsJson: string
|
|
755
|
+
contractType: string
|
|
756
|
+
}
|
|
757
|
+
|
|
758
|
+
export interface PaperSessionSecretReturn {
|
|
759
|
+
secret: string
|
|
760
|
+
}
|
|
750
761
|
|
|
751
762
|
|
|
752
763
|
|
|
@@ -1412,6 +1423,18 @@ export class API implements API {
|
|
|
1412
1423
|
})
|
|
1413
1424
|
}
|
|
1414
1425
|
|
|
1426
|
+
paperSessionSecret = (args: PaperSessionSecretArgs, headers?: object): Promise<PaperSessionSecretReturn> => {
|
|
1427
|
+
return this.fetch(
|
|
1428
|
+
this.url('PaperSessionSecret'),
|
|
1429
|
+
createHTTPRequest(args, headers)).then((res) => {
|
|
1430
|
+
return buildResponse(res).then(_data => {
|
|
1431
|
+
return {
|
|
1432
|
+
secret: <string>(_data.secret)
|
|
1433
|
+
}
|
|
1434
|
+
})
|
|
1435
|
+
})
|
|
1436
|
+
}
|
|
1437
|
+
|
|
1415
1438
|
}
|
|
1416
1439
|
|
|
1417
1440
|
|