@skip-go/client 1.5.3-alpha.0 → 1.5.3
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 +1 -1
- package/dist/cjs/api/getAssetsBetweenChains.cjs +1 -1
- package/dist/cjs/api/getBridges.cjs +1 -1
- package/dist/cjs/api/getChains.cjs +1 -1
- package/dist/cjs/api/getVenues.cjs +1 -1
- package/dist/cjs/api/postAssetsFromSource.cjs +1 -1
- package/dist/cjs/api/postBalances.cjs +1 -1
- package/dist/cjs/api/postIbcOriginAssets.cjs +1 -1
- package/dist/cjs/api/postMessages.cjs +1 -1
- package/dist/cjs/api/postMessagesDirect.cjs +1 -1
- package/dist/cjs/api/postRecommendAssets.cjs +1 -1
- package/dist/cjs/api/postRoute.cjs +1 -1
- package/dist/cjs/api/postSubmitTransaction.cjs +1 -1
- package/dist/cjs/api/postTrackTransaction.cjs +1 -1
- package/dist/cjs/api/postTransactionStatus.cjs +1 -1
- package/dist/cjs/{chunk-I6VYDEUV.cjs → chunk-3UPZIINE.cjs} +137 -137
- package/dist/cjs/{chunk-H2T4LMS2.cjs → chunk-4RLEZ5DV.cjs} +3 -3
- package/dist/cjs/{chunk-KM2D7PJL.cjs → chunk-4TBONPD6.cjs} +33 -33
- package/dist/cjs/{chunk-WKYP2NMS.cjs → chunk-6W2OIU3O.cjs} +15 -15
- package/dist/cjs/{chunk-ARCCHERF.cjs → chunk-BFA7XKVT.cjs} +19 -19
- package/dist/cjs/{chunk-BQDOKZFX.cjs → chunk-BT6HQNBF.cjs} +3 -3
- package/dist/cjs/{chunk-CZKIE576.cjs → chunk-DAPPFYGA.cjs} +8 -8
- package/dist/cjs/{chunk-MOWOIPUG.cjs → chunk-GOQK63JP.cjs} +4 -4
- package/dist/cjs/{chunk-3M7YYWGL.cjs → chunk-MUJBB64F.cjs} +3 -7
- package/dist/cjs/{chunk-UY5LWG5D.cjs → chunk-ND7SYSAP.cjs} +4 -4
- package/dist/cjs/{chunk-DWOE6N5S.cjs → chunk-NM4PISTQ.cjs} +189 -188
- package/dist/cjs/{chunk-J7HZ6VJE.cjs → chunk-QWQVTCKP.cjs} +15 -15
- package/dist/cjs/{chunk-XCFPRLX3.cjs → chunk-U2NZCNKX.cjs} +153 -153
- package/dist/cjs/chunk-UMBMSRZZ.cjs +185 -0
- package/dist/cjs/{chunk-DLT6Q6RB.cjs → chunk-WOSAJSJB.cjs} +163 -149
- package/dist/cjs/index.cjs +84 -80
- package/dist/cjs/public-functions/executeMultipleRoutes.cjs +12 -22
- package/dist/cjs/public-functions/executeRoute.cjs +12 -22
- package/dist/cjs/public-functions/getCosmosGasAmountForMessage.cjs +5 -5
- package/dist/cjs/public-functions/getEvmGasAmountForMessage.cjs +1 -1
- package/dist/cjs/public-functions/getFeeInfoForChain.cjs +5 -4
- package/dist/cjs/public-functions/getRecommendedGasPrice.cjs +7 -6
- package/dist/cjs/public-functions/getRouteWithGasOnReceive.cjs +18 -14
- package/dist/cjs/public-functions/getSigningStargateClient.cjs +5 -5
- package/dist/cjs/public-functions/setApiOptions.cjs +1 -1
- package/dist/cjs/public-functions/setClientOptions.cjs +5 -5
- package/dist/cjs/public-functions/subscribeToRouteStatus.cjs +1 -1
- package/dist/cjs/public-functions/validateCosmosGasBalance.cjs +9 -9
- package/dist/cjs/public-functions/waitForTransaction.cjs +1 -1
- package/dist/esm/api/getAssets.d.ts +1 -1
- package/dist/esm/api/getAssets.js +1 -1
- package/dist/esm/api/getAssetsBetweenChains.d.ts +1 -1
- package/dist/esm/api/getAssetsBetweenChains.js +1 -1
- package/dist/esm/api/getBridges.d.ts +1 -1
- package/dist/esm/api/getBridges.js +1 -1
- package/dist/esm/api/getChains.d.ts +1 -1
- package/dist/esm/api/getChains.js +1 -1
- package/dist/esm/api/getVenues.js +1 -1
- package/dist/esm/api/postAssetsFromSource.d.ts +1 -1
- package/dist/esm/api/postAssetsFromSource.js +1 -1
- package/dist/esm/api/postBalances.d.ts +2 -2
- package/dist/esm/api/postBalances.js +1 -1
- package/dist/esm/api/postIbcOriginAssets.js +1 -1
- package/dist/esm/api/postMessages.d.ts +2 -2
- package/dist/esm/api/postMessages.js +1 -1
- package/dist/esm/api/postMessagesDirect.d.ts +1 -1
- package/dist/esm/api/postMessagesDirect.js +1 -1
- package/dist/esm/api/postRecommendAssets.d.ts +1 -1
- package/dist/esm/api/postRecommendAssets.js +1 -1
- package/dist/esm/api/postRoute.d.ts +2 -2
- package/dist/esm/api/postRoute.js +1 -1
- package/dist/esm/api/postSubmitTransaction.d.ts +2 -2
- package/dist/esm/api/postSubmitTransaction.js +1 -1
- package/dist/esm/api/postTrackTransaction.d.ts +2 -2
- package/dist/esm/api/postTrackTransaction.js +1 -1
- package/dist/esm/api/postTransactionStatus.d.ts +2 -2
- package/dist/esm/api/postTransactionStatus.js +1 -1
- package/dist/esm/{callbacks-C-KUJnDv.d.ts → callbacks-CJ_p70xa.d.ts} +3 -3
- package/dist/esm/{chunk-FDRLM2JD.js → chunk-426BGQ4K.js} +131 -131
- package/dist/esm/{chunk-DL374PFE.js → chunk-BBEFB277.js} +1 -1
- package/dist/esm/{chunk-UIDIKXMB.js → chunk-F2LQB2DP.js} +6 -5
- package/dist/esm/{chunk-KNXMSLOB.js → chunk-GLH7IRLX.js} +2 -2
- package/dist/esm/{chunk-SOVU5NCL.js → chunk-GLM7QWYT.js} +2 -2
- package/dist/esm/{chunk-47HN6VKU.js → chunk-H2TTIB5K.js} +3 -3
- package/dist/esm/{chunk-QL423UEF.js → chunk-HP5EMWC6.js} +163 -149
- package/dist/esm/{chunk-JNVGNIOE.js → chunk-HZVXNDMH.js} +2 -2
- package/dist/esm/{chunk-JYYCFKB4.js → chunk-KS764SOZ.js} +15 -15
- package/dist/esm/{chunk-IGK7LJCM.js → chunk-L233BZ4I.js} +5 -5
- package/dist/esm/{chunk-6M7N6EAO.js → chunk-LBS7KX5I.js} +12 -12
- package/dist/esm/chunk-O4J7DHZA.js +180 -0
- package/dist/esm/{chunk-H3MY23AH.js → chunk-QYIZGNWZ.js} +1 -1
- package/dist/esm/{chunk-QO2CYYF5.js → chunk-RTDD7HZ3.js} +4 -7
- package/dist/esm/{chunk-RHLE3EW7.js → chunk-SA4GETWP.js} +1 -1
- package/dist/esm/{client-types-CGMuZ3zo.d.ts → client-types-uXKJQRqe.d.ts} +1 -1
- package/dist/esm/{generateApi-D_-Gso-x.d.ts → generateApi-BMFrG4FZ.d.ts} +1 -1
- package/dist/esm/index.d.ts +260 -259
- package/dist/esm/index.js +17 -13
- package/dist/esm/public-functions/executeMultipleRoutes.d.ts +4 -4
- package/dist/esm/public-functions/executeMultipleRoutes.js +11 -21
- package/dist/esm/public-functions/executeRoute.d.ts +4 -4
- package/dist/esm/public-functions/executeRoute.js +11 -21
- package/dist/esm/public-functions/getCosmosGasAmountForMessage.d.ts +1 -1
- package/dist/esm/public-functions/getCosmosGasAmountForMessage.js +3 -3
- package/dist/esm/public-functions/getEvmGasAmountForMessage.d.ts +3 -3
- package/dist/esm/public-functions/getEvmGasAmountForMessage.js +1 -1
- package/dist/esm/public-functions/getFeeInfoForChain.d.ts +1 -1
- package/dist/esm/public-functions/getFeeInfoForChain.js +4 -3
- package/dist/esm/public-functions/getRecommendedGasPrice.js +6 -5
- package/dist/esm/public-functions/getRouteWithGasOnReceive.d.ts +1 -1
- package/dist/esm/public-functions/getRouteWithGasOnReceive.js +17 -13
- package/dist/esm/public-functions/getSigningStargateClient.js +4 -4
- package/dist/esm/public-functions/setApiOptions.d.ts +1 -1
- package/dist/esm/public-functions/setApiOptions.js +1 -1
- package/dist/esm/public-functions/setClientOptions.d.ts +4 -4
- package/dist/esm/public-functions/setClientOptions.js +4 -4
- package/dist/esm/public-functions/subscribeToRouteStatus.d.ts +4 -4
- package/dist/esm/public-functions/subscribeToRouteStatus.js +1 -1
- package/dist/esm/public-functions/validateCosmosGasBalance.d.ts +4 -4
- package/dist/esm/public-functions/validateCosmosGasBalance.js +8 -8
- package/dist/esm/public-functions/waitForTransaction.d.ts +4 -4
- package/dist/esm/public-functions/waitForTransaction.js +1 -1
- package/dist/esm/{setClientOptions-C8g92xTm.d.ts → setClientOptions-D1qgaOqC.d.ts} +3 -3
- package/dist/esm/{swaggerTypes-B_jKfpvz.d.ts → swaggerTypes-Cop47I0X.d.ts} +257 -255
- package/package.json +5 -5
- package/dist/cjs/chunk-EVEVOW2U.cjs +0 -2179
- package/dist/cjs/chunk-GGSF5JZH.cjs +0 -101
- package/dist/cjs/chunk-GWRZ6MPC.cjs +0 -2179
- package/dist/cjs/chunk-KSJ5QYMR.cjs +0 -185
- package/dist/cjs/chunk-W6ID22B6.cjs +0 -24
- package/dist/esm/chunk-RHGDUD76.js +0 -180
- package/dist/esm/chunk-RJ35JBT4.js +0 -2154
- package/dist/esm/chunk-X2IBEHMZ.js +0 -2154
- package/dist/esm/chunk-XHLXJGVB.js +0 -22
- package/dist/esm/chunk-YWG4XR5A.js +0 -98
package/dist/esm/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export { C as ClientTransferEvent, E as ExecuteRouteOptions, R as RouteDetails, a as RouteStatus, h as TransactionCallbacks, T as TransactionDetails, b as TransactionStatus, c as TransferEventStatus, d as TransferType, e as executeRoute, f as getSimpleOverallStatus, g as getTransferEventsFromTxStatusResponse, s as subscribeToRouteStatus } from './callbacks-
|
|
3
|
-
export { B as BaseSettings, E as EndpointOptions, b as GasOptions, G as GetFallbackGasAmount, a as GetGasPrice, e as SignCosmosMessageAminoOptions, d as SignCosmosMessageDirectOptions, c as SignCosmosMessageOptionsBase, S as SignerGetters, T as TxResult, U as UserAddress, V as ValidateGasResult } from './client-types-
|
|
1
|
+
export { j as AcknowledgementErrorDetails, k as Affiliate, bI as Api, bE as ApiConfig, l as ApiError, m as Asset, n as AssetBetweenChains, o as AssetRecommendation, ba as AssetRecommendationsRequest, bt as AssetRecommendationsResponse, bg as AssetsBetweenChainsRequest, b7 as AssetsFromSourceRequest, bp as AssetsFromSourceResponse, bn as AssetsRequest, bo as AssetsResponse, i as AutopilotAction, p as AutopilotMsg, q as AutopilotMsgWrapper, r as AxelarTransfer, s as AxelarTransferInfo, h as AxelarTransferState, A as AxelarTransferType, t as AxelarTransferWrapper, Q as BalanceRequestChainEntry, V as BalanceResponseChainEntry, U as BalanceResponseDenomEntry, b6 as BalancesRequest, bj as BalancesResponse, W as BankSend, X as BankSendWrapper, Y as Bridge, B as BridgeType, bk as BridgesResponse, v as CCTPTransfer, w as CCTPTransferInfo, g as CCTPTransferState, x as CCTPTransferTxs, y as CCTPTransferWrapper, Z as Chain, _ as ChainAffiliates, aw as ChainTransaction, e as ChainType, bh as ChainsRequest, bi as ChainsResponse, bG as ContentType, $ as ContractCallWithTokenError, C as ContractCallWithTokenErrorType, a0 as ContractCallWithTokenTxs, a1 as CosmWasmContractMsg, a2 as CosmWasmContractMsgWrapper, b3 as CosmosModuleSupport, a6 as CosmosMsg, a7 as CosmosTx, a8 as CosmosTxWrapper, a3 as Erc20Approval, a5 as Error, a4 as ErrorDetail, aY as EurekaTransfer, aZ as EurekaTransferInfo, a_ as EurekaTransferWrapper, a9 as EvmSwap, aa as EvmSwapWrapper, ab as EvmTx, ac as EvmTxWrapper, b5 as Fee, af as FeeAsset, F as FeeBehavior, a as FeeType, bC as FullRequestParams, bz as FungibleAssetsBetweenChainsCreateResponse, ah as GRPCStatusCode, ag as GoFastFee, J as GoFastTransfer, M as GoFastTransferInfo, G as GoFastTransferState, K as GoFastTransferTxs, N as GoFastTransferWrapper, bH as HttpClient, bF as HttpResponse, ai as HyperlaneTransfer, aj as HyperlaneTransferInfo, H as HyperlaneTransferState, ak as HyperlaneTransferTransactions, al as HyperlaneTransferWrapper, am as IBCTransferInfo, b4 as IbcCapabilities, bf as IbcOriginAssetsRequest, by as IbcOriginAssetsResponse, a$ as LayerZeroTransfer, b0 as LayerZeroTransferInfo, L as LayerZeroTransferState, at as LayerZeroTransferTransactions, b1 as LayerZeroTransferWrapper, an as Msg, b9 as MsgsDirectRequest, bs as MsgsDirectResponse, b8 as MsgsRequest, br as MsgsResponse, ap as MultiChainMsg, aq as MultiChainMsgWrapper, aP as OPInitTransfer, aR as OPInitTransferInfo, O as OPInitTransferState, aS as OPInitTransferTxs, aQ as OPInitTransferWrapper, ar as Operation, as as OptionalAsset, au as Packet, av as PacketError, P as PacketErrorType, ax as PostHandler, bA as QueryParamsType, d as Reason, b2 as RecommendationRequest, bD as RequestParams, bB as ResponseFormat, ay as Route, R as RoutePriceWarningType, bq as RouteResponse, az as SendTokenError, c as SendTokenErrorType, aA as SendTokenTxs, u as SmartRelayFeeQuote, aJ as SmartSwapExactCoinIn, aL as SmartSwapInWrapper, aK as SmartSwapOptions, z as StargateTransfer, E as StargateTransferInfo, f as StargateTransferState, D as StargateTransferTxs, I as StargateTransferWrapper, aB as StatusError, S as StatusErrorType, bw as StatusRequest, bx as StatusResponse, be as StatusTxResponse, bu as SubmitResponse, bb as SubmitTxRequest, ad as SvmTx, ae as SvmTxWrapper, aC as Swap, aD as SwapExactCoinIn, aE as SwapExactCoinOut, aF as SwapInWrapper, aG as SwapOperation, aH as SwapOutWrapper, aI as SwapRoute, aM as SwapVenue, aN as SwapWrapper, bv as TrackResponse, bc as TrackTxRequest, bd as TrackTxResponse, aO as TransactionExecutionErrorDetails, b as TransactionState, aT as Transfer, aV as TransferAssetRelease, aU as TransferEvent, T as TransferState, aW as TransferStatus, aX as TransferWrapper, ao as Tx, bl as VenuesRequest, bm as VenuesResponse } from './swaggerTypes-Cop47I0X.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-CJ_p70xa.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-uXKJQRqe.js';
|
|
4
4
|
export { assets } from './api/getAssets.js';
|
|
5
5
|
export { assetsBetweenChains } from './api/getAssetsBetweenChains.js';
|
|
6
6
|
export { bridges } from './api/getBridges.js';
|
|
@@ -19,7 +19,7 @@ export { trackTransaction } from './api/postTrackTransaction.js';
|
|
|
19
19
|
export { TxStatusResponse, transactionStatus } from './api/postTransactionStatus.js';
|
|
20
20
|
export { ExecuteMultipleRoutesOptions, executeMultipleRoutes } from './public-functions/executeMultipleRoutes.js';
|
|
21
21
|
export { getSigningStargateClient, getSigningStargateClientProps } from './public-functions/getSigningStargateClient.js';
|
|
22
|
-
export { C as ClientState, S as SkipClientOptions, s as setClientOptions } from './setClientOptions-
|
|
22
|
+
export { C as ClientState, S as SkipClientOptions, s as setClientOptions } from './setClientOptions-D1qgaOqC.js';
|
|
23
23
|
export { getRecommendedGasPrice } from './public-functions/getRecommendedGasPrice.js';
|
|
24
24
|
export { getFeeInfoForChain } from './public-functions/getFeeInfoForChain.js';
|
|
25
25
|
export { SetApiOptionsProps, setApiOptions } from './public-functions/setApiOptions.js';
|
|
@@ -27,7 +27,7 @@ export { waitForTransaction } from './public-functions/waitForTransaction.js';
|
|
|
27
27
|
export { getCosmosGasAmountForMessage } from './public-functions/getCosmosGasAmountForMessage.js';
|
|
28
28
|
export { getEVMGasAmountForMessage } from './public-functions/getEvmGasAmountForMessage.js';
|
|
29
29
|
export { validateCosmosGasBalance } from './public-functions/validateCosmosGasBalance.js';
|
|
30
|
-
import './generateApi-
|
|
30
|
+
import './generateApi-BMFrG4FZ.js';
|
|
31
31
|
import '@cosmjs/amino';
|
|
32
32
|
import '@cosmjs/proto-signing';
|
|
33
33
|
import '@cosmjs/stargate';
|
|
@@ -35,6 +35,259 @@ import 'viem';
|
|
|
35
35
|
import '@solana/wallet-adapter-base';
|
|
36
36
|
import './apiState-1VvikVK-.js';
|
|
37
37
|
|
|
38
|
+
/**
|
|
39
|
+
* Indicates whether the fee is deducted from the transfer amount or charged additionally.
|
|
40
|
+
* - FEE_BEHAVIOR_DEDUCTED: Fee is subtracted from the transfer amount (default, typical for Cosmos chains)
|
|
41
|
+
* - FEE_BEHAVIOR_ADDITIONAL: Fee is charged on top of the transfer amount (typical for EVM chains with native tokens)
|
|
42
|
+
*/
|
|
43
|
+
declare enum FeeBehaviorJson {
|
|
44
|
+
FEE_BEHAVIOR_DEDUCTED = "FEE_BEHAVIOR_DEDUCTED",
|
|
45
|
+
FEE_BEHAVIOR_ADDITIONAL = "FEE_BEHAVIOR_ADDITIONAL"
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Fee type:
|
|
49
|
+
* * SMART_RELAY - Fees for Smart relaying services.'
|
|
50
|
+
*/
|
|
51
|
+
declare enum FeeTypeJson {
|
|
52
|
+
SMART_RELAY = "SMART_RELAY"
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Transfer state:
|
|
56
|
+
* * `TRANSFER_UNKNOWN` - Transfer state is not known.
|
|
57
|
+
* * `TRANSFER_PENDING` - The send packet for the transfer has been committed and the transfer is pending.
|
|
58
|
+
* * `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.
|
|
59
|
+
* * `TRANSFER_SUCCESS` - The transfer has been successfully completed and will not revert.
|
|
60
|
+
* * `TRANSFER_FAILURE`- The transfer has failed.
|
|
61
|
+
*/
|
|
62
|
+
declare enum TransferStateJson {
|
|
63
|
+
TRANSFER_UNKNOWN = "TRANSFER_UNKNOWN",
|
|
64
|
+
TRANSFER_PENDING = "TRANSFER_PENDING",
|
|
65
|
+
TRANSFER_RECEIVED = "TRANSFER_RECEIVED",
|
|
66
|
+
TRANSFER_SUCCESS = "TRANSFER_SUCCESS",
|
|
67
|
+
TRANSFER_FAILURE = "TRANSFER_FAILURE"
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* LayerZero transfer state:
|
|
71
|
+
* * `LAYER_ZERO_TRANSFER_UNKNOWN` - Unknown error
|
|
72
|
+
* * `LAYER_ZERO_TRANSFER_SENT` - The transaction on the source chain has executed
|
|
73
|
+
* * `LAYER_ZERO_TRANSFER_WAITING_FOR_COMPOSE` - The transfer has been delivered to the destination chain but there is an additional lz_compose transaction that still needs to be delivered before marking this transfer as LAYER_ZERO_TRANSFER_RECEIVED
|
|
74
|
+
* * `LAYER_ZERO_TRANSFER_RECEIVED` - The transfer has been received at the destination chain
|
|
75
|
+
* * `LAYER_ZERO_TRANSFER_FAILED` - The transfer has failed
|
|
76
|
+
*/
|
|
77
|
+
declare enum LayerZeroTransferStateJson {
|
|
78
|
+
LAYER_ZERO_TRANSFER_UNKNOWN = "LAYER_ZERO_TRANSFER_UNKNOWN",
|
|
79
|
+
LAYER_ZERO_TRANSFER_SENT = "LAYER_ZERO_TRANSFER_SENT",
|
|
80
|
+
LAYER_ZERO_TRANSFER_WAITING_FOR_COMPOSE = "LAYER_ZERO_TRANSFER_WAITING_FOR_COMPOSE",
|
|
81
|
+
LAYER_ZERO_TRANSFER_RECEIVED = "LAYER_ZERO_TRANSFER_RECEIVED",
|
|
82
|
+
LAYER_ZERO_TRANSFER_FAILED = "LAYER_ZERO_TRANSFER_FAILED"
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* OPInit transfer state:
|
|
86
|
+
* * `OPINIT_TRANSFER_UNKNOWN` - Unknown error
|
|
87
|
+
* * `OPINIT_TRANSFER_SENT` - The deposit transaction on the source chain has executed
|
|
88
|
+
* * `OPINIT_TRANSFER_RECEIVED` - OPInit transfer has been received at the destination chain
|
|
89
|
+
*/
|
|
90
|
+
declare enum OPInitTransferStateJson {
|
|
91
|
+
OPINIT_TRANSFER_UNKNOWN = "OPINIT_TRANSFER_UNKNOWN",
|
|
92
|
+
OPINIT_TRANSFER_SENT = "OPINIT_TRANSFER_SENT",
|
|
93
|
+
OPINIT_TRANSFER_RECEIVED = "OPINIT_TRANSFER_RECEIVED"
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* Transaction state:
|
|
97
|
+
* * `STATE_SUBMITTED` - The initial transaction has been submitted to Skip Go API but not observed on chain yet
|
|
98
|
+
* * `STATE_PENDING` - The initial transaction has been observed on chain, and there are still pending actions
|
|
99
|
+
* * `STATE_COMPLETED_SUCCESS` - The route has completed successfully and the user has their tokens on the destination. (indicated by `transfer_asset_release`)
|
|
100
|
+
* * `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.
|
|
101
|
+
* (Again, `transfer_asset_release` indicates where the tokens are)
|
|
102
|
+
* * `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.
|
|
103
|
+
* * `STATE_PENDING_ERROR` - The overall transaction will fail, pending error propagation
|
|
104
|
+
*/
|
|
105
|
+
declare enum TransactionStateJson {
|
|
106
|
+
STATE_SUBMITTED = "STATE_SUBMITTED",
|
|
107
|
+
STATE_PENDING = "STATE_PENDING",
|
|
108
|
+
STATE_ABANDONED = "STATE_ABANDONED",
|
|
109
|
+
STATE_COMPLETED_SUCCESS = "STATE_COMPLETED_SUCCESS",
|
|
110
|
+
STATE_COMPLETED_ERROR = "STATE_COMPLETED_ERROR",
|
|
111
|
+
STATE_PENDING_ERROR = "STATE_PENDING_ERROR"
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Packet error types:
|
|
115
|
+
* * `STATUS_ERROR_UNKNOWN` - Unknown error
|
|
116
|
+
* * `STATUS_ERROR_TRANSACTION_EXECUTION` - Error was encountered during transaction execution
|
|
117
|
+
* * `STATUS_ERROR_INDEXING` - Error was encountered while indexing the transaction and packet data
|
|
118
|
+
* * `STATUS_ERROR_TRANSFER` - The transfer failed to complete successfully
|
|
119
|
+
*/
|
|
120
|
+
declare enum StatusErrorTypeJson {
|
|
121
|
+
STATUS_ERROR_UNKNOWN = "STATUS_ERROR_UNKNOWN",
|
|
122
|
+
STATUS_ERROR_TRANSACTION_EXECUTION = "STATUS_ERROR_TRANSACTION_EXECUTION",
|
|
123
|
+
STATUS_ERROR_INDEXING = "STATUS_ERROR_INDEXING",
|
|
124
|
+
STATUS_ERROR_TRANSFER = "STATUS_ERROR_TRANSFER"
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* SendToken error types:
|
|
128
|
+
* * `SEND_TOKEN_EXECUTION_ERROR` - Error occurred during the execute transaction
|
|
129
|
+
*/
|
|
130
|
+
declare enum SendTokenErrorTypeJson {
|
|
131
|
+
SEND_TOKEN_EXECUTION_ERROR = "SEND_TOKEN_EXECUTION_ERROR"
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* Recommendation reason:
|
|
135
|
+
* * `LOW_INFO_WARNING` - Not enough asset pricing information to determine the price safety of the route.
|
|
136
|
+
* * `BAD_PRICE_WARNING` - The execution price of the route deviates significantly from the current market price.
|
|
137
|
+
*/
|
|
138
|
+
declare enum RoutePriceWarningTypeJson {
|
|
139
|
+
LOW_INFO_WARNING = "LOW_INFO_WARNING",
|
|
140
|
+
BAD_PRICE_WARNING = "BAD_PRICE_WARNING"
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* Recommendation reason:
|
|
144
|
+
* * `UNKNOWN` - Unknown recommendation reason.
|
|
145
|
+
* * `MOST_LIQUID` - Highest liquidity form of the transferred token on the destination chain.
|
|
146
|
+
* * `BASE_TOKEN` - The base token if the destination chain is the origin chain of the source token.
|
|
147
|
+
* * `DIRECT` - The token resulting from the least amount of transfers to the destination chain.
|
|
148
|
+
*/
|
|
149
|
+
declare enum ReasonJson {
|
|
150
|
+
UNKNOWN = "UNKNOWN",
|
|
151
|
+
MOST_LIQUID = "MOST_LIQUID",
|
|
152
|
+
BASE_TOKEN = "BASE_TOKEN",
|
|
153
|
+
DIRECT = "DIRECT"
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* Packet error type:
|
|
157
|
+
* * `PACKET_ERROR_UNKNOWN` - Unknown error
|
|
158
|
+
* * `PACKET_ERROR_ACKNOWLEDGEMENT` - Packet acknowledgement error
|
|
159
|
+
* * `PACKET_ERROR_TIMEOUT` - Packet timed out
|
|
160
|
+
*/
|
|
161
|
+
declare enum PacketErrorTypeJson {
|
|
162
|
+
PACKET_ERROR_UNKNOWN = "PACKET_ERROR_UNKNOWN",
|
|
163
|
+
PACKET_ERROR_ACKNOWLEDGEMENT = "PACKET_ERROR_ACKNOWLEDGEMENT",
|
|
164
|
+
PACKET_ERROR_TIMEOUT = "PACKET_ERROR_TIMEOUT"
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* Hyperlane transfer state:
|
|
168
|
+
* * `HYPERLANE_TRANSFER_UNKNOWN` - Unknown error
|
|
169
|
+
* * `HYPERLANE_TRANSFER_SENT` - The Hyperlane transfer transaction on the source chain has executed
|
|
170
|
+
* * `HYPERLANE_TRANSFER_FAILED` - The Hyperlane transfer failed
|
|
171
|
+
* * `HYPERLANE_TRANSFER_RECEIVED` - The Hyperlane transfer has been received at the destination chain
|
|
172
|
+
*/
|
|
173
|
+
declare enum HyperlaneTransferStateJson {
|
|
174
|
+
HYPERLANE_TRANSFER_UNKNOWN = "HYPERLANE_TRANSFER_UNKNOWN",
|
|
175
|
+
HYPERLANE_TRANSFER_SENT = "HYPERLANE_TRANSFER_SENT",
|
|
176
|
+
HYPERLANE_TRANSFER_FAILED = "HYPERLANE_TRANSFER_FAILED",
|
|
177
|
+
HYPERLANE_TRANSFER_RECEIVED = "HYPERLANE_TRANSFER_RECEIVED"
|
|
178
|
+
}
|
|
179
|
+
/**
|
|
180
|
+
* ContractCallWithToken errors:
|
|
181
|
+
* * `CONTRACT_CALL_WITH_TOKEN_EXECUTION_ERROR` - Error occurred during the execute transaction
|
|
182
|
+
*/
|
|
183
|
+
declare enum ContractCallWithTokenErrorTypeJson {
|
|
184
|
+
CONTRACT_CALL_WITH_TOKEN_EXECUTION_ERROR = "CONTRACT_CALL_WITH_TOKEN_EXECUTION_ERROR"
|
|
185
|
+
}
|
|
186
|
+
declare enum ChainTypeJson {
|
|
187
|
+
Cosmos = "cosmos",
|
|
188
|
+
Evm = "evm",
|
|
189
|
+
Svm = "svm"
|
|
190
|
+
}
|
|
191
|
+
/**
|
|
192
|
+
* Bridge Type:
|
|
193
|
+
* * `IBC` - IBC Bridge
|
|
194
|
+
* * `AXELAR` - Axelar Bridge
|
|
195
|
+
* * `CCTP` - CCTP Bridge
|
|
196
|
+
* * `HYPERLANE` - Hyperlane Bridge
|
|
197
|
+
* * `OPINIT` - Opinit Bridge
|
|
198
|
+
* * `GO_FAST` - Go Fast Bridge
|
|
199
|
+
* * `STARGATE` - Stargate Bridge
|
|
200
|
+
* * `LAYER_ZERO` - Layerzero Bridge
|
|
201
|
+
* * `EUREKA` - IBC Eureka Bridge
|
|
202
|
+
*/
|
|
203
|
+
declare enum BridgeTypeJson {
|
|
204
|
+
IBC = "IBC",
|
|
205
|
+
AXELAR = "AXELAR",
|
|
206
|
+
CCTP = "CCTP",
|
|
207
|
+
HYPERLANE = "HYPERLANE",
|
|
208
|
+
OPINIT = "OPINIT",
|
|
209
|
+
GO_FAST = "GO_FAST",
|
|
210
|
+
STARGATE = "STARGATE",
|
|
211
|
+
LAYER_ZERO = "LAYER_ZERO",
|
|
212
|
+
EUREKA = "EUREKA"
|
|
213
|
+
}
|
|
214
|
+
/**
|
|
215
|
+
* GoFast transfer state:
|
|
216
|
+
* * `GO_FAST_TRANSFER_UNKNOWN` - Unknown state
|
|
217
|
+
* * `GO_FAST_TRANSFER_SENT` - Order submitted on source chain
|
|
218
|
+
* * `GO_FAST_POST_ACTION_FAILED` - Order filled, but subsequent action (e.g., swap) failed
|
|
219
|
+
* * `GO_FAST_TRANSFER_TIMEOUT` - Order timed out
|
|
220
|
+
* * `GO_FAST_TRANSFER_FILLED` - Order filled on destination chain
|
|
221
|
+
* * `GO_FAST_TRANSFER_REFUNDED` - Order refunded
|
|
222
|
+
*/
|
|
223
|
+
declare enum GoFastTransferStateJson {
|
|
224
|
+
GO_FAST_TRANSFER_UNKNOWN = "GO_FAST_TRANSFER_UNKNOWN",
|
|
225
|
+
GO_FAST_TRANSFER_SENT = "GO_FAST_TRANSFER_SENT",
|
|
226
|
+
GO_FAST_POST_ACTION_FAILED = "GO_FAST_POST_ACTION_FAILED",
|
|
227
|
+
GO_FAST_TRANSFER_TIMEOUT = "GO_FAST_TRANSFER_TIMEOUT",
|
|
228
|
+
GO_FAST_TRANSFER_FILLED = "GO_FAST_TRANSFER_FILLED",
|
|
229
|
+
GO_FAST_TRANSFER_REFUNDED = "GO_FAST_TRANSFER_REFUNDED"
|
|
230
|
+
}
|
|
231
|
+
/**
|
|
232
|
+
* Stargate transfer state:
|
|
233
|
+
* * `STARGATE_TRANSFER_UNKNOWN` - Unknown error
|
|
234
|
+
* * `STARGATE_TRANSFER_SENT` - The Stargate transfer transaction on the source chain has executed
|
|
235
|
+
* * `STARGATE_TRANSFER_PENDING_CONFIRMATION` - Stargate transfer is pending confirmation
|
|
236
|
+
* * `STARGATE_TRANSFER_CONFIRMED` - Stargate transfer has been confirmed
|
|
237
|
+
* * `STARGATE_TRANSFER_RECEIVED` - Stargate transfer has been received at the destination chain
|
|
238
|
+
* * `STARGATE_TRANSFER_FAILED` - Stargate transfer failed
|
|
239
|
+
*/
|
|
240
|
+
declare enum StargateTransferStateJson {
|
|
241
|
+
STARGATE_TRANSFER_UNKNOWN = "STARGATE_TRANSFER_UNKNOWN",
|
|
242
|
+
STARGATE_TRANSFER_SENT = "STARGATE_TRANSFER_SENT",
|
|
243
|
+
STARGATE_TRANSFER_PENDING_CONFIRMATION = "STARGATE_TRANSFER_PENDING_CONFIRMATION",
|
|
244
|
+
STARGATE_TRANSFER_CONFIRMED = "STARGATE_TRANSFER_CONFIRMED",
|
|
245
|
+
STARGATE_TRANSFER_RECEIVED = "STARGATE_TRANSFER_RECEIVED",
|
|
246
|
+
STARGATE_TRANSFER_FAILED = "STARGATE_TRANSFER_FAILED"
|
|
247
|
+
}
|
|
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
|
+
declare enum CCTPTransferStateJson {
|
|
257
|
+
CCTP_TRANSFER_UNKNOWN = "CCTP_TRANSFER_UNKNOWN",
|
|
258
|
+
CCTP_TRANSFER_SENT = "CCTP_TRANSFER_SENT",
|
|
259
|
+
CCTP_TRANSFER_PENDING_CONFIRMATION = "CCTP_TRANSFER_PENDING_CONFIRMATION",
|
|
260
|
+
CCTP_TRANSFER_CONFIRMED = "CCTP_TRANSFER_CONFIRMED",
|
|
261
|
+
CCTP_TRANSFER_RECEIVED = "CCTP_TRANSFER_RECEIVED"
|
|
262
|
+
}
|
|
263
|
+
/**
|
|
264
|
+
* Axelar transfer type:
|
|
265
|
+
* * `AXELAR_TRANSFER_CONTRACT_CALL_WITH_TOKEN` - GMP contract call with token transfer type
|
|
266
|
+
* * `AXELAR_TRANSFER_SEND_TOKEN` - Send token transfer type
|
|
267
|
+
*/
|
|
268
|
+
declare enum AxelarTransferTypeJson {
|
|
269
|
+
AXELAR_TRANSFER_CONTRACT_CALL_WITH_TOKEN = "AXELAR_TRANSFER_CONTRACT_CALL_WITH_TOKEN",
|
|
270
|
+
AXELAR_TRANSFER_SEND_TOKEN = "AXELAR_TRANSFER_SEND_TOKEN"
|
|
271
|
+
}
|
|
272
|
+
/**
|
|
273
|
+
* Axelar transfer state:
|
|
274
|
+
* * `AXELAR_TRANSFER_UNKNOWN` - Unknown error
|
|
275
|
+
* * `AXELAR_TRANSFER_PENDING_CONFIRMATION` - Axelar transfer is pending confirmation
|
|
276
|
+
* * `AXELAR_TRANSFER_PENDING_RECEIPT` - Axelar transfer is pending receipt at destination
|
|
277
|
+
* * `AXELAR_TRANSFER_SUCCESS` - Axelar transfer succeeded and assets have been received
|
|
278
|
+
* * `AXELAR_TRANSFER_FAILURE` - Axelar transfer failed
|
|
279
|
+
*/
|
|
280
|
+
declare enum AxelarTransferStateJson {
|
|
281
|
+
AXELAR_TRANSFER_UNKNOWN = "AXELAR_TRANSFER_UNKNOWN",
|
|
282
|
+
AXELAR_TRANSFER_PENDING_CONFIRMATION = "AXELAR_TRANSFER_PENDING_CONFIRMATION",
|
|
283
|
+
AXELAR_TRANSFER_PENDING_RECEIPT = "AXELAR_TRANSFER_PENDING_RECEIPT",
|
|
284
|
+
AXELAR_TRANSFER_SUCCESS = "AXELAR_TRANSFER_SUCCESS",
|
|
285
|
+
AXELAR_TRANSFER_FAILURE = "AXELAR_TRANSFER_FAILURE"
|
|
286
|
+
}
|
|
287
|
+
declare enum AutopilotActionJson {
|
|
288
|
+
LIQUID_STAKE = "LIQUID_STAKE",
|
|
289
|
+
CLAIM = "CLAIM"
|
|
290
|
+
}
|
|
38
291
|
interface AcknowledgementErrorDetailsJson {
|
|
39
292
|
/** Error code */
|
|
40
293
|
code?: number;
|
|
@@ -100,10 +353,6 @@ interface AssetRecommendationJson {
|
|
|
100
353
|
/** Reason for recommending the asset */
|
|
101
354
|
reason?: ReasonJson;
|
|
102
355
|
}
|
|
103
|
-
declare enum AutopilotActionJson {
|
|
104
|
-
LIQUID_STAKE = "LIQUID_STAKE",
|
|
105
|
-
CLAIM = "CLAIM"
|
|
106
|
-
}
|
|
107
356
|
interface AutopilotMsgJson {
|
|
108
357
|
action?: AutopilotActionJson;
|
|
109
358
|
receiver?: string;
|
|
@@ -184,30 +433,6 @@ interface AxelarTransferInfoJson {
|
|
|
184
433
|
*/
|
|
185
434
|
type?: AxelarTransferTypeJson;
|
|
186
435
|
}
|
|
187
|
-
/**
|
|
188
|
-
* Axelar transfer state:
|
|
189
|
-
* * `AXELAR_TRANSFER_UNKNOWN` - Unknown error
|
|
190
|
-
* * `AXELAR_TRANSFER_PENDING_CONFIRMATION` - Axelar transfer is pending confirmation
|
|
191
|
-
* * `AXELAR_TRANSFER_PENDING_RECEIPT` - Axelar transfer is pending receipt at destination
|
|
192
|
-
* * `AXELAR_TRANSFER_SUCCESS` - Axelar transfer succeeded and assets have been received
|
|
193
|
-
* * `AXELAR_TRANSFER_FAILURE` - Axelar transfer failed
|
|
194
|
-
*/
|
|
195
|
-
declare enum AxelarTransferStateJson {
|
|
196
|
-
AXELAR_TRANSFER_UNKNOWN = "AXELAR_TRANSFER_UNKNOWN",
|
|
197
|
-
AXELAR_TRANSFER_PENDING_CONFIRMATION = "AXELAR_TRANSFER_PENDING_CONFIRMATION",
|
|
198
|
-
AXELAR_TRANSFER_PENDING_RECEIPT = "AXELAR_TRANSFER_PENDING_RECEIPT",
|
|
199
|
-
AXELAR_TRANSFER_SUCCESS = "AXELAR_TRANSFER_SUCCESS",
|
|
200
|
-
AXELAR_TRANSFER_FAILURE = "AXELAR_TRANSFER_FAILURE"
|
|
201
|
-
}
|
|
202
|
-
/**
|
|
203
|
-
* Axelar transfer type:
|
|
204
|
-
* * `AXELAR_TRANSFER_CONTRACT_CALL_WITH_TOKEN` - GMP contract call with token transfer type
|
|
205
|
-
* * `AXELAR_TRANSFER_SEND_TOKEN` - Send token transfer type
|
|
206
|
-
*/
|
|
207
|
-
declare enum AxelarTransferTypeJson {
|
|
208
|
-
AXELAR_TRANSFER_CONTRACT_CALL_WITH_TOKEN = "AXELAR_TRANSFER_CONTRACT_CALL_WITH_TOKEN",
|
|
209
|
-
AXELAR_TRANSFER_SEND_TOKEN = "AXELAR_TRANSFER_SEND_TOKEN"
|
|
210
|
-
}
|
|
211
436
|
interface AxelarTransferWrapperJson {
|
|
212
437
|
/** A transfer facilitated by the Axelar bridge */
|
|
213
438
|
axelar_transfer?: AxelarTransferJson;
|
|
@@ -274,21 +499,6 @@ interface CCTPTransferTxsJson {
|
|
|
274
499
|
send_tx?: ChainTransactionJson | null;
|
|
275
500
|
receive_tx?: ChainTransactionJson | null;
|
|
276
501
|
}
|
|
277
|
-
/**
|
|
278
|
-
* CCTP transfer state:
|
|
279
|
-
* * `CCTP_TRANSFER_UNKNOWN` - Unknown error
|
|
280
|
-
* * `CCTP_TRANSFER_SENT` - The burn transaction on the source chain has executed
|
|
281
|
-
* * `CCTP_TRANSFER_PENDING_CONFIRMATION` - CCTP transfer is pending confirmation by the cctp attestation api
|
|
282
|
-
* * `CCTP_TRANSFER_CONFIRMED` - CCTP transfer has been confirmed by the cctp attestation api
|
|
283
|
-
* * `CCTP_TRANSFER_RECEIVED` - CCTP transfer has been received at the destination chain
|
|
284
|
-
*/
|
|
285
|
-
declare enum CCTPTransferStateJson {
|
|
286
|
-
CCTP_TRANSFER_UNKNOWN = "CCTP_TRANSFER_UNKNOWN",
|
|
287
|
-
CCTP_TRANSFER_SENT = "CCTP_TRANSFER_SENT",
|
|
288
|
-
CCTP_TRANSFER_PENDING_CONFIRMATION = "CCTP_TRANSFER_PENDING_CONFIRMATION",
|
|
289
|
-
CCTP_TRANSFER_CONFIRMED = "CCTP_TRANSFER_CONFIRMED",
|
|
290
|
-
CCTP_TRANSFER_RECEIVED = "CCTP_TRANSFER_RECEIVED"
|
|
291
|
-
}
|
|
292
502
|
interface CCTPTransferWrapperJson {
|
|
293
503
|
/** A transfer facilitated by the CCTP bridge */
|
|
294
504
|
cctp_transfer?: CCTPTransferJson;
|
|
@@ -325,23 +535,6 @@ interface StargateTransferJson {
|
|
|
325
535
|
*/
|
|
326
536
|
bridge_id?: BridgeTypeJson;
|
|
327
537
|
}
|
|
328
|
-
/**
|
|
329
|
-
* Stargate transfer state:
|
|
330
|
-
* * `STARGATE_TRANSFER_UNKNOWN` - Unknown error
|
|
331
|
-
* * `STARGATE_TRANSFER_SENT` - The Stargate transfer transaction on the source chain has executed
|
|
332
|
-
* * `STARGATE_TRANSFER_PENDING_CONFIRMATION` - Stargate transfer is pending confirmation
|
|
333
|
-
* * `STARGATE_TRANSFER_CONFIRMED` - Stargate transfer has been confirmed
|
|
334
|
-
* * `STARGATE_TRANSFER_RECEIVED` - Stargate transfer has been received at the destination chain
|
|
335
|
-
* * `STARGATE_TRANSFER_FAILED` - Stargate transfer failed
|
|
336
|
-
*/
|
|
337
|
-
declare enum StargateTransferStateJson {
|
|
338
|
-
STARGATE_TRANSFER_UNKNOWN = "STARGATE_TRANSFER_UNKNOWN",
|
|
339
|
-
STARGATE_TRANSFER_SENT = "STARGATE_TRANSFER_SENT",
|
|
340
|
-
STARGATE_TRANSFER_PENDING_CONFIRMATION = "STARGATE_TRANSFER_PENDING_CONFIRMATION",
|
|
341
|
-
STARGATE_TRANSFER_CONFIRMED = "STARGATE_TRANSFER_CONFIRMED",
|
|
342
|
-
STARGATE_TRANSFER_RECEIVED = "STARGATE_TRANSFER_RECEIVED",
|
|
343
|
-
STARGATE_TRANSFER_FAILED = "STARGATE_TRANSFER_FAILED"
|
|
344
|
-
}
|
|
345
538
|
interface StargateTransferTxsJson {
|
|
346
539
|
send_tx?: ChainTransactionJson | null;
|
|
347
540
|
receive_tx?: ChainTransactionJson | null;
|
|
@@ -398,23 +591,6 @@ interface GoFastTransferJson {
|
|
|
398
591
|
/** Destination domain ID of the transfer */
|
|
399
592
|
destination_domain?: string;
|
|
400
593
|
}
|
|
401
|
-
/**
|
|
402
|
-
* GoFast transfer state:
|
|
403
|
-
* * `GO_FAST_TRANSFER_UNKNOWN` - Unknown state
|
|
404
|
-
* * `GO_FAST_TRANSFER_SENT` - Order submitted on source chain
|
|
405
|
-
* * `GO_FAST_POST_ACTION_FAILED` - Order filled, but subsequent action (e.g., swap) failed
|
|
406
|
-
* * `GO_FAST_TRANSFER_TIMEOUT` - Order timed out
|
|
407
|
-
* * `GO_FAST_TRANSFER_FILLED` - Order filled on destination chain
|
|
408
|
-
* * `GO_FAST_TRANSFER_REFUNDED` - Order refunded
|
|
409
|
-
*/
|
|
410
|
-
declare enum GoFastTransferStateJson {
|
|
411
|
-
GO_FAST_TRANSFER_UNKNOWN = "GO_FAST_TRANSFER_UNKNOWN",
|
|
412
|
-
GO_FAST_TRANSFER_SENT = "GO_FAST_TRANSFER_SENT",
|
|
413
|
-
GO_FAST_POST_ACTION_FAILED = "GO_FAST_POST_ACTION_FAILED",
|
|
414
|
-
GO_FAST_TRANSFER_TIMEOUT = "GO_FAST_TRANSFER_TIMEOUT",
|
|
415
|
-
GO_FAST_TRANSFER_FILLED = "GO_FAST_TRANSFER_FILLED",
|
|
416
|
-
GO_FAST_TRANSFER_REFUNDED = "GO_FAST_TRANSFER_REFUNDED"
|
|
417
|
-
}
|
|
418
594
|
interface GoFastTransferTxsJson {
|
|
419
595
|
order_submitted_tx?: ChainTransactionJson | null;
|
|
420
596
|
order_filled_tx?: ChainTransactionJson | null;
|
|
@@ -490,29 +666,6 @@ interface BridgeJson {
|
|
|
490
666
|
/** URI pointing to an image of the logo of the bridge */
|
|
491
667
|
logo_uri?: string;
|
|
492
668
|
}
|
|
493
|
-
/**
|
|
494
|
-
* Bridge Type:
|
|
495
|
-
* * `IBC` - IBC Bridge
|
|
496
|
-
* * `AXELAR` - Axelar Bridge
|
|
497
|
-
* * `CCTP` - CCTP Bridge
|
|
498
|
-
* * `HYPERLANE` - Hyperlane Bridge
|
|
499
|
-
* * `OPINIT` - Opinit Bridge
|
|
500
|
-
* * `GO_FAST` - Go Fast Bridge
|
|
501
|
-
* * `STARGATE` - Stargate Bridge
|
|
502
|
-
* * `LAYER_ZERO` - Layerzero Bridge
|
|
503
|
-
* * `EUREKA` - IBC Eureka Bridge
|
|
504
|
-
*/
|
|
505
|
-
declare enum BridgeTypeJson {
|
|
506
|
-
IBC = "IBC",
|
|
507
|
-
AXELAR = "AXELAR",
|
|
508
|
-
CCTP = "CCTP",
|
|
509
|
-
HYPERLANE = "HYPERLANE",
|
|
510
|
-
OPINIT = "OPINIT",
|
|
511
|
-
GO_FAST = "GO_FAST",
|
|
512
|
-
STARGATE = "STARGATE",
|
|
513
|
-
LAYER_ZERO = "LAYER_ZERO",
|
|
514
|
-
EUREKA = "EUREKA"
|
|
515
|
-
}
|
|
516
669
|
interface ChainJson {
|
|
517
670
|
/** Name of the chain */
|
|
518
671
|
chain_name: string;
|
|
@@ -539,11 +692,6 @@ interface ChainJson {
|
|
|
539
692
|
/** User friendly name of the chain */
|
|
540
693
|
pretty_name: string;
|
|
541
694
|
}
|
|
542
|
-
declare enum ChainTypeJson {
|
|
543
|
-
Cosmos = "cosmos",
|
|
544
|
-
Evm = "evm",
|
|
545
|
-
Svm = "svm"
|
|
546
|
-
}
|
|
547
695
|
interface ChainAffiliatesJson {
|
|
548
696
|
/** An array of affiliates that receives fees from a swap */
|
|
549
697
|
affiliates?: AffiliateJson[];
|
|
@@ -557,13 +705,6 @@ interface ContractCallWithTokenErrorJson {
|
|
|
557
705
|
*/
|
|
558
706
|
type?: ContractCallWithTokenErrorTypeJson;
|
|
559
707
|
}
|
|
560
|
-
/**
|
|
561
|
-
* ContractCallWithToken errors:
|
|
562
|
-
* * `CONTRACT_CALL_WITH_TOKEN_EXECUTION_ERROR` - Error occurred during the execute transaction
|
|
563
|
-
*/
|
|
564
|
-
declare enum ContractCallWithTokenErrorTypeJson {
|
|
565
|
-
CONTRACT_CALL_WITH_TOKEN_EXECUTION_ERROR = "CONTRACT_CALL_WITH_TOKEN_EXECUTION_ERROR"
|
|
566
|
-
}
|
|
567
708
|
interface ContractCallWithTokenTxsJson {
|
|
568
709
|
approve_tx?: ChainTransactionJson | null;
|
|
569
710
|
confirm_tx?: ChainTransactionJson | null;
|
|
@@ -595,8 +736,9 @@ interface ErrorDetailJson {
|
|
|
595
736
|
* Error detail:
|
|
596
737
|
* * `LOW_INFO_ERROR` - Not enough asset pricing information to determine the price safety of the route.
|
|
597
738
|
* * `BAD_PRICE_ERROR` - The execution price of the route deviates significantly from the current market price.
|
|
739
|
+
* * `HIGH_LOSS_ERROR` - The route would result in a USD loss exceeding the configured threshold and has been blocked.
|
|
598
740
|
*/
|
|
599
|
-
reason?: "LOW_INFO_ERROR" | "BAD_PRICE_ERROR";
|
|
741
|
+
reason?: "LOW_INFO_ERROR" | "BAD_PRICE_ERROR" | "HIGH_LOSS_ERROR";
|
|
600
742
|
}
|
|
601
743
|
interface ErrorJson {
|
|
602
744
|
/** Error code */
|
|
@@ -758,19 +900,6 @@ interface HyperlaneTransferInfoJson {
|
|
|
758
900
|
state: HyperlaneTransferStateJson;
|
|
759
901
|
txs: HyperlaneTransferTransactionsJson;
|
|
760
902
|
}
|
|
761
|
-
/**
|
|
762
|
-
* Hyperlane transfer state:
|
|
763
|
-
* * `HYPERLANE_TRANSFER_UNKNOWN` - Unknown error
|
|
764
|
-
* * `HYPERLANE_TRANSFER_SENT` - The Hyperlane transfer transaction on the source chain has executed
|
|
765
|
-
* * `HYPERLANE_TRANSFER_FAILED` - The Hyperlane transfer failed
|
|
766
|
-
* * `HYPERLANE_TRANSFER_RECEIVED` - The Hyperlane transfer has been received at the destination chain
|
|
767
|
-
*/
|
|
768
|
-
declare enum HyperlaneTransferStateJson {
|
|
769
|
-
HYPERLANE_TRANSFER_UNKNOWN = "HYPERLANE_TRANSFER_UNKNOWN",
|
|
770
|
-
HYPERLANE_TRANSFER_SENT = "HYPERLANE_TRANSFER_SENT",
|
|
771
|
-
HYPERLANE_TRANSFER_FAILED = "HYPERLANE_TRANSFER_FAILED",
|
|
772
|
-
HYPERLANE_TRANSFER_RECEIVED = "HYPERLANE_TRANSFER_RECEIVED"
|
|
773
|
-
}
|
|
774
903
|
interface HyperlaneTransferTransactionsJson {
|
|
775
904
|
send_tx?: ChainTransactionJson | null;
|
|
776
905
|
receive_tx?: ChainTransactionJson | null;
|
|
@@ -853,17 +982,6 @@ interface PacketErrorJson {
|
|
|
853
982
|
*/
|
|
854
983
|
type?: PacketErrorTypeJson;
|
|
855
984
|
}
|
|
856
|
-
/**
|
|
857
|
-
* Packet error type:
|
|
858
|
-
* * `PACKET_ERROR_UNKNOWN` - Unknown error
|
|
859
|
-
* * `PACKET_ERROR_ACKNOWLEDGEMENT` - Packet acknowledgement error
|
|
860
|
-
* * `PACKET_ERROR_TIMEOUT` - Packet timed out
|
|
861
|
-
*/
|
|
862
|
-
declare enum PacketErrorTypeJson {
|
|
863
|
-
PACKET_ERROR_UNKNOWN = "PACKET_ERROR_UNKNOWN",
|
|
864
|
-
PACKET_ERROR_ACKNOWLEDGEMENT = "PACKET_ERROR_ACKNOWLEDGEMENT",
|
|
865
|
-
PACKET_ERROR_TIMEOUT = "PACKET_ERROR_TIMEOUT"
|
|
866
|
-
}
|
|
867
985
|
interface ChainTransactionJson {
|
|
868
986
|
/** Chain ID the packet event occurs on */
|
|
869
987
|
chain_id?: string;
|
|
@@ -875,28 +993,6 @@ interface ChainTransactionJson {
|
|
|
875
993
|
on_chain_at?: string;
|
|
876
994
|
}
|
|
877
995
|
type PostHandlerJson = CosmWasmContractMsgWrapperJson | AutopilotMsgWrapperJson;
|
|
878
|
-
/**
|
|
879
|
-
* Recommendation reason:
|
|
880
|
-
* * `UNKNOWN` - Unknown recommendation reason.
|
|
881
|
-
* * `MOST_LIQUID` - Highest liquidity form of the transferred token on the destination chain.
|
|
882
|
-
* * `BASE_TOKEN` - The base token if the destination chain is the origin chain of the source token.
|
|
883
|
-
* * `DIRECT` - The token resulting from the least amount of transfers to the destination chain.
|
|
884
|
-
*/
|
|
885
|
-
declare enum ReasonJson {
|
|
886
|
-
UNKNOWN = "UNKNOWN",
|
|
887
|
-
MOST_LIQUID = "MOST_LIQUID",
|
|
888
|
-
BASE_TOKEN = "BASE_TOKEN",
|
|
889
|
-
DIRECT = "DIRECT"
|
|
890
|
-
}
|
|
891
|
-
/**
|
|
892
|
-
* Recommendation reason:
|
|
893
|
-
* * `LOW_INFO_WARNING` - Not enough asset pricing information to determine the price safety of the route.
|
|
894
|
-
* * `BAD_PRICE_WARNING` - The execution price of the route deviates significantly from the current market price.
|
|
895
|
-
*/
|
|
896
|
-
declare enum RoutePriceWarningTypeJson {
|
|
897
|
-
LOW_INFO_WARNING = "LOW_INFO_WARNING",
|
|
898
|
-
BAD_PRICE_WARNING = "BAD_PRICE_WARNING"
|
|
899
|
-
}
|
|
900
996
|
interface RouteJson {
|
|
901
997
|
/** Amount of source asset to be transferred or swapped */
|
|
902
998
|
amount_in: string;
|
|
@@ -955,13 +1051,6 @@ interface SendTokenErrorJson {
|
|
|
955
1051
|
*/
|
|
956
1052
|
type?: SendTokenErrorTypeJson;
|
|
957
1053
|
}
|
|
958
|
-
/**
|
|
959
|
-
* SendToken error types:
|
|
960
|
-
* * `SEND_TOKEN_EXECUTION_ERROR` - Error occurred during the execute transaction
|
|
961
|
-
*/
|
|
962
|
-
declare enum SendTokenErrorTypeJson {
|
|
963
|
-
SEND_TOKEN_EXECUTION_ERROR = "SEND_TOKEN_EXECUTION_ERROR"
|
|
964
|
-
}
|
|
965
1054
|
interface SendTokenTxsJson {
|
|
966
1055
|
confirm_tx?: ChainTransactionJson | null;
|
|
967
1056
|
error?: SendTokenErrorJson | null;
|
|
@@ -981,19 +1070,6 @@ interface StatusErrorJson {
|
|
|
981
1070
|
*/
|
|
982
1071
|
type?: StatusErrorTypeJson;
|
|
983
1072
|
}
|
|
984
|
-
/**
|
|
985
|
-
* Packet error types:
|
|
986
|
-
* * `STATUS_ERROR_UNKNOWN` - Unknown error
|
|
987
|
-
* * `STATUS_ERROR_TRANSACTION_EXECUTION` - Error was encountered during transaction execution
|
|
988
|
-
* * `STATUS_ERROR_INDEXING` - Error was encountered while indexing the transaction and packet data
|
|
989
|
-
* * `STATUS_ERROR_TRANSFER` - The transfer failed to complete successfully
|
|
990
|
-
*/
|
|
991
|
-
declare enum StatusErrorTypeJson {
|
|
992
|
-
STATUS_ERROR_UNKNOWN = "STATUS_ERROR_UNKNOWN",
|
|
993
|
-
STATUS_ERROR_TRANSACTION_EXECUTION = "STATUS_ERROR_TRANSACTION_EXECUTION",
|
|
994
|
-
STATUS_ERROR_INDEXING = "STATUS_ERROR_INDEXING",
|
|
995
|
-
STATUS_ERROR_TRANSFER = "STATUS_ERROR_TRANSFER"
|
|
996
|
-
}
|
|
997
1073
|
type SwapJson = (SwapInWrapperJson | SwapOutWrapperJson | SmartSwapInWrapperJson) & {
|
|
998
1074
|
/** Estimated total affiliate fee generated by the swap */
|
|
999
1075
|
estimated_affiliate_fee?: string;
|
|
@@ -1096,24 +1172,6 @@ interface TransactionExecutionErrorDetailsJson {
|
|
|
1096
1172
|
/** Error message */
|
|
1097
1173
|
message?: string;
|
|
1098
1174
|
}
|
|
1099
|
-
/**
|
|
1100
|
-
* Transaction state:
|
|
1101
|
-
* * `STATE_SUBMITTED` - The initial transaction has been submitted to Skip Go API but not observed on chain yet
|
|
1102
|
-
* * `STATE_PENDING` - The initial transaction has been observed on chain, and there are still pending actions
|
|
1103
|
-
* * `STATE_COMPLETED_SUCCESS` - The route has completed successfully and the user has their tokens on the destination. (indicated by `transfer_asset_release`)
|
|
1104
|
-
* * `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.
|
|
1105
|
-
* (Again, `transfer_asset_release` indicates where the tokens are)
|
|
1106
|
-
* * `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.
|
|
1107
|
-
* * `STATE_PENDING_ERROR` - The overall transaction will fail, pending error propagation
|
|
1108
|
-
*/
|
|
1109
|
-
declare enum TransactionStateJson {
|
|
1110
|
-
STATE_SUBMITTED = "STATE_SUBMITTED",
|
|
1111
|
-
STATE_PENDING = "STATE_PENDING",
|
|
1112
|
-
STATE_ABANDONED = "STATE_ABANDONED",
|
|
1113
|
-
STATE_COMPLETED_SUCCESS = "STATE_COMPLETED_SUCCESS",
|
|
1114
|
-
STATE_COMPLETED_ERROR = "STATE_COMPLETED_ERROR",
|
|
1115
|
-
STATE_PENDING_ERROR = "STATE_PENDING_ERROR"
|
|
1116
|
-
}
|
|
1117
1175
|
/** A transfer facilitated by the OP Init bridge */
|
|
1118
1176
|
interface OPInitTransferJson {
|
|
1119
1177
|
/** Canonical chain-id of the source chain of the bridge transaction */
|
|
@@ -1164,32 +1222,6 @@ interface OPInitTransferTxsJson {
|
|
|
1164
1222
|
send_tx?: ChainTransactionJson | null;
|
|
1165
1223
|
receive_tx?: ChainTransactionJson | null;
|
|
1166
1224
|
}
|
|
1167
|
-
/**
|
|
1168
|
-
* OPInit transfer state:
|
|
1169
|
-
* * `OPINIT_TRANSFER_UNKNOWN` - Unknown error
|
|
1170
|
-
* * `OPINIT_TRANSFER_SENT` - The deposit transaction on the source chain has executed
|
|
1171
|
-
* * `OPINIT_TRANSFER_RECEIVED` - OPInit transfer has been received at the destination chain
|
|
1172
|
-
*/
|
|
1173
|
-
declare enum OPInitTransferStateJson {
|
|
1174
|
-
OPINIT_TRANSFER_UNKNOWN = "OPINIT_TRANSFER_UNKNOWN",
|
|
1175
|
-
OPINIT_TRANSFER_SENT = "OPINIT_TRANSFER_SENT",
|
|
1176
|
-
OPINIT_TRANSFER_RECEIVED = "OPINIT_TRANSFER_RECEIVED"
|
|
1177
|
-
}
|
|
1178
|
-
/**
|
|
1179
|
-
* LayerZero transfer state:
|
|
1180
|
-
* * `LAYER_ZERO_TRANSFER_UNKNOWN` - Unknown error
|
|
1181
|
-
* * `LAYER_ZERO_TRANSFER_SENT` - The transaction on the source chain has executed
|
|
1182
|
-
* * `LAYER_ZERO_TRANSFER_WAITING_FOR_COMPOSE` - The transfer has been delivered to the destination chain but there is an additional lz_compose transaction that still needs to be delivered before marking this transfer as LAYER_ZERO_TRANSFER_RECEIVED
|
|
1183
|
-
* * `LAYER_ZERO_TRANSFER_RECEIVED` - The transfer has been received at the destination chain
|
|
1184
|
-
* * `LAYER_ZERO_TRANSFER_FAILED` - The transfer has failed
|
|
1185
|
-
*/
|
|
1186
|
-
declare enum LayerZeroTransferStateJson {
|
|
1187
|
-
LAYER_ZERO_TRANSFER_UNKNOWN = "LAYER_ZERO_TRANSFER_UNKNOWN",
|
|
1188
|
-
LAYER_ZERO_TRANSFER_SENT = "LAYER_ZERO_TRANSFER_SENT",
|
|
1189
|
-
LAYER_ZERO_TRANSFER_WAITING_FOR_COMPOSE = "LAYER_ZERO_TRANSFER_WAITING_FOR_COMPOSE",
|
|
1190
|
-
LAYER_ZERO_TRANSFER_RECEIVED = "LAYER_ZERO_TRANSFER_RECEIVED",
|
|
1191
|
-
LAYER_ZERO_TRANSFER_FAILED = "LAYER_ZERO_TRANSFER_FAILED"
|
|
1192
|
-
}
|
|
1193
1225
|
/** A cross-chain transfer */
|
|
1194
1226
|
interface TransferJson {
|
|
1195
1227
|
/** Port to use to initiate the transfer */
|
|
@@ -1250,21 +1282,6 @@ interface TransferEventJson {
|
|
|
1250
1282
|
eureka_transfer?: EurekaTransferInfoJson;
|
|
1251
1283
|
layer_zero_transfer?: LayerZeroTransferInfoJson;
|
|
1252
1284
|
}
|
|
1253
|
-
/**
|
|
1254
|
-
* Transfer state:
|
|
1255
|
-
* * `TRANSFER_UNKNOWN` - Transfer state is not known.
|
|
1256
|
-
* * `TRANSFER_PENDING` - The send packet for the transfer has been committed and the transfer is pending.
|
|
1257
|
-
* * `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.
|
|
1258
|
-
* * `TRANSFER_SUCCESS` - The transfer has been successfully completed and will not revert.
|
|
1259
|
-
* * `TRANSFER_FAILURE`- The transfer has failed.
|
|
1260
|
-
*/
|
|
1261
|
-
declare enum TransferStateJson {
|
|
1262
|
-
TRANSFER_UNKNOWN = "TRANSFER_UNKNOWN",
|
|
1263
|
-
TRANSFER_PENDING = "TRANSFER_PENDING",
|
|
1264
|
-
TRANSFER_RECEIVED = "TRANSFER_RECEIVED",
|
|
1265
|
-
TRANSFER_SUCCESS = "TRANSFER_SUCCESS",
|
|
1266
|
-
TRANSFER_FAILURE = "TRANSFER_FAILURE"
|
|
1267
|
-
}
|
|
1268
1285
|
/** Indicates location and denom of transfer asset release. */
|
|
1269
1286
|
interface TransferAssetReleaseJson {
|
|
1270
1287
|
/** The chain ID of the chain that the transfer asset is released on. */
|
|
@@ -1441,22 +1458,6 @@ interface IbcCapabilitiesJson {
|
|
|
1441
1458
|
/** Whether the autopilot module is supported */
|
|
1442
1459
|
cosmos_autopilot?: boolean;
|
|
1443
1460
|
}
|
|
1444
|
-
/**
|
|
1445
|
-
* Fee type:
|
|
1446
|
-
* * SMART_RELAY - Fees for Smart relaying services.'
|
|
1447
|
-
*/
|
|
1448
|
-
declare enum FeeTypeJson {
|
|
1449
|
-
SMART_RELAY = "SMART_RELAY"
|
|
1450
|
-
}
|
|
1451
|
-
/**
|
|
1452
|
-
* Indicates whether the fee is deducted from the transfer amount or charged additionally.
|
|
1453
|
-
* - FEE_BEHAVIOR_DEDUCTED: Fee is subtracted from the transfer amount (default, typical for Cosmos chains)
|
|
1454
|
-
* - FEE_BEHAVIOR_ADDITIONAL: Fee is charged on top of the transfer amount (typical for EVM chains with native tokens)
|
|
1455
|
-
*/
|
|
1456
|
-
declare enum FeeBehaviorJson {
|
|
1457
|
-
FEE_BEHAVIOR_DEDUCTED = "FEE_BEHAVIOR_DEDUCTED",
|
|
1458
|
-
FEE_BEHAVIOR_ADDITIONAL = "FEE_BEHAVIOR_ADDITIONAL"
|
|
1459
|
-
}
|
|
1460
1461
|
interface FeeJson {
|
|
1461
1462
|
/**
|
|
1462
1463
|
* Fee type:
|