@skip-go/client 1.1.4 → 1.1.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/api/getAssets.js +2 -2
- package/dist/api/getAssetsBetweenChains.js +2 -2
- package/dist/api/getBridges.js +2 -2
- package/dist/api/getChains.js +2 -2
- package/dist/api/getVenues.js +2 -2
- package/dist/api/postAssetsFromSource.js +3 -3
- package/dist/api/postBalances.js +2 -2
- package/dist/api/postIbcOriginAssets.js +2 -2
- package/dist/api/postMessages.js +2 -2
- package/dist/api/postMessagesDirect.js +2 -2
- package/dist/api/postRecommendAssets.js +2 -2
- package/dist/api/postRoute.js +2 -2
- package/dist/api/postSubmitTransaction.js +2 -2
- package/dist/api/postTrackTransaction.js +2 -2
- package/dist/api/postTransactionStatus.js +2 -2
- package/dist/callbacks-BinMFSvp.d.ts +33 -0
- package/dist/{chunk-7FSLD7Y4.js → chunk-27P5BVWA.js} +1 -1
- package/dist/{chunk-R2N4D2PY.js → chunk-3G66QUIR.js} +1 -1
- package/dist/{chunk-2NYWLY5S.js → chunk-5G6WVH73.js} +1 -1
- package/dist/{chunk-5EU3SRDQ.js → chunk-5KEBJTG2.js} +2 -2
- package/dist/{chunk-BCN2WD5Q.js → chunk-BYK77RST.js} +1 -1
- package/dist/{chunk-RL5AVCSG.js → chunk-C6EHVJEC.js} +1 -1
- package/dist/{chunk-PZM2IB6H.js → chunk-DQJUP5YB.js} +1 -1
- package/dist/{chunk-LJSGCCOX.js → chunk-ECFSAIIO.js} +1 -1
- package/dist/{chunk-R4PWQNPU.js → chunk-FB32UNL7.js} +7 -37
- package/dist/{chunk-KWVMUF5R.js → chunk-G3DPNB66.js} +1 -1
- package/dist/{chunk-GTJ2EDUG.js → chunk-GHK24RZZ.js} +2 -2
- package/dist/{chunk-EAUM5JYS.js → chunk-I5V6BIOW.js} +1 -1
- package/dist/{chunk-VRPPVMXO.js → chunk-KEXKVEVT.js} +1 -1
- package/dist/{chunk-MB5ENUER.js → chunk-KTCDTZCU.js} +1 -1
- package/dist/{chunk-WWDCZAB5.js → chunk-LJ5Y4YS2.js} +1 -1
- package/dist/{chunk-H6RXHDUX.js → chunk-P7QXKAUS.js} +1 -1
- package/dist/{chunk-R3KHKN33.js → chunk-REIPMX4F.js} +1 -1
- package/dist/{chunk-7P6AOFMX.js → chunk-VYZE3SLF.js} +1 -1
- package/dist/chunk-WYKGBXPO.js +34 -0
- package/dist/{chunk-4TKPLI5S.js → chunk-YKWVCWO4.js} +1 -1
- package/dist/index.d.ts +4 -2
- package/dist/index.js +21 -20
- package/dist/public-functions/executeRoute.d.ts +40 -4
- package/dist/public-functions/executeRoute.js +10 -9
- package/dist/public-functions/getFeeInfoForChain.js +3 -3
- package/dist/public-functions/getRecommendedGasPrice.js +4 -4
- package/dist/public-functions/getSigningStargateClient.js +3 -3
- package/dist/public-functions/setApiOptions.js +2 -2
- package/dist/public-functions/setClientOptions.js +3 -3
- package/dist/public-functions/waitForTransaction.d.ts +621 -0
- package/dist/public-functions/waitForTransaction.js +4 -0
- package/package.json +1 -1
- package/dist/executeRoute-Bob9mV8C.d.ts +0 -69
- package/dist/{chunk-SOGMQT4H.js → chunk-SN5GGN5K.js} +5 -5
package/dist/api/getAssets.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { assets, transformAssetsMap } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { assets, transformAssetsMap } from '../chunk-I5V6BIOW.js';
|
|
2
|
+
import '../chunk-SN5GGN5K.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { assetsBetweenChains } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { assetsBetweenChains } from '../chunk-REIPMX4F.js';
|
|
2
|
+
import '../chunk-SN5GGN5K.js';
|
package/dist/api/getBridges.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { bridges } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { bridges } from '../chunk-KEXKVEVT.js';
|
|
2
|
+
import '../chunk-SN5GGN5K.js';
|
package/dist/api/getChains.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { chains } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { chains } from '../chunk-I5V6BIOW.js';
|
|
2
|
+
import '../chunk-SN5GGN5K.js';
|
package/dist/api/getVenues.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { venues } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { venues } from '../chunk-C6EHVJEC.js';
|
|
2
|
+
import '../chunk-SN5GGN5K.js';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { assetsFromSource } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
1
|
+
export { assetsFromSource } from '../chunk-5KEBJTG2.js';
|
|
2
|
+
import '../chunk-I5V6BIOW.js';
|
|
3
|
+
import '../chunk-SN5GGN5K.js';
|
package/dist/api/postBalances.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { balances } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { balances } from '../chunk-I5V6BIOW.js';
|
|
2
|
+
import '../chunk-SN5GGN5K.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { ibcOriginAssets } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { ibcOriginAssets } from '../chunk-LJ5Y4YS2.js';
|
|
2
|
+
import '../chunk-SN5GGN5K.js';
|
package/dist/api/postMessages.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { messages } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { messages } from '../chunk-27P5BVWA.js';
|
|
2
|
+
import '../chunk-SN5GGN5K.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { messagesDirect } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { messagesDirect } from '../chunk-P7QXKAUS.js';
|
|
2
|
+
import '../chunk-SN5GGN5K.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { recommendAssets } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { recommendAssets } from '../chunk-DQJUP5YB.js';
|
|
2
|
+
import '../chunk-SN5GGN5K.js';
|
package/dist/api/postRoute.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { route } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { route } from '../chunk-3G66QUIR.js';
|
|
2
|
+
import '../chunk-SN5GGN5K.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { submitTransaction } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { submitTransaction } from '../chunk-VYZE3SLF.js';
|
|
2
|
+
import '../chunk-SN5GGN5K.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { trackTransaction } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { trackTransaction } from '../chunk-BYK77RST.js';
|
|
2
|
+
import '../chunk-SN5GGN5K.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { transactionStatus } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { transactionStatus } from '../chunk-5G6WVH73.js';
|
|
2
|
+
import '../chunk-SN5GGN5K.js';
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { aU as TransferStatus, T as Erc20Approval } from './swaggerTypes-sZ9ALP9m.js';
|
|
2
|
+
|
|
3
|
+
type CallbackStatus = "success" | "error" | "pending" | "completed";
|
|
4
|
+
type TransactionCallbacks = {
|
|
5
|
+
onTransactionSigned?: (txInfo: {
|
|
6
|
+
chainId: string;
|
|
7
|
+
}) => Promise<void>;
|
|
8
|
+
onTransactionBroadcast?: (txInfo: {
|
|
9
|
+
txHash: string;
|
|
10
|
+
chainId: string;
|
|
11
|
+
}) => Promise<void>;
|
|
12
|
+
onTransactionTracked?: (txInfo: {
|
|
13
|
+
txHash: string;
|
|
14
|
+
chainId: string;
|
|
15
|
+
explorerLink: string;
|
|
16
|
+
}) => Promise<void>;
|
|
17
|
+
onTransactionCompleted?: (txInfo: {
|
|
18
|
+
chainId: string;
|
|
19
|
+
txHash: string;
|
|
20
|
+
status?: TransferStatus;
|
|
21
|
+
}) => Promise<void>;
|
|
22
|
+
onValidateGasBalance?: (value: {
|
|
23
|
+
chainId?: string;
|
|
24
|
+
txIndex?: number;
|
|
25
|
+
status: CallbackStatus;
|
|
26
|
+
}) => Promise<void>;
|
|
27
|
+
onApproveAllowance?: (value: {
|
|
28
|
+
allowance?: Erc20Approval;
|
|
29
|
+
status: CallbackStatus;
|
|
30
|
+
}) => Promise<void>;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
export type { TransactionCallbacks as T };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { transformAssetsMap } from './chunk-
|
|
2
|
-
import { api } from './chunk-
|
|
1
|
+
import { transformAssetsMap } from './chunk-I5V6BIOW.js';
|
|
2
|
+
import { api } from './chunk-SN5GGN5K.js';
|
|
3
3
|
|
|
4
4
|
// src/api/postAssetsFromSource.ts
|
|
5
5
|
var assetsFromSource = api({
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import { BigNumber } from './chunk-VQ5SIQWU.js';
|
|
2
2
|
import { GAS_STATION_CHAIN_IDS } from './chunk-SWYON2RG.js';
|
|
3
|
-
import { getSigningStargateClient, getRpcEndpointForChain, accountParser } from './chunk-
|
|
3
|
+
import { getSigningStargateClient, getRpcEndpointForChain, accountParser } from './chunk-KTCDTZCU.js';
|
|
4
4
|
import { chains, findFirstWorkingEndpoint, getIsEthermint, getIsInitia } from './chunk-36MCR5DZ.js';
|
|
5
5
|
import { MsgDepositForBurn, MsgDepositForBurnWithCaller, MsgExecute, MsgInitiateTokenDeposit, BaseVestingAccount, Timestamp, toTimestamp, Period, fromTimestamp, isSet, fromJsonTimestamp } from './chunk-TD63P2AG.js';
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import { ApiState, wait, createRequestClient, toCamel } from './chunk-SOGMQT4H.js';
|
|
6
|
+
import { waitForTransaction } from './chunk-WYKGBXPO.js';
|
|
7
|
+
import { messages } from './chunk-27P5BVWA.js';
|
|
8
|
+
import { submitTransaction } from './chunk-VYZE3SLF.js';
|
|
9
|
+
import { venues } from './chunk-C6EHVJEC.js';
|
|
10
|
+
import { ClientState, balances } from './chunk-I5V6BIOW.js';
|
|
11
|
+
import { ApiState, wait, createRequestClient, toCamel } from './chunk-SN5GGN5K.js';
|
|
13
12
|
import { PublicKey, Transaction, Connection, LAMPORTS_PER_SOL } from '@solana/web3.js';
|
|
14
13
|
import { bech32m, bech32 } from 'bech32';
|
|
15
14
|
import { StargateClient, GasPrice, calculateFee } from '@cosmjs/stargate';
|
|
@@ -1570,35 +1569,6 @@ var validateGasBalances = async ({
|
|
|
1570
1569
|
ClientState.validateGasResults = validateResult;
|
|
1571
1570
|
};
|
|
1572
1571
|
|
|
1573
|
-
// src/private-functions/waitForTransaction.ts
|
|
1574
|
-
var waitForTransaction = async ({
|
|
1575
|
-
chainId,
|
|
1576
|
-
txHash,
|
|
1577
|
-
onTransactionTracked
|
|
1578
|
-
}) => {
|
|
1579
|
-
const { explorerLink } = await trackTransaction({
|
|
1580
|
-
chainId,
|
|
1581
|
-
txHash
|
|
1582
|
-
});
|
|
1583
|
-
await onTransactionTracked?.({ txHash, chainId, explorerLink });
|
|
1584
|
-
while (true) {
|
|
1585
|
-
const txStatusResponse = await transactionStatus({
|
|
1586
|
-
chainId,
|
|
1587
|
-
txHash
|
|
1588
|
-
});
|
|
1589
|
-
if (txStatusResponse.state === "STATE_COMPLETED_SUCCESS") {
|
|
1590
|
-
return txStatusResponse;
|
|
1591
|
-
}
|
|
1592
|
-
if (txStatusResponse.state === "STATE_COMPLETED_ERROR") {
|
|
1593
|
-
throw new Error(`${txStatusResponse.error?.type}: ${txStatusResponse.error?.message}`);
|
|
1594
|
-
}
|
|
1595
|
-
if (txStatusResponse.state === "STATE_ABANDONED") {
|
|
1596
|
-
throw new Error("Tracking for the transaction has been abandoned");
|
|
1597
|
-
}
|
|
1598
|
-
await wait(1e3);
|
|
1599
|
-
}
|
|
1600
|
-
};
|
|
1601
|
-
|
|
1602
1572
|
// src/private-functions/executeTransactions.ts
|
|
1603
1573
|
var executeTransactions = async (options) => {
|
|
1604
1574
|
const {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { MsgAcceptOwner, MsgAddRemoteTokenMessenger, MsgDepositForBurn, MsgDepositForBurnWithCaller, MsgDisableAttester, MsgEnableAttester, MsgLinkTokenPair, MsgPauseBurningAndMinting, MsgPauseSendingAndReceivingMessages, MsgReceiveMessage, MsgRemoveRemoteTokenMessenger, MsgReplaceDepositForBurn, MsgReplaceMessage, MsgSendMessage, MsgSendMessageWithCaller, MsgUnlinkTokenPair, MsgUnpauseBurningAndMinting, MsgUnpauseSendingAndReceivingMessages, MsgUpdateOwner, MsgUpdateAttesterManager, MsgUpdateTokenController, MsgUpdatePauser, MsgUpdateMaxMessageBodySize, MsgSetMaxBurnAmountPerMessage, MsgUpdateSignatureThreshold, MsgExecute, MsgInitiateTokenDeposit, Coin, isSet, Long, Timestamp, toTimestamp, Period, fromTimestamp, fromJsonTimestamp, padDecimal } from './chunk-TD63P2AG.js';
|
|
2
|
-
import { ClientState } from './chunk-
|
|
3
|
-
import { ApiState, createRequestClient } from './chunk-
|
|
2
|
+
import { ClientState } from './chunk-I5V6BIOW.js';
|
|
3
|
+
import { ApiState, createRequestClient } from './chunk-SN5GGN5K.js';
|
|
4
4
|
import { AminoTypes, createDefaultAminoConverters, defaultRegistryTypes } from '@cosmjs/stargate';
|
|
5
5
|
import { createWasmAminoConverters } from '@cosmjs/cosmwasm-stargate';
|
|
6
6
|
import { Registry } from '@cosmjs/proto-signing';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { chains, findFirstWorkingEndpoint } from './chunk-36MCR5DZ.js';
|
|
2
|
-
import { ClientState } from './chunk-
|
|
2
|
+
import { ClientState } from './chunk-I5V6BIOW.js';
|
|
3
3
|
import { accountFromAny, SigningStargateClient } from '@cosmjs/stargate';
|
|
4
4
|
import { assertDefinedAndNotNull } from '@cosmjs/utils';
|
|
5
5
|
import { BinaryWriter, BinaryReader } from 'cosmjs-types/binary.js';
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { trackTransaction } from './chunk-BYK77RST.js';
|
|
2
|
+
import { transactionStatus } from './chunk-5G6WVH73.js';
|
|
3
|
+
import { wait } from './chunk-SN5GGN5K.js';
|
|
4
|
+
|
|
5
|
+
// src/public-functions/waitForTransaction.ts
|
|
6
|
+
var waitForTransaction = async ({
|
|
7
|
+
chainId,
|
|
8
|
+
txHash,
|
|
9
|
+
onTransactionTracked
|
|
10
|
+
}) => {
|
|
11
|
+
const { explorerLink } = await trackTransaction({
|
|
12
|
+
chainId,
|
|
13
|
+
txHash
|
|
14
|
+
});
|
|
15
|
+
await onTransactionTracked?.({ txHash, chainId, explorerLink });
|
|
16
|
+
while (true) {
|
|
17
|
+
const txStatusResponse = await transactionStatus({
|
|
18
|
+
chainId,
|
|
19
|
+
txHash
|
|
20
|
+
});
|
|
21
|
+
if (txStatusResponse.state === "STATE_COMPLETED_SUCCESS") {
|
|
22
|
+
return txStatusResponse;
|
|
23
|
+
}
|
|
24
|
+
if (txStatusResponse.state === "STATE_COMPLETED_ERROR") {
|
|
25
|
+
throw new Error(`${txStatusResponse.error?.type}: ${txStatusResponse.error?.message}`);
|
|
26
|
+
}
|
|
27
|
+
if (txStatusResponse.state === "STATE_ABANDONED") {
|
|
28
|
+
throw new Error("Tracking for the transaction has been abandoned");
|
|
29
|
+
}
|
|
30
|
+
await wait(1e3);
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
export { waitForTransaction };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DEFAULT_GAS_DENOM_OVERRIDES } from './chunk-SWYON2RG.js';
|
|
2
2
|
import { chains } from './chunk-36MCR5DZ.js';
|
|
3
|
-
import { ClientState } from './chunk-
|
|
3
|
+
import { ClientState } from './chunk-I5V6BIOW.js';
|
|
4
4
|
|
|
5
5
|
// src/private-functions/getDefaultGasTokenForChain.ts
|
|
6
6
|
var getDefaultGasTokenForChain = async (chainId) => {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { A as AcknowledgementErrorDetails, a as Affiliate, bw as Api, bs as ApiConfig, b as ApiError, c as Asset, d as AssetBetweenChains, e as AssetRecommendation, bh as AssetRecommendationsResponse, bd as AssetsFromSourceResponse, bb as AssetsRequest, bc as AssetsResponse, f as AutopilotAction, g as AutopilotMsg, h as AutopilotMsgWrapper, i as AxelarTransfer, j as AxelarTransferInfo, k as AxelarTransferState, l as AxelarTransferType, m as AxelarTransferWrapper, B as BalanceRequestChainEntry, E as BalanceResponseChainEntry, D as BalanceResponseDenomEntry, b7 as BalancesResponse, F as BankSend, H as BankSendWrapper, I as Bridge, J as BridgeType, b8 as BridgesResponse, C as CCTPTransfer, n as CCTPTransferInfo, p as CCTPTransferState, o as CCTPTransferTxs, q as CCTPTransferWrapper, K as Chain, M as ChainAffiliates, am as ChainTransaction, L as ChainType, b5 as ChainsRequest, b6 as ChainsResponse, bu as ContentType, N as ContractCallWithTokenError, O as ContractCallWithTokenErrorType, P as ContractCallWithTokenTxs, Q as CosmWasmContractMsg, R as CosmWasmContractMsgWrapper, b1 as CosmosModuleSupport, W as CosmosMsg, X as CosmosTx, Y as CosmosTxWrapper, T as Erc20Approval, V as Error, U as ErrorDetail, aW as EurekaTransfer, aX as EurekaTransferInfo, aY as EurekaTransferWrapper, Z as EvmSwap, _ as EvmSwapWrapper, $ as EvmTx, a0 as EvmTxWrapper, b4 as Fee, a3 as FeeAsset, b3 as FeeType, bq as FullRequestParams, bn as FungibleAssetsBetweenChainsCreateResponse, a5 as GRPCStatusCode, a4 as GoFastFee, G as GoFastTransfer, y as GoFastTransferInfo, w as GoFastTransferState, x as GoFastTransferTxs, z as GoFastTransferWrapper, bv as HttpClient, bt as HttpResponse, a6 as HyperlaneTransfer, a7 as HyperlaneTransferInfo, a8 as HyperlaneTransferState, a9 as HyperlaneTransferTransactions, aa as HyperlaneTransferWrapper, ab as IBCTransferInfo, b2 as IbcCapabilities, bm as IbcOriginAssetsResponse, aZ as LayerZeroTransfer, a_ as LayerZeroTransferInfo, aP as LayerZeroTransferState, ai as LayerZeroTransferTransactions, a$ as LayerZeroTransferWrapper, ac as Msg, bg as MsgsDirectResponse, bf as MsgsResponse, ae as MultiChainMsg, af as MultiChainMsgWrapper, aK as OPInitTransfer, aM as OPInitTransferInfo, aO as OPInitTransferState, aN as OPInitTransferTxs, aL as OPInitTransferWrapper, ag as Operation, ah as OptionalAsset, aj as Packet, ak as PacketError, al as PacketErrorType, an as PostHandler, bo as QueryParamsType, ao as Reason, b0 as RecommendationRequest, br as RequestParams, bp as ResponseFormat, aq as Route, ap as RoutePriceWarningType, be as RouteResponse, ar as SendTokenError, as as SendTokenErrorType, at as SendTokenTxs, S as SmartRelayFeeQuote, aD as SmartSwapExactCoinIn, aF as SmartSwapInWrapper, aE as SmartSwapOptions, r as StargateTransfer, u as StargateTransferInfo, s as StargateTransferState, t as StargateTransferTxs, v as StargateTransferWrapper, au as StatusError, av as StatusErrorType, bk as StatusRequest, bl as StatusResponse, bi as SubmitResponse, a1 as SvmTx, a2 as SvmTxWrapper, aw as Swap, ax as SwapExactCoinIn, ay as SwapExactCoinOut, az as SwapInWrapper, aA as SwapOperation, aB as SwapOutWrapper, aC as SwapRoute, aG as SwapVenue, aH as SwapWrapper, bj as TrackResponse, aI as TransactionExecutionErrorDetails, aJ as TransactionState, aQ as Transfer, aT as TransferAssetRelease, aR as TransferEvent, aS as TransferState, aU as TransferStatus, aV as TransferWrapper, ad as Tx, b9 as VenuesRequest, ba as VenuesResponse } from './swaggerTypes-sZ9ALP9m.js';
|
|
2
|
-
export {
|
|
2
|
+
export { T as TransactionCallbacks } from './callbacks-BinMFSvp.js';
|
|
3
3
|
export { 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-B_ihV5t6.js';
|
|
4
4
|
export { assets } from './api/getAssets.js';
|
|
5
5
|
export { assetsBetweenChains } from './api/getAssetsBetweenChains.js';
|
|
@@ -16,18 +16,20 @@ export { RouteRequest, route } from './api/postRoute.js';
|
|
|
16
16
|
export { submitTransaction } from './api/postSubmitTransaction.js';
|
|
17
17
|
export { trackTransaction } from './api/postTrackTransaction.js';
|
|
18
18
|
export { TxStatusResponse, transactionStatus } from './api/postTransactionStatus.js';
|
|
19
|
+
export { ExecuteRouteOptions, executeRoute } from './public-functions/executeRoute.js';
|
|
19
20
|
export { getSigningStargateClient, getSigningStargateClientProps } from './public-functions/getSigningStargateClient.js';
|
|
20
21
|
export { S as SkipClientOptions, s as setClientOptions } from './setClientOptions-C4rwBrB4.js';
|
|
21
22
|
export { getRecommendedGasPrice } from './public-functions/getRecommendedGasPrice.js';
|
|
22
23
|
export { getFeeInfoForChain } from './public-functions/getFeeInfoForChain.js';
|
|
23
24
|
export { SetApiOptionsProps, setApiOptions } from './public-functions/setApiOptions.js';
|
|
24
|
-
|
|
25
|
+
export { waitForTransaction } from './public-functions/waitForTransaction.js';
|
|
25
26
|
import '@cosmjs/amino';
|
|
26
27
|
import '@cosmjs/proto-signing';
|
|
27
28
|
import '@cosmjs/stargate';
|
|
28
29
|
import 'viem';
|
|
29
30
|
import '@solana/wallet-adapter-base';
|
|
30
31
|
import './apiState-CdzxTxYd.js';
|
|
32
|
+
import './generateApi-CpUxWvEf.js';
|
|
31
33
|
|
|
32
34
|
interface AcknowledgementErrorDetailsJson {
|
|
33
35
|
/** Error code */
|
package/dist/index.js
CHANGED
|
@@ -1,27 +1,28 @@
|
|
|
1
|
-
export { executeRoute } from './chunk-
|
|
2
|
-
export { getRecommendedGasPrice } from './chunk-
|
|
1
|
+
export { executeRoute } from './chunk-FB32UNL7.js';
|
|
2
|
+
export { getRecommendedGasPrice } from './chunk-ECFSAIIO.js';
|
|
3
3
|
import './chunk-VQ5SIQWU.js';
|
|
4
|
-
export { getFeeInfoForChain } from './chunk-
|
|
4
|
+
export { getFeeInfoForChain } from './chunk-YKWVCWO4.js';
|
|
5
5
|
export { GAS_STATION_CHAIN_IDS } from './chunk-SWYON2RG.js';
|
|
6
|
-
export { getSigningStargateClient } from './chunk-
|
|
6
|
+
export { getSigningStargateClient } from './chunk-KTCDTZCU.js';
|
|
7
7
|
import './chunk-36MCR5DZ.js';
|
|
8
|
-
export { setApiOptions } from './chunk-
|
|
9
|
-
export { setClientOptions } from './chunk-
|
|
8
|
+
export { setApiOptions } from './chunk-G3DPNB66.js';
|
|
9
|
+
export { setClientOptions } from './chunk-GHK24RZZ.js';
|
|
10
10
|
import './chunk-TD63P2AG.js';
|
|
11
|
-
export {
|
|
12
|
-
export {
|
|
13
|
-
export {
|
|
14
|
-
export {
|
|
15
|
-
export {
|
|
16
|
-
export {
|
|
17
|
-
export {
|
|
18
|
-
export {
|
|
19
|
-
export {
|
|
20
|
-
export {
|
|
21
|
-
export {
|
|
22
|
-
export {
|
|
23
|
-
export {
|
|
24
|
-
export {
|
|
11
|
+
export { waitForTransaction } from './chunk-WYKGBXPO.js';
|
|
12
|
+
export { ibcOriginAssets } from './chunk-LJ5Y4YS2.js';
|
|
13
|
+
export { messages } from './chunk-27P5BVWA.js';
|
|
14
|
+
export { messagesDirect } from './chunk-P7QXKAUS.js';
|
|
15
|
+
export { recommendAssets } from './chunk-DQJUP5YB.js';
|
|
16
|
+
export { route } from './chunk-3G66QUIR.js';
|
|
17
|
+
export { submitTransaction } from './chunk-VYZE3SLF.js';
|
|
18
|
+
export { trackTransaction } from './chunk-BYK77RST.js';
|
|
19
|
+
export { transactionStatus } from './chunk-5G6WVH73.js';
|
|
20
|
+
export { assetsBetweenChains } from './chunk-REIPMX4F.js';
|
|
21
|
+
export { bridges } from './chunk-KEXKVEVT.js';
|
|
22
|
+
export { venues } from './chunk-C6EHVJEC.js';
|
|
23
|
+
export { assetsFromSource } from './chunk-5KEBJTG2.js';
|
|
24
|
+
export { assets, balances, chains } from './chunk-I5V6BIOW.js';
|
|
25
|
+
export { Api, AutopilotAction, AxelarTransferState, AxelarTransferType, BridgeType, CCTPTransferState, ChainType, ContentType, ContractCallWithTokenErrorType, FeeType, GoFastTransferState, HttpClient, HyperlaneTransferState, LayerZeroTransferState, OPInitTransferState, PacketErrorType, Reason, RoutePriceWarningType, SendTokenErrorType, StargateTransferState, StatusErrorType, TransactionState, TransferState } from './chunk-SN5GGN5K.js';
|
|
25
26
|
|
|
26
27
|
// src/types/swaggerTypesJson.ts
|
|
27
28
|
var AutopilotActionJson = /* @__PURE__ */ ((AutopilotActionJson2) => {
|
|
@@ -1,9 +1,45 @@
|
|
|
1
|
-
|
|
2
|
-
import '../swaggerTypes-sZ9ALP9m.js';
|
|
3
|
-
import '../generateApi-CpUxWvEf.js';
|
|
4
|
-
import '../client-types-B_ihV5t6.js';
|
|
1
|
+
import { T as TransactionCallbacks } from '../callbacks-BinMFSvp.js';
|
|
2
|
+
import { be as RouteResponse, W as CosmosMsg } from '../swaggerTypes-sZ9ALP9m.js';
|
|
3
|
+
import { A as ApiRequest } from '../generateApi-CpUxWvEf.js';
|
|
4
|
+
import { S as SignerGetters, b as GasOptions, U as UserAddress } from '../client-types-B_ihV5t6.js';
|
|
5
5
|
import '@cosmjs/amino';
|
|
6
6
|
import '@cosmjs/proto-signing';
|
|
7
7
|
import '@cosmjs/stargate';
|
|
8
8
|
import 'viem';
|
|
9
9
|
import '@solana/wallet-adapter-base';
|
|
10
|
+
|
|
11
|
+
/** Execute Route Options */
|
|
12
|
+
type ExecuteRouteOptions = SignerGetters & GasOptions & TransactionCallbacks & Pick<ApiRequest<"msgs">, "timeoutSeconds"> & {
|
|
13
|
+
route: RouteResponse;
|
|
14
|
+
/**
|
|
15
|
+
* Addresses should be in the same order with the `chainIDs` in the `route`
|
|
16
|
+
*/
|
|
17
|
+
userAddresses: UserAddress[];
|
|
18
|
+
simulate?: boolean;
|
|
19
|
+
slippageTolerancePercent?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Arbitrary Tx to be executed before or after route msgs
|
|
22
|
+
*/
|
|
23
|
+
beforeMsg?: CosmosMsg;
|
|
24
|
+
afterMsg?: CosmosMsg;
|
|
25
|
+
/**
|
|
26
|
+
* Set allowance amount to max if EVM transaction requires allowance approval.
|
|
27
|
+
*/
|
|
28
|
+
useUnlimitedApproval?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
/**
|
|
31
|
+
* If `skipApproval` is set to `true`, the router will bypass checking whether
|
|
32
|
+
* the signer has granted approval for the specified token contract on an EVM chain.
|
|
33
|
+
* This can be useful if approval has already been handled externally or there are race conditions.
|
|
34
|
+
*/
|
|
35
|
+
bypassApprovalCheck?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* defaults to true
|
|
38
|
+
* If `batchSimulate` is set to `true`, it will simulate all messages in a batch before the first tx run.
|
|
39
|
+
* If `batchSimulate` is set to `false`, it will simulate each message one by one.
|
|
40
|
+
*/
|
|
41
|
+
batchSimulate?: boolean;
|
|
42
|
+
};
|
|
43
|
+
declare const executeRoute: (options: ExecuteRouteOptions) => Promise<void>;
|
|
44
|
+
|
|
45
|
+
export { type ExecuteRouteOptions, executeRoute };
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
export { executeRoute } from '../chunk-
|
|
1
|
+
export { executeRoute } from '../chunk-FB32UNL7.js';
|
|
2
2
|
import '../chunk-VQ5SIQWU.js';
|
|
3
3
|
import '../chunk-SWYON2RG.js';
|
|
4
|
-
import '../chunk-
|
|
4
|
+
import '../chunk-KTCDTZCU.js';
|
|
5
5
|
import '../chunk-36MCR5DZ.js';
|
|
6
6
|
import '../chunk-TD63P2AG.js';
|
|
7
|
-
import '../chunk-
|
|
8
|
-
import '../chunk-
|
|
9
|
-
import '../chunk-
|
|
10
|
-
import '../chunk-
|
|
11
|
-
import '../chunk-
|
|
12
|
-
import '../chunk-
|
|
13
|
-
import '../chunk-
|
|
7
|
+
import '../chunk-WYKGBXPO.js';
|
|
8
|
+
import '../chunk-27P5BVWA.js';
|
|
9
|
+
import '../chunk-VYZE3SLF.js';
|
|
10
|
+
import '../chunk-BYK77RST.js';
|
|
11
|
+
import '../chunk-5G6WVH73.js';
|
|
12
|
+
import '../chunk-C6EHVJEC.js';
|
|
13
|
+
import '../chunk-I5V6BIOW.js';
|
|
14
|
+
import '../chunk-SN5GGN5K.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { getFeeInfoForChain } from '../chunk-
|
|
1
|
+
export { getFeeInfoForChain } from '../chunk-YKWVCWO4.js';
|
|
2
2
|
import '../chunk-SWYON2RG.js';
|
|
3
3
|
import '../chunk-36MCR5DZ.js';
|
|
4
|
-
import '../chunk-
|
|
5
|
-
import '../chunk-
|
|
4
|
+
import '../chunk-I5V6BIOW.js';
|
|
5
|
+
import '../chunk-SN5GGN5K.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { getRecommendedGasPrice } from '../chunk-
|
|
1
|
+
export { getRecommendedGasPrice } from '../chunk-ECFSAIIO.js';
|
|
2
2
|
import '../chunk-VQ5SIQWU.js';
|
|
3
|
-
import '../chunk-
|
|
3
|
+
import '../chunk-YKWVCWO4.js';
|
|
4
4
|
import '../chunk-SWYON2RG.js';
|
|
5
5
|
import '../chunk-36MCR5DZ.js';
|
|
6
|
-
import '../chunk-
|
|
7
|
-
import '../chunk-
|
|
6
|
+
import '../chunk-I5V6BIOW.js';
|
|
7
|
+
import '../chunk-SN5GGN5K.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { getSigningStargateClient } from '../chunk-
|
|
1
|
+
export { getSigningStargateClient } from '../chunk-KTCDTZCU.js';
|
|
2
2
|
import '../chunk-36MCR5DZ.js';
|
|
3
|
-
import '../chunk-
|
|
4
|
-
import '../chunk-
|
|
3
|
+
import '../chunk-I5V6BIOW.js';
|
|
4
|
+
import '../chunk-SN5GGN5K.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { setApiOptions } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { setApiOptions } from '../chunk-G3DPNB66.js';
|
|
2
|
+
import '../chunk-SN5GGN5K.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { setClientOptions } from '../chunk-
|
|
1
|
+
export { setClientOptions } from '../chunk-GHK24RZZ.js';
|
|
2
2
|
import '../chunk-TD63P2AG.js';
|
|
3
|
-
import '../chunk-
|
|
4
|
-
import '../chunk-
|
|
3
|
+
import '../chunk-I5V6BIOW.js';
|
|
4
|
+
import '../chunk-SN5GGN5K.js';
|