@0xsequence/api 0.0.0-20250529132337 → 0.0.0-20250825155416
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 +137 -2
- package/dist/0xsequence-api.cjs.prod.js +137 -2
- package/dist/0xsequence-api.esm.js +136 -3
- package/dist/declarations/src/api.gen.d.ts +313 -23
- package/package.json +1 -1
- package/src/api.gen.ts +470 -24
|
@@ -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 01e4e5d5ce5e7b85514f2db2fb5b346229db727c
|
|
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 = "01e4e5d5ce5e7b85514f2db2fb5b346229db727c";
|
|
33
33
|
function VersionFromHeader(headers) {
|
|
34
34
|
const headerValue = headers.get(WebrpcHeader);
|
|
35
35
|
if (!headerValue) {
|
|
@@ -89,6 +89,11 @@ let SardineQuoteType = /*#__PURE__*/function (SardineQuoteType) {
|
|
|
89
89
|
SardineQuoteType["sell"] = "sell";
|
|
90
90
|
return SardineQuoteType;
|
|
91
91
|
}({});
|
|
92
|
+
let GetLifiSwapRouteDirection = /*#__PURE__*/function (GetLifiSwapRouteDirection) {
|
|
93
|
+
GetLifiSwapRouteDirection["to"] = "to";
|
|
94
|
+
GetLifiSwapRouteDirection["from"] = "from";
|
|
95
|
+
return GetLifiSwapRouteDirection;
|
|
96
|
+
}({});
|
|
92
97
|
let TokenType = /*#__PURE__*/function (TokenType) {
|
|
93
98
|
TokenType["ERC20"] = "ERC20";
|
|
94
99
|
TokenType["ERC721"] = "ERC721";
|
|
@@ -101,6 +106,11 @@ let TransakBuySell = /*#__PURE__*/function (TransakBuySell) {
|
|
|
101
106
|
TransakBuySell["SELL"] = "SELL";
|
|
102
107
|
return TransakBuySell;
|
|
103
108
|
}({});
|
|
109
|
+
let TradeType = /*#__PURE__*/function (TradeType) {
|
|
110
|
+
TradeType["EXACT_INPUT"] = "EXACT_INPUT";
|
|
111
|
+
TradeType["EXACT_OUTPUT"] = "EXACT_OUTPUT";
|
|
112
|
+
return TradeType;
|
|
113
|
+
}({});
|
|
104
114
|
let CheckoutOptionCrypto = /*#__PURE__*/function (CheckoutOptionCrypto) {
|
|
105
115
|
CheckoutOptionCrypto["none"] = "none";
|
|
106
116
|
CheckoutOptionCrypto["partially"] = "partially";
|
|
@@ -520,6 +530,19 @@ class API {
|
|
|
520
530
|
});
|
|
521
531
|
});
|
|
522
532
|
};
|
|
533
|
+
this.getOnRampURL = (args, headers, signal) => {
|
|
534
|
+
return this.fetch(this.url('GetOnRampURL'), createHTTPRequest(args, headers, signal)).then(res => {
|
|
535
|
+
return buildResponse(res).then(_data => {
|
|
536
|
+
return {
|
|
537
|
+
url: _data.url
|
|
538
|
+
};
|
|
539
|
+
});
|
|
540
|
+
}, error => {
|
|
541
|
+
throw WebrpcRequestFailedError.new({
|
|
542
|
+
cause: `fetch(): ${error.message || ''}`
|
|
543
|
+
});
|
|
544
|
+
});
|
|
545
|
+
};
|
|
523
546
|
this.sardineGetClientToken = (headers, signal) => {
|
|
524
547
|
return this.fetch(this.url('SardineGetClientToken'), createHTTPRequest({}, headers, signal)).then(res => {
|
|
525
548
|
return buildResponse(res).then(_data => {
|
|
@@ -1016,6 +1039,51 @@ class API {
|
|
|
1016
1039
|
});
|
|
1017
1040
|
});
|
|
1018
1041
|
};
|
|
1042
|
+
this.getIntentCallsPayloads = (args, headers, signal) => {
|
|
1043
|
+
return this.fetch(this.url('GetIntentCallsPayloads'), createHTTPRequest(args, headers, signal)).then(res => {
|
|
1044
|
+
return buildResponse(res).then(_data => {
|
|
1045
|
+
return {
|
|
1046
|
+
calls: _data.calls,
|
|
1047
|
+
preconditions: _data.preconditions,
|
|
1048
|
+
metaTxns: _data.metaTxns,
|
|
1049
|
+
trailsFee: _data.trailsFee,
|
|
1050
|
+
quote: _data.quote,
|
|
1051
|
+
originIntentAddress: _data.originIntentAddress,
|
|
1052
|
+
destinationIntentAddress: _data.destinationIntentAddress
|
|
1053
|
+
};
|
|
1054
|
+
});
|
|
1055
|
+
}, error => {
|
|
1056
|
+
throw WebrpcRequestFailedError.new({
|
|
1057
|
+
cause: `fetch(): ${error.message || ''}`
|
|
1058
|
+
});
|
|
1059
|
+
});
|
|
1060
|
+
};
|
|
1061
|
+
this.commitIntentConfig = (args, headers, signal) => {
|
|
1062
|
+
return this.fetch(this.url('CommitIntentConfig'), createHTTPRequest(args, headers, signal)).then(res => {
|
|
1063
|
+
return buildResponse(res).then(_data => {
|
|
1064
|
+
return {
|
|
1065
|
+
config: _data.config
|
|
1066
|
+
};
|
|
1067
|
+
});
|
|
1068
|
+
}, error => {
|
|
1069
|
+
throw WebrpcRequestFailedError.new({
|
|
1070
|
+
cause: `fetch(): ${error.message || ''}`
|
|
1071
|
+
});
|
|
1072
|
+
});
|
|
1073
|
+
};
|
|
1074
|
+
this.getIntentConfig = (args, headers, signal) => {
|
|
1075
|
+
return this.fetch(this.url('GetIntentConfig'), createHTTPRequest(args, headers, signal)).then(res => {
|
|
1076
|
+
return buildResponse(res).then(_data => {
|
|
1077
|
+
return {
|
|
1078
|
+
config: _data.config
|
|
1079
|
+
};
|
|
1080
|
+
});
|
|
1081
|
+
}, error => {
|
|
1082
|
+
throw WebrpcRequestFailedError.new({
|
|
1083
|
+
cause: `fetch(): ${error.message || ''}`
|
|
1084
|
+
});
|
|
1085
|
+
});
|
|
1086
|
+
};
|
|
1019
1087
|
this.listCurrencyGroups = (headers, signal) => {
|
|
1020
1088
|
return this.fetch(this.url('ListCurrencyGroups'), createHTTPRequest({}, headers, signal)).then(res => {
|
|
1021
1089
|
return buildResponse(res).then(_data => {
|
|
@@ -1145,6 +1213,19 @@ class API {
|
|
|
1145
1213
|
});
|
|
1146
1214
|
});
|
|
1147
1215
|
};
|
|
1216
|
+
this.getPackIds = (args, headers, signal) => {
|
|
1217
|
+
return this.fetch(this.url('GetPackIds'), createHTTPRequest(args, headers, signal)).then(res => {
|
|
1218
|
+
return buildResponse(res).then(_data => {
|
|
1219
|
+
return {
|
|
1220
|
+
packIds: _data.packIds
|
|
1221
|
+
};
|
|
1222
|
+
});
|
|
1223
|
+
}, error => {
|
|
1224
|
+
throw WebrpcRequestFailedError.new({
|
|
1225
|
+
cause: `fetch(): ${error.message || ''}`
|
|
1226
|
+
});
|
|
1227
|
+
});
|
|
1228
|
+
};
|
|
1148
1229
|
this.deletePack = (args, headers, signal) => {
|
|
1149
1230
|
return this.fetch(this.url('DeletePack'), createHTTPRequest(args, headers, signal)).then(res => {
|
|
1150
1231
|
return buildResponse(res).then(_data => {
|
|
@@ -1223,6 +1304,58 @@ class API {
|
|
|
1223
1304
|
});
|
|
1224
1305
|
});
|
|
1225
1306
|
};
|
|
1307
|
+
this.fortePayCreateIntent = (args, headers, signal) => {
|
|
1308
|
+
return this.fetch(this.url('FortePayCreateIntent'), createHTTPRequest(args, headers, signal)).then(res => {
|
|
1309
|
+
return buildResponse(res).then(_data => {
|
|
1310
|
+
return {
|
|
1311
|
+
resp: _data.resp
|
|
1312
|
+
};
|
|
1313
|
+
});
|
|
1314
|
+
}, error => {
|
|
1315
|
+
throw WebrpcRequestFailedError.new({
|
|
1316
|
+
cause: `fetch(): ${error.message || ''}`
|
|
1317
|
+
});
|
|
1318
|
+
});
|
|
1319
|
+
};
|
|
1320
|
+
this.fortePayGetPaymentStatuses = (args, headers, signal) => {
|
|
1321
|
+
return this.fetch(this.url('FortePayGetPaymentStatuses'), createHTTPRequest(args, headers, signal)).then(res => {
|
|
1322
|
+
return buildResponse(res).then(_data => {
|
|
1323
|
+
return {
|
|
1324
|
+
statuses: _data.statuses
|
|
1325
|
+
};
|
|
1326
|
+
});
|
|
1327
|
+
}, error => {
|
|
1328
|
+
throw WebrpcRequestFailedError.new({
|
|
1329
|
+
cause: `fetch(): ${error.message || ''}`
|
|
1330
|
+
});
|
|
1331
|
+
});
|
|
1332
|
+
};
|
|
1333
|
+
this.getCCTPTransfer = (args, headers, signal) => {
|
|
1334
|
+
return this.fetch(this.url('GetCCTPTransfer'), createHTTPRequest(args, headers, signal)).then(res => {
|
|
1335
|
+
return buildResponse(res).then(_data => {
|
|
1336
|
+
return {
|
|
1337
|
+
transfer: _data.transfer
|
|
1338
|
+
};
|
|
1339
|
+
});
|
|
1340
|
+
}, error => {
|
|
1341
|
+
throw WebrpcRequestFailedError.new({
|
|
1342
|
+
cause: `fetch(): ${error.message || ''}`
|
|
1343
|
+
});
|
|
1344
|
+
});
|
|
1345
|
+
};
|
|
1346
|
+
this.queueCCTPTransfer = (args, headers, signal) => {
|
|
1347
|
+
return this.fetch(this.url('QueueCCTPTransfer'), createHTTPRequest(args, headers, signal)).then(res => {
|
|
1348
|
+
return buildResponse(res).then(_data => {
|
|
1349
|
+
return {
|
|
1350
|
+
transfer: _data.transfer
|
|
1351
|
+
};
|
|
1352
|
+
});
|
|
1353
|
+
}, error => {
|
|
1354
|
+
throw WebrpcRequestFailedError.new({
|
|
1355
|
+
cause: `fetch(): ${error.message || ''}`
|
|
1356
|
+
});
|
|
1357
|
+
});
|
|
1358
|
+
};
|
|
1226
1359
|
this.hostname = hostname.replace(/\/*$/, '');
|
|
1227
1360
|
this.fetch = (input, init) => fetch(input, init);
|
|
1228
1361
|
}
|
|
@@ -1666,6 +1799,7 @@ exports.CheckoutOptionNFTCheckoutProvider = CheckoutOptionNFTCheckoutProvider;
|
|
|
1666
1799
|
exports.CheckoutOptionOnRampProvider = CheckoutOptionOnRampProvider;
|
|
1667
1800
|
exports.CheckoutOptionSwapProvider = CheckoutOptionSwapProvider;
|
|
1668
1801
|
exports.GeoblockedError = GeoblockedError;
|
|
1802
|
+
exports.GetLifiSwapRouteDirection = GetLifiSwapRouteDirection;
|
|
1669
1803
|
exports.InvalidArgumentError = InvalidArgumentError;
|
|
1670
1804
|
exports.InvalidOriginError = InvalidOriginError;
|
|
1671
1805
|
exports.InvalidServiceError = InvalidServiceError;
|
|
@@ -1687,6 +1821,7 @@ exports.SessionExpiredError = SessionExpiredError;
|
|
|
1687
1821
|
exports.SortOrder = SortOrder;
|
|
1688
1822
|
exports.TimeoutError = TimeoutError;
|
|
1689
1823
|
exports.TokenType = TokenType;
|
|
1824
|
+
exports.TradeType = TradeType;
|
|
1690
1825
|
exports.TransakBuySell = TransakBuySell;
|
|
1691
1826
|
exports.UnauthorizedError = UnauthorizedError;
|
|
1692
1827
|
exports.UnauthorizedUserError = UnauthorizedUserError;
|
|
@@ -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 01e4e5d5ce5e7b85514f2db2fb5b346229db727c
|
|
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 = "01e4e5d5ce5e7b85514f2db2fb5b346229db727c";
|
|
33
33
|
function VersionFromHeader(headers) {
|
|
34
34
|
const headerValue = headers.get(WebrpcHeader);
|
|
35
35
|
if (!headerValue) {
|
|
@@ -89,6 +89,11 @@ let SardineQuoteType = /*#__PURE__*/function (SardineQuoteType) {
|
|
|
89
89
|
SardineQuoteType["sell"] = "sell";
|
|
90
90
|
return SardineQuoteType;
|
|
91
91
|
}({});
|
|
92
|
+
let GetLifiSwapRouteDirection = /*#__PURE__*/function (GetLifiSwapRouteDirection) {
|
|
93
|
+
GetLifiSwapRouteDirection["to"] = "to";
|
|
94
|
+
GetLifiSwapRouteDirection["from"] = "from";
|
|
95
|
+
return GetLifiSwapRouteDirection;
|
|
96
|
+
}({});
|
|
92
97
|
let TokenType = /*#__PURE__*/function (TokenType) {
|
|
93
98
|
TokenType["ERC20"] = "ERC20";
|
|
94
99
|
TokenType["ERC721"] = "ERC721";
|
|
@@ -101,6 +106,11 @@ let TransakBuySell = /*#__PURE__*/function (TransakBuySell) {
|
|
|
101
106
|
TransakBuySell["SELL"] = "SELL";
|
|
102
107
|
return TransakBuySell;
|
|
103
108
|
}({});
|
|
109
|
+
let TradeType = /*#__PURE__*/function (TradeType) {
|
|
110
|
+
TradeType["EXACT_INPUT"] = "EXACT_INPUT";
|
|
111
|
+
TradeType["EXACT_OUTPUT"] = "EXACT_OUTPUT";
|
|
112
|
+
return TradeType;
|
|
113
|
+
}({});
|
|
104
114
|
let CheckoutOptionCrypto = /*#__PURE__*/function (CheckoutOptionCrypto) {
|
|
105
115
|
CheckoutOptionCrypto["none"] = "none";
|
|
106
116
|
CheckoutOptionCrypto["partially"] = "partially";
|
|
@@ -520,6 +530,19 @@ class API {
|
|
|
520
530
|
});
|
|
521
531
|
});
|
|
522
532
|
};
|
|
533
|
+
this.getOnRampURL = (args, headers, signal) => {
|
|
534
|
+
return this.fetch(this.url('GetOnRampURL'), createHTTPRequest(args, headers, signal)).then(res => {
|
|
535
|
+
return buildResponse(res).then(_data => {
|
|
536
|
+
return {
|
|
537
|
+
url: _data.url
|
|
538
|
+
};
|
|
539
|
+
});
|
|
540
|
+
}, error => {
|
|
541
|
+
throw WebrpcRequestFailedError.new({
|
|
542
|
+
cause: `fetch(): ${error.message || ''}`
|
|
543
|
+
});
|
|
544
|
+
});
|
|
545
|
+
};
|
|
523
546
|
this.sardineGetClientToken = (headers, signal) => {
|
|
524
547
|
return this.fetch(this.url('SardineGetClientToken'), createHTTPRequest({}, headers, signal)).then(res => {
|
|
525
548
|
return buildResponse(res).then(_data => {
|
|
@@ -1016,6 +1039,51 @@ class API {
|
|
|
1016
1039
|
});
|
|
1017
1040
|
});
|
|
1018
1041
|
};
|
|
1042
|
+
this.getIntentCallsPayloads = (args, headers, signal) => {
|
|
1043
|
+
return this.fetch(this.url('GetIntentCallsPayloads'), createHTTPRequest(args, headers, signal)).then(res => {
|
|
1044
|
+
return buildResponse(res).then(_data => {
|
|
1045
|
+
return {
|
|
1046
|
+
calls: _data.calls,
|
|
1047
|
+
preconditions: _data.preconditions,
|
|
1048
|
+
metaTxns: _data.metaTxns,
|
|
1049
|
+
trailsFee: _data.trailsFee,
|
|
1050
|
+
quote: _data.quote,
|
|
1051
|
+
originIntentAddress: _data.originIntentAddress,
|
|
1052
|
+
destinationIntentAddress: _data.destinationIntentAddress
|
|
1053
|
+
};
|
|
1054
|
+
});
|
|
1055
|
+
}, error => {
|
|
1056
|
+
throw WebrpcRequestFailedError.new({
|
|
1057
|
+
cause: `fetch(): ${error.message || ''}`
|
|
1058
|
+
});
|
|
1059
|
+
});
|
|
1060
|
+
};
|
|
1061
|
+
this.commitIntentConfig = (args, headers, signal) => {
|
|
1062
|
+
return this.fetch(this.url('CommitIntentConfig'), createHTTPRequest(args, headers, signal)).then(res => {
|
|
1063
|
+
return buildResponse(res).then(_data => {
|
|
1064
|
+
return {
|
|
1065
|
+
config: _data.config
|
|
1066
|
+
};
|
|
1067
|
+
});
|
|
1068
|
+
}, error => {
|
|
1069
|
+
throw WebrpcRequestFailedError.new({
|
|
1070
|
+
cause: `fetch(): ${error.message || ''}`
|
|
1071
|
+
});
|
|
1072
|
+
});
|
|
1073
|
+
};
|
|
1074
|
+
this.getIntentConfig = (args, headers, signal) => {
|
|
1075
|
+
return this.fetch(this.url('GetIntentConfig'), createHTTPRequest(args, headers, signal)).then(res => {
|
|
1076
|
+
return buildResponse(res).then(_data => {
|
|
1077
|
+
return {
|
|
1078
|
+
config: _data.config
|
|
1079
|
+
};
|
|
1080
|
+
});
|
|
1081
|
+
}, error => {
|
|
1082
|
+
throw WebrpcRequestFailedError.new({
|
|
1083
|
+
cause: `fetch(): ${error.message || ''}`
|
|
1084
|
+
});
|
|
1085
|
+
});
|
|
1086
|
+
};
|
|
1019
1087
|
this.listCurrencyGroups = (headers, signal) => {
|
|
1020
1088
|
return this.fetch(this.url('ListCurrencyGroups'), createHTTPRequest({}, headers, signal)).then(res => {
|
|
1021
1089
|
return buildResponse(res).then(_data => {
|
|
@@ -1145,6 +1213,19 @@ class API {
|
|
|
1145
1213
|
});
|
|
1146
1214
|
});
|
|
1147
1215
|
};
|
|
1216
|
+
this.getPackIds = (args, headers, signal) => {
|
|
1217
|
+
return this.fetch(this.url('GetPackIds'), createHTTPRequest(args, headers, signal)).then(res => {
|
|
1218
|
+
return buildResponse(res).then(_data => {
|
|
1219
|
+
return {
|
|
1220
|
+
packIds: _data.packIds
|
|
1221
|
+
};
|
|
1222
|
+
});
|
|
1223
|
+
}, error => {
|
|
1224
|
+
throw WebrpcRequestFailedError.new({
|
|
1225
|
+
cause: `fetch(): ${error.message || ''}`
|
|
1226
|
+
});
|
|
1227
|
+
});
|
|
1228
|
+
};
|
|
1148
1229
|
this.deletePack = (args, headers, signal) => {
|
|
1149
1230
|
return this.fetch(this.url('DeletePack'), createHTTPRequest(args, headers, signal)).then(res => {
|
|
1150
1231
|
return buildResponse(res).then(_data => {
|
|
@@ -1223,6 +1304,58 @@ class API {
|
|
|
1223
1304
|
});
|
|
1224
1305
|
});
|
|
1225
1306
|
};
|
|
1307
|
+
this.fortePayCreateIntent = (args, headers, signal) => {
|
|
1308
|
+
return this.fetch(this.url('FortePayCreateIntent'), createHTTPRequest(args, headers, signal)).then(res => {
|
|
1309
|
+
return buildResponse(res).then(_data => {
|
|
1310
|
+
return {
|
|
1311
|
+
resp: _data.resp
|
|
1312
|
+
};
|
|
1313
|
+
});
|
|
1314
|
+
}, error => {
|
|
1315
|
+
throw WebrpcRequestFailedError.new({
|
|
1316
|
+
cause: `fetch(): ${error.message || ''}`
|
|
1317
|
+
});
|
|
1318
|
+
});
|
|
1319
|
+
};
|
|
1320
|
+
this.fortePayGetPaymentStatuses = (args, headers, signal) => {
|
|
1321
|
+
return this.fetch(this.url('FortePayGetPaymentStatuses'), createHTTPRequest(args, headers, signal)).then(res => {
|
|
1322
|
+
return buildResponse(res).then(_data => {
|
|
1323
|
+
return {
|
|
1324
|
+
statuses: _data.statuses
|
|
1325
|
+
};
|
|
1326
|
+
});
|
|
1327
|
+
}, error => {
|
|
1328
|
+
throw WebrpcRequestFailedError.new({
|
|
1329
|
+
cause: `fetch(): ${error.message || ''}`
|
|
1330
|
+
});
|
|
1331
|
+
});
|
|
1332
|
+
};
|
|
1333
|
+
this.getCCTPTransfer = (args, headers, signal) => {
|
|
1334
|
+
return this.fetch(this.url('GetCCTPTransfer'), createHTTPRequest(args, headers, signal)).then(res => {
|
|
1335
|
+
return buildResponse(res).then(_data => {
|
|
1336
|
+
return {
|
|
1337
|
+
transfer: _data.transfer
|
|
1338
|
+
};
|
|
1339
|
+
});
|
|
1340
|
+
}, error => {
|
|
1341
|
+
throw WebrpcRequestFailedError.new({
|
|
1342
|
+
cause: `fetch(): ${error.message || ''}`
|
|
1343
|
+
});
|
|
1344
|
+
});
|
|
1345
|
+
};
|
|
1346
|
+
this.queueCCTPTransfer = (args, headers, signal) => {
|
|
1347
|
+
return this.fetch(this.url('QueueCCTPTransfer'), createHTTPRequest(args, headers, signal)).then(res => {
|
|
1348
|
+
return buildResponse(res).then(_data => {
|
|
1349
|
+
return {
|
|
1350
|
+
transfer: _data.transfer
|
|
1351
|
+
};
|
|
1352
|
+
});
|
|
1353
|
+
}, error => {
|
|
1354
|
+
throw WebrpcRequestFailedError.new({
|
|
1355
|
+
cause: `fetch(): ${error.message || ''}`
|
|
1356
|
+
});
|
|
1357
|
+
});
|
|
1358
|
+
};
|
|
1226
1359
|
this.hostname = hostname.replace(/\/*$/, '');
|
|
1227
1360
|
this.fetch = (input, init) => fetch(input, init);
|
|
1228
1361
|
}
|
|
@@ -1666,6 +1799,7 @@ exports.CheckoutOptionNFTCheckoutProvider = CheckoutOptionNFTCheckoutProvider;
|
|
|
1666
1799
|
exports.CheckoutOptionOnRampProvider = CheckoutOptionOnRampProvider;
|
|
1667
1800
|
exports.CheckoutOptionSwapProvider = CheckoutOptionSwapProvider;
|
|
1668
1801
|
exports.GeoblockedError = GeoblockedError;
|
|
1802
|
+
exports.GetLifiSwapRouteDirection = GetLifiSwapRouteDirection;
|
|
1669
1803
|
exports.InvalidArgumentError = InvalidArgumentError;
|
|
1670
1804
|
exports.InvalidOriginError = InvalidOriginError;
|
|
1671
1805
|
exports.InvalidServiceError = InvalidServiceError;
|
|
@@ -1687,6 +1821,7 @@ exports.SessionExpiredError = SessionExpiredError;
|
|
|
1687
1821
|
exports.SortOrder = SortOrder;
|
|
1688
1822
|
exports.TimeoutError = TimeoutError;
|
|
1689
1823
|
exports.TokenType = TokenType;
|
|
1824
|
+
exports.TradeType = TradeType;
|
|
1690
1825
|
exports.TransakBuySell = TransakBuySell;
|
|
1691
1826
|
exports.UnauthorizedError = UnauthorizedError;
|
|
1692
1827
|
exports.UnauthorizedUserError = UnauthorizedUserError;
|
|
@@ -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 01e4e5d5ce5e7b85514f2db2fb5b346229db727c
|
|
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 = "01e4e5d5ce5e7b85514f2db2fb5b346229db727c";
|
|
29
29
|
function VersionFromHeader(headers) {
|
|
30
30
|
const headerValue = headers.get(WebrpcHeader);
|
|
31
31
|
if (!headerValue) {
|
|
@@ -85,6 +85,11 @@ let SardineQuoteType = /*#__PURE__*/function (SardineQuoteType) {
|
|
|
85
85
|
SardineQuoteType["sell"] = "sell";
|
|
86
86
|
return SardineQuoteType;
|
|
87
87
|
}({});
|
|
88
|
+
let GetLifiSwapRouteDirection = /*#__PURE__*/function (GetLifiSwapRouteDirection) {
|
|
89
|
+
GetLifiSwapRouteDirection["to"] = "to";
|
|
90
|
+
GetLifiSwapRouteDirection["from"] = "from";
|
|
91
|
+
return GetLifiSwapRouteDirection;
|
|
92
|
+
}({});
|
|
88
93
|
let TokenType = /*#__PURE__*/function (TokenType) {
|
|
89
94
|
TokenType["ERC20"] = "ERC20";
|
|
90
95
|
TokenType["ERC721"] = "ERC721";
|
|
@@ -97,6 +102,11 @@ let TransakBuySell = /*#__PURE__*/function (TransakBuySell) {
|
|
|
97
102
|
TransakBuySell["SELL"] = "SELL";
|
|
98
103
|
return TransakBuySell;
|
|
99
104
|
}({});
|
|
105
|
+
let TradeType = /*#__PURE__*/function (TradeType) {
|
|
106
|
+
TradeType["EXACT_INPUT"] = "EXACT_INPUT";
|
|
107
|
+
TradeType["EXACT_OUTPUT"] = "EXACT_OUTPUT";
|
|
108
|
+
return TradeType;
|
|
109
|
+
}({});
|
|
100
110
|
let CheckoutOptionCrypto = /*#__PURE__*/function (CheckoutOptionCrypto) {
|
|
101
111
|
CheckoutOptionCrypto["none"] = "none";
|
|
102
112
|
CheckoutOptionCrypto["partially"] = "partially";
|
|
@@ -516,6 +526,19 @@ class API {
|
|
|
516
526
|
});
|
|
517
527
|
});
|
|
518
528
|
};
|
|
529
|
+
this.getOnRampURL = (args, headers, signal) => {
|
|
530
|
+
return this.fetch(this.url('GetOnRampURL'), createHTTPRequest(args, headers, signal)).then(res => {
|
|
531
|
+
return buildResponse(res).then(_data => {
|
|
532
|
+
return {
|
|
533
|
+
url: _data.url
|
|
534
|
+
};
|
|
535
|
+
});
|
|
536
|
+
}, error => {
|
|
537
|
+
throw WebrpcRequestFailedError.new({
|
|
538
|
+
cause: `fetch(): ${error.message || ''}`
|
|
539
|
+
});
|
|
540
|
+
});
|
|
541
|
+
};
|
|
519
542
|
this.sardineGetClientToken = (headers, signal) => {
|
|
520
543
|
return this.fetch(this.url('SardineGetClientToken'), createHTTPRequest({}, headers, signal)).then(res => {
|
|
521
544
|
return buildResponse(res).then(_data => {
|
|
@@ -1012,6 +1035,51 @@ class API {
|
|
|
1012
1035
|
});
|
|
1013
1036
|
});
|
|
1014
1037
|
};
|
|
1038
|
+
this.getIntentCallsPayloads = (args, headers, signal) => {
|
|
1039
|
+
return this.fetch(this.url('GetIntentCallsPayloads'), createHTTPRequest(args, headers, signal)).then(res => {
|
|
1040
|
+
return buildResponse(res).then(_data => {
|
|
1041
|
+
return {
|
|
1042
|
+
calls: _data.calls,
|
|
1043
|
+
preconditions: _data.preconditions,
|
|
1044
|
+
metaTxns: _data.metaTxns,
|
|
1045
|
+
trailsFee: _data.trailsFee,
|
|
1046
|
+
quote: _data.quote,
|
|
1047
|
+
originIntentAddress: _data.originIntentAddress,
|
|
1048
|
+
destinationIntentAddress: _data.destinationIntentAddress
|
|
1049
|
+
};
|
|
1050
|
+
});
|
|
1051
|
+
}, error => {
|
|
1052
|
+
throw WebrpcRequestFailedError.new({
|
|
1053
|
+
cause: `fetch(): ${error.message || ''}`
|
|
1054
|
+
});
|
|
1055
|
+
});
|
|
1056
|
+
};
|
|
1057
|
+
this.commitIntentConfig = (args, headers, signal) => {
|
|
1058
|
+
return this.fetch(this.url('CommitIntentConfig'), createHTTPRequest(args, headers, signal)).then(res => {
|
|
1059
|
+
return buildResponse(res).then(_data => {
|
|
1060
|
+
return {
|
|
1061
|
+
config: _data.config
|
|
1062
|
+
};
|
|
1063
|
+
});
|
|
1064
|
+
}, error => {
|
|
1065
|
+
throw WebrpcRequestFailedError.new({
|
|
1066
|
+
cause: `fetch(): ${error.message || ''}`
|
|
1067
|
+
});
|
|
1068
|
+
});
|
|
1069
|
+
};
|
|
1070
|
+
this.getIntentConfig = (args, headers, signal) => {
|
|
1071
|
+
return this.fetch(this.url('GetIntentConfig'), createHTTPRequest(args, headers, signal)).then(res => {
|
|
1072
|
+
return buildResponse(res).then(_data => {
|
|
1073
|
+
return {
|
|
1074
|
+
config: _data.config
|
|
1075
|
+
};
|
|
1076
|
+
});
|
|
1077
|
+
}, error => {
|
|
1078
|
+
throw WebrpcRequestFailedError.new({
|
|
1079
|
+
cause: `fetch(): ${error.message || ''}`
|
|
1080
|
+
});
|
|
1081
|
+
});
|
|
1082
|
+
};
|
|
1015
1083
|
this.listCurrencyGroups = (headers, signal) => {
|
|
1016
1084
|
return this.fetch(this.url('ListCurrencyGroups'), createHTTPRequest({}, headers, signal)).then(res => {
|
|
1017
1085
|
return buildResponse(res).then(_data => {
|
|
@@ -1141,6 +1209,19 @@ class API {
|
|
|
1141
1209
|
});
|
|
1142
1210
|
});
|
|
1143
1211
|
};
|
|
1212
|
+
this.getPackIds = (args, headers, signal) => {
|
|
1213
|
+
return this.fetch(this.url('GetPackIds'), createHTTPRequest(args, headers, signal)).then(res => {
|
|
1214
|
+
return buildResponse(res).then(_data => {
|
|
1215
|
+
return {
|
|
1216
|
+
packIds: _data.packIds
|
|
1217
|
+
};
|
|
1218
|
+
});
|
|
1219
|
+
}, error => {
|
|
1220
|
+
throw WebrpcRequestFailedError.new({
|
|
1221
|
+
cause: `fetch(): ${error.message || ''}`
|
|
1222
|
+
});
|
|
1223
|
+
});
|
|
1224
|
+
};
|
|
1144
1225
|
this.deletePack = (args, headers, signal) => {
|
|
1145
1226
|
return this.fetch(this.url('DeletePack'), createHTTPRequest(args, headers, signal)).then(res => {
|
|
1146
1227
|
return buildResponse(res).then(_data => {
|
|
@@ -1219,6 +1300,58 @@ class API {
|
|
|
1219
1300
|
});
|
|
1220
1301
|
});
|
|
1221
1302
|
};
|
|
1303
|
+
this.fortePayCreateIntent = (args, headers, signal) => {
|
|
1304
|
+
return this.fetch(this.url('FortePayCreateIntent'), createHTTPRequest(args, headers, signal)).then(res => {
|
|
1305
|
+
return buildResponse(res).then(_data => {
|
|
1306
|
+
return {
|
|
1307
|
+
resp: _data.resp
|
|
1308
|
+
};
|
|
1309
|
+
});
|
|
1310
|
+
}, error => {
|
|
1311
|
+
throw WebrpcRequestFailedError.new({
|
|
1312
|
+
cause: `fetch(): ${error.message || ''}`
|
|
1313
|
+
});
|
|
1314
|
+
});
|
|
1315
|
+
};
|
|
1316
|
+
this.fortePayGetPaymentStatuses = (args, headers, signal) => {
|
|
1317
|
+
return this.fetch(this.url('FortePayGetPaymentStatuses'), createHTTPRequest(args, headers, signal)).then(res => {
|
|
1318
|
+
return buildResponse(res).then(_data => {
|
|
1319
|
+
return {
|
|
1320
|
+
statuses: _data.statuses
|
|
1321
|
+
};
|
|
1322
|
+
});
|
|
1323
|
+
}, error => {
|
|
1324
|
+
throw WebrpcRequestFailedError.new({
|
|
1325
|
+
cause: `fetch(): ${error.message || ''}`
|
|
1326
|
+
});
|
|
1327
|
+
});
|
|
1328
|
+
};
|
|
1329
|
+
this.getCCTPTransfer = (args, headers, signal) => {
|
|
1330
|
+
return this.fetch(this.url('GetCCTPTransfer'), createHTTPRequest(args, headers, signal)).then(res => {
|
|
1331
|
+
return buildResponse(res).then(_data => {
|
|
1332
|
+
return {
|
|
1333
|
+
transfer: _data.transfer
|
|
1334
|
+
};
|
|
1335
|
+
});
|
|
1336
|
+
}, error => {
|
|
1337
|
+
throw WebrpcRequestFailedError.new({
|
|
1338
|
+
cause: `fetch(): ${error.message || ''}`
|
|
1339
|
+
});
|
|
1340
|
+
});
|
|
1341
|
+
};
|
|
1342
|
+
this.queueCCTPTransfer = (args, headers, signal) => {
|
|
1343
|
+
return this.fetch(this.url('QueueCCTPTransfer'), createHTTPRequest(args, headers, signal)).then(res => {
|
|
1344
|
+
return buildResponse(res).then(_data => {
|
|
1345
|
+
return {
|
|
1346
|
+
transfer: _data.transfer
|
|
1347
|
+
};
|
|
1348
|
+
});
|
|
1349
|
+
}, error => {
|
|
1350
|
+
throw WebrpcRequestFailedError.new({
|
|
1351
|
+
cause: `fetch(): ${error.message || ''}`
|
|
1352
|
+
});
|
|
1353
|
+
});
|
|
1354
|
+
};
|
|
1222
1355
|
this.hostname = hostname.replace(/\/*$/, '');
|
|
1223
1356
|
this.fetch = (input, init) => fetch(input, init);
|
|
1224
1357
|
}
|
|
@@ -1652,4 +1785,4 @@ class SequenceAPIClient extends API {
|
|
|
1652
1785
|
}
|
|
1653
1786
|
}
|
|
1654
1787
|
|
|
1655
|
-
export { API, AbortedError, AccessKeyMismatchError, AccessKeyNotFoundError, AtLeastOneKeyError, CheckoutOptionCrypto, CheckoutOptionNFTCheckoutProvider, CheckoutOptionOnRampProvider, CheckoutOptionSwapProvider, GeoblockedError, InvalidArgumentError, InvalidOriginError, InvalidServiceError, MaxAccessKeysError, MethodNotFoundError, NoDefaultKeyError, NotFoundError, PermissionDeniedError, ProjectNotFoundError, QueryFailedError, QuotaExceededError, QuotaRateLimitError, RateLimitedError, RequestConflictError, SardinePaymentType, SardineQuoteType, SequenceAPIClient, SessionExpiredError, SortOrder, TimeoutError, TokenType, TransakBuySell, UnauthorizedError, UnauthorizedUserError, UnavailableError, UnsupportedNetworkError, VersionFromHeader, WebRPCSchemaHash, WebRPCSchemaVersion, WebRPCVersion, WebrpcBadMethodError, WebrpcBadRequestError, WebrpcBadResponseError, WebrpcBadRouteError, WebrpcClientDisconnectedError, WebrpcEndpointError, WebrpcError, WebrpcErrorCodes, WebrpcHeader, WebrpcHeaderValue, WebrpcInternalErrorError, WebrpcRequestFailedError, WebrpcServerPanicError, WebrpcStreamFinishedError, WebrpcStreamLostError, errors, webrpcErrorByCode };
|
|
1788
|
+
export { API, AbortedError, AccessKeyMismatchError, AccessKeyNotFoundError, AtLeastOneKeyError, CheckoutOptionCrypto, CheckoutOptionNFTCheckoutProvider, CheckoutOptionOnRampProvider, CheckoutOptionSwapProvider, GeoblockedError, GetLifiSwapRouteDirection, InvalidArgumentError, InvalidOriginError, InvalidServiceError, MaxAccessKeysError, MethodNotFoundError, NoDefaultKeyError, NotFoundError, PermissionDeniedError, ProjectNotFoundError, QueryFailedError, QuotaExceededError, QuotaRateLimitError, RateLimitedError, RequestConflictError, SardinePaymentType, SardineQuoteType, SequenceAPIClient, SessionExpiredError, SortOrder, TimeoutError, TokenType, TradeType, TransakBuySell, UnauthorizedError, UnauthorizedUserError, UnavailableError, UnsupportedNetworkError, VersionFromHeader, WebRPCSchemaHash, WebRPCSchemaVersion, WebRPCVersion, WebrpcBadMethodError, WebrpcBadRequestError, WebrpcBadResponseError, WebrpcBadRouteError, WebrpcClientDisconnectedError, WebrpcEndpointError, WebrpcError, WebrpcErrorCodes, WebrpcHeader, WebrpcHeaderValue, WebrpcInternalErrorError, WebrpcRequestFailedError, WebrpcServerPanicError, WebrpcStreamFinishedError, WebrpcStreamLostError, errors, webrpcErrorByCode };
|