@0xsequence/api 2.3.13 → 2.3.14
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.
|
@@ -13,7 +13,7 @@ function _extends() {
|
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
/* eslint-disable */
|
|
16
|
-
// sequence-api v0.4.0
|
|
16
|
+
// sequence-api v0.4.0 1bfcfbfaf0d9cbc4cb88e71af967670e1c5506aa
|
|
17
17
|
// --
|
|
18
18
|
// Code generated by webrpc-gen@v0.25.3 with typescript generator. DO NOT EDIT.
|
|
19
19
|
//
|
|
@@ -29,7 +29,7 @@ const WebRPCVersion = "v1";
|
|
|
29
29
|
const WebRPCSchemaVersion = "v0.4.0";
|
|
30
30
|
|
|
31
31
|
// Schema hash generated from your RIDL schema
|
|
32
|
-
const WebRPCSchemaHash = "
|
|
32
|
+
const WebRPCSchemaHash = "1bfcfbfaf0d9cbc4cb88e71af967670e1c5506aa";
|
|
33
33
|
function VersionFromHeader(headers) {
|
|
34
34
|
const headerValue = headers.get(WebrpcHeader);
|
|
35
35
|
if (!headerValue) {
|
|
@@ -1171,6 +1171,19 @@ class API {
|
|
|
1171
1171
|
});
|
|
1172
1172
|
});
|
|
1173
1173
|
};
|
|
1174
|
+
this.getRevealTxData = (args, headers, signal) => {
|
|
1175
|
+
return this.fetch(this.url('GetRevealTxData'), createHTTPRequest(args, headers, signal)).then(res => {
|
|
1176
|
+
return buildResponse(res).then(_data => {
|
|
1177
|
+
return {
|
|
1178
|
+
txData: _data.txData
|
|
1179
|
+
};
|
|
1180
|
+
});
|
|
1181
|
+
}, error => {
|
|
1182
|
+
throw WebrpcRequestFailedError.new({
|
|
1183
|
+
cause: `fetch(): ${error.message || ''}`
|
|
1184
|
+
});
|
|
1185
|
+
});
|
|
1186
|
+
};
|
|
1174
1187
|
this.checkoutOptionsPrimary = (args, headers, signal) => {
|
|
1175
1188
|
return this.fetch(this.url('CheckoutOptionsPrimary'), createHTTPRequest(args, headers, signal)).then(res => {
|
|
1176
1189
|
return buildResponse(res).then(_data => {
|
|
@@ -13,7 +13,7 @@ function _extends() {
|
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
/* eslint-disable */
|
|
16
|
-
// sequence-api v0.4.0
|
|
16
|
+
// sequence-api v0.4.0 1bfcfbfaf0d9cbc4cb88e71af967670e1c5506aa
|
|
17
17
|
// --
|
|
18
18
|
// Code generated by webrpc-gen@v0.25.3 with typescript generator. DO NOT EDIT.
|
|
19
19
|
//
|
|
@@ -29,7 +29,7 @@ const WebRPCVersion = "v1";
|
|
|
29
29
|
const WebRPCSchemaVersion = "v0.4.0";
|
|
30
30
|
|
|
31
31
|
// Schema hash generated from your RIDL schema
|
|
32
|
-
const WebRPCSchemaHash = "
|
|
32
|
+
const WebRPCSchemaHash = "1bfcfbfaf0d9cbc4cb88e71af967670e1c5506aa";
|
|
33
33
|
function VersionFromHeader(headers) {
|
|
34
34
|
const headerValue = headers.get(WebrpcHeader);
|
|
35
35
|
if (!headerValue) {
|
|
@@ -1171,6 +1171,19 @@ class API {
|
|
|
1171
1171
|
});
|
|
1172
1172
|
});
|
|
1173
1173
|
};
|
|
1174
|
+
this.getRevealTxData = (args, headers, signal) => {
|
|
1175
|
+
return this.fetch(this.url('GetRevealTxData'), createHTTPRequest(args, headers, signal)).then(res => {
|
|
1176
|
+
return buildResponse(res).then(_data => {
|
|
1177
|
+
return {
|
|
1178
|
+
txData: _data.txData
|
|
1179
|
+
};
|
|
1180
|
+
});
|
|
1181
|
+
}, error => {
|
|
1182
|
+
throw WebrpcRequestFailedError.new({
|
|
1183
|
+
cause: `fetch(): ${error.message || ''}`
|
|
1184
|
+
});
|
|
1185
|
+
});
|
|
1186
|
+
};
|
|
1174
1187
|
this.checkoutOptionsPrimary = (args, headers, signal) => {
|
|
1175
1188
|
return this.fetch(this.url('CheckoutOptionsPrimary'), createHTTPRequest(args, headers, signal)).then(res => {
|
|
1176
1189
|
return buildResponse(res).then(_data => {
|
|
@@ -9,7 +9,7 @@ function _extends() {
|
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
/* eslint-disable */
|
|
12
|
-
// sequence-api v0.4.0
|
|
12
|
+
// sequence-api v0.4.0 1bfcfbfaf0d9cbc4cb88e71af967670e1c5506aa
|
|
13
13
|
// --
|
|
14
14
|
// Code generated by webrpc-gen@v0.25.3 with typescript generator. DO NOT EDIT.
|
|
15
15
|
//
|
|
@@ -25,7 +25,7 @@ const WebRPCVersion = "v1";
|
|
|
25
25
|
const WebRPCSchemaVersion = "v0.4.0";
|
|
26
26
|
|
|
27
27
|
// Schema hash generated from your RIDL schema
|
|
28
|
-
const WebRPCSchemaHash = "
|
|
28
|
+
const WebRPCSchemaHash = "1bfcfbfaf0d9cbc4cb88e71af967670e1c5506aa";
|
|
29
29
|
function VersionFromHeader(headers) {
|
|
30
30
|
const headerValue = headers.get(WebrpcHeader);
|
|
31
31
|
if (!headerValue) {
|
|
@@ -1167,6 +1167,19 @@ class API {
|
|
|
1167
1167
|
});
|
|
1168
1168
|
});
|
|
1169
1169
|
};
|
|
1170
|
+
this.getRevealTxData = (args, headers, signal) => {
|
|
1171
|
+
return this.fetch(this.url('GetRevealTxData'), createHTTPRequest(args, headers, signal)).then(res => {
|
|
1172
|
+
return buildResponse(res).then(_data => {
|
|
1173
|
+
return {
|
|
1174
|
+
txData: _data.txData
|
|
1175
|
+
};
|
|
1176
|
+
});
|
|
1177
|
+
}, error => {
|
|
1178
|
+
throw WebrpcRequestFailedError.new({
|
|
1179
|
+
cause: `fetch(): ${error.message || ''}`
|
|
1180
|
+
});
|
|
1181
|
+
});
|
|
1182
|
+
};
|
|
1170
1183
|
this.checkoutOptionsPrimary = (args, headers, signal) => {
|
|
1171
1184
|
return this.fetch(this.url('CheckoutOptionsPrimary'), createHTTPRequest(args, headers, signal)).then(res => {
|
|
1172
1185
|
return buildResponse(res).then(_data => {
|
|
@@ -2,7 +2,7 @@ export declare const WebrpcHeader = "Webrpc";
|
|
|
2
2
|
export declare const WebrpcHeaderValue = "webrpc@v0.25.3;gen-typescript@v0.17.0;sequence-api@v0.4.0";
|
|
3
3
|
export declare const WebRPCVersion = "v1";
|
|
4
4
|
export declare const WebRPCSchemaVersion = "v0.4.0";
|
|
5
|
-
export declare const WebRPCSchemaHash = "
|
|
5
|
+
export declare const WebRPCSchemaHash = "1bfcfbfaf0d9cbc4cb88e71af967670e1c5506aa";
|
|
6
6
|
type WebrpcGenVersions = {
|
|
7
7
|
webrpcGenVersion: string;
|
|
8
8
|
codeGenName: string;
|
|
@@ -807,6 +807,7 @@ export interface API {
|
|
|
807
807
|
getPack(args: GetPackArgs, headers?: object, signal?: AbortSignal): Promise<GetPackReturn>;
|
|
808
808
|
deletePack(args: DeletePackArgs, headers?: object, signal?: AbortSignal): Promise<DeletePackReturn>;
|
|
809
809
|
updatePackContent(args: UpdatePackContentArgs, headers?: object, signal?: AbortSignal): Promise<UpdatePackContentReturn>;
|
|
810
|
+
getRevealTxData(args: GetRevealTxDataArgs, headers?: object, signal?: AbortSignal): Promise<GetRevealTxDataReturn>;
|
|
810
811
|
checkoutOptionsPrimary(args: CheckoutOptionsPrimaryArgs, headers?: object, signal?: AbortSignal): Promise<CheckoutOptionsPrimaryReturn>;
|
|
811
812
|
checkoutOptionsSecondary(args: CheckoutOptionsSecondaryArgs, headers?: object, signal?: AbortSignal): Promise<CheckoutOptionsSecondaryReturn>;
|
|
812
813
|
checkoutOptionsGetTransakContractID(args: CheckoutOptionsGetTransakContractIDArgs, headers?: object, signal?: AbortSignal): Promise<CheckoutOptionsGetTransakContractIDReturn>;
|
|
@@ -1342,6 +1343,14 @@ export interface UpdatePackContentArgs {
|
|
|
1342
1343
|
export interface UpdatePackContentReturn {
|
|
1343
1344
|
merkleRoot: string;
|
|
1344
1345
|
}
|
|
1346
|
+
export interface GetRevealTxDataArgs {
|
|
1347
|
+
contractAddress: string;
|
|
1348
|
+
chainId: number;
|
|
1349
|
+
userAddress: string;
|
|
1350
|
+
}
|
|
1351
|
+
export interface GetRevealTxDataReturn {
|
|
1352
|
+
txData: string;
|
|
1353
|
+
}
|
|
1345
1354
|
export interface CheckoutOptionsPrimaryArgs {
|
|
1346
1355
|
chainId: number;
|
|
1347
1356
|
wallet: string;
|
|
@@ -1452,6 +1461,7 @@ export declare class API implements API {
|
|
|
1452
1461
|
getPack: (args: GetPackArgs, headers?: object, signal?: AbortSignal) => Promise<GetPackReturn>;
|
|
1453
1462
|
deletePack: (args: DeletePackArgs, headers?: object, signal?: AbortSignal) => Promise<DeletePackReturn>;
|
|
1454
1463
|
updatePackContent: (args: UpdatePackContentArgs, headers?: object, signal?: AbortSignal) => Promise<UpdatePackContentReturn>;
|
|
1464
|
+
getRevealTxData: (args: GetRevealTxDataArgs, headers?: object, signal?: AbortSignal) => Promise<GetRevealTxDataReturn>;
|
|
1455
1465
|
checkoutOptionsPrimary: (args: CheckoutOptionsPrimaryArgs, headers?: object, signal?: AbortSignal) => Promise<CheckoutOptionsPrimaryReturn>;
|
|
1456
1466
|
checkoutOptionsSecondary: (args: CheckoutOptionsSecondaryArgs, headers?: object, signal?: AbortSignal) => Promise<CheckoutOptionsSecondaryReturn>;
|
|
1457
1467
|
checkoutOptionsGetTransakContractID: (args: CheckoutOptionsGetTransakContractIDArgs, headers?: object, signal?: AbortSignal) => Promise<CheckoutOptionsGetTransakContractIDReturn>;
|
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 1bfcfbfaf0d9cbc4cb88e71af967670e1c5506aa
|
|
3
3
|
// --
|
|
4
4
|
// Code generated by webrpc-gen@v0.25.3 with typescript generator. DO NOT EDIT.
|
|
5
5
|
//
|
|
@@ -16,7 +16,7 @@ export const WebRPCVersion = "v1"
|
|
|
16
16
|
export const WebRPCSchemaVersion = "v0.4.0"
|
|
17
17
|
|
|
18
18
|
// Schema hash generated from your RIDL schema
|
|
19
|
-
export const WebRPCSchemaHash = "
|
|
19
|
+
export const WebRPCSchemaHash = "1bfcfbfaf0d9cbc4cb88e71af967670e1c5506aa"
|
|
20
20
|
|
|
21
21
|
type WebrpcGenVersions = {
|
|
22
22
|
webrpcGenVersion: string;
|
|
@@ -941,6 +941,7 @@ export interface API {
|
|
|
941
941
|
getPack(args: GetPackArgs, headers?: object, signal?: AbortSignal): Promise<GetPackReturn>
|
|
942
942
|
deletePack(args: DeletePackArgs, headers?: object, signal?: AbortSignal): Promise<DeletePackReturn>
|
|
943
943
|
updatePackContent(args: UpdatePackContentArgs, headers?: object, signal?: AbortSignal): Promise<UpdatePackContentReturn>
|
|
944
|
+
getRevealTxData(args: GetRevealTxDataArgs, headers?: object, signal?: AbortSignal): Promise<GetRevealTxDataReturn>
|
|
944
945
|
checkoutOptionsPrimary(args: CheckoutOptionsPrimaryArgs, headers?: object, signal?: AbortSignal): Promise<CheckoutOptionsPrimaryReturn>
|
|
945
946
|
checkoutOptionsSecondary(args: CheckoutOptionsSecondaryArgs, headers?: object, signal?: AbortSignal): Promise<CheckoutOptionsSecondaryReturn>
|
|
946
947
|
checkoutOptionsGetTransakContractID(args: CheckoutOptionsGetTransakContractIDArgs, headers?: object, signal?: AbortSignal): Promise<CheckoutOptionsGetTransakContractIDReturn>
|
|
@@ -1554,6 +1555,15 @@ export interface UpdatePackContentArgs {
|
|
|
1554
1555
|
export interface UpdatePackContentReturn {
|
|
1555
1556
|
merkleRoot: string
|
|
1556
1557
|
}
|
|
1558
|
+
export interface GetRevealTxDataArgs {
|
|
1559
|
+
contractAddress: string
|
|
1560
|
+
chainId: number
|
|
1561
|
+
userAddress: string
|
|
1562
|
+
}
|
|
1563
|
+
|
|
1564
|
+
export interface GetRevealTxDataReturn {
|
|
1565
|
+
txData: string
|
|
1566
|
+
}
|
|
1557
1567
|
export interface CheckoutOptionsPrimaryArgs {
|
|
1558
1568
|
chainId: number
|
|
1559
1569
|
wallet: string
|
|
@@ -2738,6 +2748,20 @@ export class API implements API {
|
|
|
2738
2748
|
})
|
|
2739
2749
|
}
|
|
2740
2750
|
|
|
2751
|
+
getRevealTxData = (args: GetRevealTxDataArgs, headers?: object, signal?: AbortSignal): Promise<GetRevealTxDataReturn> => {
|
|
2752
|
+
return this.fetch(
|
|
2753
|
+
this.url('GetRevealTxData'),
|
|
2754
|
+
createHTTPRequest(args, headers, signal)).then((res) => {
|
|
2755
|
+
return buildResponse(res).then(_data => {
|
|
2756
|
+
return {
|
|
2757
|
+
txData: <string>(_data.txData),
|
|
2758
|
+
}
|
|
2759
|
+
})
|
|
2760
|
+
}, (error) => {
|
|
2761
|
+
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error.message || ''}` })
|
|
2762
|
+
})
|
|
2763
|
+
}
|
|
2764
|
+
|
|
2741
2765
|
checkoutOptionsPrimary = (args: CheckoutOptionsPrimaryArgs, headers?: object, signal?: AbortSignal): Promise<CheckoutOptionsPrimaryReturn> => {
|
|
2742
2766
|
return this.fetch(
|
|
2743
2767
|
this.url('CheckoutOptionsPrimary'),
|