@0xsequence/api 2.3.27 → 2.3.29
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 +191 -2
- package/dist/0xsequence-api.cjs.prod.js +191 -2
- package/dist/0xsequence-api.esm.js +190 -3
- package/dist/declarations/src/api.gen.d.ts +368 -23
- package/package.json +1 -1
- package/src/api.gen.ts +580 -24
|
@@ -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 d43a5aac616814072c69e63f2f81fe65ea10a7e0
|
|
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 = "d43a5aac616814072c69e63f2f81fe65ea10a7e0";
|
|
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,52 @@ 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
|
+
feeQuotes: _data.feeQuotes,
|
|
1048
|
+
originIntentAddress: _data.originIntentAddress,
|
|
1049
|
+
destinationIntentAddress: _data.destinationIntentAddress
|
|
1050
|
+
};
|
|
1051
|
+
});
|
|
1052
|
+
}, error => {
|
|
1053
|
+
throw WebrpcRequestFailedError.new({
|
|
1054
|
+
cause: `fetch(): ${error.message || ''}`
|
|
1055
|
+
});
|
|
1056
|
+
});
|
|
1057
|
+
};
|
|
1058
|
+
this.commitIntentConfig = (args, headers, signal) => {
|
|
1059
|
+
return this.fetch(this.url('CommitIntentConfig'), createHTTPRequest(args, headers, signal)).then(res => {
|
|
1060
|
+
return buildResponse(res).then(_data => {
|
|
1061
|
+
return {
|
|
1062
|
+
config: _data.config
|
|
1063
|
+
};
|
|
1064
|
+
});
|
|
1065
|
+
}, error => {
|
|
1066
|
+
throw WebrpcRequestFailedError.new({
|
|
1067
|
+
cause: `fetch(): ${error.message || ''}`
|
|
1068
|
+
});
|
|
1069
|
+
});
|
|
1070
|
+
};
|
|
1071
|
+
this.getIntentConfig = (args, headers, signal) => {
|
|
1072
|
+
return this.fetch(this.url('GetIntentConfig'), createHTTPRequest(args, headers, signal)).then(res => {
|
|
1073
|
+
return buildResponse(res).then(_data => {
|
|
1074
|
+
return {
|
|
1075
|
+
config: _data.config
|
|
1076
|
+
};
|
|
1077
|
+
});
|
|
1078
|
+
}, error => {
|
|
1079
|
+
throw WebrpcRequestFailedError.new({
|
|
1080
|
+
cause: `fetch(): ${error.message || ''}`
|
|
1081
|
+
});
|
|
1082
|
+
});
|
|
1083
|
+
};
|
|
1015
1084
|
this.listCurrencyGroups = (headers, signal) => {
|
|
1016
1085
|
return this.fetch(this.url('ListCurrencyGroups'), createHTTPRequest({}, headers, signal)).then(res => {
|
|
1017
1086
|
return buildResponse(res).then(_data => {
|
|
@@ -1141,6 +1210,19 @@ class API {
|
|
|
1141
1210
|
});
|
|
1142
1211
|
});
|
|
1143
1212
|
};
|
|
1213
|
+
this.getPackIds = (args, headers, signal) => {
|
|
1214
|
+
return this.fetch(this.url('GetPackIds'), createHTTPRequest(args, headers, signal)).then(res => {
|
|
1215
|
+
return buildResponse(res).then(_data => {
|
|
1216
|
+
return {
|
|
1217
|
+
packIds: _data.packIds
|
|
1218
|
+
};
|
|
1219
|
+
});
|
|
1220
|
+
}, error => {
|
|
1221
|
+
throw WebrpcRequestFailedError.new({
|
|
1222
|
+
cause: `fetch(): ${error.message || ''}`
|
|
1223
|
+
});
|
|
1224
|
+
});
|
|
1225
|
+
};
|
|
1144
1226
|
this.deletePack = (args, headers, signal) => {
|
|
1145
1227
|
return this.fetch(this.url('DeletePack'), createHTTPRequest(args, headers, signal)).then(res => {
|
|
1146
1228
|
return buildResponse(res).then(_data => {
|
|
@@ -1219,6 +1301,111 @@ class API {
|
|
|
1219
1301
|
});
|
|
1220
1302
|
});
|
|
1221
1303
|
};
|
|
1304
|
+
this.fortePayCreateIntent = (args, headers, signal) => {
|
|
1305
|
+
return this.fetch(this.url('FortePayCreateIntent'), createHTTPRequest(args, headers, signal)).then(res => {
|
|
1306
|
+
return buildResponse(res).then(_data => {
|
|
1307
|
+
return {
|
|
1308
|
+
resp: _data.resp
|
|
1309
|
+
};
|
|
1310
|
+
});
|
|
1311
|
+
}, error => {
|
|
1312
|
+
throw WebrpcRequestFailedError.new({
|
|
1313
|
+
cause: `fetch(): ${error.message || ''}`
|
|
1314
|
+
});
|
|
1315
|
+
});
|
|
1316
|
+
};
|
|
1317
|
+
this.fortePayGetPaymentStatuses = (args, headers, signal) => {
|
|
1318
|
+
return this.fetch(this.url('FortePayGetPaymentStatuses'), createHTTPRequest(args, headers, signal)).then(res => {
|
|
1319
|
+
return buildResponse(res).then(_data => {
|
|
1320
|
+
return {
|
|
1321
|
+
statuses: _data.statuses
|
|
1322
|
+
};
|
|
1323
|
+
});
|
|
1324
|
+
}, error => {
|
|
1325
|
+
throw WebrpcRequestFailedError.new({
|
|
1326
|
+
cause: `fetch(): ${error.message || ''}`
|
|
1327
|
+
});
|
|
1328
|
+
});
|
|
1329
|
+
};
|
|
1330
|
+
this.getCCTPTransfer = (args, headers, signal) => {
|
|
1331
|
+
return this.fetch(this.url('GetCCTPTransfer'), createHTTPRequest(args, headers, signal)).then(res => {
|
|
1332
|
+
return buildResponse(res).then(_data => {
|
|
1333
|
+
return {
|
|
1334
|
+
transfer: _data.transfer
|
|
1335
|
+
};
|
|
1336
|
+
});
|
|
1337
|
+
}, error => {
|
|
1338
|
+
throw WebrpcRequestFailedError.new({
|
|
1339
|
+
cause: `fetch(): ${error.message || ''}`
|
|
1340
|
+
});
|
|
1341
|
+
});
|
|
1342
|
+
};
|
|
1343
|
+
this.queueCCTPTransfer = (args, headers, signal) => {
|
|
1344
|
+
return this.fetch(this.url('QueueCCTPTransfer'), createHTTPRequest(args, headers, signal)).then(res => {
|
|
1345
|
+
return buildResponse(res).then(_data => {
|
|
1346
|
+
return {
|
|
1347
|
+
transfer: _data.transfer
|
|
1348
|
+
};
|
|
1349
|
+
});
|
|
1350
|
+
}, error => {
|
|
1351
|
+
throw WebrpcRequestFailedError.new({
|
|
1352
|
+
cause: `fetch(): ${error.message || ''}`
|
|
1353
|
+
});
|
|
1354
|
+
});
|
|
1355
|
+
};
|
|
1356
|
+
this.queueIntentConfigExecution = (args, headers, signal) => {
|
|
1357
|
+
return this.fetch(this.url('QueueIntentConfigExecution'), createHTTPRequest(args, headers, signal)).then(res => {
|
|
1358
|
+
return buildResponse(res).then(_data => {
|
|
1359
|
+
return {
|
|
1360
|
+
status: _data.status
|
|
1361
|
+
};
|
|
1362
|
+
});
|
|
1363
|
+
}, error => {
|
|
1364
|
+
throw WebrpcRequestFailedError.new({
|
|
1365
|
+
cause: `fetch(): ${error.message || ''}`
|
|
1366
|
+
});
|
|
1367
|
+
});
|
|
1368
|
+
};
|
|
1369
|
+
this.getIntentConfigExecutionStatus = (args, headers, signal) => {
|
|
1370
|
+
return this.fetch(this.url('GetIntentConfigExecutionStatus'), createHTTPRequest(args, headers, signal)).then(res => {
|
|
1371
|
+
return buildResponse(res).then(_data => {
|
|
1372
|
+
return {
|
|
1373
|
+
executionStatus: _data.executionStatus
|
|
1374
|
+
};
|
|
1375
|
+
});
|
|
1376
|
+
}, error => {
|
|
1377
|
+
throw WebrpcRequestFailedError.new({
|
|
1378
|
+
cause: `fetch(): ${error.message || ''}`
|
|
1379
|
+
});
|
|
1380
|
+
});
|
|
1381
|
+
};
|
|
1382
|
+
this.listIntentConfigs = (args, headers, signal) => {
|
|
1383
|
+
return this.fetch(this.url('ListIntentConfigs'), createHTTPRequest(args, headers, signal)).then(res => {
|
|
1384
|
+
return buildResponse(res).then(_data => {
|
|
1385
|
+
return {
|
|
1386
|
+
page: _data.page,
|
|
1387
|
+
intentConfigs: _data.intentConfigs
|
|
1388
|
+
};
|
|
1389
|
+
});
|
|
1390
|
+
}, error => {
|
|
1391
|
+
throw WebrpcRequestFailedError.new({
|
|
1392
|
+
cause: `fetch(): ${error.message || ''}`
|
|
1393
|
+
});
|
|
1394
|
+
});
|
|
1395
|
+
};
|
|
1396
|
+
this.queueMetaTxnReceipt = (args, headers, signal) => {
|
|
1397
|
+
return this.fetch(this.url('QueueMetaTxnReceipt'), createHTTPRequest(args, headers, signal)).then(res => {
|
|
1398
|
+
return buildResponse(res).then(_data => {
|
|
1399
|
+
return {
|
|
1400
|
+
status: _data.status
|
|
1401
|
+
};
|
|
1402
|
+
});
|
|
1403
|
+
}, error => {
|
|
1404
|
+
throw WebrpcRequestFailedError.new({
|
|
1405
|
+
cause: `fetch(): ${error.message || ''}`
|
|
1406
|
+
});
|
|
1407
|
+
});
|
|
1408
|
+
};
|
|
1222
1409
|
this.hostname = hostname.replace(/\/*$/, '');
|
|
1223
1410
|
this.fetch = (input, init) => fetch(input, init);
|
|
1224
1411
|
}
|
|
@@ -1652,4 +1839,4 @@ class SequenceAPIClient extends API {
|
|
|
1652
1839
|
}
|
|
1653
1840
|
}
|
|
1654
1841
|
|
|
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 };
|
|
1842
|
+
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 };
|