@skip-go/client 1.5.3-alpha.1 → 1.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/api/getAssets.cjs +5 -5
- package/dist/cjs/api/getAssetsBetweenChains.cjs +4 -4
- package/dist/cjs/api/getBridges.cjs +4 -4
- package/dist/cjs/api/getChains.cjs +4 -4
- package/dist/cjs/api/getVenues.cjs +4 -4
- package/dist/cjs/api/postAssetsFromSource.cjs +5 -5
- package/dist/cjs/api/postBalances.cjs +4 -4
- package/dist/cjs/api/postIbcOriginAssets.cjs +4 -4
- package/dist/cjs/api/postMessages.cjs +4 -4
- package/dist/cjs/api/postMessagesDirect.cjs +4 -4
- package/dist/cjs/api/postRecommendAssets.cjs +4 -4
- package/dist/cjs/api/postRoute.cjs +4 -4
- package/dist/cjs/api/postSubmitTransaction.cjs +4 -4
- package/dist/cjs/api/postTrackTransaction.cjs +4 -4
- package/dist/cjs/api/postTransactionStatus.cjs +4 -4
- package/dist/cjs/{chunk-HFEMNOJS.cjs → chunk-2QPPD3BB.cjs} +3 -0
- package/dist/cjs/{chunk-7SZZBUBD.cjs → chunk-2SA3OAIJ.cjs} +3 -3
- package/dist/cjs/{chunk-APJDSXWR.cjs → chunk-3RPOC3AX.cjs} +12 -12
- package/dist/cjs/chunk-4BWE7SOV.cjs +68 -0
- package/dist/cjs/{chunk-FF5UWES6.cjs → chunk-4GHUZDDP.cjs} +4 -4
- package/dist/cjs/{chunk-KM2D7PJL.cjs → chunk-4TBONPD6.cjs} +33 -33
- package/dist/cjs/chunk-5JS6DMVZ.cjs +214 -0
- package/dist/cjs/{chunk-NWD4MAMT.cjs → chunk-5KWNKICM.cjs} +4 -10
- package/dist/cjs/{chunk-I2FDWZZJ.cjs → chunk-67WZP4PA.cjs} +106 -807
- package/dist/cjs/{chunk-WKYP2NMS.cjs → chunk-6W2OIU3O.cjs} +15 -15
- package/dist/cjs/{chunk-PDTIT3JO.cjs → chunk-7CFJPJJ2.cjs} +22 -22
- package/dist/cjs/chunk-7HDLYDAS.cjs +55 -0
- package/dist/cjs/{chunk-AW6IQ7JH.cjs → chunk-A5S6SIYN.cjs} +2 -2
- package/dist/cjs/{chunk-ZBJZTBIW.cjs → chunk-ASDMDYTC.cjs} +2 -2
- package/dist/cjs/{chunk-QAHHTQ7V.cjs → chunk-ATW6UNT5.cjs} +4 -4
- package/dist/cjs/{chunk-PLO5CVGN.cjs → chunk-AUTOIM57.cjs} +2 -2
- package/dist/cjs/{chunk-KWH6S7PB.cjs → chunk-CK6CQWQU.cjs} +6 -6
- package/dist/cjs/{chunk-RC73RNNQ.cjs → chunk-EGFH6FEG.cjs} +4 -4
- package/dist/cjs/{chunk-T5EGKQAT.cjs → chunk-FCTBCHOT.cjs} +2 -2
- package/dist/cjs/{chunk-S3BKLN4L.cjs → chunk-IJIBMN2F.cjs} +2 -2
- package/dist/cjs/{chunk-262HFM6V.cjs → chunk-JRXPJ45U.cjs} +2 -2
- package/dist/cjs/chunk-KZOSEIWH.cjs +10 -0
- package/dist/cjs/{chunk-3M7YYWGL.cjs → chunk-MUJBB64F.cjs} +3 -7
- package/dist/cjs/{chunk-3NHW3XWK.cjs → chunk-NCFH5MGF.cjs} +2 -2
- package/dist/cjs/{chunk-DWOE6N5S.cjs → chunk-NM4PISTQ.cjs} +189 -188
- package/dist/cjs/{chunk-4MV4GLIA.cjs → chunk-OJISEAMX.cjs} +2 -2
- package/dist/cjs/{chunk-JWWJIJUE.cjs → chunk-PDNKS5R2.cjs} +2 -2
- package/dist/cjs/{chunk-RBM66GW6.cjs → chunk-UXW4XVHF.cjs} +2 -2
- package/dist/cjs/chunk-VEEDEDME.cjs +454 -0
- package/dist/cjs/{chunk-DLT6Q6RB.cjs → chunk-WOSAJSJB.cjs} +163 -149
- package/dist/cjs/{chunk-XCFPRLX3.cjs → chunk-WRTBZRHG.cjs} +161 -161
- package/dist/cjs/{chunk-BCX2D6TE.cjs → chunk-ZHV4J6EM.cjs} +55 -23
- package/dist/cjs/index.cjs +123 -115
- package/dist/cjs/public-functions/executeMultipleRoutes.cjs +19 -29
- package/dist/cjs/public-functions/executeRoute.cjs +19 -29
- 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 +6 -5
- package/dist/cjs/public-functions/getRecommendedGasPrice.cjs +8 -7
- package/dist/cjs/public-functions/getRouteWithGasOnReceive.cjs +33 -29
- package/dist/cjs/public-functions/getSigningStargateClient.cjs +6 -6
- package/dist/cjs/public-functions/setApiOptions.cjs +4 -4
- package/dist/cjs/public-functions/setClientOptions.cjs +7 -7
- package/dist/cjs/public-functions/subscribeToRouteStatus.cjs +9 -9
- package/dist/cjs/public-functions/validateCosmosGasBalance.cjs +10 -10
- package/dist/cjs/public-functions/waitForTransaction.cjs +10 -6
- package/dist/esm/api/getAssets.d.ts +1 -1
- package/dist/esm/api/getAssets.js +3 -3
- package/dist/esm/api/getAssetsBetweenChains.d.ts +1 -1
- package/dist/esm/api/getAssetsBetweenChains.js +3 -3
- package/dist/esm/api/getBridges.d.ts +1 -1
- package/dist/esm/api/getBridges.js +3 -3
- package/dist/esm/api/getChains.d.ts +1 -1
- package/dist/esm/api/getChains.js +3 -3
- package/dist/esm/api/getVenues.js +3 -3
- package/dist/esm/api/postAssetsFromSource.d.ts +1 -1
- package/dist/esm/api/postAssetsFromSource.js +4 -4
- package/dist/esm/api/postBalances.d.ts +2 -2
- package/dist/esm/api/postBalances.js +3 -3
- package/dist/esm/api/postIbcOriginAssets.js +3 -3
- package/dist/esm/api/postMessages.d.ts +2 -2
- package/dist/esm/api/postMessages.js +3 -3
- package/dist/esm/api/postMessagesDirect.d.ts +1 -1
- package/dist/esm/api/postMessagesDirect.js +3 -3
- package/dist/esm/api/postRecommendAssets.d.ts +1 -1
- package/dist/esm/api/postRecommendAssets.js +3 -3
- package/dist/esm/api/postRoute.d.ts +2 -2
- package/dist/esm/api/postRoute.js +3 -3
- package/dist/esm/api/postSubmitTransaction.d.ts +2 -2
- package/dist/esm/api/postSubmitTransaction.js +3 -3
- package/dist/esm/api/postTrackTransaction.d.ts +2 -2
- package/dist/esm/api/postTrackTransaction.js +3 -3
- package/dist/esm/api/postTransactionStatus.d.ts +72 -68
- package/dist/esm/api/postTransactionStatus.js +3 -3
- package/dist/esm/{callbacks-C-KUJnDv.d.ts → callbacks-CZNSHCBb.d.ts} +5 -5
- package/dist/esm/chunk-22LYQHMA.js +53 -0
- package/dist/esm/{chunk-YLVUKXLR.js → chunk-3JHLVPRG.js} +1 -1
- package/dist/esm/chunk-763YPOJQ.js +431 -0
- package/dist/esm/chunk-7OHBD7I6.js +212 -0
- package/dist/esm/{chunk-FNTPI2AV.js → chunk-A5NZMSTI.js} +1 -1
- package/dist/esm/{chunk-QRKO56DH.js → chunk-BJKCMEMJ.js} +3 -8
- package/dist/esm/chunk-E4NRDAVO.js +65 -0
- package/dist/esm/{chunk-HDW6XFWX.js → chunk-ETBJVFQP.js} +1 -1
- package/dist/esm/{chunk-UIDIKXMB.js → chunk-F2LQB2DP.js} +6 -5
- package/dist/esm/{chunk-VGCTTJO7.js → chunk-F66EKL3W.js} +3 -0
- package/dist/esm/{chunk-V7VKYD4J.js → chunk-G63PICMU.js} +2 -2
- package/dist/esm/{chunk-KNXMSLOB.js → chunk-GLH7IRLX.js} +2 -2
- package/dist/esm/{chunk-RFJYCJK4.js → chunk-HNU2Y3JI.js} +1 -1
- package/dist/esm/{chunk-QL423UEF.js → chunk-HP5EMWC6.js} +163 -149
- package/dist/esm/{chunk-MYGJGC62.js → chunk-J24LYWJE.js} +1 -1
- package/dist/esm/{chunk-JYYCFKB4.js → chunk-KS764SOZ.js} +15 -15
- package/dist/esm/{chunk-SFWTQBQT.js → chunk-KXS5UH7E.js} +4 -4
- package/dist/esm/{chunk-VWOMKMH2.js → chunk-KZKAL5ZN.js} +1 -1
- package/dist/esm/{chunk-IKWC55JU.js → chunk-LAGER3PR.js} +61 -740
- package/dist/esm/{chunk-3WFXBPS2.js → chunk-N4PTRCNT.js} +1 -1
- package/dist/esm/{chunk-IHSSWY3M.js → chunk-P36PE4CR.js} +1 -1
- package/dist/esm/{chunk-UBVBVJPY.js → chunk-QYXGDTUU.js} +1 -1
- package/dist/esm/{chunk-QO2CYYF5.js → chunk-RTDD7HZ3.js} +4 -7
- package/dist/esm/chunk-SWYON2RG.js +7 -0
- package/dist/esm/{chunk-AUNRER4I.js → chunk-SXBG57J3.js} +1 -1
- package/dist/esm/{chunk-HELQO7PA.js → chunk-TGTOO2ZQ.js} +2 -2
- package/dist/esm/{chunk-6M7N6EAO.js → chunk-TON3V7SK.js} +14 -14
- package/dist/esm/{chunk-KXQ2ASHQ.js → chunk-UHCKOKBM.js} +1 -1
- package/dist/esm/{chunk-YGQ4NKTM.js → chunk-UN46DUOV.js} +1 -1
- package/dist/esm/{chunk-2PWROHHX.js → chunk-VMEHGKH7.js} +2 -2
- package/dist/esm/{chunk-5IXH2QPF.js → chunk-WRPS6WK2.js} +52 -20
- package/dist/esm/{chunk-44IX6KPJ.js → chunk-XNU3TKKM.js} +1 -1
- package/dist/esm/{client-types-CGMuZ3zo.d.ts → client-types-BX_0924O.d.ts} +1 -1
- package/dist/esm/{generateApi-D_-Gso-x.d.ts → generateApi-Clc85Kxw.d.ts} +1 -1
- package/dist/esm/index.d.ts +264 -261
- package/dist/esm/index.js +32 -28
- package/dist/esm/public-functions/executeMultipleRoutes.d.ts +4 -4
- package/dist/esm/public-functions/executeMultipleRoutes.js +18 -28
- package/dist/esm/public-functions/executeRoute.d.ts +4 -4
- package/dist/esm/public-functions/executeRoute.js +18 -28
- 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 +5 -4
- package/dist/esm/public-functions/getRecommendedGasPrice.js +7 -6
- package/dist/esm/public-functions/getRouteWithGasOnReceive.d.ts +1 -1
- package/dist/esm/public-functions/getRouteWithGasOnReceive.js +32 -28
- package/dist/esm/public-functions/getSigningStargateClient.js +5 -5
- package/dist/esm/public-functions/setApiOptions.d.ts +1 -1
- package/dist/esm/public-functions/setApiOptions.js +3 -3
- package/dist/esm/public-functions/setClientOptions.d.ts +4 -4
- package/dist/esm/public-functions/setClientOptions.js +6 -6
- package/dist/esm/public-functions/subscribeToRouteStatus.d.ts +4 -4
- package/dist/esm/public-functions/subscribeToRouteStatus.js +5 -5
- package/dist/esm/public-functions/validateCosmosGasBalance.d.ts +4 -4
- package/dist/esm/public-functions/validateCosmosGasBalance.js +9 -9
- package/dist/esm/public-functions/waitForTransaction.d.ts +712 -74
- package/dist/esm/public-functions/waitForTransaction.js +5 -5
- package/dist/esm/{setClientOptions-C8g92xTm.d.ts → setClientOptions-DD5Mzkw_.d.ts} +3 -3
- package/dist/esm/{swaggerTypes-B_jKfpvz.d.ts → swaggerTypes-Dr4I6vW2.d.ts} +260 -256
- package/package.json +5 -5
- package/dist/cjs/chunk-4NGHNHAS.cjs +0 -46
- package/dist/esm/chunk-TNIGHYH2.js +0 -44
|
@@ -1,3 +1,256 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Indicates whether the fee is deducted from the transfer amount or charged additionally.
|
|
3
|
+
* - FEE_BEHAVIOR_DEDUCTED: Fee is subtracted from the transfer amount (default, typical for Cosmos chains)
|
|
4
|
+
* - FEE_BEHAVIOR_ADDITIONAL: Fee is charged on top of the transfer amount (typical for EVM chains with native tokens)
|
|
5
|
+
*/
|
|
6
|
+
declare enum FeeBehavior {
|
|
7
|
+
FEE_BEHAVIOR_DEDUCTED = "FEE_BEHAVIOR_DEDUCTED",
|
|
8
|
+
FEE_BEHAVIOR_ADDITIONAL = "FEE_BEHAVIOR_ADDITIONAL"
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Fee type:
|
|
12
|
+
* * SMART_RELAY - Fees for Smart relaying services.'
|
|
13
|
+
*/
|
|
14
|
+
declare enum FeeType {
|
|
15
|
+
SMART_RELAY = "SMART_RELAY"
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Transfer state:
|
|
19
|
+
* * `TRANSFER_UNKNOWN` - Transfer state is not known.
|
|
20
|
+
* * `TRANSFER_PENDING` - The send packet for the transfer has been committed and the transfer is pending.
|
|
21
|
+
* * `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.
|
|
22
|
+
* * `TRANSFER_SUCCESS` - The transfer has been successfully completed and will not revert.
|
|
23
|
+
* * `TRANSFER_FAILURE`- The transfer has failed.
|
|
24
|
+
*/
|
|
25
|
+
declare enum TransferState {
|
|
26
|
+
TRANSFER_UNKNOWN = "TRANSFER_UNKNOWN",
|
|
27
|
+
TRANSFER_PENDING = "TRANSFER_PENDING",
|
|
28
|
+
TRANSFER_RECEIVED = "TRANSFER_RECEIVED",
|
|
29
|
+
TRANSFER_SUCCESS = "TRANSFER_SUCCESS",
|
|
30
|
+
TRANSFER_FAILURE = "TRANSFER_FAILURE"
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* LayerZero transfer state:
|
|
34
|
+
* * `LAYER_ZERO_TRANSFER_UNKNOWN` - Unknown error
|
|
35
|
+
* * `LAYER_ZERO_TRANSFER_SENT` - The transaction on the source chain has executed
|
|
36
|
+
* * `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
|
|
37
|
+
* * `LAYER_ZERO_TRANSFER_RECEIVED` - The transfer has been received at the destination chain
|
|
38
|
+
* * `LAYER_ZERO_TRANSFER_FAILED` - The transfer has failed
|
|
39
|
+
*/
|
|
40
|
+
declare enum LayerZeroTransferState {
|
|
41
|
+
LAYER_ZERO_TRANSFER_UNKNOWN = "LAYER_ZERO_TRANSFER_UNKNOWN",
|
|
42
|
+
LAYER_ZERO_TRANSFER_SENT = "LAYER_ZERO_TRANSFER_SENT",
|
|
43
|
+
LAYER_ZERO_TRANSFER_WAITING_FOR_COMPOSE = "LAYER_ZERO_TRANSFER_WAITING_FOR_COMPOSE",
|
|
44
|
+
LAYER_ZERO_TRANSFER_RECEIVED = "LAYER_ZERO_TRANSFER_RECEIVED",
|
|
45
|
+
LAYER_ZERO_TRANSFER_FAILED = "LAYER_ZERO_TRANSFER_FAILED"
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* OPInit transfer state:
|
|
49
|
+
* * `OPINIT_TRANSFER_UNKNOWN` - Unknown error
|
|
50
|
+
* * `OPINIT_TRANSFER_SENT` - The deposit transaction on the source chain has executed
|
|
51
|
+
* * `OPINIT_TRANSFER_RECEIVED` - OPInit transfer has been received at the destination chain
|
|
52
|
+
*/
|
|
53
|
+
declare enum OPInitTransferState {
|
|
54
|
+
OPINIT_TRANSFER_UNKNOWN = "OPINIT_TRANSFER_UNKNOWN",
|
|
55
|
+
OPINIT_TRANSFER_SENT = "OPINIT_TRANSFER_SENT",
|
|
56
|
+
OPINIT_TRANSFER_RECEIVED = "OPINIT_TRANSFER_RECEIVED"
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Transaction state:
|
|
60
|
+
* * `STATE_SUBMITTED` - The initial transaction has been submitted to Skip Go API but not observed on chain yet
|
|
61
|
+
* * `STATE_PENDING` - The initial transaction has been observed on chain, and there are still pending actions
|
|
62
|
+
* * `STATE_COMPLETED_SUCCESS` - The route has completed successfully and the user has their tokens on the destination. (indicated by `transfer_asset_release`)
|
|
63
|
+
* * `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.
|
|
64
|
+
* (Again, `transfer_asset_release` indicates where the tokens are)
|
|
65
|
+
* * `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.
|
|
66
|
+
* * `STATE_PENDING_ERROR` - The overall transaction will fail, pending error propagation
|
|
67
|
+
*/
|
|
68
|
+
declare enum TransactionState {
|
|
69
|
+
STATE_SUBMITTED = "STATE_SUBMITTED",
|
|
70
|
+
STATE_PENDING = "STATE_PENDING",
|
|
71
|
+
STATE_ABANDONED = "STATE_ABANDONED",
|
|
72
|
+
STATE_COMPLETED_SUCCESS = "STATE_COMPLETED_SUCCESS",
|
|
73
|
+
STATE_COMPLETED_ERROR = "STATE_COMPLETED_ERROR",
|
|
74
|
+
STATE_PENDING_ERROR = "STATE_PENDING_ERROR"
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Packet error types:
|
|
78
|
+
* * `STATUS_ERROR_UNKNOWN` - Unknown error
|
|
79
|
+
* * `STATUS_ERROR_TRANSACTION_EXECUTION` - Error was encountered during transaction execution
|
|
80
|
+
* * `STATUS_ERROR_INDEXING` - Error was encountered while indexing the transaction and packet data
|
|
81
|
+
* * `STATUS_ERROR_TRANSFER` - The transfer failed to complete successfully
|
|
82
|
+
*/
|
|
83
|
+
declare enum StatusErrorType {
|
|
84
|
+
STATUS_ERROR_UNKNOWN = "STATUS_ERROR_UNKNOWN",
|
|
85
|
+
STATUS_ERROR_TRANSACTION_EXECUTION = "STATUS_ERROR_TRANSACTION_EXECUTION",
|
|
86
|
+
STATUS_ERROR_INDEXING = "STATUS_ERROR_INDEXING",
|
|
87
|
+
STATUS_ERROR_TRANSFER = "STATUS_ERROR_TRANSFER"
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* SendToken error types:
|
|
91
|
+
* * `SEND_TOKEN_EXECUTION_ERROR` - Error occurred during the execute transaction
|
|
92
|
+
*/
|
|
93
|
+
declare enum SendTokenErrorType {
|
|
94
|
+
SEND_TOKEN_EXECUTION_ERROR = "SEND_TOKEN_EXECUTION_ERROR"
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Recommendation reason:
|
|
98
|
+
* * `LOW_INFO_WARNING` - Not enough asset pricing information to determine the price safety of the route.
|
|
99
|
+
* * `BAD_PRICE_WARNING` - The execution price of the route deviates significantly from the current market price.
|
|
100
|
+
*/
|
|
101
|
+
declare enum RoutePriceWarningType {
|
|
102
|
+
LOW_INFO_WARNING = "LOW_INFO_WARNING",
|
|
103
|
+
BAD_PRICE_WARNING = "BAD_PRICE_WARNING"
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Recommendation reason:
|
|
107
|
+
* * `UNKNOWN` - Unknown recommendation reason.
|
|
108
|
+
* * `MOST_LIQUID` - Highest liquidity form of the transferred token on the destination chain.
|
|
109
|
+
* * `BASE_TOKEN` - The base token if the destination chain is the origin chain of the source token.
|
|
110
|
+
* * `DIRECT` - The token resulting from the least amount of transfers to the destination chain.
|
|
111
|
+
*/
|
|
112
|
+
declare enum Reason {
|
|
113
|
+
UNKNOWN = "UNKNOWN",
|
|
114
|
+
MOST_LIQUID = "MOST_LIQUID",
|
|
115
|
+
BASE_TOKEN = "BASE_TOKEN",
|
|
116
|
+
DIRECT = "DIRECT"
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* Packet error type:
|
|
120
|
+
* * `PACKET_ERROR_UNKNOWN` - Unknown error
|
|
121
|
+
* * `PACKET_ERROR_ACKNOWLEDGEMENT` - Packet acknowledgement error
|
|
122
|
+
* * `PACKET_ERROR_TIMEOUT` - Packet timed out
|
|
123
|
+
*/
|
|
124
|
+
declare enum PacketErrorType {
|
|
125
|
+
PACKET_ERROR_UNKNOWN = "PACKET_ERROR_UNKNOWN",
|
|
126
|
+
PACKET_ERROR_ACKNOWLEDGEMENT = "PACKET_ERROR_ACKNOWLEDGEMENT",
|
|
127
|
+
PACKET_ERROR_TIMEOUT = "PACKET_ERROR_TIMEOUT"
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* Hyperlane transfer state:
|
|
131
|
+
* * `HYPERLANE_TRANSFER_UNKNOWN` - Unknown error
|
|
132
|
+
* * `HYPERLANE_TRANSFER_SENT` - The Hyperlane transfer transaction on the source chain has executed
|
|
133
|
+
* * `HYPERLANE_TRANSFER_FAILED` - The Hyperlane transfer failed
|
|
134
|
+
* * `HYPERLANE_TRANSFER_RECEIVED` - The Hyperlane transfer has been received at the destination chain
|
|
135
|
+
*/
|
|
136
|
+
declare enum HyperlaneTransferState {
|
|
137
|
+
HYPERLANE_TRANSFER_UNKNOWN = "HYPERLANE_TRANSFER_UNKNOWN",
|
|
138
|
+
HYPERLANE_TRANSFER_SENT = "HYPERLANE_TRANSFER_SENT",
|
|
139
|
+
HYPERLANE_TRANSFER_FAILED = "HYPERLANE_TRANSFER_FAILED",
|
|
140
|
+
HYPERLANE_TRANSFER_RECEIVED = "HYPERLANE_TRANSFER_RECEIVED"
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* ContractCallWithToken errors:
|
|
144
|
+
* * `CONTRACT_CALL_WITH_TOKEN_EXECUTION_ERROR` - Error occurred during the execute transaction
|
|
145
|
+
*/
|
|
146
|
+
declare enum ContractCallWithTokenErrorType {
|
|
147
|
+
CONTRACT_CALL_WITH_TOKEN_EXECUTION_ERROR = "CONTRACT_CALL_WITH_TOKEN_EXECUTION_ERROR"
|
|
148
|
+
}
|
|
149
|
+
declare enum ChainType {
|
|
150
|
+
Cosmos = "cosmos",
|
|
151
|
+
Evm = "evm",
|
|
152
|
+
Svm = "svm"
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* Bridge Type:
|
|
156
|
+
* * `IBC` - IBC Bridge
|
|
157
|
+
* * `AXELAR` - Axelar Bridge
|
|
158
|
+
* * `CCTP` - CCTP Bridge
|
|
159
|
+
* * `HYPERLANE` - Hyperlane Bridge
|
|
160
|
+
* * `OPINIT` - Opinit Bridge
|
|
161
|
+
* * `GO_FAST` - Go Fast Bridge
|
|
162
|
+
* * `STARGATE` - Stargate Bridge
|
|
163
|
+
* * `LAYER_ZERO` - Layerzero Bridge
|
|
164
|
+
* * `EUREKA` - IBC Eureka Bridge
|
|
165
|
+
*/
|
|
166
|
+
declare enum BridgeType {
|
|
167
|
+
IBC = "IBC",
|
|
168
|
+
AXELAR = "AXELAR",
|
|
169
|
+
CCTP = "CCTP",
|
|
170
|
+
HYPERLANE = "HYPERLANE",
|
|
171
|
+
OPINIT = "OPINIT",
|
|
172
|
+
GO_FAST = "GO_FAST",
|
|
173
|
+
STARGATE = "STARGATE",
|
|
174
|
+
LAYER_ZERO = "LAYER_ZERO",
|
|
175
|
+
EUREKA = "EUREKA"
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* GoFast transfer state:
|
|
179
|
+
* * `GO_FAST_TRANSFER_UNKNOWN` - Unknown state
|
|
180
|
+
* * `GO_FAST_TRANSFER_SENT` - Order submitted on source chain
|
|
181
|
+
* * `GO_FAST_POST_ACTION_FAILED` - Order filled, but subsequent action (e.g., swap) failed
|
|
182
|
+
* * `GO_FAST_TRANSFER_TIMEOUT` - Order timed out
|
|
183
|
+
* * `GO_FAST_TRANSFER_FILLED` - Order filled on destination chain
|
|
184
|
+
* * `GO_FAST_TRANSFER_REFUNDED` - Order refunded
|
|
185
|
+
*/
|
|
186
|
+
declare enum GoFastTransferState {
|
|
187
|
+
GO_FAST_TRANSFER_UNKNOWN = "GO_FAST_TRANSFER_UNKNOWN",
|
|
188
|
+
GO_FAST_TRANSFER_SENT = "GO_FAST_TRANSFER_SENT",
|
|
189
|
+
GO_FAST_POST_ACTION_FAILED = "GO_FAST_POST_ACTION_FAILED",
|
|
190
|
+
GO_FAST_TRANSFER_TIMEOUT = "GO_FAST_TRANSFER_TIMEOUT",
|
|
191
|
+
GO_FAST_TRANSFER_FILLED = "GO_FAST_TRANSFER_FILLED",
|
|
192
|
+
GO_FAST_TRANSFER_REFUNDED = "GO_FAST_TRANSFER_REFUNDED"
|
|
193
|
+
}
|
|
194
|
+
/**
|
|
195
|
+
* Stargate transfer state:
|
|
196
|
+
* * `STARGATE_TRANSFER_UNKNOWN` - Unknown error
|
|
197
|
+
* * `STARGATE_TRANSFER_SENT` - The Stargate transfer transaction on the source chain has executed
|
|
198
|
+
* * `STARGATE_TRANSFER_PENDING_CONFIRMATION` - Stargate transfer is pending confirmation
|
|
199
|
+
* * `STARGATE_TRANSFER_CONFIRMED` - Stargate transfer has been confirmed
|
|
200
|
+
* * `STARGATE_TRANSFER_RECEIVED` - Stargate transfer has been received at the destination chain
|
|
201
|
+
* * `STARGATE_TRANSFER_FAILED` - Stargate transfer failed
|
|
202
|
+
*/
|
|
203
|
+
declare enum StargateTransferState {
|
|
204
|
+
STARGATE_TRANSFER_UNKNOWN = "STARGATE_TRANSFER_UNKNOWN",
|
|
205
|
+
STARGATE_TRANSFER_SENT = "STARGATE_TRANSFER_SENT",
|
|
206
|
+
STARGATE_TRANSFER_PENDING_CONFIRMATION = "STARGATE_TRANSFER_PENDING_CONFIRMATION",
|
|
207
|
+
STARGATE_TRANSFER_CONFIRMED = "STARGATE_TRANSFER_CONFIRMED",
|
|
208
|
+
STARGATE_TRANSFER_RECEIVED = "STARGATE_TRANSFER_RECEIVED",
|
|
209
|
+
STARGATE_TRANSFER_FAILED = "STARGATE_TRANSFER_FAILED"
|
|
210
|
+
}
|
|
211
|
+
/**
|
|
212
|
+
* CCTP transfer state:
|
|
213
|
+
* * `CCTP_TRANSFER_UNKNOWN` - Unknown error
|
|
214
|
+
* * `CCTP_TRANSFER_SENT` - The burn transaction on the source chain has executed
|
|
215
|
+
* * `CCTP_TRANSFER_PENDING_CONFIRMATION` - CCTP transfer is pending confirmation by the cctp attestation api
|
|
216
|
+
* * `CCTP_TRANSFER_CONFIRMED` - CCTP transfer has been confirmed by the cctp attestation api
|
|
217
|
+
* * `CCTP_TRANSFER_RECEIVED` - CCTP transfer has been received at the destination chain
|
|
218
|
+
*/
|
|
219
|
+
declare enum CCTPTransferState {
|
|
220
|
+
CCTP_TRANSFER_UNKNOWN = "CCTP_TRANSFER_UNKNOWN",
|
|
221
|
+
CCTP_TRANSFER_SENT = "CCTP_TRANSFER_SENT",
|
|
222
|
+
CCTP_TRANSFER_PENDING_CONFIRMATION = "CCTP_TRANSFER_PENDING_CONFIRMATION",
|
|
223
|
+
CCTP_TRANSFER_CONFIRMED = "CCTP_TRANSFER_CONFIRMED",
|
|
224
|
+
CCTP_TRANSFER_RECEIVED = "CCTP_TRANSFER_RECEIVED"
|
|
225
|
+
}
|
|
226
|
+
/**
|
|
227
|
+
* Axelar transfer type:
|
|
228
|
+
* * `AXELAR_TRANSFER_CONTRACT_CALL_WITH_TOKEN` - GMP contract call with token transfer type
|
|
229
|
+
* * `AXELAR_TRANSFER_SEND_TOKEN` - Send token transfer type
|
|
230
|
+
*/
|
|
231
|
+
declare enum AxelarTransferType {
|
|
232
|
+
AXELAR_TRANSFER_CONTRACT_CALL_WITH_TOKEN = "AXELAR_TRANSFER_CONTRACT_CALL_WITH_TOKEN",
|
|
233
|
+
AXELAR_TRANSFER_SEND_TOKEN = "AXELAR_TRANSFER_SEND_TOKEN"
|
|
234
|
+
}
|
|
235
|
+
/**
|
|
236
|
+
* Axelar transfer state:
|
|
237
|
+
* * `AXELAR_TRANSFER_UNKNOWN` - Unknown error
|
|
238
|
+
* * `AXELAR_TRANSFER_PENDING_CONFIRMATION` - Axelar transfer is pending confirmation
|
|
239
|
+
* * `AXELAR_TRANSFER_PENDING_RECEIPT` - Axelar transfer is pending receipt at destination
|
|
240
|
+
* * `AXELAR_TRANSFER_SUCCESS` - Axelar transfer succeeded and assets have been received
|
|
241
|
+
* * `AXELAR_TRANSFER_FAILURE` - Axelar transfer failed
|
|
242
|
+
*/
|
|
243
|
+
declare enum AxelarTransferState {
|
|
244
|
+
AXELAR_TRANSFER_UNKNOWN = "AXELAR_TRANSFER_UNKNOWN",
|
|
245
|
+
AXELAR_TRANSFER_PENDING_CONFIRMATION = "AXELAR_TRANSFER_PENDING_CONFIRMATION",
|
|
246
|
+
AXELAR_TRANSFER_PENDING_RECEIPT = "AXELAR_TRANSFER_PENDING_RECEIPT",
|
|
247
|
+
AXELAR_TRANSFER_SUCCESS = "AXELAR_TRANSFER_SUCCESS",
|
|
248
|
+
AXELAR_TRANSFER_FAILURE = "AXELAR_TRANSFER_FAILURE"
|
|
249
|
+
}
|
|
250
|
+
declare enum AutopilotAction {
|
|
251
|
+
LIQUID_STAKE = "LIQUID_STAKE",
|
|
252
|
+
CLAIM = "CLAIM"
|
|
253
|
+
}
|
|
1
254
|
interface AcknowledgementErrorDetails {
|
|
2
255
|
/** Error code */
|
|
3
256
|
code?: number;
|
|
@@ -63,10 +316,6 @@ interface AssetRecommendation {
|
|
|
63
316
|
/** Reason for recommending the asset */
|
|
64
317
|
reason?: Reason;
|
|
65
318
|
}
|
|
66
|
-
declare enum AutopilotAction {
|
|
67
|
-
LIQUID_STAKE = "LIQUID_STAKE",
|
|
68
|
-
CLAIM = "CLAIM"
|
|
69
|
-
}
|
|
70
319
|
interface AutopilotMsg {
|
|
71
320
|
action?: AutopilotAction;
|
|
72
321
|
receiver?: string;
|
|
@@ -139,7 +388,9 @@ interface AxelarTransferInfo {
|
|
|
139
388
|
* * `AXELAR_TRANSFER_FAILURE` - Axelar transfer failed
|
|
140
389
|
*/
|
|
141
390
|
state: AxelarTransferState;
|
|
142
|
-
txs:
|
|
391
|
+
txs: {
|
|
392
|
+
contractCallWithTokenTxs?: ContractCallWithTokenTxs;
|
|
393
|
+
} | SendTokenTxs;
|
|
143
394
|
/**
|
|
144
395
|
* Axelar transfer type:
|
|
145
396
|
* * `AXELAR_TRANSFER_CONTRACT_CALL_WITH_TOKEN` - GMP contract call with token transfer type
|
|
@@ -147,30 +398,6 @@ interface AxelarTransferInfo {
|
|
|
147
398
|
*/
|
|
148
399
|
type?: AxelarTransferType;
|
|
149
400
|
}
|
|
150
|
-
/**
|
|
151
|
-
* Axelar transfer state:
|
|
152
|
-
* * `AXELAR_TRANSFER_UNKNOWN` - Unknown error
|
|
153
|
-
* * `AXELAR_TRANSFER_PENDING_CONFIRMATION` - Axelar transfer is pending confirmation
|
|
154
|
-
* * `AXELAR_TRANSFER_PENDING_RECEIPT` - Axelar transfer is pending receipt at destination
|
|
155
|
-
* * `AXELAR_TRANSFER_SUCCESS` - Axelar transfer succeeded and assets have been received
|
|
156
|
-
* * `AXELAR_TRANSFER_FAILURE` - Axelar transfer failed
|
|
157
|
-
*/
|
|
158
|
-
declare enum AxelarTransferState {
|
|
159
|
-
AXELAR_TRANSFER_UNKNOWN = "AXELAR_TRANSFER_UNKNOWN",
|
|
160
|
-
AXELAR_TRANSFER_PENDING_CONFIRMATION = "AXELAR_TRANSFER_PENDING_CONFIRMATION",
|
|
161
|
-
AXELAR_TRANSFER_PENDING_RECEIPT = "AXELAR_TRANSFER_PENDING_RECEIPT",
|
|
162
|
-
AXELAR_TRANSFER_SUCCESS = "AXELAR_TRANSFER_SUCCESS",
|
|
163
|
-
AXELAR_TRANSFER_FAILURE = "AXELAR_TRANSFER_FAILURE"
|
|
164
|
-
}
|
|
165
|
-
/**
|
|
166
|
-
* Axelar transfer type:
|
|
167
|
-
* * `AXELAR_TRANSFER_CONTRACT_CALL_WITH_TOKEN` - GMP contract call with token transfer type
|
|
168
|
-
* * `AXELAR_TRANSFER_SEND_TOKEN` - Send token transfer type
|
|
169
|
-
*/
|
|
170
|
-
declare enum AxelarTransferType {
|
|
171
|
-
AXELAR_TRANSFER_CONTRACT_CALL_WITH_TOKEN = "AXELAR_TRANSFER_CONTRACT_CALL_WITH_TOKEN",
|
|
172
|
-
AXELAR_TRANSFER_SEND_TOKEN = "AXELAR_TRANSFER_SEND_TOKEN"
|
|
173
|
-
}
|
|
174
401
|
interface AxelarTransferWrapper {
|
|
175
402
|
/** A transfer facilitated by the Axelar bridge */
|
|
176
403
|
axelarTransfer?: AxelarTransfer;
|
|
@@ -237,21 +464,6 @@ interface CCTPTransferTxs {
|
|
|
237
464
|
sendTx?: ChainTransaction;
|
|
238
465
|
receiveTx?: ChainTransaction;
|
|
239
466
|
}
|
|
240
|
-
/**
|
|
241
|
-
* CCTP transfer state:
|
|
242
|
-
* * `CCTP_TRANSFER_UNKNOWN` - Unknown error
|
|
243
|
-
* * `CCTP_TRANSFER_SENT` - The burn transaction on the source chain has executed
|
|
244
|
-
* * `CCTP_TRANSFER_PENDING_CONFIRMATION` - CCTP transfer is pending confirmation by the cctp attestation api
|
|
245
|
-
* * `CCTP_TRANSFER_CONFIRMED` - CCTP transfer has been confirmed by the cctp attestation api
|
|
246
|
-
* * `CCTP_TRANSFER_RECEIVED` - CCTP transfer has been received at the destination chain
|
|
247
|
-
*/
|
|
248
|
-
declare enum CCTPTransferState {
|
|
249
|
-
CCTP_TRANSFER_UNKNOWN = "CCTP_TRANSFER_UNKNOWN",
|
|
250
|
-
CCTP_TRANSFER_SENT = "CCTP_TRANSFER_SENT",
|
|
251
|
-
CCTP_TRANSFER_PENDING_CONFIRMATION = "CCTP_TRANSFER_PENDING_CONFIRMATION",
|
|
252
|
-
CCTP_TRANSFER_CONFIRMED = "CCTP_TRANSFER_CONFIRMED",
|
|
253
|
-
CCTP_TRANSFER_RECEIVED = "CCTP_TRANSFER_RECEIVED"
|
|
254
|
-
}
|
|
255
467
|
interface CCTPTransferWrapper {
|
|
256
468
|
/** A transfer facilitated by the CCTP bridge */
|
|
257
469
|
cctpTransfer?: CCTPTransfer;
|
|
@@ -288,23 +500,6 @@ interface StargateTransfer {
|
|
|
288
500
|
*/
|
|
289
501
|
bridgeId?: BridgeType;
|
|
290
502
|
}
|
|
291
|
-
/**
|
|
292
|
-
* Stargate transfer state:
|
|
293
|
-
* * `STARGATE_TRANSFER_UNKNOWN` - Unknown error
|
|
294
|
-
* * `STARGATE_TRANSFER_SENT` - The Stargate transfer transaction on the source chain has executed
|
|
295
|
-
* * `STARGATE_TRANSFER_PENDING_CONFIRMATION` - Stargate transfer is pending confirmation
|
|
296
|
-
* * `STARGATE_TRANSFER_CONFIRMED` - Stargate transfer has been confirmed
|
|
297
|
-
* * `STARGATE_TRANSFER_RECEIVED` - Stargate transfer has been received at the destination chain
|
|
298
|
-
* * `STARGATE_TRANSFER_FAILED` - Stargate transfer failed
|
|
299
|
-
*/
|
|
300
|
-
declare enum StargateTransferState {
|
|
301
|
-
STARGATE_TRANSFER_UNKNOWN = "STARGATE_TRANSFER_UNKNOWN",
|
|
302
|
-
STARGATE_TRANSFER_SENT = "STARGATE_TRANSFER_SENT",
|
|
303
|
-
STARGATE_TRANSFER_PENDING_CONFIRMATION = "STARGATE_TRANSFER_PENDING_CONFIRMATION",
|
|
304
|
-
STARGATE_TRANSFER_CONFIRMED = "STARGATE_TRANSFER_CONFIRMED",
|
|
305
|
-
STARGATE_TRANSFER_RECEIVED = "STARGATE_TRANSFER_RECEIVED",
|
|
306
|
-
STARGATE_TRANSFER_FAILED = "STARGATE_TRANSFER_FAILED"
|
|
307
|
-
}
|
|
308
503
|
interface StargateTransferTxs {
|
|
309
504
|
sendTx?: ChainTransaction;
|
|
310
505
|
receiveTx?: ChainTransaction;
|
|
@@ -361,23 +556,6 @@ interface GoFastTransfer {
|
|
|
361
556
|
/** Destination domain ID of the transfer */
|
|
362
557
|
destinationDomain?: string;
|
|
363
558
|
}
|
|
364
|
-
/**
|
|
365
|
-
* GoFast transfer state:
|
|
366
|
-
* * `GO_FAST_TRANSFER_UNKNOWN` - Unknown state
|
|
367
|
-
* * `GO_FAST_TRANSFER_SENT` - Order submitted on source chain
|
|
368
|
-
* * `GO_FAST_POST_ACTION_FAILED` - Order filled, but subsequent action (e.g., swap) failed
|
|
369
|
-
* * `GO_FAST_TRANSFER_TIMEOUT` - Order timed out
|
|
370
|
-
* * `GO_FAST_TRANSFER_FILLED` - Order filled on destination chain
|
|
371
|
-
* * `GO_FAST_TRANSFER_REFUNDED` - Order refunded
|
|
372
|
-
*/
|
|
373
|
-
declare enum GoFastTransferState {
|
|
374
|
-
GO_FAST_TRANSFER_UNKNOWN = "GO_FAST_TRANSFER_UNKNOWN",
|
|
375
|
-
GO_FAST_TRANSFER_SENT = "GO_FAST_TRANSFER_SENT",
|
|
376
|
-
GO_FAST_POST_ACTION_FAILED = "GO_FAST_POST_ACTION_FAILED",
|
|
377
|
-
GO_FAST_TRANSFER_TIMEOUT = "GO_FAST_TRANSFER_TIMEOUT",
|
|
378
|
-
GO_FAST_TRANSFER_FILLED = "GO_FAST_TRANSFER_FILLED",
|
|
379
|
-
GO_FAST_TRANSFER_REFUNDED = "GO_FAST_TRANSFER_REFUNDED"
|
|
380
|
-
}
|
|
381
559
|
interface GoFastTransferTxs {
|
|
382
560
|
orderSubmittedTx?: ChainTransaction;
|
|
383
561
|
orderFilledTx?: ChainTransaction;
|
|
@@ -453,29 +631,6 @@ interface Bridge {
|
|
|
453
631
|
/** URI pointing to an image of the logo of the bridge */
|
|
454
632
|
logoUri?: string;
|
|
455
633
|
}
|
|
456
|
-
/**
|
|
457
|
-
* Bridge Type:
|
|
458
|
-
* * `IBC` - IBC Bridge
|
|
459
|
-
* * `AXELAR` - Axelar Bridge
|
|
460
|
-
* * `CCTP` - CCTP Bridge
|
|
461
|
-
* * `HYPERLANE` - Hyperlane Bridge
|
|
462
|
-
* * `OPINIT` - Opinit Bridge
|
|
463
|
-
* * `GO_FAST` - Go Fast Bridge
|
|
464
|
-
* * `STARGATE` - Stargate Bridge
|
|
465
|
-
* * `LAYER_ZERO` - Layerzero Bridge
|
|
466
|
-
* * `EUREKA` - IBC Eureka Bridge
|
|
467
|
-
*/
|
|
468
|
-
declare enum BridgeType {
|
|
469
|
-
IBC = "IBC",
|
|
470
|
-
AXELAR = "AXELAR",
|
|
471
|
-
CCTP = "CCTP",
|
|
472
|
-
HYPERLANE = "HYPERLANE",
|
|
473
|
-
OPINIT = "OPINIT",
|
|
474
|
-
GO_FAST = "GO_FAST",
|
|
475
|
-
STARGATE = "STARGATE",
|
|
476
|
-
LAYER_ZERO = "LAYER_ZERO",
|
|
477
|
-
EUREKA = "EUREKA"
|
|
478
|
-
}
|
|
479
634
|
interface Chain {
|
|
480
635
|
/** Name of the chain */
|
|
481
636
|
chainName: string;
|
|
@@ -502,11 +657,6 @@ interface Chain {
|
|
|
502
657
|
/** User friendly name of the chain */
|
|
503
658
|
prettyName: string;
|
|
504
659
|
}
|
|
505
|
-
declare enum ChainType {
|
|
506
|
-
Cosmos = "cosmos",
|
|
507
|
-
Evm = "evm",
|
|
508
|
-
Svm = "svm"
|
|
509
|
-
}
|
|
510
660
|
interface ChainAffiliates {
|
|
511
661
|
/** An array of affiliates that receives fees from a swap */
|
|
512
662
|
affiliates?: Affiliate[];
|
|
@@ -520,13 +670,6 @@ interface ContractCallWithTokenError {
|
|
|
520
670
|
*/
|
|
521
671
|
type?: ContractCallWithTokenErrorType;
|
|
522
672
|
}
|
|
523
|
-
/**
|
|
524
|
-
* ContractCallWithToken errors:
|
|
525
|
-
* * `CONTRACT_CALL_WITH_TOKEN_EXECUTION_ERROR` - Error occurred during the execute transaction
|
|
526
|
-
*/
|
|
527
|
-
declare enum ContractCallWithTokenErrorType {
|
|
528
|
-
CONTRACT_CALL_WITH_TOKEN_EXECUTION_ERROR = "CONTRACT_CALL_WITH_TOKEN_EXECUTION_ERROR"
|
|
529
|
-
}
|
|
530
673
|
interface ContractCallWithTokenTxs {
|
|
531
674
|
approveTx?: ChainTransaction;
|
|
532
675
|
confirmTx?: ChainTransaction;
|
|
@@ -558,8 +701,9 @@ interface ErrorDetail {
|
|
|
558
701
|
* Error detail:
|
|
559
702
|
* * `LOW_INFO_ERROR` - Not enough asset pricing information to determine the price safety of the route.
|
|
560
703
|
* * `BAD_PRICE_ERROR` - The execution price of the route deviates significantly from the current market price.
|
|
704
|
+
* * `HIGH_LOSS_ERROR` - The route would result in a USD loss exceeding the configured threshold and has been blocked.
|
|
561
705
|
*/
|
|
562
|
-
reason?: "LOW_INFO_ERROR" | "BAD_PRICE_ERROR";
|
|
706
|
+
reason?: "LOW_INFO_ERROR" | "BAD_PRICE_ERROR" | "HIGH_LOSS_ERROR";
|
|
563
707
|
}
|
|
564
708
|
interface Error {
|
|
565
709
|
/** Error code */
|
|
@@ -721,19 +865,6 @@ interface HyperlaneTransferInfo {
|
|
|
721
865
|
state: HyperlaneTransferState;
|
|
722
866
|
txs: HyperlaneTransferTransactions;
|
|
723
867
|
}
|
|
724
|
-
/**
|
|
725
|
-
* Hyperlane transfer state:
|
|
726
|
-
* * `HYPERLANE_TRANSFER_UNKNOWN` - Unknown error
|
|
727
|
-
* * `HYPERLANE_TRANSFER_SENT` - The Hyperlane transfer transaction on the source chain has executed
|
|
728
|
-
* * `HYPERLANE_TRANSFER_FAILED` - The Hyperlane transfer failed
|
|
729
|
-
* * `HYPERLANE_TRANSFER_RECEIVED` - The Hyperlane transfer has been received at the destination chain
|
|
730
|
-
*/
|
|
731
|
-
declare enum HyperlaneTransferState {
|
|
732
|
-
HYPERLANE_TRANSFER_UNKNOWN = "HYPERLANE_TRANSFER_UNKNOWN",
|
|
733
|
-
HYPERLANE_TRANSFER_SENT = "HYPERLANE_TRANSFER_SENT",
|
|
734
|
-
HYPERLANE_TRANSFER_FAILED = "HYPERLANE_TRANSFER_FAILED",
|
|
735
|
-
HYPERLANE_TRANSFER_RECEIVED = "HYPERLANE_TRANSFER_RECEIVED"
|
|
736
|
-
}
|
|
737
868
|
interface HyperlaneTransferTransactions {
|
|
738
869
|
sendTx?: ChainTransaction;
|
|
739
870
|
receiveTx?: ChainTransaction;
|
|
@@ -816,17 +947,6 @@ interface PacketError {
|
|
|
816
947
|
*/
|
|
817
948
|
type?: PacketErrorType;
|
|
818
949
|
}
|
|
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
|
-
declare enum PacketErrorType {
|
|
826
|
-
PACKET_ERROR_UNKNOWN = "PACKET_ERROR_UNKNOWN",
|
|
827
|
-
PACKET_ERROR_ACKNOWLEDGEMENT = "PACKET_ERROR_ACKNOWLEDGEMENT",
|
|
828
|
-
PACKET_ERROR_TIMEOUT = "PACKET_ERROR_TIMEOUT"
|
|
829
|
-
}
|
|
830
950
|
interface ChainTransaction {
|
|
831
951
|
/** Chain ID the packet event occurs on */
|
|
832
952
|
chainId?: string;
|
|
@@ -838,28 +958,6 @@ interface ChainTransaction {
|
|
|
838
958
|
onChainAt?: string;
|
|
839
959
|
}
|
|
840
960
|
type PostHandler = CosmWasmContractMsgWrapper | AutopilotMsgWrapper;
|
|
841
|
-
/**
|
|
842
|
-
* Recommendation reason:
|
|
843
|
-
* * `UNKNOWN` - Unknown recommendation reason.
|
|
844
|
-
* * `MOST_LIQUID` - Highest liquidity form of the transferred token on the destination chain.
|
|
845
|
-
* * `BASE_TOKEN` - The base token if the destination chain is the origin chain of the source token.
|
|
846
|
-
* * `DIRECT` - The token resulting from the least amount of transfers to the destination chain.
|
|
847
|
-
*/
|
|
848
|
-
declare enum Reason {
|
|
849
|
-
UNKNOWN = "UNKNOWN",
|
|
850
|
-
MOST_LIQUID = "MOST_LIQUID",
|
|
851
|
-
BASE_TOKEN = "BASE_TOKEN",
|
|
852
|
-
DIRECT = "DIRECT"
|
|
853
|
-
}
|
|
854
|
-
/**
|
|
855
|
-
* Recommendation reason:
|
|
856
|
-
* * `LOW_INFO_WARNING` - Not enough asset pricing information to determine the price safety of the route.
|
|
857
|
-
* * `BAD_PRICE_WARNING` - The execution price of the route deviates significantly from the current market price.
|
|
858
|
-
*/
|
|
859
|
-
declare enum RoutePriceWarningType {
|
|
860
|
-
LOW_INFO_WARNING = "LOW_INFO_WARNING",
|
|
861
|
-
BAD_PRICE_WARNING = "BAD_PRICE_WARNING"
|
|
862
|
-
}
|
|
863
961
|
interface Route {
|
|
864
962
|
/** Amount of source asset to be transferred or swapped */
|
|
865
963
|
amountIn: string;
|
|
@@ -918,13 +1016,6 @@ interface SendTokenError {
|
|
|
918
1016
|
*/
|
|
919
1017
|
type?: SendTokenErrorType;
|
|
920
1018
|
}
|
|
921
|
-
/**
|
|
922
|
-
* SendToken error types:
|
|
923
|
-
* * `SEND_TOKEN_EXECUTION_ERROR` - Error occurred during the execute transaction
|
|
924
|
-
*/
|
|
925
|
-
declare enum SendTokenErrorType {
|
|
926
|
-
SEND_TOKEN_EXECUTION_ERROR = "SEND_TOKEN_EXECUTION_ERROR"
|
|
927
|
-
}
|
|
928
1019
|
interface SendTokenTxs {
|
|
929
1020
|
confirmTx?: ChainTransaction;
|
|
930
1021
|
error?: SendTokenError;
|
|
@@ -944,19 +1035,6 @@ interface StatusError {
|
|
|
944
1035
|
*/
|
|
945
1036
|
type?: StatusErrorType;
|
|
946
1037
|
}
|
|
947
|
-
/**
|
|
948
|
-
* Packet error types:
|
|
949
|
-
* * `STATUS_ERROR_UNKNOWN` - Unknown error
|
|
950
|
-
* * `STATUS_ERROR_TRANSACTION_EXECUTION` - Error was encountered during transaction execution
|
|
951
|
-
* * `STATUS_ERROR_INDEXING` - Error was encountered while indexing the transaction and packet data
|
|
952
|
-
* * `STATUS_ERROR_TRANSFER` - The transfer failed to complete successfully
|
|
953
|
-
*/
|
|
954
|
-
declare enum StatusErrorType {
|
|
955
|
-
STATUS_ERROR_UNKNOWN = "STATUS_ERROR_UNKNOWN",
|
|
956
|
-
STATUS_ERROR_TRANSACTION_EXECUTION = "STATUS_ERROR_TRANSACTION_EXECUTION",
|
|
957
|
-
STATUS_ERROR_INDEXING = "STATUS_ERROR_INDEXING",
|
|
958
|
-
STATUS_ERROR_TRANSFER = "STATUS_ERROR_TRANSFER"
|
|
959
|
-
}
|
|
960
1038
|
type Swap = (SwapInWrapper | SwapOutWrapper | SmartSwapInWrapper) & {
|
|
961
1039
|
/** Estimated total affiliate fee generated by the swap */
|
|
962
1040
|
estimatedAffiliateFee?: string;
|
|
@@ -1059,24 +1137,6 @@ interface TransactionExecutionErrorDetails {
|
|
|
1059
1137
|
/** Error message */
|
|
1060
1138
|
message?: string;
|
|
1061
1139
|
}
|
|
1062
|
-
/**
|
|
1063
|
-
* Transaction state:
|
|
1064
|
-
* * `STATE_SUBMITTED` - The initial transaction has been submitted to Skip Go API but not observed on chain yet
|
|
1065
|
-
* * `STATE_PENDING` - The initial transaction has been observed on chain, and there are still pending actions
|
|
1066
|
-
* * `STATE_COMPLETED_SUCCESS` - The route has completed successfully and the user has their tokens on the destination. (indicated by `transfer_asset_release`)
|
|
1067
|
-
* * `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.
|
|
1068
|
-
* (Again, `transfer_asset_release` indicates where the tokens are)
|
|
1069
|
-
* * `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.
|
|
1070
|
-
* * `STATE_PENDING_ERROR` - The overall transaction will fail, pending error propagation
|
|
1071
|
-
*/
|
|
1072
|
-
declare enum TransactionState {
|
|
1073
|
-
STATE_SUBMITTED = "STATE_SUBMITTED",
|
|
1074
|
-
STATE_PENDING = "STATE_PENDING",
|
|
1075
|
-
STATE_ABANDONED = "STATE_ABANDONED",
|
|
1076
|
-
STATE_COMPLETED_SUCCESS = "STATE_COMPLETED_SUCCESS",
|
|
1077
|
-
STATE_COMPLETED_ERROR = "STATE_COMPLETED_ERROR",
|
|
1078
|
-
STATE_PENDING_ERROR = "STATE_PENDING_ERROR"
|
|
1079
|
-
}
|
|
1080
1140
|
/** A transfer facilitated by the OP Init bridge */
|
|
1081
1141
|
interface OPInitTransfer {
|
|
1082
1142
|
/** Canonical chain-id of the source chain of the bridge transaction */
|
|
@@ -1127,32 +1187,6 @@ interface OPInitTransferTxs {
|
|
|
1127
1187
|
sendTx?: ChainTransaction;
|
|
1128
1188
|
receiveTx?: ChainTransaction;
|
|
1129
1189
|
}
|
|
1130
|
-
/**
|
|
1131
|
-
* OPInit transfer state:
|
|
1132
|
-
* * `OPINIT_TRANSFER_UNKNOWN` - Unknown error
|
|
1133
|
-
* * `OPINIT_TRANSFER_SENT` - The deposit transaction on the source chain has executed
|
|
1134
|
-
* * `OPINIT_TRANSFER_RECEIVED` - OPInit transfer has been received at the destination chain
|
|
1135
|
-
*/
|
|
1136
|
-
declare enum OPInitTransferState {
|
|
1137
|
-
OPINIT_TRANSFER_UNKNOWN = "OPINIT_TRANSFER_UNKNOWN",
|
|
1138
|
-
OPINIT_TRANSFER_SENT = "OPINIT_TRANSFER_SENT",
|
|
1139
|
-
OPINIT_TRANSFER_RECEIVED = "OPINIT_TRANSFER_RECEIVED"
|
|
1140
|
-
}
|
|
1141
|
-
/**
|
|
1142
|
-
* LayerZero transfer state:
|
|
1143
|
-
* * `LAYER_ZERO_TRANSFER_UNKNOWN` - Unknown error
|
|
1144
|
-
* * `LAYER_ZERO_TRANSFER_SENT` - The transaction on the source chain has executed
|
|
1145
|
-
* * `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
|
|
1146
|
-
* * `LAYER_ZERO_TRANSFER_RECEIVED` - The transfer has been received at the destination chain
|
|
1147
|
-
* * `LAYER_ZERO_TRANSFER_FAILED` - The transfer has failed
|
|
1148
|
-
*/
|
|
1149
|
-
declare enum LayerZeroTransferState {
|
|
1150
|
-
LAYER_ZERO_TRANSFER_UNKNOWN = "LAYER_ZERO_TRANSFER_UNKNOWN",
|
|
1151
|
-
LAYER_ZERO_TRANSFER_SENT = "LAYER_ZERO_TRANSFER_SENT",
|
|
1152
|
-
LAYER_ZERO_TRANSFER_WAITING_FOR_COMPOSE = "LAYER_ZERO_TRANSFER_WAITING_FOR_COMPOSE",
|
|
1153
|
-
LAYER_ZERO_TRANSFER_RECEIVED = "LAYER_ZERO_TRANSFER_RECEIVED",
|
|
1154
|
-
LAYER_ZERO_TRANSFER_FAILED = "LAYER_ZERO_TRANSFER_FAILED"
|
|
1155
|
-
}
|
|
1156
1190
|
/** A cross-chain transfer */
|
|
1157
1191
|
interface Transfer {
|
|
1158
1192
|
/** Port to use to initiate the transfer */
|
|
@@ -1213,21 +1247,6 @@ interface TransferEvent {
|
|
|
1213
1247
|
eurekaTransfer?: EurekaTransferInfo;
|
|
1214
1248
|
layerZeroTransfer?: LayerZeroTransferInfo;
|
|
1215
1249
|
}
|
|
1216
|
-
/**
|
|
1217
|
-
* Transfer state:
|
|
1218
|
-
* * `TRANSFER_UNKNOWN` - Transfer state is not known.
|
|
1219
|
-
* * `TRANSFER_PENDING` - The send packet for the transfer has been committed and the transfer is pending.
|
|
1220
|
-
* * `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.
|
|
1221
|
-
* * `TRANSFER_SUCCESS` - The transfer has been successfully completed and will not revert.
|
|
1222
|
-
* * `TRANSFER_FAILURE`- The transfer has failed.
|
|
1223
|
-
*/
|
|
1224
|
-
declare enum TransferState {
|
|
1225
|
-
TRANSFER_UNKNOWN = "TRANSFER_UNKNOWN",
|
|
1226
|
-
TRANSFER_PENDING = "TRANSFER_PENDING",
|
|
1227
|
-
TRANSFER_RECEIVED = "TRANSFER_RECEIVED",
|
|
1228
|
-
TRANSFER_SUCCESS = "TRANSFER_SUCCESS",
|
|
1229
|
-
TRANSFER_FAILURE = "TRANSFER_FAILURE"
|
|
1230
|
-
}
|
|
1231
1250
|
/** Indicates location and denom of transfer asset release. */
|
|
1232
1251
|
interface TransferAssetRelease {
|
|
1233
1252
|
/** The chain ID of the chain that the transfer asset is released on. */
|
|
@@ -1404,22 +1423,6 @@ interface IbcCapabilities {
|
|
|
1404
1423
|
/** Whether the autopilot module is supported */
|
|
1405
1424
|
cosmosAutopilot?: boolean;
|
|
1406
1425
|
}
|
|
1407
|
-
/**
|
|
1408
|
-
* Fee type:
|
|
1409
|
-
* * SMART_RELAY - Fees for Smart relaying services.'
|
|
1410
|
-
*/
|
|
1411
|
-
declare enum FeeType {
|
|
1412
|
-
SMART_RELAY = "SMART_RELAY"
|
|
1413
|
-
}
|
|
1414
|
-
/**
|
|
1415
|
-
* Indicates whether the fee is deducted from the transfer amount or charged additionally.
|
|
1416
|
-
* - FEE_BEHAVIOR_DEDUCTED: Fee is subtracted from the transfer amount (default, typical for Cosmos chains)
|
|
1417
|
-
* - FEE_BEHAVIOR_ADDITIONAL: Fee is charged on top of the transfer amount (typical for EVM chains with native tokens)
|
|
1418
|
-
*/
|
|
1419
|
-
declare enum FeeBehavior {
|
|
1420
|
-
FEE_BEHAVIOR_DEDUCTED = "FEE_BEHAVIOR_DEDUCTED",
|
|
1421
|
-
FEE_BEHAVIOR_ADDITIONAL = "FEE_BEHAVIOR_ADDITIONAL"
|
|
1422
|
-
}
|
|
1423
1426
|
interface Fee {
|
|
1424
1427
|
/**
|
|
1425
1428
|
* Fee type:
|
|
@@ -1846,6 +1849,7 @@ interface HttpResponse<D extends unknown, E extends unknown = unknown> extends R
|
|
|
1846
1849
|
type CancelToken = Symbol | string | number;
|
|
1847
1850
|
declare enum ContentType {
|
|
1848
1851
|
Json = "application/json",
|
|
1852
|
+
JsonApi = "application/vnd.api+json",
|
|
1849
1853
|
FormData = "multipart/form-data",
|
|
1850
1854
|
UrlEncoded = "application/x-www-form-urlencoded",
|
|
1851
1855
|
Text = "text/plain"
|
|
@@ -2040,4 +2044,4 @@ declare class Api<SecurityDataType extends unknown> extends HttpClient<SecurityD
|
|
|
2040
2044
|
fungibleAssetsBetweenChainsCreate: (data: AssetsBetweenChainsRequest, params?: RequestParams) => Promise<HttpResponse<FungibleAssetsBetweenChainsCreateResponse, Error>>;
|
|
2041
2045
|
}
|
|
2042
2046
|
|
|
2043
|
-
export { type
|
|
2047
|
+
export { type ContractCallWithTokenError as $, AxelarTransferType as A, BridgeType as B, ContractCallWithTokenErrorType as C, type StargateTransferTxs as D, type StargateTransferInfo as E, FeeBehavior as F, GoFastTransferState as G, HyperlaneTransferState as H, type StargateTransferWrapper as I, type GoFastTransfer as J, type GoFastTransferTxs as K, LayerZeroTransferState as L, type GoFastTransferInfo as M, type GoFastTransferWrapper as N, OPInitTransferState as O, PacketErrorType as P, type BalanceRequestChainEntry as Q, RoutePriceWarningType as R, StatusErrorType as S, TransferState as T, type BalanceResponseDenomEntry as U, type BalanceResponseChainEntry as V, type BankSend as W, type BankSendWrapper as X, type Bridge as Y, type Chain as Z, type ChainAffiliates as _, FeeType as a, type LayerZeroTransfer as a$, type ContractCallWithTokenTxs as a0, type CosmWasmContractMsg as a1, type CosmWasmContractMsgWrapper as a2, type Erc20Approval as a3, type ErrorDetail as a4, type Error as a5, type CosmosMsg as a6, type CosmosTx as a7, type CosmosTxWrapper as a8, type EvmSwap as a9, type SendTokenTxs as aA, type StatusError as aB, type Swap as aC, type SwapExactCoinIn as aD, type SwapExactCoinOut as aE, type SwapInWrapper as aF, type SwapOperation as aG, type SwapOutWrapper as aH, type SwapRoute as aI, type SmartSwapExactCoinIn as aJ, type SmartSwapOptions as aK, type SmartSwapInWrapper as aL, type SwapVenue as aM, type SwapWrapper as aN, type TransactionExecutionErrorDetails as aO, type OPInitTransfer as aP, type OPInitTransferWrapper as aQ, type OPInitTransferInfo as aR, type OPInitTransferTxs as aS, type Transfer as aT, type TransferEvent as aU, type TransferAssetRelease as aV, type TransferStatus as aW, type TransferWrapper as aX, type EurekaTransfer as aY, type EurekaTransferInfo as aZ, type EurekaTransferWrapper as a_, type EvmSwapWrapper as aa, type EvmTx as ab, type EvmTxWrapper as ac, type SvmTx as ad, type SvmTxWrapper as ae, type FeeAsset as af, type GoFastFee as ag, type GRPCStatusCode as ah, type HyperlaneTransfer as ai, type HyperlaneTransferInfo as aj, type HyperlaneTransferTransactions as ak, type HyperlaneTransferWrapper as al, type IBCTransferInfo as am, type Msg as an, type Tx as ao, type MultiChainMsg as ap, type MultiChainMsgWrapper as aq, type Operation as ar, type OptionalAsset as as, type LayerZeroTransferTransactions as at, type Packet as au, type PacketError as av, type ChainTransaction as aw, type PostHandler as ax, type Route as ay, type SendTokenError as az, TransactionState as b, type LayerZeroTransferInfo as b0, type LayerZeroTransferWrapper as b1, type RecommendationRequest as b2, type CosmosModuleSupport as b3, type IbcCapabilities as b4, type Fee as b5, type BalancesRequest as b6, type AssetsFromSourceRequest as b7, type MsgsRequest as b8, type MsgsDirectRequest as b9, type QueryParamsType as bA, type ResponseFormat as bB, type FullRequestParams as bC, type RequestParams as bD, type ApiConfig as bE, type HttpResponse as bF, ContentType as bG, HttpClient as bH, Api as bI, type RouteRequest as bJ, type AssetRecommendationsRequest as ba, type SubmitTxRequest as bb, type TrackTxRequest as bc, type TrackTxResponse as bd, type StatusTxResponse as be, type IbcOriginAssetsRequest as bf, type AssetsBetweenChainsRequest as bg, type ChainsRequest as bh, type ChainsResponse as bi, type BalancesResponse as bj, type BridgesResponse as bk, type VenuesRequest as bl, type VenuesResponse as bm, type AssetsRequest as bn, type AssetsResponse as bo, type AssetsFromSourceResponse as bp, type RouteResponse as bq, type MsgsResponse as br, type MsgsDirectResponse as bs, type AssetRecommendationsResponse as bt, type SubmitResponse as bu, type TrackResponse as bv, type StatusRequest as bw, type StatusResponse as bx, type IbcOriginAssetsResponse as by, type FungibleAssetsBetweenChainsCreateResponse as bz, SendTokenErrorType as c, Reason as d, ChainType as e, StargateTransferState as f, CCTPTransferState as g, AxelarTransferState as h, AutopilotAction as i, type AcknowledgementErrorDetails as j, type Affiliate as k, type ApiError as l, type Asset as m, type AssetBetweenChains as n, type AssetRecommendation as o, type AutopilotMsg as p, type AutopilotMsgWrapper as q, type AxelarTransfer as r, type AxelarTransferInfo as s, type AxelarTransferWrapper as t, type SmartRelayFeeQuote as u, type CCTPTransfer as v, type CCTPTransferInfo as w, type CCTPTransferTxs as x, type CCTPTransferWrapper as y, type StargateTransfer as z };
|