@skip-go/client 1.0.5 → 1.1.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/api/getAssets.d.ts +1 -1
- package/dist/api/getAssetsBetweenChains.d.ts +1 -1
- package/dist/api/getBridges.d.ts +1 -1
- package/dist/api/getChains.d.ts +1 -1
- package/dist/api/postAssetsFromSource.d.ts +1 -1
- package/dist/api/postBalances.d.ts +2 -2
- package/dist/api/postMessages.d.ts +4 -4
- package/dist/api/postMessagesDirect.d.ts +3 -3
- package/dist/api/postRecommendAssets.d.ts +1 -1
- package/dist/api/postRoute.d.ts +4 -4
- package/dist/api/postTransactionStatus.d.ts +66 -2
- package/dist/{chunk-PHTQQIAH.js → chunk-L2KVKJG4.js} +0 -1
- package/dist/{client-types-CxjtffyG.d.ts → client-types-CRJ3C0Fs.d.ts} +1 -1
- package/dist/{executeRoute-BKvMVd1I.d.ts → executeRoute-DuwZ4QCT.d.ts} +3 -3
- package/dist/{generateApi-DqCp36fX.d.ts → generateApi-B9tL1Q3P.d.ts} +1 -1
- package/dist/index.d.ts +1409 -6
- package/dist/index.js +140 -1
- package/dist/public-functions/executeRoute.d.ts +4 -4
- package/dist/public-functions/getFeeInfoForChain.d.ts +1 -1
- package/dist/public-functions/setApiOptions.d.ts +1 -1
- package/dist/public-functions/setClientOptions.d.ts +3 -3
- package/dist/public-functions/setClientOptions.js +1 -1
- package/dist/{setClientOptions-DbanEIwL.d.ts → setClientOptions-BvZ71LJa.d.ts} +1 -1
- package/dist/{swaggerTypes-O9-gvCT1.d.ts → swaggerTypes-zXseZjSi.d.ts} +4 -2
- package/package.json +1 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { A as AcknowledgementErrorDetails, a as Affiliate, bc as Api, b8 as ApiConfig, b as ApiError, c as Asset, d as AssetBetweenChains, e as AssetRecommendation, 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, D as BalanceResponseChainEntry, z as BalanceResponseDenomEntry, E as BankSend, F as BankSendWrapper, H as Bridge, I as BridgeType, C as CCTPTransfer, n as CCTPTransferInfo, p as CCTPTransferState, o as CCTPTransferTxs, q as CCTPTransferWrapper, J as Chain, L as ChainAffiliates, al as ChainTransaction, K as ChainType, ba as ContentType, M as ContractCallWithTokenError, N as ContractCallWithTokenErrorType, O as ContractCallWithTokenTxs, P as CosmWasmContractMsg, Q as CosmWasmContractMsgWrapper, b0 as CosmosModuleSupport, V as CosmosMsg, W as CosmosTx, X as CosmosTxWrapper, R as Erc20Approval, U as Error, T as ErrorDetail, aV as EurekaTransfer, aW as EurekaTransferInfo, aX as EurekaTransferWrapper, Y as EvmSwap, Z as EvmSwapWrapper, _ as EvmTx, $ as EvmTxWrapper, b3 as Fee, a2 as FeeAsset, b2 as FeeType, b6 as FullRequestParams, a4 as GRPCStatusCode, a3 as GoFastFee, G as GoFastTransfer, y as GoFastTransferInfo, w as GoFastTransferState, x as GoFastTransferTxs, bb as HttpClient, b9 as HttpResponse, a5 as HyperlaneTransfer, a6 as HyperlaneTransferInfo, a7 as HyperlaneTransferState, a8 as HyperlaneTransferTransactions, a9 as HyperlaneTransferWrapper, aa as IBCTransferInfo, b1 as IbcCapabilities, aY as LayerZeroTransfer, aZ as LayerZeroTransferInfo, aO as LayerZeroTransferState, ah as LayerZeroTransferTransactions, a_ as LayerZeroTransferWrapper, ab as Msg, ad as MultiChainMsg, ae as MultiChainMsgWrapper, aJ as OPInitTransfer, aL as OPInitTransferInfo, aN as OPInitTransferState, aM as OPInitTransferTxs, aK as OPInitTransferWrapper, af as Operation, ag as OptionalAsset, ai as Packet, aj as PacketError, ak as PacketErrorType, am as PostHandler, b4 as QueryParamsType, an as Reason, a$ as RecommendationRequest, b7 as RequestParams, b5 as ResponseFormat, ao as RoutePriceWarningType, ap as RouteResponse, aq as SendTokenError, ar as SendTokenErrorType, as as SendTokenTxs, S as SmartRelayFeeQuote, aC as SmartSwapExactCoinIn, aE as SmartSwapInWrapper, aD as SmartSwapOptions, r as StargateTransfer, u as StargateTransferInfo, s as StargateTransferState, t as StargateTransferTxs, v as StargateTransferWrapper, at as StatusError, au as StatusErrorType, a0 as SvmTx, a1 as SvmTxWrapper, av as Swap, aw as SwapExactCoinIn, ax as SwapExactCoinOut, ay as SwapInWrapper, az as SwapOperation, aA as SwapOutWrapper, aB as SwapRoute, aF as SwapVenue, aG as SwapWrapper, aH as TransactionExecutionErrorDetails, aI as TransactionState, aP as Transfer, aS as TransferAssetRelease, aQ as TransferEvent, aR as TransferState, aT as TransferStatus, aU as TransferWrapper, ac as Tx } from './swaggerTypes-
|
|
2
|
-
export { E as ExecuteRouteOptions, T as TransactionCallbacks, e as executeRoute } from './executeRoute-
|
|
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-
|
|
1
|
+
export { A as AcknowledgementErrorDetails, a as Affiliate, bc as Api, b8 as ApiConfig, b as ApiError, c as Asset, d as AssetBetweenChains, e as AssetRecommendation, 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, D as BalanceResponseChainEntry, z as BalanceResponseDenomEntry, E as BankSend, F as BankSendWrapper, H as Bridge, I as BridgeType, C as CCTPTransfer, n as CCTPTransferInfo, p as CCTPTransferState, o as CCTPTransferTxs, q as CCTPTransferWrapper, J as Chain, L as ChainAffiliates, al as ChainTransaction, K as ChainType, ba as ContentType, M as ContractCallWithTokenError, N as ContractCallWithTokenErrorType, O as ContractCallWithTokenTxs, P as CosmWasmContractMsg, Q as CosmWasmContractMsgWrapper, b0 as CosmosModuleSupport, V as CosmosMsg, W as CosmosTx, X as CosmosTxWrapper, R as Erc20Approval, U as Error, T as ErrorDetail, aV as EurekaTransfer, aW as EurekaTransferInfo, aX as EurekaTransferWrapper, Y as EvmSwap, Z as EvmSwapWrapper, _ as EvmTx, $ as EvmTxWrapper, b3 as Fee, a2 as FeeAsset, b2 as FeeType, b6 as FullRequestParams, a4 as GRPCStatusCode, a3 as GoFastFee, G as GoFastTransfer, y as GoFastTransferInfo, w as GoFastTransferState, x as GoFastTransferTxs, bb as HttpClient, b9 as HttpResponse, a5 as HyperlaneTransfer, a6 as HyperlaneTransferInfo, a7 as HyperlaneTransferState, a8 as HyperlaneTransferTransactions, a9 as HyperlaneTransferWrapper, aa as IBCTransferInfo, b1 as IbcCapabilities, aY as LayerZeroTransfer, aZ as LayerZeroTransferInfo, aO as LayerZeroTransferState, ah as LayerZeroTransferTransactions, a_ as LayerZeroTransferWrapper, ab as Msg, ad as MultiChainMsg, ae as MultiChainMsgWrapper, aJ as OPInitTransfer, aL as OPInitTransferInfo, aN as OPInitTransferState, aM as OPInitTransferTxs, aK as OPInitTransferWrapper, af as Operation, ag as OptionalAsset, ai as Packet, aj as PacketError, ak as PacketErrorType, am as PostHandler, b4 as QueryParamsType, an as Reason, a$ as RecommendationRequest, b7 as RequestParams, b5 as ResponseFormat, ao as RoutePriceWarningType, ap as RouteResponse, aq as SendTokenError, ar as SendTokenErrorType, as as SendTokenTxs, S as SmartRelayFeeQuote, aC as SmartSwapExactCoinIn, aE as SmartSwapInWrapper, aD as SmartSwapOptions, r as StargateTransfer, u as StargateTransferInfo, s as StargateTransferState, t as StargateTransferTxs, v as StargateTransferWrapper, at as StatusError, au as StatusErrorType, a0 as SvmTx, a1 as SvmTxWrapper, av as Swap, aw as SwapExactCoinIn, ax as SwapExactCoinOut, ay as SwapInWrapper, az as SwapOperation, aA as SwapOutWrapper, aB as SwapRoute, aF as SwapVenue, aG as SwapWrapper, aH as TransactionExecutionErrorDetails, aI as TransactionState, aP as Transfer, aS as TransferAssetRelease, aQ as TransferEvent, aR as TransferState, aT as TransferStatus, aU as TransferWrapper, ac as Tx } from './swaggerTypes-zXseZjSi.js';
|
|
2
|
+
export { E as ExecuteRouteOptions, T as TransactionCallbacks, e as executeRoute } from './executeRoute-DuwZ4QCT.js';
|
|
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-CRJ3C0Fs.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';
|
|
@@ -17,11 +17,11 @@ export { submitTransaction } from './api/postSubmitTransaction.js';
|
|
|
17
17
|
export { trackTransaction } from './api/postTrackTransaction.js';
|
|
18
18
|
export { TxStatusResponse, transactionStatus } from './api/postTransactionStatus.js';
|
|
19
19
|
export { getSigningStargateClient, getSigningStargateClientProps } from './public-functions/getSigningStargateClient.js';
|
|
20
|
-
export { S as SkipClientOptions, s as setClientOptions } from './setClientOptions-
|
|
20
|
+
export { S as SkipClientOptions, s as setClientOptions } from './setClientOptions-BvZ71LJa.js';
|
|
21
21
|
export { getRecommendedGasPrice } from './public-functions/getRecommendedGasPrice.js';
|
|
22
22
|
export { getFeeInfoForChain } from './public-functions/getFeeInfoForChain.js';
|
|
23
23
|
export { SetApiOptionsProps, setApiOptions } from './public-functions/setApiOptions.js';
|
|
24
|
-
import './generateApi-
|
|
24
|
+
import './generateApi-B9tL1Q3P.js';
|
|
25
25
|
import '@cosmjs/amino';
|
|
26
26
|
import '@cosmjs/proto-signing';
|
|
27
27
|
import '@cosmjs/stargate';
|
|
@@ -29,6 +29,1409 @@ import 'viem';
|
|
|
29
29
|
import '@solana/wallet-adapter-base';
|
|
30
30
|
import './apiState-CdzxTxYd.js';
|
|
31
31
|
|
|
32
|
+
interface AcknowledgementErrorDetailsJson {
|
|
33
|
+
/** Error code */
|
|
34
|
+
code?: number;
|
|
35
|
+
/** Error message */
|
|
36
|
+
message?: string;
|
|
37
|
+
}
|
|
38
|
+
/** An affiliate that receives fees from a swap */
|
|
39
|
+
interface AffiliateJson {
|
|
40
|
+
/** Address to which to pay the fee */
|
|
41
|
+
address?: string;
|
|
42
|
+
/** Bps fee to pay to the affiliate */
|
|
43
|
+
basis_points_fee?: string;
|
|
44
|
+
}
|
|
45
|
+
interface ApiErrorJson {
|
|
46
|
+
/** Error message */
|
|
47
|
+
message?: string;
|
|
48
|
+
}
|
|
49
|
+
interface AssetJson {
|
|
50
|
+
/** Chain-id of the asset */
|
|
51
|
+
chain_id: string;
|
|
52
|
+
/** Coingecko id of the asset */
|
|
53
|
+
coingecko_id?: string | null;
|
|
54
|
+
/** Number of decimals used for amounts of the asset */
|
|
55
|
+
decimals?: number | null;
|
|
56
|
+
/** Denom of the asset */
|
|
57
|
+
denom: string;
|
|
58
|
+
/** Description of the asset */
|
|
59
|
+
description?: string | null;
|
|
60
|
+
/** Indicates whether asset is a CW20 token */
|
|
61
|
+
is_cw20: boolean;
|
|
62
|
+
/** Indicates whether asset is an EVM token */
|
|
63
|
+
is_evm: boolean;
|
|
64
|
+
/** Indicates whether asset is an SVM token */
|
|
65
|
+
is_svm: boolean;
|
|
66
|
+
/** URI pointing to an image of the logo of the asset */
|
|
67
|
+
logo_uri?: string | null;
|
|
68
|
+
/** Name of the asset */
|
|
69
|
+
name?: string | null;
|
|
70
|
+
/** 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 */
|
|
71
|
+
origin_chain_id: string;
|
|
72
|
+
/** Denom of the origin of the asset. If this is an ibc denom, this is the original denom that the ibc token represents */
|
|
73
|
+
origin_denom: string;
|
|
74
|
+
/** 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 */
|
|
75
|
+
recommended_symbol?: string | null;
|
|
76
|
+
/** Symbol of the asset, e.g. ATOM for uatom */
|
|
77
|
+
symbol?: string | null;
|
|
78
|
+
/** Address of the contract for the asset, e.g. if it is a CW20 or ERC20 token */
|
|
79
|
+
token_contract?: string | null;
|
|
80
|
+
/** The forward slash delimited sequence of ibc ports and channels that can be traversed to unwind an ibc token to its origin asset. */
|
|
81
|
+
trace: string;
|
|
82
|
+
}
|
|
83
|
+
interface AssetBetweenChainsJson {
|
|
84
|
+
asset_on_source?: AssetJson;
|
|
85
|
+
asset_on_dest?: AssetJson;
|
|
86
|
+
/** Number of transactions required to transfer the asset */
|
|
87
|
+
txs_required: number;
|
|
88
|
+
/** Bridges that are used to transfer the asset */
|
|
89
|
+
bridges?: BridgeTypeJson[];
|
|
90
|
+
}
|
|
91
|
+
interface AssetRecommendationJson {
|
|
92
|
+
/** Asset that is recommended */
|
|
93
|
+
asset?: AssetJson;
|
|
94
|
+
/** Reason for recommending the asset */
|
|
95
|
+
reason?: ReasonJson;
|
|
96
|
+
}
|
|
97
|
+
declare enum AutopilotActionJson {
|
|
98
|
+
LIQUID_STAKE = "LIQUID_STAKE",
|
|
99
|
+
CLAIM = "CLAIM"
|
|
100
|
+
}
|
|
101
|
+
interface AutopilotMsgJson {
|
|
102
|
+
action?: AutopilotActionJson;
|
|
103
|
+
receiver?: string;
|
|
104
|
+
}
|
|
105
|
+
interface AutopilotMsgWrapperJson {
|
|
106
|
+
autpilot_msg?: AutopilotMsgJson;
|
|
107
|
+
}
|
|
108
|
+
/** A transfer facilitated by the Axelar bridge */
|
|
109
|
+
interface AxelarTransferJson {
|
|
110
|
+
/** Axelar-name of the asset to bridge */
|
|
111
|
+
asset?: string;
|
|
112
|
+
/** Amount of the fee asset to be paid as the Axelar bridge fee. This is denominated in the fee asset. */
|
|
113
|
+
fee_amount?: string;
|
|
114
|
+
fee_asset?: AssetJson;
|
|
115
|
+
/** Name for source chain of the bridge transaction used on Axelar */
|
|
116
|
+
from_chain?: string;
|
|
117
|
+
/** Canonical chain-id of the source chain of the bridge transaction */
|
|
118
|
+
from_chain_id?: string;
|
|
119
|
+
/** Whether the source and destination chains are both testnets */
|
|
120
|
+
is_testnet?: boolean;
|
|
121
|
+
/** Whether to unwrap the asset at the destination chain (from ERC-20 to native) */
|
|
122
|
+
should_unwrap?: boolean;
|
|
123
|
+
/** Name for destination chain of the bridge transaction used on Axelar */
|
|
124
|
+
to_chain?: string;
|
|
125
|
+
/** Canonical chain-id of the destination chain of the bridge transaction */
|
|
126
|
+
to_chain_id?: string;
|
|
127
|
+
/** Denom of the input asset */
|
|
128
|
+
denom_in?: string;
|
|
129
|
+
/** Denom of the output asset */
|
|
130
|
+
denom_out?: string;
|
|
131
|
+
/** Amount of the fee asset to be paid as the Axelar bridge fee, converted to USD value */
|
|
132
|
+
usd_fee_amount?: string;
|
|
133
|
+
/** A cross-chain transfer */
|
|
134
|
+
ibc_transfer_to_axelar?: TransferJson;
|
|
135
|
+
/**
|
|
136
|
+
* Bridge Type:
|
|
137
|
+
* * `IBC` - IBC Bridge
|
|
138
|
+
* * `AXELAR` - Axelar Bridge
|
|
139
|
+
* * `CCTP` - CCTP Bridge
|
|
140
|
+
* * `HYPERLANE` - Hyperlane Bridge
|
|
141
|
+
* * `OPINIT` - Opinit Bridge
|
|
142
|
+
* * `GO_FAST` - Go Fast Bridge
|
|
143
|
+
* * `STARGATE` - Stargate Bridge
|
|
144
|
+
* * `EUREKA` - IBC Eureka Bridge
|
|
145
|
+
*/
|
|
146
|
+
bridge_id?: BridgeTypeJson;
|
|
147
|
+
/** Indicates whether this transfer is relayed via Smart Relay */
|
|
148
|
+
smart_relay?: boolean;
|
|
149
|
+
}
|
|
150
|
+
interface AxelarTransferInfoJson {
|
|
151
|
+
/** Link to the transaction on the Axelar Scan explorer */
|
|
152
|
+
axelar_scan_link?: string;
|
|
153
|
+
/** Chain ID of the destination chain */
|
|
154
|
+
to_chain_id: string;
|
|
155
|
+
/** Chain ID of the source chain */
|
|
156
|
+
from_chain_id: string;
|
|
157
|
+
/**
|
|
158
|
+
* Axelar transfer state:
|
|
159
|
+
* * `AXELAR_TRANSFER_UNKNOWN` - Unknown error
|
|
160
|
+
* * `AXELAR_TRANSFER_PENDING_CONFIRMATION` - Axelar transfer is pending confirmation
|
|
161
|
+
* * `AXELAR_TRANSFER_PENDING_RECEIPT` - Axelar transfer is pending receipt at destination
|
|
162
|
+
* * `AXELAR_TRANSFER_SUCCESS` - Axelar transfer succeeded and assets have been received
|
|
163
|
+
* * `AXELAR_TRANSFER_FAILURE` - Axelar transfer failed
|
|
164
|
+
*/
|
|
165
|
+
state: AxelarTransferStateJson;
|
|
166
|
+
txs: ContractCallWithTokenTxsJson | SendTokenTxsJson;
|
|
167
|
+
/**
|
|
168
|
+
* Axelar transfer type:
|
|
169
|
+
* * `AXELAR_TRANSFER_CONTRACT_CALL_WITH_TOKEN` - GMP contract call with token transfer type
|
|
170
|
+
* * `AXELAR_TRANSFER_SEND_TOKEN` - Send token transfer type
|
|
171
|
+
*/
|
|
172
|
+
type?: AxelarTransferTypeJson;
|
|
173
|
+
}
|
|
174
|
+
/**
|
|
175
|
+
* Axelar transfer state:
|
|
176
|
+
* * `AXELAR_TRANSFER_UNKNOWN` - Unknown error
|
|
177
|
+
* * `AXELAR_TRANSFER_PENDING_CONFIRMATION` - Axelar transfer is pending confirmation
|
|
178
|
+
* * `AXELAR_TRANSFER_PENDING_RECEIPT` - Axelar transfer is pending receipt at destination
|
|
179
|
+
* * `AXELAR_TRANSFER_SUCCESS` - Axelar transfer succeeded and assets have been received
|
|
180
|
+
* * `AXELAR_TRANSFER_FAILURE` - Axelar transfer failed
|
|
181
|
+
*/
|
|
182
|
+
declare enum AxelarTransferStateJson {
|
|
183
|
+
AXELAR_TRANSFER_UNKNOWN = "AXELAR_TRANSFER_UNKNOWN",
|
|
184
|
+
AXELAR_TRANSFER_PENDING_CONFIRMATION = "AXELAR_TRANSFER_PENDING_CONFIRMATION",
|
|
185
|
+
AXELAR_TRANSFER_PENDING_RECEIPT = "AXELAR_TRANSFER_PENDING_RECEIPT",
|
|
186
|
+
AXELAR_TRANSFER_SUCCESS = "AXELAR_TRANSFER_SUCCESS",
|
|
187
|
+
AXELAR_TRANSFER_FAILURE = "AXELAR_TRANSFER_FAILURE"
|
|
188
|
+
}
|
|
189
|
+
/**
|
|
190
|
+
* Axelar transfer type:
|
|
191
|
+
* * `AXELAR_TRANSFER_CONTRACT_CALL_WITH_TOKEN` - GMP contract call with token transfer type
|
|
192
|
+
* * `AXELAR_TRANSFER_SEND_TOKEN` - Send token transfer type
|
|
193
|
+
*/
|
|
194
|
+
declare enum AxelarTransferTypeJson {
|
|
195
|
+
AXELAR_TRANSFER_CONTRACT_CALL_WITH_TOKEN = "AXELAR_TRANSFER_CONTRACT_CALL_WITH_TOKEN",
|
|
196
|
+
AXELAR_TRANSFER_SEND_TOKEN = "AXELAR_TRANSFER_SEND_TOKEN"
|
|
197
|
+
}
|
|
198
|
+
interface AxelarTransferWrapperJson {
|
|
199
|
+
/** A transfer facilitated by the Axelar bridge */
|
|
200
|
+
axelar_transfer?: AxelarTransferJson;
|
|
201
|
+
}
|
|
202
|
+
/** Details about the fee paid for Smart Relaying */
|
|
203
|
+
interface SmartRelayFeeQuoteJson {
|
|
204
|
+
/** The USDC fee amount */
|
|
205
|
+
fee_amount?: string;
|
|
206
|
+
/** The fee asset denomination */
|
|
207
|
+
fee_denom?: string;
|
|
208
|
+
/** The address the fee should be sent to */
|
|
209
|
+
fee_payment_address?: string | null;
|
|
210
|
+
/** Address of the relayer */
|
|
211
|
+
relayer_address?: string;
|
|
212
|
+
/** Expiration time of the fee quote */
|
|
213
|
+
expiration?: string;
|
|
214
|
+
}
|
|
215
|
+
/** A transfer facilitated by the CCTP bridge */
|
|
216
|
+
interface CCTPTransferJson {
|
|
217
|
+
/** Canonical chain-id of the source chain of the bridge transaction */
|
|
218
|
+
from_chain_id?: string;
|
|
219
|
+
/** Canonical chain-id of the destination chain of the bridge transaction */
|
|
220
|
+
to_chain_id?: string;
|
|
221
|
+
/** Name of the asset to bridge. It will be the erc-20 contract address for EVM chains and `uusdc` for Noble. */
|
|
222
|
+
burn_token?: string;
|
|
223
|
+
/** Denom of the input asset */
|
|
224
|
+
denom_in?: string;
|
|
225
|
+
/** Denom of the output asset */
|
|
226
|
+
denom_out?: string;
|
|
227
|
+
/**
|
|
228
|
+
* Bridge Type:
|
|
229
|
+
* * `IBC` - IBC Bridge
|
|
230
|
+
* * `AXELAR` - Axelar Bridge
|
|
231
|
+
* * `CCTP` - CCTP Bridge
|
|
232
|
+
* * `HYPERLANE` - Hyperlane Bridge
|
|
233
|
+
* * `OPINIT` - Opinit Bridge
|
|
234
|
+
* * `GO_FAST` - Go Fast Bridge
|
|
235
|
+
* * `STARGATE` - Stargate Bridge
|
|
236
|
+
* * `EUREKA` - IBC Eureka Bridge
|
|
237
|
+
*/
|
|
238
|
+
bridge_id?: BridgeTypeJson;
|
|
239
|
+
/** Indicates whether this transfer is relayed via Smart Relay */
|
|
240
|
+
smart_relay?: boolean;
|
|
241
|
+
smart_relay_fee_quote?: SmartRelayFeeQuoteJson | null;
|
|
242
|
+
}
|
|
243
|
+
interface CCTPTransferInfoJson {
|
|
244
|
+
/** Chain ID of the destination chain */
|
|
245
|
+
to_chain_id?: string;
|
|
246
|
+
/** Chain ID of the source chain */
|
|
247
|
+
from_chain_id?: string;
|
|
248
|
+
/**
|
|
249
|
+
* CCTP transfer state:
|
|
250
|
+
* * `CCTP_TRANSFER_UNKNOWN` - Unknown error
|
|
251
|
+
* * `CCTP_TRANSFER_SENT` - The burn transaction on the source chain has executed
|
|
252
|
+
* * `CCTP_TRANSFER_PENDING_CONFIRMATION` - CCTP transfer is pending confirmation by the cctp attestation api
|
|
253
|
+
* * `CCTP_TRANSFER_CONFIRMED` - CCTP transfer has been confirmed by the cctp attestation api
|
|
254
|
+
* * `CCTP_TRANSFER_RECEIVED` - CCTP transfer has been received at the destination chain
|
|
255
|
+
*/
|
|
256
|
+
state?: CCTPTransferStateJson;
|
|
257
|
+
txs?: CCTPTransferTxsJson;
|
|
258
|
+
}
|
|
259
|
+
interface CCTPTransferTxsJson {
|
|
260
|
+
send_tx?: ChainTransactionJson | null;
|
|
261
|
+
receive_tx?: ChainTransactionJson | null;
|
|
262
|
+
}
|
|
263
|
+
/**
|
|
264
|
+
* CCTP transfer state:
|
|
265
|
+
* * `CCTP_TRANSFER_UNKNOWN` - Unknown error
|
|
266
|
+
* * `CCTP_TRANSFER_SENT` - The burn transaction on the source chain has executed
|
|
267
|
+
* * `CCTP_TRANSFER_PENDING_CONFIRMATION` - CCTP transfer is pending confirmation by the cctp attestation api
|
|
268
|
+
* * `CCTP_TRANSFER_CONFIRMED` - CCTP transfer has been confirmed by the cctp attestation api
|
|
269
|
+
* * `CCTP_TRANSFER_RECEIVED` - CCTP transfer has been received at the destination chain
|
|
270
|
+
*/
|
|
271
|
+
declare enum CCTPTransferStateJson {
|
|
272
|
+
CCTP_TRANSFER_UNKNOWN = "CCTP_TRANSFER_UNKNOWN",
|
|
273
|
+
CCTP_TRANSFER_SENT = "CCTP_TRANSFER_SENT",
|
|
274
|
+
CCTP_TRANSFER_PENDING_CONFIRMATION = "CCTP_TRANSFER_PENDING_CONFIRMATION",
|
|
275
|
+
CCTP_TRANSFER_CONFIRMED = "CCTP_TRANSFER_CONFIRMED",
|
|
276
|
+
CCTP_TRANSFER_RECEIVED = "CCTP_TRANSFER_RECEIVED"
|
|
277
|
+
}
|
|
278
|
+
interface CCTPTransferWrapperJson {
|
|
279
|
+
/** A transfer facilitated by the CCTP bridge */
|
|
280
|
+
cctp_transfer?: CCTPTransferJson;
|
|
281
|
+
}
|
|
282
|
+
/** A transfer facilitated by the Stargate bridge */
|
|
283
|
+
interface StargateTransferJson {
|
|
284
|
+
/** Canonical chain-id of the source chain of the bridge transaction */
|
|
285
|
+
from_chain_id?: string;
|
|
286
|
+
/** Canonical chain-id of the destination chain of the bridge transaction */
|
|
287
|
+
to_chain_id?: string;
|
|
288
|
+
/** Denom of the input asset */
|
|
289
|
+
denom_in?: string;
|
|
290
|
+
/** Denom of the output asset */
|
|
291
|
+
denom_out?: string;
|
|
292
|
+
/**
|
|
293
|
+
* Bridge Type:
|
|
294
|
+
* * `IBC` - IBC Bridge
|
|
295
|
+
* * `AXELAR` - Axelar Bridge
|
|
296
|
+
* * `CCTP` - CCTP Bridge
|
|
297
|
+
* * `HYPERLANE` - Hyperlane Bridge
|
|
298
|
+
* * `OPINIT` - Opinit Bridge
|
|
299
|
+
* * `GO_FAST` - Go Fast Bridge
|
|
300
|
+
* * `STARGATE` - Stargate Bridge
|
|
301
|
+
* * `EUREKA` - IBC Eureka Bridge
|
|
302
|
+
*/
|
|
303
|
+
bridge_id?: BridgeTypeJson;
|
|
304
|
+
pool_address?: string;
|
|
305
|
+
destination_endpoint_id?: number;
|
|
306
|
+
oft_fee_asset?: AssetJson;
|
|
307
|
+
oft_fee_amount?: string;
|
|
308
|
+
oft_fee_amount_usd?: string;
|
|
309
|
+
messaging_fee_asset?: AssetJson;
|
|
310
|
+
messaging_fee_amount?: string;
|
|
311
|
+
messageing_fee_amount_usd?: string;
|
|
312
|
+
}
|
|
313
|
+
/**
|
|
314
|
+
* Stargate transfer state:
|
|
315
|
+
* * `STARGATE_TRANSFER_UNKNOWN` - Unknown error
|
|
316
|
+
* * `STARGATE_TRANSFER_SENT` - The Stargate transfer transaction on the source chain has executed
|
|
317
|
+
* * `STARGATE_TRANSFER_PENDING_CONFIRMATION` - Stargate transfer is pending confirmation
|
|
318
|
+
* * `STARGATE_TRANSFER_CONFIRMED` - Stargate transfer has been confirmed
|
|
319
|
+
* * `STARGATE_TRANSFER_RECEIVED` - Stargate transfer has been received at the destination chain
|
|
320
|
+
* * `STARGATE_TRANSFER_FAILED` - Stargate transfer failed
|
|
321
|
+
*/
|
|
322
|
+
declare enum StargateTransferStateJson {
|
|
323
|
+
STARGATE_TRANSFER_UNKNOWN = "STARGATE_TRANSFER_UNKNOWN",
|
|
324
|
+
STARGATE_TRANSFER_SENT = "STARGATE_TRANSFER_SENT",
|
|
325
|
+
STARGATE_TRANSFER_PENDING_CONFIRMATION = "STARGATE_TRANSFER_PENDING_CONFIRMATION",
|
|
326
|
+
STARGATE_TRANSFER_CONFIRMED = "STARGATE_TRANSFER_CONFIRMED",
|
|
327
|
+
STARGATE_TRANSFER_RECEIVED = "STARGATE_TRANSFER_RECEIVED",
|
|
328
|
+
STARGATE_TRANSFER_FAILED = "STARGATE_TRANSFER_FAILED"
|
|
329
|
+
}
|
|
330
|
+
interface StargateTransferTxsJson {
|
|
331
|
+
send_tx?: ChainTransactionJson | null;
|
|
332
|
+
receive_tx?: ChainTransactionJson | null;
|
|
333
|
+
error_tx?: ChainTransactionJson | null;
|
|
334
|
+
}
|
|
335
|
+
interface StargateTransferInfoJson {
|
|
336
|
+
/** Chain ID of the source chain */
|
|
337
|
+
from_chain_id?: string;
|
|
338
|
+
/** Chain ID of the destination chain */
|
|
339
|
+
to_chain_id?: string;
|
|
340
|
+
/**
|
|
341
|
+
* Stargate transfer state:
|
|
342
|
+
* * `STARGATE_TRANSFER_UNKNOWN` - Unknown error
|
|
343
|
+
* * `STARGATE_TRANSFER_SENT` - The Stargate transfer transaction on the source chain has executed
|
|
344
|
+
* * `STARGATE_TRANSFER_PENDING_CONFIRMATION` - Stargate transfer is pending confirmation
|
|
345
|
+
* * `STARGATE_TRANSFER_CONFIRMED` - Stargate transfer has been confirmed
|
|
346
|
+
* * `STARGATE_TRANSFER_RECEIVED` - Stargate transfer has been received at the destination chain
|
|
347
|
+
* * `STARGATE_TRANSFER_FAILED` - Stargate transfer failed
|
|
348
|
+
*/
|
|
349
|
+
state?: StargateTransferStateJson;
|
|
350
|
+
txs?: StargateTransferTxsJson;
|
|
351
|
+
}
|
|
352
|
+
interface StargateTransferWrapperJson {
|
|
353
|
+
/** A transfer facilitated by the Stargate bridge */
|
|
354
|
+
stargate_transfer?: StargateTransferJson;
|
|
355
|
+
}
|
|
356
|
+
/** A transfer facilitated by GoFast */
|
|
357
|
+
interface GoFastTransferJson {
|
|
358
|
+
/** Canonical chain-id of the source chain of the bridge transaction */
|
|
359
|
+
from_chain_id?: string;
|
|
360
|
+
/** Canonical chain-id of the destination chain of the bridge transaction */
|
|
361
|
+
to_chain_id?: string;
|
|
362
|
+
/**
|
|
363
|
+
* Bridge Type:
|
|
364
|
+
* * `IBC` - IBC Bridge
|
|
365
|
+
* * `AXELAR` - Axelar Bridge
|
|
366
|
+
* * `CCTP` - CCTP Bridge
|
|
367
|
+
* * `HYPERLANE` - Hyperlane Bridge
|
|
368
|
+
* * `OPINIT` - Opinit Bridge
|
|
369
|
+
* * `GO_FAST` - Go Fast Bridge
|
|
370
|
+
* * `STARGATE` - Stargate Bridge
|
|
371
|
+
* * `EUREKA` - IBC Eureka Bridge
|
|
372
|
+
*/
|
|
373
|
+
bridge_id?: BridgeTypeJson;
|
|
374
|
+
/** Denom of the input asset */
|
|
375
|
+
denom_in?: string;
|
|
376
|
+
/** Denom of the output asset */
|
|
377
|
+
denom_out?: string;
|
|
378
|
+
/** Go fast Fee */
|
|
379
|
+
fee?: GoFastFeeJson;
|
|
380
|
+
}
|
|
381
|
+
/**
|
|
382
|
+
* GoFast transfer state:
|
|
383
|
+
* * `GO_FAST_TRANSFER_UNKNOWN` - Unknown state
|
|
384
|
+
* * `GO_FAST_TRANSFER_SENT` - Order submitted on source chain
|
|
385
|
+
* * `GO_FAST_POST_ACTION_FAILED` - Order filled, but subsequent action (e.g., swap) failed
|
|
386
|
+
* * `GO_FAST_TRANSFER_TIMEOUT` - Order timed out
|
|
387
|
+
* * `GO_FAST_TRANSFER_FILLED` - Order filled on destination chain
|
|
388
|
+
* * `GO_FAST_TRANSFER_REFUNDED` - Order refunded
|
|
389
|
+
*/
|
|
390
|
+
declare enum GoFastTransferStateJson {
|
|
391
|
+
GO_FAST_TRANSFER_UNKNOWN = "GO_FAST_TRANSFER_UNKNOWN",
|
|
392
|
+
GO_FAST_TRANSFER_SENT = "GO_FAST_TRANSFER_SENT",
|
|
393
|
+
GO_FAST_POST_ACTION_FAILED = "GO_FAST_POST_ACTION_FAILED",
|
|
394
|
+
GO_FAST_TRANSFER_TIMEOUT = "GO_FAST_TRANSFER_TIMEOUT",
|
|
395
|
+
GO_FAST_TRANSFER_FILLED = "GO_FAST_TRANSFER_FILLED",
|
|
396
|
+
GO_FAST_TRANSFER_REFUNDED = "GO_FAST_TRANSFER_REFUNDED"
|
|
397
|
+
}
|
|
398
|
+
interface GoFastTransferTxsJson {
|
|
399
|
+
order_submitted_tx?: ChainTransactionJson | null;
|
|
400
|
+
order_filled_tx?: ChainTransactionJson | null;
|
|
401
|
+
order_refunded_tx?: ChainTransactionJson | null;
|
|
402
|
+
order_timeout_tx?: ChainTransactionJson | null;
|
|
403
|
+
}
|
|
404
|
+
interface GoFastTransferInfoJson {
|
|
405
|
+
/** Chain Id of the source chain */
|
|
406
|
+
from_chain_id: string;
|
|
407
|
+
/** Chain Id of the destination chain */
|
|
408
|
+
to_chain_id: string;
|
|
409
|
+
/**
|
|
410
|
+
* GoFast transfer state:
|
|
411
|
+
* * `GO_FAST_TRANSFER_UNKNOWN` - Unknown state
|
|
412
|
+
* * `GO_FAST_TRANSFER_SENT` - Order submitted on source chain
|
|
413
|
+
* * `GO_FAST_POST_ACTION_FAILED` - Order filled, but subsequent action (e.g., swap) failed
|
|
414
|
+
* * `GO_FAST_TRANSFER_TIMEOUT` - Order timed out
|
|
415
|
+
* * `GO_FAST_TRANSFER_FILLED` - Order filled on destination chain
|
|
416
|
+
* * `GO_FAST_TRANSFER_REFUNDED` - Order refunded
|
|
417
|
+
*/
|
|
418
|
+
state: GoFastTransferStateJson;
|
|
419
|
+
txs: GoFastTransferTxsJson;
|
|
420
|
+
/** Error message if the transfer failed post-fill */
|
|
421
|
+
error_message?: string | null;
|
|
422
|
+
}
|
|
423
|
+
interface BalanceRequestChainEntryJson {
|
|
424
|
+
/** Address of the wallet that the balance is requested for */
|
|
425
|
+
address?: string;
|
|
426
|
+
/** Denoms of the assets to get the balance for */
|
|
427
|
+
denoms?: string[];
|
|
428
|
+
}
|
|
429
|
+
interface BalanceResponseDenomEntryJson {
|
|
430
|
+
amount: string;
|
|
431
|
+
/** @format int32 */
|
|
432
|
+
decimals?: number | null;
|
|
433
|
+
formatted_amount: string;
|
|
434
|
+
price?: string | null;
|
|
435
|
+
value_usd?: string | null;
|
|
436
|
+
error?: ApiErrorJson | null;
|
|
437
|
+
}
|
|
438
|
+
interface BalanceResponseChainEntryJson {
|
|
439
|
+
denoms?: Record<string, BalanceResponseDenomEntryJson>;
|
|
440
|
+
}
|
|
441
|
+
interface BankSendJson {
|
|
442
|
+
/** Chain-id of the chain that the transaction is intended for */
|
|
443
|
+
chain_id?: string;
|
|
444
|
+
/** Denom of the asset to send */
|
|
445
|
+
denom?: string;
|
|
446
|
+
}
|
|
447
|
+
interface BankSendWrapperJson {
|
|
448
|
+
bank_send?: BankSendJson;
|
|
449
|
+
}
|
|
450
|
+
interface BridgeJson {
|
|
451
|
+
/**
|
|
452
|
+
* Bridge Type:
|
|
453
|
+
* * `IBC` - IBC Bridge
|
|
454
|
+
* * `AXELAR` - Axelar Bridge
|
|
455
|
+
* * `CCTP` - CCTP Bridge
|
|
456
|
+
* * `HYPERLANE` - Hyperlane Bridge
|
|
457
|
+
* * `OPINIT` - Opinit Bridge
|
|
458
|
+
* * `GO_FAST` - Go Fast Bridge
|
|
459
|
+
* * `STARGATE` - Stargate Bridge
|
|
460
|
+
* * `EUREKA` - IBC Eureka Bridge
|
|
461
|
+
*/
|
|
462
|
+
id?: BridgeTypeJson;
|
|
463
|
+
/** Name of the bridge */
|
|
464
|
+
name?: string;
|
|
465
|
+
/** URI pointing to an image of the logo of the bridge */
|
|
466
|
+
logo_uri?: string;
|
|
467
|
+
}
|
|
468
|
+
/**
|
|
469
|
+
* Bridge Type:
|
|
470
|
+
* * `IBC` - IBC Bridge
|
|
471
|
+
* * `AXELAR` - Axelar Bridge
|
|
472
|
+
* * `CCTP` - CCTP Bridge
|
|
473
|
+
* * `HYPERLANE` - Hyperlane Bridge
|
|
474
|
+
* * `OPINIT` - Opinit Bridge
|
|
475
|
+
* * `GO_FAST` - Go Fast Bridge
|
|
476
|
+
* * `STARGATE` - Stargate Bridge
|
|
477
|
+
* * `EUREKA` - IBC Eureka Bridge
|
|
478
|
+
*/
|
|
479
|
+
declare enum BridgeTypeJson {
|
|
480
|
+
IBC = "IBC",
|
|
481
|
+
AXELAR = "AXELAR",
|
|
482
|
+
CCTP = "CCTP",
|
|
483
|
+
HYPERLANE = "HYPERLANE",
|
|
484
|
+
OPINIT = "OPINIT",
|
|
485
|
+
GO_FAST = "GO_FAST",
|
|
486
|
+
STARGATE = "STARGATE",
|
|
487
|
+
EUREKA = "EUREKA"
|
|
488
|
+
}
|
|
489
|
+
interface ChainJson {
|
|
490
|
+
/** Name of the chain */
|
|
491
|
+
chain_name: string;
|
|
492
|
+
/** Chain-id of the chain */
|
|
493
|
+
chain_id: string;
|
|
494
|
+
/** Whether the PFM module is enabled on the chain */
|
|
495
|
+
pfm_enabled: boolean;
|
|
496
|
+
/** Supported cosmos modules */
|
|
497
|
+
cosmos_module_support: CosmosModuleSupportJson;
|
|
498
|
+
/** Whether the chain supports IBC memos */
|
|
499
|
+
supports_memo: boolean;
|
|
500
|
+
/** chain logo URI */
|
|
501
|
+
logo_uri?: string | null;
|
|
502
|
+
/** Bech32 prefix of the chain */
|
|
503
|
+
bech32_prefix: string;
|
|
504
|
+
/** Fee assets of the chain */
|
|
505
|
+
fee_assets: FeeAssetJson[];
|
|
506
|
+
/** Type of chain, e.g. "cosmos" or "evm" */
|
|
507
|
+
chain_type: ChainTypeJson;
|
|
508
|
+
/** IBC capabilities of the chain */
|
|
509
|
+
ibc_capabilities: IbcCapabilitiesJson;
|
|
510
|
+
/** Whether the chain is a testnet */
|
|
511
|
+
is_testnet: boolean;
|
|
512
|
+
/** User friendly name of the chain */
|
|
513
|
+
pretty_name: string;
|
|
514
|
+
}
|
|
515
|
+
declare enum ChainTypeJson {
|
|
516
|
+
Cosmos = "cosmos",
|
|
517
|
+
Evm = "evm",
|
|
518
|
+
Svm = "svm"
|
|
519
|
+
}
|
|
520
|
+
interface ChainAffiliatesJson {
|
|
521
|
+
/** An array of affiliates that receives fees from a swap */
|
|
522
|
+
affiliates?: AffiliateJson[];
|
|
523
|
+
}
|
|
524
|
+
interface ContractCallWithTokenErrorJson {
|
|
525
|
+
/** Error message */
|
|
526
|
+
message?: string;
|
|
527
|
+
/**
|
|
528
|
+
* ContractCallWithToken errors:
|
|
529
|
+
* * `CONTRACT_CALL_WITH_TOKEN_EXECUTION_ERROR` - Error occurred during the execute transaction
|
|
530
|
+
*/
|
|
531
|
+
type?: ContractCallWithTokenErrorTypeJson;
|
|
532
|
+
}
|
|
533
|
+
/**
|
|
534
|
+
* ContractCallWithToken errors:
|
|
535
|
+
* * `CONTRACT_CALL_WITH_TOKEN_EXECUTION_ERROR` - Error occurred during the execute transaction
|
|
536
|
+
*/
|
|
537
|
+
declare enum ContractCallWithTokenErrorTypeJson {
|
|
538
|
+
CONTRACT_CALL_WITH_TOKEN_EXECUTION_ERROR = "CONTRACT_CALL_WITH_TOKEN_EXECUTION_ERROR"
|
|
539
|
+
}
|
|
540
|
+
interface ContractCallWithTokenTxsJson {
|
|
541
|
+
approve_tx?: ChainTransactionJson | null;
|
|
542
|
+
confirm_tx?: ChainTransactionJson | null;
|
|
543
|
+
error?: ContractCallWithTokenErrorJson | null;
|
|
544
|
+
execute_tx?: ChainTransactionJson | null;
|
|
545
|
+
gas_paid_tx?: ChainTransactionJson | null;
|
|
546
|
+
send_tx?: ChainTransactionJson | null;
|
|
547
|
+
}
|
|
548
|
+
interface CosmWasmContractMsgJson {
|
|
549
|
+
/** Address of the contract to execute the message on */
|
|
550
|
+
contract_address?: string;
|
|
551
|
+
/** JSON string of the message */
|
|
552
|
+
msg?: string;
|
|
553
|
+
}
|
|
554
|
+
interface CosmWasmContractMsgWrapperJson {
|
|
555
|
+
wasm_msg?: CosmWasmContractMsgJson;
|
|
556
|
+
}
|
|
557
|
+
/** An ERC20 token contract approval */
|
|
558
|
+
interface Erc20ApprovalJson {
|
|
559
|
+
/** Amount of the approval */
|
|
560
|
+
amount: string;
|
|
561
|
+
/** Address of the spender */
|
|
562
|
+
spender: string;
|
|
563
|
+
/** Address of the ERC20 token contract */
|
|
564
|
+
token_contract: string;
|
|
565
|
+
}
|
|
566
|
+
interface ErrorDetailJson {
|
|
567
|
+
/**
|
|
568
|
+
* Error detail:
|
|
569
|
+
* * `LOW_INFO_ERROR` - Not enough asset pricing information to determine the price safety of the route.
|
|
570
|
+
* * `BAD_PRICE_ERROR` - The execution price of the route deviates significantly from the current market price.
|
|
571
|
+
*/
|
|
572
|
+
reason?: "LOW_INFO_ERROR" | "BAD_PRICE_ERROR";
|
|
573
|
+
}
|
|
574
|
+
interface ErrorJson {
|
|
575
|
+
/** Error code */
|
|
576
|
+
code?: GRPCStatusCodeJson;
|
|
577
|
+
/** Additional error details */
|
|
578
|
+
details?: ErrorDetailJson[];
|
|
579
|
+
/** Error message */
|
|
580
|
+
message?: string;
|
|
581
|
+
}
|
|
582
|
+
/** A message in a cosmos transaction */
|
|
583
|
+
interface CosmosMsgJson {
|
|
584
|
+
/** JSON string of the message */
|
|
585
|
+
msg?: string;
|
|
586
|
+
/** TypeUrl of the message */
|
|
587
|
+
msg_type_url?: string;
|
|
588
|
+
}
|
|
589
|
+
/** A transaction on a Cosmos chain */
|
|
590
|
+
interface CosmosTxJson {
|
|
591
|
+
/** Chain-id of the chain that the transaction is intended for */
|
|
592
|
+
chain_id: string;
|
|
593
|
+
/** Path of chain-ids that the message is intended to interact with */
|
|
594
|
+
path?: string[];
|
|
595
|
+
/** The address of the wallet that will sign this transaction */
|
|
596
|
+
signer_address?: string;
|
|
597
|
+
/** The messages that should be included in the transaction. The ordering must be adhered to. */
|
|
598
|
+
msgs?: CosmosMsgJson[];
|
|
599
|
+
}
|
|
600
|
+
interface CosmosTxWrapperJson {
|
|
601
|
+
/** A transaction on a Cosmos chain */
|
|
602
|
+
cosmos_tx: CosmosTxJson;
|
|
603
|
+
}
|
|
604
|
+
/** A swap on an EVM chain */
|
|
605
|
+
interface EvmSwapJson {
|
|
606
|
+
/** Address of the input token. Empty string if native token. */
|
|
607
|
+
input_token?: string;
|
|
608
|
+
/** Amount of the input token */
|
|
609
|
+
amount_in?: string;
|
|
610
|
+
/** Calldata for the swap */
|
|
611
|
+
swap_calldata?: string;
|
|
612
|
+
/** Amount of the output token */
|
|
613
|
+
amount_out?: string;
|
|
614
|
+
/** Chain-id for the swap */
|
|
615
|
+
from_chain_id?: string;
|
|
616
|
+
/** Denom of the input asset */
|
|
617
|
+
denom_in?: string;
|
|
618
|
+
/** Denom of the output asset */
|
|
619
|
+
denom_out?: string;
|
|
620
|
+
/** Venues used for the swap */
|
|
621
|
+
swap_venues?: SwapVenueJson[];
|
|
622
|
+
}
|
|
623
|
+
interface EvmSwapWrapperJson {
|
|
624
|
+
/** A swap on an EVM chain */
|
|
625
|
+
evm_swap?: EvmSwapJson;
|
|
626
|
+
}
|
|
627
|
+
/** A transaction on an EVM chain */
|
|
628
|
+
interface EvmTxJson {
|
|
629
|
+
/** Chain-id of the chain that the transaction is intended for */
|
|
630
|
+
chain_id: string;
|
|
631
|
+
/** Data of the transaction */
|
|
632
|
+
data?: string;
|
|
633
|
+
/** ERC20 approvals required for the transaction */
|
|
634
|
+
required_erc20_approvals?: Erc20ApprovalJson[];
|
|
635
|
+
/** The address of the wallet that will sign this transaction */
|
|
636
|
+
signer_address?: string;
|
|
637
|
+
/** Address of the recipient of the transaction */
|
|
638
|
+
to?: string;
|
|
639
|
+
/** Amount of the transaction */
|
|
640
|
+
value?: string;
|
|
641
|
+
}
|
|
642
|
+
interface EvmTxWrapperJson {
|
|
643
|
+
/** A transaction on an EVM chain */
|
|
644
|
+
evm_tx: EvmTxJson;
|
|
645
|
+
}
|
|
646
|
+
/** A transaction on an SVM chain */
|
|
647
|
+
interface SvmTxJson {
|
|
648
|
+
/** Chain-id of the chain that the transaction is intended for */
|
|
649
|
+
chain_id: string;
|
|
650
|
+
/** The address of the wallet that will sign this transaction */
|
|
651
|
+
signer_address?: string;
|
|
652
|
+
/** Base64 encoded unsigned or partially signed transaction */
|
|
653
|
+
tx?: string;
|
|
654
|
+
}
|
|
655
|
+
interface SvmTxWrapperJson {
|
|
656
|
+
/** A transaction on an SVM chain */
|
|
657
|
+
svm_tx: SvmTxJson;
|
|
658
|
+
}
|
|
659
|
+
/** Asset used to pay gas fees and the recommended price tiers. Assets and gas price recommendations are sourced from the [keplr chain registry](https://github.com/chainapsis/keplr-chain-registry) */
|
|
660
|
+
interface FeeAssetJson {
|
|
661
|
+
/** Asset denom */
|
|
662
|
+
denom: string;
|
|
663
|
+
/** Gas price tiers */
|
|
664
|
+
gas_price?: {
|
|
665
|
+
/** Average gas price */
|
|
666
|
+
average?: string;
|
|
667
|
+
/** High gas price */
|
|
668
|
+
high?: string;
|
|
669
|
+
/** Low gas price */
|
|
670
|
+
low?: string;
|
|
671
|
+
} | null;
|
|
672
|
+
}
|
|
673
|
+
/** Go fast Fee */
|
|
674
|
+
interface GoFastFeeJson {
|
|
675
|
+
fee_asset: AssetJson;
|
|
676
|
+
bpsFee?: string;
|
|
677
|
+
bpsFeeAmount?: string;
|
|
678
|
+
bpsFeeUsd?: string;
|
|
679
|
+
sourceChainFeeAmount?: string;
|
|
680
|
+
sourceChainFeeUsd?: string;
|
|
681
|
+
destinationChainFeeAmount?: string;
|
|
682
|
+
destinationChainFeeUsd?: string;
|
|
683
|
+
}
|
|
684
|
+
/** grpc status codes as defined [here](https://grpc.github.io/grpc/core/md_doc_statuscodes.html) */
|
|
685
|
+
type GRPCStatusCodeJson = number;
|
|
686
|
+
/** A transfer facilitated by the Hyperlane bridge */
|
|
687
|
+
interface HyperlaneTransferJson {
|
|
688
|
+
/** Canonical chain-id of the source chain of the bridge transaction */
|
|
689
|
+
from_chain_id?: string;
|
|
690
|
+
/** Canonical chain-id of the destination chain of the bridge transaction */
|
|
691
|
+
to_chain_id?: string;
|
|
692
|
+
/** Denom of the input asset */
|
|
693
|
+
denom_in?: string;
|
|
694
|
+
/** Denom of the output asset */
|
|
695
|
+
denom_out?: string;
|
|
696
|
+
/** Contract address of the hyperlane warp route contract that initiates the transfer */
|
|
697
|
+
hyperlane_contract_address?: string;
|
|
698
|
+
/** Amount of the fee asset to be paid as the Hyperlane bridge fee. This is denominated in the fee asset. */
|
|
699
|
+
fee_amount?: string;
|
|
700
|
+
fee_asset?: AssetJson;
|
|
701
|
+
/** Amount of the fee asset to be paid as the Hyperlane bridge fee, converted to USD value */
|
|
702
|
+
usd_fee_amount?: string;
|
|
703
|
+
/**
|
|
704
|
+
* Bridge Type:
|
|
705
|
+
* * `IBC` - IBC Bridge
|
|
706
|
+
* * `AXELAR` - Axelar Bridge
|
|
707
|
+
* * `CCTP` - CCTP Bridge
|
|
708
|
+
* * `HYPERLANE` - Hyperlane Bridge
|
|
709
|
+
* * `OPINIT` - Opinit Bridge
|
|
710
|
+
* * `GO_FAST` - Go Fast Bridge
|
|
711
|
+
* * `STARGATE` - Stargate Bridge
|
|
712
|
+
* * `EUREKA` - IBC Eureka Bridge
|
|
713
|
+
*/
|
|
714
|
+
bridge_id?: BridgeTypeJson;
|
|
715
|
+
/** Indicates whether this transfer is relayed via Smart Relay */
|
|
716
|
+
smart_relay?: boolean;
|
|
717
|
+
}
|
|
718
|
+
interface HyperlaneTransferInfoJson {
|
|
719
|
+
/** Chain ID of the source chain */
|
|
720
|
+
from_chain_id: string;
|
|
721
|
+
/** Chain ID of the destination chain */
|
|
722
|
+
to_chain_id: string;
|
|
723
|
+
/**
|
|
724
|
+
* Hyperlane transfer state:
|
|
725
|
+
* * `HYPERLANE_TRANSFER_UNKNOWN` - Unknown error
|
|
726
|
+
* * `HYPERLANE_TRANSFER_SENT` - The Hyperlane transfer transaction on the source chain has executed
|
|
727
|
+
* * `HYPERLANE_TRANSFER_FAILED` - The Hyperlane transfer failed
|
|
728
|
+
* * `HYPERLANE_TRANSFER_RECEIVED` - The Hyperlane transfer has been received at the destination chain
|
|
729
|
+
*/
|
|
730
|
+
state: HyperlaneTransferStateJson;
|
|
731
|
+
txs: HyperlaneTransferTransactionsJson;
|
|
732
|
+
}
|
|
733
|
+
/**
|
|
734
|
+
* Hyperlane transfer state:
|
|
735
|
+
* * `HYPERLANE_TRANSFER_UNKNOWN` - Unknown error
|
|
736
|
+
* * `HYPERLANE_TRANSFER_SENT` - The Hyperlane transfer transaction on the source chain has executed
|
|
737
|
+
* * `HYPERLANE_TRANSFER_FAILED` - The Hyperlane transfer failed
|
|
738
|
+
* * `HYPERLANE_TRANSFER_RECEIVED` - The Hyperlane transfer has been received at the destination chain
|
|
739
|
+
*/
|
|
740
|
+
declare enum HyperlaneTransferStateJson {
|
|
741
|
+
HYPERLANE_TRANSFER_UNKNOWN = "HYPERLANE_TRANSFER_UNKNOWN",
|
|
742
|
+
HYPERLANE_TRANSFER_SENT = "HYPERLANE_TRANSFER_SENT",
|
|
743
|
+
HYPERLANE_TRANSFER_FAILED = "HYPERLANE_TRANSFER_FAILED",
|
|
744
|
+
HYPERLANE_TRANSFER_RECEIVED = "HYPERLANE_TRANSFER_RECEIVED"
|
|
745
|
+
}
|
|
746
|
+
interface HyperlaneTransferTransactionsJson {
|
|
747
|
+
send_tx?: ChainTransactionJson | null;
|
|
748
|
+
receive_tx?: ChainTransactionJson | null;
|
|
749
|
+
}
|
|
750
|
+
interface HyperlaneTransferWrapperJson {
|
|
751
|
+
/** A transfer facilitated by the Hyperlane bridge */
|
|
752
|
+
hyperlane_transfer?: HyperlaneTransferJson;
|
|
753
|
+
}
|
|
754
|
+
interface IBCTransferInfoJson {
|
|
755
|
+
/** Chain ID of the destination chain */
|
|
756
|
+
to_chain_id: string;
|
|
757
|
+
packet_txs: PacketJson;
|
|
758
|
+
/** Chain ID of the source chain */
|
|
759
|
+
from_chain_id: string;
|
|
760
|
+
/**
|
|
761
|
+
* Transfer state:
|
|
762
|
+
* * `TRANSFER_UNKNOWN` - Transfer state is not known.
|
|
763
|
+
* * `TRANSFER_PENDING` - The send packet for the transfer has been committed and the transfer is pending.
|
|
764
|
+
* * `TRANSFER_RECEIVED` - The transfer packet has been received by the destination chain. It can still fail and revert if it is part of a multi-hop PFM transfer.
|
|
765
|
+
* * `TRANSFER_SUCCESS` - The transfer has been successfully completed and will not revert.
|
|
766
|
+
* * `TRANSFER_FAILURE`- The transfer has failed.
|
|
767
|
+
*/
|
|
768
|
+
state: TransferStateJson;
|
|
769
|
+
}
|
|
770
|
+
type MsgJson = MultiChainMsgWrapperJson | EvmTxWrapperJson | SvmTxWrapperJson;
|
|
771
|
+
type TxJson = (CosmosTxWrapperJson | EvmTxWrapperJson | SvmTxWrapperJson) & {
|
|
772
|
+
/** Array of indices of the operations that this transaction executes */
|
|
773
|
+
operations_indices?: number[];
|
|
774
|
+
};
|
|
775
|
+
/** A message that interacts with multiple chains */
|
|
776
|
+
interface MultiChainMsgJson {
|
|
777
|
+
/** Chain-id of the chain that the transaction containing the message is intended for */
|
|
778
|
+
chain_id?: string;
|
|
779
|
+
/** JSON string of the message */
|
|
780
|
+
msg?: string;
|
|
781
|
+
/** TypeUrl of the message */
|
|
782
|
+
msg_type_url?: string;
|
|
783
|
+
/** Path of chain-ids that the message is intended to interact with */
|
|
784
|
+
path?: string[];
|
|
785
|
+
}
|
|
786
|
+
interface MultiChainMsgWrapperJson {
|
|
787
|
+
/** A message that interacts with multiple chains */
|
|
788
|
+
multi_chain_msg?: MultiChainMsgJson;
|
|
789
|
+
}
|
|
790
|
+
type OperationJson = (TransferWrapperJson | SwapWrapperJson | AxelarTransferWrapperJson | BankSendWrapperJson | CCTPTransferWrapperJson | HyperlaneTransferWrapperJson | EvmSwapWrapperJson | OPInitTransferWrapperJson | StargateTransferWrapperJson | EurekaTransferWrapperJson | LayerZeroTransferWrapperJson) & {
|
|
791
|
+
/** Index of the tx returned from Msgs that executes this operation */
|
|
792
|
+
tx_index: number;
|
|
793
|
+
/** Amount of input asset to this operation */
|
|
794
|
+
amount_in: string;
|
|
795
|
+
/** Amount of output asset from this operation */
|
|
796
|
+
amount_out: string;
|
|
797
|
+
};
|
|
798
|
+
interface OptionalAssetJson {
|
|
799
|
+
asset?: AssetJson;
|
|
800
|
+
/** Whether the asset was found */
|
|
801
|
+
asset_found?: boolean;
|
|
802
|
+
}
|
|
803
|
+
interface LayerZeroTransferTransactionsJson {
|
|
804
|
+
send_tx?: ChainTransactionJson | null;
|
|
805
|
+
receive_tx?: ChainTransactionJson | null;
|
|
806
|
+
error_tx?: ChainTransactionJson | null;
|
|
807
|
+
}
|
|
808
|
+
interface PacketJson {
|
|
809
|
+
acknowledge_tx?: ChainTransactionJson | null;
|
|
810
|
+
error?: PacketErrorJson | null;
|
|
811
|
+
receive_tx?: ChainTransactionJson | null;
|
|
812
|
+
send_tx?: ChainTransactionJson | null;
|
|
813
|
+
timeout_tx?: ChainTransactionJson | null;
|
|
814
|
+
}
|
|
815
|
+
interface PacketErrorJson {
|
|
816
|
+
details?: AcknowledgementErrorDetailsJson;
|
|
817
|
+
/** Error message */
|
|
818
|
+
message?: string;
|
|
819
|
+
/**
|
|
820
|
+
* Packet error type:
|
|
821
|
+
* * `PACKET_ERROR_UNKNOWN` - Unknown error
|
|
822
|
+
* * `PACKET_ERROR_ACKNOWLEDGEMENT` - Packet acknowledgement error
|
|
823
|
+
* * `PACKET_ERROR_TIMEOUT` - Packet timed out
|
|
824
|
+
*/
|
|
825
|
+
type?: PacketErrorTypeJson;
|
|
826
|
+
}
|
|
827
|
+
/**
|
|
828
|
+
* Packet error type:
|
|
829
|
+
* * `PACKET_ERROR_UNKNOWN` - Unknown error
|
|
830
|
+
* * `PACKET_ERROR_ACKNOWLEDGEMENT` - Packet acknowledgement error
|
|
831
|
+
* * `PACKET_ERROR_TIMEOUT` - Packet timed out
|
|
832
|
+
*/
|
|
833
|
+
declare enum PacketErrorTypeJson {
|
|
834
|
+
PACKET_ERROR_UNKNOWN = "PACKET_ERROR_UNKNOWN",
|
|
835
|
+
PACKET_ERROR_ACKNOWLEDGEMENT = "PACKET_ERROR_ACKNOWLEDGEMENT",
|
|
836
|
+
PACKET_ERROR_TIMEOUT = "PACKET_ERROR_TIMEOUT"
|
|
837
|
+
}
|
|
838
|
+
interface ChainTransactionJson {
|
|
839
|
+
/** Chain ID the packet event occurs on */
|
|
840
|
+
chain_id?: string;
|
|
841
|
+
/** Link to the transaction on block explorer */
|
|
842
|
+
explorer_link: string;
|
|
843
|
+
/** Hash of the transaction the packet event occurred in */
|
|
844
|
+
tx_hash?: string;
|
|
845
|
+
/** RFC3339 formatted UTC timestamp of when the transaction landed on chain */
|
|
846
|
+
on_chain_at?: string;
|
|
847
|
+
}
|
|
848
|
+
type PostHandlerJson = CosmWasmContractMsgWrapperJson | AutopilotMsgWrapperJson;
|
|
849
|
+
/**
|
|
850
|
+
* Recommendation reason:
|
|
851
|
+
* * `UNKNOWN` - Unknown recommendation reason.
|
|
852
|
+
* * `MOST_LIQUID` - Highest liquidity form of the transferred token on the destination chain.
|
|
853
|
+
* * `BASE_TOKEN` - The base token if the destination chain is the origin chain of the source token.
|
|
854
|
+
* * `DIRECT` - The token resulting from the least amount of transfers to the destination chain.
|
|
855
|
+
*/
|
|
856
|
+
declare enum ReasonJson {
|
|
857
|
+
UNKNOWN = "UNKNOWN",
|
|
858
|
+
MOST_LIQUID = "MOST_LIQUID",
|
|
859
|
+
BASE_TOKEN = "BASE_TOKEN",
|
|
860
|
+
DIRECT = "DIRECT"
|
|
861
|
+
}
|
|
862
|
+
/**
|
|
863
|
+
* Recommendation reason:
|
|
864
|
+
* * `LOW_INFO_WARNING` - Not enough asset pricing information to determine the price safety of the route.
|
|
865
|
+
* * `BAD_PRICE_WARNING` - The execution price of the route deviates significantly from the current market price.
|
|
866
|
+
*/
|
|
867
|
+
declare enum RoutePriceWarningTypeJson {
|
|
868
|
+
LOW_INFO_WARNING = "LOW_INFO_WARNING",
|
|
869
|
+
BAD_PRICE_WARNING = "BAD_PRICE_WARNING"
|
|
870
|
+
}
|
|
871
|
+
interface RouteResponseJson {
|
|
872
|
+
/** Amount of source asset to be transferred or swapped */
|
|
873
|
+
amount_in: string;
|
|
874
|
+
/** Amount of destination asset out */
|
|
875
|
+
amount_out: string;
|
|
876
|
+
/** Chain-ids of all chains of the transfer or swap, in order of usage by operations in the route */
|
|
877
|
+
chain_ids: string[];
|
|
878
|
+
/** All chain-ids that require an address to be provided for, in order of usage by operations in the route */
|
|
879
|
+
required_chain_addresses: string[];
|
|
880
|
+
/** Chain-id of the destination asset */
|
|
881
|
+
dest_asset_chain_id: string;
|
|
882
|
+
/** Denom of the destination asset */
|
|
883
|
+
dest_asset_denom: string;
|
|
884
|
+
/** Whether this route performs a swap */
|
|
885
|
+
does_swap?: boolean;
|
|
886
|
+
/** Amount of destination asset out, if a swap is performed */
|
|
887
|
+
estimated_amount_out: string;
|
|
888
|
+
/** Array of operations required to perform the transfer or swap */
|
|
889
|
+
operations: OperationJson[];
|
|
890
|
+
/** Chain-id of the source asset */
|
|
891
|
+
source_asset_chain_id: string;
|
|
892
|
+
/** Denom of the source asset */
|
|
893
|
+
source_asset_denom: string;
|
|
894
|
+
/** Swap venue on which the swap is performed, if a swap is performed */
|
|
895
|
+
swap_venue?: SwapVenueJson;
|
|
896
|
+
/** Number of transactions required to perform the transfer or swap */
|
|
897
|
+
txs_required: number;
|
|
898
|
+
/** Amount of the source denom, converted to USD value */
|
|
899
|
+
usd_amount_in?: string;
|
|
900
|
+
/** Amount of the destination denom expected to be received, converted to USD value */
|
|
901
|
+
usd_amount_out?: string;
|
|
902
|
+
/** Price impact of the estimated swap, if present. Measured in percentage e.g. "0.5" is .5% */
|
|
903
|
+
swap_price_impact_percent?: string | null;
|
|
904
|
+
/** Indicates if the route is unsafe due to poor execution price or if safety cannot be determined due to lack of pricing information */
|
|
905
|
+
warning?: {
|
|
906
|
+
/**
|
|
907
|
+
* Recommendation reason:
|
|
908
|
+
* * `LOW_INFO_WARNING` - Not enough asset pricing information to determine the price safety of the route.
|
|
909
|
+
* * `BAD_PRICE_WARNING` - The execution price of the route deviates significantly from the current market price.
|
|
910
|
+
*/
|
|
911
|
+
type?: RoutePriceWarningTypeJson;
|
|
912
|
+
/** Warning message */
|
|
913
|
+
message?: string;
|
|
914
|
+
} | null;
|
|
915
|
+
/** Indicates fees incurred in the execution of the transfer */
|
|
916
|
+
estimated_fees?: FeeJson[];
|
|
917
|
+
/** The estimated time in seconds for the route to execute */
|
|
918
|
+
estimated_route_duration_seconds?: number;
|
|
919
|
+
}
|
|
920
|
+
interface SendTokenErrorJson {
|
|
921
|
+
/** Error message */
|
|
922
|
+
message?: string;
|
|
923
|
+
/**
|
|
924
|
+
* SendToken error types:
|
|
925
|
+
* * `SEND_TOKEN_EXECUTION_ERROR` - Error occurred during the execute transaction
|
|
926
|
+
*/
|
|
927
|
+
type?: SendTokenErrorTypeJson;
|
|
928
|
+
}
|
|
929
|
+
/**
|
|
930
|
+
* SendToken error types:
|
|
931
|
+
* * `SEND_TOKEN_EXECUTION_ERROR` - Error occurred during the execute transaction
|
|
932
|
+
*/
|
|
933
|
+
declare enum SendTokenErrorTypeJson {
|
|
934
|
+
SEND_TOKEN_EXECUTION_ERROR = "SEND_TOKEN_EXECUTION_ERROR"
|
|
935
|
+
}
|
|
936
|
+
interface SendTokenTxsJson {
|
|
937
|
+
confirm_tx?: ChainTransactionJson | null;
|
|
938
|
+
error?: SendTokenErrorJson | null;
|
|
939
|
+
execute_tx?: ChainTransactionJson | null;
|
|
940
|
+
send_tx?: ChainTransactionJson | null;
|
|
941
|
+
}
|
|
942
|
+
interface StatusErrorJson {
|
|
943
|
+
details?: TransactionExecutionErrorDetailsJson | null;
|
|
944
|
+
/** Error message */
|
|
945
|
+
message?: string;
|
|
946
|
+
/**
|
|
947
|
+
* Packet error types:
|
|
948
|
+
* * `STATUS_ERROR_UNKNOWN` - Unknown error
|
|
949
|
+
* * `STATUS_ERROR_TRANSACTION_EXECUTION` - Error was encountered during transaction execution
|
|
950
|
+
* * `STATUS_ERROR_INDEXING` - Error was encountered while indexing the transaction and packet data
|
|
951
|
+
* * `STATUS_ERROR_TRANSFER` - The transfer failed to complete successfully
|
|
952
|
+
*/
|
|
953
|
+
type?: StatusErrorTypeJson;
|
|
954
|
+
}
|
|
955
|
+
/**
|
|
956
|
+
* Packet error types:
|
|
957
|
+
* * `STATUS_ERROR_UNKNOWN` - Unknown error
|
|
958
|
+
* * `STATUS_ERROR_TRANSACTION_EXECUTION` - Error was encountered during transaction execution
|
|
959
|
+
* * `STATUS_ERROR_INDEXING` - Error was encountered while indexing the transaction and packet data
|
|
960
|
+
* * `STATUS_ERROR_TRANSFER` - The transfer failed to complete successfully
|
|
961
|
+
*/
|
|
962
|
+
declare enum StatusErrorTypeJson {
|
|
963
|
+
STATUS_ERROR_UNKNOWN = "STATUS_ERROR_UNKNOWN",
|
|
964
|
+
STATUS_ERROR_TRANSACTION_EXECUTION = "STATUS_ERROR_TRANSACTION_EXECUTION",
|
|
965
|
+
STATUS_ERROR_INDEXING = "STATUS_ERROR_INDEXING",
|
|
966
|
+
STATUS_ERROR_TRANSFER = "STATUS_ERROR_TRANSFER"
|
|
967
|
+
}
|
|
968
|
+
type SwapJson = (SwapInWrapperJson | SwapOutWrapperJson | SmartSwapInWrapperJson) & {
|
|
969
|
+
/** Estimated total affiliate fee generated by the swap */
|
|
970
|
+
estimated_affiliate_fee?: string;
|
|
971
|
+
/** Chain ID that the swap will be executed on */
|
|
972
|
+
chain_id?: string;
|
|
973
|
+
/** Chain ID that the swap will be executed on (alias for chain_id) */
|
|
974
|
+
from_chain_id?: string;
|
|
975
|
+
/** Input denom of the swap */
|
|
976
|
+
denom_in?: string;
|
|
977
|
+
/** Output denom of the swap */
|
|
978
|
+
denom_out?: string;
|
|
979
|
+
/** Swap venues that the swap will route through */
|
|
980
|
+
swap_venues?: SwapVenueJson[];
|
|
981
|
+
};
|
|
982
|
+
/** Specification of a swap with an exact amount in */
|
|
983
|
+
interface SwapExactCoinInJson {
|
|
984
|
+
/** Amount to swap in */
|
|
985
|
+
swap_amount_in?: string | null;
|
|
986
|
+
/** Operations required to execute the swap */
|
|
987
|
+
swap_operations?: SwapOperationJson[];
|
|
988
|
+
/** Swap venue that this swap should execute on */
|
|
989
|
+
swap_venue?: SwapVenueJson;
|
|
990
|
+
/** Price impact of the estimated swap, if present. Measured in percentage e.g. "0.5" is .5% */
|
|
991
|
+
price_impact_percent?: string | null;
|
|
992
|
+
}
|
|
993
|
+
/** Specification of a swap with an exact amount out */
|
|
994
|
+
interface SwapExactCoinOutJson {
|
|
995
|
+
/** Amount to get out of the swap */
|
|
996
|
+
swap_amount_out?: string;
|
|
997
|
+
/** Operations required to execute the swap */
|
|
998
|
+
swap_operations?: SwapOperationJson[];
|
|
999
|
+
/** Swap venue that this swap should execute on */
|
|
1000
|
+
swap_venue?: SwapVenueJson;
|
|
1001
|
+
/** Price impact of the estimated swap, if present. Measured in percentage e.g. "0.5" is .5% */
|
|
1002
|
+
price_impact_percent?: string | null;
|
|
1003
|
+
}
|
|
1004
|
+
interface SwapInWrapperJson {
|
|
1005
|
+
/** Specification of a swap with an exact amount in */
|
|
1006
|
+
swap_in?: SwapExactCoinInJson;
|
|
1007
|
+
}
|
|
1008
|
+
/** Description of a single swap operation */
|
|
1009
|
+
interface SwapOperationJson {
|
|
1010
|
+
/** Input denom of the swap */
|
|
1011
|
+
denom_in?: string;
|
|
1012
|
+
/** Output denom of the swap */
|
|
1013
|
+
denom_out?: string;
|
|
1014
|
+
/** Identifier of the pool to use for the swap */
|
|
1015
|
+
pool?: string;
|
|
1016
|
+
/** Optional dditional metadata a swap adapter may require */
|
|
1017
|
+
interface?: string | null;
|
|
1018
|
+
}
|
|
1019
|
+
interface SwapOutWrapperJson {
|
|
1020
|
+
/** Specification of a swap with an exact amount out */
|
|
1021
|
+
swap_out?: SwapExactCoinOutJson;
|
|
1022
|
+
}
|
|
1023
|
+
interface SwapRouteJson {
|
|
1024
|
+
/** Amount to swap in */
|
|
1025
|
+
swap_amount_in?: string;
|
|
1026
|
+
/** Denom in of the swap */
|
|
1027
|
+
denom_in?: string;
|
|
1028
|
+
/** Operations required to execute the swap route */
|
|
1029
|
+
swap_operations?: SwapOperationJson[];
|
|
1030
|
+
}
|
|
1031
|
+
/** Specification of a smart swap in operation */
|
|
1032
|
+
interface SmartSwapExactCoinInJson {
|
|
1033
|
+
/** Swap venue that this swap should execute on */
|
|
1034
|
+
swap_venue?: SwapVenueJson;
|
|
1035
|
+
/** Routes to execute the swap */
|
|
1036
|
+
swap_routes?: SwapRouteJson[];
|
|
1037
|
+
}
|
|
1038
|
+
interface SmartSwapOptionsJson {
|
|
1039
|
+
/** Indicates whether the swap can be split into multiple swap routes */
|
|
1040
|
+
split_routes?: boolean;
|
|
1041
|
+
/** Indicates whether to include routes that swap on EVM chains */
|
|
1042
|
+
evm_swaps?: boolean;
|
|
1043
|
+
}
|
|
1044
|
+
interface SmartSwapInWrapperJson {
|
|
1045
|
+
/** Specification of a smart swap in operation */
|
|
1046
|
+
smart_swap_in?: SmartSwapExactCoinInJson;
|
|
1047
|
+
}
|
|
1048
|
+
/** A venue on which swaps can be exceuted */
|
|
1049
|
+
interface SwapVenueJson {
|
|
1050
|
+
/** Chain ID of the swap venue */
|
|
1051
|
+
chain_id?: string;
|
|
1052
|
+
/** Name of the swap venue */
|
|
1053
|
+
name?: string;
|
|
1054
|
+
/** URI for the venue's logo */
|
|
1055
|
+
logo_uri?: string | null;
|
|
1056
|
+
}
|
|
1057
|
+
interface SwapWrapperJson {
|
|
1058
|
+
swap?: SwapJson;
|
|
1059
|
+
}
|
|
1060
|
+
interface TransactionExecutionErrorDetailsJson {
|
|
1061
|
+
/** Error code */
|
|
1062
|
+
code?: number;
|
|
1063
|
+
/** Error message */
|
|
1064
|
+
message?: string;
|
|
1065
|
+
}
|
|
1066
|
+
/**
|
|
1067
|
+
* Transaction state:
|
|
1068
|
+
* * `STATE_SUBMITTED` - The initial transaction has been submitted to Skip Go API but not observed on chain yet
|
|
1069
|
+
* * `STATE_PENDING` - The initial transaction has been observed on chain, and there are still pending actions
|
|
1070
|
+
* * `STATE_COMPLETED_SUCCESS` - The route has completed successfully and the user has their tokens on the destination. (indicated by `transfer_asset_release`)
|
|
1071
|
+
* * `STATE_COMPLETED_ERROR` - The route errored somewhere and the user has their tokens unlocked in one of their wallets. Their tokens are either on the source chain, an intermediate chain, or the destination chain but as the wrong asset.
|
|
1072
|
+
* (Again, `transfer_asset_release` indicates where the tokens are)
|
|
1073
|
+
* * `STATE_ABANDONED` - Tracking for the transaction has been abandoned. This happens if the cross-chain sequence of actions stalls for more than 10 minutes or if the initial transaction does not get observed in a block for 5 minutes.
|
|
1074
|
+
* * `STATE_PENDING_ERROR` - The overall transaction will fail, pending error propagation
|
|
1075
|
+
*/
|
|
1076
|
+
declare enum TransactionStateJson {
|
|
1077
|
+
STATE_SUBMITTED = "STATE_SUBMITTED",
|
|
1078
|
+
STATE_PENDING = "STATE_PENDING",
|
|
1079
|
+
STATE_COMPLETED_SUCCESS = "STATE_COMPLETED_SUCCESS",
|
|
1080
|
+
STATE_COMPLETED_ERROR = "STATE_COMPLETED_ERROR",
|
|
1081
|
+
STATE_ABANDONED = "STATE_ABANDONED",
|
|
1082
|
+
STATE_PENDING_ERROR = "STATE_PENDING_ERROR"
|
|
1083
|
+
}
|
|
1084
|
+
/** A transfer facilitated by the CCTP bridge */
|
|
1085
|
+
interface OPInitTransferJson {
|
|
1086
|
+
/** Canonical chain-id of the source chain of the bridge transaction */
|
|
1087
|
+
from_chain_id?: string;
|
|
1088
|
+
/** Canonical chain-id of the destination chain of the bridge transaction */
|
|
1089
|
+
to_chain_id?: string;
|
|
1090
|
+
/** Denom of the input asset */
|
|
1091
|
+
denom_in?: string;
|
|
1092
|
+
/** Denom of the output asset */
|
|
1093
|
+
denom_out?: string;
|
|
1094
|
+
/** Identifier used by the OPInit bridge to identify the L1-L2 pair the transfer occurs between */
|
|
1095
|
+
op_init_bridge_id?: any;
|
|
1096
|
+
/**
|
|
1097
|
+
* Bridge Type:
|
|
1098
|
+
* * `IBC` - IBC Bridge
|
|
1099
|
+
* * `AXELAR` - Axelar Bridge
|
|
1100
|
+
* * `CCTP` - CCTP Bridge
|
|
1101
|
+
* * `HYPERLANE` - Hyperlane Bridge
|
|
1102
|
+
* * `OPINIT` - Opinit Bridge
|
|
1103
|
+
* * `GO_FAST` - Go Fast Bridge
|
|
1104
|
+
* * `STARGATE` - Stargate Bridge
|
|
1105
|
+
* * `EUREKA` - IBC Eureka Bridge
|
|
1106
|
+
*/
|
|
1107
|
+
bridge_id?: BridgeTypeJson;
|
|
1108
|
+
/** Indicates whether this transfer is relayed via Smart Relay */
|
|
1109
|
+
smart_relay?: boolean;
|
|
1110
|
+
}
|
|
1111
|
+
interface OPInitTransferWrapperJson {
|
|
1112
|
+
/** A transfer facilitated by the CCTP bridge */
|
|
1113
|
+
op_init_transfer?: OPInitTransferJson;
|
|
1114
|
+
}
|
|
1115
|
+
interface OPInitTransferInfoJson {
|
|
1116
|
+
/** Chain ID of the destination chain */
|
|
1117
|
+
to_chain_id: string;
|
|
1118
|
+
/** Chain ID of the source chain */
|
|
1119
|
+
from_chain_id: string;
|
|
1120
|
+
/**
|
|
1121
|
+
* OPInit transfer state:
|
|
1122
|
+
* * `OPINIT_TRANSFER_UNKNOWN` - Unknown error
|
|
1123
|
+
* * `OPINIT_TRANSFER_SENT` - The deposit transaction on the source chain has executed
|
|
1124
|
+
* * `OPINIT_TRANSFER_RECEIVED` - OPInit transfer has been received at the destination chain
|
|
1125
|
+
*/
|
|
1126
|
+
state: OPInitTransferStateJson;
|
|
1127
|
+
txs: OPInitTransferTxsJson;
|
|
1128
|
+
}
|
|
1129
|
+
interface OPInitTransferTxsJson {
|
|
1130
|
+
send_tx?: ChainTransactionJson | null;
|
|
1131
|
+
receive_tx?: ChainTransactionJson | null;
|
|
1132
|
+
}
|
|
1133
|
+
/**
|
|
1134
|
+
* OPInit transfer state:
|
|
1135
|
+
* * `OPINIT_TRANSFER_UNKNOWN` - Unknown error
|
|
1136
|
+
* * `OPINIT_TRANSFER_SENT` - The deposit transaction on the source chain has executed
|
|
1137
|
+
* * `OPINIT_TRANSFER_RECEIVED` - OPInit transfer has been received at the destination chain
|
|
1138
|
+
*/
|
|
1139
|
+
declare enum OPInitTransferStateJson {
|
|
1140
|
+
OPINIT_TRANSFER_UNKNOWN = "OPINIT_TRANSFER_UNKNOWN",
|
|
1141
|
+
OPINIT_TRANSFER_SENT = "OPINIT_TRANSFER_SENT",
|
|
1142
|
+
OPINIT_TRANSFER_RECEIVED = "OPINIT_TRANSFER_RECEIVED"
|
|
1143
|
+
}
|
|
1144
|
+
/**
|
|
1145
|
+
* LayerZero transfer state:
|
|
1146
|
+
* * `LAYER_ZERO_TRANSFER_UNKNOWN` - Unknown error
|
|
1147
|
+
* * `LAYER_ZERO_TRANSFER_SENT` - The transaction on the source chain has executed
|
|
1148
|
+
* * `LAYER_ZERO_TRANSFER_RECEIVED` - The transfer has been received at the destination chain
|
|
1149
|
+
* * `LAYER_ZERO_TRANSFER_FAILED` - The transfer has failed
|
|
1150
|
+
*/
|
|
1151
|
+
declare enum LayerZeroTransferStateJson {
|
|
1152
|
+
LAYER_ZERO_TRANSFER_UNKNOWN = "LAYER_ZERO_TRANSFER_UNKNOWN",
|
|
1153
|
+
LAYER_ZERO_TRANSFER_SENT = "LAYER_ZERO_TRANSFER_SENT",
|
|
1154
|
+
LAYER_ZERO_TRANSFER_RECEIVED = "LAYER_ZERO_TRANSFER_RECEIVED",
|
|
1155
|
+
LAYER_ZERO_TRANSFER_FAILED = "LAYER_ZERO_TRANSFER_FAILED"
|
|
1156
|
+
}
|
|
1157
|
+
/** A cross-chain transfer */
|
|
1158
|
+
interface TransferJson {
|
|
1159
|
+
/** Chain-id on which the transfer is initiated */
|
|
1160
|
+
from_chain_id?: string;
|
|
1161
|
+
/** Chain-id on which the transfer is received */
|
|
1162
|
+
to_chain_id?: string;
|
|
1163
|
+
/** Channel to use to initiate the transfer */
|
|
1164
|
+
channel?: string;
|
|
1165
|
+
/** Denom of the destination asset of the transfer */
|
|
1166
|
+
dest_denom?: string;
|
|
1167
|
+
/** Whether pfm is enabled on the chain where the transfer is initiated */
|
|
1168
|
+
pfm_enabled?: boolean;
|
|
1169
|
+
/** Port to use to initiate the transfer */
|
|
1170
|
+
port?: string;
|
|
1171
|
+
/** Whether the transfer chain supports a memo */
|
|
1172
|
+
supports_memo?: boolean;
|
|
1173
|
+
/** Denom of the input asset of the transfer */
|
|
1174
|
+
denom_in?: string;
|
|
1175
|
+
/** Denom of the output asset of the transfer */
|
|
1176
|
+
denom_out?: string;
|
|
1177
|
+
/** Amount of the fee asset to be paid as the transfer fee if applicable. */
|
|
1178
|
+
fee_amount?: string | null;
|
|
1179
|
+
/** Amount of the fee asset to be paid as the transfer fee if applicable, converted to USD value */
|
|
1180
|
+
usd_fee_amount?: string | null;
|
|
1181
|
+
/** Asset to be paid as the transfer fee if applicable. */
|
|
1182
|
+
fee_asset?: AssetJson | null;
|
|
1183
|
+
/**
|
|
1184
|
+
* Bridge Type:
|
|
1185
|
+
* * `IBC` - IBC Bridge
|
|
1186
|
+
* * `AXELAR` - Axelar Bridge
|
|
1187
|
+
* * `CCTP` - CCTP Bridge
|
|
1188
|
+
* * `HYPERLANE` - Hyperlane Bridge
|
|
1189
|
+
* * `OPINIT` - Opinit Bridge
|
|
1190
|
+
* * `GO_FAST` - Go Fast Bridge
|
|
1191
|
+
* * `STARGATE` - Stargate Bridge
|
|
1192
|
+
* * `EUREKA` - IBC Eureka Bridge
|
|
1193
|
+
*/
|
|
1194
|
+
bridge_id?: BridgeTypeJson;
|
|
1195
|
+
/** Indicates whether this transfer is relayed via Smart Relay */
|
|
1196
|
+
smart_relay?: boolean;
|
|
1197
|
+
}
|
|
1198
|
+
interface TransferEventJson {
|
|
1199
|
+
ibcTransfer?: IBCTransferInfoJson;
|
|
1200
|
+
axelarTransfer?: AxelarTransferInfoJson;
|
|
1201
|
+
cctpTransfer?: CCTPTransferInfoJson;
|
|
1202
|
+
hyperlaneTransfer?: HyperlaneTransferInfoJson;
|
|
1203
|
+
opInitTransfer?: OPInitTransferInfoJson;
|
|
1204
|
+
stargateTransfer?: StargateTransferInfoJson;
|
|
1205
|
+
goFastTransfer?: GoFastTransferInfoJson;
|
|
1206
|
+
eurekaTransfer?: EurekaTransferInfoJson;
|
|
1207
|
+
layerZeroTransfer?: LayerZeroTransferInfoJson;
|
|
1208
|
+
}
|
|
1209
|
+
/**
|
|
1210
|
+
* Transfer state:
|
|
1211
|
+
* * `TRANSFER_UNKNOWN` - Transfer state is not known.
|
|
1212
|
+
* * `TRANSFER_PENDING` - The send packet for the transfer has been committed and the transfer is pending.
|
|
1213
|
+
* * `TRANSFER_RECEIVED` - The transfer packet has been received by the destination chain. It can still fail and revert if it is part of a multi-hop PFM transfer.
|
|
1214
|
+
* * `TRANSFER_SUCCESS` - The transfer has been successfully completed and will not revert.
|
|
1215
|
+
* * `TRANSFER_FAILURE`- The transfer has failed.
|
|
1216
|
+
*/
|
|
1217
|
+
declare enum TransferStateJson {
|
|
1218
|
+
TRANSFER_UNKNOWN = "TRANSFER_UNKNOWN",
|
|
1219
|
+
TRANSFER_PENDING = "TRANSFER_PENDING",
|
|
1220
|
+
TRANSFER_RECEIVED = "TRANSFER_RECEIVED",
|
|
1221
|
+
TRANSFER_SUCCESS = "TRANSFER_SUCCESS",
|
|
1222
|
+
TRANSFER_FAILURE = "TRANSFER_FAILURE"
|
|
1223
|
+
}
|
|
1224
|
+
/** Indicates location and denom of transfer asset release. */
|
|
1225
|
+
interface TransferAssetReleaseJson {
|
|
1226
|
+
/** The chain ID of the chain that the transfer asset is released on. */
|
|
1227
|
+
chain_id?: string;
|
|
1228
|
+
/** The denom of the asset that is released. */
|
|
1229
|
+
denom?: string;
|
|
1230
|
+
/** The amount of the asset that is released. */
|
|
1231
|
+
amount?: string | null;
|
|
1232
|
+
/** Indicates whether assets have been released and are accessible. The assets may still be in transit. */
|
|
1233
|
+
released?: boolean;
|
|
1234
|
+
}
|
|
1235
|
+
interface TransferStatusJson {
|
|
1236
|
+
error?: StatusErrorJson | null;
|
|
1237
|
+
/** Indicates which entry in the `transfer_sequence` field that the transfer is blocked on. Will be null if there is no blocked transfer. */
|
|
1238
|
+
next_blocking_transfer?: {
|
|
1239
|
+
/** The index of the entry in the `transfer_sequence` field that the transfer is blocked on. */
|
|
1240
|
+
transfer_sequence_index?: number;
|
|
1241
|
+
} | null;
|
|
1242
|
+
/**
|
|
1243
|
+
* Transaction state:
|
|
1244
|
+
* * `STATE_SUBMITTED` - The initial transaction has been submitted to Skip Go API but not observed on chain yet
|
|
1245
|
+
* * `STATE_PENDING` - The initial transaction has been observed on chain, and there are still pending actions
|
|
1246
|
+
* * `STATE_COMPLETED_SUCCESS` - The route has completed successfully and the user has their tokens on the destination. (indicated by `transfer_asset_release`)
|
|
1247
|
+
* * `STATE_COMPLETED_ERROR` - The route errored somewhere and the user has their tokens unlocked in one of their wallets. Their tokens are either on the source chain, an intermediate chain, or the destination chain but as the wrong asset.
|
|
1248
|
+
* (Again, `transfer_asset_release` indicates where the tokens are)
|
|
1249
|
+
* * `STATE_ABANDONED` - Tracking for the transaction has been abandoned. This happens if the cross-chain sequence of actions stalls for more than 10 minutes or if the initial transaction does not get observed in a block for 5 minutes.
|
|
1250
|
+
* * `STATE_PENDING_ERROR` - The overall transaction will fail, pending error propagation
|
|
1251
|
+
*/
|
|
1252
|
+
state?: TransactionStateJson;
|
|
1253
|
+
/** Indicates location and denom of transfer asset release. */
|
|
1254
|
+
transfer_asset_release?: TransferAssetReleaseJson;
|
|
1255
|
+
/** Lists any IBC and Axelar transfers as they are seen. */
|
|
1256
|
+
transfer_sequence?: TransferEventJson[];
|
|
1257
|
+
}
|
|
1258
|
+
interface TransferWrapperJson {
|
|
1259
|
+
/** A cross-chain transfer */
|
|
1260
|
+
transfer?: TransferJson;
|
|
1261
|
+
}
|
|
1262
|
+
/** An IBC Eureka transfer */
|
|
1263
|
+
interface EurekaTransferJson {
|
|
1264
|
+
/** Port on the destination chain */
|
|
1265
|
+
destination_port?: string;
|
|
1266
|
+
/** Client on the source chain */
|
|
1267
|
+
source_client?: string;
|
|
1268
|
+
/** Chain-id on which the transfer is initiated */
|
|
1269
|
+
from_chain_id?: string;
|
|
1270
|
+
/** Chain-id on which the transfer is received */
|
|
1271
|
+
to_chain_id?: string;
|
|
1272
|
+
/** Whether pfm is enabled on the chain where the transfer is initiated */
|
|
1273
|
+
pfm_enabled?: boolean;
|
|
1274
|
+
/** Whether the transfer chain supports a memo */
|
|
1275
|
+
supports_memo?: boolean;
|
|
1276
|
+
/** Denom of the input asset of the transfer */
|
|
1277
|
+
denom_in?: string;
|
|
1278
|
+
/** Denom of the output asset of the transfer */
|
|
1279
|
+
denom_out?: string;
|
|
1280
|
+
/** Address of the Eureka entry contract on the source chain */
|
|
1281
|
+
entry_contract_address?: string;
|
|
1282
|
+
/** Optional address of the Eureka callback adapter contract on the source chain */
|
|
1283
|
+
callback_adapter_contract_address?: string | null;
|
|
1284
|
+
/**
|
|
1285
|
+
* Bridge Type:
|
|
1286
|
+
* * `IBC` - IBC Bridge
|
|
1287
|
+
* * `AXELAR` - Axelar Bridge
|
|
1288
|
+
* * `CCTP` - CCTP Bridge
|
|
1289
|
+
* * `HYPERLANE` - Hyperlane Bridge
|
|
1290
|
+
* * `OPINIT` - Opinit Bridge
|
|
1291
|
+
* * `GO_FAST` - Go Fast Bridge
|
|
1292
|
+
* * `STARGATE` - Stargate Bridge
|
|
1293
|
+
* * `EUREKA` - IBC Eureka Bridge
|
|
1294
|
+
*/
|
|
1295
|
+
bridge_id?: BridgeTypeJson;
|
|
1296
|
+
/** Indicates whether this transfer is relayed via Smart Relay */
|
|
1297
|
+
smart_relay?: boolean;
|
|
1298
|
+
smart_relay_fee_quote?: SmartRelayFeeQuoteJson | null;
|
|
1299
|
+
/** Optional address of the Eureka callback contract on the destination chain */
|
|
1300
|
+
to_chain_callback_contract_address?: string | null;
|
|
1301
|
+
/** Optional address of the Eureka entry contract on the destination chain */
|
|
1302
|
+
to_chain_entry_contract_address?: string | null;
|
|
1303
|
+
}
|
|
1304
|
+
interface EurekaTransferInfoJson {
|
|
1305
|
+
/** Chain ID of the source chain */
|
|
1306
|
+
from_chain_id: string;
|
|
1307
|
+
/** Chain ID of the destination chain */
|
|
1308
|
+
to_chain_id: string;
|
|
1309
|
+
/**
|
|
1310
|
+
* Transfer state:
|
|
1311
|
+
* * `TRANSFER_UNKNOWN` - Transfer state is not known.
|
|
1312
|
+
* * `TRANSFER_PENDING` - The send packet for the transfer has been committed and the transfer is pending.
|
|
1313
|
+
* * `TRANSFER_RECEIVED` - The transfer packet has been received by the destination chain. It can still fail and revert if it is part of a multi-hop PFM transfer.
|
|
1314
|
+
* * `TRANSFER_SUCCESS` - The transfer has been successfully completed and will not revert.
|
|
1315
|
+
* * `TRANSFER_FAILURE`- The transfer has failed.
|
|
1316
|
+
*/
|
|
1317
|
+
state: TransferStateJson;
|
|
1318
|
+
packet_txs: PacketJson;
|
|
1319
|
+
}
|
|
1320
|
+
interface EurekaTransferWrapperJson {
|
|
1321
|
+
/** An IBC Eureka transfer */
|
|
1322
|
+
eureka_transfer?: EurekaTransferJson;
|
|
1323
|
+
}
|
|
1324
|
+
/** A Layer Zero Transfer */
|
|
1325
|
+
interface LayerZeroTransferJson {
|
|
1326
|
+
/** Chain-id on which the transfer is initiated */
|
|
1327
|
+
from_chain_id: string;
|
|
1328
|
+
/** Chain-id on which the transfer is received */
|
|
1329
|
+
to_chain_id: string;
|
|
1330
|
+
/** Denom of the input asset of the transfer */
|
|
1331
|
+
denom_in: string;
|
|
1332
|
+
/** Denom of the output asset of the transfer */
|
|
1333
|
+
denom_out: string;
|
|
1334
|
+
source_oft_cntract_address: string;
|
|
1335
|
+
destination_endpoint_id: number;
|
|
1336
|
+
messaging_fee_asset: AssetJson;
|
|
1337
|
+
messaging_fee_amount: string;
|
|
1338
|
+
messaging_fee_amount_usd: string;
|
|
1339
|
+
/**
|
|
1340
|
+
* Bridge Type:
|
|
1341
|
+
* * `IBC` - IBC Bridge
|
|
1342
|
+
* * `AXELAR` - Axelar Bridge
|
|
1343
|
+
* * `CCTP` - CCTP Bridge
|
|
1344
|
+
* * `HYPERLANE` - Hyperlane Bridge
|
|
1345
|
+
* * `OPINIT` - Opinit Bridge
|
|
1346
|
+
* * `GO_FAST` - Go Fast Bridge
|
|
1347
|
+
* * `STARGATE` - Stargate Bridge
|
|
1348
|
+
* * `EUREKA` - IBC Eureka Bridge
|
|
1349
|
+
*/
|
|
1350
|
+
bridge_id: BridgeTypeJson;
|
|
1351
|
+
}
|
|
1352
|
+
interface LayerZeroTransferInfoJson {
|
|
1353
|
+
/** Chain ID of the source chain */
|
|
1354
|
+
from_chain_id: string;
|
|
1355
|
+
/** Chain ID of the destination chain */
|
|
1356
|
+
to_chain_id: string;
|
|
1357
|
+
/**
|
|
1358
|
+
* LayerZero transfer state:
|
|
1359
|
+
* * `LAYER_ZERO_TRANSFER_UNKNOWN` - Unknown error
|
|
1360
|
+
* * `LAYER_ZERO_TRANSFER_SENT` - The transaction on the source chain has executed
|
|
1361
|
+
* * `LAYER_ZERO_TRANSFER_RECEIVED` - The transfer has been received at the destination chain
|
|
1362
|
+
* * `LAYER_ZERO_TRANSFER_FAILED` - The transfer has failed
|
|
1363
|
+
*/
|
|
1364
|
+
state: LayerZeroTransferStateJson;
|
|
1365
|
+
txs: LayerZeroTransferTransactionsJson;
|
|
1366
|
+
}
|
|
1367
|
+
interface LayerZeroTransferWrapperJson {
|
|
1368
|
+
/** A Layer Zero Transfer */
|
|
1369
|
+
layer_zero_transfer?: LayerZeroTransferJson;
|
|
1370
|
+
}
|
|
1371
|
+
interface RecommendationRequestJson {
|
|
1372
|
+
/** Denom of the source asset */
|
|
1373
|
+
source_asset_denom?: string;
|
|
1374
|
+
/** Chain-id of the source asset */
|
|
1375
|
+
source_asset_chain_id?: string;
|
|
1376
|
+
/** Chain-id of the recommended destination asset */
|
|
1377
|
+
dest_chain_id?: string | null;
|
|
1378
|
+
/** Reason for recommendation (optional) */
|
|
1379
|
+
reason?: ReasonJson | null;
|
|
1380
|
+
}
|
|
1381
|
+
interface CosmosModuleSupportJson {
|
|
1382
|
+
/** Whether the authz module is supported */
|
|
1383
|
+
authz?: boolean;
|
|
1384
|
+
/** Whether the feegrant module is supported */
|
|
1385
|
+
feegrant?: boolean;
|
|
1386
|
+
}
|
|
1387
|
+
interface IbcCapabilitiesJson {
|
|
1388
|
+
/** Whether the packet forwarding middleware module is supported */
|
|
1389
|
+
cosmos_pfm?: boolean;
|
|
1390
|
+
/** Whether the ibc hooks module is supported */
|
|
1391
|
+
cosmos_ibc_hooks?: boolean;
|
|
1392
|
+
/** Whether the chain supports IBC memos */
|
|
1393
|
+
cosmos_memo?: boolean;
|
|
1394
|
+
/** Whether the autopilot module is supported */
|
|
1395
|
+
cosmos_autopilot?: boolean;
|
|
1396
|
+
}
|
|
1397
|
+
/**
|
|
1398
|
+
* Fee type:
|
|
1399
|
+
* * SMART_RELAY - Fees for Smart relaying services.'
|
|
1400
|
+
*/
|
|
1401
|
+
declare enum FeeTypeJson {
|
|
1402
|
+
SMART_RELAY = "SMART_RELAY"
|
|
1403
|
+
}
|
|
1404
|
+
interface FeeJson {
|
|
1405
|
+
/**
|
|
1406
|
+
* Fee type:
|
|
1407
|
+
* * SMART_RELAY - Fees for Smart relaying services.'
|
|
1408
|
+
*/
|
|
1409
|
+
fee_type?: FeeTypeJson;
|
|
1410
|
+
/**
|
|
1411
|
+
* Bridge Type:
|
|
1412
|
+
* * `IBC` - IBC Bridge
|
|
1413
|
+
* * `AXELAR` - Axelar Bridge
|
|
1414
|
+
* * `CCTP` - CCTP Bridge
|
|
1415
|
+
* * `HYPERLANE` - Hyperlane Bridge
|
|
1416
|
+
* * `OPINIT` - Opinit Bridge
|
|
1417
|
+
* * `GO_FAST` - Go Fast Bridge
|
|
1418
|
+
* * `STARGATE` - Stargate Bridge
|
|
1419
|
+
* * `EUREKA` - IBC Eureka Bridge
|
|
1420
|
+
*/
|
|
1421
|
+
bridge_id?: BridgeTypeJson;
|
|
1422
|
+
/** Amount of the fee asset to be paid */
|
|
1423
|
+
amount?: string;
|
|
1424
|
+
/** The value of the fee in USD */
|
|
1425
|
+
usd_amount?: string;
|
|
1426
|
+
origin_asset: AssetJson;
|
|
1427
|
+
/** Chain ID of the chain where fees are collected */
|
|
1428
|
+
chain_id?: string;
|
|
1429
|
+
/** The index of the transaction in the list of transactions required to execute the transfer where fees are paid */
|
|
1430
|
+
tx_index?: number;
|
|
1431
|
+
/** The index of the operation in the returned operations list which incurs the fee */
|
|
1432
|
+
operation_index?: number | null;
|
|
1433
|
+
}
|
|
1434
|
+
|
|
32
1435
|
declare const GAS_STATION_CHAIN_IDS: string[];
|
|
33
1436
|
|
|
34
|
-
export { GAS_STATION_CHAIN_IDS };
|
|
1437
|
+
export { type AcknowledgementErrorDetailsJson, type AffiliateJson, type ApiErrorJson, type AssetBetweenChainsJson, type AssetJson, type AssetRecommendationJson, AutopilotActionJson, type AutopilotMsgJson, type AutopilotMsgWrapperJson, type AxelarTransferInfoJson, type AxelarTransferJson, AxelarTransferStateJson, AxelarTransferTypeJson, type AxelarTransferWrapperJson, type BalanceRequestChainEntryJson, type BalanceResponseChainEntryJson, type BalanceResponseDenomEntryJson, type BankSendJson, type BankSendWrapperJson, type BridgeJson, BridgeTypeJson, type CCTPTransferInfoJson, type CCTPTransferJson, CCTPTransferStateJson, type CCTPTransferTxsJson, type CCTPTransferWrapperJson, type ChainAffiliatesJson, type ChainJson, type ChainTransactionJson, ChainTypeJson, 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, type FeeJson, FeeTypeJson, GAS_STATION_CHAIN_IDS, type GRPCStatusCodeJson, type GoFastFeeJson, type GoFastTransferInfoJson, type GoFastTransferJson, GoFastTransferStateJson, type GoFastTransferTxsJson, type HyperlaneTransferInfoJson, type HyperlaneTransferJson, HyperlaneTransferStateJson, type HyperlaneTransferTransactionsJson, type HyperlaneTransferWrapperJson, type IBCTransferInfoJson, type IbcCapabilitiesJson, type LayerZeroTransferInfoJson, type LayerZeroTransferJson, LayerZeroTransferStateJson, type LayerZeroTransferTransactionsJson, type LayerZeroTransferWrapperJson, type MsgJson, 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, RoutePriceWarningTypeJson, 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 SvmTxJson, type SvmTxWrapperJson, type SwapExactCoinInJson, type SwapExactCoinOutJson, type SwapInWrapperJson, type SwapJson, type SwapOperationJson, type SwapOutWrapperJson, type SwapRouteJson, type SwapVenueJson, type SwapWrapperJson, type TransactionExecutionErrorDetailsJson, TransactionStateJson, type TransferAssetReleaseJson, type TransferEventJson, type TransferJson, TransferStateJson, type TransferStatusJson, type TransferWrapperJson, type TxJson };
|