@0xsequence/api 2.3.38 → 2.3.40
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/dist/0xsequence-api.cjs.dev.js +3 -111
- package/dist/0xsequence-api.cjs.prod.js +3 -111
- package/dist/0xsequence-api.esm.js +3 -111
- package/dist/declarations/src/api.gen.d.ts +1 -218
- package/package.json +1 -1
- package/src/api.gen.ts +3 -433
|
@@ -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 3c15fa79614e43a5321cd2ac0c080e80af291bd1
|
|
17
17
|
// --
|
|
18
18
|
// Code generated by Webrpc-gen@v0.31.0 with typescript generator. DO NOT EDIT.
|
|
19
19
|
//
|
|
@@ -26,7 +26,7 @@ const WebrpcVersion = 'v1';
|
|
|
26
26
|
const WebrpcSchemaVersion = 'v0.4.0';
|
|
27
27
|
|
|
28
28
|
// Schema hash generated from your RIDL schema
|
|
29
|
-
const WebrpcSchemaHash = '
|
|
29
|
+
const WebrpcSchemaHash = '3c15fa79614e43a5321cd2ac0c080e80af291bd1';
|
|
30
30
|
|
|
31
31
|
//
|
|
32
32
|
// Client interface
|
|
@@ -151,9 +151,6 @@ class API {
|
|
|
151
151
|
getLifiTokens: req => ['API', 'getLifiTokens', req],
|
|
152
152
|
getLifiSwapRoutes: req => ['API', 'getLifiSwapRoutes', req],
|
|
153
153
|
getLifiSwapQuote: req => ['API', 'getLifiSwapQuote', req],
|
|
154
|
-
getIntentCallsPayloads: req => ['API', 'getIntentCallsPayloads', req],
|
|
155
|
-
commitIntentConfig: req => ['API', 'commitIntentConfig', req],
|
|
156
|
-
getIntentConfig: req => ['API', 'getIntentConfig', req],
|
|
157
154
|
listCurrencyGroups: () => ['API', 'listCurrencyGroups'],
|
|
158
155
|
addOffchainInventory: req => ['API', 'addOffchainInventory', req],
|
|
159
156
|
getOffchainInventory: req => ['API', 'getOffchainInventory', req],
|
|
@@ -172,13 +169,7 @@ class API {
|
|
|
172
169
|
checkoutOptionsSecondary: req => ['API', 'checkoutOptionsSecondary', req],
|
|
173
170
|
checkoutOptionsGetTransakContractID: req => ['API', 'checkoutOptionsGetTransakContractID', req],
|
|
174
171
|
fortePayCreateIntent: req => ['API', 'fortePayCreateIntent', req],
|
|
175
|
-
fortePayGetPaymentStatuses: req => ['API', 'fortePayGetPaymentStatuses', req]
|
|
176
|
-
getCCTPTransfer: req => ['API', 'getCCTPTransfer', req],
|
|
177
|
-
queueCCTPTransfer: req => ['API', 'queueCCTPTransfer', req],
|
|
178
|
-
queueIntentConfigExecution: req => ['API', 'queueIntentConfigExecution', req],
|
|
179
|
-
getIntentConfigExecutionStatus: req => ['API', 'getIntentConfigExecutionStatus', req],
|
|
180
|
-
listIntentConfigs: req => ['API', 'listIntentConfigs', req],
|
|
181
|
-
queueMetaTxnReceipt: req => ['API', 'queueMetaTxnReceipt', req]
|
|
172
|
+
fortePayGetPaymentStatuses: req => ['API', 'fortePayGetPaymentStatuses', req]
|
|
182
173
|
};
|
|
183
174
|
this.ping = (headers, signal) => {
|
|
184
175
|
return this.fetch(this.url('Ping'), createHttpRequest('{}', headers, signal)).then(res => {
|
|
@@ -807,39 +798,6 @@ class API {
|
|
|
807
798
|
});
|
|
808
799
|
});
|
|
809
800
|
};
|
|
810
|
-
this.getIntentCallsPayloads = (req, headers, signal) => {
|
|
811
|
-
return this.fetch(this.url('GetIntentCallsPayloads'), createHttpRequest(JsonEncode(req, 'GetIntentCallsPayloadsRequest'), headers, signal)).then(res => {
|
|
812
|
-
return buildResponse(res).then(_data => {
|
|
813
|
-
return JsonDecode(_data, 'GetIntentCallsPayloadsResponse');
|
|
814
|
-
});
|
|
815
|
-
}, error => {
|
|
816
|
-
throw WebrpcRequestFailedError.new({
|
|
817
|
-
cause: `fetch(): ${error instanceof Error ? error.message : String(error)}`
|
|
818
|
-
});
|
|
819
|
-
});
|
|
820
|
-
};
|
|
821
|
-
this.commitIntentConfig = (req, headers, signal) => {
|
|
822
|
-
return this.fetch(this.url('CommitIntentConfig'), createHttpRequest(JsonEncode(req, 'CommitIntentConfigRequest'), headers, signal)).then(res => {
|
|
823
|
-
return buildResponse(res).then(_data => {
|
|
824
|
-
return JsonDecode(_data, 'CommitIntentConfigResponse');
|
|
825
|
-
});
|
|
826
|
-
}, error => {
|
|
827
|
-
throw WebrpcRequestFailedError.new({
|
|
828
|
-
cause: `fetch(): ${error instanceof Error ? error.message : String(error)}`
|
|
829
|
-
});
|
|
830
|
-
});
|
|
831
|
-
};
|
|
832
|
-
this.getIntentConfig = (req, headers, signal) => {
|
|
833
|
-
return this.fetch(this.url('GetIntentConfig'), createHttpRequest(JsonEncode(req, 'GetIntentConfigRequest'), headers, signal)).then(res => {
|
|
834
|
-
return buildResponse(res).then(_data => {
|
|
835
|
-
return JsonDecode(_data, 'GetIntentConfigResponse');
|
|
836
|
-
});
|
|
837
|
-
}, error => {
|
|
838
|
-
throw WebrpcRequestFailedError.new({
|
|
839
|
-
cause: `fetch(): ${error instanceof Error ? error.message : String(error)}`
|
|
840
|
-
});
|
|
841
|
-
});
|
|
842
|
-
};
|
|
843
801
|
this.listCurrencyGroups = (headers, signal) => {
|
|
844
802
|
return this.fetch(this.url('ListCurrencyGroups'), createHttpRequest('{}', headers, signal)).then(res => {
|
|
845
803
|
return buildResponse(res).then(_data => {
|
|
@@ -1049,72 +1007,6 @@ class API {
|
|
|
1049
1007
|
});
|
|
1050
1008
|
});
|
|
1051
1009
|
};
|
|
1052
|
-
this.getCCTPTransfer = (req, headers, signal) => {
|
|
1053
|
-
return this.fetch(this.url('GetCCTPTransfer'), createHttpRequest(JsonEncode(req, 'GetCCTPTransferRequest'), headers, signal)).then(res => {
|
|
1054
|
-
return buildResponse(res).then(_data => {
|
|
1055
|
-
return JsonDecode(_data, 'GetCCTPTransferResponse');
|
|
1056
|
-
});
|
|
1057
|
-
}, error => {
|
|
1058
|
-
throw WebrpcRequestFailedError.new({
|
|
1059
|
-
cause: `fetch(): ${error instanceof Error ? error.message : String(error)}`
|
|
1060
|
-
});
|
|
1061
|
-
});
|
|
1062
|
-
};
|
|
1063
|
-
this.queueCCTPTransfer = (req, headers, signal) => {
|
|
1064
|
-
return this.fetch(this.url('QueueCCTPTransfer'), createHttpRequest(JsonEncode(req, 'QueueCCTPTransferRequest'), headers, signal)).then(res => {
|
|
1065
|
-
return buildResponse(res).then(_data => {
|
|
1066
|
-
return JsonDecode(_data, 'QueueCCTPTransferResponse');
|
|
1067
|
-
});
|
|
1068
|
-
}, error => {
|
|
1069
|
-
throw WebrpcRequestFailedError.new({
|
|
1070
|
-
cause: `fetch(): ${error instanceof Error ? error.message : String(error)}`
|
|
1071
|
-
});
|
|
1072
|
-
});
|
|
1073
|
-
};
|
|
1074
|
-
this.queueIntentConfigExecution = (req, headers, signal) => {
|
|
1075
|
-
return this.fetch(this.url('QueueIntentConfigExecution'), createHttpRequest(JsonEncode(req, 'QueueIntentConfigExecutionRequest'), headers, signal)).then(res => {
|
|
1076
|
-
return buildResponse(res).then(_data => {
|
|
1077
|
-
return JsonDecode(_data, 'QueueIntentConfigExecutionResponse');
|
|
1078
|
-
});
|
|
1079
|
-
}, error => {
|
|
1080
|
-
throw WebrpcRequestFailedError.new({
|
|
1081
|
-
cause: `fetch(): ${error instanceof Error ? error.message : String(error)}`
|
|
1082
|
-
});
|
|
1083
|
-
});
|
|
1084
|
-
};
|
|
1085
|
-
this.getIntentConfigExecutionStatus = (req, headers, signal) => {
|
|
1086
|
-
return this.fetch(this.url('GetIntentConfigExecutionStatus'), createHttpRequest(JsonEncode(req, 'GetIntentConfigExecutionStatusRequest'), headers, signal)).then(res => {
|
|
1087
|
-
return buildResponse(res).then(_data => {
|
|
1088
|
-
return JsonDecode(_data, 'GetIntentConfigExecutionStatusResponse');
|
|
1089
|
-
});
|
|
1090
|
-
}, error => {
|
|
1091
|
-
throw WebrpcRequestFailedError.new({
|
|
1092
|
-
cause: `fetch(): ${error instanceof Error ? error.message : String(error)}`
|
|
1093
|
-
});
|
|
1094
|
-
});
|
|
1095
|
-
};
|
|
1096
|
-
this.listIntentConfigs = (req, headers, signal) => {
|
|
1097
|
-
return this.fetch(this.url('ListIntentConfigs'), createHttpRequest(JsonEncode(req, 'ListIntentConfigsRequest'), headers, signal)).then(res => {
|
|
1098
|
-
return buildResponse(res).then(_data => {
|
|
1099
|
-
return JsonDecode(_data, 'ListIntentConfigsResponse');
|
|
1100
|
-
});
|
|
1101
|
-
}, error => {
|
|
1102
|
-
throw WebrpcRequestFailedError.new({
|
|
1103
|
-
cause: `fetch(): ${error instanceof Error ? error.message : String(error)}`
|
|
1104
|
-
});
|
|
1105
|
-
});
|
|
1106
|
-
};
|
|
1107
|
-
this.queueMetaTxnReceipt = (req, headers, signal) => {
|
|
1108
|
-
return this.fetch(this.url('QueueMetaTxnReceipt'), createHttpRequest(JsonEncode(req, 'QueueMetaTxnReceiptRequest'), headers, signal)).then(res => {
|
|
1109
|
-
return buildResponse(res).then(_data => {
|
|
1110
|
-
return JsonDecode(_data, 'QueueMetaTxnReceiptResponse');
|
|
1111
|
-
});
|
|
1112
|
-
}, error => {
|
|
1113
|
-
throw WebrpcRequestFailedError.new({
|
|
1114
|
-
cause: `fetch(): ${error instanceof Error ? error.message : String(error)}`
|
|
1115
|
-
});
|
|
1116
|
-
});
|
|
1117
|
-
};
|
|
1118
1010
|
this.hostname = hostname.replace(/\/*$/, '');
|
|
1119
1011
|
this.fetch = (input, init) => fetch(input, init);
|
|
1120
1012
|
}
|
|
@@ -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 3c15fa79614e43a5321cd2ac0c080e80af291bd1
|
|
17
17
|
// --
|
|
18
18
|
// Code generated by Webrpc-gen@v0.31.0 with typescript generator. DO NOT EDIT.
|
|
19
19
|
//
|
|
@@ -26,7 +26,7 @@ const WebrpcVersion = 'v1';
|
|
|
26
26
|
const WebrpcSchemaVersion = 'v0.4.0';
|
|
27
27
|
|
|
28
28
|
// Schema hash generated from your RIDL schema
|
|
29
|
-
const WebrpcSchemaHash = '
|
|
29
|
+
const WebrpcSchemaHash = '3c15fa79614e43a5321cd2ac0c080e80af291bd1';
|
|
30
30
|
|
|
31
31
|
//
|
|
32
32
|
// Client interface
|
|
@@ -151,9 +151,6 @@ class API {
|
|
|
151
151
|
getLifiTokens: req => ['API', 'getLifiTokens', req],
|
|
152
152
|
getLifiSwapRoutes: req => ['API', 'getLifiSwapRoutes', req],
|
|
153
153
|
getLifiSwapQuote: req => ['API', 'getLifiSwapQuote', req],
|
|
154
|
-
getIntentCallsPayloads: req => ['API', 'getIntentCallsPayloads', req],
|
|
155
|
-
commitIntentConfig: req => ['API', 'commitIntentConfig', req],
|
|
156
|
-
getIntentConfig: req => ['API', 'getIntentConfig', req],
|
|
157
154
|
listCurrencyGroups: () => ['API', 'listCurrencyGroups'],
|
|
158
155
|
addOffchainInventory: req => ['API', 'addOffchainInventory', req],
|
|
159
156
|
getOffchainInventory: req => ['API', 'getOffchainInventory', req],
|
|
@@ -172,13 +169,7 @@ class API {
|
|
|
172
169
|
checkoutOptionsSecondary: req => ['API', 'checkoutOptionsSecondary', req],
|
|
173
170
|
checkoutOptionsGetTransakContractID: req => ['API', 'checkoutOptionsGetTransakContractID', req],
|
|
174
171
|
fortePayCreateIntent: req => ['API', 'fortePayCreateIntent', req],
|
|
175
|
-
fortePayGetPaymentStatuses: req => ['API', 'fortePayGetPaymentStatuses', req]
|
|
176
|
-
getCCTPTransfer: req => ['API', 'getCCTPTransfer', req],
|
|
177
|
-
queueCCTPTransfer: req => ['API', 'queueCCTPTransfer', req],
|
|
178
|
-
queueIntentConfigExecution: req => ['API', 'queueIntentConfigExecution', req],
|
|
179
|
-
getIntentConfigExecutionStatus: req => ['API', 'getIntentConfigExecutionStatus', req],
|
|
180
|
-
listIntentConfigs: req => ['API', 'listIntentConfigs', req],
|
|
181
|
-
queueMetaTxnReceipt: req => ['API', 'queueMetaTxnReceipt', req]
|
|
172
|
+
fortePayGetPaymentStatuses: req => ['API', 'fortePayGetPaymentStatuses', req]
|
|
182
173
|
};
|
|
183
174
|
this.ping = (headers, signal) => {
|
|
184
175
|
return this.fetch(this.url('Ping'), createHttpRequest('{}', headers, signal)).then(res => {
|
|
@@ -807,39 +798,6 @@ class API {
|
|
|
807
798
|
});
|
|
808
799
|
});
|
|
809
800
|
};
|
|
810
|
-
this.getIntentCallsPayloads = (req, headers, signal) => {
|
|
811
|
-
return this.fetch(this.url('GetIntentCallsPayloads'), createHttpRequest(JsonEncode(req, 'GetIntentCallsPayloadsRequest'), headers, signal)).then(res => {
|
|
812
|
-
return buildResponse(res).then(_data => {
|
|
813
|
-
return JsonDecode(_data, 'GetIntentCallsPayloadsResponse');
|
|
814
|
-
});
|
|
815
|
-
}, error => {
|
|
816
|
-
throw WebrpcRequestFailedError.new({
|
|
817
|
-
cause: `fetch(): ${error instanceof Error ? error.message : String(error)}`
|
|
818
|
-
});
|
|
819
|
-
});
|
|
820
|
-
};
|
|
821
|
-
this.commitIntentConfig = (req, headers, signal) => {
|
|
822
|
-
return this.fetch(this.url('CommitIntentConfig'), createHttpRequest(JsonEncode(req, 'CommitIntentConfigRequest'), headers, signal)).then(res => {
|
|
823
|
-
return buildResponse(res).then(_data => {
|
|
824
|
-
return JsonDecode(_data, 'CommitIntentConfigResponse');
|
|
825
|
-
});
|
|
826
|
-
}, error => {
|
|
827
|
-
throw WebrpcRequestFailedError.new({
|
|
828
|
-
cause: `fetch(): ${error instanceof Error ? error.message : String(error)}`
|
|
829
|
-
});
|
|
830
|
-
});
|
|
831
|
-
};
|
|
832
|
-
this.getIntentConfig = (req, headers, signal) => {
|
|
833
|
-
return this.fetch(this.url('GetIntentConfig'), createHttpRequest(JsonEncode(req, 'GetIntentConfigRequest'), headers, signal)).then(res => {
|
|
834
|
-
return buildResponse(res).then(_data => {
|
|
835
|
-
return JsonDecode(_data, 'GetIntentConfigResponse');
|
|
836
|
-
});
|
|
837
|
-
}, error => {
|
|
838
|
-
throw WebrpcRequestFailedError.new({
|
|
839
|
-
cause: `fetch(): ${error instanceof Error ? error.message : String(error)}`
|
|
840
|
-
});
|
|
841
|
-
});
|
|
842
|
-
};
|
|
843
801
|
this.listCurrencyGroups = (headers, signal) => {
|
|
844
802
|
return this.fetch(this.url('ListCurrencyGroups'), createHttpRequest('{}', headers, signal)).then(res => {
|
|
845
803
|
return buildResponse(res).then(_data => {
|
|
@@ -1049,72 +1007,6 @@ class API {
|
|
|
1049
1007
|
});
|
|
1050
1008
|
});
|
|
1051
1009
|
};
|
|
1052
|
-
this.getCCTPTransfer = (req, headers, signal) => {
|
|
1053
|
-
return this.fetch(this.url('GetCCTPTransfer'), createHttpRequest(JsonEncode(req, 'GetCCTPTransferRequest'), headers, signal)).then(res => {
|
|
1054
|
-
return buildResponse(res).then(_data => {
|
|
1055
|
-
return JsonDecode(_data, 'GetCCTPTransferResponse');
|
|
1056
|
-
});
|
|
1057
|
-
}, error => {
|
|
1058
|
-
throw WebrpcRequestFailedError.new({
|
|
1059
|
-
cause: `fetch(): ${error instanceof Error ? error.message : String(error)}`
|
|
1060
|
-
});
|
|
1061
|
-
});
|
|
1062
|
-
};
|
|
1063
|
-
this.queueCCTPTransfer = (req, headers, signal) => {
|
|
1064
|
-
return this.fetch(this.url('QueueCCTPTransfer'), createHttpRequest(JsonEncode(req, 'QueueCCTPTransferRequest'), headers, signal)).then(res => {
|
|
1065
|
-
return buildResponse(res).then(_data => {
|
|
1066
|
-
return JsonDecode(_data, 'QueueCCTPTransferResponse');
|
|
1067
|
-
});
|
|
1068
|
-
}, error => {
|
|
1069
|
-
throw WebrpcRequestFailedError.new({
|
|
1070
|
-
cause: `fetch(): ${error instanceof Error ? error.message : String(error)}`
|
|
1071
|
-
});
|
|
1072
|
-
});
|
|
1073
|
-
};
|
|
1074
|
-
this.queueIntentConfigExecution = (req, headers, signal) => {
|
|
1075
|
-
return this.fetch(this.url('QueueIntentConfigExecution'), createHttpRequest(JsonEncode(req, 'QueueIntentConfigExecutionRequest'), headers, signal)).then(res => {
|
|
1076
|
-
return buildResponse(res).then(_data => {
|
|
1077
|
-
return JsonDecode(_data, 'QueueIntentConfigExecutionResponse');
|
|
1078
|
-
});
|
|
1079
|
-
}, error => {
|
|
1080
|
-
throw WebrpcRequestFailedError.new({
|
|
1081
|
-
cause: `fetch(): ${error instanceof Error ? error.message : String(error)}`
|
|
1082
|
-
});
|
|
1083
|
-
});
|
|
1084
|
-
};
|
|
1085
|
-
this.getIntentConfigExecutionStatus = (req, headers, signal) => {
|
|
1086
|
-
return this.fetch(this.url('GetIntentConfigExecutionStatus'), createHttpRequest(JsonEncode(req, 'GetIntentConfigExecutionStatusRequest'), headers, signal)).then(res => {
|
|
1087
|
-
return buildResponse(res).then(_data => {
|
|
1088
|
-
return JsonDecode(_data, 'GetIntentConfigExecutionStatusResponse');
|
|
1089
|
-
});
|
|
1090
|
-
}, error => {
|
|
1091
|
-
throw WebrpcRequestFailedError.new({
|
|
1092
|
-
cause: `fetch(): ${error instanceof Error ? error.message : String(error)}`
|
|
1093
|
-
});
|
|
1094
|
-
});
|
|
1095
|
-
};
|
|
1096
|
-
this.listIntentConfigs = (req, headers, signal) => {
|
|
1097
|
-
return this.fetch(this.url('ListIntentConfigs'), createHttpRequest(JsonEncode(req, 'ListIntentConfigsRequest'), headers, signal)).then(res => {
|
|
1098
|
-
return buildResponse(res).then(_data => {
|
|
1099
|
-
return JsonDecode(_data, 'ListIntentConfigsResponse');
|
|
1100
|
-
});
|
|
1101
|
-
}, error => {
|
|
1102
|
-
throw WebrpcRequestFailedError.new({
|
|
1103
|
-
cause: `fetch(): ${error instanceof Error ? error.message : String(error)}`
|
|
1104
|
-
});
|
|
1105
|
-
});
|
|
1106
|
-
};
|
|
1107
|
-
this.queueMetaTxnReceipt = (req, headers, signal) => {
|
|
1108
|
-
return this.fetch(this.url('QueueMetaTxnReceipt'), createHttpRequest(JsonEncode(req, 'QueueMetaTxnReceiptRequest'), headers, signal)).then(res => {
|
|
1109
|
-
return buildResponse(res).then(_data => {
|
|
1110
|
-
return JsonDecode(_data, 'QueueMetaTxnReceiptResponse');
|
|
1111
|
-
});
|
|
1112
|
-
}, error => {
|
|
1113
|
-
throw WebrpcRequestFailedError.new({
|
|
1114
|
-
cause: `fetch(): ${error instanceof Error ? error.message : String(error)}`
|
|
1115
|
-
});
|
|
1116
|
-
});
|
|
1117
|
-
};
|
|
1118
1010
|
this.hostname = hostname.replace(/\/*$/, '');
|
|
1119
1011
|
this.fetch = (input, init) => fetch(input, init);
|
|
1120
1012
|
}
|
|
@@ -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 3c15fa79614e43a5321cd2ac0c080e80af291bd1
|
|
13
13
|
// --
|
|
14
14
|
// Code generated by Webrpc-gen@v0.31.0 with typescript generator. DO NOT EDIT.
|
|
15
15
|
//
|
|
@@ -22,7 +22,7 @@ const WebrpcVersion = 'v1';
|
|
|
22
22
|
const WebrpcSchemaVersion = 'v0.4.0';
|
|
23
23
|
|
|
24
24
|
// Schema hash generated from your RIDL schema
|
|
25
|
-
const WebrpcSchemaHash = '
|
|
25
|
+
const WebrpcSchemaHash = '3c15fa79614e43a5321cd2ac0c080e80af291bd1';
|
|
26
26
|
|
|
27
27
|
//
|
|
28
28
|
// Client interface
|
|
@@ -147,9 +147,6 @@ class API {
|
|
|
147
147
|
getLifiTokens: req => ['API', 'getLifiTokens', req],
|
|
148
148
|
getLifiSwapRoutes: req => ['API', 'getLifiSwapRoutes', req],
|
|
149
149
|
getLifiSwapQuote: req => ['API', 'getLifiSwapQuote', req],
|
|
150
|
-
getIntentCallsPayloads: req => ['API', 'getIntentCallsPayloads', req],
|
|
151
|
-
commitIntentConfig: req => ['API', 'commitIntentConfig', req],
|
|
152
|
-
getIntentConfig: req => ['API', 'getIntentConfig', req],
|
|
153
150
|
listCurrencyGroups: () => ['API', 'listCurrencyGroups'],
|
|
154
151
|
addOffchainInventory: req => ['API', 'addOffchainInventory', req],
|
|
155
152
|
getOffchainInventory: req => ['API', 'getOffchainInventory', req],
|
|
@@ -168,13 +165,7 @@ class API {
|
|
|
168
165
|
checkoutOptionsSecondary: req => ['API', 'checkoutOptionsSecondary', req],
|
|
169
166
|
checkoutOptionsGetTransakContractID: req => ['API', 'checkoutOptionsGetTransakContractID', req],
|
|
170
167
|
fortePayCreateIntent: req => ['API', 'fortePayCreateIntent', req],
|
|
171
|
-
fortePayGetPaymentStatuses: req => ['API', 'fortePayGetPaymentStatuses', req]
|
|
172
|
-
getCCTPTransfer: req => ['API', 'getCCTPTransfer', req],
|
|
173
|
-
queueCCTPTransfer: req => ['API', 'queueCCTPTransfer', req],
|
|
174
|
-
queueIntentConfigExecution: req => ['API', 'queueIntentConfigExecution', req],
|
|
175
|
-
getIntentConfigExecutionStatus: req => ['API', 'getIntentConfigExecutionStatus', req],
|
|
176
|
-
listIntentConfigs: req => ['API', 'listIntentConfigs', req],
|
|
177
|
-
queueMetaTxnReceipt: req => ['API', 'queueMetaTxnReceipt', req]
|
|
168
|
+
fortePayGetPaymentStatuses: req => ['API', 'fortePayGetPaymentStatuses', req]
|
|
178
169
|
};
|
|
179
170
|
this.ping = (headers, signal) => {
|
|
180
171
|
return this.fetch(this.url('Ping'), createHttpRequest('{}', headers, signal)).then(res => {
|
|
@@ -803,39 +794,6 @@ class API {
|
|
|
803
794
|
});
|
|
804
795
|
});
|
|
805
796
|
};
|
|
806
|
-
this.getIntentCallsPayloads = (req, headers, signal) => {
|
|
807
|
-
return this.fetch(this.url('GetIntentCallsPayloads'), createHttpRequest(JsonEncode(req, 'GetIntentCallsPayloadsRequest'), headers, signal)).then(res => {
|
|
808
|
-
return buildResponse(res).then(_data => {
|
|
809
|
-
return JsonDecode(_data, 'GetIntentCallsPayloadsResponse');
|
|
810
|
-
});
|
|
811
|
-
}, error => {
|
|
812
|
-
throw WebrpcRequestFailedError.new({
|
|
813
|
-
cause: `fetch(): ${error instanceof Error ? error.message : String(error)}`
|
|
814
|
-
});
|
|
815
|
-
});
|
|
816
|
-
};
|
|
817
|
-
this.commitIntentConfig = (req, headers, signal) => {
|
|
818
|
-
return this.fetch(this.url('CommitIntentConfig'), createHttpRequest(JsonEncode(req, 'CommitIntentConfigRequest'), headers, signal)).then(res => {
|
|
819
|
-
return buildResponse(res).then(_data => {
|
|
820
|
-
return JsonDecode(_data, 'CommitIntentConfigResponse');
|
|
821
|
-
});
|
|
822
|
-
}, error => {
|
|
823
|
-
throw WebrpcRequestFailedError.new({
|
|
824
|
-
cause: `fetch(): ${error instanceof Error ? error.message : String(error)}`
|
|
825
|
-
});
|
|
826
|
-
});
|
|
827
|
-
};
|
|
828
|
-
this.getIntentConfig = (req, headers, signal) => {
|
|
829
|
-
return this.fetch(this.url('GetIntentConfig'), createHttpRequest(JsonEncode(req, 'GetIntentConfigRequest'), headers, signal)).then(res => {
|
|
830
|
-
return buildResponse(res).then(_data => {
|
|
831
|
-
return JsonDecode(_data, 'GetIntentConfigResponse');
|
|
832
|
-
});
|
|
833
|
-
}, error => {
|
|
834
|
-
throw WebrpcRequestFailedError.new({
|
|
835
|
-
cause: `fetch(): ${error instanceof Error ? error.message : String(error)}`
|
|
836
|
-
});
|
|
837
|
-
});
|
|
838
|
-
};
|
|
839
797
|
this.listCurrencyGroups = (headers, signal) => {
|
|
840
798
|
return this.fetch(this.url('ListCurrencyGroups'), createHttpRequest('{}', headers, signal)).then(res => {
|
|
841
799
|
return buildResponse(res).then(_data => {
|
|
@@ -1045,72 +1003,6 @@ class API {
|
|
|
1045
1003
|
});
|
|
1046
1004
|
});
|
|
1047
1005
|
};
|
|
1048
|
-
this.getCCTPTransfer = (req, headers, signal) => {
|
|
1049
|
-
return this.fetch(this.url('GetCCTPTransfer'), createHttpRequest(JsonEncode(req, 'GetCCTPTransferRequest'), headers, signal)).then(res => {
|
|
1050
|
-
return buildResponse(res).then(_data => {
|
|
1051
|
-
return JsonDecode(_data, 'GetCCTPTransferResponse');
|
|
1052
|
-
});
|
|
1053
|
-
}, error => {
|
|
1054
|
-
throw WebrpcRequestFailedError.new({
|
|
1055
|
-
cause: `fetch(): ${error instanceof Error ? error.message : String(error)}`
|
|
1056
|
-
});
|
|
1057
|
-
});
|
|
1058
|
-
};
|
|
1059
|
-
this.queueCCTPTransfer = (req, headers, signal) => {
|
|
1060
|
-
return this.fetch(this.url('QueueCCTPTransfer'), createHttpRequest(JsonEncode(req, 'QueueCCTPTransferRequest'), headers, signal)).then(res => {
|
|
1061
|
-
return buildResponse(res).then(_data => {
|
|
1062
|
-
return JsonDecode(_data, 'QueueCCTPTransferResponse');
|
|
1063
|
-
});
|
|
1064
|
-
}, error => {
|
|
1065
|
-
throw WebrpcRequestFailedError.new({
|
|
1066
|
-
cause: `fetch(): ${error instanceof Error ? error.message : String(error)}`
|
|
1067
|
-
});
|
|
1068
|
-
});
|
|
1069
|
-
};
|
|
1070
|
-
this.queueIntentConfigExecution = (req, headers, signal) => {
|
|
1071
|
-
return this.fetch(this.url('QueueIntentConfigExecution'), createHttpRequest(JsonEncode(req, 'QueueIntentConfigExecutionRequest'), headers, signal)).then(res => {
|
|
1072
|
-
return buildResponse(res).then(_data => {
|
|
1073
|
-
return JsonDecode(_data, 'QueueIntentConfigExecutionResponse');
|
|
1074
|
-
});
|
|
1075
|
-
}, error => {
|
|
1076
|
-
throw WebrpcRequestFailedError.new({
|
|
1077
|
-
cause: `fetch(): ${error instanceof Error ? error.message : String(error)}`
|
|
1078
|
-
});
|
|
1079
|
-
});
|
|
1080
|
-
};
|
|
1081
|
-
this.getIntentConfigExecutionStatus = (req, headers, signal) => {
|
|
1082
|
-
return this.fetch(this.url('GetIntentConfigExecutionStatus'), createHttpRequest(JsonEncode(req, 'GetIntentConfigExecutionStatusRequest'), headers, signal)).then(res => {
|
|
1083
|
-
return buildResponse(res).then(_data => {
|
|
1084
|
-
return JsonDecode(_data, 'GetIntentConfigExecutionStatusResponse');
|
|
1085
|
-
});
|
|
1086
|
-
}, error => {
|
|
1087
|
-
throw WebrpcRequestFailedError.new({
|
|
1088
|
-
cause: `fetch(): ${error instanceof Error ? error.message : String(error)}`
|
|
1089
|
-
});
|
|
1090
|
-
});
|
|
1091
|
-
};
|
|
1092
|
-
this.listIntentConfigs = (req, headers, signal) => {
|
|
1093
|
-
return this.fetch(this.url('ListIntentConfigs'), createHttpRequest(JsonEncode(req, 'ListIntentConfigsRequest'), headers, signal)).then(res => {
|
|
1094
|
-
return buildResponse(res).then(_data => {
|
|
1095
|
-
return JsonDecode(_data, 'ListIntentConfigsResponse');
|
|
1096
|
-
});
|
|
1097
|
-
}, error => {
|
|
1098
|
-
throw WebrpcRequestFailedError.new({
|
|
1099
|
-
cause: `fetch(): ${error instanceof Error ? error.message : String(error)}`
|
|
1100
|
-
});
|
|
1101
|
-
});
|
|
1102
|
-
};
|
|
1103
|
-
this.queueMetaTxnReceipt = (req, headers, signal) => {
|
|
1104
|
-
return this.fetch(this.url('QueueMetaTxnReceipt'), createHttpRequest(JsonEncode(req, 'QueueMetaTxnReceiptRequest'), headers, signal)).then(res => {
|
|
1105
|
-
return buildResponse(res).then(_data => {
|
|
1106
|
-
return JsonDecode(_data, 'QueueMetaTxnReceiptResponse');
|
|
1107
|
-
});
|
|
1108
|
-
}, error => {
|
|
1109
|
-
throw WebrpcRequestFailedError.new({
|
|
1110
|
-
cause: `fetch(): ${error instanceof Error ? error.message : String(error)}`
|
|
1111
|
-
});
|
|
1112
|
-
});
|
|
1113
|
-
};
|
|
1114
1006
|
this.hostname = hostname.replace(/\/*$/, '');
|
|
1115
1007
|
this.fetch = (input, init) => fetch(input, init);
|
|
1116
1008
|
}
|
|
@@ -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 = "3c15fa79614e43a5321cd2ac0c080e80af291bd1";
|
|
4
4
|
export interface APIClient {
|
|
5
5
|
/**
|
|
6
6
|
*
|
|
@@ -148,14 +148,6 @@ export interface APIClient {
|
|
|
148
148
|
*/
|
|
149
149
|
getLifiSwapRoutes(req: GetLifiSwapRoutesRequest, headers?: object, signal?: AbortSignal): Promise<GetLifiSwapRoutesResponse>;
|
|
150
150
|
getLifiSwapQuote(req: GetLifiSwapQuoteRequest, headers?: object, signal?: AbortSignal): Promise<GetLifiSwapQuoteResponse>;
|
|
151
|
-
/**
|
|
152
|
-
*
|
|
153
|
-
* Chain abstraction
|
|
154
|
-
*
|
|
155
|
-
*/
|
|
156
|
-
getIntentCallsPayloads(req: GetIntentCallsPayloadsRequest, headers?: object, signal?: AbortSignal): Promise<GetIntentCallsPayloadsResponse>;
|
|
157
|
-
commitIntentConfig(req: CommitIntentConfigRequest, headers?: object, signal?: AbortSignal): Promise<CommitIntentConfigResponse>;
|
|
158
|
-
getIntentConfig(req: GetIntentConfigRequest, headers?: object, signal?: AbortSignal): Promise<GetIntentConfigResponse>;
|
|
159
151
|
/**
|
|
160
152
|
*
|
|
161
153
|
* Inventory, payments and management
|
|
@@ -185,22 +177,6 @@ export interface APIClient {
|
|
|
185
177
|
checkoutOptionsGetTransakContractID(req: CheckoutOptionsGetTransakContractIDRequest, headers?: object, signal?: AbortSignal): Promise<CheckoutOptionsGetTransakContractIDResponse>;
|
|
186
178
|
fortePayCreateIntent(req: FortePayCreateIntentRequest, headers?: object, signal?: AbortSignal): Promise<FortePayCreateIntentResponse>;
|
|
187
179
|
fortePayGetPaymentStatuses(req: FortePayGetPaymentStatusesRequest, headers?: object, signal?: AbortSignal): Promise<FortePayGetPaymentStatusesResponse>;
|
|
188
|
-
/**
|
|
189
|
-
*
|
|
190
|
-
* CCTP
|
|
191
|
-
*
|
|
192
|
-
*/
|
|
193
|
-
getCCTPTransfer(req: GetCCTPTransferRequest, headers?: object, signal?: AbortSignal): Promise<GetCCTPTransferResponse>;
|
|
194
|
-
queueCCTPTransfer(req: QueueCCTPTransferRequest, headers?: object, signal?: AbortSignal): Promise<QueueCCTPTransferResponse>;
|
|
195
|
-
/**
|
|
196
|
-
*
|
|
197
|
-
* Intent Machine Worker
|
|
198
|
-
*
|
|
199
|
-
*/
|
|
200
|
-
queueIntentConfigExecution(req: QueueIntentConfigExecutionRequest, headers?: object, signal?: AbortSignal): Promise<QueueIntentConfigExecutionResponse>;
|
|
201
|
-
getIntentConfigExecutionStatus(req: GetIntentConfigExecutionStatusRequest, headers?: object, signal?: AbortSignal): Promise<GetIntentConfigExecutionStatusResponse>;
|
|
202
|
-
listIntentConfigs(req: ListIntentConfigsRequest, headers?: object, signal?: AbortSignal): Promise<ListIntentConfigsResponse>;
|
|
203
|
-
queueMetaTxnReceipt(req: QueueMetaTxnReceiptRequest, headers?: object, signal?: AbortSignal): Promise<QueueMetaTxnReceiptResponse>;
|
|
204
180
|
}
|
|
205
181
|
export declare enum SortOrder {
|
|
206
182
|
DESC = "DESC",
|
|
@@ -315,35 +291,6 @@ export interface MetaTxn {
|
|
|
315
291
|
contract: string;
|
|
316
292
|
input: string;
|
|
317
293
|
}
|
|
318
|
-
export interface Call {
|
|
319
|
-
to: string;
|
|
320
|
-
value?: string;
|
|
321
|
-
data?: string;
|
|
322
|
-
gasLimit?: string;
|
|
323
|
-
delegateCall?: boolean;
|
|
324
|
-
onlyFallback?: boolean;
|
|
325
|
-
behaviorOnError?: number;
|
|
326
|
-
}
|
|
327
|
-
export interface IntentCallsPayload {
|
|
328
|
-
chainId: string;
|
|
329
|
-
space?: string;
|
|
330
|
-
nonce?: string;
|
|
331
|
-
calls: Array<Call>;
|
|
332
|
-
}
|
|
333
|
-
export interface IntentConfig {
|
|
334
|
-
id: number;
|
|
335
|
-
configHash: string;
|
|
336
|
-
originIntentAddress: string;
|
|
337
|
-
destinationIntentAddress: string;
|
|
338
|
-
mainSigner: string;
|
|
339
|
-
calls: Array<IntentCallsPayload>;
|
|
340
|
-
preconditions: Array<IntentPrecondition>;
|
|
341
|
-
executionStatus?: string;
|
|
342
|
-
metaTxnId?: string;
|
|
343
|
-
txnHash?: string;
|
|
344
|
-
updatedAt?: string;
|
|
345
|
-
createdAt?: string;
|
|
346
|
-
}
|
|
347
294
|
export interface MetaTxnReceipt {
|
|
348
295
|
metaTxID: string;
|
|
349
296
|
status: string;
|
|
@@ -377,26 +324,6 @@ export interface TupleComponent {
|
|
|
377
324
|
type: string;
|
|
378
325
|
value: any;
|
|
379
326
|
}
|
|
380
|
-
export interface AddressOverrides {
|
|
381
|
-
trailsLiFiSapientSignerAddress?: string;
|
|
382
|
-
trailsRelaySapientSignerAddress?: string;
|
|
383
|
-
trailsCCTPV2SapientSignerAddress?: string;
|
|
384
|
-
}
|
|
385
|
-
export interface TakerFee {
|
|
386
|
-
address: string;
|
|
387
|
-
bps: number;
|
|
388
|
-
}
|
|
389
|
-
export interface OriginCall {
|
|
390
|
-
chainId: number;
|
|
391
|
-
to: string;
|
|
392
|
-
transactionData: string;
|
|
393
|
-
transactionValue: string;
|
|
394
|
-
}
|
|
395
|
-
export interface IntentPrecondition {
|
|
396
|
-
type: string;
|
|
397
|
-
chainId: string;
|
|
398
|
-
data: any;
|
|
399
|
-
}
|
|
400
327
|
export interface UserStorage {
|
|
401
328
|
userAddress: string;
|
|
402
329
|
key: string;
|
|
@@ -520,17 +447,6 @@ export interface OffchainInventory {
|
|
|
520
447
|
createdAt: string;
|
|
521
448
|
deletedAt?: string;
|
|
522
449
|
}
|
|
523
|
-
export interface CCTPTransfer {
|
|
524
|
-
id: string;
|
|
525
|
-
sourceTxHash: string;
|
|
526
|
-
sourceChainId: number;
|
|
527
|
-
destinationChainId: number;
|
|
528
|
-
message: string;
|
|
529
|
-
attestation: string;
|
|
530
|
-
status: string;
|
|
531
|
-
createdAt: string;
|
|
532
|
-
updatedAt: string;
|
|
533
|
-
}
|
|
534
450
|
export interface OffchainPayment {
|
|
535
451
|
id: number;
|
|
536
452
|
offchainInventoryId: number;
|
|
@@ -844,33 +760,6 @@ export interface ChainExecuteQuote {
|
|
|
844
760
|
export interface ExecuteQuote {
|
|
845
761
|
chainQuotes: Array<ChainExecuteQuote>;
|
|
846
762
|
}
|
|
847
|
-
export interface TrailsFee {
|
|
848
|
-
executeQuote: ExecuteQuote;
|
|
849
|
-
crossChainFee?: CrossChainFee;
|
|
850
|
-
takerFeeAmount?: string;
|
|
851
|
-
takerFeeUSD?: number;
|
|
852
|
-
trailsFixedFeeUSD: number;
|
|
853
|
-
feeToken?: string;
|
|
854
|
-
originTokenTotalAmount?: string;
|
|
855
|
-
totalFeeAmount?: string;
|
|
856
|
-
totalFeeUSD?: string;
|
|
857
|
-
quoteProvider?: string;
|
|
858
|
-
}
|
|
859
|
-
export interface IntentQuote {
|
|
860
|
-
fromAmount: string;
|
|
861
|
-
fromAmountMin: string;
|
|
862
|
-
toAmount: string;
|
|
863
|
-
toAmountMin: string;
|
|
864
|
-
priceImpact: number;
|
|
865
|
-
priceImpactUsd: string;
|
|
866
|
-
maxSlippage: number;
|
|
867
|
-
quoteProvider: string;
|
|
868
|
-
quoteProviderRequestId: string;
|
|
869
|
-
quoteProviderFeeUsd: string;
|
|
870
|
-
feeQuotes: {
|
|
871
|
-
[key: string]: string;
|
|
872
|
-
};
|
|
873
|
-
}
|
|
874
763
|
export interface PingRequest {
|
|
875
764
|
}
|
|
876
765
|
export interface PingResponse {
|
|
@@ -1267,53 +1156,6 @@ export interface GetLifiSwapQuoteRequest {
|
|
|
1267
1156
|
export interface GetLifiSwapQuoteResponse {
|
|
1268
1157
|
quote: LifiSwapQuote;
|
|
1269
1158
|
}
|
|
1270
|
-
export interface GetIntentCallsPayloadsRequest {
|
|
1271
|
-
userAddress: string;
|
|
1272
|
-
destinationChainId: number;
|
|
1273
|
-
destinationTokenAddress: string;
|
|
1274
|
-
destinationTokenAmount: string;
|
|
1275
|
-
destinationToAddress: string;
|
|
1276
|
-
originChainId: number;
|
|
1277
|
-
originTokenAddress: string;
|
|
1278
|
-
originTokenAmount: string;
|
|
1279
|
-
destinationCallData?: string;
|
|
1280
|
-
destinationCallValue?: string;
|
|
1281
|
-
provider?: string;
|
|
1282
|
-
addressOverrides?: AddressOverrides;
|
|
1283
|
-
destinationSalt?: string;
|
|
1284
|
-
takerFee?: TakerFee;
|
|
1285
|
-
slippageTolerance?: number;
|
|
1286
|
-
tradeType?: TradeType;
|
|
1287
|
-
}
|
|
1288
|
-
export interface GetIntentCallsPayloadsResponse {
|
|
1289
|
-
calls: Array<IntentCallsPayload>;
|
|
1290
|
-
preconditions: Array<IntentPrecondition>;
|
|
1291
|
-
metaTxns: Array<MetaTxn>;
|
|
1292
|
-
trailsFee: TrailsFee;
|
|
1293
|
-
quote: IntentQuote;
|
|
1294
|
-
feeQuotes: {
|
|
1295
|
-
[key: string]: string;
|
|
1296
|
-
};
|
|
1297
|
-
originIntentAddress: string;
|
|
1298
|
-
destinationIntentAddress: string;
|
|
1299
|
-
}
|
|
1300
|
-
export interface CommitIntentConfigRequest {
|
|
1301
|
-
originIntentAddress: string;
|
|
1302
|
-
destinationIntentAddress: string;
|
|
1303
|
-
mainSigner: string;
|
|
1304
|
-
calls: Array<IntentCallsPayload>;
|
|
1305
|
-
preconditions: Array<IntentPrecondition>;
|
|
1306
|
-
addressOverrides?: AddressOverrides;
|
|
1307
|
-
}
|
|
1308
|
-
export interface CommitIntentConfigResponse {
|
|
1309
|
-
config: IntentConfig;
|
|
1310
|
-
}
|
|
1311
|
-
export interface GetIntentConfigRequest {
|
|
1312
|
-
intentAddress: string;
|
|
1313
|
-
}
|
|
1314
|
-
export interface GetIntentConfigResponse {
|
|
1315
|
-
config: IntentConfig;
|
|
1316
|
-
}
|
|
1317
1159
|
export interface ListCurrencyGroupsRequest {
|
|
1318
1160
|
}
|
|
1319
1161
|
export interface ListCurrencyGroupsResponse {
|
|
@@ -1446,47 +1288,6 @@ export interface FortePayGetPaymentStatusesRequest {
|
|
|
1446
1288
|
export interface FortePayGetPaymentStatusesResponse {
|
|
1447
1289
|
statuses: Array<FortePaymentStatus>;
|
|
1448
1290
|
}
|
|
1449
|
-
export interface GetCCTPTransferRequest {
|
|
1450
|
-
id: string;
|
|
1451
|
-
}
|
|
1452
|
-
export interface GetCCTPTransferResponse {
|
|
1453
|
-
transfer: CCTPTransfer;
|
|
1454
|
-
}
|
|
1455
|
-
export interface QueueCCTPTransferRequest {
|
|
1456
|
-
sourceTxHash?: string;
|
|
1457
|
-
metaTxHash?: string;
|
|
1458
|
-
sourceChainId: number;
|
|
1459
|
-
destinationChainId: number;
|
|
1460
|
-
}
|
|
1461
|
-
export interface QueueCCTPTransferResponse {
|
|
1462
|
-
transfer: CCTPTransfer;
|
|
1463
|
-
}
|
|
1464
|
-
export interface QueueIntentConfigExecutionRequest {
|
|
1465
|
-
intentConfigId: number;
|
|
1466
|
-
}
|
|
1467
|
-
export interface QueueIntentConfigExecutionResponse {
|
|
1468
|
-
status: boolean;
|
|
1469
|
-
}
|
|
1470
|
-
export interface GetIntentConfigExecutionStatusRequest {
|
|
1471
|
-
intentConfigId: number;
|
|
1472
|
-
}
|
|
1473
|
-
export interface GetIntentConfigExecutionStatusResponse {
|
|
1474
|
-
executionStatus: string;
|
|
1475
|
-
}
|
|
1476
|
-
export interface ListIntentConfigsRequest {
|
|
1477
|
-
page?: Page;
|
|
1478
|
-
executionStatus?: string;
|
|
1479
|
-
}
|
|
1480
|
-
export interface ListIntentConfigsResponse {
|
|
1481
|
-
page: Page;
|
|
1482
|
-
intentConfigs: Array<IntentConfig>;
|
|
1483
|
-
}
|
|
1484
|
-
export interface QueueMetaTxnReceiptRequest {
|
|
1485
|
-
metaTxID: string;
|
|
1486
|
-
}
|
|
1487
|
-
export interface QueueMetaTxnReceiptResponse {
|
|
1488
|
-
status: boolean;
|
|
1489
|
-
}
|
|
1490
1291
|
export declare class API implements APIClient {
|
|
1491
1292
|
protected hostname: string;
|
|
1492
1293
|
protected fetch: Fetch;
|
|
@@ -1551,9 +1352,6 @@ export declare class API implements APIClient {
|
|
|
1551
1352
|
getLifiTokens: (req: GetLifiTokensRequest) => readonly ["API", "getLifiTokens", GetLifiTokensRequest];
|
|
1552
1353
|
getLifiSwapRoutes: (req: GetLifiSwapRoutesRequest) => readonly ["API", "getLifiSwapRoutes", GetLifiSwapRoutesRequest];
|
|
1553
1354
|
getLifiSwapQuote: (req: GetLifiSwapQuoteRequest) => readonly ["API", "getLifiSwapQuote", GetLifiSwapQuoteRequest];
|
|
1554
|
-
getIntentCallsPayloads: (req: GetIntentCallsPayloadsRequest) => readonly ["API", "getIntentCallsPayloads", GetIntentCallsPayloadsRequest];
|
|
1555
|
-
commitIntentConfig: (req: CommitIntentConfigRequest) => readonly ["API", "commitIntentConfig", CommitIntentConfigRequest];
|
|
1556
|
-
getIntentConfig: (req: GetIntentConfigRequest) => readonly ["API", "getIntentConfig", GetIntentConfigRequest];
|
|
1557
1355
|
listCurrencyGroups: () => readonly ["API", "listCurrencyGroups"];
|
|
1558
1356
|
addOffchainInventory: (req: AddOffchainInventoryRequest) => readonly ["API", "addOffchainInventory", AddOffchainInventoryRequest];
|
|
1559
1357
|
getOffchainInventory: (req: GetOffchainInventoryRequest) => readonly ["API", "getOffchainInventory", GetOffchainInventoryRequest];
|
|
@@ -1573,12 +1371,6 @@ export declare class API implements APIClient {
|
|
|
1573
1371
|
checkoutOptionsGetTransakContractID: (req: CheckoutOptionsGetTransakContractIDRequest) => readonly ["API", "checkoutOptionsGetTransakContractID", CheckoutOptionsGetTransakContractIDRequest];
|
|
1574
1372
|
fortePayCreateIntent: (req: FortePayCreateIntentRequest) => readonly ["API", "fortePayCreateIntent", FortePayCreateIntentRequest];
|
|
1575
1373
|
fortePayGetPaymentStatuses: (req: FortePayGetPaymentStatusesRequest) => readonly ["API", "fortePayGetPaymentStatuses", FortePayGetPaymentStatusesRequest];
|
|
1576
|
-
getCCTPTransfer: (req: GetCCTPTransferRequest) => readonly ["API", "getCCTPTransfer", GetCCTPTransferRequest];
|
|
1577
|
-
queueCCTPTransfer: (req: QueueCCTPTransferRequest) => readonly ["API", "queueCCTPTransfer", QueueCCTPTransferRequest];
|
|
1578
|
-
queueIntentConfigExecution: (req: QueueIntentConfigExecutionRequest) => readonly ["API", "queueIntentConfigExecution", QueueIntentConfigExecutionRequest];
|
|
1579
|
-
getIntentConfigExecutionStatus: (req: GetIntentConfigExecutionStatusRequest) => readonly ["API", "getIntentConfigExecutionStatus", GetIntentConfigExecutionStatusRequest];
|
|
1580
|
-
listIntentConfigs: (req: ListIntentConfigsRequest) => readonly ["API", "listIntentConfigs", ListIntentConfigsRequest];
|
|
1581
|
-
queueMetaTxnReceipt: (req: QueueMetaTxnReceiptRequest) => readonly ["API", "queueMetaTxnReceipt", QueueMetaTxnReceiptRequest];
|
|
1582
1374
|
};
|
|
1583
1375
|
ping: (headers?: object, signal?: AbortSignal) => Promise<PingResponse>;
|
|
1584
1376
|
version: (headers?: object, signal?: AbortSignal) => Promise<VersionResponse>;
|
|
@@ -1637,9 +1429,6 @@ export declare class API implements APIClient {
|
|
|
1637
1429
|
getLifiTokens: (req: GetLifiTokensRequest, headers?: object, signal?: AbortSignal) => Promise<GetLifiTokensResponse>;
|
|
1638
1430
|
getLifiSwapRoutes: (req: GetLifiSwapRoutesRequest, headers?: object, signal?: AbortSignal) => Promise<GetLifiSwapRoutesResponse>;
|
|
1639
1431
|
getLifiSwapQuote: (req: GetLifiSwapQuoteRequest, headers?: object, signal?: AbortSignal) => Promise<GetLifiSwapQuoteResponse>;
|
|
1640
|
-
getIntentCallsPayloads: (req: GetIntentCallsPayloadsRequest, headers?: object, signal?: AbortSignal) => Promise<GetIntentCallsPayloadsResponse>;
|
|
1641
|
-
commitIntentConfig: (req: CommitIntentConfigRequest, headers?: object, signal?: AbortSignal) => Promise<CommitIntentConfigResponse>;
|
|
1642
|
-
getIntentConfig: (req: GetIntentConfigRequest, headers?: object, signal?: AbortSignal) => Promise<GetIntentConfigResponse>;
|
|
1643
1432
|
listCurrencyGroups: (headers?: object, signal?: AbortSignal) => Promise<ListCurrencyGroupsResponse>;
|
|
1644
1433
|
addOffchainInventory: (req: AddOffchainInventoryRequest, headers?: object, signal?: AbortSignal) => Promise<AddOffchainInventoryResponse>;
|
|
1645
1434
|
getOffchainInventory: (req: GetOffchainInventoryRequest, headers?: object, signal?: AbortSignal) => Promise<GetOffchainInventoryResponse>;
|
|
@@ -1659,12 +1448,6 @@ export declare class API implements APIClient {
|
|
|
1659
1448
|
checkoutOptionsGetTransakContractID: (req: CheckoutOptionsGetTransakContractIDRequest, headers?: object, signal?: AbortSignal) => Promise<CheckoutOptionsGetTransakContractIDResponse>;
|
|
1660
1449
|
fortePayCreateIntent: (req: FortePayCreateIntentRequest, headers?: object, signal?: AbortSignal) => Promise<FortePayCreateIntentResponse>;
|
|
1661
1450
|
fortePayGetPaymentStatuses: (req: FortePayGetPaymentStatusesRequest, headers?: object, signal?: AbortSignal) => Promise<FortePayGetPaymentStatusesResponse>;
|
|
1662
|
-
getCCTPTransfer: (req: GetCCTPTransferRequest, headers?: object, signal?: AbortSignal) => Promise<GetCCTPTransferResponse>;
|
|
1663
|
-
queueCCTPTransfer: (req: QueueCCTPTransferRequest, headers?: object, signal?: AbortSignal) => Promise<QueueCCTPTransferResponse>;
|
|
1664
|
-
queueIntentConfigExecution: (req: QueueIntentConfigExecutionRequest, headers?: object, signal?: AbortSignal) => Promise<QueueIntentConfigExecutionResponse>;
|
|
1665
|
-
getIntentConfigExecutionStatus: (req: GetIntentConfigExecutionStatusRequest, headers?: object, signal?: AbortSignal) => Promise<GetIntentConfigExecutionStatusResponse>;
|
|
1666
|
-
listIntentConfigs: (req: ListIntentConfigsRequest, headers?: object, signal?: AbortSignal) => Promise<ListIntentConfigsResponse>;
|
|
1667
|
-
queueMetaTxnReceipt: (req: QueueMetaTxnReceiptRequest, headers?: object, signal?: AbortSignal) => Promise<QueueMetaTxnReceiptResponse>;
|
|
1668
1451
|
}
|
|
1669
1452
|
export type Fetch = (input: RequestInfo, init?: RequestInit) => Promise<Response>;
|
|
1670
1453
|
export declare const JsonEncode: <T = any>(obj: T, _typ?: string) => 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 3c15fa79614e43a5321cd2ac0c080e80af291bd1
|
|
3
3
|
// --
|
|
4
4
|
// Code generated by Webrpc-gen@v0.31.0 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 = '3c15fa79614e43a5321cd2ac0c080e80af291bd1'
|
|
16
16
|
|
|
17
17
|
//
|
|
18
18
|
// Client interface
|
|
@@ -277,21 +277,6 @@ export interface APIClient {
|
|
|
277
277
|
|
|
278
278
|
getLifiSwapQuote(req: GetLifiSwapQuoteRequest, headers?: object, signal?: AbortSignal): Promise<GetLifiSwapQuoteResponse>
|
|
279
279
|
|
|
280
|
-
/**
|
|
281
|
-
*
|
|
282
|
-
* Chain abstraction
|
|
283
|
-
*
|
|
284
|
-
*/
|
|
285
|
-
getIntentCallsPayloads(
|
|
286
|
-
req: GetIntentCallsPayloadsRequest,
|
|
287
|
-
headers?: object,
|
|
288
|
-
signal?: AbortSignal
|
|
289
|
-
): Promise<GetIntentCallsPayloadsResponse>
|
|
290
|
-
|
|
291
|
-
commitIntentConfig(req: CommitIntentConfigRequest, headers?: object, signal?: AbortSignal): Promise<CommitIntentConfigResponse>
|
|
292
|
-
|
|
293
|
-
getIntentConfig(req: GetIntentConfigRequest, headers?: object, signal?: AbortSignal): Promise<GetIntentConfigResponse>
|
|
294
|
-
|
|
295
280
|
/**
|
|
296
281
|
*
|
|
297
282
|
* Inventory, payments and management
|
|
@@ -387,40 +372,6 @@ export interface APIClient {
|
|
|
387
372
|
headers?: object,
|
|
388
373
|
signal?: AbortSignal
|
|
389
374
|
): Promise<FortePayGetPaymentStatusesResponse>
|
|
390
|
-
|
|
391
|
-
/**
|
|
392
|
-
*
|
|
393
|
-
* CCTP
|
|
394
|
-
*
|
|
395
|
-
*/
|
|
396
|
-
getCCTPTransfer(req: GetCCTPTransferRequest, headers?: object, signal?: AbortSignal): Promise<GetCCTPTransferResponse>
|
|
397
|
-
|
|
398
|
-
queueCCTPTransfer(req: QueueCCTPTransferRequest, headers?: object, signal?: AbortSignal): Promise<QueueCCTPTransferResponse>
|
|
399
|
-
|
|
400
|
-
/**
|
|
401
|
-
*
|
|
402
|
-
* Intent Machine Worker
|
|
403
|
-
*
|
|
404
|
-
*/
|
|
405
|
-
queueIntentConfigExecution(
|
|
406
|
-
req: QueueIntentConfigExecutionRequest,
|
|
407
|
-
headers?: object,
|
|
408
|
-
signal?: AbortSignal
|
|
409
|
-
): Promise<QueueIntentConfigExecutionResponse>
|
|
410
|
-
|
|
411
|
-
getIntentConfigExecutionStatus(
|
|
412
|
-
req: GetIntentConfigExecutionStatusRequest,
|
|
413
|
-
headers?: object,
|
|
414
|
-
signal?: AbortSignal
|
|
415
|
-
): Promise<GetIntentConfigExecutionStatusResponse>
|
|
416
|
-
|
|
417
|
-
listIntentConfigs(req: ListIntentConfigsRequest, headers?: object, signal?: AbortSignal): Promise<ListIntentConfigsResponse>
|
|
418
|
-
|
|
419
|
-
queueMetaTxnReceipt(
|
|
420
|
-
req: QueueMetaTxnReceiptRequest,
|
|
421
|
-
headers?: object,
|
|
422
|
-
signal?: AbortSignal
|
|
423
|
-
): Promise<QueueMetaTxnReceiptResponse>
|
|
424
375
|
}
|
|
425
376
|
|
|
426
377
|
//
|
|
@@ -556,38 +507,6 @@ export interface MetaTxn {
|
|
|
556
507
|
input: string
|
|
557
508
|
}
|
|
558
509
|
|
|
559
|
-
export interface Call {
|
|
560
|
-
to: string
|
|
561
|
-
value?: string
|
|
562
|
-
data?: string
|
|
563
|
-
gasLimit?: string
|
|
564
|
-
delegateCall?: boolean
|
|
565
|
-
onlyFallback?: boolean
|
|
566
|
-
behaviorOnError?: number
|
|
567
|
-
}
|
|
568
|
-
|
|
569
|
-
export interface IntentCallsPayload {
|
|
570
|
-
chainId: string
|
|
571
|
-
space?: string
|
|
572
|
-
nonce?: string
|
|
573
|
-
calls: Array<Call>
|
|
574
|
-
}
|
|
575
|
-
|
|
576
|
-
export interface IntentConfig {
|
|
577
|
-
id: number
|
|
578
|
-
configHash: string
|
|
579
|
-
originIntentAddress: string
|
|
580
|
-
destinationIntentAddress: string
|
|
581
|
-
mainSigner: string
|
|
582
|
-
calls: Array<IntentCallsPayload>
|
|
583
|
-
preconditions: Array<IntentPrecondition>
|
|
584
|
-
executionStatus?: string
|
|
585
|
-
metaTxnId?: string
|
|
586
|
-
txnHash?: string
|
|
587
|
-
updatedAt?: string
|
|
588
|
-
createdAt?: string
|
|
589
|
-
}
|
|
590
|
-
|
|
591
510
|
export interface MetaTxnReceipt {
|
|
592
511
|
metaTxID: string
|
|
593
512
|
status: string
|
|
@@ -627,30 +546,6 @@ export interface TupleComponent {
|
|
|
627
546
|
value: any
|
|
628
547
|
}
|
|
629
548
|
|
|
630
|
-
export interface AddressOverrides {
|
|
631
|
-
trailsLiFiSapientSignerAddress?: string
|
|
632
|
-
trailsRelaySapientSignerAddress?: string
|
|
633
|
-
trailsCCTPV2SapientSignerAddress?: string
|
|
634
|
-
}
|
|
635
|
-
|
|
636
|
-
export interface TakerFee {
|
|
637
|
-
address: string
|
|
638
|
-
bps: number
|
|
639
|
-
}
|
|
640
|
-
|
|
641
|
-
export interface OriginCall {
|
|
642
|
-
chainId: number
|
|
643
|
-
to: string
|
|
644
|
-
transactionData: string
|
|
645
|
-
transactionValue: string
|
|
646
|
-
}
|
|
647
|
-
|
|
648
|
-
export interface IntentPrecondition {
|
|
649
|
-
type: string
|
|
650
|
-
chainId: string
|
|
651
|
-
data: any
|
|
652
|
-
}
|
|
653
|
-
|
|
654
549
|
export interface UserStorage {
|
|
655
550
|
userAddress: string
|
|
656
551
|
key: string
|
|
@@ -790,18 +685,6 @@ export interface OffchainInventory {
|
|
|
790
685
|
deletedAt?: string
|
|
791
686
|
}
|
|
792
687
|
|
|
793
|
-
export interface CCTPTransfer {
|
|
794
|
-
id: string
|
|
795
|
-
sourceTxHash: string
|
|
796
|
-
sourceChainId: number
|
|
797
|
-
destinationChainId: number
|
|
798
|
-
message: string
|
|
799
|
-
attestation: string
|
|
800
|
-
status: string
|
|
801
|
-
createdAt: string
|
|
802
|
-
updatedAt: string
|
|
803
|
-
}
|
|
804
|
-
|
|
805
688
|
export interface OffchainPayment {
|
|
806
689
|
id: number
|
|
807
690
|
offchainInventoryId: number
|
|
@@ -1152,33 +1035,6 @@ export interface ExecuteQuote {
|
|
|
1152
1035
|
chainQuotes: Array<ChainExecuteQuote>
|
|
1153
1036
|
}
|
|
1154
1037
|
|
|
1155
|
-
export interface TrailsFee {
|
|
1156
|
-
executeQuote: ExecuteQuote
|
|
1157
|
-
crossChainFee?: CrossChainFee
|
|
1158
|
-
takerFeeAmount?: string
|
|
1159
|
-
takerFeeUSD?: number
|
|
1160
|
-
trailsFixedFeeUSD: number
|
|
1161
|
-
feeToken?: string
|
|
1162
|
-
originTokenTotalAmount?: string
|
|
1163
|
-
totalFeeAmount?: string
|
|
1164
|
-
totalFeeUSD?: string
|
|
1165
|
-
quoteProvider?: string
|
|
1166
|
-
}
|
|
1167
|
-
|
|
1168
|
-
export interface IntentQuote {
|
|
1169
|
-
fromAmount: string
|
|
1170
|
-
fromAmountMin: string
|
|
1171
|
-
toAmount: string
|
|
1172
|
-
toAmountMin: string
|
|
1173
|
-
priceImpact: number
|
|
1174
|
-
priceImpactUsd: string
|
|
1175
|
-
maxSlippage: number
|
|
1176
|
-
quoteProvider: string
|
|
1177
|
-
quoteProviderRequestId: string
|
|
1178
|
-
quoteProviderFeeUsd: string
|
|
1179
|
-
feeQuotes: { [key: string]: string }
|
|
1180
|
-
}
|
|
1181
|
-
|
|
1182
1038
|
export interface PingRequest {}
|
|
1183
1039
|
|
|
1184
1040
|
export interface PingResponse {
|
|
@@ -1676,57 +1532,6 @@ export interface GetLifiSwapQuoteResponse {
|
|
|
1676
1532
|
quote: LifiSwapQuote
|
|
1677
1533
|
}
|
|
1678
1534
|
|
|
1679
|
-
export interface GetIntentCallsPayloadsRequest {
|
|
1680
|
-
userAddress: string
|
|
1681
|
-
destinationChainId: number
|
|
1682
|
-
destinationTokenAddress: string
|
|
1683
|
-
destinationTokenAmount: string
|
|
1684
|
-
destinationToAddress: string
|
|
1685
|
-
originChainId: number
|
|
1686
|
-
originTokenAddress: string
|
|
1687
|
-
originTokenAmount: string
|
|
1688
|
-
destinationCallData?: string
|
|
1689
|
-
destinationCallValue?: string
|
|
1690
|
-
provider?: string
|
|
1691
|
-
addressOverrides?: AddressOverrides
|
|
1692
|
-
destinationSalt?: string
|
|
1693
|
-
takerFee?: TakerFee
|
|
1694
|
-
slippageTolerance?: number
|
|
1695
|
-
tradeType?: TradeType
|
|
1696
|
-
}
|
|
1697
|
-
|
|
1698
|
-
export interface GetIntentCallsPayloadsResponse {
|
|
1699
|
-
calls: Array<IntentCallsPayload>
|
|
1700
|
-
preconditions: Array<IntentPrecondition>
|
|
1701
|
-
metaTxns: Array<MetaTxn>
|
|
1702
|
-
trailsFee: TrailsFee
|
|
1703
|
-
quote: IntentQuote
|
|
1704
|
-
feeQuotes: { [key: string]: string }
|
|
1705
|
-
originIntentAddress: string
|
|
1706
|
-
destinationIntentAddress: string
|
|
1707
|
-
}
|
|
1708
|
-
|
|
1709
|
-
export interface CommitIntentConfigRequest {
|
|
1710
|
-
originIntentAddress: string
|
|
1711
|
-
destinationIntentAddress: string
|
|
1712
|
-
mainSigner: string
|
|
1713
|
-
calls: Array<IntentCallsPayload>
|
|
1714
|
-
preconditions: Array<IntentPrecondition>
|
|
1715
|
-
addressOverrides?: AddressOverrides
|
|
1716
|
-
}
|
|
1717
|
-
|
|
1718
|
-
export interface CommitIntentConfigResponse {
|
|
1719
|
-
config: IntentConfig
|
|
1720
|
-
}
|
|
1721
|
-
|
|
1722
|
-
export interface GetIntentConfigRequest {
|
|
1723
|
-
intentAddress: string
|
|
1724
|
-
}
|
|
1725
|
-
|
|
1726
|
-
export interface GetIntentConfigResponse {
|
|
1727
|
-
config: IntentConfig
|
|
1728
|
-
}
|
|
1729
|
-
|
|
1730
1535
|
export interface ListCurrencyGroupsRequest {}
|
|
1731
1536
|
|
|
1732
1537
|
export interface ListCurrencyGroupsResponse {
|
|
@@ -1895,59 +1700,6 @@ export interface FortePayGetPaymentStatusesResponse {
|
|
|
1895
1700
|
statuses: Array<FortePaymentStatus>
|
|
1896
1701
|
}
|
|
1897
1702
|
|
|
1898
|
-
export interface GetCCTPTransferRequest {
|
|
1899
|
-
id: string
|
|
1900
|
-
}
|
|
1901
|
-
|
|
1902
|
-
export interface GetCCTPTransferResponse {
|
|
1903
|
-
transfer: CCTPTransfer
|
|
1904
|
-
}
|
|
1905
|
-
|
|
1906
|
-
export interface QueueCCTPTransferRequest {
|
|
1907
|
-
sourceTxHash?: string
|
|
1908
|
-
metaTxHash?: string
|
|
1909
|
-
sourceChainId: number
|
|
1910
|
-
destinationChainId: number
|
|
1911
|
-
}
|
|
1912
|
-
|
|
1913
|
-
export interface QueueCCTPTransferResponse {
|
|
1914
|
-
transfer: CCTPTransfer
|
|
1915
|
-
}
|
|
1916
|
-
|
|
1917
|
-
export interface QueueIntentConfigExecutionRequest {
|
|
1918
|
-
intentConfigId: number
|
|
1919
|
-
}
|
|
1920
|
-
|
|
1921
|
-
export interface QueueIntentConfigExecutionResponse {
|
|
1922
|
-
status: boolean
|
|
1923
|
-
}
|
|
1924
|
-
|
|
1925
|
-
export interface GetIntentConfigExecutionStatusRequest {
|
|
1926
|
-
intentConfigId: number
|
|
1927
|
-
}
|
|
1928
|
-
|
|
1929
|
-
export interface GetIntentConfigExecutionStatusResponse {
|
|
1930
|
-
executionStatus: string
|
|
1931
|
-
}
|
|
1932
|
-
|
|
1933
|
-
export interface ListIntentConfigsRequest {
|
|
1934
|
-
page?: Page
|
|
1935
|
-
executionStatus?: string
|
|
1936
|
-
}
|
|
1937
|
-
|
|
1938
|
-
export interface ListIntentConfigsResponse {
|
|
1939
|
-
page: Page
|
|
1940
|
-
intentConfigs: Array<IntentConfig>
|
|
1941
|
-
}
|
|
1942
|
-
|
|
1943
|
-
export interface QueueMetaTxnReceiptRequest {
|
|
1944
|
-
metaTxID: string
|
|
1945
|
-
}
|
|
1946
|
-
|
|
1947
|
-
export interface QueueMetaTxnReceiptResponse {
|
|
1948
|
-
status: boolean
|
|
1949
|
-
}
|
|
1950
|
-
|
|
1951
1703
|
//
|
|
1952
1704
|
// Client
|
|
1953
1705
|
//
|
|
@@ -2027,9 +1779,6 @@ export class API implements APIClient {
|
|
|
2027
1779
|
getLifiTokens: (req: GetLifiTokensRequest) => ['API', 'getLifiTokens', req] as const,
|
|
2028
1780
|
getLifiSwapRoutes: (req: GetLifiSwapRoutesRequest) => ['API', 'getLifiSwapRoutes', req] as const,
|
|
2029
1781
|
getLifiSwapQuote: (req: GetLifiSwapQuoteRequest) => ['API', 'getLifiSwapQuote', req] as const,
|
|
2030
|
-
getIntentCallsPayloads: (req: GetIntentCallsPayloadsRequest) => ['API', 'getIntentCallsPayloads', req] as const,
|
|
2031
|
-
commitIntentConfig: (req: CommitIntentConfigRequest) => ['API', 'commitIntentConfig', req] as const,
|
|
2032
|
-
getIntentConfig: (req: GetIntentConfigRequest) => ['API', 'getIntentConfig', req] as const,
|
|
2033
1782
|
listCurrencyGroups: () => ['API', 'listCurrencyGroups'] as const,
|
|
2034
1783
|
addOffchainInventory: (req: AddOffchainInventoryRequest) => ['API', 'addOffchainInventory', req] as const,
|
|
2035
1784
|
getOffchainInventory: (req: GetOffchainInventoryRequest) => ['API', 'getOffchainInventory', req] as const,
|
|
@@ -2049,14 +1798,7 @@ export class API implements APIClient {
|
|
|
2049
1798
|
checkoutOptionsGetTransakContractID: (req: CheckoutOptionsGetTransakContractIDRequest) =>
|
|
2050
1799
|
['API', 'checkoutOptionsGetTransakContractID', req] as const,
|
|
2051
1800
|
fortePayCreateIntent: (req: FortePayCreateIntentRequest) => ['API', 'fortePayCreateIntent', req] as const,
|
|
2052
|
-
fortePayGetPaymentStatuses: (req: FortePayGetPaymentStatusesRequest) => ['API', 'fortePayGetPaymentStatuses', req] as const
|
|
2053
|
-
getCCTPTransfer: (req: GetCCTPTransferRequest) => ['API', 'getCCTPTransfer', req] as const,
|
|
2054
|
-
queueCCTPTransfer: (req: QueueCCTPTransferRequest) => ['API', 'queueCCTPTransfer', req] as const,
|
|
2055
|
-
queueIntentConfigExecution: (req: QueueIntentConfigExecutionRequest) => ['API', 'queueIntentConfigExecution', req] as const,
|
|
2056
|
-
getIntentConfigExecutionStatus: (req: GetIntentConfigExecutionStatusRequest) =>
|
|
2057
|
-
['API', 'getIntentConfigExecutionStatus', req] as const,
|
|
2058
|
-
listIntentConfigs: (req: ListIntentConfigsRequest) => ['API', 'listIntentConfigs', req] as const,
|
|
2059
|
-
queueMetaTxnReceipt: (req: QueueMetaTxnReceiptRequest) => ['API', 'queueMetaTxnReceipt', req] as const
|
|
1801
|
+
fortePayGetPaymentStatuses: (req: FortePayGetPaymentStatusesRequest) => ['API', 'fortePayGetPaymentStatuses', req] as const
|
|
2060
1802
|
}
|
|
2061
1803
|
|
|
2062
1804
|
ping = (headers?: object, signal?: AbortSignal): Promise<PingResponse> => {
|
|
@@ -3023,62 +2765,6 @@ export class API implements APIClient {
|
|
|
3023
2765
|
)
|
|
3024
2766
|
}
|
|
3025
2767
|
|
|
3026
|
-
getIntentCallsPayloads = (
|
|
3027
|
-
req: GetIntentCallsPayloadsRequest,
|
|
3028
|
-
headers?: object,
|
|
3029
|
-
signal?: AbortSignal
|
|
3030
|
-
): Promise<GetIntentCallsPayloadsResponse> => {
|
|
3031
|
-
return this.fetch(
|
|
3032
|
-
this.url('GetIntentCallsPayloads'),
|
|
3033
|
-
createHttpRequest(JsonEncode(req, 'GetIntentCallsPayloadsRequest'), headers, signal)
|
|
3034
|
-
).then(
|
|
3035
|
-
res => {
|
|
3036
|
-
return buildResponse(res).then(_data => {
|
|
3037
|
-
return JsonDecode<GetIntentCallsPayloadsResponse>(_data, 'GetIntentCallsPayloadsResponse')
|
|
3038
|
-
})
|
|
3039
|
-
},
|
|
3040
|
-
error => {
|
|
3041
|
-
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}` })
|
|
3042
|
-
}
|
|
3043
|
-
)
|
|
3044
|
-
}
|
|
3045
|
-
|
|
3046
|
-
commitIntentConfig = (
|
|
3047
|
-
req: CommitIntentConfigRequest,
|
|
3048
|
-
headers?: object,
|
|
3049
|
-
signal?: AbortSignal
|
|
3050
|
-
): Promise<CommitIntentConfigResponse> => {
|
|
3051
|
-
return this.fetch(
|
|
3052
|
-
this.url('CommitIntentConfig'),
|
|
3053
|
-
createHttpRequest(JsonEncode(req, 'CommitIntentConfigRequest'), headers, signal)
|
|
3054
|
-
).then(
|
|
3055
|
-
res => {
|
|
3056
|
-
return buildResponse(res).then(_data => {
|
|
3057
|
-
return JsonDecode<CommitIntentConfigResponse>(_data, 'CommitIntentConfigResponse')
|
|
3058
|
-
})
|
|
3059
|
-
},
|
|
3060
|
-
error => {
|
|
3061
|
-
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}` })
|
|
3062
|
-
}
|
|
3063
|
-
)
|
|
3064
|
-
}
|
|
3065
|
-
|
|
3066
|
-
getIntentConfig = (req: GetIntentConfigRequest, headers?: object, signal?: AbortSignal): Promise<GetIntentConfigResponse> => {
|
|
3067
|
-
return this.fetch(
|
|
3068
|
-
this.url('GetIntentConfig'),
|
|
3069
|
-
createHttpRequest(JsonEncode(req, 'GetIntentConfigRequest'), headers, signal)
|
|
3070
|
-
).then(
|
|
3071
|
-
res => {
|
|
3072
|
-
return buildResponse(res).then(_data => {
|
|
3073
|
-
return JsonDecode<GetIntentConfigResponse>(_data, 'GetIntentConfigResponse')
|
|
3074
|
-
})
|
|
3075
|
-
},
|
|
3076
|
-
error => {
|
|
3077
|
-
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}` })
|
|
3078
|
-
}
|
|
3079
|
-
)
|
|
3080
|
-
}
|
|
3081
|
-
|
|
3082
2768
|
listCurrencyGroups = (headers?: object, signal?: AbortSignal): Promise<ListCurrencyGroupsResponse> => {
|
|
3083
2769
|
return this.fetch(this.url('ListCurrencyGroups'), createHttpRequest('{}', headers, signal)).then(
|
|
3084
2770
|
res => {
|
|
@@ -3419,122 +3105,6 @@ export class API implements APIClient {
|
|
|
3419
3105
|
}
|
|
3420
3106
|
)
|
|
3421
3107
|
}
|
|
3422
|
-
|
|
3423
|
-
getCCTPTransfer = (req: GetCCTPTransferRequest, headers?: object, signal?: AbortSignal): Promise<GetCCTPTransferResponse> => {
|
|
3424
|
-
return this.fetch(
|
|
3425
|
-
this.url('GetCCTPTransfer'),
|
|
3426
|
-
createHttpRequest(JsonEncode(req, 'GetCCTPTransferRequest'), headers, signal)
|
|
3427
|
-
).then(
|
|
3428
|
-
res => {
|
|
3429
|
-
return buildResponse(res).then(_data => {
|
|
3430
|
-
return JsonDecode<GetCCTPTransferResponse>(_data, 'GetCCTPTransferResponse')
|
|
3431
|
-
})
|
|
3432
|
-
},
|
|
3433
|
-
error => {
|
|
3434
|
-
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}` })
|
|
3435
|
-
}
|
|
3436
|
-
)
|
|
3437
|
-
}
|
|
3438
|
-
|
|
3439
|
-
queueCCTPTransfer = (
|
|
3440
|
-
req: QueueCCTPTransferRequest,
|
|
3441
|
-
headers?: object,
|
|
3442
|
-
signal?: AbortSignal
|
|
3443
|
-
): Promise<QueueCCTPTransferResponse> => {
|
|
3444
|
-
return this.fetch(
|
|
3445
|
-
this.url('QueueCCTPTransfer'),
|
|
3446
|
-
createHttpRequest(JsonEncode(req, 'QueueCCTPTransferRequest'), headers, signal)
|
|
3447
|
-
).then(
|
|
3448
|
-
res => {
|
|
3449
|
-
return buildResponse(res).then(_data => {
|
|
3450
|
-
return JsonDecode<QueueCCTPTransferResponse>(_data, 'QueueCCTPTransferResponse')
|
|
3451
|
-
})
|
|
3452
|
-
},
|
|
3453
|
-
error => {
|
|
3454
|
-
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}` })
|
|
3455
|
-
}
|
|
3456
|
-
)
|
|
3457
|
-
}
|
|
3458
|
-
|
|
3459
|
-
queueIntentConfigExecution = (
|
|
3460
|
-
req: QueueIntentConfigExecutionRequest,
|
|
3461
|
-
headers?: object,
|
|
3462
|
-
signal?: AbortSignal
|
|
3463
|
-
): Promise<QueueIntentConfigExecutionResponse> => {
|
|
3464
|
-
return this.fetch(
|
|
3465
|
-
this.url('QueueIntentConfigExecution'),
|
|
3466
|
-
createHttpRequest(JsonEncode(req, 'QueueIntentConfigExecutionRequest'), headers, signal)
|
|
3467
|
-
).then(
|
|
3468
|
-
res => {
|
|
3469
|
-
return buildResponse(res).then(_data => {
|
|
3470
|
-
return JsonDecode<QueueIntentConfigExecutionResponse>(_data, 'QueueIntentConfigExecutionResponse')
|
|
3471
|
-
})
|
|
3472
|
-
},
|
|
3473
|
-
error => {
|
|
3474
|
-
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}` })
|
|
3475
|
-
}
|
|
3476
|
-
)
|
|
3477
|
-
}
|
|
3478
|
-
|
|
3479
|
-
getIntentConfigExecutionStatus = (
|
|
3480
|
-
req: GetIntentConfigExecutionStatusRequest,
|
|
3481
|
-
headers?: object,
|
|
3482
|
-
signal?: AbortSignal
|
|
3483
|
-
): Promise<GetIntentConfigExecutionStatusResponse> => {
|
|
3484
|
-
return this.fetch(
|
|
3485
|
-
this.url('GetIntentConfigExecutionStatus'),
|
|
3486
|
-
createHttpRequest(JsonEncode(req, 'GetIntentConfigExecutionStatusRequest'), headers, signal)
|
|
3487
|
-
).then(
|
|
3488
|
-
res => {
|
|
3489
|
-
return buildResponse(res).then(_data => {
|
|
3490
|
-
return JsonDecode<GetIntentConfigExecutionStatusResponse>(_data, 'GetIntentConfigExecutionStatusResponse')
|
|
3491
|
-
})
|
|
3492
|
-
},
|
|
3493
|
-
error => {
|
|
3494
|
-
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}` })
|
|
3495
|
-
}
|
|
3496
|
-
)
|
|
3497
|
-
}
|
|
3498
|
-
|
|
3499
|
-
listIntentConfigs = (
|
|
3500
|
-
req: ListIntentConfigsRequest,
|
|
3501
|
-
headers?: object,
|
|
3502
|
-
signal?: AbortSignal
|
|
3503
|
-
): Promise<ListIntentConfigsResponse> => {
|
|
3504
|
-
return this.fetch(
|
|
3505
|
-
this.url('ListIntentConfigs'),
|
|
3506
|
-
createHttpRequest(JsonEncode(req, 'ListIntentConfigsRequest'), headers, signal)
|
|
3507
|
-
).then(
|
|
3508
|
-
res => {
|
|
3509
|
-
return buildResponse(res).then(_data => {
|
|
3510
|
-
return JsonDecode<ListIntentConfigsResponse>(_data, 'ListIntentConfigsResponse')
|
|
3511
|
-
})
|
|
3512
|
-
},
|
|
3513
|
-
error => {
|
|
3514
|
-
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}` })
|
|
3515
|
-
}
|
|
3516
|
-
)
|
|
3517
|
-
}
|
|
3518
|
-
|
|
3519
|
-
queueMetaTxnReceipt = (
|
|
3520
|
-
req: QueueMetaTxnReceiptRequest,
|
|
3521
|
-
headers?: object,
|
|
3522
|
-
signal?: AbortSignal
|
|
3523
|
-
): Promise<QueueMetaTxnReceiptResponse> => {
|
|
3524
|
-
return this.fetch(
|
|
3525
|
-
this.url('QueueMetaTxnReceipt'),
|
|
3526
|
-
createHttpRequest(JsonEncode(req, 'QueueMetaTxnReceiptRequest'), headers, signal)
|
|
3527
|
-
).then(
|
|
3528
|
-
res => {
|
|
3529
|
-
return buildResponse(res).then(_data => {
|
|
3530
|
-
return JsonDecode<QueueMetaTxnReceiptResponse>(_data, 'QueueMetaTxnReceiptResponse')
|
|
3531
|
-
})
|
|
3532
|
-
},
|
|
3533
|
-
error => {
|
|
3534
|
-
throw WebrpcRequestFailedError.new({ cause: `fetch(): ${error instanceof Error ? error.message : String(error)}` })
|
|
3535
|
-
}
|
|
3536
|
-
)
|
|
3537
|
-
}
|
|
3538
3108
|
}
|
|
3539
3109
|
|
|
3540
3110
|
const createHttpRequest = (body: string = '{}', headers: object = {}, signal: AbortSignal | null = null): object => {
|