@skip-go/client 1.4.0 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{chunk-IDEJORRT.cjs → chunk-23YF4LFI.cjs} +30 -0
- package/dist/cjs/chunk-4YTACAVP.cjs +185 -0
- package/dist/cjs/{chunk-46VB6RQK.cjs → chunk-CUDPMOR6.cjs} +10 -3
- package/dist/cjs/chunk-GCJO6DZD.cjs +55 -0
- package/dist/cjs/{chunk-ZKBSNSHQ.cjs → chunk-HHZGD62Y.cjs} +120 -116
- package/dist/cjs/{chunk-ZAATXQBG.cjs → chunk-K4YAPDUE.cjs} +2 -2
- package/dist/cjs/{chunk-7MC3BVQN.cjs → chunk-UIQML2XG.cjs} +113 -28
- package/dist/cjs/chunk-VF65UG3E.cjs +214 -0
- package/dist/cjs/{chunk-Q43XCBMX.cjs → chunk-W3KF3V57.cjs} +4 -4
- package/dist/cjs/{chunk-6LA66667.cjs → chunk-X22PL5T7.cjs} +3 -3
- package/dist/cjs/index.cjs +26 -20
- package/dist/cjs/public-functions/executeMultipleRoutes.cjs +29 -0
- package/dist/cjs/public-functions/executeRoute.cjs +8 -7
- package/dist/cjs/public-functions/getFeeInfoForChain.cjs +3 -3
- package/dist/cjs/public-functions/getRecommendedGasPrice.cjs +4 -4
- package/dist/cjs/public-functions/getSigningStargateClient.cjs +3 -3
- package/dist/cjs/public-functions/setClientOptions.cjs +2 -2
- package/dist/cjs/public-functions/subscribeToRouteStatus.cjs +5 -5
- package/dist/cjs/public-functions/validateCosmosGasBalance.cjs +5 -5
- package/dist/esm/{callbacks-B3kjKg0v.d.ts → callbacks-CvqAtBJq.d.ts} +19 -64
- package/dist/esm/chunk-7RS3YIVC.js +53 -0
- package/dist/esm/chunk-AZALP3WR.js +212 -0
- package/dist/esm/{chunk-CIAOTO3M.js → chunk-CX5N7ZLJ.js} +1 -1
- package/dist/esm/chunk-IUYOY23L.js +180 -0
- package/dist/esm/{chunk-GHNH5QC3.js → chunk-JKN4E5VN.js} +9 -2
- package/dist/esm/{chunk-4RLJWCQR.js → chunk-KLGGCB73.js} +1 -1
- package/dist/esm/{chunk-KYDY7QRT.js → chunk-MPSXXWKL.js} +1 -1
- package/dist/esm/{chunk-BAJFQZDT.js → chunk-MTAS5XMN.js} +99 -96
- package/dist/esm/{chunk-RQ7DXNSS.js → chunk-VUXLWWLF.js} +113 -28
- package/dist/esm/{chunk-REWUSU53.js → chunk-WBZVMPPV.js} +30 -0
- package/dist/esm/client-types-Dk6ypWdO.d.ts +114 -0
- package/dist/esm/index.d.ts +4 -3
- package/dist/esm/index.js +12 -10
- package/dist/esm/public-functions/executeMultipleRoutes.d.ts +60 -0
- package/dist/esm/public-functions/executeMultipleRoutes.js +20 -0
- package/dist/esm/public-functions/executeRoute.d.ts +3 -3
- package/dist/esm/public-functions/executeRoute.js +7 -6
- package/dist/esm/public-functions/getEvmGasAmountForMessage.d.ts +4 -1
- package/dist/esm/public-functions/getFeeInfoForChain.js +2 -2
- package/dist/esm/public-functions/getRecommendedGasPrice.js +3 -3
- package/dist/esm/public-functions/getSigningStargateClient.js +2 -2
- package/dist/esm/public-functions/setClientOptions.d.ts +4 -2
- package/dist/esm/public-functions/setClientOptions.js +1 -1
- package/dist/esm/public-functions/subscribeToRouteStatus.d.ts +3 -3
- package/dist/esm/public-functions/subscribeToRouteStatus.js +1 -1
- package/dist/esm/public-functions/validateCosmosGasBalance.d.ts +5 -4
- package/dist/esm/public-functions/validateCosmosGasBalance.js +4 -4
- package/dist/esm/public-functions/waitForTransaction.d.ts +3 -3
- package/dist/esm/{setClientOptions-BTRwCbmt.d.ts → setClientOptions-BD8e7m2x.d.ts} +1 -1
- package/package.json +1 -1
- package/dist/cjs/chunk-VIG2BHYJ.cjs +0 -185
- package/dist/esm/chunk-3J6O2PVK.js +0 -180
- package/dist/esm/client-types-B7Fin0mq.d.ts +0 -61
|
@@ -2200,6 +2200,34 @@ var evmosAminoConverters = {
|
|
|
2200
2200
|
...AminoConverter5
|
|
2201
2201
|
};
|
|
2202
2202
|
var evmosProtoRegistry = [...registry2, ...registry3, ...registry4, ...registry5];
|
|
2203
|
+
|
|
2204
|
+
// src/codegen/initia/move/v1/tx.amino.ts
|
|
2205
|
+
var AminoConverter6 = {
|
|
2206
|
+
"/initia.move.v1.MsgExecute": {
|
|
2207
|
+
aminoType: "/initia.move.v1.MsgExecute",
|
|
2208
|
+
toAmino: MsgExecute.toAmino,
|
|
2209
|
+
fromAmino: MsgExecute.fromAmino
|
|
2210
|
+
}
|
|
2211
|
+
};
|
|
2212
|
+
|
|
2213
|
+
// src/codegen/initia/client.ts
|
|
2214
|
+
var initiaAminoConverters = {
|
|
2215
|
+
...AminoConverter6
|
|
2216
|
+
};
|
|
2217
|
+
|
|
2218
|
+
// src/codegen/opinit/ophost/v1/tx.amino.ts
|
|
2219
|
+
var AminoConverter7 = {
|
|
2220
|
+
"/opinit.ophost.v1.MsgInitiateTokenDeposit": {
|
|
2221
|
+
aminoType: "ophost/MsgInitiateTokenDeposit",
|
|
2222
|
+
toAmino: MsgInitiateTokenDeposit.toAmino,
|
|
2223
|
+
fromAmino: MsgInitiateTokenDeposit.fromAmino
|
|
2224
|
+
}
|
|
2225
|
+
};
|
|
2226
|
+
|
|
2227
|
+
// src/codegen/opinit/client.ts
|
|
2228
|
+
var opinitAminoConverters = {
|
|
2229
|
+
...AminoConverter7
|
|
2230
|
+
};
|
|
2203
2231
|
var setClientOptions = (options = {}) => {
|
|
2204
2232
|
ApiState.client = createRequestClient({
|
|
2205
2233
|
apiUrl: options.apiUrl || "https://api.skip.build",
|
|
@@ -2212,6 +2240,8 @@ var setClientOptions = (options = {}) => {
|
|
|
2212
2240
|
...createWasmAminoConverters(),
|
|
2213
2241
|
...circleAminoConverters,
|
|
2214
2242
|
...evmosAminoConverters,
|
|
2243
|
+
...initiaAminoConverters,
|
|
2244
|
+
...opinitAminoConverters,
|
|
2215
2245
|
...options.aminoTypes ?? {}
|
|
2216
2246
|
});
|
|
2217
2247
|
ClientState.registry = new Registry([
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { OfflineAminoSigner } from '@cosmjs/amino';
|
|
2
|
+
import { OfflineDirectSigner } from '@cosmjs/proto-signing';
|
|
3
|
+
import { StdFee, GasPrice, SignerData } from '@cosmjs/stargate';
|
|
4
|
+
import { WalletClient } from 'viem';
|
|
5
|
+
import { Adapter } from '@solana/wallet-adapter-base';
|
|
6
|
+
import { a3 as FeeAsset, L as ChainType, W as CosmosMsg } from './swaggerTypes-DDwqIjap.js';
|
|
7
|
+
import { TrackTxPollingProps } from './api/postTrackTransaction.js';
|
|
8
|
+
|
|
9
|
+
/** Common Types */
|
|
10
|
+
type UserAddress = {
|
|
11
|
+
chainId: string;
|
|
12
|
+
address: string;
|
|
13
|
+
};
|
|
14
|
+
type EndpointOptions = {
|
|
15
|
+
rpc?: string;
|
|
16
|
+
rest?: string;
|
|
17
|
+
};
|
|
18
|
+
type ValidateGasResult = {
|
|
19
|
+
error: null | string;
|
|
20
|
+
asset: FeeAsset | null;
|
|
21
|
+
fee: StdFee | null;
|
|
22
|
+
};
|
|
23
|
+
/** Signer Getters */
|
|
24
|
+
type SignerGetters = {
|
|
25
|
+
getEvmSigner?: (chainId: string) => Promise<WalletClient>;
|
|
26
|
+
getCosmosSigner?: (chainId: string) => Promise<(OfflineAminoSigner & OfflineDirectSigner) | OfflineAminoSigner | OfflineDirectSigner>;
|
|
27
|
+
getSvmSigner?: () => Promise<Adapter>;
|
|
28
|
+
};
|
|
29
|
+
/** Gas Options */
|
|
30
|
+
type GetFallbackGasAmount = (chainId: string, chainType: ChainType) => Promise<number | undefined>;
|
|
31
|
+
type GetGasPrice = (chainId: string, chainType: ChainType) => Promise<GasPrice | undefined>;
|
|
32
|
+
type GasOptions = {
|
|
33
|
+
/**
|
|
34
|
+
* If `getGasPrice` is undefined, or returns undefined, the router will attempt to set the recommended gas price
|
|
35
|
+
**/
|
|
36
|
+
getGasPrice?: GetGasPrice;
|
|
37
|
+
/**
|
|
38
|
+
* If `getFallbackGasAmount` is set, when router fails to simulate the gas amount, it will use the fallback gas amount
|
|
39
|
+
*/
|
|
40
|
+
getFallbackGasAmount?: GetFallbackGasAmount;
|
|
41
|
+
gasAmountMultiplier?: number;
|
|
42
|
+
};
|
|
43
|
+
type SignCosmosMessageOptionsBase = {
|
|
44
|
+
signerAddress: string;
|
|
45
|
+
chainId: string;
|
|
46
|
+
cosmosMsgs: CosmosMsg[];
|
|
47
|
+
fee: StdFee;
|
|
48
|
+
signerData: SignerData;
|
|
49
|
+
};
|
|
50
|
+
type SignCosmosMessageDirectOptions = SignCosmosMessageOptionsBase & {
|
|
51
|
+
signer: OfflineDirectSigner;
|
|
52
|
+
};
|
|
53
|
+
type SignCosmosMessageAminoOptions = SignCosmosMessageOptionsBase & {
|
|
54
|
+
signer: OfflineAminoSigner;
|
|
55
|
+
};
|
|
56
|
+
type TxResult = {
|
|
57
|
+
txHash: string;
|
|
58
|
+
chainId: string;
|
|
59
|
+
explorerLink?: string;
|
|
60
|
+
};
|
|
61
|
+
interface BaseSettings {
|
|
62
|
+
slippageTolerancePercent?: string;
|
|
63
|
+
simulate?: boolean;
|
|
64
|
+
/**
|
|
65
|
+
* Set allowance amount to max if EVM transaction requires allowance approval.
|
|
66
|
+
*/
|
|
67
|
+
useUnlimitedApproval?: boolean;
|
|
68
|
+
/**
|
|
69
|
+
/**
|
|
70
|
+
* If `skipApproval` is set to `true`, the router will bypass checking whether
|
|
71
|
+
* the signer has granted approval for the specified token contract on an EVM chain.
|
|
72
|
+
* This can be useful if approval has already been handled externally or there are race conditions.
|
|
73
|
+
*/
|
|
74
|
+
bypassApprovalCheck?: boolean;
|
|
75
|
+
/**
|
|
76
|
+
* defaults to true
|
|
77
|
+
* If `batchSimulate` is set to `true`, it will simulate all messages in a batch before the first tx run.
|
|
78
|
+
* If `batchSimulate` is set to `false`, it will simulate each message one by one.
|
|
79
|
+
*/
|
|
80
|
+
batchSimulate?: boolean;
|
|
81
|
+
/**
|
|
82
|
+
* Optional configuration for transaction polling behavior.
|
|
83
|
+
* - `maxRetries`: Maximum number of polling attempts (default: 5)
|
|
84
|
+
* - `retryInterval`: Retry interval in milliseconds (default: 1000)
|
|
85
|
+
* - `backoffMultiplier`: Exponential backoff multiplier for increasing delay between retries (default: 2.5)
|
|
86
|
+
* Example backoff with retryInterval = 1000 and backoffMultiplier = 2:
|
|
87
|
+
* 1st retry: 1000ms → 2nd: 2000ms → 3rd: 4000ms → 4th: 8000ms ...
|
|
88
|
+
*/
|
|
89
|
+
trackTxPollingOptions?: TrackTxPollingProps;
|
|
90
|
+
/**
|
|
91
|
+
* If `batchSignTxs` is set to `true`, it will sign all transactions in a batch up front.
|
|
92
|
+
* If `batchSignTxs` is set to `false`, it will sign each transaction one by one.
|
|
93
|
+
*/
|
|
94
|
+
batchSignTxs?: boolean;
|
|
95
|
+
/**
|
|
96
|
+
* If `cosmosPriorityFeeDenom` is provided, it will be used to set the priority fee for Cosmos transactions.
|
|
97
|
+
* It should be a function that takes a chainId and returns the denom for the priority fee.
|
|
98
|
+
*/
|
|
99
|
+
getCosmosPriorityFeeDenom?: (chainId: string) => Promise<string | undefined>;
|
|
100
|
+
/**
|
|
101
|
+
* SVM Fee Payer
|
|
102
|
+
*
|
|
103
|
+
* This is used to pay for the transaction fees on SVM chains.
|
|
104
|
+
* It should be an object with the following properties:
|
|
105
|
+
* `address`: The address of the fee payer.
|
|
106
|
+
* `signTransaction`: A function that takes the data to sign and returns a Promise that resolves to the signed transaction.
|
|
107
|
+
*/
|
|
108
|
+
svmFeePayer?: {
|
|
109
|
+
address: string;
|
|
110
|
+
signTransaction: (dataToSign: Buffer) => Promise<Uint8Array>;
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export type { BaseSettings as B, EndpointOptions as E, GetFallbackGasAmount as G, SignerGetters as S, TxResult as T, UserAddress as U, ValidateGasResult as V, GetGasPrice as a, GasOptions as b, SignCosmosMessageOptionsBase as c, SignCosmosMessageDirectOptions as d, SignCosmosMessageAminoOptions as e };
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { A as AcknowledgementErrorDetails, a as Affiliate, bx as Api, bt as ApiConfig, b as ApiError, c as Asset, d as AssetBetweenChains, e as AssetRecommendation, bi as AssetRecommendationsResponse, be as AssetsFromSourceResponse, bc as AssetsRequest, bd as AssetsResponse, f as AutopilotAction, g as AutopilotMsg, h as AutopilotMsgWrapper, i as AxelarTransfer, j as AxelarTransferInfo, k as AxelarTransferState, l as AxelarTransferType, m as AxelarTransferWrapper, B as BalanceRequestChainEntry, E as BalanceResponseChainEntry, D as BalanceResponseDenomEntry, b8 as BalancesResponse, F as BankSend, H as BankSendWrapper, I as Bridge, J as BridgeType, b9 as BridgesResponse, C as CCTPTransfer, n as CCTPTransferInfo, p as CCTPTransferState, o as CCTPTransferTxs, q as CCTPTransferWrapper, K as Chain, M as ChainAffiliates, am as ChainTransaction, L as ChainType, b6 as ChainsRequest, b7 as ChainsResponse, bv as ContentType, N as ContractCallWithTokenError, O as ContractCallWithTokenErrorType, P as ContractCallWithTokenTxs, Q as CosmWasmContractMsg, R as CosmWasmContractMsgWrapper, b1 as CosmosModuleSupport, W as CosmosMsg, X as CosmosTx, Y as CosmosTxWrapper, T as Erc20Approval, V as Error, U as ErrorDetail, aW as EurekaTransfer, aX as EurekaTransferInfo, aY as EurekaTransferWrapper, Z as EvmSwap, _ as EvmSwapWrapper, $ as EvmTx, a0 as EvmTxWrapper, b5 as Fee, a3 as FeeAsset, b4 as FeeBehavior, b3 as FeeType, br as FullRequestParams, bo as FungibleAssetsBetweenChainsCreateResponse, a5 as GRPCStatusCode, a4 as GoFastFee, G as GoFastTransfer, y as GoFastTransferInfo, w as GoFastTransferState, x as GoFastTransferTxs, z as GoFastTransferWrapper, bw as HttpClient, bu as HttpResponse, a6 as HyperlaneTransfer, a7 as HyperlaneTransferInfo, a8 as HyperlaneTransferState, a9 as HyperlaneTransferTransactions, aa as HyperlaneTransferWrapper, ab as IBCTransferInfo, b2 as IbcCapabilities, bn as IbcOriginAssetsResponse, aZ as LayerZeroTransfer, a_ as LayerZeroTransferInfo, aP as LayerZeroTransferState, ai as LayerZeroTransferTransactions, a$ as LayerZeroTransferWrapper, ac as Msg, bh as MsgsDirectResponse, bg as MsgsResponse, ae as MultiChainMsg, af as MultiChainMsgWrapper, aK as OPInitTransfer, aM as OPInitTransferInfo, aO as OPInitTransferState, aN as OPInitTransferTxs, aL as OPInitTransferWrapper, ag as Operation, ah as OptionalAsset, aj as Packet, ak as PacketError, al as PacketErrorType, an as PostHandler, bp as QueryParamsType, ao as Reason, b0 as RecommendationRequest, bs as RequestParams, bq as ResponseFormat, aq as Route, ap as RoutePriceWarningType, bf as RouteResponse, ar as SendTokenError, as as SendTokenErrorType, at as SendTokenTxs, S as SmartRelayFeeQuote, aD as SmartSwapExactCoinIn, aF as SmartSwapInWrapper, aE as SmartSwapOptions, r as StargateTransfer, u as StargateTransferInfo, s as StargateTransferState, t as StargateTransferTxs, v as StargateTransferWrapper, au as StatusError, av as StatusErrorType, bl as StatusRequest, bm as StatusResponse, bj as SubmitResponse, a1 as SvmTx, a2 as SvmTxWrapper, aw as Swap, ax as SwapExactCoinIn, ay as SwapExactCoinOut, az as SwapInWrapper, aA as SwapOperation, aB as SwapOutWrapper, aC as SwapRoute, aG as SwapVenue, aH as SwapWrapper, bk as TrackResponse, aI as TransactionExecutionErrorDetails, aJ as TransactionState, aQ as Transfer, aT as TransferAssetRelease, aR as TransferEvent, aS as TransferState, aU as TransferStatus, aV as TransferWrapper, ad as Tx, ba as VenuesRequest, bb as VenuesResponse } from './swaggerTypes-DDwqIjap.js';
|
|
2
|
-
export { E as ExecuteRouteOptions, R as RouteDetails, a as RouteStatus,
|
|
3
|
-
export { E as EndpointOptions, b as GasOptions, G as GetFallbackGasAmount, a as GetGasPrice, e as SignCosmosMessageAminoOptions, d as SignCosmosMessageDirectOptions, c as SignCosmosMessageOptionsBase, S as SignerGetters, T as TxResult, U as UserAddress, V as ValidateGasResult } from './client-types-
|
|
2
|
+
export { E as ExecuteRouteOptions, R as RouteDetails, a as RouteStatus, d as TransactionCallbacks, T as TransactionDetails, b as TransactionStatus, c as TransferEventStatus, e as executeRoute, s as subscribeToRouteStatus } from './callbacks-CvqAtBJq.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-Dk6ypWdO.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';
|
|
@@ -16,8 +16,9 @@ export { RouteRequest, route } from './api/postRoute.js';
|
|
|
16
16
|
export { SubmitTransactionRequest, SubmitTransactionResponse, submitTransaction } from './api/postSubmitTransaction.js';
|
|
17
17
|
export { trackTransaction } from './api/postTrackTransaction.js';
|
|
18
18
|
export { TxStatusResponse, transactionStatus } from './api/postTransactionStatus.js';
|
|
19
|
+
export { ExecuteMultipleRoutesOptions, executeMultipleRoutes } from './public-functions/executeMultipleRoutes.js';
|
|
19
20
|
export { getSigningStargateClient, getSigningStargateClientProps } from './public-functions/getSigningStargateClient.js';
|
|
20
|
-
export { S as SkipClientOptions, s as setClientOptions } from './setClientOptions-
|
|
21
|
+
export { S as SkipClientOptions, s as setClientOptions } from './setClientOptions-BD8e7m2x.js';
|
|
21
22
|
export { getRecommendedGasPrice } from './public-functions/getRecommendedGasPrice.js';
|
|
22
23
|
export { getFeeInfoForChain } from './public-functions/getFeeInfoForChain.js';
|
|
23
24
|
export { SetApiOptionsProps, setApiOptions } from './public-functions/setApiOptions.js';
|
package/dist/esm/index.js
CHANGED
|
@@ -1,19 +1,21 @@
|
|
|
1
|
+
export { setClientOptions } from './chunk-WBZVMPPV.js';
|
|
1
2
|
export { waitForTransaction } from './chunk-QIS6ILPS.js';
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
4
|
-
|
|
3
|
+
export { executeMultipleRoutes } from './chunk-AZALP3WR.js';
|
|
4
|
+
export { executeRoute } from './chunk-7RS3YIVC.js';
|
|
5
|
+
import './chunk-MTAS5XMN.js';
|
|
6
|
+
export { subscribeToRouteStatus } from './chunk-VUXLWWLF.js';
|
|
7
|
+
export { validateCosmosGasBalance } from './chunk-JKN4E5VN.js';
|
|
5
8
|
export { getCosmosGasAmountForMessage } from './chunk-KNXMSLOB.js';
|
|
9
|
+
import './chunk-UIDIKXMB.js';
|
|
6
10
|
export { getEVMGasAmountForMessage } from './chunk-GV2QOWB4.js';
|
|
7
|
-
export { getRecommendedGasPrice } from './chunk-
|
|
11
|
+
export { getRecommendedGasPrice } from './chunk-CX5N7ZLJ.js';
|
|
8
12
|
import './chunk-VQ5SIQWU.js';
|
|
9
|
-
export { getFeeInfoForChain } from './chunk-
|
|
13
|
+
export { getFeeInfoForChain } from './chunk-KLGGCB73.js';
|
|
10
14
|
export { GAS_STATION_CHAIN_IDS } from './chunk-SWYON2RG.js';
|
|
11
|
-
export { getSigningStargateClient } from './chunk-
|
|
12
|
-
import './chunk-3J6O2PVK.js';
|
|
13
|
-
export { setApiOptions } from './chunk-FH2YHZVV.js';
|
|
14
|
-
export { setClientOptions } from './chunk-REWUSU53.js';
|
|
15
|
-
import './chunk-UIDIKXMB.js';
|
|
15
|
+
export { getSigningStargateClient } from './chunk-MPSXXWKL.js';
|
|
16
16
|
import './chunk-QO2CYYF5.js';
|
|
17
|
+
import './chunk-IUYOY23L.js';
|
|
18
|
+
export { setApiOptions } from './chunk-FH2YHZVV.js';
|
|
17
19
|
export { ibcOriginAssets } from './chunk-S4RO2LHD.js';
|
|
18
20
|
export { messages } from './chunk-AND7HVIU.js';
|
|
19
21
|
export { messagesDirect } from './chunk-3XOGEVJL.js';
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { d as TransactionCallbacks } from '../callbacks-CvqAtBJq.js';
|
|
2
|
+
import { bf as RouteResponse, W as CosmosMsg, an as PostHandler } from '../swaggerTypes-DDwqIjap.js';
|
|
3
|
+
import { A as ApiRequest } from '../generateApi-C_xgtxrO.js';
|
|
4
|
+
import { S as SignerGetters, b as GasOptions, B as BaseSettings, U as UserAddress } from '../client-types-Dk6ypWdO.js';
|
|
5
|
+
import '../api/postTransactionStatus.js';
|
|
6
|
+
import '../apiState-DwZhwVul.js';
|
|
7
|
+
import '@cosmjs/amino';
|
|
8
|
+
import '@cosmjs/proto-signing';
|
|
9
|
+
import '@cosmjs/stargate';
|
|
10
|
+
import 'viem';
|
|
11
|
+
import '@solana/wallet-adapter-base';
|
|
12
|
+
import '../api/postTrackTransaction.js';
|
|
13
|
+
|
|
14
|
+
/** Execute Routes Options */
|
|
15
|
+
type ExecuteMultipleRoutesOptions = SignerGetters & GasOptions & TransactionCallbacks & Omit<BaseSettings, "slippageTolerancePercent"> & Pick<ApiRequest<"msgs">, "timeoutSeconds"> & {
|
|
16
|
+
route: {
|
|
17
|
+
mainRoute: RouteResponse;
|
|
18
|
+
} & Record<string, RouteResponse>;
|
|
19
|
+
/**
|
|
20
|
+
* Addresses should be in the same order with the `requiredChainAddresses` in the `route`
|
|
21
|
+
*/
|
|
22
|
+
userAddresses: {
|
|
23
|
+
mainRoute: UserAddress[];
|
|
24
|
+
} & Record<string, UserAddress[]>;
|
|
25
|
+
/**
|
|
26
|
+
* If `appendCosmosMsgs` is provided, it will append the specified Cosmos messages to the transactions.
|
|
27
|
+
*/
|
|
28
|
+
appendCosmosMsgs?: Record<string, Record<string, CosmosMsg[]>>;
|
|
29
|
+
/**
|
|
30
|
+
* Specify actions to perform after the route is completed
|
|
31
|
+
*/
|
|
32
|
+
postRouteHandler?: Record<string, PostHandler>;
|
|
33
|
+
slippageTolerancePercent?: {
|
|
34
|
+
mainRoute: string;
|
|
35
|
+
} & Record<string, string>;
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* example:
|
|
39
|
+
* ```ts
|
|
40
|
+
* executeMultipleRoutes({
|
|
41
|
+
* route: {
|
|
42
|
+
* "mainRoute": mainRouteResponse,
|
|
43
|
+
* "secondaryRoute": secondaryRouteResponse
|
|
44
|
+
* }
|
|
45
|
+
* userAddresses: {
|
|
46
|
+
* "mainRoute": [
|
|
47
|
+
* {chainId: "cosmos", address: "cosmos1..."},
|
|
48
|
+
* {chainId: "ethereum", address: "0x..."}
|
|
49
|
+
* ],
|
|
50
|
+
* "secondaryRoute": [
|
|
51
|
+
* {chainId: "cosmos", address: "cosmos1..."},
|
|
52
|
+
* {chainId: "ethereum", address: "0x..."}
|
|
53
|
+
* ]
|
|
54
|
+
* }
|
|
55
|
+
* })
|
|
56
|
+
*
|
|
57
|
+
*/
|
|
58
|
+
declare const executeMultipleRoutes: (options: ExecuteMultipleRoutesOptions) => Promise<void>;
|
|
59
|
+
|
|
60
|
+
export { type ExecuteMultipleRoutesOptions, executeMultipleRoutes };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export { executeMultipleRoutes } from '../chunk-AZALP3WR.js';
|
|
2
|
+
import '../chunk-MTAS5XMN.js';
|
|
3
|
+
import '../chunk-VUXLWWLF.js';
|
|
4
|
+
import '../chunk-JKN4E5VN.js';
|
|
5
|
+
import '../chunk-KNXMSLOB.js';
|
|
6
|
+
import '../chunk-UIDIKXMB.js';
|
|
7
|
+
import '../chunk-GV2QOWB4.js';
|
|
8
|
+
import '../chunk-VQ5SIQWU.js';
|
|
9
|
+
import '../chunk-SWYON2RG.js';
|
|
10
|
+
import '../chunk-MPSXXWKL.js';
|
|
11
|
+
import '../chunk-QO2CYYF5.js';
|
|
12
|
+
import '../chunk-IUYOY23L.js';
|
|
13
|
+
import '../chunk-AND7HVIU.js';
|
|
14
|
+
import '../chunk-JQ4F4WBG.js';
|
|
15
|
+
import '../chunk-7X4ERB3R.js';
|
|
16
|
+
import '../chunk-APRMN34M.js';
|
|
17
|
+
import '../chunk-52PEBJRQ.js';
|
|
18
|
+
import '../chunk-ZOUYAZU6.js';
|
|
19
|
+
import '../chunk-A6KSECAH.js';
|
|
20
|
+
import '../chunk-OQDBWVET.js';
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
export { E as ExecuteRouteOptions, e as executeRoute } from '../callbacks-
|
|
1
|
+
export { E as ExecuteRouteOptions, e as executeRoute } from '../callbacks-CvqAtBJq.js';
|
|
2
2
|
import '../swaggerTypes-DDwqIjap.js';
|
|
3
3
|
import '../generateApi-C_xgtxrO.js';
|
|
4
|
-
import '../client-types-
|
|
5
|
-
import '../api/postTrackTransaction.js';
|
|
4
|
+
import '../client-types-Dk6ypWdO.js';
|
|
6
5
|
import '../api/postTransactionStatus.js';
|
|
7
6
|
import '../apiState-DwZhwVul.js';
|
|
8
7
|
import '@cosmjs/amino';
|
|
@@ -10,3 +9,4 @@ import '@cosmjs/proto-signing';
|
|
|
10
9
|
import '@cosmjs/stargate';
|
|
11
10
|
import 'viem';
|
|
12
11
|
import '@solana/wallet-adapter-base';
|
|
12
|
+
import '../api/postTrackTransaction.js';
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
export { executeRoute } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
1
|
+
export { executeRoute } from '../chunk-7RS3YIVC.js';
|
|
2
|
+
import '../chunk-MTAS5XMN.js';
|
|
3
|
+
import '../chunk-VUXLWWLF.js';
|
|
4
|
+
import '../chunk-JKN4E5VN.js';
|
|
4
5
|
import '../chunk-KNXMSLOB.js';
|
|
6
|
+
import '../chunk-UIDIKXMB.js';
|
|
5
7
|
import '../chunk-GV2QOWB4.js';
|
|
6
8
|
import '../chunk-VQ5SIQWU.js';
|
|
7
9
|
import '../chunk-SWYON2RG.js';
|
|
8
|
-
import '../chunk-
|
|
9
|
-
import '../chunk-3J6O2PVK.js';
|
|
10
|
-
import '../chunk-UIDIKXMB.js';
|
|
10
|
+
import '../chunk-MPSXXWKL.js';
|
|
11
11
|
import '../chunk-QO2CYYF5.js';
|
|
12
|
+
import '../chunk-IUYOY23L.js';
|
|
12
13
|
import '../chunk-AND7HVIU.js';
|
|
13
14
|
import '../chunk-JQ4F4WBG.js';
|
|
14
15
|
import '../chunk-7X4ERB3R.js';
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
import { G as GetFallbackGasAmount } from '../client-types-
|
|
1
|
+
import { G as GetFallbackGasAmount } from '../client-types-Dk6ypWdO.js';
|
|
2
2
|
import { $ as EvmTx } from '../swaggerTypes-DDwqIjap.js';
|
|
3
3
|
import { WalletClient } from 'viem';
|
|
4
4
|
import '@cosmjs/amino';
|
|
5
5
|
import '@cosmjs/proto-signing';
|
|
6
6
|
import '@cosmjs/stargate';
|
|
7
7
|
import '@solana/wallet-adapter-base';
|
|
8
|
+
import '../api/postTrackTransaction.js';
|
|
9
|
+
import '../apiState-DwZhwVul.js';
|
|
10
|
+
import '../generateApi-C_xgtxrO.js';
|
|
8
11
|
|
|
9
12
|
declare function getEVMGasAmountForMessage(signer: WalletClient, tx: EvmTx, getFallbackGasAmount?: GetFallbackGasAmount): Promise<bigint>;
|
|
10
13
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { getFeeInfoForChain } from '../chunk-
|
|
1
|
+
export { getFeeInfoForChain } from '../chunk-KLGGCB73.js';
|
|
2
2
|
import '../chunk-SWYON2RG.js';
|
|
3
|
-
import '../chunk-
|
|
3
|
+
import '../chunk-IUYOY23L.js';
|
|
4
4
|
import '../chunk-ZOUYAZU6.js';
|
|
5
5
|
import '../chunk-A6KSECAH.js';
|
|
6
6
|
import '../chunk-OQDBWVET.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { getRecommendedGasPrice } from '../chunk-
|
|
1
|
+
export { getRecommendedGasPrice } from '../chunk-CX5N7ZLJ.js';
|
|
2
2
|
import '../chunk-VQ5SIQWU.js';
|
|
3
|
-
import '../chunk-
|
|
3
|
+
import '../chunk-KLGGCB73.js';
|
|
4
4
|
import '../chunk-SWYON2RG.js';
|
|
5
|
-
import '../chunk-
|
|
5
|
+
import '../chunk-IUYOY23L.js';
|
|
6
6
|
import '../chunk-ZOUYAZU6.js';
|
|
7
7
|
import '../chunk-A6KSECAH.js';
|
|
8
8
|
import '../chunk-OQDBWVET.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { getSigningStargateClient } from '../chunk-
|
|
2
|
-
import '../chunk-3J6O2PVK.js';
|
|
1
|
+
export { getSigningStargateClient } from '../chunk-MPSXXWKL.js';
|
|
3
2
|
import '../chunk-QO2CYYF5.js';
|
|
3
|
+
import '../chunk-IUYOY23L.js';
|
|
4
4
|
import '../chunk-ZOUYAZU6.js';
|
|
5
5
|
import '../chunk-A6KSECAH.js';
|
|
6
6
|
import '../chunk-OQDBWVET.js';
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
export { s as setClientOptions } from '../setClientOptions-
|
|
1
|
+
export { s as setClientOptions } from '../setClientOptions-BD8e7m2x.js';
|
|
2
2
|
import '@cosmjs/proto-signing';
|
|
3
3
|
import '@cosmjs/stargate';
|
|
4
4
|
import '../apiState-DwZhwVul.js';
|
|
5
|
-
import '../client-types-
|
|
5
|
+
import '../client-types-Dk6ypWdO.js';
|
|
6
6
|
import '@cosmjs/amino';
|
|
7
7
|
import 'viem';
|
|
8
8
|
import '@solana/wallet-adapter-base';
|
|
9
9
|
import '../swaggerTypes-DDwqIjap.js';
|
|
10
|
+
import '../api/postTrackTransaction.js';
|
|
11
|
+
import '../generateApi-C_xgtxrO.js';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import '../api/postTransactionStatus.js';
|
|
2
2
|
import '../swaggerTypes-DDwqIjap.js';
|
|
3
|
-
export { R as RouteDetails, a as RouteStatus, T as TransactionDetails,
|
|
4
|
-
import '../client-types-
|
|
3
|
+
export { R as RouteDetails, a as RouteStatus, T as TransactionDetails, b as TransactionStatus, i as executeAndSubscribeToRouteStatus, h as executeAndSubscribeToRouteStatusProps, g as getTransactionStatus, s as subscribeToRouteStatus, f as subscribeToRouteStatusProps, u as updateRouteDetails } from '../callbacks-CvqAtBJq.js';
|
|
4
|
+
import '../client-types-Dk6ypWdO.js';
|
|
5
5
|
import '../generateApi-C_xgtxrO.js';
|
|
6
6
|
import '../apiState-DwZhwVul.js';
|
|
7
|
-
import '../api/postTrackTransaction.js';
|
|
8
7
|
import '@cosmjs/amino';
|
|
9
8
|
import '@cosmjs/proto-signing';
|
|
10
9
|
import '@cosmjs/stargate';
|
|
11
10
|
import 'viem';
|
|
12
11
|
import '@solana/wallet-adapter-base';
|
|
12
|
+
import '../api/postTrackTransaction.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { executeAndSubscribeToRouteStatus, getTransactionStatus, subscribeToRouteStatus, updateRouteDetails } from '../chunk-
|
|
1
|
+
export { executeAndSubscribeToRouteStatus, getTransactionStatus, subscribeToRouteStatus, updateRouteDetails } from '../chunk-VUXLWWLF.js';
|
|
2
2
|
import '../chunk-7X4ERB3R.js';
|
|
3
3
|
import '../chunk-APRMN34M.js';
|
|
4
4
|
import '../chunk-A6KSECAH.js';
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import * as _cosmjs_stargate from '@cosmjs/stargate';
|
|
2
2
|
import { W as CosmosMsg, a3 as FeeAsset } from '../swaggerTypes-DDwqIjap.js';
|
|
3
3
|
import { OfflineSigner } from '@cosmjs/proto-signing';
|
|
4
|
-
import { E as ExecuteRouteOptions } from '../callbacks-
|
|
5
|
-
import { G as GetFallbackGasAmount } from '../client-types-
|
|
4
|
+
import { E as ExecuteRouteOptions } from '../callbacks-CvqAtBJq.js';
|
|
5
|
+
import { G as GetFallbackGasAmount } from '../client-types-Dk6ypWdO.js';
|
|
6
6
|
import '../api/postTransactionStatus.js';
|
|
7
7
|
import '../generateApi-C_xgtxrO.js';
|
|
8
8
|
import '../apiState-DwZhwVul.js';
|
|
9
|
-
import '../api/postTrackTransaction.js';
|
|
10
9
|
import '@cosmjs/amino';
|
|
11
10
|
import 'viem';
|
|
12
11
|
import '@solana/wallet-adapter-base';
|
|
12
|
+
import '../api/postTrackTransaction.js';
|
|
13
13
|
|
|
14
14
|
type ValidateCosmosGasBalanceProps = {
|
|
15
15
|
chainId: string;
|
|
@@ -20,13 +20,14 @@ type ValidateCosmosGasBalanceProps = {
|
|
|
20
20
|
txIndex?: number;
|
|
21
21
|
simulate?: ExecuteRouteOptions["simulate"];
|
|
22
22
|
getCosmosPriorityFeeDenom?: ExecuteRouteOptions["getCosmosPriorityFeeDenom"];
|
|
23
|
+
isMultiRoutes?: boolean;
|
|
23
24
|
};
|
|
24
25
|
/**
|
|
25
26
|
*
|
|
26
27
|
* Validate gas balance for cosmos messages returns a fee asset and StdFee to be used
|
|
27
28
|
*
|
|
28
29
|
*/
|
|
29
|
-
declare const validateCosmosGasBalance: ({ chainId, signerAddress, messages, getFallbackGasAmount, getOfflineSigner, txIndex, simulate, getCosmosPriorityFeeDenom, }: ValidateCosmosGasBalanceProps) => Promise<{
|
|
30
|
+
declare const validateCosmosGasBalance: ({ chainId, signerAddress, messages, getFallbackGasAmount, getOfflineSigner, txIndex, simulate, getCosmosPriorityFeeDenom, isMultiRoutes, }: ValidateCosmosGasBalanceProps) => Promise<{
|
|
30
31
|
error: string;
|
|
31
32
|
asset?: undefined;
|
|
32
33
|
fee?: undefined;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { validateCosmosGasBalance } from '../chunk-
|
|
1
|
+
export { validateCosmosGasBalance } from '../chunk-JKN4E5VN.js';
|
|
2
2
|
import '../chunk-KNXMSLOB.js';
|
|
3
|
-
import '../chunk-VQ5SIQWU.js';
|
|
4
|
-
import '../chunk-KYDY7QRT.js';
|
|
5
|
-
import '../chunk-3J6O2PVK.js';
|
|
6
3
|
import '../chunk-UIDIKXMB.js';
|
|
4
|
+
import '../chunk-VQ5SIQWU.js';
|
|
5
|
+
import '../chunk-MPSXXWKL.js';
|
|
7
6
|
import '../chunk-QO2CYYF5.js';
|
|
7
|
+
import '../chunk-IUYOY23L.js';
|
|
8
8
|
import '../chunk-ZOUYAZU6.js';
|
|
9
9
|
import '../chunk-A6KSECAH.js';
|
|
10
10
|
import '../chunk-OQDBWVET.js';
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { av as StatusErrorType, aJ as TransactionState, al as PacketErrorType, aS as TransferState, k as AxelarTransferState, O as ContractCallWithTokenErrorType, as as SendTokenErrorType, l as AxelarTransferType, p as CCTPTransferState, a8 as HyperlaneTransferState, aO as OPInitTransferState, s as StargateTransferState, w as GoFastTransferState, aP as LayerZeroTransferState } from '../swaggerTypes-DDwqIjap.js';
|
|
2
|
-
import {
|
|
3
|
-
import { T as TxResult } from '../client-types-
|
|
2
|
+
import { d as TransactionCallbacks } from '../callbacks-CvqAtBJq.js';
|
|
3
|
+
import { T as TxResult } from '../client-types-Dk6ypWdO.js';
|
|
4
4
|
import '../api/postTransactionStatus.js';
|
|
5
5
|
import '../generateApi-C_xgtxrO.js';
|
|
6
6
|
import '../apiState-DwZhwVul.js';
|
|
7
|
-
import '../api/postTrackTransaction.js';
|
|
8
7
|
import '@cosmjs/amino';
|
|
9
8
|
import '@cosmjs/proto-signing';
|
|
10
9
|
import '@cosmjs/stargate';
|
|
11
10
|
import 'viem';
|
|
12
11
|
import '@solana/wallet-adapter-base';
|
|
12
|
+
import '../api/postTrackTransaction.js';
|
|
13
13
|
|
|
14
14
|
type WaitForTransactionProps = TxResult & {
|
|
15
15
|
onTransactionTracked?: TransactionCallbacks["onTransactionTracked"];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { GeneratedType } from '@cosmjs/proto-signing';
|
|
2
2
|
import { AminoConverters } from '@cosmjs/stargate';
|
|
3
3
|
import { S as SkipApiOptions } from './apiState-DwZhwVul.js';
|
|
4
|
-
import { E as EndpointOptions } from './client-types-
|
|
4
|
+
import { E as EndpointOptions } from './client-types-Dk6ypWdO.js';
|
|
5
5
|
|
|
6
6
|
type SkipClientOptions = SkipApiOptions & {
|
|
7
7
|
endpointOptions?: {
|