@skip-go/client 1.5.1 → 1.5.3-alpha.0
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 +5 -5
- package/dist/cjs/api/getAssetsBetweenChains.cjs +4 -4
- package/dist/cjs/api/getBridges.cjs +4 -4
- package/dist/cjs/api/getChains.cjs +4 -4
- package/dist/cjs/api/getVenues.cjs +4 -4
- package/dist/cjs/api/postAssetsFromSource.cjs +5 -5
- package/dist/cjs/api/postBalances.cjs +4 -4
- package/dist/cjs/api/postIbcOriginAssets.cjs +4 -4
- package/dist/cjs/api/postMessages.cjs +4 -4
- package/dist/cjs/api/postMessagesDirect.cjs +4 -4
- package/dist/cjs/api/postRecommendAssets.cjs +4 -4
- package/dist/cjs/api/postRoute.cjs +4 -4
- package/dist/cjs/api/postSubmitTransaction.cjs +4 -4
- package/dist/cjs/api/postTrackTransaction.cjs +4 -4
- package/dist/cjs/api/postTransactionStatus.cjs +4 -4
- package/dist/cjs/{chunk-5HDKZVOL.cjs → chunk-262HFM6V.cjs} +2 -2
- package/dist/cjs/{chunk-OZUCMWNE.cjs → chunk-3NHW3XWK.cjs} +2 -2
- package/dist/cjs/{chunk-LHY62HPI.cjs → chunk-4MV4GLIA.cjs} +2 -2
- package/dist/cjs/{chunk-FNB244QI.cjs → chunk-4NGHNHAS.cjs} +6 -6
- package/dist/cjs/{chunk-JBKNEFXB.cjs → chunk-7SZZBUBD.cjs} +3 -3
- package/dist/cjs/{chunk-EZGHN6ZL.cjs → chunk-ARCCHERF.cjs} +55 -55
- package/dist/cjs/{chunk-ZBPDDVQ2.cjs → chunk-AW6IQ7JH.cjs} +2 -2
- package/dist/cjs/{chunk-KHJQE3DI.cjs → chunk-BCX2D6TE.cjs} +91 -18
- package/dist/cjs/{chunk-NDSHB4I6.cjs → chunk-BQDOKZFX.cjs} +15 -15
- package/dist/cjs/{chunk-V3FWWJG2.cjs → chunk-CZKIE576.cjs} +10 -10
- package/dist/cjs/chunk-EVEVOW2U.cjs +2179 -0
- package/dist/cjs/{chunk-A26H4FVN.cjs → chunk-FF5UWES6.cjs} +4 -4
- package/dist/cjs/chunk-GGSF5JZH.cjs +101 -0
- package/dist/cjs/chunk-GWRZ6MPC.cjs +2179 -0
- package/dist/cjs/{chunk-N5V3YW5K.cjs → chunk-H2T4LMS2.cjs} +10 -10
- package/dist/cjs/{chunk-ERGJBZUC.cjs → chunk-HFEMNOJS.cjs} +12 -18
- package/dist/cjs/chunk-I6VYDEUV.cjs +454 -0
- package/dist/cjs/{chunk-RVXCF6AL.cjs → chunk-J7HZ6VJE.cjs} +10 -10
- package/dist/cjs/{chunk-QPM7H2YL.cjs → chunk-JWWJIJUE.cjs} +2 -2
- package/dist/cjs/{chunk-RCGCQD6T.cjs → chunk-KWH6S7PB.cjs} +8 -6
- package/dist/cjs/{chunk-QZ2BGX6O.cjs → chunk-MOWOIPUG.cjs} +4 -4
- package/dist/cjs/{chunk-LUVMRHAJ.cjs → chunk-PLO5CVGN.cjs} +2 -2
- package/dist/cjs/{chunk-N4UW74AG.cjs → chunk-QAHHTQ7V.cjs} +4 -4
- package/dist/cjs/{chunk-X5AJHZ2J.cjs → chunk-RBM66GW6.cjs} +2 -2
- package/dist/cjs/{chunk-AXYRULAI.cjs → chunk-S3BKLN4L.cjs} +2 -2
- package/dist/cjs/{chunk-5AYPH3ZR.cjs → chunk-T5EGKQAT.cjs} +2 -2
- package/dist/cjs/{chunk-5CB6SPCX.cjs → chunk-UY5LWG5D.cjs} +2 -2
- package/dist/cjs/chunk-W6ID22B6.cjs +24 -0
- package/dist/{esm/chunk-VQ5SIQWU.js → cjs/chunk-WKYP2NMS.cjs} +11 -7
- package/dist/cjs/{chunk-23YF4LFI.cjs → chunk-XCFPRLX3.cjs} +10 -7
- package/dist/cjs/{chunk-EJMC4JXF.cjs → chunk-ZBJZTBIW.cjs} +2 -2
- package/dist/cjs/index.cjs +188 -250
- package/dist/cjs/public-functions/executeMultipleRoutes.cjs +26 -16
- package/dist/cjs/public-functions/executeRoute.cjs +26 -16
- package/dist/cjs/public-functions/getEvmGasAmountForMessage.cjs +1 -1
- package/dist/cjs/public-functions/getFeeInfoForChain.cjs +5 -6
- package/dist/cjs/public-functions/getRecommendedGasPrice.cjs +7 -8
- package/dist/cjs/public-functions/getRouteWithGasOnReceive.cjs +39 -0
- package/dist/cjs/public-functions/getSigningStargateClient.cjs +5 -5
- package/dist/cjs/public-functions/setApiOptions.cjs +4 -4
- package/dist/cjs/public-functions/setClientOptions.cjs +5 -5
- package/dist/cjs/public-functions/subscribeToRouteStatus.cjs +9 -9
- package/dist/cjs/public-functions/validateCosmosGasBalance.cjs +7 -7
- package/dist/cjs/public-functions/waitForTransaction.cjs +6 -6
- package/dist/esm/api/getAssets.d.ts +2 -2
- package/dist/esm/api/getAssets.js +3 -3
- package/dist/esm/api/getAssetsBetweenChains.d.ts +22 -22
- package/dist/esm/api/getAssetsBetweenChains.js +3 -3
- package/dist/esm/api/getBridges.d.ts +2 -2
- package/dist/esm/api/getBridges.js +3 -3
- package/dist/esm/api/getChains.d.ts +2 -2
- package/dist/esm/api/getChains.js +3 -3
- package/dist/esm/api/getVenues.d.ts +1 -1
- package/dist/esm/api/getVenues.js +3 -3
- package/dist/esm/api/postAssetsFromSource.d.ts +2 -2
- package/dist/esm/api/postAssetsFromSource.js +4 -4
- package/dist/esm/api/postBalances.d.ts +3 -3
- package/dist/esm/api/postBalances.js +3 -3
- package/dist/esm/api/postIbcOriginAssets.d.ts +11 -11
- package/dist/esm/api/postIbcOriginAssets.js +3 -3
- package/dist/esm/api/postMessages.d.ts +13 -13
- package/dist/esm/api/postMessages.js +3 -3
- package/dist/esm/api/postMessagesDirect.d.ts +164 -162
- package/dist/esm/api/postMessagesDirect.js +3 -3
- package/dist/esm/api/postRecommendAssets.d.ts +12 -12
- package/dist/esm/api/postRecommendAssets.js +3 -3
- package/dist/esm/api/postRoute.d.ts +162 -160
- package/dist/esm/api/postRoute.js +3 -3
- package/dist/esm/api/postSubmitTransaction.d.ts +3 -3
- package/dist/esm/api/postSubmitTransaction.js +3 -3
- package/dist/esm/api/postTrackTransaction.d.ts +3 -3
- package/dist/esm/api/postTrackTransaction.js +3 -3
- package/dist/esm/api/postTransactionStatus.d.ts +37 -37
- package/dist/esm/api/postTransactionStatus.js +3 -3
- package/dist/esm/{apiState-DwZhwVul.d.ts → apiState-1VvikVK-.d.ts} +1 -0
- package/dist/esm/{callbacks-DCqqd0D9.d.ts → callbacks-C-KUJnDv.d.ts} +34 -4
- package/dist/esm/{chunk-APRMN34M.js → chunk-3WFXBPS2.js} +1 -1
- package/dist/esm/{chunk-3XOGEVJL.js → chunk-44IX6KPJ.js} +1 -1
- package/dist/esm/{chunk-VZGOU6MB.js → chunk-47HN6VKU.js} +3 -3
- package/dist/esm/{chunk-XYYXRVFN.js → chunk-5IXH2QPF.js} +86 -16
- package/dist/esm/{chunk-WBZVMPPV.js → chunk-6M7N6EAO.js} +7 -4
- package/dist/esm/{chunk-7X4ERB3R.js → chunk-AUNRER4I.js} +1 -1
- package/dist/esm/{chunk-562J5DCB.js → chunk-DL374PFE.js} +4 -4
- package/dist/esm/chunk-FDRLM2JD.js +431 -0
- package/dist/esm/{chunk-52PEBJRQ.js → chunk-FNTPI2AV.js} +1 -1
- package/dist/esm/{chunk-3J5IMMMB.js → chunk-H3MY23AH.js} +1 -1
- package/dist/esm/{chunk-JQ4F4WBG.js → chunk-HDW6XFWX.js} +1 -1
- package/dist/esm/{chunk-LHNGF5J2.js → chunk-HELQO7PA.js} +2 -2
- package/dist/esm/{chunk-W5EGS2G4.js → chunk-IGK7LJCM.js} +8 -8
- package/dist/esm/{chunk-AND7HVIU.js → chunk-IHSSWY3M.js} +1 -1
- package/dist/esm/{chunk-2DD5F6PK.js → chunk-JNVGNIOE.js} +2 -2
- package/dist/{cjs/chunk-4R6OCWRR.cjs → esm/chunk-JYYCFKB4.js} +8 -9
- package/dist/esm/chunk-KNXMSLOB.js +1 -1
- package/dist/esm/{chunk-Y2YCODZK.js → chunk-KXQ2ASHQ.js} +1 -1
- package/dist/esm/{chunk-ZOUYAZU6.js → chunk-MYGJGC62.js} +1 -1
- package/dist/esm/{chunk-ZI3SYUQH.js → chunk-RFJYCJK4.js} +1 -1
- package/dist/esm/{chunk-FVQFGEL2.js → chunk-RHLE3EW7.js} +6 -6
- package/dist/esm/chunk-RJ35JBT4.js +2154 -0
- package/dist/esm/{chunk-BZDVQMHK.js → chunk-SOVU5NCL.js} +2 -2
- package/dist/esm/{chunk-QIS6ILPS.js → chunk-TNIGHYH2.js} +3 -3
- package/dist/esm/{chunk-FH2YHZVV.js → chunk-UBVBVJPY.js} +5 -3
- package/dist/esm/chunk-UIDIKXMB.js +1 -1
- package/dist/esm/{chunk-A6KSECAH.js → chunk-VGCTTJO7.js} +12 -18
- package/dist/esm/{chunk-OTS5KO43.js → chunk-VWOMKMH2.js} +1 -1
- package/dist/esm/chunk-X2IBEHMZ.js +2154 -0
- package/dist/esm/chunk-XHLXJGVB.js +22 -0
- package/dist/esm/{chunk-S4RO2LHD.js → chunk-YGQ4NKTM.js} +1 -1
- package/dist/esm/{chunk-UI3SIFZN.js → chunk-YLVUKXLR.js} +1 -1
- package/dist/esm/chunk-YWG4XR5A.js +98 -0
- package/dist/esm/{client-types-BSZasIDd.d.ts → client-types-CGMuZ3zo.d.ts} +2 -2
- package/dist/esm/{generateApi-CwM4Ca30.d.ts → generateApi-D_-Gso-x.d.ts} +1 -1
- package/dist/esm/index.d.ts +167 -144
- package/dist/esm/index.js +25 -174
- package/dist/esm/public-functions/executeMultipleRoutes.d.ts +31 -11
- package/dist/esm/public-functions/executeMultipleRoutes.js +25 -15
- package/dist/esm/public-functions/executeRoute.d.ts +5 -5
- package/dist/esm/public-functions/executeRoute.js +25 -15
- package/dist/esm/public-functions/getCosmosGasAmountForMessage.d.ts +1 -1
- package/dist/esm/public-functions/getEvmGasAmountForMessage.d.ts +4 -4
- package/dist/esm/public-functions/getEvmGasAmountForMessage.js +1 -1
- package/dist/esm/public-functions/getFeeInfoForChain.d.ts +2 -2
- package/dist/esm/public-functions/getFeeInfoForChain.js +4 -5
- package/dist/esm/public-functions/getRecommendedGasPrice.d.ts +1 -1
- package/dist/esm/public-functions/getRecommendedGasPrice.js +6 -7
- package/dist/esm/public-functions/getRouteWithGasOnReceive.d.ts +20 -0
- package/dist/esm/public-functions/getRouteWithGasOnReceive.js +30 -0
- package/dist/esm/public-functions/getSigningStargateClient.js +4 -4
- package/dist/esm/public-functions/setApiOptions.d.ts +3 -3
- package/dist/esm/public-functions/setApiOptions.js +3 -3
- package/dist/esm/public-functions/setClientOptions.d.ts +5 -5
- package/dist/esm/public-functions/setClientOptions.js +4 -4
- package/dist/esm/public-functions/subscribeToRouteStatus.d.ts +5 -5
- package/dist/esm/public-functions/subscribeToRouteStatus.js +5 -5
- package/dist/esm/public-functions/validateCosmosGasBalance.d.ts +5 -5
- package/dist/esm/public-functions/validateCosmosGasBalance.js +6 -6
- package/dist/esm/public-functions/waitForTransaction.d.ts +39 -39
- package/dist/esm/public-functions/waitForTransaction.js +5 -5
- package/dist/esm/setClientOptions-C8g92xTm.d.ts +76 -0
- package/dist/esm/{swaggerTypes-Bh6hu5Q-.d.ts → swaggerTypes-B_jKfpvz.d.ts} +154 -132
- package/package.json +1 -1
- package/dist/esm/setClientOptions-0DYCj_A5.d.ts +0 -19
- package/dist/cjs/{chunk-IDDRJJO5.cjs → chunk-DLT6Q6RB.cjs} +1 -1
- package/dist/esm/{chunk-OQDBWVET.js → chunk-QL423UEF.js} +1 -1
package/dist/esm/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { A as AcknowledgementErrorDetails, a as Affiliate,
|
|
2
|
-
export { E as ExecuteRouteOptions, R as RouteDetails, a as RouteStatus,
|
|
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 { A as AcknowledgementErrorDetails, a as Affiliate, bI as Api, bE as ApiConfig, b as ApiError, c as Asset, d as AssetBetweenChains, e as AssetRecommendation, ba as AssetRecommendationsRequest, bt as AssetRecommendationsResponse, bg as AssetsBetweenChainsRequest, b7 as AssetsFromSourceRequest, bp as AssetsFromSourceResponse, bn as AssetsRequest, bo 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, b6 as BalancesRequest, bj as BalancesResponse, F as BankSend, H as BankSendWrapper, I as Bridge, J as BridgeType, bk 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, bh as ChainsRequest, bi as ChainsResponse, bG 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, b5 as Fee, a3 as FeeAsset, b4 as FeeBehavior, b3 as FeeType, bC as FullRequestParams, bz as FungibleAssetsBetweenChainsCreateResponse, a5 as GRPCStatusCode, a4 as GoFastFee, G as GoFastTransfer, y as GoFastTransferInfo, w as GoFastTransferState, x as GoFastTransferTxs, z as GoFastTransferWrapper, bH as HttpClient, bF as HttpResponse, a6 as HyperlaneTransfer, a7 as HyperlaneTransferInfo, a8 as HyperlaneTransferState, a9 as HyperlaneTransferTransactions, aa as HyperlaneTransferWrapper, ab as IBCTransferInfo, b2 as IbcCapabilities, bf as IbcOriginAssetsRequest, by as IbcOriginAssetsResponse, aZ as LayerZeroTransfer, a_ as LayerZeroTransferInfo, aP as LayerZeroTransferState, ai as LayerZeroTransferTransactions, a$ as LayerZeroTransferWrapper, ac as Msg, b9 as MsgsDirectRequest, bs as MsgsDirectResponse, b8 as MsgsRequest, br 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, bA as QueryParamsType, ao as Reason, b0 as RecommendationRequest, bD as RequestParams, bB as ResponseFormat, aq as Route, ap as RoutePriceWarningType, bq 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, bw as StatusRequest, bx as StatusResponse, be as StatusTxResponse, bu as SubmitResponse, bb as SubmitTxRequest, 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, bv as TrackResponse, bc as TrackTxRequest, bd as TrackTxResponse, 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, bl as VenuesRequest, bm as VenuesResponse } from './swaggerTypes-B_jKfpvz.js';
|
|
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-C-KUJnDv.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-CGMuZ3zo.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';
|
|
@@ -13,12 +13,13 @@ export { recommendAssets } from './api/postRecommendAssets.js';
|
|
|
13
13
|
export { assetsFromSource } from './api/postAssetsFromSource.js';
|
|
14
14
|
export { BalanceRequest, BalanceResponse, balances } from './api/postBalances.js';
|
|
15
15
|
export { RouteRequest, route } from './api/postRoute.js';
|
|
16
|
+
export { getRouteWithGasOnReceive } from './public-functions/getRouteWithGasOnReceive.js';
|
|
16
17
|
export { SubmitTransactionRequest, SubmitTransactionResponse, submitTransaction } from './api/postSubmitTransaction.js';
|
|
17
18
|
export { trackTransaction } from './api/postTrackTransaction.js';
|
|
18
19
|
export { TxStatusResponse, transactionStatus } from './api/postTransactionStatus.js';
|
|
19
20
|
export { ExecuteMultipleRoutesOptions, executeMultipleRoutes } from './public-functions/executeMultipleRoutes.js';
|
|
20
21
|
export { getSigningStargateClient, getSigningStargateClientProps } from './public-functions/getSigningStargateClient.js';
|
|
21
|
-
export { S as SkipClientOptions, s as setClientOptions } from './setClientOptions-
|
|
22
|
+
export { C as ClientState, S as SkipClientOptions, s as setClientOptions } from './setClientOptions-C8g92xTm.js';
|
|
22
23
|
export { getRecommendedGasPrice } from './public-functions/getRecommendedGasPrice.js';
|
|
23
24
|
export { getFeeInfoForChain } from './public-functions/getFeeInfoForChain.js';
|
|
24
25
|
export { SetApiOptionsProps, setApiOptions } from './public-functions/setApiOptions.js';
|
|
@@ -26,13 +27,13 @@ export { waitForTransaction } from './public-functions/waitForTransaction.js';
|
|
|
26
27
|
export { getCosmosGasAmountForMessage } from './public-functions/getCosmosGasAmountForMessage.js';
|
|
27
28
|
export { getEVMGasAmountForMessage } from './public-functions/getEvmGasAmountForMessage.js';
|
|
28
29
|
export { validateCosmosGasBalance } from './public-functions/validateCosmosGasBalance.js';
|
|
29
|
-
import './generateApi-
|
|
30
|
+
import './generateApi-D_-Gso-x.js';
|
|
30
31
|
import '@cosmjs/amino';
|
|
31
32
|
import '@cosmjs/proto-signing';
|
|
32
33
|
import '@cosmjs/stargate';
|
|
33
34
|
import 'viem';
|
|
34
35
|
import '@solana/wallet-adapter-base';
|
|
35
|
-
import './apiState-
|
|
36
|
+
import './apiState-1VvikVK-.js';
|
|
36
37
|
|
|
37
38
|
interface AcknowledgementErrorDetailsJson {
|
|
38
39
|
/** Error code */
|
|
@@ -52,38 +53,38 @@ interface ApiErrorJson {
|
|
|
52
53
|
message?: string;
|
|
53
54
|
}
|
|
54
55
|
interface AssetJson {
|
|
55
|
-
/** Chain-id of the asset */
|
|
56
|
-
chain_id: string;
|
|
57
|
-
/** Coingecko id of the asset */
|
|
58
|
-
coingecko_id?: string | null;
|
|
59
|
-
/** Number of decimals used for amounts of the asset */
|
|
60
|
-
decimals?: number | null;
|
|
61
56
|
/** Denom of the asset */
|
|
62
57
|
denom: string;
|
|
63
|
-
/**
|
|
64
|
-
|
|
58
|
+
/** Chain-id of the asset */
|
|
59
|
+
chain_id: string;
|
|
60
|
+
/** Denom of the origin of the asset. If this is an ibc denom, this is the original denom that the ibc token represents */
|
|
61
|
+
origin_denom: string;
|
|
62
|
+
/** Chain-id of the origin of the asset. If this is an ibc denom, this is the chain-id of the asset that the ibc token represents */
|
|
63
|
+
origin_chain_id: string;
|
|
64
|
+
/** The forward slash delimited sequence of ibc ports and channels that can be traversed to unwind an ibc token to its origin asset. */
|
|
65
|
+
trace: string;
|
|
65
66
|
/** Indicates whether asset is a CW20 token */
|
|
66
67
|
is_cw20: boolean;
|
|
67
68
|
/** Indicates whether asset is an EVM token */
|
|
68
69
|
is_evm: boolean;
|
|
69
70
|
/** Indicates whether asset is an SVM token */
|
|
70
71
|
is_svm: boolean;
|
|
71
|
-
/** URI pointing to an image of the logo of the asset */
|
|
72
|
-
logo_uri?: string | null;
|
|
73
|
-
/** Name of the asset */
|
|
74
|
-
name?: string | null;
|
|
75
|
-
/** Chain-id of the origin of the asset. If this is an ibc denom, this is the chain-id of the asset that the ibc token represents */
|
|
76
|
-
origin_chain_id: string;
|
|
77
|
-
/** Denom of the origin of the asset. If this is an ibc denom, this is the original denom that the ibc token represents */
|
|
78
|
-
origin_denom: string;
|
|
79
|
-
/** Recommended symbol of the asset used to differentiate between bridged assets with the same symbol, e.g. USDC.axl for Axelar USDC and USDC.grv for Gravity USDC */
|
|
80
|
-
recommended_symbol?: string | null;
|
|
81
72
|
/** Symbol of the asset, e.g. ATOM for uatom */
|
|
82
73
|
symbol?: string | null;
|
|
74
|
+
/** Name of the asset */
|
|
75
|
+
name?: string | null;
|
|
76
|
+
/** URI pointing to an image of the logo of the asset */
|
|
77
|
+
logo_uri?: string | null;
|
|
78
|
+
/** Number of decimals used for amounts of the asset */
|
|
79
|
+
decimals?: number | null;
|
|
83
80
|
/** Address of the contract for the asset, e.g. if it is a CW20 or ERC20 token */
|
|
84
81
|
token_contract?: string | null;
|
|
85
|
-
/**
|
|
86
|
-
|
|
82
|
+
/** Description of the asset */
|
|
83
|
+
description?: string | null;
|
|
84
|
+
/** Coingecko id of the asset */
|
|
85
|
+
coingecko_id?: string | null;
|
|
86
|
+
/** Recommended symbol of the asset used to differentiate between bridged assets with the same symbol, e.g. USDC.axl for Axelar USDC and USDC.grv for Gravity USDC */
|
|
87
|
+
recommended_symbol?: string | null;
|
|
87
88
|
}
|
|
88
89
|
interface AssetBetweenChainsJson {
|
|
89
90
|
asset_on_source?: AssetJson;
|
|
@@ -112,29 +113,25 @@ interface AutopilotMsgWrapperJson {
|
|
|
112
113
|
}
|
|
113
114
|
/** A transfer facilitated by the Axelar bridge */
|
|
114
115
|
interface AxelarTransferJson {
|
|
115
|
-
/** Axelar-name of the asset to bridge */
|
|
116
|
-
asset?: string;
|
|
117
|
-
/** Amount of the fee asset to be paid as the Axelar bridge fee. This is denominated in the fee asset. */
|
|
118
|
-
fee_amount?: string;
|
|
119
|
-
fee_asset?: AssetJson;
|
|
120
|
-
/** Name for source chain of the bridge transaction used on Axelar */
|
|
121
|
-
from_chain?: string;
|
|
122
116
|
/** Canonical chain-id of the source chain of the bridge transaction */
|
|
123
117
|
from_chain_id?: string;
|
|
124
|
-
/** Whether the source and destination chains are both testnets */
|
|
125
|
-
is_testnet?: boolean;
|
|
126
|
-
/** Whether to unwrap the asset at the destination chain (from ERC-20 to native) */
|
|
127
|
-
should_unwrap?: boolean;
|
|
128
|
-
/** Name for destination chain of the bridge transaction used on Axelar */
|
|
129
|
-
to_chain?: string;
|
|
130
118
|
/** Canonical chain-id of the destination chain of the bridge transaction */
|
|
131
119
|
to_chain_id?: string;
|
|
120
|
+
/** Axelar-name of the asset to bridge */
|
|
121
|
+
asset?: string;
|
|
122
|
+
/** Whether to unwrap the asset at the destination chain (from ERC-20 to native) */
|
|
123
|
+
should_unwrap?: boolean;
|
|
132
124
|
/** Denom of the input asset */
|
|
133
125
|
denom_in?: string;
|
|
134
126
|
/** Denom of the output asset */
|
|
135
127
|
denom_out?: string;
|
|
128
|
+
/** Amount of the fee asset to be paid as the Axelar bridge fee. This is denominated in the fee asset. */
|
|
129
|
+
fee_amount?: string;
|
|
136
130
|
/** Amount of the fee asset to be paid as the Axelar bridge fee, converted to USD value */
|
|
137
131
|
usd_fee_amount?: string;
|
|
132
|
+
fee_asset?: AssetJson;
|
|
133
|
+
/** Whether the source and destination chains are both testnets */
|
|
134
|
+
is_testnet?: boolean;
|
|
138
135
|
/** A cross-chain transfer */
|
|
139
136
|
ibc_transfer_to_axelar?: TransferJson;
|
|
140
137
|
/**
|
|
@@ -152,6 +149,16 @@ interface AxelarTransferJson {
|
|
|
152
149
|
bridge_id?: BridgeTypeJson;
|
|
153
150
|
/** Indicates whether this transfer is relayed via Smart Relay */
|
|
154
151
|
smart_relay?: boolean;
|
|
152
|
+
/**
|
|
153
|
+
* Deprecated, use from_chain_id instead. Name for source chain of the bridge transaction used on Axelar
|
|
154
|
+
* @deprecated
|
|
155
|
+
*/
|
|
156
|
+
from_chain?: string;
|
|
157
|
+
/**
|
|
158
|
+
* Deprecated, use to_chain_id instead. Name for destination chain of the bridge transaction used on Axelar
|
|
159
|
+
* @deprecated
|
|
160
|
+
*/
|
|
161
|
+
to_chain?: string;
|
|
155
162
|
}
|
|
156
163
|
interface AxelarTransferInfoJson {
|
|
157
164
|
/** Link to the transaction on the Axelar Scan explorer */
|
|
@@ -209,14 +216,14 @@ interface AxelarTransferWrapperJson {
|
|
|
209
216
|
interface SmartRelayFeeQuoteJson {
|
|
210
217
|
/** The USDC fee amount */
|
|
211
218
|
fee_amount?: string;
|
|
212
|
-
/** The fee asset denomination */
|
|
213
|
-
fee_denom?: string;
|
|
214
|
-
/** The address the fee should be sent to */
|
|
215
|
-
fee_payment_address?: string | null;
|
|
216
219
|
/** Address of the relayer */
|
|
217
220
|
relayer_address?: string;
|
|
218
221
|
/** Expiration time of the fee quote */
|
|
219
222
|
expiration?: string;
|
|
223
|
+
/** The fee asset denomination */
|
|
224
|
+
fee_denom?: string;
|
|
225
|
+
/** The address the fee should be sent to */
|
|
226
|
+
fee_payment_address?: string | null;
|
|
220
227
|
}
|
|
221
228
|
/** A transfer facilitated by the CCTP bridge */
|
|
222
229
|
interface CCTPTransferJson {
|
|
@@ -296,6 +303,14 @@ interface StargateTransferJson {
|
|
|
296
303
|
denom_in?: string;
|
|
297
304
|
/** Denom of the output asset */
|
|
298
305
|
denom_out?: string;
|
|
306
|
+
pool_address?: string;
|
|
307
|
+
destination_endpoint_id?: number;
|
|
308
|
+
oft_fee_asset?: AssetJson;
|
|
309
|
+
oft_fee_amount?: string;
|
|
310
|
+
oft_fee_amount_usd?: string;
|
|
311
|
+
messaging_fee_asset?: AssetJson;
|
|
312
|
+
messaging_fee_amount?: string;
|
|
313
|
+
messaging_fee_amount_usd?: string;
|
|
299
314
|
/**
|
|
300
315
|
* Bridge Type:
|
|
301
316
|
* * `IBC` - IBC Bridge
|
|
@@ -309,14 +324,6 @@ interface StargateTransferJson {
|
|
|
309
324
|
* * `EUREKA` - IBC Eureka Bridge
|
|
310
325
|
*/
|
|
311
326
|
bridge_id?: BridgeTypeJson;
|
|
312
|
-
pool_address?: string;
|
|
313
|
-
destination_endpoint_id?: number;
|
|
314
|
-
oft_fee_asset?: AssetJson;
|
|
315
|
-
oft_fee_amount?: string;
|
|
316
|
-
oft_fee_amount_usd?: string;
|
|
317
|
-
messaging_fee_asset?: AssetJson;
|
|
318
|
-
messaging_fee_amount?: string;
|
|
319
|
-
messaging_fee_amount_usd?: string;
|
|
320
327
|
}
|
|
321
328
|
/**
|
|
322
329
|
* Stargate transfer state:
|
|
@@ -367,6 +374,8 @@ interface GoFastTransferJson {
|
|
|
367
374
|
from_chain_id?: string;
|
|
368
375
|
/** Canonical chain-id of the destination chain of the bridge transaction */
|
|
369
376
|
to_chain_id?: string;
|
|
377
|
+
/** Go fast Fee */
|
|
378
|
+
fee?: GoFastFeeJson;
|
|
370
379
|
/**
|
|
371
380
|
* Bridge Type:
|
|
372
381
|
* * `IBC` - IBC Bridge
|
|
@@ -388,8 +397,6 @@ interface GoFastTransferJson {
|
|
|
388
397
|
source_domain?: string;
|
|
389
398
|
/** Destination domain ID of the transfer */
|
|
390
399
|
destination_domain?: string;
|
|
391
|
-
/** Go fast Fee */
|
|
392
|
-
fee?: GoFastFeeJson;
|
|
393
400
|
}
|
|
394
401
|
/**
|
|
395
402
|
* GoFast transfer state:
|
|
@@ -692,14 +699,14 @@ interface FeeAssetJson {
|
|
|
692
699
|
}
|
|
693
700
|
/** Go fast Fee */
|
|
694
701
|
interface GoFastFeeJson {
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
702
|
+
fee_asset: AssetJson;
|
|
703
|
+
bps_fee?: string;
|
|
704
|
+
bps_fee_amount?: string;
|
|
705
|
+
bps_fee_usd?: string;
|
|
706
|
+
source_chain_fee_amount?: string;
|
|
707
|
+
source_chain_fee_usd?: string;
|
|
708
|
+
destination_chain_fee_amount?: string;
|
|
709
|
+
destination_chain_fee_usd?: string;
|
|
703
710
|
}
|
|
704
711
|
/** grpc status codes as defined [here](https://grpc.github.io/grpc/core/md_doc_statuscodes.html) */
|
|
705
712
|
type GRPCStatusCodeJson = number;
|
|
@@ -717,9 +724,9 @@ interface HyperlaneTransferJson {
|
|
|
717
724
|
hyperlane_contract_address?: string;
|
|
718
725
|
/** Amount of the fee asset to be paid as the Hyperlane bridge fee. This is denominated in the fee asset. */
|
|
719
726
|
fee_amount?: string;
|
|
720
|
-
fee_asset?: AssetJson;
|
|
721
727
|
/** Amount of the fee asset to be paid as the Hyperlane bridge fee, converted to USD value */
|
|
722
728
|
usd_fee_amount?: string;
|
|
729
|
+
fee_asset?: AssetJson;
|
|
723
730
|
/**
|
|
724
731
|
* Bridge Type:
|
|
725
732
|
* * `IBC` - IBC Bridge
|
|
@@ -808,7 +815,7 @@ interface MultiChainMsgWrapperJson {
|
|
|
808
815
|
/** A message that interacts with multiple chains */
|
|
809
816
|
multi_chain_msg?: MultiChainMsgJson;
|
|
810
817
|
}
|
|
811
|
-
type OperationJson = (TransferWrapperJson | SwapWrapperJson | AxelarTransferWrapperJson | BankSendWrapperJson | CCTPTransferWrapperJson | HyperlaneTransferWrapperJson | EvmSwapWrapperJson | OPInitTransferWrapperJson |
|
|
818
|
+
type OperationJson = (TransferWrapperJson | SwapWrapperJson | AxelarTransferWrapperJson | BankSendWrapperJson | CCTPTransferWrapperJson | HyperlaneTransferWrapperJson | EvmSwapWrapperJson | OPInitTransferWrapperJson | GoFastTransferWrapperJson | StargateTransferWrapperJson | LayerZeroTransferWrapperJson | EurekaTransferWrapperJson) & {
|
|
812
819
|
/** Index of the tx returned from Msgs that executes this operation */
|
|
813
820
|
tx_index: number;
|
|
814
821
|
/** Amount of input asset to this operation */
|
|
@@ -990,10 +997,10 @@ declare enum StatusErrorTypeJson {
|
|
|
990
997
|
type SwapJson = (SwapInWrapperJson | SwapOutWrapperJson | SmartSwapInWrapperJson) & {
|
|
991
998
|
/** Estimated total affiliate fee generated by the swap */
|
|
992
999
|
estimated_affiliate_fee?: string;
|
|
993
|
-
/** Chain ID that the swap will be executed on */
|
|
994
|
-
chain_id?: string;
|
|
995
1000
|
/** Chain ID that the swap will be executed on (alias for chain_id) */
|
|
996
1001
|
from_chain_id?: string;
|
|
1002
|
+
/** Chain ID that the swap will be executed on */
|
|
1003
|
+
chain_id?: string;
|
|
997
1004
|
/** Input denom of the swap */
|
|
998
1005
|
denom_in?: string;
|
|
999
1006
|
/** Output denom of the swap */
|
|
@@ -1003,23 +1010,25 @@ type SwapJson = (SwapInWrapperJson | SwapOutWrapperJson | SmartSwapInWrapperJson
|
|
|
1003
1010
|
};
|
|
1004
1011
|
/** Specification of a swap with an exact amount in */
|
|
1005
1012
|
interface SwapExactCoinInJson {
|
|
1006
|
-
/** Amount to swap in */
|
|
1007
|
-
swap_amount_in?: string | null;
|
|
1008
|
-
/** Operations required to execute the swap */
|
|
1009
|
-
swap_operations?: SwapOperationJson[];
|
|
1010
1013
|
/** Swap venue that this swap should execute on */
|
|
1011
1014
|
swap_venue?: SwapVenueJson;
|
|
1015
|
+
/** Operations required to execute the swap */
|
|
1016
|
+
swap_operations?: SwapOperationJson[];
|
|
1017
|
+
/** Amount to swap in */
|
|
1018
|
+
swap_amount_in?: string | null;
|
|
1012
1019
|
/** Price impact of the estimated swap, if present. Measured in percentage e.g. "0.5" is .5% */
|
|
1013
1020
|
price_impact_percent?: string | null;
|
|
1021
|
+
/** The estimated amount out received from the swap */
|
|
1022
|
+
estimated_amount_out?: string | null;
|
|
1014
1023
|
}
|
|
1015
1024
|
/** Specification of a swap with an exact amount out */
|
|
1016
1025
|
interface SwapExactCoinOutJson {
|
|
1017
|
-
/** Amount to get out of the swap */
|
|
1018
|
-
swap_amount_out?: string;
|
|
1019
|
-
/** Operations required to execute the swap */
|
|
1020
|
-
swap_operations?: SwapOperationJson[];
|
|
1021
1026
|
/** Swap venue that this swap should execute on */
|
|
1022
1027
|
swap_venue?: SwapVenueJson;
|
|
1028
|
+
/** Operations required to execute the swap */
|
|
1029
|
+
swap_operations?: SwapOperationJson[];
|
|
1030
|
+
/** Amount to get out of the swap */
|
|
1031
|
+
swap_amount_out?: string;
|
|
1023
1032
|
/** Price impact of the estimated swap, if present. Measured in percentage e.g. "0.5" is .5% */
|
|
1024
1033
|
price_impact_percent?: string | null;
|
|
1025
1034
|
}
|
|
@@ -1056,6 +1065,8 @@ interface SmartSwapExactCoinInJson {
|
|
|
1056
1065
|
swap_venue?: SwapVenueJson;
|
|
1057
1066
|
/** Routes to execute the swap */
|
|
1058
1067
|
swap_routes?: SwapRouteJson[];
|
|
1068
|
+
/** The estimated amount out received from the swap */
|
|
1069
|
+
estimated_amount_out?: string | null;
|
|
1059
1070
|
}
|
|
1060
1071
|
interface SmartSwapOptionsJson {
|
|
1061
1072
|
/** Indicates whether the swap can be split into multiple swap routes */
|
|
@@ -1098,9 +1109,9 @@ interface TransactionExecutionErrorDetailsJson {
|
|
|
1098
1109
|
declare enum TransactionStateJson {
|
|
1099
1110
|
STATE_SUBMITTED = "STATE_SUBMITTED",
|
|
1100
1111
|
STATE_PENDING = "STATE_PENDING",
|
|
1112
|
+
STATE_ABANDONED = "STATE_ABANDONED",
|
|
1101
1113
|
STATE_COMPLETED_SUCCESS = "STATE_COMPLETED_SUCCESS",
|
|
1102
1114
|
STATE_COMPLETED_ERROR = "STATE_COMPLETED_ERROR",
|
|
1103
|
-
STATE_ABANDONED = "STATE_ABANDONED",
|
|
1104
1115
|
STATE_PENDING_ERROR = "STATE_PENDING_ERROR"
|
|
1105
1116
|
}
|
|
1106
1117
|
/** A transfer facilitated by the OP Init bridge */
|
|
@@ -1181,18 +1192,16 @@ declare enum LayerZeroTransferStateJson {
|
|
|
1181
1192
|
}
|
|
1182
1193
|
/** A cross-chain transfer */
|
|
1183
1194
|
interface TransferJson {
|
|
1195
|
+
/** Port to use to initiate the transfer */
|
|
1196
|
+
port?: string;
|
|
1197
|
+
/** Channel to use to initiate the transfer */
|
|
1198
|
+
channel?: string;
|
|
1184
1199
|
/** Chain-id on which the transfer is initiated */
|
|
1185
1200
|
from_chain_id?: string;
|
|
1186
1201
|
/** Chain-id on which the transfer is received */
|
|
1187
1202
|
to_chain_id?: string;
|
|
1188
|
-
/** Channel to use to initiate the transfer */
|
|
1189
|
-
channel?: string;
|
|
1190
|
-
/** Denom of the destination asset of the transfer */
|
|
1191
|
-
dest_denom?: string;
|
|
1192
1203
|
/** Whether pfm is enabled on the chain where the transfer is initiated */
|
|
1193
1204
|
pfm_enabled?: boolean;
|
|
1194
|
-
/** Port to use to initiate the transfer */
|
|
1195
|
-
port?: string;
|
|
1196
1205
|
/** Whether the transfer chain supports a memo */
|
|
1197
1206
|
supports_memo?: boolean;
|
|
1198
1207
|
/** Denom of the input asset of the transfer */
|
|
@@ -1201,9 +1210,6 @@ interface TransferJson {
|
|
|
1201
1210
|
denom_out?: string;
|
|
1202
1211
|
/** Amount of the fee asset to be paid as the transfer fee if applicable. */
|
|
1203
1212
|
fee_amount?: string | null;
|
|
1204
|
-
/** Address of the entry contract on the destination chain */
|
|
1205
|
-
to_chain_entry_contract_address?: string | null;
|
|
1206
|
-
to_chain_callback_contract_address?: string | null;
|
|
1207
1213
|
/** Amount of the fee asset to be paid as the transfer fee if applicable, converted to USD value */
|
|
1208
1214
|
usd_fee_amount?: string | null;
|
|
1209
1215
|
/** Asset to be paid as the transfer fee if applicable. */
|
|
@@ -1223,6 +1229,15 @@ interface TransferJson {
|
|
|
1223
1229
|
bridge_id?: BridgeTypeJson;
|
|
1224
1230
|
/** Indicates whether this transfer is relayed via Smart Relay */
|
|
1225
1231
|
smart_relay?: boolean;
|
|
1232
|
+
/** Address of the entry contract on the destination chain */
|
|
1233
|
+
to_chain_entry_contract_address?: string | null;
|
|
1234
|
+
/** Address of the callback contract on the destination chain */
|
|
1235
|
+
to_chain_callback_contract_address?: string | null;
|
|
1236
|
+
/**
|
|
1237
|
+
* Deprecated, use denom_out instead. Denom of the destination asset of the transfer
|
|
1238
|
+
* @deprecated
|
|
1239
|
+
*/
|
|
1240
|
+
dest_denom?: string;
|
|
1226
1241
|
}
|
|
1227
1242
|
interface TransferEventJson {
|
|
1228
1243
|
ibc_transfer?: IBCTransferInfoJson;
|
|
@@ -1262,12 +1277,6 @@ interface TransferAssetReleaseJson {
|
|
|
1262
1277
|
released?: boolean;
|
|
1263
1278
|
}
|
|
1264
1279
|
interface TransferStatusJson {
|
|
1265
|
-
error?: StatusErrorJson | null;
|
|
1266
|
-
/** Indicates which entry in the `transfer_sequence` field that the transfer is blocked on. Will be null if there is no blocked transfer. */
|
|
1267
|
-
next_blocking_transfer?: {
|
|
1268
|
-
/** The index of the entry in the `transfer_sequence` field that the transfer is blocked on. */
|
|
1269
|
-
transfer_sequence_index?: number;
|
|
1270
|
-
} | null;
|
|
1271
1280
|
/**
|
|
1272
1281
|
* Transaction state:
|
|
1273
1282
|
* * `STATE_SUBMITTED` - The initial transaction has been submitted to Skip Go API but not observed on chain yet
|
|
@@ -1279,10 +1288,16 @@ interface TransferStatusJson {
|
|
|
1279
1288
|
* * `STATE_PENDING_ERROR` - The overall transaction will fail, pending error propagation
|
|
1280
1289
|
*/
|
|
1281
1290
|
state?: TransactionStateJson;
|
|
1282
|
-
/** Indicates location and denom of transfer asset release. */
|
|
1283
|
-
transfer_asset_release?: TransferAssetReleaseJson;
|
|
1284
1291
|
/** Lists any IBC and Axelar transfers as they are seen. */
|
|
1285
1292
|
transfer_sequence?: TransferEventJson[];
|
|
1293
|
+
/** Indicates which entry in the `transfer_sequence` field that the transfer is blocked on. Will be null if there is no blocked transfer. */
|
|
1294
|
+
next_blocking_transfer?: {
|
|
1295
|
+
/** The index of the entry in the `transfer_sequence` field that the transfer is blocked on. */
|
|
1296
|
+
transfer_sequence_index?: number;
|
|
1297
|
+
} | null;
|
|
1298
|
+
/** Indicates location and denom of transfer asset release. */
|
|
1299
|
+
transfer_asset_release?: TransferAssetReleaseJson;
|
|
1300
|
+
error?: StatusErrorJson | null;
|
|
1286
1301
|
}
|
|
1287
1302
|
interface TransferWrapperJson {
|
|
1288
1303
|
/** A cross-chain transfer */
|
|
@@ -1511,10 +1526,6 @@ interface AssetsFromSourceRequestJson {
|
|
|
1511
1526
|
include_cw20_assets?: boolean;
|
|
1512
1527
|
}
|
|
1513
1528
|
interface RouteRequestJson {
|
|
1514
|
-
/** Amount of source asset to be transferred or swapped. Only one of amount_in and amount_out should be provided. */
|
|
1515
|
-
amount_in?: string;
|
|
1516
|
-
/** Amount of destination asset to receive. Only one of amount_in and amount_out should be provided. If amount_out is provided for a swap, the route will be computed to give exactly amount_out. */
|
|
1517
|
-
amount_out?: string;
|
|
1518
1529
|
/** Denom of the source asset */
|
|
1519
1530
|
source_asset_denom?: string;
|
|
1520
1531
|
/** Chain-id of the source asset */
|
|
@@ -1523,19 +1534,23 @@ interface RouteRequestJson {
|
|
|
1523
1534
|
dest_asset_denom?: string;
|
|
1524
1535
|
/** Chain-id of the destination asset */
|
|
1525
1536
|
dest_asset_chain_id?: string;
|
|
1537
|
+
/** Amount of source asset to be transferred or swapped. Only one of amount_in and amount_out should be provided. */
|
|
1538
|
+
amount_in?: string;
|
|
1539
|
+
/** Amount of destination asset to receive. Only one of amount_in and amount_out should be provided. If amount_out is provided for a swap, the route will be computed to give exactly amount_out. */
|
|
1540
|
+
amount_out?: string;
|
|
1526
1541
|
/** Cumulative fee to be distributed to affiliates, in bps (optional) */
|
|
1527
1542
|
cumulative_affiliate_fee_bps?: string | null;
|
|
1528
1543
|
/** Swap venues to consider, if provided (optional) */
|
|
1529
1544
|
swap_venues?: SwapVenueJson[];
|
|
1545
|
+
/** Toggles whether the api should return routes that fail price safety checks. */
|
|
1546
|
+
allow_unsafe?: boolean;
|
|
1547
|
+
/** Array of experimental features to enable */
|
|
1548
|
+
experimental_features?: string[];
|
|
1530
1549
|
/**
|
|
1531
1550
|
* Whether to allow route responses requiring multiple
|
|
1532
1551
|
* transactions
|
|
1533
1552
|
*/
|
|
1534
1553
|
allow_multi_tx?: boolean;
|
|
1535
|
-
/** Toggles whether the api should return routes that fail price safety checks. */
|
|
1536
|
-
allow_unsafe?: boolean;
|
|
1537
|
-
/** Array of experimental features to enable */
|
|
1538
|
-
experimental_features?: string[];
|
|
1539
1554
|
/** Array of bridges to use */
|
|
1540
1555
|
bridges?: BridgeTypeJson[];
|
|
1541
1556
|
/** Indicates whether this transfer route should be relayed via Skip's Smart Relay service - true by default. */
|
|
@@ -1559,24 +1574,27 @@ interface MsgsRequestJson {
|
|
|
1559
1574
|
amount_in?: string;
|
|
1560
1575
|
/** Amount of destination asset out */
|
|
1561
1576
|
amount_out?: string;
|
|
1562
|
-
/** Array of receipient and/or sender address for each chain in the path, corresponding to the
|
|
1577
|
+
/** Array of receipient and/or sender address for each chain in the path, corresponding to the required_chain_addresses array returned from a route request */
|
|
1563
1578
|
address_list?: string[];
|
|
1564
1579
|
/** Array of operations required to perform the transfer or swap */
|
|
1565
1580
|
operations?: OperationJson[];
|
|
1566
1581
|
estimated_amount_out?: string;
|
|
1567
1582
|
/** Percent tolerance for slippage on swap, if a swap is performed */
|
|
1568
1583
|
slippage_tolerance_percent?: string;
|
|
1569
|
-
/** Number of seconds for the IBC transfer timeout, defaults to 5 minutes */
|
|
1570
|
-
timeout_seconds?: string;
|
|
1571
|
-
post_route_handler?: PostHandlerJson;
|
|
1572
1584
|
/** Map of chain-ids to arrays of affiliates. The API expects all chains to have the same cumulative affiliate fee bps for each chain specified. If any of the provided affiliate arrays does not have the same cumulative fee, the API will return an error. */
|
|
1573
1585
|
chain_ids_to_affiliates?: Record<string, ChainAffiliatesJson>;
|
|
1586
|
+
post_route_handler?: PostHandlerJson;
|
|
1587
|
+
/** Number of seconds for the IBC transfer timeout, defaults to 5 minutes */
|
|
1588
|
+
timeout_seconds?: string;
|
|
1574
1589
|
/**
|
|
1575
1590
|
* Whether to enable gas warnings for intermediate and destination chains
|
|
1576
1591
|
* @default false
|
|
1577
1592
|
*/
|
|
1578
1593
|
enable_gas_warnings?: boolean;
|
|
1579
|
-
/**
|
|
1594
|
+
/**
|
|
1595
|
+
* Alternative address to use for paying for fees, currently only for SVM source CCTP transfers, in b58 format.
|
|
1596
|
+
* @default false
|
|
1597
|
+
*/
|
|
1580
1598
|
fee_payer_address?: string;
|
|
1581
1599
|
}
|
|
1582
1600
|
interface MsgsDirectRequestJson {
|
|
@@ -1598,20 +1616,20 @@ interface MsgsDirectRequestJson {
|
|
|
1598
1616
|
swap_venues?: SwapVenueJson[];
|
|
1599
1617
|
/** Percent tolerance for slippage on swap, if a swap is performed */
|
|
1600
1618
|
slippage_tolerance_percent?: string;
|
|
1601
|
-
/** Number of seconds for the IBC transfer timeout, defaults to 5 minutes */
|
|
1602
|
-
timeout_seconds?: string;
|
|
1603
1619
|
/** Map of chain-ids to arrays of affiliates. Since cumulative_affiliate_fee_bps must be provided to retrieve a route, and the swap chain is not known at this time, all chains must have the same cumulative_affiliate_fee_bps otherwise the API will return an error. */
|
|
1604
1620
|
chain_ids_to_affiliates?: Record<string, ChainAffiliatesJson>;
|
|
1605
1621
|
post_route_handler?: PostHandlerJson;
|
|
1622
|
+
/** Number of seconds for the IBC transfer timeout, defaults to 5 minutes */
|
|
1623
|
+
timeout_seconds?: string;
|
|
1624
|
+
/** Toggles whether the api should return routes that fail price safety checks. */
|
|
1625
|
+
allow_unsafe?: boolean;
|
|
1626
|
+
/** Array of experimental features to enable */
|
|
1627
|
+
experimental_features?: string[];
|
|
1606
1628
|
/**
|
|
1607
1629
|
* Whether to allow route responses requiring multiple
|
|
1608
1630
|
* transactions
|
|
1609
1631
|
*/
|
|
1610
1632
|
allow_multi_tx?: boolean;
|
|
1611
|
-
/** Toggles whether the api should return routes that fail price safety checks. */
|
|
1612
|
-
allow_unsafe?: boolean;
|
|
1613
|
-
/** Array of experimental features to enable */
|
|
1614
|
-
experimental_features?: string[];
|
|
1615
1633
|
/** Array of bridges to use */
|
|
1616
1634
|
bridges?: BridgeTypeJson[];
|
|
1617
1635
|
/** Indicates whether this transfer route should be relayed via Skip's Smart Relay service */
|
|
@@ -1619,14 +1637,17 @@ interface MsgsDirectRequestJson {
|
|
|
1619
1637
|
smart_swap_options?: SmartSwapOptionsJson;
|
|
1620
1638
|
/** Whether to allow swaps in the route */
|
|
1621
1639
|
allow_swaps?: boolean;
|
|
1622
|
-
/** Whether to enable Go Fast routes */
|
|
1623
|
-
go_fast?: boolean;
|
|
1624
1640
|
/**
|
|
1625
1641
|
* Whether to enable gas warnings for intermediate and destination chains
|
|
1626
1642
|
* @default false
|
|
1627
1643
|
*/
|
|
1628
1644
|
enable_gas_warnings?: boolean;
|
|
1629
|
-
/**
|
|
1645
|
+
/** Whether to enable Go Fast routes */
|
|
1646
|
+
go_fast?: boolean;
|
|
1647
|
+
/**
|
|
1648
|
+
* Alternative address to use for paying for fees, currently only for SVM source CCTP transfers, in b58 format.
|
|
1649
|
+
* @default false
|
|
1650
|
+
*/
|
|
1630
1651
|
fee_payer_address?: string;
|
|
1631
1652
|
}
|
|
1632
1653
|
interface AssetRecommendationsRequestJson {
|
|
@@ -1645,6 +1666,36 @@ interface TrackTxRequestJson {
|
|
|
1645
1666
|
/** Chain ID of the transaction */
|
|
1646
1667
|
chain_id: string;
|
|
1647
1668
|
}
|
|
1669
|
+
interface TrackTxResponseJson {
|
|
1670
|
+
/** Hash of the transaction */
|
|
1671
|
+
tx_hash: string;
|
|
1672
|
+
/** Link to the transaction on the relevant block explorer */
|
|
1673
|
+
explorer_link: string;
|
|
1674
|
+
}
|
|
1675
|
+
interface StatusTxResponseJson {
|
|
1676
|
+
/** Transfer status for all transfers initiated by the transaction in the order they were initiated. */
|
|
1677
|
+
transfers?: TransferStatusJson[];
|
|
1678
|
+
/** The overall state reflecting the end-to-end status of all transfers initiated by the original transaction. */
|
|
1679
|
+
state: TransactionStateJson;
|
|
1680
|
+
/** Details about the next transfer in the sequence that is preventing further progress, if any. */
|
|
1681
|
+
next_blocking_transfer?: {
|
|
1682
|
+
transfer_sequence_index?: number;
|
|
1683
|
+
} | null;
|
|
1684
|
+
/** Indicates location and denom of transfer asset release. */
|
|
1685
|
+
transfer_asset_release?: TransferAssetReleaseJson;
|
|
1686
|
+
/** Details about any error encountered during the transaction or its subsequent transfers. */
|
|
1687
|
+
error?: StatusErrorJson | null;
|
|
1688
|
+
/**
|
|
1689
|
+
* **DEPRECATED.** This field provides a flat list of all transfer events. For a more structured and detailed status of each transfer leg, including its individual events, please use the 'transfers' array instead. This field may be removed in a future version.
|
|
1690
|
+
* @deprecated
|
|
1691
|
+
*/
|
|
1692
|
+
transfer_sequence: TransferEventJson[];
|
|
1693
|
+
/**
|
|
1694
|
+
* A high-level status indicator for the transaction's completion state.
|
|
1695
|
+
* @example "STATE_COMPLETED"
|
|
1696
|
+
*/
|
|
1697
|
+
status?: string;
|
|
1698
|
+
}
|
|
1648
1699
|
interface IbcOriginAssetsRequestJson {
|
|
1649
1700
|
/** Array of assets to get origin assets for */
|
|
1650
1701
|
assets?: {
|
|
@@ -1778,12 +1829,7 @@ interface SubmitResponseJson {
|
|
|
1778
1829
|
/** Link to the transaction on the relevant block explorer */
|
|
1779
1830
|
explorer_link?: string;
|
|
1780
1831
|
}
|
|
1781
|
-
|
|
1782
|
-
/** Hash of the transaction */
|
|
1783
|
-
tx_hash: string;
|
|
1784
|
-
/** Link to the transaction on the relevant block explorer */
|
|
1785
|
-
explorer_link: string;
|
|
1786
|
-
}
|
|
1832
|
+
type TrackResponseJson = TrackTxResponseJson;
|
|
1787
1833
|
interface StatusRequestJson {
|
|
1788
1834
|
/**
|
|
1789
1835
|
* Hex encoded hash of the transaction to query for
|
|
@@ -1796,30 +1842,7 @@ interface StatusRequestJson {
|
|
|
1796
1842
|
*/
|
|
1797
1843
|
chain_id: string;
|
|
1798
1844
|
}
|
|
1799
|
-
|
|
1800
|
-
/** Transfer status for all transfers initiated by the transaction in the order they were initiated. */
|
|
1801
|
-
transfers?: TransferStatusJson[];
|
|
1802
|
-
/** The overall state reflecting the end-to-end status of all transfers initiated by the original transaction. */
|
|
1803
|
-
state: TransactionStateJson;
|
|
1804
|
-
/**
|
|
1805
|
-
* **DEPRECATED.** This field provides a flat list of all transfer events. For a more structured and detailed status of each transfer leg, including its individual events, please use the 'transfers' array instead. This field may be removed in a future version.
|
|
1806
|
-
* @deprecated
|
|
1807
|
-
*/
|
|
1808
|
-
transfer_sequence: TransferEventJson[];
|
|
1809
|
-
/** Details about the next transfer in the sequence that is preventing further progress, if any. */
|
|
1810
|
-
next_blocking_transfer?: {
|
|
1811
|
-
transfer_sequence_index?: number;
|
|
1812
|
-
} | null;
|
|
1813
|
-
/** Indicates location and denom of transfer asset release. */
|
|
1814
|
-
transfer_asset_release?: TransferAssetReleaseJson;
|
|
1815
|
-
/** Details about any error encountered during the transaction or its subsequent transfers. */
|
|
1816
|
-
error?: StatusErrorJson | null;
|
|
1817
|
-
/**
|
|
1818
|
-
* A high-level status indicator for the transaction's completion state.
|
|
1819
|
-
* @example "STATE_COMPLETED"
|
|
1820
|
-
*/
|
|
1821
|
-
status?: string;
|
|
1822
|
-
}
|
|
1845
|
+
type StatusResponseJson = StatusTxResponseJson;
|
|
1823
1846
|
interface IbcOriginAssetsResponseJson {
|
|
1824
1847
|
origin_assets?: OptionalAssetJson[];
|
|
1825
1848
|
}
|
|
@@ -1829,4 +1852,4 @@ interface FungibleAssetsBetweenChainsCreateResponseJson {
|
|
|
1829
1852
|
|
|
1830
1853
|
declare const GAS_STATION_CHAIN_IDS: string[];
|
|
1831
1854
|
|
|
1832
|
-
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 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 TransactionExecutionErrorDetailsJson, TransactionStateJson, type TransferAssetReleaseJson, type TransferEventJson, type TransferJson, TransferStateJson, type TransferStatusJson, type TransferWrapperJson, type TxJson, type VenuesRequestJson, type VenuesResponseJson };
|
|
1855
|
+
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 };
|