@skip-go/client 1.5.0 → 1.5.1
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/cjs/{chunk-W3KF3V57.cjs → chunk-5CB6SPCX.cjs} +4 -4
- package/dist/cjs/{chunk-HHZGD62Y.cjs → chunk-EZGHN6ZL.cjs} +25 -25
- package/dist/cjs/{chunk-UIQML2XG.cjs → chunk-KHJQE3DI.cjs} +24 -11
- package/dist/cjs/chunk-KSJ5QYMR.cjs +185 -0
- package/dist/cjs/{chunk-GCJO6DZD.cjs → chunk-N5V3YW5K.cjs} +6 -6
- package/dist/cjs/{chunk-VF65UG3E.cjs → chunk-NDSHB4I6.cjs} +8 -8
- package/dist/cjs/{chunk-K4YAPDUE.cjs → chunk-QZ2BGX6O.cjs} +2 -2
- package/dist/cjs/{chunk-X22PL5T7.cjs → chunk-RVXCF6AL.cjs} +3 -3
- package/dist/cjs/{chunk-CUDPMOR6.cjs → chunk-V3FWWJG2.cjs} +2 -2
- package/dist/cjs/index.cjs +16 -16
- package/dist/cjs/public-functions/executeMultipleRoutes.cjs +7 -7
- package/dist/cjs/public-functions/executeRoute.cjs +7 -7
- package/dist/cjs/public-functions/getFeeInfoForChain.cjs +3 -3
- package/dist/cjs/public-functions/getRecommendedGasPrice.cjs +4 -4
- package/dist/cjs/public-functions/getSigningStargateClient.cjs +3 -3
- package/dist/cjs/public-functions/subscribeToRouteStatus.cjs +5 -5
- package/dist/cjs/public-functions/validateCosmosGasBalance.cjs +4 -4
- package/dist/esm/api/getAssets.d.ts +1 -1
- package/dist/esm/api/getAssetsBetweenChains.d.ts +1 -1
- package/dist/esm/api/getBridges.d.ts +3 -3
- package/dist/esm/api/getChains.d.ts +1 -1
- package/dist/esm/api/postAssetsFromSource.d.ts +10 -1
- package/dist/esm/api/postBalances.d.ts +2 -2
- package/dist/esm/api/postMessages.d.ts +2 -2
- package/dist/esm/api/postMessagesDirect.d.ts +3 -1
- package/dist/esm/api/postRecommendAssets.d.ts +1 -1
- package/dist/esm/api/postRoute.d.ts +4 -2
- package/dist/esm/api/postSubmitTransaction.d.ts +2 -2
- package/dist/esm/api/postTrackTransaction.d.ts +2 -2
- package/dist/esm/api/postTransactionStatus.d.ts +2 -2
- package/dist/esm/{callbacks-CvqAtBJq.d.ts → callbacks-DCqqd0D9.d.ts} +4 -6
- package/dist/esm/{chunk-CX5N7ZLJ.js → chunk-2DD5F6PK.js} +1 -1
- package/dist/esm/{chunk-KLGGCB73.js → chunk-3J5IMMMB.js} +1 -1
- package/dist/esm/{chunk-7RS3YIVC.js → chunk-562J5DCB.js} +2 -2
- package/dist/esm/{chunk-MPSXXWKL.js → chunk-BZDVQMHK.js} +1 -1
- package/dist/esm/{chunk-AZALP3WR.js → chunk-FVQFGEL2.js} +2 -2
- package/dist/esm/chunk-RHGDUD76.js +180 -0
- package/dist/esm/{chunk-JKN4E5VN.js → chunk-VZGOU6MB.js} +1 -1
- package/dist/esm/{chunk-MTAS5XMN.js → chunk-W5EGS2G4.js} +4 -4
- package/dist/esm/{chunk-VUXLWWLF.js → chunk-XYYXRVFN.js} +24 -11
- package/dist/esm/{client-types-Dk6ypWdO.d.ts → client-types-BSZasIDd.d.ts} +1 -1
- package/dist/esm/{generateApi-C_xgtxrO.d.ts → generateApi-CwM4Ca30.d.ts} +1 -1
- package/dist/esm/index.d.ts +215 -6
- package/dist/esm/index.js +9 -9
- package/dist/esm/public-functions/executeMultipleRoutes.d.ts +4 -4
- package/dist/esm/public-functions/executeMultipleRoutes.js +6 -6
- package/dist/esm/public-functions/executeRoute.d.ts +4 -4
- package/dist/esm/public-functions/executeRoute.js +6 -6
- package/dist/esm/public-functions/getCosmosGasAmountForMessage.d.ts +1 -1
- package/dist/esm/public-functions/getEvmGasAmountForMessage.d.ts +3 -3
- package/dist/esm/public-functions/getFeeInfoForChain.d.ts +1 -1
- package/dist/esm/public-functions/getFeeInfoForChain.js +2 -2
- package/dist/esm/public-functions/getRecommendedGasPrice.js +3 -3
- package/dist/esm/public-functions/getSigningStargateClient.js +2 -2
- package/dist/esm/public-functions/setApiOptions.d.ts +1 -1
- package/dist/esm/public-functions/setClientOptions.d.ts +4 -4
- package/dist/esm/public-functions/subscribeToRouteStatus.d.ts +4 -4
- package/dist/esm/public-functions/subscribeToRouteStatus.js +1 -1
- package/dist/esm/public-functions/validateCosmosGasBalance.d.ts +4 -4
- package/dist/esm/public-functions/validateCosmosGasBalance.js +3 -3
- package/dist/esm/public-functions/waitForTransaction.d.ts +4 -4
- package/dist/esm/{setClientOptions-BD8e7m2x.d.ts → setClientOptions-0DYCj_A5.d.ts} +1 -1
- package/dist/esm/{swaggerTypes-DDwqIjap.d.ts → swaggerTypes-Bh6hu5Q-.d.ts} +220 -196
- package/package.json +1 -1
- package/dist/cjs/chunk-4YTACAVP.cjs +0 -185
- package/dist/esm/chunk-IUYOY23L.js +0 -180
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkEZGHN6ZL_cjs = require('./chunk-EZGHN6ZL.cjs');
|
|
4
|
+
var chunkKHJQE3DI_cjs = require('./chunk-KHJQE3DI.cjs');
|
|
5
5
|
var chunkOZUCMWNE_cjs = require('./chunk-OZUCMWNE.cjs');
|
|
6
6
|
var chunkERGJBZUC_cjs = require('./chunk-ERGJBZUC.cjs');
|
|
7
7
|
|
|
8
8
|
// src/public-functions/executeRoute.ts
|
|
9
9
|
var executeRoute = async (options) => {
|
|
10
10
|
const { route, userAddresses, appendCosmosMsgs, timeoutSeconds } = options;
|
|
11
|
-
const { id: routeId } =
|
|
11
|
+
const { id: routeId } = chunkKHJQE3DI_cjs.updateRouteDetails({
|
|
12
12
|
status: "unconfirmed",
|
|
13
13
|
options
|
|
14
14
|
});
|
|
15
|
-
const addressList = await
|
|
15
|
+
const addressList = await chunkEZGHN6ZL_cjs.createValidAddressList({
|
|
16
16
|
userAddresses,
|
|
17
17
|
route
|
|
18
18
|
});
|
|
@@ -43,8 +43,8 @@ var executeRoute = async (options) => {
|
|
|
43
43
|
}
|
|
44
44
|
});
|
|
45
45
|
}
|
|
46
|
-
const { transactionDetails, executeTransaction } = await
|
|
47
|
-
await
|
|
46
|
+
const { transactionDetails, executeTransaction } = await chunkEZGHN6ZL_cjs.executeTransactions({ ...options, routeId, txs: response?.txs });
|
|
47
|
+
await chunkKHJQE3DI_cjs.executeAndSubscribeToRouteStatus({
|
|
48
48
|
transactionDetails,
|
|
49
49
|
executeTransaction,
|
|
50
50
|
routeId,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkEZGHN6ZL_cjs = require('./chunk-EZGHN6ZL.cjs');
|
|
4
|
+
var chunkKHJQE3DI_cjs = require('./chunk-KHJQE3DI.cjs');
|
|
5
5
|
var chunkOZUCMWNE_cjs = require('./chunk-OZUCMWNE.cjs');
|
|
6
6
|
var chunkLUVMRHAJ_cjs = require('./chunk-LUVMRHAJ.cjs');
|
|
7
7
|
var chunkERGJBZUC_cjs = require('./chunk-ERGJBZUC.cjs');
|
|
@@ -24,7 +24,7 @@ var executeMultipleRoutes = async (options) => {
|
|
|
24
24
|
`executeMultipleRoutes error: no user addresses found for route: ${routeKey}`
|
|
25
25
|
);
|
|
26
26
|
}
|
|
27
|
-
const routeAddressList = await
|
|
27
|
+
const routeAddressList = await chunkEZGHN6ZL_cjs.createValidAddressList({
|
|
28
28
|
userAddresses: _userAddresses,
|
|
29
29
|
route: routeValue
|
|
30
30
|
});
|
|
@@ -119,7 +119,7 @@ var executeMultipleRoutes = async (options) => {
|
|
|
119
119
|
const executeTransactionList = {};
|
|
120
120
|
const mergedMainAndSecondaryRoutes = Object.entries(msgsRecord).length !== Object.entries(route).length;
|
|
121
121
|
for (const [routeKey, msgsResponse] of Object.entries(msgsRecord)) {
|
|
122
|
-
const { id: routeId } =
|
|
122
|
+
const { id: routeId } = chunkKHJQE3DI_cjs.updateRouteDetails({
|
|
123
123
|
status: "unconfirmed",
|
|
124
124
|
options: {
|
|
125
125
|
route: route[routeKey],
|
|
@@ -132,7 +132,7 @@ var executeMultipleRoutes = async (options) => {
|
|
|
132
132
|
if (routeKey === "mainRoute") {
|
|
133
133
|
mainRouteId = routeId;
|
|
134
134
|
}
|
|
135
|
-
const { transactionDetails, executeTransaction: _executeTransaction } = await
|
|
135
|
+
const { transactionDetails, executeTransaction: _executeTransaction } = await chunkEZGHN6ZL_cjs.executeTransactions({
|
|
136
136
|
...restOptions,
|
|
137
137
|
routeId,
|
|
138
138
|
txs: msgsResponse?.txs,
|
|
@@ -144,7 +144,7 @@ var executeMultipleRoutes = async (options) => {
|
|
|
144
144
|
const txResult = await _executeTransaction(index2);
|
|
145
145
|
if (routeKey !== "mainRoute" || mergedMainAndSecondaryRoutes) {
|
|
146
146
|
const relatedRoutes = Object.entries(route).filter(([key]) => key !== "mainRoute").map(([key, route2]) => ({ route: route2, routeKey: key, status: "pending" }));
|
|
147
|
-
|
|
147
|
+
chunkKHJQE3DI_cjs.updateRouteDetails({
|
|
148
148
|
options: {
|
|
149
149
|
route: route[routeKey],
|
|
150
150
|
...restOptions
|
|
@@ -182,7 +182,7 @@ var executeMultipleRoutes = async (options) => {
|
|
|
182
182
|
}
|
|
183
183
|
await Promise.all(
|
|
184
184
|
Object.entries(msgsRecord).map(([routeKey, msgsResponse], index2) => {
|
|
185
|
-
return
|
|
185
|
+
return chunkKHJQE3DI_cjs.executeAndSubscribeToRouteStatus({
|
|
186
186
|
transactionDetails: transactionDetailsList[index2],
|
|
187
187
|
executeTransaction: executeTransactionList[index2],
|
|
188
188
|
routeId: msgsRecordIndexToRouteId[index2],
|
|
@@ -193,7 +193,7 @@ var executeMultipleRoutes = async (options) => {
|
|
|
193
193
|
onRouteStatusUpdated: (routeStatus) => {
|
|
194
194
|
const relatedRoutes = Object.entries(route).filter(([key]) => key !== "mainRoute").map(([key, route2]) => ({ route: route2, routeKey: key, status: routeStatus.status }));
|
|
195
195
|
if (routeKey !== "mainRoute") {
|
|
196
|
-
|
|
196
|
+
chunkKHJQE3DI_cjs.updateRouteDetails({
|
|
197
197
|
options: {
|
|
198
198
|
route: route[routeKey],
|
|
199
199
|
...restOptions
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunk4R6OCWRR_cjs = require('./chunk-4R6OCWRR.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunk5CB6SPCX_cjs = require('./chunk-5CB6SPCX.cjs');
|
|
5
5
|
var math = require('@cosmjs/math');
|
|
6
6
|
var stargate = require('@cosmjs/stargate');
|
|
7
7
|
|
|
8
8
|
var getRecommendedGasPrice = async (props) => {
|
|
9
|
-
const feeInfo = await
|
|
9
|
+
const feeInfo = await chunk5CB6SPCX_cjs.getFeeInfoForChain(props);
|
|
10
10
|
if (!feeInfo || !feeInfo.gasPrice) {
|
|
11
11
|
return void 0;
|
|
12
12
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunk3M7YYWGL_cjs = require('./chunk-3M7YYWGL.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkKSJ5QYMR_cjs = require('./chunk-KSJ5QYMR.cjs');
|
|
5
5
|
var chunkN4UW74AG_cjs = require('./chunk-N4UW74AG.cjs');
|
|
6
6
|
var stargate = require('@cosmjs/stargate');
|
|
7
7
|
var utils = require('@cosmjs/utils');
|
|
@@ -334,7 +334,7 @@ var getRpcEndpointForChain = async (chainId) => {
|
|
|
334
334
|
console.warn(
|
|
335
335
|
"Warning: You are using unreliable public endpoints. We strongly recommend overriding them via endpointOptions for use beyond development settings."
|
|
336
336
|
);
|
|
337
|
-
const chain =
|
|
337
|
+
const chain = chunkKSJ5QYMR_cjs.chains().find((chain2) => chain2.chainId === chainId);
|
|
338
338
|
if (!chain) {
|
|
339
339
|
throw new Error(`getRpcEndpointForChain: failed to find chain id '${chainId}' in registry`);
|
|
340
340
|
}
|
|
@@ -344,7 +344,7 @@ var getRpcEndpointForChain = async (chainId) => {
|
|
|
344
344
|
);
|
|
345
345
|
}
|
|
346
346
|
const endpoints = chain.apis?.rpc?.map((api) => api.address);
|
|
347
|
-
const endpoint = await
|
|
347
|
+
const endpoint = await chunkKSJ5QYMR_cjs.findFirstWorkingEndpoint(endpoints, "rpc");
|
|
348
348
|
if (!endpoint) {
|
|
349
349
|
throw new Error(
|
|
350
350
|
`getRpcEndpointForChain error: failed to find RPC endpoint for chain id '${chainId}'`
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var chunkKM2D7PJL_cjs = require('./chunk-KM2D7PJL.cjs');
|
|
4
4
|
var chunk4R6OCWRR_cjs = require('./chunk-4R6OCWRR.cjs');
|
|
5
|
-
var
|
|
5
|
+
var chunkRVXCF6AL_cjs = require('./chunk-RVXCF6AL.cjs');
|
|
6
6
|
var chunkN4UW74AG_cjs = require('./chunk-N4UW74AG.cjs');
|
|
7
7
|
var stargate = require('@cosmjs/stargate');
|
|
8
8
|
var math = require('@cosmjs/math');
|
|
@@ -35,7 +35,7 @@ var validateCosmosGasBalance = async ({
|
|
|
35
35
|
if (txIndex !== 0 && chainId === "noble-1") {
|
|
36
36
|
return "0";
|
|
37
37
|
}
|
|
38
|
-
const { stargateClient } = await
|
|
38
|
+
const { stargateClient } = await chunkRVXCF6AL_cjs.getSigningStargateClient({
|
|
39
39
|
chainId,
|
|
40
40
|
getOfflineSigner
|
|
41
41
|
});
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -2,21 +2,21 @@
|
|
|
2
2
|
|
|
3
3
|
var chunk23YF4LFI_cjs = require('./chunk-23YF4LFI.cjs');
|
|
4
4
|
var chunkFNB244QI_cjs = require('./chunk-FNB244QI.cjs');
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
require('./chunk-
|
|
8
|
-
var
|
|
9
|
-
var
|
|
5
|
+
var chunkNDSHB4I6_cjs = require('./chunk-NDSHB4I6.cjs');
|
|
6
|
+
var chunkN5V3YW5K_cjs = require('./chunk-N5V3YW5K.cjs');
|
|
7
|
+
require('./chunk-EZGHN6ZL.cjs');
|
|
8
|
+
var chunkKHJQE3DI_cjs = require('./chunk-KHJQE3DI.cjs');
|
|
9
|
+
var chunkV3FWWJG2_cjs = require('./chunk-V3FWWJG2.cjs');
|
|
10
10
|
var chunkKM2D7PJL_cjs = require('./chunk-KM2D7PJL.cjs');
|
|
11
11
|
require('./chunk-DWOE6N5S.cjs');
|
|
12
12
|
var chunkF3EB2AQG_cjs = require('./chunk-F3EB2AQG.cjs');
|
|
13
|
-
var
|
|
13
|
+
var chunkQZ2BGX6O_cjs = require('./chunk-QZ2BGX6O.cjs');
|
|
14
14
|
require('./chunk-4R6OCWRR.cjs');
|
|
15
|
-
var
|
|
15
|
+
var chunk5CB6SPCX_cjs = require('./chunk-5CB6SPCX.cjs');
|
|
16
16
|
var chunkKZOSEIWH_cjs = require('./chunk-KZOSEIWH.cjs');
|
|
17
|
-
var
|
|
17
|
+
var chunkRVXCF6AL_cjs = require('./chunk-RVXCF6AL.cjs');
|
|
18
18
|
require('./chunk-3M7YYWGL.cjs');
|
|
19
|
-
require('./chunk-
|
|
19
|
+
require('./chunk-KSJ5QYMR.cjs');
|
|
20
20
|
var chunkRCGCQD6T_cjs = require('./chunk-RCGCQD6T.cjs');
|
|
21
21
|
var chunkLHY62HPI_cjs = require('./chunk-LHY62HPI.cjs');
|
|
22
22
|
var chunkOZUCMWNE_cjs = require('./chunk-OZUCMWNE.cjs');
|
|
@@ -188,19 +188,19 @@ Object.defineProperty(exports, "waitForTransaction", {
|
|
|
188
188
|
});
|
|
189
189
|
Object.defineProperty(exports, "executeMultipleRoutes", {
|
|
190
190
|
enumerable: true,
|
|
191
|
-
get: function () { return
|
|
191
|
+
get: function () { return chunkNDSHB4I6_cjs.executeMultipleRoutes; }
|
|
192
192
|
});
|
|
193
193
|
Object.defineProperty(exports, "executeRoute", {
|
|
194
194
|
enumerable: true,
|
|
195
|
-
get: function () { return
|
|
195
|
+
get: function () { return chunkN5V3YW5K_cjs.executeRoute; }
|
|
196
196
|
});
|
|
197
197
|
Object.defineProperty(exports, "subscribeToRouteStatus", {
|
|
198
198
|
enumerable: true,
|
|
199
|
-
get: function () { return
|
|
199
|
+
get: function () { return chunkKHJQE3DI_cjs.subscribeToRouteStatus; }
|
|
200
200
|
});
|
|
201
201
|
Object.defineProperty(exports, "validateCosmosGasBalance", {
|
|
202
202
|
enumerable: true,
|
|
203
|
-
get: function () { return
|
|
203
|
+
get: function () { return chunkV3FWWJG2_cjs.validateCosmosGasBalance; }
|
|
204
204
|
});
|
|
205
205
|
Object.defineProperty(exports, "getCosmosGasAmountForMessage", {
|
|
206
206
|
enumerable: true,
|
|
@@ -212,11 +212,11 @@ Object.defineProperty(exports, "getEVMGasAmountForMessage", {
|
|
|
212
212
|
});
|
|
213
213
|
Object.defineProperty(exports, "getRecommendedGasPrice", {
|
|
214
214
|
enumerable: true,
|
|
215
|
-
get: function () { return
|
|
215
|
+
get: function () { return chunkQZ2BGX6O_cjs.getRecommendedGasPrice; }
|
|
216
216
|
});
|
|
217
217
|
Object.defineProperty(exports, "getFeeInfoForChain", {
|
|
218
218
|
enumerable: true,
|
|
219
|
-
get: function () { return
|
|
219
|
+
get: function () { return chunk5CB6SPCX_cjs.getFeeInfoForChain; }
|
|
220
220
|
});
|
|
221
221
|
Object.defineProperty(exports, "GAS_STATION_CHAIN_IDS", {
|
|
222
222
|
enumerable: true,
|
|
@@ -224,7 +224,7 @@ Object.defineProperty(exports, "GAS_STATION_CHAIN_IDS", {
|
|
|
224
224
|
});
|
|
225
225
|
Object.defineProperty(exports, "getSigningStargateClient", {
|
|
226
226
|
enumerable: true,
|
|
227
|
-
get: function () { return
|
|
227
|
+
get: function () { return chunkRVXCF6AL_cjs.getSigningStargateClient; }
|
|
228
228
|
});
|
|
229
229
|
Object.defineProperty(exports, "setApiOptions", {
|
|
230
230
|
enumerable: true,
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
5
|
-
require('../chunk-
|
|
6
|
-
require('../chunk-
|
|
3
|
+
var chunkNDSHB4I6_cjs = require('../chunk-NDSHB4I6.cjs');
|
|
4
|
+
require('../chunk-EZGHN6ZL.cjs');
|
|
5
|
+
require('../chunk-KHJQE3DI.cjs');
|
|
6
|
+
require('../chunk-V3FWWJG2.cjs');
|
|
7
7
|
require('../chunk-KM2D7PJL.cjs');
|
|
8
8
|
require('../chunk-DWOE6N5S.cjs');
|
|
9
9
|
require('../chunk-F3EB2AQG.cjs');
|
|
10
10
|
require('../chunk-4R6OCWRR.cjs');
|
|
11
11
|
require('../chunk-KZOSEIWH.cjs');
|
|
12
|
-
require('../chunk-
|
|
12
|
+
require('../chunk-RVXCF6AL.cjs');
|
|
13
13
|
require('../chunk-3M7YYWGL.cjs');
|
|
14
|
-
require('../chunk-
|
|
14
|
+
require('../chunk-KSJ5QYMR.cjs');
|
|
15
15
|
require('../chunk-OZUCMWNE.cjs');
|
|
16
16
|
require('../chunk-5HDKZVOL.cjs');
|
|
17
17
|
require('../chunk-LUVMRHAJ.cjs');
|
|
@@ -25,5 +25,5 @@ require('../chunk-IDDRJJO5.cjs');
|
|
|
25
25
|
|
|
26
26
|
Object.defineProperty(exports, "executeMultipleRoutes", {
|
|
27
27
|
enumerable: true,
|
|
28
|
-
get: function () { return
|
|
28
|
+
get: function () { return chunkNDSHB4I6_cjs.executeMultipleRoutes; }
|
|
29
29
|
});
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
5
|
-
require('../chunk-
|
|
6
|
-
require('../chunk-
|
|
3
|
+
var chunkN5V3YW5K_cjs = require('../chunk-N5V3YW5K.cjs');
|
|
4
|
+
require('../chunk-EZGHN6ZL.cjs');
|
|
5
|
+
require('../chunk-KHJQE3DI.cjs');
|
|
6
|
+
require('../chunk-V3FWWJG2.cjs');
|
|
7
7
|
require('../chunk-KM2D7PJL.cjs');
|
|
8
8
|
require('../chunk-DWOE6N5S.cjs');
|
|
9
9
|
require('../chunk-F3EB2AQG.cjs');
|
|
10
10
|
require('../chunk-4R6OCWRR.cjs');
|
|
11
11
|
require('../chunk-KZOSEIWH.cjs');
|
|
12
|
-
require('../chunk-
|
|
12
|
+
require('../chunk-RVXCF6AL.cjs');
|
|
13
13
|
require('../chunk-3M7YYWGL.cjs');
|
|
14
|
-
require('../chunk-
|
|
14
|
+
require('../chunk-KSJ5QYMR.cjs');
|
|
15
15
|
require('../chunk-OZUCMWNE.cjs');
|
|
16
16
|
require('../chunk-5HDKZVOL.cjs');
|
|
17
17
|
require('../chunk-LUVMRHAJ.cjs');
|
|
@@ -25,5 +25,5 @@ require('../chunk-IDDRJJO5.cjs');
|
|
|
25
25
|
|
|
26
26
|
Object.defineProperty(exports, "executeRoute", {
|
|
27
27
|
enumerable: true,
|
|
28
|
-
get: function () { return
|
|
28
|
+
get: function () { return chunkN5V3YW5K_cjs.executeRoute; }
|
|
29
29
|
});
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk5CB6SPCX_cjs = require('../chunk-5CB6SPCX.cjs');
|
|
4
4
|
require('../chunk-KZOSEIWH.cjs');
|
|
5
|
-
require('../chunk-
|
|
5
|
+
require('../chunk-KSJ5QYMR.cjs');
|
|
6
6
|
require('../chunk-N4UW74AG.cjs');
|
|
7
7
|
require('../chunk-ERGJBZUC.cjs');
|
|
8
8
|
require('../chunk-IDDRJJO5.cjs');
|
|
@@ -11,5 +11,5 @@ require('../chunk-IDDRJJO5.cjs');
|
|
|
11
11
|
|
|
12
12
|
Object.defineProperty(exports, "getFeeInfoForChain", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunk5CB6SPCX_cjs.getFeeInfoForChain; }
|
|
15
15
|
});
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkQZ2BGX6O_cjs = require('../chunk-QZ2BGX6O.cjs');
|
|
4
4
|
require('../chunk-4R6OCWRR.cjs');
|
|
5
|
-
require('../chunk-
|
|
5
|
+
require('../chunk-5CB6SPCX.cjs');
|
|
6
6
|
require('../chunk-KZOSEIWH.cjs');
|
|
7
|
-
require('../chunk-
|
|
7
|
+
require('../chunk-KSJ5QYMR.cjs');
|
|
8
8
|
require('../chunk-N4UW74AG.cjs');
|
|
9
9
|
require('../chunk-ERGJBZUC.cjs');
|
|
10
10
|
require('../chunk-IDDRJJO5.cjs');
|
|
@@ -13,5 +13,5 @@ require('../chunk-IDDRJJO5.cjs');
|
|
|
13
13
|
|
|
14
14
|
Object.defineProperty(exports, "getRecommendedGasPrice", {
|
|
15
15
|
enumerable: true,
|
|
16
|
-
get: function () { return
|
|
16
|
+
get: function () { return chunkQZ2BGX6O_cjs.getRecommendedGasPrice; }
|
|
17
17
|
});
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkRVXCF6AL_cjs = require('../chunk-RVXCF6AL.cjs');
|
|
4
4
|
require('../chunk-3M7YYWGL.cjs');
|
|
5
|
-
require('../chunk-
|
|
5
|
+
require('../chunk-KSJ5QYMR.cjs');
|
|
6
6
|
require('../chunk-N4UW74AG.cjs');
|
|
7
7
|
require('../chunk-ERGJBZUC.cjs');
|
|
8
8
|
require('../chunk-IDDRJJO5.cjs');
|
|
@@ -11,5 +11,5 @@ require('../chunk-IDDRJJO5.cjs');
|
|
|
11
11
|
|
|
12
12
|
Object.defineProperty(exports, "getSigningStargateClient", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkRVXCF6AL_cjs.getSigningStargateClient; }
|
|
15
15
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkKHJQE3DI_cjs = require('../chunk-KHJQE3DI.cjs');
|
|
4
4
|
require('../chunk-LUVMRHAJ.cjs');
|
|
5
5
|
require('../chunk-QPM7H2YL.cjs');
|
|
6
6
|
require('../chunk-ERGJBZUC.cjs');
|
|
@@ -10,17 +10,17 @@ require('../chunk-IDDRJJO5.cjs');
|
|
|
10
10
|
|
|
11
11
|
Object.defineProperty(exports, "executeAndSubscribeToRouteStatus", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkKHJQE3DI_cjs.executeAndSubscribeToRouteStatus; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "getTransactionStatus", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkKHJQE3DI_cjs.getTransactionStatus; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "subscribeToRouteStatus", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkKHJQE3DI_cjs.subscribeToRouteStatus; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "updateRouteDetails", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkKHJQE3DI_cjs.updateRouteDetails; }
|
|
26
26
|
});
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkV3FWWJG2_cjs = require('../chunk-V3FWWJG2.cjs');
|
|
4
4
|
require('../chunk-KM2D7PJL.cjs');
|
|
5
5
|
require('../chunk-DWOE6N5S.cjs');
|
|
6
6
|
require('../chunk-4R6OCWRR.cjs');
|
|
7
|
-
require('../chunk-
|
|
7
|
+
require('../chunk-RVXCF6AL.cjs');
|
|
8
8
|
require('../chunk-3M7YYWGL.cjs');
|
|
9
|
-
require('../chunk-
|
|
9
|
+
require('../chunk-KSJ5QYMR.cjs');
|
|
10
10
|
require('../chunk-N4UW74AG.cjs');
|
|
11
11
|
require('../chunk-ERGJBZUC.cjs');
|
|
12
12
|
require('../chunk-IDDRJJO5.cjs');
|
|
@@ -15,5 +15,5 @@ require('../chunk-IDDRJJO5.cjs');
|
|
|
15
15
|
|
|
16
16
|
Object.defineProperty(exports, "validateCosmosGasBalance", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkV3FWWJG2_cjs.validateCosmosGasBalance; }
|
|
19
19
|
});
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { S as SkipApiOptions } from '../apiState-DwZhwVul.js';
|
|
2
|
-
import {
|
|
2
|
+
import { bE as ContentType, J as BridgeType } from '../swaggerTypes-Bh6hu5Q-.js';
|
|
3
3
|
|
|
4
4
|
declare const bridges: (options?: ({
|
|
5
5
|
cache?: RequestCache | undefined;
|
|
6
6
|
credentials?: RequestCredentials | undefined;
|
|
7
|
-
headers?:
|
|
7
|
+
headers?: {
|
|
8
8
|
[x: string]: string;
|
|
9
|
-
} | {
|
|
9
|
+
} | string[][] | {
|
|
10
10
|
append: {};
|
|
11
11
|
delete: {};
|
|
12
12
|
get: {};
|
|
@@ -1,10 +1,19 @@
|
|
|
1
|
-
import { c as Asset } from '../swaggerTypes-DDwqIjap.js';
|
|
2
1
|
import { S as SkipApiOptions } from '../apiState-DwZhwVul.js';
|
|
2
|
+
import { ao as Reason, c as Asset } from '../swaggerTypes-Bh6hu5Q-.js';
|
|
3
3
|
|
|
4
4
|
declare const assetsFromSource: (options?: ({
|
|
5
5
|
sourceAssetDenom: string;
|
|
6
6
|
sourceAssetChainId: string;
|
|
7
7
|
allowMultiTx?: boolean | undefined;
|
|
8
|
+
recommendationReason?: Reason | undefined;
|
|
9
|
+
includeSwaps?: boolean | undefined;
|
|
10
|
+
swapVenues?: {
|
|
11
|
+
chainId?: string | undefined;
|
|
12
|
+
name?: string | undefined;
|
|
13
|
+
logoUri?: string | undefined;
|
|
14
|
+
}[] | undefined;
|
|
15
|
+
nativeOnly?: boolean | undefined;
|
|
16
|
+
groupBy?: string | undefined;
|
|
8
17
|
includeCw20Assets?: boolean | undefined;
|
|
9
18
|
} & SkipApiOptions & {
|
|
10
19
|
abortDuplicateRequests?: boolean | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { S as SkipApiOptions } from '../apiState-DwZhwVul.js';
|
|
2
|
-
import { A as ApiRequest, a as ApiResponse } from '../generateApi-
|
|
3
|
-
import '../swaggerTypes-
|
|
2
|
+
import { A as ApiRequest, a as ApiResponse } from '../generateApi-CwM4Ca30.js';
|
|
3
|
+
import '../swaggerTypes-Bh6hu5Q-.js';
|
|
4
4
|
|
|
5
5
|
declare const balances: (options?: ({
|
|
6
6
|
chains?: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { b3 as FeeType, J as BridgeType, b4 as FeeBehavior } from '../swaggerTypes-
|
|
1
|
+
import { b3 as FeeType, J as BridgeType, b4 as FeeBehavior } from '../swaggerTypes-Bh6hu5Q-.js';
|
|
2
2
|
import { S as SkipApiOptions } from '../apiState-DwZhwVul.js';
|
|
3
|
-
import { A as ApiRequest, a as ApiResponse } from '../generateApi-
|
|
3
|
+
import { A as ApiRequest, a as ApiResponse } from '../generateApi-CwM4Ca30.js';
|
|
4
4
|
|
|
5
5
|
declare const messages: (request: MessagesRequest) => Promise<{
|
|
6
6
|
msgs?: ({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { S as SkipApiOptions } from '../apiState-DwZhwVul.js';
|
|
2
|
-
import { f as AutopilotAction, J as BridgeType, ap as RoutePriceWarningType, b3 as FeeType, b4 as FeeBehavior } from '../swaggerTypes-
|
|
2
|
+
import { f as AutopilotAction, J as BridgeType, ap as RoutePriceWarningType, b3 as FeeType, b4 as FeeBehavior } from '../swaggerTypes-Bh6hu5Q-.js';
|
|
3
3
|
|
|
4
4
|
declare const messagesDirect: (options?: ({
|
|
5
5
|
sourceAssetDenom?: string | undefined;
|
|
@@ -275,6 +275,8 @@ declare const messagesDirect: (options?: ({
|
|
|
275
275
|
bridgeId?: BridgeType | undefined;
|
|
276
276
|
denomIn?: string | undefined;
|
|
277
277
|
denomOut?: string | undefined;
|
|
278
|
+
sourceDomain?: string | undefined;
|
|
279
|
+
destinationDomain?: string | undefined;
|
|
278
280
|
fee?: {
|
|
279
281
|
feeAsset: {
|
|
280
282
|
chainId: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { J as BridgeType, ap as RoutePriceWarningType, b3 as FeeType, b4 as FeeBehavior } from '../swaggerTypes-
|
|
1
|
+
import { J as BridgeType, ap as RoutePriceWarningType, b3 as FeeType, b4 as FeeBehavior } from '../swaggerTypes-Bh6hu5Q-.js';
|
|
2
2
|
import { S as SkipApiOptions } from '../apiState-DwZhwVul.js';
|
|
3
|
-
import { A as ApiRequest } from '../generateApi-
|
|
3
|
+
import { A as ApiRequest } from '../generateApi-CwM4Ca30.js';
|
|
4
4
|
|
|
5
5
|
declare const route: (request: RouteRequest) => Promise<{
|
|
6
6
|
amountIn: string;
|
|
@@ -163,6 +163,8 @@ declare const route: (request: RouteRequest) => Promise<{
|
|
|
163
163
|
bridgeId?: BridgeType | undefined;
|
|
164
164
|
denomIn?: string | undefined;
|
|
165
165
|
denomOut?: string | undefined;
|
|
166
|
+
sourceDomain?: string | undefined;
|
|
167
|
+
destinationDomain?: string | undefined;
|
|
166
168
|
fee?: {
|
|
167
169
|
feeAsset: {
|
|
168
170
|
chainId: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { S as SkipApiOptions } from '../apiState-DwZhwVul.js';
|
|
2
|
-
import { A as ApiRequest, a as ApiResponse } from '../generateApi-
|
|
3
|
-
import '../swaggerTypes-
|
|
2
|
+
import { A as ApiRequest, a as ApiResponse } from '../generateApi-CwM4Ca30.js';
|
|
3
|
+
import '../swaggerTypes-Bh6hu5Q-.js';
|
|
4
4
|
|
|
5
5
|
declare const submitTransaction: (options?: ({
|
|
6
6
|
tx?: string | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { S as SkipApiOptions } from '../apiState-DwZhwVul.js';
|
|
2
|
-
import { A as ApiRequest, P as PollingProps } from '../generateApi-
|
|
3
|
-
import '../swaggerTypes-
|
|
2
|
+
import { A as ApiRequest, P as PollingProps } from '../generateApi-CwM4Ca30.js';
|
|
3
|
+
import '../swaggerTypes-Bh6hu5Q-.js';
|
|
4
4
|
|
|
5
5
|
type TrackTxRequest = ApiRequest<"status"> & TrackTxPollingProps & SkipApiOptions;
|
|
6
6
|
type TrackTxPollingProps = Omit<PollingProps<"status">, "isSuccess" | "onError" | "onSuccess">;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { av as StatusErrorType, aJ as TransactionState, al as PacketErrorType, aS as TransferState, k as AxelarTransferState, O as ContractCallWithTokenErrorType, as as SendTokenErrorType, l as AxelarTransferType, p as CCTPTransferState, a8 as HyperlaneTransferState, aO as OPInitTransferState, s as StargateTransferState, w as GoFastTransferState, aP as LayerZeroTransferState } from '../swaggerTypes-
|
|
2
|
-
import { a as ApiResponse } from '../generateApi-
|
|
1
|
+
import { av as StatusErrorType, aJ as TransactionState, al as PacketErrorType, aS as TransferState, k as AxelarTransferState, O as ContractCallWithTokenErrorType, as as SendTokenErrorType, l as AxelarTransferType, p as CCTPTransferState, a8 as HyperlaneTransferState, aO as OPInitTransferState, s as StargateTransferState, w as GoFastTransferState, aP as LayerZeroTransferState } from '../swaggerTypes-Bh6hu5Q-.js';
|
|
2
|
+
import { a as ApiResponse } from '../generateApi-CwM4Ca30.js';
|
|
3
3
|
import { S as SkipApiOptions } from '../apiState-DwZhwVul.js';
|
|
4
4
|
|
|
5
5
|
declare const transactionStatus: (params?: ({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TxStatusResponse } from './api/postTransactionStatus.js';
|
|
2
|
-
import { aS as TransferState, k as AxelarTransferState, p as CCTPTransferState, a8 as HyperlaneTransferState, aO as OPInitTransferState, w as GoFastTransferState, s as StargateTransferState, aP as LayerZeroTransferState,
|
|
3
|
-
import { A as ApiRequest } from './generateApi-
|
|
4
|
-
import { S as SignerGetters, b as GasOptions, B as BaseSettings, U as UserAddress, T as TxResult } from './client-types-
|
|
2
|
+
import { aS as TransferState, k as AxelarTransferState, p as CCTPTransferState, a8 as HyperlaneTransferState, aO as OPInitTransferState, w as GoFastTransferState, s as StargateTransferState, aP as LayerZeroTransferState, bo as RouteResponse, W as CosmosMsg, an as PostHandler, aT as TransferAssetRelease, aJ as TransactionState, aq as Route, aU as TransferStatus, T as Erc20Approval } from './swaggerTypes-Bh6hu5Q-.js';
|
|
3
|
+
import { A as ApiRequest } from './generateApi-CwM4Ca30.js';
|
|
4
|
+
import { S as SignerGetters, b as GasOptions, B as BaseSettings, U as UserAddress, T as TxResult } from './client-types-BSZasIDd.js';
|
|
5
5
|
|
|
6
6
|
type TransferEventStatus = "unconfirmed" | "signing" | "pending" | "completed" | "failed" | "approving" | "incomplete";
|
|
7
7
|
type ClientTransferEvent = {
|
|
@@ -71,14 +71,12 @@ type executeAndSubscribeToRouteStatusProps = {
|
|
|
71
71
|
trackTxPollingOptions?: ExecuteRouteOptions["trackTxPollingOptions"];
|
|
72
72
|
onRouteStatusUpdated?: ExecuteRouteOptions["onRouteStatusUpdated"];
|
|
73
73
|
executeTransaction?: (index: number) => Promise<TxResult>;
|
|
74
|
-
onTransactionTracked?: ExecuteRouteOptions["onTransactionTracked"];
|
|
75
|
-
onTransactionCompleted?: ExecuteRouteOptions["onTransactionCompleted"];
|
|
76
74
|
options?: ExecuteRouteOptions;
|
|
77
75
|
routeId?: string;
|
|
78
76
|
isCancelled?: () => boolean;
|
|
79
77
|
};
|
|
80
78
|
declare const subscribeToRouteStatus: (props: subscribeToRouteStatusProps) => () => void;
|
|
81
|
-
declare const executeAndSubscribeToRouteStatus: ({ transactionDetails, executeTransaction, trackTxPollingOptions,
|
|
79
|
+
declare const executeAndSubscribeToRouteStatus: ({ transactionDetails, executeTransaction, trackTxPollingOptions, routeDetails, onRouteStatusUpdated, options, routeId, isCancelled, }: executeAndSubscribeToRouteStatusProps) => Promise<void>;
|
|
82
80
|
type updateRouteDetailsProps = {
|
|
83
81
|
routeDetails?: RouteDetails;
|
|
84
82
|
transactionDetails?: TransactionDetails[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DEFAULT_GAS_DENOM_OVERRIDES } from './chunk-SWYON2RG.js';
|
|
2
|
-
import { chains } from './chunk-
|
|
2
|
+
import { chains } from './chunk-RHGDUD76.js';
|
|
3
3
|
import { ClientState } from './chunk-ZOUYAZU6.js';
|
|
4
4
|
|
|
5
5
|
// src/private-functions/getDefaultGasTokenForChain.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { createValidAddressList, executeTransactions } from './chunk-
|
|
2
|
-
import { updateRouteDetails, executeAndSubscribeToRouteStatus } from './chunk-
|
|
1
|
+
import { createValidAddressList, executeTransactions } from './chunk-W5EGS2G4.js';
|
|
2
|
+
import { updateRouteDetails, executeAndSubscribeToRouteStatus } from './chunk-XYYXRVFN.js';
|
|
3
3
|
import { messages } from './chunk-AND7HVIU.js';
|
|
4
4
|
import { ApiState } from './chunk-A6KSECAH.js';
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BaseAccount as BaseAccount$1, isSet, bytesFromBase64, base64FromBytes } from './chunk-QO2CYYF5.js';
|
|
2
|
-
import { chains, findFirstWorkingEndpoint } from './chunk-
|
|
2
|
+
import { chains, findFirstWorkingEndpoint } from './chunk-RHGDUD76.js';
|
|
3
3
|
import { ClientState } from './chunk-ZOUYAZU6.js';
|
|
4
4
|
import { accountFromAny, SigningStargateClient } from '@cosmjs/stargate';
|
|
5
5
|
import { assertDefinedAndNotNull } from '@cosmjs/utils';
|