@skip-go/client 1.5.3 → 1.5.5
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-HFEMNOJS.cjs → chunk-2QPPD3BB.cjs} +3 -0
- package/dist/cjs/{chunk-7SZZBUBD.cjs → chunk-2SA3OAIJ.cjs} +3 -3
- package/dist/cjs/{chunk-DAPPFYGA.cjs → chunk-3RPOC3AX.cjs} +6 -6
- package/dist/cjs/chunk-4BWE7SOV.cjs +68 -0
- package/dist/cjs/{chunk-FF5UWES6.cjs → chunk-4GHUZDDP.cjs} +4 -4
- package/dist/cjs/{chunk-3UPZIINE.cjs → chunk-4KPBBDLF.cjs} +6 -6
- package/dist/cjs/{chunk-QWQVTCKP.cjs → chunk-7CFJPJJ2.cjs} +10 -10
- package/dist/cjs/{chunk-GOQK63JP.cjs → chunk-7L4FYNDR.cjs} +2 -2
- package/dist/cjs/{chunk-BCX2D6TE.cjs → chunk-A3UNNRKD.cjs} +56 -23
- package/dist/cjs/{chunk-AW6IQ7JH.cjs → chunk-A5S6SIYN.cjs} +2 -2
- package/dist/cjs/{chunk-ZBJZTBIW.cjs → chunk-ASDMDYTC.cjs} +2 -2
- package/dist/cjs/{chunk-QAHHTQ7V.cjs → chunk-ATW6UNT5.cjs} +4 -4
- package/dist/cjs/{chunk-PLO5CVGN.cjs → chunk-AUTOIM57.cjs} +2 -2
- package/dist/cjs/{chunk-BT6HQNBF.cjs → chunk-BB5QJRM4.cjs} +14 -14
- package/dist/cjs/{chunk-KWH6S7PB.cjs → chunk-CK6CQWQU.cjs} +6 -6
- package/dist/cjs/{chunk-T5EGKQAT.cjs → chunk-FCTBCHOT.cjs} +2 -2
- package/dist/cjs/{chunk-S3BKLN4L.cjs → chunk-IJIBMN2F.cjs} +2 -2
- package/dist/cjs/{chunk-BFA7XKVT.cjs → chunk-JBGCVGJP.cjs} +80 -63
- package/dist/cjs/{chunk-262HFM6V.cjs → chunk-JRXPJ45U.cjs} +2 -2
- package/dist/cjs/{chunk-3NHW3XWK.cjs → chunk-NCFH5MGF.cjs} +2 -2
- package/dist/cjs/{chunk-ND7SYSAP.cjs → chunk-NWHKDAJY.cjs} +8 -4
- package/dist/cjs/{chunk-4MV4GLIA.cjs → chunk-OJISEAMX.cjs} +2 -2
- package/dist/cjs/{chunk-JWWJIJUE.cjs → chunk-PDNKS5R2.cjs} +2 -2
- package/dist/cjs/{chunk-4RLEZ5DV.cjs → chunk-PHFHOXMV.cjs} +10 -10
- package/dist/cjs/{chunk-RBM66GW6.cjs → chunk-UXW4XVHF.cjs} +2 -2
- package/dist/cjs/{chunk-U2NZCNKX.cjs → chunk-WRTBZRHG.cjs} +8 -8
- package/dist/cjs/index.cjs +81 -82
- package/dist/cjs/public-functions/executeMultipleRoutes.cjs +13 -14
- package/dist/cjs/public-functions/executeRoute.cjs +13 -14
- package/dist/cjs/public-functions/getFeeInfoForChain.cjs +4 -5
- package/dist/cjs/public-functions/getRecommendedGasPrice.cjs +5 -6
- package/dist/cjs/public-functions/getRouteWithGasOnReceive.cjs +27 -28
- 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 +9 -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.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 +2 -2
- package/dist/esm/api/postBalances.js +2 -2
- package/dist/esm/api/postIbcOriginAssets.js +2 -2
- package/dist/esm/api/postMessages.d.ts +2 -2
- 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 +2 -2
- package/dist/esm/api/postRoute.js +2 -2
- package/dist/esm/api/postSubmitTransaction.d.ts +2 -2
- package/dist/esm/api/postSubmitTransaction.js +2 -2
- package/dist/esm/api/postTrackTransaction.d.ts +2 -2
- package/dist/esm/api/postTrackTransaction.js +2 -2
- package/dist/esm/api/postTransactionStatus.d.ts +72 -68
- package/dist/esm/api/postTransactionStatus.js +2 -2
- package/dist/esm/{callbacks-CJ_p70xa.d.ts → callbacks-CZNSHCBb.d.ts} +5 -5
- package/dist/esm/{chunk-426BGQ4K.js → chunk-32JIBODG.js} +2 -2
- package/dist/esm/{chunk-5IXH2QPF.js → chunk-3DIX6KRJ.js} +53 -20
- package/dist/esm/{chunk-YLVUKXLR.js → chunk-3JHLVPRG.js} +1 -1
- package/dist/esm/{chunk-SA4GETWP.js → chunk-6ERJCOUK.js} +5 -5
- package/dist/esm/{chunk-FNTPI2AV.js → chunk-A5NZMSTI.js} +1 -1
- package/dist/esm/{chunk-HZVXNDMH.js → chunk-ACRGYWFW.js} +1 -1
- package/dist/esm/{chunk-BBEFB277.js → chunk-DRWCXWGY.js} +4 -4
- package/dist/esm/chunk-E4NRDAVO.js +65 -0
- package/dist/esm/{chunk-QYIZGNWZ.js → chunk-ERN6U7FJ.js} +6 -2
- package/dist/esm/{chunk-HDW6XFWX.js → chunk-ETBJVFQP.js} +1 -1
- package/dist/esm/{chunk-VGCTTJO7.js → chunk-F66EKL3W.js} +3 -0
- package/dist/esm/{chunk-RFJYCJK4.js → chunk-HNU2Y3JI.js} +1 -1
- package/dist/esm/{chunk-MYGJGC62.js → chunk-J24LYWJE.js} +1 -1
- package/dist/esm/{chunk-H2TTIB5K.js → chunk-KXS5UH7E.js} +2 -2
- package/dist/esm/{chunk-VWOMKMH2.js → chunk-KZKAL5ZN.js} +1 -1
- package/dist/esm/{chunk-3WFXBPS2.js → chunk-N4PTRCNT.js} +1 -1
- package/dist/esm/{chunk-IHSSWY3M.js → chunk-P36PE4CR.js} +1 -1
- package/dist/esm/{chunk-L233BZ4I.js → chunk-PBGKHTV4.js} +35 -18
- package/dist/esm/{chunk-UBVBVJPY.js → chunk-QYXGDTUU.js} +1 -1
- package/dist/esm/{chunk-AUNRER4I.js → chunk-SXBG57J3.js} +1 -1
- package/dist/esm/{chunk-HELQO7PA.js → chunk-TGTOO2ZQ.js} +2 -2
- package/dist/esm/{chunk-LBS7KX5I.js → chunk-TON3V7SK.js} +2 -2
- package/dist/esm/{chunk-KXQ2ASHQ.js → chunk-UHCKOKBM.js} +1 -1
- package/dist/esm/{chunk-YGQ4NKTM.js → chunk-UN46DUOV.js} +1 -1
- package/dist/esm/{chunk-GLM7QWYT.js → chunk-VMEHGKH7.js} +1 -1
- package/dist/esm/{chunk-44IX6KPJ.js → chunk-XNU3TKKM.js} +1 -1
- package/dist/esm/{client-types-uXKJQRqe.d.ts → client-types-BX_0924O.d.ts} +1 -1
- package/dist/esm/{generateApi-BMFrG4FZ.d.ts → generateApi-Clc85Kxw.d.ts} +1 -1
- package/dist/esm/index.d.ts +10 -10
- package/dist/esm/index.js +26 -27
- package/dist/esm/public-functions/executeMultipleRoutes.d.ts +4 -4
- package/dist/esm/public-functions/executeMultipleRoutes.js +12 -13
- package/dist/esm/public-functions/executeRoute.d.ts +4 -4
- package/dist/esm/public-functions/executeRoute.js +12 -13
- 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 +3 -4
- package/dist/esm/public-functions/getRecommendedGasPrice.js +4 -5
- package/dist/esm/public-functions/getRouteWithGasOnReceive.d.ts +1 -1
- package/dist/esm/public-functions/getRouteWithGasOnReceive.js +26 -27
- package/dist/esm/public-functions/getSigningStargateClient.js +3 -3
- package/dist/esm/public-functions/setApiOptions.d.ts +1 -1
- package/dist/esm/public-functions/setApiOptions.js +2 -2
- package/dist/esm/public-functions/setClientOptions.d.ts +4 -4
- package/dist/esm/public-functions/setClientOptions.js +3 -3
- package/dist/esm/public-functions/subscribeToRouteStatus.d.ts +4 -4
- package/dist/esm/public-functions/subscribeToRouteStatus.js +4 -4
- package/dist/esm/public-functions/validateCosmosGasBalance.d.ts +4 -4
- package/dist/esm/public-functions/validateCosmosGasBalance.js +4 -4
- package/dist/esm/public-functions/waitForTransaction.d.ts +712 -74
- package/dist/esm/public-functions/waitForTransaction.js +4 -4
- package/dist/esm/{setClientOptions-D1qgaOqC.d.ts → setClientOptions-DD5Mzkw_.d.ts} +3 -3
- package/dist/esm/{swaggerTypes-Cop47I0X.d.ts → swaggerTypes-Dr4I6vW2.d.ts} +3 -1
- package/package.json +1 -1
- package/dist/cjs/chunk-4NGHNHAS.cjs +0 -46
- package/dist/cjs/chunk-KZOSEIWH.cjs +0 -10
- package/dist/esm/chunk-SWYON2RG.js +0 -7
- package/dist/esm/chunk-TNIGHYH2.js +0 -44
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { createValidAddressList, executeTransactions } from './chunk-
|
|
2
|
-
import { updateRouteDetails, executeAndSubscribeToRouteStatus } from './chunk-
|
|
3
|
-
import { messages } from './chunk-
|
|
4
|
-
import { ApiState } from './chunk-
|
|
1
|
+
import { createValidAddressList, executeTransactions } from './chunk-PBGKHTV4.js';
|
|
2
|
+
import { updateRouteDetails, executeAndSubscribeToRouteStatus } from './chunk-3DIX6KRJ.js';
|
|
3
|
+
import { messages } from './chunk-P36PE4CR.js';
|
|
4
|
+
import { ApiState } from './chunk-F66EKL3W.js';
|
|
5
5
|
|
|
6
6
|
// src/public-functions/executeRoute.ts
|
|
7
7
|
var executeRoute = async (options) => {
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { trackTransaction } from './chunk-SXBG57J3.js';
|
|
2
|
+
import { transactionStatus } from './chunk-N4PTRCNT.js';
|
|
3
|
+
import { wait } from './chunk-F66EKL3W.js';
|
|
4
|
+
|
|
5
|
+
// src/public-functions/waitForTransaction.ts
|
|
6
|
+
var waitForTransaction = async ({
|
|
7
|
+
chainId,
|
|
8
|
+
txHash,
|
|
9
|
+
explorerLink,
|
|
10
|
+
doNotTrack = false,
|
|
11
|
+
onStatusUpdated,
|
|
12
|
+
onError,
|
|
13
|
+
onTransactionTracked,
|
|
14
|
+
isCancelled,
|
|
15
|
+
...trackTxPollingOptions
|
|
16
|
+
}) => {
|
|
17
|
+
try {
|
|
18
|
+
if (!explorerLink && !doNotTrack) {
|
|
19
|
+
const response = await trackTransaction({
|
|
20
|
+
chainId,
|
|
21
|
+
txHash,
|
|
22
|
+
...trackTxPollingOptions
|
|
23
|
+
});
|
|
24
|
+
explorerLink = response.explorerLink;
|
|
25
|
+
await onTransactionTracked?.({ txHash, chainId, explorerLink });
|
|
26
|
+
}
|
|
27
|
+
} catch (error) {
|
|
28
|
+
console.warn(`track failed for txHash:${txHash}, chainId: ${chainId}`);
|
|
29
|
+
}
|
|
30
|
+
while (true) {
|
|
31
|
+
if (isCancelled?.()) {
|
|
32
|
+
throw new Error("waitForTransaction was aborted");
|
|
33
|
+
}
|
|
34
|
+
try {
|
|
35
|
+
const txStatusResponse = await transactionStatus({
|
|
36
|
+
chainId,
|
|
37
|
+
txHash
|
|
38
|
+
});
|
|
39
|
+
onStatusUpdated?.(txStatusResponse);
|
|
40
|
+
if (txStatusResponse.state === "STATE_COMPLETED_SUCCESS") {
|
|
41
|
+
return txStatusResponse;
|
|
42
|
+
}
|
|
43
|
+
if (txStatusResponse.state === "STATE_COMPLETED_ERROR") {
|
|
44
|
+
throw new Error(`${txStatusResponse.error?.type}: ${txStatusResponse.error?.message}`);
|
|
45
|
+
}
|
|
46
|
+
if (txStatusResponse.state === "STATE_ABANDONED") {
|
|
47
|
+
throw new Error("Tracking for the transaction has been abandoned");
|
|
48
|
+
}
|
|
49
|
+
await wait(1e3);
|
|
50
|
+
} catch (error) {
|
|
51
|
+
onError?.(error);
|
|
52
|
+
throw error;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
var waitForTransactionWithCancel = (props) => {
|
|
57
|
+
let isCancelled = false;
|
|
58
|
+
const cancel = () => {
|
|
59
|
+
isCancelled = true;
|
|
60
|
+
};
|
|
61
|
+
const wrappedPromise = waitForTransaction({ ...props, isCancelled: () => isCancelled });
|
|
62
|
+
return { promise: wrappedPromise, cancel };
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
export { waitForTransaction, waitForTransactionWithCancel };
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
import { DEFAULT_GAS_DENOM_OVERRIDES } from './chunk-SWYON2RG.js';
|
|
2
1
|
import { chains } from './chunk-O4J7DHZA.js';
|
|
3
|
-
import { ClientState } from './chunk-
|
|
2
|
+
import { ClientState } from './chunk-J24LYWJE.js';
|
|
3
|
+
|
|
4
|
+
// src/constants/constants.ts
|
|
5
|
+
var DEFAULT_GAS_DENOM_OVERRIDES = {
|
|
6
|
+
"noble-1": "uusdc"
|
|
7
|
+
};
|
|
4
8
|
|
|
5
9
|
// src/private-functions/getDefaultGasTokenForChain.ts
|
|
6
10
|
var getDefaultGasTokenForChain = async (chainId) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getCosmosGasAmountForMessage } from './chunk-GLH7IRLX.js';
|
|
2
2
|
import { BigNumber } from './chunk-KS764SOZ.js';
|
|
3
|
-
import { getSigningStargateClient } from './chunk-
|
|
4
|
-
import { ClientState, balances } from './chunk-
|
|
3
|
+
import { getSigningStargateClient } from './chunk-VMEHGKH7.js';
|
|
4
|
+
import { ClientState, balances } from './chunk-J24LYWJE.js';
|
|
5
5
|
import { GasPrice, calculateFee } from '@cosmjs/stargate';
|
|
6
6
|
import { Decimal } from '@cosmjs/math';
|
|
7
7
|
|
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
import { updateRouteDetails } from './chunk-
|
|
2
|
-
import { validateCosmosGasBalance } from './chunk-
|
|
1
|
+
import { updateRouteDetails } from './chunk-3DIX6KRJ.js';
|
|
2
|
+
import { validateCosmosGasBalance } from './chunk-KXS5UH7E.js';
|
|
3
3
|
import { getEncodeObjectFromCosmosMessage } from './chunk-GLH7IRLX.js';
|
|
4
4
|
import { getEVMGasAmountForMessage } from './chunk-GV2QOWB4.js';
|
|
5
5
|
import { BigNumber } from './chunk-KS764SOZ.js';
|
|
6
|
-
import {
|
|
7
|
-
import { getRpcEndpointForChain, accountParser, getSigningStargateClient } from './chunk-GLM7QWYT.js';
|
|
6
|
+
import { getRpcEndpointForChain, accountParser, getSigningStargateClient } from './chunk-VMEHGKH7.js';
|
|
8
7
|
import { chains, findFirstWorkingEndpoint, getIsEthermint, getIsInitia } from './chunk-O4J7DHZA.js';
|
|
9
|
-
import { submitTransaction } from './chunk-
|
|
10
|
-
import { venues } from './chunk-
|
|
11
|
-
import { ClientState, balances } from './chunk-
|
|
12
|
-
import { wait, toCamel } from './chunk-
|
|
8
|
+
import { submitTransaction } from './chunk-ETBJVFQP.js';
|
|
9
|
+
import { venues } from './chunk-A5NZMSTI.js';
|
|
10
|
+
import { ClientState, balances } from './chunk-J24LYWJE.js';
|
|
11
|
+
import { wait, toCamel } from './chunk-F66EKL3W.js';
|
|
13
12
|
import { StargateClient } from '@cosmjs/stargate';
|
|
14
13
|
import { TxRaw } from 'cosmjs-types/cosmos/tx/v1beta1/tx.js';
|
|
15
14
|
import { isOfflineDirectSigner, makeAuthInfoBytes, makeSignDoc, encodePubkey } from '@cosmjs/proto-signing';
|
|
@@ -808,7 +807,8 @@ var validateEvmTokenApproval = async ({
|
|
|
808
807
|
chain,
|
|
809
808
|
gasBalance,
|
|
810
809
|
tx,
|
|
811
|
-
|
|
810
|
+
routeId,
|
|
811
|
+
options
|
|
812
812
|
}) => {
|
|
813
813
|
if (!signer.account?.address) {
|
|
814
814
|
throw new Error("validateEvmGasBalance: Signer address not found");
|
|
@@ -862,6 +862,16 @@ var validateEvmTokenApproval = async ({
|
|
|
862
862
|
fee: null
|
|
863
863
|
};
|
|
864
864
|
}
|
|
865
|
+
const { onApproveAllowance, useUnlimitedApproval } = options;
|
|
866
|
+
onApproveAllowance?.({
|
|
867
|
+
status: "pending",
|
|
868
|
+
allowance: requiredApproval
|
|
869
|
+
});
|
|
870
|
+
updateRouteDetails({
|
|
871
|
+
status: "allowance",
|
|
872
|
+
routeId,
|
|
873
|
+
options
|
|
874
|
+
});
|
|
865
875
|
const txHash = await extendedSigner.writeContract({
|
|
866
876
|
account: signer.account,
|
|
867
877
|
address: requiredApproval.tokenContract,
|
|
@@ -881,6 +891,14 @@ var validateEvmTokenApproval = async ({
|
|
|
881
891
|
`executeEVMTransaction error: evm tx reverted for hash ${receipt.transactionHash}`
|
|
882
892
|
);
|
|
883
893
|
}
|
|
894
|
+
onApproveAllowance?.({
|
|
895
|
+
status: "completed"
|
|
896
|
+
});
|
|
897
|
+
updateRouteDetails({
|
|
898
|
+
status: "signing",
|
|
899
|
+
routeId,
|
|
900
|
+
options
|
|
901
|
+
});
|
|
884
902
|
}
|
|
885
903
|
};
|
|
886
904
|
|
|
@@ -889,8 +907,8 @@ var validateEvmGasBalance = async ({
|
|
|
889
907
|
signer,
|
|
890
908
|
tx,
|
|
891
909
|
getFallbackGasAmount,
|
|
892
|
-
|
|
893
|
-
|
|
910
|
+
options,
|
|
911
|
+
routeId
|
|
894
912
|
}) => {
|
|
895
913
|
const chainId = tx?.chainId ?? "";
|
|
896
914
|
const skipAssets = (await ClientState.getSkipAssets({ chainId }))?.[chainId];
|
|
@@ -915,6 +933,7 @@ var validateEvmGasBalance = async ({
|
|
|
915
933
|
)?.[1];
|
|
916
934
|
const gasBalance = nativeGasBalance || zeroAddressGasBalance;
|
|
917
935
|
const { requiredErc20Approvals } = tx;
|
|
936
|
+
const { bypassApprovalCheck } = options;
|
|
918
937
|
if (!bypassApprovalCheck && requiredErc20Approvals) {
|
|
919
938
|
try {
|
|
920
939
|
await validateEvmTokenApproval({
|
|
@@ -923,7 +942,8 @@ var validateEvmGasBalance = async ({
|
|
|
923
942
|
chain,
|
|
924
943
|
gasBalance,
|
|
925
944
|
tx,
|
|
926
|
-
|
|
945
|
+
routeId,
|
|
946
|
+
options
|
|
927
947
|
});
|
|
928
948
|
} catch (error) {
|
|
929
949
|
const err = error;
|
|
@@ -1116,8 +1136,8 @@ var validateGasBalances = async ({
|
|
|
1116
1136
|
tx: tx.evmTx,
|
|
1117
1137
|
signer,
|
|
1118
1138
|
getFallbackGasAmount,
|
|
1119
|
-
|
|
1120
|
-
|
|
1139
|
+
routeId,
|
|
1140
|
+
options
|
|
1121
1141
|
});
|
|
1122
1142
|
return res;
|
|
1123
1143
|
} catch (e) {
|
|
@@ -1234,11 +1254,8 @@ var executeTransactions = async (options) => {
|
|
|
1234
1254
|
routeId,
|
|
1235
1255
|
options
|
|
1236
1256
|
});
|
|
1237
|
-
const isGasStationSourceEVM = chainIds.find((item, i, array) => {
|
|
1238
|
-
return GAS_STATION_CHAIN_IDS.includes(item?.chainId ?? "") && array[i - 1]?.chainType === "evm" /* Evm */;
|
|
1239
|
-
});
|
|
1240
1257
|
ClientState.validateGasResults = void 0;
|
|
1241
|
-
const validateChainIds = !batchSimulate ? chainIds.map((x) => x?.chainId ?? "") :
|
|
1258
|
+
const validateChainIds = !batchSimulate ? chainIds.map((x) => x?.chainId ?? "") : [];
|
|
1242
1259
|
await validateGasBalances({
|
|
1243
1260
|
txs,
|
|
1244
1261
|
getFallbackGasAmount,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { transformAssetsMap } from './chunk-
|
|
2
|
-
import { api } from './chunk-
|
|
1
|
+
import { transformAssetsMap } from './chunk-J24LYWJE.js';
|
|
2
|
+
import { api } from './chunk-F66EKL3W.js';
|
|
3
3
|
|
|
4
4
|
// src/api/postAssetsFromSource.ts
|
|
5
5
|
var assetsFromSource = api({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MsgUpdateSignatureThreshold, MsgSetMaxBurnAmountPerMessage, MsgUpdateMaxMessageBodySize, MsgUpdatePauser, MsgUpdateTokenController, MsgUpdateAttesterManager, MsgUpdateOwner, MsgUnpauseSendingAndReceivingMessages, MsgUnpauseBurningAndMinting, MsgUnlinkTokenPair, MsgSendMessageWithCaller, MsgSendMessage, MsgReplaceMessage, MsgReplaceDepositForBurn, MsgRemoveRemoteTokenMessenger, MsgReceiveMessage, MsgPauseSendingAndReceivingMessages, MsgPauseBurningAndMinting, MsgLinkTokenPair, MsgEnableAttester, MsgDisableAttester, MsgDepositForBurnWithCaller, MsgDepositForBurn, MsgAddRemoteTokenMessenger, MsgAcceptOwner, MsgExecute, MsgInitiateTokenDeposit, Coin, Timestamp, Period } from './chunk-F2LQB2DP.js';
|
|
2
2
|
import { isSet, Long, toTimestamp, fromTimestamp, fromJsonTimestamp } from './chunk-RTDD7HZ3.js';
|
|
3
|
-
import { ClientState } from './chunk-
|
|
4
|
-
import { createRequestClient, ApiState } from './chunk-
|
|
3
|
+
import { ClientState } from './chunk-J24LYWJE.js';
|
|
4
|
+
import { createRequestClient, ApiState } from './chunk-F66EKL3W.js';
|
|
5
5
|
import { AminoTypes, createDefaultAminoConverters, defaultRegistryTypes } from '@cosmjs/stargate';
|
|
6
6
|
import { createWasmAminoConverters } from '@cosmjs/cosmwasm-stargate';
|
|
7
7
|
import { Registry } from '@cosmjs/proto-signing';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BaseAccount as BaseAccount$1, base64FromBytes, bytesFromBase64, isSet } from './chunk-RTDD7HZ3.js';
|
|
2
2
|
import { chains, findFirstWorkingEndpoint } from './chunk-O4J7DHZA.js';
|
|
3
|
-
import { ClientState } from './chunk-
|
|
3
|
+
import { ClientState } from './chunk-J24LYWJE.js';
|
|
4
4
|
import { accountFromAny, SigningStargateClient } from '@cosmjs/stargate';
|
|
5
5
|
import { assertDefinedAndNotNull } from '@cosmjs/utils';
|
|
6
6
|
import { BinaryWriter, BinaryReader } from 'cosmjs-types/binary.js';
|
|
@@ -3,7 +3,7 @@ import { OfflineDirectSigner } from '@cosmjs/proto-signing';
|
|
|
3
3
|
import { GasPrice, StdFee, SignerData } from '@cosmjs/stargate';
|
|
4
4
|
import { WalletClient } from 'viem';
|
|
5
5
|
import { Adapter } from '@solana/wallet-adapter-base';
|
|
6
|
-
import { e as ChainType, af as FeeAsset, a6 as CosmosMsg } from './swaggerTypes-
|
|
6
|
+
import { e as ChainType, af as FeeAsset, a6 as CosmosMsg } from './swaggerTypes-Dr4I6vW2.js';
|
|
7
7
|
import { TrackTxPollingProps } from './api/postTrackTransaction.js';
|
|
8
8
|
|
|
9
9
|
/** Common Types */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { bI as Api } from './swaggerTypes-
|
|
1
|
+
import { bI as Api } from './swaggerTypes-Dr4I6vW2.js';
|
|
2
2
|
|
|
3
3
|
type CamelKey<S extends string> = S extends `${infer T}_${infer U}` ? `${T}${Capitalize<CamelKey<U>>}` : S;
|
|
4
4
|
type Camel<T> = T extends (infer U)[] ? Camel<U>[] : T extends object ? {
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { j as AcknowledgementErrorDetails, k as Affiliate, bI as Api, bE as ApiConfig, l as ApiError, m as Asset, n as AssetBetweenChains, o as AssetRecommendation, ba as AssetRecommendationsRequest, bt as AssetRecommendationsResponse, bg as AssetsBetweenChainsRequest, b7 as AssetsFromSourceRequest, bp as AssetsFromSourceResponse, bn as AssetsRequest, bo as AssetsResponse, i as AutopilotAction, p as AutopilotMsg, q as AutopilotMsgWrapper, r as AxelarTransfer, s as AxelarTransferInfo, h as AxelarTransferState, A as AxelarTransferType, t as AxelarTransferWrapper, Q as BalanceRequestChainEntry, V as BalanceResponseChainEntry, U as BalanceResponseDenomEntry, b6 as BalancesRequest, bj as BalancesResponse, W as BankSend, X as BankSendWrapper, Y as Bridge, B as BridgeType, bk as BridgesResponse, v as CCTPTransfer, w as CCTPTransferInfo, g as CCTPTransferState, x as CCTPTransferTxs, y as CCTPTransferWrapper, Z as Chain, _ as ChainAffiliates, aw as ChainTransaction, e as ChainType, bh as ChainsRequest, bi as ChainsResponse, bG as ContentType, $ as ContractCallWithTokenError, C as ContractCallWithTokenErrorType, a0 as ContractCallWithTokenTxs, a1 as CosmWasmContractMsg, a2 as CosmWasmContractMsgWrapper, b3 as CosmosModuleSupport, a6 as CosmosMsg, a7 as CosmosTx, a8 as CosmosTxWrapper, a3 as Erc20Approval, a5 as Error, a4 as ErrorDetail, aY as EurekaTransfer, aZ as EurekaTransferInfo, a_ as EurekaTransferWrapper, a9 as EvmSwap, aa as EvmSwapWrapper, ab as EvmTx, ac as EvmTxWrapper, b5 as Fee, af as FeeAsset, F as FeeBehavior, a as FeeType, bC as FullRequestParams, bz as FungibleAssetsBetweenChainsCreateResponse, ah as GRPCStatusCode, ag as GoFastFee, J as GoFastTransfer, M as GoFastTransferInfo, G as GoFastTransferState, K as GoFastTransferTxs, N as GoFastTransferWrapper, bH as HttpClient, bF as HttpResponse, ai as HyperlaneTransfer, aj as HyperlaneTransferInfo, H as HyperlaneTransferState, ak as HyperlaneTransferTransactions, al as HyperlaneTransferWrapper, am as IBCTransferInfo, b4 as IbcCapabilities, bf as IbcOriginAssetsRequest, by as IbcOriginAssetsResponse, a$ as LayerZeroTransfer, b0 as LayerZeroTransferInfo, L as LayerZeroTransferState, at as LayerZeroTransferTransactions, b1 as LayerZeroTransferWrapper, an as Msg, b9 as MsgsDirectRequest, bs as MsgsDirectResponse, b8 as MsgsRequest, br as MsgsResponse, ap as MultiChainMsg, aq as MultiChainMsgWrapper, aP as OPInitTransfer, aR as OPInitTransferInfo, O as OPInitTransferState, aS as OPInitTransferTxs, aQ as OPInitTransferWrapper, ar as Operation, as as OptionalAsset, au as Packet, av as PacketError, P as PacketErrorType, ax as PostHandler, bA as QueryParamsType, d as Reason, b2 as RecommendationRequest, bD as RequestParams, bB as ResponseFormat, ay as Route, R as RoutePriceWarningType, bq as RouteResponse, az as SendTokenError, c as SendTokenErrorType, aA as SendTokenTxs, u as SmartRelayFeeQuote, aJ as SmartSwapExactCoinIn, aL as SmartSwapInWrapper, aK as SmartSwapOptions, z as StargateTransfer, E as StargateTransferInfo, f as StargateTransferState, D as StargateTransferTxs, I as StargateTransferWrapper, aB as StatusError, S as StatusErrorType, bw as StatusRequest, bx as StatusResponse, be as StatusTxResponse, bu as SubmitResponse, bb as SubmitTxRequest, ad as SvmTx, ae as SvmTxWrapper, aC as Swap, aD as SwapExactCoinIn, aE as SwapExactCoinOut, aF as SwapInWrapper, aG as SwapOperation, aH as SwapOutWrapper, aI as SwapRoute, aM as SwapVenue, aN as SwapWrapper, bv as TrackResponse, bc as TrackTxRequest, bd as TrackTxResponse, aO as TransactionExecutionErrorDetails, b as TransactionState, aT as Transfer, aV as TransferAssetRelease, aU as TransferEvent, T as TransferState, aW as TransferStatus, aX as TransferWrapper, ao as Tx, bl as VenuesRequest, bm as VenuesResponse } from './swaggerTypes-
|
|
2
|
-
export { C as ClientTransferEvent, E as ExecuteRouteOptions, R as RouteDetails, a as RouteStatus, h as TransactionCallbacks, T as TransactionDetails, b as TransactionStatus, c as TransferEventStatus, d as TransferType, e as executeRoute, f as getSimpleOverallStatus, g as getTransferEventsFromTxStatusResponse, s as subscribeToRouteStatus } from './callbacks-
|
|
3
|
-
export { B as BaseSettings, E as EndpointOptions, b as GasOptions, G as GetFallbackGasAmount, a as GetGasPrice, e as SignCosmosMessageAminoOptions, d as SignCosmosMessageDirectOptions, c as SignCosmosMessageOptionsBase, S as SignerGetters, T as TxResult, U as UserAddress, V as ValidateGasResult } from './client-types-
|
|
1
|
+
export { j as AcknowledgementErrorDetails, k as Affiliate, bI as Api, bE as ApiConfig, l as ApiError, m as Asset, n as AssetBetweenChains, o as AssetRecommendation, ba as AssetRecommendationsRequest, bt as AssetRecommendationsResponse, bg as AssetsBetweenChainsRequest, b7 as AssetsFromSourceRequest, bp as AssetsFromSourceResponse, bn as AssetsRequest, bo as AssetsResponse, i as AutopilotAction, p as AutopilotMsg, q as AutopilotMsgWrapper, r as AxelarTransfer, s as AxelarTransferInfo, h as AxelarTransferState, A as AxelarTransferType, t as AxelarTransferWrapper, Q as BalanceRequestChainEntry, V as BalanceResponseChainEntry, U as BalanceResponseDenomEntry, b6 as BalancesRequest, bj as BalancesResponse, W as BankSend, X as BankSendWrapper, Y as Bridge, B as BridgeType, bk as BridgesResponse, v as CCTPTransfer, w as CCTPTransferInfo, g as CCTPTransferState, x as CCTPTransferTxs, y as CCTPTransferWrapper, Z as Chain, _ as ChainAffiliates, aw as ChainTransaction, e as ChainType, bh as ChainsRequest, bi as ChainsResponse, bG as ContentType, $ as ContractCallWithTokenError, C as ContractCallWithTokenErrorType, a0 as ContractCallWithTokenTxs, a1 as CosmWasmContractMsg, a2 as CosmWasmContractMsgWrapper, b3 as CosmosModuleSupport, a6 as CosmosMsg, a7 as CosmosTx, a8 as CosmosTxWrapper, a3 as Erc20Approval, a5 as Error, a4 as ErrorDetail, aY as EurekaTransfer, aZ as EurekaTransferInfo, a_ as EurekaTransferWrapper, a9 as EvmSwap, aa as EvmSwapWrapper, ab as EvmTx, ac as EvmTxWrapper, b5 as Fee, af as FeeAsset, F as FeeBehavior, a as FeeType, bC as FullRequestParams, bz as FungibleAssetsBetweenChainsCreateResponse, ah as GRPCStatusCode, ag as GoFastFee, J as GoFastTransfer, M as GoFastTransferInfo, G as GoFastTransferState, K as GoFastTransferTxs, N as GoFastTransferWrapper, bH as HttpClient, bF as HttpResponse, ai as HyperlaneTransfer, aj as HyperlaneTransferInfo, H as HyperlaneTransferState, ak as HyperlaneTransferTransactions, al as HyperlaneTransferWrapper, am as IBCTransferInfo, b4 as IbcCapabilities, bf as IbcOriginAssetsRequest, by as IbcOriginAssetsResponse, a$ as LayerZeroTransfer, b0 as LayerZeroTransferInfo, L as LayerZeroTransferState, at as LayerZeroTransferTransactions, b1 as LayerZeroTransferWrapper, an as Msg, b9 as MsgsDirectRequest, bs as MsgsDirectResponse, b8 as MsgsRequest, br as MsgsResponse, ap as MultiChainMsg, aq as MultiChainMsgWrapper, aP as OPInitTransfer, aR as OPInitTransferInfo, O as OPInitTransferState, aS as OPInitTransferTxs, aQ as OPInitTransferWrapper, ar as Operation, as as OptionalAsset, au as Packet, av as PacketError, P as PacketErrorType, ax as PostHandler, bA as QueryParamsType, d as Reason, b2 as RecommendationRequest, bD as RequestParams, bB as ResponseFormat, ay as Route, R as RoutePriceWarningType, bq as RouteResponse, az as SendTokenError, c as SendTokenErrorType, aA as SendTokenTxs, u as SmartRelayFeeQuote, aJ as SmartSwapExactCoinIn, aL as SmartSwapInWrapper, aK as SmartSwapOptions, z as StargateTransfer, E as StargateTransferInfo, f as StargateTransferState, D as StargateTransferTxs, I as StargateTransferWrapper, aB as StatusError, S as StatusErrorType, bw as StatusRequest, bx as StatusResponse, be as StatusTxResponse, bu as SubmitResponse, bb as SubmitTxRequest, ad as SvmTx, ae as SvmTxWrapper, aC as Swap, aD as SwapExactCoinIn, aE as SwapExactCoinOut, aF as SwapInWrapper, aG as SwapOperation, aH as SwapOutWrapper, aI as SwapRoute, aM as SwapVenue, aN as SwapWrapper, bv as TrackResponse, bc as TrackTxRequest, bd as TrackTxResponse, aO as TransactionExecutionErrorDetails, b as TransactionState, aT as Transfer, aV as TransferAssetRelease, aU as TransferEvent, T as TransferState, aW as TransferStatus, aX as TransferWrapper, ao as Tx, bl as VenuesRequest, bm as VenuesResponse } from './swaggerTypes-Dr4I6vW2.js';
|
|
2
|
+
export { C as ClientTransferEvent, E as ExecuteRouteOptions, O as OverallStatus, R as RouteDetails, a as RouteStatus, h as TransactionCallbacks, T as TransactionDetails, b as TransactionStatus, c as TransferEventStatus, d as TransferType, e as executeRoute, f as getSimpleOverallStatus, g as getTransferEventsFromTxStatusResponse, s as subscribeToRouteStatus } from './callbacks-CZNSHCBb.js';
|
|
3
|
+
export { B as BaseSettings, E as EndpointOptions, b as GasOptions, G as GetFallbackGasAmount, a as GetGasPrice, e as SignCosmosMessageAminoOptions, d as SignCosmosMessageDirectOptions, c as SignCosmosMessageOptionsBase, S as SignerGetters, T as TxResult, U as UserAddress, V as ValidateGasResult } from './client-types-BX_0924O.js';
|
|
4
4
|
export { assets } from './api/getAssets.js';
|
|
5
5
|
export { assetsBetweenChains } from './api/getAssetsBetweenChains.js';
|
|
6
6
|
export { bridges } from './api/getBridges.js';
|
|
@@ -19,15 +19,15 @@ export { trackTransaction } from './api/postTrackTransaction.js';
|
|
|
19
19
|
export { TxStatusResponse, transactionStatus } from './api/postTransactionStatus.js';
|
|
20
20
|
export { ExecuteMultipleRoutesOptions, executeMultipleRoutes } from './public-functions/executeMultipleRoutes.js';
|
|
21
21
|
export { getSigningStargateClient, getSigningStargateClientProps } from './public-functions/getSigningStargateClient.js';
|
|
22
|
-
export { C as ClientState, S as SkipClientOptions, s as setClientOptions } from './setClientOptions-
|
|
22
|
+
export { C as ClientState, S as SkipClientOptions, s as setClientOptions } from './setClientOptions-DD5Mzkw_.js';
|
|
23
23
|
export { getRecommendedGasPrice } from './public-functions/getRecommendedGasPrice.js';
|
|
24
24
|
export { getFeeInfoForChain } from './public-functions/getFeeInfoForChain.js';
|
|
25
25
|
export { SetApiOptionsProps, setApiOptions } from './public-functions/setApiOptions.js';
|
|
26
|
-
export { waitForTransaction } from './public-functions/waitForTransaction.js';
|
|
26
|
+
export { waitForTransaction, waitForTransactionWithCancel } from './public-functions/waitForTransaction.js';
|
|
27
27
|
export { getCosmosGasAmountForMessage } from './public-functions/getCosmosGasAmountForMessage.js';
|
|
28
28
|
export { getEVMGasAmountForMessage } from './public-functions/getEvmGasAmountForMessage.js';
|
|
29
29
|
export { validateCosmosGasBalance } from './public-functions/validateCosmosGasBalance.js';
|
|
30
|
-
import './generateApi-
|
|
30
|
+
import './generateApi-Clc85Kxw.js';
|
|
31
31
|
import '@cosmjs/amino';
|
|
32
32
|
import '@cosmjs/proto-signing';
|
|
33
33
|
import '@cosmjs/stargate';
|
|
@@ -425,7 +425,9 @@ interface AxelarTransferInfoJson {
|
|
|
425
425
|
* * `AXELAR_TRANSFER_FAILURE` - Axelar transfer failed
|
|
426
426
|
*/
|
|
427
427
|
state: AxelarTransferStateJson;
|
|
428
|
-
txs:
|
|
428
|
+
txs: {
|
|
429
|
+
contract_call_with_token_txs?: ContractCallWithTokenTxsJson;
|
|
430
|
+
} | SendTokenTxsJson;
|
|
429
431
|
/**
|
|
430
432
|
* Axelar transfer type:
|
|
431
433
|
* * `AXELAR_TRANSFER_CONTRACT_CALL_WITH_TOKEN` - GMP contract call with token transfer type
|
|
@@ -1851,6 +1853,4 @@ interface FungibleAssetsBetweenChainsCreateResponseJson {
|
|
|
1851
1853
|
assets_between_chains?: AssetBetweenChainsJson[];
|
|
1852
1854
|
}
|
|
1853
1855
|
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
export { type AcknowledgementErrorDetailsJson, type AffiliateJson, type ApiErrorJson, type AssetBetweenChainsJson, type AssetJson, type AssetRecommendationJson, type AssetRecommendationsRequestJson, type AssetRecommendationsResponseJson, type AssetsBetweenChainsRequestJson, type AssetsFromSourceRequestJson, type AssetsFromSourceResponseJson, type AssetsRequestJson, type AssetsResponseJson, AutopilotActionJson, type AutopilotMsgJson, type AutopilotMsgWrapperJson, type AxelarTransferInfoJson, type AxelarTransferJson, AxelarTransferStateJson, AxelarTransferTypeJson, type AxelarTransferWrapperJson, type BalanceRequestChainEntryJson, type BalanceResponseChainEntryJson, type BalanceResponseDenomEntryJson, type BalancesRequestJson, type BalancesResponseJson, type BankSendJson, type BankSendWrapperJson, type BridgeJson, BridgeTypeJson, type BridgesResponseJson, type CCTPTransferInfoJson, type CCTPTransferJson, CCTPTransferStateJson, type CCTPTransferTxsJson, type CCTPTransferWrapperJson, type ChainAffiliatesJson, type ChainJson, type ChainTransactionJson, ChainTypeJson, type ChainsRequestJson, type ChainsResponseJson, type ContractCallWithTokenErrorJson, ContractCallWithTokenErrorTypeJson, type ContractCallWithTokenTxsJson, type CosmWasmContractMsgJson, type CosmWasmContractMsgWrapperJson, type CosmosModuleSupportJson, type CosmosMsgJson, type CosmosTxJson, type CosmosTxWrapperJson, type Erc20ApprovalJson, type ErrorDetailJson, type ErrorJson, type EurekaTransferInfoJson, type EurekaTransferJson, type EurekaTransferWrapperJson, type EvmSwapJson, type EvmSwapWrapperJson, type EvmTxJson, type EvmTxWrapperJson, type FeeAssetJson, FeeBehaviorJson, type FeeJson, FeeTypeJson, type FungibleAssetsBetweenChainsCreateResponseJson, GAS_STATION_CHAIN_IDS, type GRPCStatusCodeJson, type GoFastFeeJson, type GoFastTransferInfoJson, type GoFastTransferJson, GoFastTransferStateJson, type GoFastTransferTxsJson, type GoFastTransferWrapperJson, type HyperlaneTransferInfoJson, type HyperlaneTransferJson, HyperlaneTransferStateJson, type HyperlaneTransferTransactionsJson, type HyperlaneTransferWrapperJson, type IBCTransferInfoJson, type IbcCapabilitiesJson, type IbcOriginAssetsRequestJson, type IbcOriginAssetsResponseJson, type LayerZeroTransferInfoJson, type LayerZeroTransferJson, LayerZeroTransferStateJson, type LayerZeroTransferTransactionsJson, type LayerZeroTransferWrapperJson, type MsgJson, type MsgsDirectRequestJson, type MsgsDirectResponseJson, type MsgsRequestJson, type MsgsResponseJson, type MultiChainMsgJson, type MultiChainMsgWrapperJson, type OPInitTransferInfoJson, type OPInitTransferJson, OPInitTransferStateJson, type OPInitTransferTxsJson, type OPInitTransferWrapperJson, type OperationJson, type OptionalAssetJson, type PacketErrorJson, PacketErrorTypeJson, type PacketJson, type PostHandlerJson, ReasonJson, type RecommendationRequestJson, type RouteJson, RoutePriceWarningTypeJson, type RouteRequestJson, type RouteResponseJson, type SendTokenErrorJson, SendTokenErrorTypeJson, type SendTokenTxsJson, type SmartRelayFeeQuoteJson, type SmartSwapExactCoinInJson, type SmartSwapInWrapperJson, type SmartSwapOptionsJson, type StargateTransferInfoJson, type StargateTransferJson, StargateTransferStateJson, type StargateTransferTxsJson, type StargateTransferWrapperJson, type StatusErrorJson, StatusErrorTypeJson, type StatusRequestJson, type StatusResponseJson, type StatusTxResponseJson, type SubmitResponseJson, type SubmitTxRequestJson, type SvmTxJson, type SvmTxWrapperJson, type SwapExactCoinInJson, type SwapExactCoinOutJson, type SwapInWrapperJson, type SwapJson, type SwapOperationJson, type SwapOutWrapperJson, type SwapRouteJson, type SwapVenueJson, type SwapWrapperJson, type TrackResponseJson, type TrackTxRequestJson, type TrackTxResponseJson, type TransactionExecutionErrorDetailsJson, TransactionStateJson, type TransferAssetReleaseJson, type TransferEventJson, type TransferJson, TransferStateJson, type TransferStatusJson, type TransferWrapperJson, type TxJson, type VenuesRequestJson, type VenuesResponseJson };
|
|
1856
|
+
export { type AcknowledgementErrorDetailsJson, type AffiliateJson, type ApiErrorJson, type AssetBetweenChainsJson, type AssetJson, type AssetRecommendationJson, type AssetRecommendationsRequestJson, type AssetRecommendationsResponseJson, type AssetsBetweenChainsRequestJson, type AssetsFromSourceRequestJson, type AssetsFromSourceResponseJson, type AssetsRequestJson, type AssetsResponseJson, AutopilotActionJson, type AutopilotMsgJson, type AutopilotMsgWrapperJson, type AxelarTransferInfoJson, type AxelarTransferJson, AxelarTransferStateJson, AxelarTransferTypeJson, type AxelarTransferWrapperJson, type BalanceRequestChainEntryJson, type BalanceResponseChainEntryJson, type BalanceResponseDenomEntryJson, type BalancesRequestJson, type BalancesResponseJson, type BankSendJson, type BankSendWrapperJson, type BridgeJson, BridgeTypeJson, type BridgesResponseJson, type CCTPTransferInfoJson, type CCTPTransferJson, CCTPTransferStateJson, type CCTPTransferTxsJson, type CCTPTransferWrapperJson, type ChainAffiliatesJson, type ChainJson, type ChainTransactionJson, ChainTypeJson, type ChainsRequestJson, type ChainsResponseJson, type ContractCallWithTokenErrorJson, ContractCallWithTokenErrorTypeJson, type ContractCallWithTokenTxsJson, type CosmWasmContractMsgJson, type CosmWasmContractMsgWrapperJson, type CosmosModuleSupportJson, type CosmosMsgJson, type CosmosTxJson, type CosmosTxWrapperJson, type Erc20ApprovalJson, type ErrorDetailJson, type ErrorJson, type EurekaTransferInfoJson, type EurekaTransferJson, type EurekaTransferWrapperJson, type EvmSwapJson, type EvmSwapWrapperJson, type EvmTxJson, type EvmTxWrapperJson, type FeeAssetJson, FeeBehaviorJson, type FeeJson, FeeTypeJson, type FungibleAssetsBetweenChainsCreateResponseJson, type GRPCStatusCodeJson, type GoFastFeeJson, type GoFastTransferInfoJson, type GoFastTransferJson, GoFastTransferStateJson, type GoFastTransferTxsJson, type GoFastTransferWrapperJson, type HyperlaneTransferInfoJson, type HyperlaneTransferJson, HyperlaneTransferStateJson, type HyperlaneTransferTransactionsJson, type HyperlaneTransferWrapperJson, type IBCTransferInfoJson, type IbcCapabilitiesJson, type IbcOriginAssetsRequestJson, type IbcOriginAssetsResponseJson, type LayerZeroTransferInfoJson, type LayerZeroTransferJson, LayerZeroTransferStateJson, type LayerZeroTransferTransactionsJson, type LayerZeroTransferWrapperJson, type MsgJson, type MsgsDirectRequestJson, type MsgsDirectResponseJson, type MsgsRequestJson, type MsgsResponseJson, type MultiChainMsgJson, type MultiChainMsgWrapperJson, type OPInitTransferInfoJson, type OPInitTransferJson, OPInitTransferStateJson, type OPInitTransferTxsJson, type OPInitTransferWrapperJson, type OperationJson, type OptionalAssetJson, type PacketErrorJson, PacketErrorTypeJson, type PacketJson, type PostHandlerJson, ReasonJson, type RecommendationRequestJson, type RouteJson, RoutePriceWarningTypeJson, type RouteRequestJson, type RouteResponseJson, type SendTokenErrorJson, SendTokenErrorTypeJson, type SendTokenTxsJson, type SmartRelayFeeQuoteJson, type SmartSwapExactCoinInJson, type SmartSwapInWrapperJson, type SmartSwapOptionsJson, type StargateTransferInfoJson, type StargateTransferJson, StargateTransferStateJson, type StargateTransferTxsJson, type StargateTransferWrapperJson, type StatusErrorJson, StatusErrorTypeJson, type StatusRequestJson, type StatusResponseJson, type StatusTxResponseJson, type SubmitResponseJson, type SubmitTxRequestJson, type SvmTxJson, type SvmTxWrapperJson, type SwapExactCoinInJson, type SwapExactCoinOutJson, type SwapInWrapperJson, type SwapJson, type SwapOperationJson, type SwapOutWrapperJson, type SwapRouteJson, type SwapVenueJson, type SwapWrapperJson, type TrackResponseJson, type TrackTxRequestJson, type TrackTxResponseJson, type TransactionExecutionErrorDetailsJson, TransactionStateJson, type TransferAssetReleaseJson, type TransferEventJson, type TransferJson, TransferStateJson, type TransferStatusJson, type TransferWrapperJson, type TxJson, type VenuesRequestJson, type VenuesResponseJson };
|
package/dist/esm/index.js
CHANGED
|
@@ -1,34 +1,33 @@
|
|
|
1
|
-
export { AutopilotActionJson, AxelarTransferStateJson, AxelarTransferTypeJson, BridgeTypeJson, CCTPTransferStateJson, ChainTypeJson, ContractCallWithTokenErrorTypeJson, FeeBehaviorJson, FeeTypeJson, GoFastTransferStateJson, HyperlaneTransferStateJson, LayerZeroTransferStateJson, OPInitTransferStateJson, PacketErrorTypeJson, ReasonJson, RoutePriceWarningTypeJson, SendTokenErrorTypeJson, StargateTransferStateJson, StatusErrorTypeJson, TransactionStateJson, TransferStateJson, getRouteWithGasOnReceive } from './chunk-
|
|
2
|
-
export { setApiOptions } from './chunk-
|
|
3
|
-
export { setClientOptions } from './chunk-
|
|
4
|
-
export { waitForTransaction } from './chunk-
|
|
5
|
-
export { executeMultipleRoutes } from './chunk-
|
|
6
|
-
export { executeRoute } from './chunk-
|
|
7
|
-
import './chunk-
|
|
8
|
-
export { TransferType, getSimpleOverallStatus, getTransferEventsFromTxStatusResponse, subscribeToRouteStatus } from './chunk-
|
|
9
|
-
export { validateCosmosGasBalance } from './chunk-
|
|
1
|
+
export { AutopilotActionJson, AxelarTransferStateJson, AxelarTransferTypeJson, BridgeTypeJson, CCTPTransferStateJson, ChainTypeJson, ContractCallWithTokenErrorTypeJson, FeeBehaviorJson, FeeTypeJson, GoFastTransferStateJson, HyperlaneTransferStateJson, LayerZeroTransferStateJson, OPInitTransferStateJson, PacketErrorTypeJson, ReasonJson, RoutePriceWarningTypeJson, SendTokenErrorTypeJson, StargateTransferStateJson, StatusErrorTypeJson, TransactionStateJson, TransferStateJson, getRouteWithGasOnReceive } from './chunk-32JIBODG.js';
|
|
2
|
+
export { setApiOptions } from './chunk-QYXGDTUU.js';
|
|
3
|
+
export { setClientOptions } from './chunk-TON3V7SK.js';
|
|
4
|
+
export { waitForTransaction, waitForTransactionWithCancel } from './chunk-E4NRDAVO.js';
|
|
5
|
+
export { executeMultipleRoutes } from './chunk-6ERJCOUK.js';
|
|
6
|
+
export { executeRoute } from './chunk-DRWCXWGY.js';
|
|
7
|
+
import './chunk-PBGKHTV4.js';
|
|
8
|
+
export { TransferType, getSimpleOverallStatus, getTransferEventsFromTxStatusResponse, subscribeToRouteStatus } from './chunk-3DIX6KRJ.js';
|
|
9
|
+
export { validateCosmosGasBalance } from './chunk-KXS5UH7E.js';
|
|
10
10
|
export { getCosmosGasAmountForMessage } from './chunk-GLH7IRLX.js';
|
|
11
11
|
import './chunk-F2LQB2DP.js';
|
|
12
12
|
export { getEVMGasAmountForMessage } from './chunk-GV2QOWB4.js';
|
|
13
|
-
export { getRecommendedGasPrice } from './chunk-
|
|
13
|
+
export { getRecommendedGasPrice } from './chunk-ACRGYWFW.js';
|
|
14
14
|
import './chunk-KS764SOZ.js';
|
|
15
|
-
export { getFeeInfoForChain } from './chunk-
|
|
16
|
-
export {
|
|
17
|
-
export { getSigningStargateClient } from './chunk-GLM7QWYT.js';
|
|
15
|
+
export { getFeeInfoForChain } from './chunk-ERN6U7FJ.js';
|
|
16
|
+
export { getSigningStargateClient } from './chunk-VMEHGKH7.js';
|
|
18
17
|
import './chunk-RTDD7HZ3.js';
|
|
19
18
|
import './chunk-O4J7DHZA.js';
|
|
20
|
-
export { ibcOriginAssets } from './chunk-
|
|
21
|
-
export { messages } from './chunk-
|
|
22
|
-
export { messagesDirect } from './chunk-
|
|
23
|
-
export { recommendAssets } from './chunk-
|
|
24
|
-
export { route } from './chunk-
|
|
25
|
-
export { submitTransaction } from './chunk-
|
|
26
|
-
export { trackTransaction } from './chunk-
|
|
27
|
-
export { transactionStatus } from './chunk-
|
|
28
|
-
export { assetsBetweenChains } from './chunk-
|
|
29
|
-
export { bridges } from './chunk-
|
|
30
|
-
export { venues } from './chunk-
|
|
31
|
-
export { assetsFromSource } from './chunk-
|
|
32
|
-
export { ClientState, assets, balances, chains } from './chunk-
|
|
33
|
-
import './chunk-
|
|
19
|
+
export { ibcOriginAssets } from './chunk-UN46DUOV.js';
|
|
20
|
+
export { messages } from './chunk-P36PE4CR.js';
|
|
21
|
+
export { messagesDirect } from './chunk-XNU3TKKM.js';
|
|
22
|
+
export { recommendAssets } from './chunk-HNU2Y3JI.js';
|
|
23
|
+
export { route } from './chunk-KZKAL5ZN.js';
|
|
24
|
+
export { submitTransaction } from './chunk-ETBJVFQP.js';
|
|
25
|
+
export { trackTransaction } from './chunk-SXBG57J3.js';
|
|
26
|
+
export { transactionStatus } from './chunk-N4PTRCNT.js';
|
|
27
|
+
export { assetsBetweenChains } from './chunk-UHCKOKBM.js';
|
|
28
|
+
export { bridges } from './chunk-3JHLVPRG.js';
|
|
29
|
+
export { venues } from './chunk-A5NZMSTI.js';
|
|
30
|
+
export { assetsFromSource } from './chunk-TGTOO2ZQ.js';
|
|
31
|
+
export { ClientState, assets, balances, chains } from './chunk-J24LYWJE.js';
|
|
32
|
+
import './chunk-F66EKL3W.js';
|
|
34
33
|
export { Api, AutopilotAction, AxelarTransferState, AxelarTransferType, BridgeType, CCTPTransferState, ChainType, ContentType, ContractCallWithTokenErrorType, FeeBehavior, FeeType, GoFastTransferState, HttpClient, HyperlaneTransferState, LayerZeroTransferState, OPInitTransferState, PacketErrorType, Reason, RoutePriceWarningType, SendTokenErrorType, StargateTransferState, StatusErrorType, TransactionState, TransferState } from './chunk-HP5EMWC6.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { h as TransactionCallbacks } from '../callbacks-
|
|
2
|
-
import { bq as RouteResponse, a6 as CosmosMsg, ax as PostHandler } from '../swaggerTypes-
|
|
3
|
-
import { A as ApiRequest } from '../generateApi-
|
|
4
|
-
import { S as SignerGetters, b as GasOptions, B as BaseSettings, U as UserAddress } from '../client-types-
|
|
1
|
+
import { h as TransactionCallbacks } from '../callbacks-CZNSHCBb.js';
|
|
2
|
+
import { bq as RouteResponse, a6 as CosmosMsg, ax as PostHandler } from '../swaggerTypes-Dr4I6vW2.js';
|
|
3
|
+
import { A as ApiRequest } from '../generateApi-Clc85Kxw.js';
|
|
4
|
+
import { S as SignerGetters, b as GasOptions, B as BaseSettings, U as UserAddress } from '../client-types-BX_0924O.js';
|
|
5
5
|
import '../api/postTransactionStatus.js';
|
|
6
6
|
import '../apiState-1VvikVK-.js';
|
|
7
7
|
import '@cosmjs/amino';
|
|
@@ -1,20 +1,19 @@
|
|
|
1
|
-
export { executeMultipleRoutes } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
4
|
-
import '../chunk-
|
|
1
|
+
export { executeMultipleRoutes } from '../chunk-6ERJCOUK.js';
|
|
2
|
+
import '../chunk-PBGKHTV4.js';
|
|
3
|
+
import '../chunk-3DIX6KRJ.js';
|
|
4
|
+
import '../chunk-KXS5UH7E.js';
|
|
5
5
|
import '../chunk-GLH7IRLX.js';
|
|
6
6
|
import '../chunk-F2LQB2DP.js';
|
|
7
7
|
import '../chunk-GV2QOWB4.js';
|
|
8
8
|
import '../chunk-KS764SOZ.js';
|
|
9
|
-
import '../chunk-
|
|
10
|
-
import '../chunk-GLM7QWYT.js';
|
|
9
|
+
import '../chunk-VMEHGKH7.js';
|
|
11
10
|
import '../chunk-RTDD7HZ3.js';
|
|
12
11
|
import '../chunk-O4J7DHZA.js';
|
|
13
|
-
import '../chunk-
|
|
14
|
-
import '../chunk-
|
|
15
|
-
import '../chunk-
|
|
16
|
-
import '../chunk-
|
|
17
|
-
import '../chunk-
|
|
18
|
-
import '../chunk-
|
|
19
|
-
import '../chunk-
|
|
12
|
+
import '../chunk-P36PE4CR.js';
|
|
13
|
+
import '../chunk-ETBJVFQP.js';
|
|
14
|
+
import '../chunk-SXBG57J3.js';
|
|
15
|
+
import '../chunk-N4PTRCNT.js';
|
|
16
|
+
import '../chunk-A5NZMSTI.js';
|
|
17
|
+
import '../chunk-J24LYWJE.js';
|
|
18
|
+
import '../chunk-F66EKL3W.js';
|
|
20
19
|
import '../chunk-HP5EMWC6.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { E as ExecuteRouteOptions, e as executeRoute } from '../callbacks-
|
|
2
|
-
import '../swaggerTypes-
|
|
3
|
-
import '../generateApi-
|
|
4
|
-
import '../client-types-
|
|
1
|
+
export { E as ExecuteRouteOptions, e as executeRoute } from '../callbacks-CZNSHCBb.js';
|
|
2
|
+
import '../swaggerTypes-Dr4I6vW2.js';
|
|
3
|
+
import '../generateApi-Clc85Kxw.js';
|
|
4
|
+
import '../client-types-BX_0924O.js';
|
|
5
5
|
import '../api/postTransactionStatus.js';
|
|
6
6
|
import '../apiState-1VvikVK-.js';
|
|
7
7
|
import '@cosmjs/amino';
|
|
@@ -1,20 +1,19 @@
|
|
|
1
|
-
export { executeRoute } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
4
|
-
import '../chunk-
|
|
1
|
+
export { executeRoute } from '../chunk-DRWCXWGY.js';
|
|
2
|
+
import '../chunk-PBGKHTV4.js';
|
|
3
|
+
import '../chunk-3DIX6KRJ.js';
|
|
4
|
+
import '../chunk-KXS5UH7E.js';
|
|
5
5
|
import '../chunk-GLH7IRLX.js';
|
|
6
6
|
import '../chunk-F2LQB2DP.js';
|
|
7
7
|
import '../chunk-GV2QOWB4.js';
|
|
8
8
|
import '../chunk-KS764SOZ.js';
|
|
9
|
-
import '../chunk-
|
|
10
|
-
import '../chunk-GLM7QWYT.js';
|
|
9
|
+
import '../chunk-VMEHGKH7.js';
|
|
11
10
|
import '../chunk-RTDD7HZ3.js';
|
|
12
11
|
import '../chunk-O4J7DHZA.js';
|
|
13
|
-
import '../chunk-
|
|
14
|
-
import '../chunk-
|
|
15
|
-
import '../chunk-
|
|
16
|
-
import '../chunk-
|
|
17
|
-
import '../chunk-
|
|
18
|
-
import '../chunk-
|
|
19
|
-
import '../chunk-
|
|
12
|
+
import '../chunk-P36PE4CR.js';
|
|
13
|
+
import '../chunk-ETBJVFQP.js';
|
|
14
|
+
import '../chunk-SXBG57J3.js';
|
|
15
|
+
import '../chunk-N4PTRCNT.js';
|
|
16
|
+
import '../chunk-A5NZMSTI.js';
|
|
17
|
+
import '../chunk-J24LYWJE.js';
|
|
18
|
+
import '../chunk-F66EKL3W.js';
|
|
20
19
|
import '../chunk-HP5EMWC6.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EncodeObject } from '@cosmjs/proto-signing';
|
|
2
2
|
import { SigningStargateClient } from '@cosmjs/stargate';
|
|
3
|
-
import { a6 as CosmosMsg } from '../swaggerTypes-
|
|
3
|
+
import { a6 as CosmosMsg } from '../swaggerTypes-Dr4I6vW2.js';
|
|
4
4
|
|
|
5
5
|
declare const DEFAULT_GAS_MULTIPLIER = 1.5;
|
|
6
6
|
declare function getCosmosGasAmountForMessage(client: SigningStargateClient, signerAddress: string, chainId: string, messages?: CosmosMsg[], encodedMsgs?: EncodeObject[], multiplier?: number): Promise<string>;
|