@skip-go/client 1.5.1 → 1.5.2
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/api/getAssets.cjs +4 -4
- package/dist/cjs/api/getAssetsBetweenChains.cjs +3 -3
- package/dist/cjs/api/getBridges.cjs +3 -3
- package/dist/cjs/api/getChains.cjs +3 -3
- package/dist/cjs/api/getVenues.cjs +3 -3
- package/dist/cjs/api/postAssetsFromSource.cjs +4 -4
- package/dist/cjs/api/postBalances.cjs +3 -3
- package/dist/cjs/api/postIbcOriginAssets.cjs +3 -3
- package/dist/cjs/api/postMessages.cjs +3 -3
- package/dist/cjs/api/postMessagesDirect.cjs +3 -3
- package/dist/cjs/api/postRecommendAssets.cjs +3 -3
- package/dist/cjs/api/postRoute.cjs +3 -3
- package/dist/cjs/api/postSubmitTransaction.cjs +3 -3
- package/dist/cjs/api/postTrackTransaction.cjs +3 -3
- package/dist/cjs/api/postTransactionStatus.cjs +3 -3
- package/dist/cjs/{chunk-LUVMRHAJ.cjs → chunk-2MAYN27U.cjs} +2 -2
- package/dist/cjs/{chunk-JBKNEFXB.cjs → chunk-3IWLZ562.cjs} +3 -3
- package/dist/cjs/{chunk-N4UW74AG.cjs → chunk-5HZLL5KD.cjs} +4 -4
- package/dist/cjs/{chunk-RCGCQD6T.cjs → chunk-5RP766TT.cjs} +8 -6
- package/dist/cjs/{chunk-RVXCF6AL.cjs → chunk-66VIHDGM.cjs} +10 -10
- package/dist/cjs/{chunk-KHJQE3DI.cjs → chunk-7D433NQ5.cjs} +6 -6
- package/dist/cjs/{chunk-X5AJHZ2J.cjs → chunk-AJYZ5GAD.cjs} +2 -2
- package/dist/cjs/{chunk-NDSHB4I6.cjs → chunk-D57TNRV3.cjs} +14 -14
- package/dist/cjs/{chunk-5HDKZVOL.cjs → chunk-EI4ZWAEU.cjs} +2 -2
- package/dist/cjs/{chunk-5CB6SPCX.cjs → chunk-GO4BJ6G2.cjs} +2 -2
- package/dist/cjs/{chunk-EZGHN6ZL.cjs → chunk-HEYFLFKD.cjs} +52 -52
- package/dist/cjs/{chunk-A26H4FVN.cjs → chunk-JUKPQLLQ.cjs} +4 -4
- package/dist/cjs/{chunk-5AYPH3ZR.cjs → chunk-KPV3PGBG.cjs} +2 -2
- package/dist/cjs/{chunk-V3FWWJG2.cjs → chunk-LARLMUFZ.cjs} +6 -6
- package/dist/cjs/{chunk-QPM7H2YL.cjs → chunk-MFJ6S6TL.cjs} +2 -2
- package/dist/cjs/{chunk-FNB244QI.cjs → chunk-MHVCR4QO.cjs} +6 -6
- package/dist/cjs/{chunk-ERGJBZUC.cjs → chunk-MMGVGXA5.cjs} +5 -17
- package/dist/cjs/{chunk-AXYRULAI.cjs → chunk-N2RG3CRN.cjs} +2 -2
- package/dist/cjs/{chunk-N5V3YW5K.cjs → chunk-Q33F7U2Y.cjs} +10 -10
- package/dist/cjs/{chunk-ZBPDDVQ2.cjs → chunk-R3TSJPKH.cjs} +2 -2
- package/dist/cjs/{chunk-QZ2BGX6O.cjs → chunk-ULD54VE4.cjs} +2 -2
- package/dist/cjs/{chunk-23YF4LFI.cjs → chunk-VMWCRZVT.cjs} +10 -7
- package/dist/cjs/{chunk-EJMC4JXF.cjs → chunk-XDKONUY6.cjs} +2 -2
- package/dist/cjs/{chunk-LHY62HPI.cjs → chunk-XEBVLUYW.cjs} +2 -2
- package/dist/cjs/{chunk-OZUCMWNE.cjs → chunk-XPQRSO4J.cjs} +2 -2
- package/dist/cjs/index.cjs +50 -50
- package/dist/cjs/public-functions/executeMultipleRoutes.cjs +13 -13
- package/dist/cjs/public-functions/executeRoute.cjs +13 -13
- package/dist/cjs/public-functions/getFeeInfoForChain.cjs +4 -4
- package/dist/cjs/public-functions/getRecommendedGasPrice.cjs +5 -5
- package/dist/cjs/public-functions/getSigningStargateClient.cjs +4 -4
- package/dist/cjs/public-functions/setApiOptions.cjs +3 -3
- package/dist/cjs/public-functions/setClientOptions.cjs +4 -4
- package/dist/cjs/public-functions/subscribeToRouteStatus.cjs +8 -8
- package/dist/cjs/public-functions/validateCosmosGasBalance.cjs +5 -5
- package/dist/cjs/public-functions/waitForTransaction.cjs +5 -5
- package/dist/esm/api/getAssets.d.ts +1 -1
- package/dist/esm/api/getAssets.js +2 -2
- package/dist/esm/api/getAssetsBetweenChains.d.ts +1 -1
- package/dist/esm/api/getAssetsBetweenChains.js +2 -2
- package/dist/esm/api/getBridges.d.ts +1 -1
- package/dist/esm/api/getBridges.js +2 -2
- package/dist/esm/api/getChains.d.ts +1 -1
- package/dist/esm/api/getChains.js +2 -2
- package/dist/esm/api/getVenues.d.ts +1 -1
- package/dist/esm/api/getVenues.js +2 -2
- package/dist/esm/api/postAssetsFromSource.d.ts +1 -1
- package/dist/esm/api/postAssetsFromSource.js +3 -3
- package/dist/esm/api/postBalances.d.ts +1 -1
- package/dist/esm/api/postBalances.js +2 -2
- package/dist/esm/api/postIbcOriginAssets.d.ts +1 -1
- package/dist/esm/api/postIbcOriginAssets.js +2 -2
- package/dist/esm/api/postMessages.d.ts +1 -1
- package/dist/esm/api/postMessages.js +2 -2
- package/dist/esm/api/postMessagesDirect.d.ts +1 -1
- package/dist/esm/api/postMessagesDirect.js +2 -2
- package/dist/esm/api/postRecommendAssets.d.ts +1 -1
- package/dist/esm/api/postRecommendAssets.js +2 -2
- package/dist/esm/api/postRoute.d.ts +1 -1
- package/dist/esm/api/postRoute.js +2 -2
- package/dist/esm/api/postSubmitTransaction.d.ts +1 -1
- package/dist/esm/api/postSubmitTransaction.js +2 -2
- package/dist/esm/api/postTrackTransaction.d.ts +1 -1
- package/dist/esm/api/postTrackTransaction.js +2 -2
- package/dist/esm/api/postTransactionStatus.d.ts +1 -1
- package/dist/esm/api/postTransactionStatus.js +2 -2
- package/dist/esm/{apiState-DwZhwVul.d.ts → apiState-1VvikVK-.d.ts} +1 -0
- package/dist/esm/{chunk-ZOUYAZU6.js → chunk-263RYJUL.js} +1 -1
- package/dist/esm/{chunk-AND7HVIU.js → chunk-45B6E7AT.js} +1 -1
- package/dist/esm/{chunk-FVQFGEL2.js → chunk-4YTLUDRU.js} +5 -5
- package/dist/esm/{chunk-7X4ERB3R.js → chunk-6HKZYODA.js} +1 -1
- package/dist/esm/{chunk-QIS6ILPS.js → chunk-7WXPBTSR.js} +3 -3
- package/dist/esm/{chunk-UI3SIFZN.js → chunk-A35RPDUV.js} +1 -1
- package/dist/esm/{chunk-VZGOU6MB.js → chunk-A4MFVNZO.js} +2 -2
- package/dist/esm/{chunk-S4RO2LHD.js → chunk-AGHQ7SIE.js} +1 -1
- package/dist/esm/{chunk-3XOGEVJL.js → chunk-B36HVX2L.js} +1 -1
- package/dist/esm/{chunk-3J5IMMMB.js → chunk-BNMWBXN3.js} +1 -1
- package/dist/esm/{chunk-562J5DCB.js → chunk-CP55HI6R.js} +4 -4
- package/dist/esm/{chunk-2DD5F6PK.js → chunk-DQXGZGNJ.js} +1 -1
- package/dist/esm/{chunk-FH2YHZVV.js → chunk-EJZGYHGH.js} +5 -3
- package/dist/esm/{chunk-BZDVQMHK.js → chunk-GU3UHER5.js} +1 -1
- package/dist/esm/{chunk-52PEBJRQ.js → chunk-H2HTF2UF.js} +1 -1
- package/dist/esm/{chunk-Y2YCODZK.js → chunk-HPA2XUA3.js} +1 -1
- package/dist/esm/{chunk-W5EGS2G4.js → chunk-JQOJIEZA.js} +7 -7
- package/dist/esm/{chunk-APRMN34M.js → chunk-MFHZBJGQ.js} +1 -1
- package/dist/esm/{chunk-LHNGF5J2.js → chunk-RXZJUE4K.js} +2 -2
- package/dist/esm/{chunk-OTS5KO43.js → chunk-TLVHKYQ3.js} +1 -1
- package/dist/esm/{chunk-ZI3SYUQH.js → chunk-VG3G5QHN.js} +1 -1
- package/dist/esm/{chunk-JQ4F4WBG.js → chunk-W5AA7QOQ.js} +1 -1
- package/dist/esm/{chunk-XYYXRVFN.js → chunk-WSAZDCXR.js} +3 -3
- package/dist/esm/{chunk-A6KSECAH.js → chunk-X3PQKUOS.js} +5 -17
- package/dist/esm/{chunk-WBZVMPPV.js → chunk-Z2HSHJLW.js} +6 -3
- package/dist/esm/index.d.ts +2 -2
- package/dist/esm/index.js +25 -25
- package/dist/esm/public-functions/executeMultipleRoutes.d.ts +1 -1
- package/dist/esm/public-functions/executeMultipleRoutes.js +12 -12
- package/dist/esm/public-functions/executeRoute.d.ts +1 -1
- package/dist/esm/public-functions/executeRoute.js +12 -12
- package/dist/esm/public-functions/getEvmGasAmountForMessage.d.ts +1 -1
- package/dist/esm/public-functions/getFeeInfoForChain.d.ts +1 -1
- package/dist/esm/public-functions/getFeeInfoForChain.js +3 -3
- package/dist/esm/public-functions/getRecommendedGasPrice.d.ts +1 -1
- package/dist/esm/public-functions/getRecommendedGasPrice.js +4 -4
- package/dist/esm/public-functions/getSigningStargateClient.js +3 -3
- package/dist/esm/public-functions/setApiOptions.d.ts +2 -2
- package/dist/esm/public-functions/setApiOptions.js +2 -2
- package/dist/esm/public-functions/setClientOptions.d.ts +2 -2
- package/dist/esm/public-functions/setClientOptions.js +3 -3
- package/dist/esm/public-functions/subscribeToRouteStatus.d.ts +1 -1
- package/dist/esm/public-functions/subscribeToRouteStatus.js +4 -4
- package/dist/esm/public-functions/validateCosmosGasBalance.d.ts +1 -1
- package/dist/esm/public-functions/validateCosmosGasBalance.js +4 -4
- package/dist/esm/public-functions/waitForTransaction.d.ts +1 -1
- package/dist/esm/public-functions/waitForTransaction.js +4 -4
- package/dist/esm/{setClientOptions-0DYCj_A5.d.ts → setClientOptions-CrXIODm0.d.ts} +1 -1
- package/package.json +1 -1
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunk7D433NQ5_cjs = require('./chunk-7D433NQ5.cjs');
|
|
4
|
+
var chunkLARLMUFZ_cjs = require('./chunk-LARLMUFZ.cjs');
|
|
5
5
|
var chunkKM2D7PJL_cjs = require('./chunk-KM2D7PJL.cjs');
|
|
6
6
|
var chunkF3EB2AQG_cjs = require('./chunk-F3EB2AQG.cjs');
|
|
7
7
|
var chunk4R6OCWRR_cjs = require('./chunk-4R6OCWRR.cjs');
|
|
8
8
|
var chunkKZOSEIWH_cjs = require('./chunk-KZOSEIWH.cjs');
|
|
9
|
-
var
|
|
9
|
+
var chunk66VIHDGM_cjs = require('./chunk-66VIHDGM.cjs');
|
|
10
10
|
var chunkKSJ5QYMR_cjs = require('./chunk-KSJ5QYMR.cjs');
|
|
11
|
-
var
|
|
12
|
-
var
|
|
13
|
-
var
|
|
14
|
-
var
|
|
11
|
+
var chunkEI4ZWAEU_cjs = require('./chunk-EI4ZWAEU.cjs');
|
|
12
|
+
var chunkKPV3PGBG_cjs = require('./chunk-KPV3PGBG.cjs');
|
|
13
|
+
var chunk5HZLL5KD_cjs = require('./chunk-5HZLL5KD.cjs');
|
|
14
|
+
var chunkMMGVGXA5_cjs = require('./chunk-MMGVGXA5.cjs');
|
|
15
15
|
var stargate = require('@cosmjs/stargate');
|
|
16
16
|
var tx_js = require('cosmjs-types/cosmos/tx/v1beta1/tx.js');
|
|
17
17
|
var protoSigning = require('@cosmjs/proto-signing');
|
|
@@ -27,11 +27,11 @@ var bech32 = require('bech32');
|
|
|
27
27
|
|
|
28
28
|
// src/private-functions/getRestEndpointForChain.ts
|
|
29
29
|
var getRestEndpointForChain = async (chainId) => {
|
|
30
|
-
if (
|
|
31
|
-
return
|
|
30
|
+
if (chunk5HZLL5KD_cjs.ClientState.endpointOptions.getRestEndpointForChain) {
|
|
31
|
+
return chunk5HZLL5KD_cjs.ClientState.endpointOptions.getRestEndpointForChain(chainId);
|
|
32
32
|
}
|
|
33
|
-
if (
|
|
34
|
-
const endpointOptions =
|
|
33
|
+
if (chunk5HZLL5KD_cjs.ClientState.endpointOptions.endpoints && chunk5HZLL5KD_cjs.ClientState.endpointOptions.endpoints[chainId]) {
|
|
34
|
+
const endpointOptions = chunk5HZLL5KD_cjs.ClientState.endpointOptions.endpoints[chainId];
|
|
35
35
|
if (endpointOptions?.rest) {
|
|
36
36
|
return endpointOptions.rest;
|
|
37
37
|
}
|
|
@@ -62,9 +62,9 @@ var getAccountNumberAndSequence = async (address, chainId) => {
|
|
|
62
62
|
if (chainId.includes("dymension")) {
|
|
63
63
|
return getAccountNumberAndSequenceFromDymension(address, chainId);
|
|
64
64
|
}
|
|
65
|
-
const endpoint = await
|
|
66
|
-
const client =
|
|
67
|
-
accountParser:
|
|
65
|
+
const endpoint = await chunk66VIHDGM_cjs.getRpcEndpointForChain(chainId);
|
|
66
|
+
const client = chunk5HZLL5KD_cjs.ClientState.signingStargateClientByChainId[chainId] ?? await stargate.StargateClient.connect(endpoint, {
|
|
67
|
+
accountParser: chunk66VIHDGM_cjs.accountParser
|
|
68
68
|
});
|
|
69
69
|
const account = await client.getAccount(address);
|
|
70
70
|
if (!account) {
|
|
@@ -90,7 +90,7 @@ var getAccountNumberAndSequenceFromDymension = async (address, chainId) => {
|
|
|
90
90
|
throw new Error(`Failed to fetch account data: ${res.statusText}`);
|
|
91
91
|
}
|
|
92
92
|
const jsonResponse = await res.json();
|
|
93
|
-
const response =
|
|
93
|
+
const response = chunkMMGVGXA5_cjs.toCamel(jsonResponse);
|
|
94
94
|
let sequence = 0;
|
|
95
95
|
let accountNumber = 0;
|
|
96
96
|
if (response.account.baseAccount) {
|
|
@@ -180,7 +180,7 @@ var signCosmosMessageDirect = async (options) => {
|
|
|
180
180
|
messages
|
|
181
181
|
}
|
|
182
182
|
};
|
|
183
|
-
const txBodyBytes =
|
|
183
|
+
const txBodyBytes = chunk5HZLL5KD_cjs.ClientState.registry.encode(txBodyEncodeObject);
|
|
184
184
|
const gasLimit = math.Int53.fromString(fee.gas).toNumber();
|
|
185
185
|
const pubkeyAny = makePubkeyAnyFromAccount(accountFromSigner, chainId);
|
|
186
186
|
const authInfoBytes = protoSigning.makeAuthInfoBytes(
|
|
@@ -220,7 +220,7 @@ var signCosmosMessageAmino = async (options) => {
|
|
|
220
220
|
(cosmosMsg) => chunkKM2D7PJL_cjs.getEncodeObjectFromCosmosMessage(cosmosMsg)
|
|
221
221
|
);
|
|
222
222
|
const signMode = signing_js.SignMode.SIGN_MODE_LEGACY_AMINO_JSON;
|
|
223
|
-
const msgs = messages.map((msg) =>
|
|
223
|
+
const msgs = messages.map((msg) => chunk5HZLL5KD_cjs.ClientState.aminoTypes.toAmino(msg));
|
|
224
224
|
const signDoc = amino.makeSignDoc(
|
|
225
225
|
msgs,
|
|
226
226
|
fee,
|
|
@@ -231,7 +231,7 @@ var signCosmosMessageAmino = async (options) => {
|
|
|
231
231
|
);
|
|
232
232
|
const { signature, signed } = await signer.signAmino(signerAddress, signDoc);
|
|
233
233
|
const signedTxBody = {
|
|
234
|
-
messages: signed.msgs.map((msg) =>
|
|
234
|
+
messages: signed.msgs.map((msg) => chunk5HZLL5KD_cjs.ClientState.aminoTypes.fromAmino(msg)),
|
|
235
235
|
memo: signed.memo
|
|
236
236
|
};
|
|
237
237
|
signedTxBody.messages[0].value.memo = messages[0].value.memo;
|
|
@@ -239,7 +239,7 @@ var signCosmosMessageAmino = async (options) => {
|
|
|
239
239
|
typeUrl: "/cosmos.tx.v1beta1.TxBody",
|
|
240
240
|
value: signedTxBody
|
|
241
241
|
};
|
|
242
|
-
const signedTxBodyBytes =
|
|
242
|
+
const signedTxBodyBytes = chunk5HZLL5KD_cjs.ClientState.registry.encode(
|
|
243
243
|
signedTxBodyEncodeObject
|
|
244
244
|
);
|
|
245
245
|
const signedGasLimit = math.Int53.fromString(signed.fee.gas).toNumber();
|
|
@@ -274,7 +274,7 @@ var signCosmosTransaction = async ({
|
|
|
274
274
|
const chainId = tx.cosmosTx?.chainId;
|
|
275
275
|
const messages = tx.cosmosTx?.msgs;
|
|
276
276
|
const currentUserAddress = userAddresses.find((x) => x.chainId === tx.cosmosTx?.chainId)?.address;
|
|
277
|
-
const gasArray =
|
|
277
|
+
const gasArray = chunk5HZLL5KD_cjs.ClientState.validateGasResults;
|
|
278
278
|
const gas = gasArray?.find((gas2) => gas2?.error !== null && gas2?.error !== void 0);
|
|
279
279
|
if (typeof gas?.error === "string") {
|
|
280
280
|
throw new Error(gas?.error);
|
|
@@ -289,7 +289,7 @@ var signCosmosTransaction = async ({
|
|
|
289
289
|
if (messages === void 0) {
|
|
290
290
|
throw new Error("no messages found for tx");
|
|
291
291
|
}
|
|
292
|
-
const { signer } = await
|
|
292
|
+
const { signer } = await chunk66VIHDGM_cjs.getSigningStargateClient({
|
|
293
293
|
chainId,
|
|
294
294
|
getOfflineSigner: options?.getCosmosSigner
|
|
295
295
|
});
|
|
@@ -328,7 +328,7 @@ var signCosmosTransaction = async ({
|
|
|
328
328
|
txIndex: index,
|
|
329
329
|
signerAddress: currentUserAddress
|
|
330
330
|
});
|
|
331
|
-
|
|
331
|
+
chunk7D433NQ5_cjs.updateRouteDetails({
|
|
332
332
|
status: "signing",
|
|
333
333
|
routeId,
|
|
334
334
|
options
|
|
@@ -344,7 +344,7 @@ var signCosmosTransaction = async ({
|
|
|
344
344
|
options?.onTransactionSigned?.({
|
|
345
345
|
chainId
|
|
346
346
|
});
|
|
347
|
-
|
|
347
|
+
chunk7D433NQ5_cjs.updateRouteDetails({
|
|
348
348
|
status: "pending",
|
|
349
349
|
routeId,
|
|
350
350
|
options
|
|
@@ -371,7 +371,7 @@ var executeCosmosTransaction = async ({
|
|
|
371
371
|
routeId
|
|
372
372
|
});
|
|
373
373
|
const chainId = tx.cosmosTx?.chainId;
|
|
374
|
-
const txResponse = await
|
|
374
|
+
const txResponse = await chunkEI4ZWAEU_cjs.submitTransaction({
|
|
375
375
|
chainId,
|
|
376
376
|
tx: rawTxBase64
|
|
377
377
|
});
|
|
@@ -584,7 +584,7 @@ var erc20ABI = /* @__PURE__ */ createAbi([
|
|
|
584
584
|
|
|
585
585
|
// src/private-functions/evm/executeEvmTransaction.ts
|
|
586
586
|
var executeEvmTransaction = async (message, options, index, routeId) => {
|
|
587
|
-
const gasArray =
|
|
587
|
+
const gasArray = chunk5HZLL5KD_cjs.ClientState.validateGasResults;
|
|
588
588
|
const gas = gasArray?.find((gas2) => gas2?.error !== null && gas2?.error !== void 0);
|
|
589
589
|
if (typeof gas?.error === "string") {
|
|
590
590
|
throw new Error(gas?.error);
|
|
@@ -630,7 +630,7 @@ var executeEvmTransaction = async (message, options, index, routeId) => {
|
|
|
630
630
|
status: "pending",
|
|
631
631
|
allowance: requiredApproval
|
|
632
632
|
});
|
|
633
|
-
|
|
633
|
+
chunk7D433NQ5_cjs.updateRouteDetails({
|
|
634
634
|
status: "allowance",
|
|
635
635
|
routeId,
|
|
636
636
|
options
|
|
@@ -664,7 +664,7 @@ var executeEvmTransaction = async (message, options, index, routeId) => {
|
|
|
664
664
|
signerAddress: evmSigner.account.address,
|
|
665
665
|
txIndex: index
|
|
666
666
|
});
|
|
667
|
-
|
|
667
|
+
chunk7D433NQ5_cjs.updateRouteDetails({
|
|
668
668
|
status: "signing",
|
|
669
669
|
routeId,
|
|
670
670
|
options
|
|
@@ -676,7 +676,7 @@ var executeEvmTransaction = async (message, options, index, routeId) => {
|
|
|
676
676
|
chain: evmSigner.chain,
|
|
677
677
|
value: evmTx.value === "" ? void 0 : BigInt(evmTx.value)
|
|
678
678
|
});
|
|
679
|
-
|
|
679
|
+
chunk7D433NQ5_cjs.updateRouteDetails({
|
|
680
680
|
status: "pending",
|
|
681
681
|
routeId,
|
|
682
682
|
options
|
|
@@ -695,7 +695,7 @@ var signSvmTransaction = async ({
|
|
|
695
695
|
index,
|
|
696
696
|
routeId
|
|
697
697
|
}) => {
|
|
698
|
-
const gasArray =
|
|
698
|
+
const gasArray = chunk5HZLL5KD_cjs.ClientState.validateGasResults;
|
|
699
699
|
if (tx === void 0) {
|
|
700
700
|
throw new Error("executeSvmTransaction error: tx is undefined");
|
|
701
701
|
}
|
|
@@ -732,14 +732,14 @@ var signSvmTransaction = async ({
|
|
|
732
732
|
signerAddress: signer.publicKey?.toBase58(),
|
|
733
733
|
txIndex: index
|
|
734
734
|
});
|
|
735
|
-
|
|
735
|
+
chunk7D433NQ5_cjs.updateRouteDetails({
|
|
736
736
|
status: "signing",
|
|
737
737
|
routeId,
|
|
738
738
|
options
|
|
739
739
|
});
|
|
740
740
|
const signedTx = await signer.signTransaction(transaction);
|
|
741
741
|
options?.onTransactionSigned?.({ chainId: svmTx.chainId });
|
|
742
|
-
|
|
742
|
+
chunk7D433NQ5_cjs.updateRouteDetails({
|
|
743
743
|
status: "pending",
|
|
744
744
|
routeId,
|
|
745
745
|
options
|
|
@@ -758,10 +758,10 @@ var executeSvmTransaction = async (tx, options, index, routeId) => {
|
|
|
758
758
|
if (!signedTx) {
|
|
759
759
|
throw new Error("executeSvmTransaction error: signedTx is undefined");
|
|
760
760
|
}
|
|
761
|
-
const endpoint = await
|
|
761
|
+
const endpoint = await chunk66VIHDGM_cjs.getRpcEndpointForChain(svmTx.chainId);
|
|
762
762
|
const connection = new web3_js.Connection(endpoint);
|
|
763
763
|
let signature;
|
|
764
|
-
const submitTxResponse = await
|
|
764
|
+
const submitTxResponse = await chunkEI4ZWAEU_cjs.submitTransaction({
|
|
765
765
|
chainId: svmTx.chainId,
|
|
766
766
|
tx: signedTx.toString("base64")
|
|
767
767
|
});
|
|
@@ -789,13 +789,13 @@ var executeSvmTransaction = async (tx, options, index, routeId) => {
|
|
|
789
789
|
};
|
|
790
790
|
}
|
|
791
791
|
if (getStatusCount > 12) {
|
|
792
|
-
await
|
|
792
|
+
await chunkMMGVGXA5_cjs.wait(3e3);
|
|
793
793
|
throw new Error(
|
|
794
794
|
`executeSvmTransaction error: waiting finalized status timed out for ${signature}`
|
|
795
795
|
);
|
|
796
796
|
}
|
|
797
797
|
getStatusCount++;
|
|
798
|
-
await
|
|
798
|
+
await chunkMMGVGXA5_cjs.wait(3e3);
|
|
799
799
|
} catch (error) {
|
|
800
800
|
errorCount++;
|
|
801
801
|
if (errorCount > 12) {
|
|
@@ -829,7 +829,7 @@ var validateEvmTokenApproval = async ({
|
|
|
829
829
|
const fee = await extendedSigner.estimateFeesPerGas();
|
|
830
830
|
const allowanceGasFee = BigInt(fee.maxFeePerGas) * BigInt(1e5);
|
|
831
831
|
if (!gasBalance) {
|
|
832
|
-
const chainAssets = (await
|
|
832
|
+
const chainAssets = (await chunk5HZLL5KD_cjs.ClientState.getSkipAssets({ chainId: tx.chainId }))[tx.chainId];
|
|
833
833
|
const nativeAsset = chainAssets?.find((x) => x.denom.includes("-native"));
|
|
834
834
|
const zeroAddressAsset = chainAssets?.find(
|
|
835
835
|
(x) => x.denom.toLowerCase() === "0x0000000000000000000000000000000000000000"
|
|
@@ -846,7 +846,7 @@ var validateEvmTokenApproval = async ({
|
|
|
846
846
|
);
|
|
847
847
|
}
|
|
848
848
|
if (chunk4R6OCWRR_cjs.BigNumber(gasBalance.amount).lt(Number(allowanceGasFee))) {
|
|
849
|
-
const chainAssets = (await
|
|
849
|
+
const chainAssets = (await chunk5HZLL5KD_cjs.ClientState.getSkipAssets({ chainId: tx.chainId }))[tx.chainId];
|
|
850
850
|
const asset = chainAssets?.find(
|
|
851
851
|
(x) => x.denom.includes("-native") || x.denom.toLowerCase() === "0x0000000000000000000000000000000000000000"
|
|
852
852
|
);
|
|
@@ -895,8 +895,8 @@ var validateEvmGasBalance = async ({
|
|
|
895
895
|
bypassApprovalCheck
|
|
896
896
|
}) => {
|
|
897
897
|
const chainId = tx?.chainId ?? "";
|
|
898
|
-
const skipAssets = (await
|
|
899
|
-
const skipChains = await
|
|
898
|
+
const skipAssets = (await chunk5HZLL5KD_cjs.ClientState.getSkipAssets({ chainId }))?.[chainId];
|
|
899
|
+
const skipChains = await chunk5HZLL5KD_cjs.ClientState.getSkipChains();
|
|
900
900
|
const chain = skipChains?.find?.((chain2) => chain2.chainId === chainId);
|
|
901
901
|
if (!chain) {
|
|
902
902
|
throw new Error(`failed to find chain for chainId: '${chainId}'`);
|
|
@@ -904,7 +904,7 @@ var validateEvmGasBalance = async ({
|
|
|
904
904
|
if (!signer.account?.address) {
|
|
905
905
|
throw new Error("validateEvmGasBalance: Signer address not found");
|
|
906
906
|
}
|
|
907
|
-
const skipBalances = (await
|
|
907
|
+
const skipBalances = (await chunk5HZLL5KD_cjs.balances({
|
|
908
908
|
chains: {
|
|
909
909
|
[tx?.chainId ?? ""]: {
|
|
910
910
|
address: signer.account?.address
|
|
@@ -990,7 +990,7 @@ var validateSvmGasBalance = async ({
|
|
|
990
990
|
fee: null
|
|
991
991
|
};
|
|
992
992
|
}
|
|
993
|
-
const endpoint = await
|
|
993
|
+
const endpoint = await chunk66VIHDGM_cjs.getRpcEndpointForChain(tx.chainId ?? "");
|
|
994
994
|
const connection = new web3_js.Connection(endpoint);
|
|
995
995
|
if (!connection) throw new Error(`Failed to connect to ${tx.chainId}`);
|
|
996
996
|
if (!tx.tx) {
|
|
@@ -1068,7 +1068,7 @@ var validateGasBalances = async ({
|
|
|
1068
1068
|
onValidateGasBalance?.({
|
|
1069
1069
|
status: "pending"
|
|
1070
1070
|
});
|
|
1071
|
-
|
|
1071
|
+
chunk7D433NQ5_cjs.updateRouteDetails({
|
|
1072
1072
|
status: "validating",
|
|
1073
1073
|
routeId,
|
|
1074
1074
|
options
|
|
@@ -1077,7 +1077,7 @@ var validateGasBalances = async ({
|
|
|
1077
1077
|
throw new Error(`invalid msgs ${tx?.cosmosTx?.msgs}`);
|
|
1078
1078
|
}
|
|
1079
1079
|
try {
|
|
1080
|
-
const res = await
|
|
1080
|
+
const res = await chunkLARLMUFZ_cjs.validateCosmosGasBalance({
|
|
1081
1081
|
chainId: tx.cosmosTx.chainId ?? "",
|
|
1082
1082
|
signerAddress: tx.cosmosTx.signerAddress ?? "",
|
|
1083
1083
|
messages: tx.cosmosTx.msgs,
|
|
@@ -1102,7 +1102,7 @@ var validateGasBalances = async ({
|
|
|
1102
1102
|
onValidateGasBalance?.({
|
|
1103
1103
|
status: "pending"
|
|
1104
1104
|
});
|
|
1105
|
-
|
|
1105
|
+
chunk7D433NQ5_cjs.updateRouteDetails({
|
|
1106
1106
|
status: "validating",
|
|
1107
1107
|
routeId,
|
|
1108
1108
|
options
|
|
@@ -1135,7 +1135,7 @@ var validateGasBalances = async ({
|
|
|
1135
1135
|
onValidateGasBalance?.({
|
|
1136
1136
|
status: "pending"
|
|
1137
1137
|
});
|
|
1138
|
-
|
|
1138
|
+
chunk7D433NQ5_cjs.updateRouteDetails({
|
|
1139
1139
|
status: "validating",
|
|
1140
1140
|
routeId,
|
|
1141
1141
|
options
|
|
@@ -1165,13 +1165,13 @@ var validateGasBalances = async ({
|
|
|
1165
1165
|
onValidateGasBalance?.({
|
|
1166
1166
|
status: "error"
|
|
1167
1167
|
});
|
|
1168
|
-
|
|
1168
|
+
chunk5HZLL5KD_cjs.ClientState.validateGasResults = validateResult;
|
|
1169
1169
|
throw new Error(`${txError.error}`);
|
|
1170
1170
|
}
|
|
1171
1171
|
onValidateGasBalance?.({
|
|
1172
1172
|
status: "completed"
|
|
1173
1173
|
});
|
|
1174
|
-
|
|
1174
|
+
chunk5HZLL5KD_cjs.ClientState.validateGasResults = validateResult;
|
|
1175
1175
|
};
|
|
1176
1176
|
|
|
1177
1177
|
// src/private-functions/getChainIdsFromTxs.ts
|
|
@@ -1231,7 +1231,7 @@ var executeTransactions = async (options) => {
|
|
|
1231
1231
|
throw new Error("executeRoute error: invalid message type");
|
|
1232
1232
|
}
|
|
1233
1233
|
});
|
|
1234
|
-
|
|
1234
|
+
chunk7D433NQ5_cjs.updateRouteDetails({
|
|
1235
1235
|
transactionDetails,
|
|
1236
1236
|
routeId,
|
|
1237
1237
|
options
|
|
@@ -1239,7 +1239,7 @@ var executeTransactions = async (options) => {
|
|
|
1239
1239
|
const isGasStationSourceEVM = chainIds.find((item, i, array) => {
|
|
1240
1240
|
return chunkKZOSEIWH_cjs.GAS_STATION_CHAIN_IDS.includes(item?.chainId ?? "") && array[i - 1]?.chainType === "evm" /* Evm */;
|
|
1241
1241
|
});
|
|
1242
|
-
|
|
1242
|
+
chunk5HZLL5KD_cjs.ClientState.validateGasResults = void 0;
|
|
1243
1243
|
const validateChainIds = !batchSimulate ? chainIds.map((x) => x?.chainId ?? "") : isGasStationSourceEVM ? chunkKZOSEIWH_cjs.GAS_STATION_CHAIN_IDS : [];
|
|
1244
1244
|
await validateGasBalances({
|
|
1245
1245
|
txs,
|
|
@@ -1342,7 +1342,7 @@ var executeTransactions = async (options) => {
|
|
|
1342
1342
|
let txResult;
|
|
1343
1343
|
const txSigned = signedTxs.find((item) => item.index === index);
|
|
1344
1344
|
if (txSigned) {
|
|
1345
|
-
const txResponse = await
|
|
1345
|
+
const txResponse = await chunkEI4ZWAEU_cjs.submitTransaction({
|
|
1346
1346
|
chainId: txSigned.chainId,
|
|
1347
1347
|
tx: txSigned.tx
|
|
1348
1348
|
});
|
|
@@ -1398,7 +1398,7 @@ var getDefaultFallbackGasAmount = async (chainId, chainType) => {
|
|
|
1398
1398
|
return EVM_GAS_AMOUNT;
|
|
1399
1399
|
}
|
|
1400
1400
|
if (chainType !== "cosmos" /* Cosmos */) return void 0;
|
|
1401
|
-
const venuesResult = await
|
|
1401
|
+
const venuesResult = await chunkKPV3PGBG_cjs.venues();
|
|
1402
1402
|
const isSwapChain = venuesResult?.some(
|
|
1403
1403
|
(venue) => venue.chainId === chainId
|
|
1404
1404
|
) ?? false;
|
|
@@ -1411,7 +1411,7 @@ var getDefaultFallbackGasAmount = async (chainId, chainType) => {
|
|
|
1411
1411
|
return defaultGasAmount;
|
|
1412
1412
|
};
|
|
1413
1413
|
var validateUserAddresses = async (userAddresses) => {
|
|
1414
|
-
const chains2 = await
|
|
1414
|
+
const chains2 = await chunk5HZLL5KD_cjs.ClientState.getSkipChains();
|
|
1415
1415
|
const validations = userAddresses.map((userAddress) => {
|
|
1416
1416
|
const chain = chains2.find((chain2) => chain2.chainId === userAddress.chainId);
|
|
1417
1417
|
switch (chain?.chainType) {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunk5HZLL5KD_cjs = require('./chunk-5HZLL5KD.cjs');
|
|
4
|
+
var chunkMMGVGXA5_cjs = require('./chunk-MMGVGXA5.cjs');
|
|
5
5
|
|
|
6
6
|
// src/api/postAssetsFromSource.ts
|
|
7
|
-
var assetsFromSource =
|
|
7
|
+
var assetsFromSource = chunkMMGVGXA5_cjs.api({
|
|
8
8
|
methodName: "assetsFromSource",
|
|
9
9
|
method: "post",
|
|
10
10
|
path: "v2/fungible/assets_from_source",
|
|
11
11
|
transformResponse(response) {
|
|
12
|
-
return
|
|
12
|
+
return chunk5HZLL5KD_cjs.transformAssetsMap(response.destAssets);
|
|
13
13
|
}
|
|
14
14
|
});
|
|
15
15
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkMMGVGXA5_cjs = require('./chunk-MMGVGXA5.cjs');
|
|
4
4
|
|
|
5
5
|
// src/api/getVenues.ts
|
|
6
|
-
var venues =
|
|
6
|
+
var venues = chunkMMGVGXA5_cjs.api({
|
|
7
7
|
methodName: "venues",
|
|
8
8
|
path: "v2/fungible/venues",
|
|
9
9
|
transformResponse: (response) => response.venues
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
var chunkKM2D7PJL_cjs = require('./chunk-KM2D7PJL.cjs');
|
|
4
4
|
var chunk4R6OCWRR_cjs = require('./chunk-4R6OCWRR.cjs');
|
|
5
|
-
var
|
|
6
|
-
var
|
|
5
|
+
var chunk66VIHDGM_cjs = require('./chunk-66VIHDGM.cjs');
|
|
6
|
+
var chunk5HZLL5KD_cjs = require('./chunk-5HZLL5KD.cjs');
|
|
7
7
|
var stargate = require('@cosmjs/stargate');
|
|
8
8
|
var math = require('@cosmjs/math');
|
|
9
9
|
|
|
@@ -18,8 +18,8 @@ var validateCosmosGasBalance = async ({
|
|
|
18
18
|
getCosmosPriorityFeeDenom,
|
|
19
19
|
isMultiRoutes
|
|
20
20
|
}) => {
|
|
21
|
-
const skipAssets = (await
|
|
22
|
-
const skipChains = await
|
|
21
|
+
const skipAssets = (await chunk5HZLL5KD_cjs.ClientState.getSkipAssets({ chainId }))?.[chainId];
|
|
22
|
+
const skipChains = await chunk5HZLL5KD_cjs.ClientState.getSkipChains();
|
|
23
23
|
const prioFeeDenom = await getCosmosPriorityFeeDenom?.(chainId);
|
|
24
24
|
const chain = skipChains?.find((c) => c.chainId === chainId);
|
|
25
25
|
if (!chain) {
|
|
@@ -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 chunk66VIHDGM_cjs.getSigningStargateClient({
|
|
39
39
|
chainId,
|
|
40
40
|
getOfflineSigner
|
|
41
41
|
});
|
|
@@ -99,7 +99,7 @@ var validateCosmosGasBalance = async ({
|
|
|
99
99
|
}
|
|
100
100
|
return stargate.calculateFee(Math.ceil(parseFloat(estimatedGasAmount)), gasPrice);
|
|
101
101
|
});
|
|
102
|
-
const feeBalance = await
|
|
102
|
+
const feeBalance = await chunk5HZLL5KD_cjs.balances({
|
|
103
103
|
chains: {
|
|
104
104
|
[chainId]: {
|
|
105
105
|
address: signerAddress,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkMMGVGXA5_cjs = require('./chunk-MMGVGXA5.cjs');
|
|
4
4
|
|
|
5
5
|
// src/api/postTransactionStatus.ts
|
|
6
|
-
var transactionStatus =
|
|
6
|
+
var transactionStatus = chunkMMGVGXA5_cjs.pollingApi({
|
|
7
7
|
methodName: "status",
|
|
8
8
|
path: "v2/tx/status",
|
|
9
9
|
method: "get",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
3
|
+
var chunk2MAYN27U_cjs = require('./chunk-2MAYN27U.cjs');
|
|
4
|
+
var chunkMFJ6S6TL_cjs = require('./chunk-MFJ6S6TL.cjs');
|
|
5
|
+
var chunkMMGVGXA5_cjs = require('./chunk-MMGVGXA5.cjs');
|
|
6
6
|
|
|
7
7
|
// src/public-functions/waitForTransaction.ts
|
|
8
8
|
var waitForTransaction = async ({
|
|
@@ -14,7 +14,7 @@ var waitForTransaction = async ({
|
|
|
14
14
|
}) => {
|
|
15
15
|
try {
|
|
16
16
|
if (!explorerLink) {
|
|
17
|
-
const response = await
|
|
17
|
+
const response = await chunk2MAYN27U_cjs.trackTransaction({
|
|
18
18
|
chainId,
|
|
19
19
|
txHash,
|
|
20
20
|
...trackTxPollingOptions
|
|
@@ -26,7 +26,7 @@ var waitForTransaction = async ({
|
|
|
26
26
|
console.warn(`track failed for txHash:${txHash}, chainId: ${chainId}`);
|
|
27
27
|
}
|
|
28
28
|
while (true) {
|
|
29
|
-
const txStatusResponse = await
|
|
29
|
+
const txStatusResponse = await chunkMFJ6S6TL_cjs.transactionStatus({
|
|
30
30
|
chainId,
|
|
31
31
|
txHash
|
|
32
32
|
});
|
|
@@ -39,7 +39,7 @@ var waitForTransaction = async ({
|
|
|
39
39
|
if (txStatusResponse.state === "STATE_ABANDONED") {
|
|
40
40
|
throw new Error("Tracking for the transaction has been abandoned");
|
|
41
41
|
}
|
|
42
|
-
await
|
|
42
|
+
await chunkMMGVGXA5_cjs.wait(1e3);
|
|
43
43
|
}
|
|
44
44
|
};
|
|
45
45
|
|
|
@@ -98,15 +98,14 @@ function createRequest({
|
|
|
98
98
|
const request = async (options) => {
|
|
99
99
|
const { apiKey, apiUrl, apiHeaders, abortDuplicateRequests, ...requestParams } = options ?? {};
|
|
100
100
|
let fetchClient = ApiState.client;
|
|
101
|
-
if (apiUrl ||
|
|
101
|
+
if (apiKey || apiUrl || apiHeaders || fetchClient === void 0) {
|
|
102
102
|
fetchClient = createRequestClient({
|
|
103
103
|
apiUrl: apiUrl || "https://api.skip.build",
|
|
104
104
|
apiKey,
|
|
105
105
|
apiHeaders
|
|
106
106
|
});
|
|
107
|
-
} else {
|
|
108
|
-
await ApiState.clientInitialized;
|
|
109
107
|
}
|
|
108
|
+
ApiState.apiCalled = true;
|
|
110
109
|
if (abortDuplicateRequests && controller && !controller?.signal?.aborted) {
|
|
111
110
|
controller?.abort();
|
|
112
111
|
}
|
|
@@ -186,23 +185,12 @@ function pollingApi({
|
|
|
186
185
|
}
|
|
187
186
|
|
|
188
187
|
// src/state/apiState.ts
|
|
189
|
-
var ApiState = class
|
|
188
|
+
var ApiState = class {
|
|
190
189
|
static client;
|
|
191
190
|
static chainIdsToAffiliates;
|
|
192
191
|
static cumulativeAffiliateFeeBPS = "0";
|
|
193
|
-
static
|
|
194
|
-
static
|
|
195
|
-
static clientInitialized = new Promise((resolve) => {
|
|
196
|
-
_ApiState.resolveInitialization = () => {
|
|
197
|
-
if (!_ApiState.isInitialized) {
|
|
198
|
-
_ApiState.isInitialized = true;
|
|
199
|
-
resolve();
|
|
200
|
-
}
|
|
201
|
-
};
|
|
202
|
-
});
|
|
203
|
-
static setClientInitialized() {
|
|
204
|
-
_ApiState.resolveInitialization();
|
|
205
|
-
}
|
|
192
|
+
static initialized = false;
|
|
193
|
+
static apiCalled = false;
|
|
206
194
|
};
|
|
207
195
|
|
|
208
196
|
exports.ApiState = ApiState;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkMMGVGXA5_cjs = require('./chunk-MMGVGXA5.cjs');
|
|
4
4
|
|
|
5
5
|
// src/api/getBridges.ts
|
|
6
|
-
var bridges =
|
|
6
|
+
var bridges = chunkMMGVGXA5_cjs.api({
|
|
7
7
|
methodName: "bridges",
|
|
8
8
|
path: "v2/info/bridges",
|
|
9
9
|
transformResponse: (response) => response.bridges
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
3
|
+
var chunkHEYFLFKD_cjs = require('./chunk-HEYFLFKD.cjs');
|
|
4
|
+
var chunk7D433NQ5_cjs = require('./chunk-7D433NQ5.cjs');
|
|
5
|
+
var chunkXPQRSO4J_cjs = require('./chunk-XPQRSO4J.cjs');
|
|
6
|
+
var chunkMMGVGXA5_cjs = require('./chunk-MMGVGXA5.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 } = chunk7D433NQ5_cjs.updateRouteDetails({
|
|
12
12
|
status: "unconfirmed",
|
|
13
13
|
options
|
|
14
14
|
});
|
|
15
|
-
const addressList = await
|
|
15
|
+
const addressList = await chunkHEYFLFKD_cjs.createValidAddressList({
|
|
16
16
|
userAddresses,
|
|
17
17
|
route
|
|
18
18
|
});
|
|
19
|
-
const response = await
|
|
19
|
+
const response = await chunkXPQRSO4J_cjs.messages({
|
|
20
20
|
timeoutSeconds,
|
|
21
21
|
amountIn: route?.amountIn,
|
|
22
22
|
amountOut: route.estimatedAmountOut || "0",
|
|
@@ -27,7 +27,7 @@ var executeRoute = async (options) => {
|
|
|
27
27
|
operations: route?.operations,
|
|
28
28
|
addressList,
|
|
29
29
|
slippageTolerancePercent: options.slippageTolerancePercent || "1",
|
|
30
|
-
chainIdsToAffiliates:
|
|
30
|
+
chainIdsToAffiliates: chunkMMGVGXA5_cjs.ApiState.chainIdsToAffiliates,
|
|
31
31
|
postRouteHandler: options.postRouteHandler,
|
|
32
32
|
feePayerAddress: options.svmFeePayer?.address
|
|
33
33
|
});
|
|
@@ -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 chunkHEYFLFKD_cjs.executeTransactions({ ...options, routeId, txs: response?.txs });
|
|
47
|
+
await chunk7D433NQ5_cjs.executeAndSubscribeToRouteStatus({
|
|
48
48
|
transactionDetails,
|
|
49
49
|
executeTransaction,
|
|
50
50
|
routeId,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkMMGVGXA5_cjs = require('./chunk-MMGVGXA5.cjs');
|
|
4
4
|
|
|
5
5
|
// src/api/postMessagesDirect.ts
|
|
6
|
-
var messagesDirect =
|
|
6
|
+
var messagesDirect = chunkMMGVGXA5_cjs.api({
|
|
7
7
|
methodName: "msgsDirect",
|
|
8
8
|
method: "post",
|
|
9
9
|
path: "v2/fungible/msgs_direct"
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunk4R6OCWRR_cjs = require('./chunk-4R6OCWRR.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkGO4BJ6G2_cjs = require('./chunk-GO4BJ6G2.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 chunkGO4BJ6G2_cjs.getFeeInfoForChain(props);
|
|
10
10
|
if (!feeInfo || !feeInfo.gasPrice) {
|
|
11
11
|
return void 0;
|
|
12
12
|
}
|