@skip-go/client 1.1.1 → 1.1.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/api/getAssets.d.ts +1 -1
- package/dist/api/getAssetsBetweenChains.d.ts +1 -1
- package/dist/api/getBridges.d.ts +1 -1
- package/dist/api/getChains.d.ts +1 -1
- package/dist/api/postAssetsFromSource.d.ts +1 -1
- package/dist/api/postBalances.d.ts +2 -2
- package/dist/api/postMessages.d.ts +3 -3
- package/dist/api/postMessagesDirect.d.ts +2 -2
- package/dist/api/postRecommendAssets.d.ts +1 -1
- package/dist/api/postRoute.d.ts +3 -3
- package/dist/api/postTransactionStatus.d.ts +2 -2
- package/dist/{chunk-MTXTFZRN.js → chunk-R5U2IBQY.js} +41 -18
- package/dist/{client-types-BvdIj_Nf.d.ts → client-types-B5Wk1mFT.d.ts} +1 -1
- package/dist/{executeRoute-CxEpxhJ4.d.ts → executeRoute-Dy607vic.d.ts} +3 -3
- package/dist/{generateApi-BXIkShKU.d.ts → generateApi-DBAMmstt.d.ts} +1 -1
- package/dist/index.d.ts +16 -16
- package/dist/index.js +1 -1
- package/dist/public-functions/executeRoute.d.ts +4 -4
- package/dist/public-functions/executeRoute.js +2 -1
- package/dist/public-functions/getFeeInfoForChain.d.ts +1 -1
- package/dist/public-functions/setApiOptions.d.ts +1 -1
- package/dist/public-functions/setClientOptions.d.ts +3 -3
- package/dist/{setClientOptions-BkD-BMo7.d.ts → setClientOptions-DNQRvnRl.d.ts} +1 -1
- package/dist/{swaggerTypes-A72fxJ5y.d.ts → swaggerTypes-BkgwzRF2.d.ts} +1 -1
- package/package.json +1 -1
package/dist/api/getAssets.d.ts
CHANGED
package/dist/api/getBridges.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { S as SkipApiOptions } from '../apiState-CdzxTxYd.js';
|
|
2
|
-
import { bu as ContentType, J as BridgeType } from '../swaggerTypes-
|
|
2
|
+
import { bu as ContentType, J as BridgeType } from '../swaggerTypes-BkgwzRF2.js';
|
|
3
3
|
|
|
4
4
|
declare const bridges: (options?: ({
|
|
5
5
|
cache?: RequestCache | undefined;
|
package/dist/api/getChains.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { S as SkipApiOptions } from '../apiState-CdzxTxYd.js';
|
|
2
|
-
import { A as ApiRequest, a as ApiResponse } from '../generateApi-
|
|
3
|
-
import '../swaggerTypes-
|
|
2
|
+
import { A as ApiRequest, a as ApiResponse } from '../generateApi-DBAMmstt.js';
|
|
3
|
+
import '../swaggerTypes-BkgwzRF2.js';
|
|
4
4
|
|
|
5
5
|
declare const balances: (options?: ({
|
|
6
6
|
chains?: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { S as SkipApiOptions } from '../apiState-CdzxTxYd.js';
|
|
2
|
-
import { J as BridgeType, f as AutopilotAction, b3 as FeeType } from '../swaggerTypes-
|
|
3
|
-
import { A as ApiRequest, a as ApiResponse } from '../generateApi-
|
|
2
|
+
import { J as BridgeType, f as AutopilotAction, b3 as FeeType } from '../swaggerTypes-BkgwzRF2.js';
|
|
3
|
+
import { A as ApiRequest, a as ApiResponse } from '../generateApi-DBAMmstt.js';
|
|
4
4
|
|
|
5
5
|
declare const messages: (options?: ({
|
|
6
6
|
sourceAssetDenom: string;
|
|
@@ -148,7 +148,7 @@ declare const messages: (options?: ({
|
|
|
148
148
|
trace: string;
|
|
149
149
|
} | undefined;
|
|
150
150
|
messagingFeeAmount?: string | undefined;
|
|
151
|
-
|
|
151
|
+
messagingFeeAmountUsd?: string | undefined;
|
|
152
152
|
} | undefined;
|
|
153
153
|
txIndex: number;
|
|
154
154
|
amountIn: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { S as SkipApiOptions } from '../apiState-CdzxTxYd.js';
|
|
2
|
-
import { f as AutopilotAction, J as BridgeType, ap as RoutePriceWarningType, b3 as FeeType } from '../swaggerTypes-
|
|
2
|
+
import { f as AutopilotAction, J as BridgeType, ap as RoutePriceWarningType, b3 as FeeType } from '../swaggerTypes-BkgwzRF2.js';
|
|
3
3
|
|
|
4
4
|
declare const messagesDirect: (options?: ({
|
|
5
5
|
sourceAssetDenom?: string | undefined;
|
|
@@ -259,7 +259,7 @@ declare const messagesDirect: (options?: ({
|
|
|
259
259
|
trace: string;
|
|
260
260
|
} | undefined;
|
|
261
261
|
messagingFeeAmount?: string | undefined;
|
|
262
|
-
|
|
262
|
+
messagingFeeAmountUsd?: string | undefined;
|
|
263
263
|
} | undefined;
|
|
264
264
|
txIndex: number;
|
|
265
265
|
amountIn: string;
|
package/dist/api/postRoute.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { J as BridgeType, ap as RoutePriceWarningType, b3 as FeeType } from '../swaggerTypes-
|
|
1
|
+
import { J as BridgeType, ap as RoutePriceWarningType, b3 as FeeType } from '../swaggerTypes-BkgwzRF2.js';
|
|
2
2
|
import { S as SkipApiOptions } from '../apiState-CdzxTxYd.js';
|
|
3
|
-
import { A as ApiRequest } from '../generateApi-
|
|
3
|
+
import { A as ApiRequest } from '../generateApi-DBAMmstt.js';
|
|
4
4
|
|
|
5
5
|
declare const route: (request: RouteRequest) => Promise<{
|
|
6
6
|
amountIn: string;
|
|
@@ -149,7 +149,7 @@ declare const route: (request: RouteRequest) => Promise<{
|
|
|
149
149
|
trace: string;
|
|
150
150
|
} | undefined;
|
|
151
151
|
messagingFeeAmount?: string | undefined;
|
|
152
|
-
|
|
152
|
+
messagingFeeAmountUsd?: string | undefined;
|
|
153
153
|
} | undefined;
|
|
154
154
|
txIndex: number;
|
|
155
155
|
amountIn: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
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-
|
|
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-BkgwzRF2.js';
|
|
2
2
|
import { S as SkipApiOptions } from '../apiState-CdzxTxYd.js';
|
|
3
|
-
import { a as ApiResponse } from '../generateApi-
|
|
3
|
+
import { a as ApiResponse } from '../generateApi-DBAMmstt.js';
|
|
4
4
|
|
|
5
5
|
declare const transactionStatus: (params?: ({
|
|
6
6
|
txHash: string;
|
|
@@ -7,6 +7,7 @@ import { messages } from './chunk-7FSLD7Y4.js';
|
|
|
7
7
|
import { submitTransaction } from './chunk-7P6AOFMX.js';
|
|
8
8
|
import { trackTransaction } from './chunk-BCN2WD5Q.js';
|
|
9
9
|
import { transactionStatus } from './chunk-2NYWLY5S.js';
|
|
10
|
+
import { venues } from './chunk-RL5AVCSG.js';
|
|
10
11
|
import { ClientState, balances } from './chunk-EAUM5JYS.js';
|
|
11
12
|
import { ApiState, wait, createRequestClient, toCamel } from './chunk-SOGMQT4H.js';
|
|
12
13
|
import { PublicKey, Transaction, Connection, LAMPORTS_PER_SOL } from '@solana/web3.js';
|
|
@@ -47,7 +48,7 @@ var getRestEndpointForChain = async (chainId) => {
|
|
|
47
48
|
}
|
|
48
49
|
if (chain.apis?.rest?.length === 0 || !chain.apis?.rest) {
|
|
49
50
|
throw new Error(
|
|
50
|
-
`
|
|
51
|
+
`getRestEndpointForChain error: failed to find REST endpoint for chain '${chainId}'`
|
|
51
52
|
);
|
|
52
53
|
}
|
|
53
54
|
const endpoints = chain.apis?.rest?.map((api) => api.address);
|
|
@@ -894,9 +895,9 @@ var executeEvmTransaction = async (message, options) => {
|
|
|
894
895
|
throw new Error(gas?.error);
|
|
895
896
|
}
|
|
896
897
|
const { evmTx } = message;
|
|
897
|
-
const getEvmSigner = options.getEvmSigner
|
|
898
|
+
const getEvmSigner = options.getEvmSigner;
|
|
898
899
|
if (!getEvmSigner) {
|
|
899
|
-
throw new Error("
|
|
900
|
+
throw new Error("executeEVMTransaction error: getEvmSigner is not provided");
|
|
900
901
|
}
|
|
901
902
|
if (!evmTx?.chainId) {
|
|
902
903
|
throw new Error("chain id not found in evmTx");
|
|
@@ -908,7 +909,7 @@ var executeEvmTransaction = async (message, options) => {
|
|
|
908
909
|
if (!evmTx.chainId) {
|
|
909
910
|
throw new Error("executeEVMTransaction error: chainId not found for evmTx");
|
|
910
911
|
}
|
|
911
|
-
if (!evmTx.value) {
|
|
912
|
+
if (!evmTx.value && evmTx.value !== "") {
|
|
912
913
|
throw new Error("executeEVMTransaction error: no value found in evmTx");
|
|
913
914
|
}
|
|
914
915
|
const { onApproveAllowance, onTransactionSigned, bypassApprovalCheck, useUnlimitedApproval } = options;
|
|
@@ -983,10 +984,10 @@ var executeSvmTransaction = async (tx, options) => {
|
|
|
983
984
|
throw new Error(gas?.error);
|
|
984
985
|
}
|
|
985
986
|
const svmTx = tx?.svmTx;
|
|
986
|
-
const getSvmSigner = options?.getSvmSigner
|
|
987
|
+
const getSvmSigner = options?.getSvmSigner;
|
|
987
988
|
if (!getSvmSigner) {
|
|
988
989
|
throw new Error(
|
|
989
|
-
"
|
|
990
|
+
"executeSvmTransaction error: getSvmSigner is not provided"
|
|
990
991
|
);
|
|
991
992
|
}
|
|
992
993
|
const signer = await getSvmSigner();
|
|
@@ -1481,9 +1482,6 @@ var validateGasBalances = async ({
|
|
|
1481
1482
|
enabledChainIds,
|
|
1482
1483
|
useUnlimitedApproval
|
|
1483
1484
|
}) => {
|
|
1484
|
-
if (txs.every((tx) => "cosmosTx" in tx === void 0) || txs.every((tx) => "svmTx" in tx === void 0)) {
|
|
1485
|
-
return;
|
|
1486
|
-
}
|
|
1487
1485
|
onValidateGasBalance?.({
|
|
1488
1486
|
status: "pending"
|
|
1489
1487
|
});
|
|
@@ -1608,7 +1606,11 @@ var executeTransactions = async (options) => {
|
|
|
1608
1606
|
onTransactionBroadcast,
|
|
1609
1607
|
onTransactionCompleted,
|
|
1610
1608
|
simulate = true,
|
|
1611
|
-
batchSimulate = true
|
|
1609
|
+
batchSimulate = true,
|
|
1610
|
+
getFallbackGasAmount = getDefaultFallbackGasAmount,
|
|
1611
|
+
getCosmosSigner,
|
|
1612
|
+
getEvmSigner,
|
|
1613
|
+
onValidateGasBalance
|
|
1612
1614
|
} = options;
|
|
1613
1615
|
if (txs === void 0) {
|
|
1614
1616
|
throw new Error("executeTransactions error: txs is undefined in executeTransactions");
|
|
@@ -1640,20 +1642,20 @@ var executeTransactions = async (options) => {
|
|
|
1640
1642
|
const validateChainIds = !batchSimulate ? chainIds.map((x) => x?.chainId ?? "") : isGasStationSourceEVM ? GAS_STATION_CHAIN_IDS : [];
|
|
1641
1643
|
await validateGasBalances({
|
|
1642
1644
|
txs,
|
|
1643
|
-
getFallbackGasAmount
|
|
1644
|
-
getCosmosSigner
|
|
1645
|
-
getEvmSigner
|
|
1646
|
-
onValidateGasBalance
|
|
1645
|
+
getFallbackGasAmount,
|
|
1646
|
+
getCosmosSigner,
|
|
1647
|
+
getEvmSigner,
|
|
1648
|
+
onValidateGasBalance,
|
|
1647
1649
|
simulate,
|
|
1648
1650
|
disabledChainIds: validateChainIds
|
|
1649
1651
|
});
|
|
1650
1652
|
const validateEnabledChainIds = async (chainId) => {
|
|
1651
1653
|
await validateGasBalances({
|
|
1652
1654
|
txs,
|
|
1653
|
-
getFallbackGasAmount
|
|
1654
|
-
getCosmosSigner
|
|
1655
|
-
getEvmSigner
|
|
1656
|
-
onValidateGasBalance
|
|
1655
|
+
getFallbackGasAmount,
|
|
1656
|
+
getCosmosSigner,
|
|
1657
|
+
getEvmSigner,
|
|
1658
|
+
onValidateGasBalance,
|
|
1657
1659
|
simulate,
|
|
1658
1660
|
enabledChainIds: !batchSimulate ? [chainId] : validateChainIds
|
|
1659
1661
|
});
|
|
@@ -1696,6 +1698,27 @@ var executeTransactions = async (options) => {
|
|
|
1696
1698
|
});
|
|
1697
1699
|
}
|
|
1698
1700
|
};
|
|
1701
|
+
var EVM_GAS_AMOUNT = 15e4;
|
|
1702
|
+
var COSMOS_GAS_AMOUNT = {
|
|
1703
|
+
DEFAULT: 3e5,
|
|
1704
|
+
SWAP: 28e5,
|
|
1705
|
+
CARBON: 1e6
|
|
1706
|
+
};
|
|
1707
|
+
var getDefaultFallbackGasAmount = async (chainId, chainType) => {
|
|
1708
|
+
if (chainType === "evm" /* Evm */) {
|
|
1709
|
+
return EVM_GAS_AMOUNT;
|
|
1710
|
+
}
|
|
1711
|
+
if (chainType !== "cosmos" /* Cosmos */) return void 0;
|
|
1712
|
+
const venuesResult = await venues();
|
|
1713
|
+
const isSwapChain = venuesResult?.some((venue) => venue.chainId === chainId) ?? false;
|
|
1714
|
+
const defaultGasAmount = Math.ceil(
|
|
1715
|
+
isSwapChain ? COSMOS_GAS_AMOUNT.SWAP : COSMOS_GAS_AMOUNT.DEFAULT
|
|
1716
|
+
);
|
|
1717
|
+
if (chainId === "carbon-1") {
|
|
1718
|
+
return COSMOS_GAS_AMOUNT.CARBON;
|
|
1719
|
+
}
|
|
1720
|
+
return defaultGasAmount;
|
|
1721
|
+
};
|
|
1699
1722
|
var executeRoute = async (options) => {
|
|
1700
1723
|
const { route, userAddresses, beforeMsg, afterMsg, timeoutSeconds } = options;
|
|
1701
1724
|
let addressList = [];
|
|
@@ -3,7 +3,7 @@ import { OfflineDirectSigner } from '@cosmjs/proto-signing';
|
|
|
3
3
|
import { StdFee, GasPrice, SignerData } from '@cosmjs/stargate';
|
|
4
4
|
import { WalletClient } from 'viem';
|
|
5
5
|
import { Adapter } from '@solana/wallet-adapter-base';
|
|
6
|
-
import { a3 as FeeAsset, L as ChainType, W as CosmosMsg } from './swaggerTypes-
|
|
6
|
+
import { a3 as FeeAsset, L as ChainType, W as CosmosMsg } from './swaggerTypes-BkgwzRF2.js';
|
|
7
7
|
|
|
8
8
|
/** Common Types */
|
|
9
9
|
type UserAddress = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { aU as TransferStatus, T as Erc20Approval, be as RouteResponse, W as CosmosMsg } from './swaggerTypes-
|
|
2
|
-
import { A as ApiRequest } from './generateApi-
|
|
3
|
-
import { S as SignerGetters, b as GasOptions, U as UserAddress } from './client-types-
|
|
1
|
+
import { aU as TransferStatus, T as Erc20Approval, be as RouteResponse, W as CosmosMsg } from './swaggerTypes-BkgwzRF2.js';
|
|
2
|
+
import { A as ApiRequest } from './generateApi-DBAMmstt.js';
|
|
3
|
+
import { S as SignerGetters, b as GasOptions, U as UserAddress } from './client-types-B5Wk1mFT.js';
|
|
4
4
|
|
|
5
5
|
type CallbackStatus = "success" | "error" | "pending" | "completed";
|
|
6
6
|
type TransactionCallbacks = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { bw as Api } from './swaggerTypes-
|
|
1
|
+
import { bw as Api } from './swaggerTypes-BkgwzRF2.js';
|
|
2
2
|
|
|
3
3
|
type CamelKey<S extends string> = S extends `${infer T}_${infer U}` ? `${T}${Capitalize<CamelKey<U>>}` : S;
|
|
4
4
|
type Camel<T> = T extends (infer U)[] ? Camel<U>[] : T extends object ? {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { A as AcknowledgementErrorDetails, a as Affiliate, bw as Api, bs as ApiConfig, b as ApiError, c as Asset, d as AssetBetweenChains, e as AssetRecommendation, bh as AssetRecommendationsResponse, bd as AssetsFromSourceResponse, bb as AssetsRequest, bc 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, b7 as BalancesResponse, F as BankSend, H as BankSendWrapper, I as Bridge, J as BridgeType, b8 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, b5 as ChainsRequest, b6 as ChainsResponse, bu 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, b4 as Fee, a3 as FeeAsset, b3 as FeeType, bq as FullRequestParams, bn as FungibleAssetsBetweenChainsCreateResponse, a5 as GRPCStatusCode, a4 as GoFastFee, G as GoFastTransfer, y as GoFastTransferInfo, w as GoFastTransferState, x as GoFastTransferTxs, z as GoFastTransferWrapper, bv as HttpClient, bt as HttpResponse, a6 as HyperlaneTransfer, a7 as HyperlaneTransferInfo, a8 as HyperlaneTransferState, a9 as HyperlaneTransferTransactions, aa as HyperlaneTransferWrapper, ab as IBCTransferInfo, b2 as IbcCapabilities, bm as IbcOriginAssetsResponse, aZ as LayerZeroTransfer, a_ as LayerZeroTransferInfo, aP as LayerZeroTransferState, ai as LayerZeroTransferTransactions, a$ as LayerZeroTransferWrapper, ac as Msg, bg as MsgsDirectResponse, bf 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, bo as QueryParamsType, ao as Reason, b0 as RecommendationRequest, br as RequestParams, bp as ResponseFormat, aq as Route, ap as RoutePriceWarningType, be 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, bk as StatusRequest, bl as StatusResponse, bi 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, bj 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, b9 as VenuesRequest, ba as VenuesResponse } from './swaggerTypes-
|
|
2
|
-
export { E as ExecuteRouteOptions, T as TransactionCallbacks, e as executeRoute } from './executeRoute-
|
|
3
|
-
export { E as EndpointOptions, b as GasOptions, G as GetFallbackGasAmount, a as GetGasPrice, e as SignCosmosMessageAminoOptions, d as SignCosmosMessageDirectOptions, c as SignCosmosMessageOptionsBase, S as SignerGetters, T as TxResult, U as UserAddress, V as ValidateGasResult } from './client-types-
|
|
1
|
+
export { A as AcknowledgementErrorDetails, a as Affiliate, bw as Api, bs as ApiConfig, b as ApiError, c as Asset, d as AssetBetweenChains, e as AssetRecommendation, bh as AssetRecommendationsResponse, bd as AssetsFromSourceResponse, bb as AssetsRequest, bc 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, b7 as BalancesResponse, F as BankSend, H as BankSendWrapper, I as Bridge, J as BridgeType, b8 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, b5 as ChainsRequest, b6 as ChainsResponse, bu 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, b4 as Fee, a3 as FeeAsset, b3 as FeeType, bq as FullRequestParams, bn as FungibleAssetsBetweenChainsCreateResponse, a5 as GRPCStatusCode, a4 as GoFastFee, G as GoFastTransfer, y as GoFastTransferInfo, w as GoFastTransferState, x as GoFastTransferTxs, z as GoFastTransferWrapper, bv as HttpClient, bt as HttpResponse, a6 as HyperlaneTransfer, a7 as HyperlaneTransferInfo, a8 as HyperlaneTransferState, a9 as HyperlaneTransferTransactions, aa as HyperlaneTransferWrapper, ab as IBCTransferInfo, b2 as IbcCapabilities, bm as IbcOriginAssetsResponse, aZ as LayerZeroTransfer, a_ as LayerZeroTransferInfo, aP as LayerZeroTransferState, ai as LayerZeroTransferTransactions, a$ as LayerZeroTransferWrapper, ac as Msg, bg as MsgsDirectResponse, bf 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, bo as QueryParamsType, ao as Reason, b0 as RecommendationRequest, br as RequestParams, bp as ResponseFormat, aq as Route, ap as RoutePriceWarningType, be 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, bk as StatusRequest, bl as StatusResponse, bi 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, bj 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, b9 as VenuesRequest, ba as VenuesResponse } from './swaggerTypes-BkgwzRF2.js';
|
|
2
|
+
export { E as ExecuteRouteOptions, T as TransactionCallbacks, e as executeRoute } from './executeRoute-Dy607vic.js';
|
|
3
|
+
export { E as EndpointOptions, b as GasOptions, G as GetFallbackGasAmount, a as GetGasPrice, e as SignCosmosMessageAminoOptions, d as SignCosmosMessageDirectOptions, c as SignCosmosMessageOptionsBase, S as SignerGetters, T as TxResult, U as UserAddress, V as ValidateGasResult } from './client-types-B5Wk1mFT.js';
|
|
4
4
|
export { assets } from './api/getAssets.js';
|
|
5
5
|
export { assetsBetweenChains } from './api/getAssetsBetweenChains.js';
|
|
6
6
|
export { bridges } from './api/getBridges.js';
|
|
@@ -17,11 +17,11 @@ export { submitTransaction } from './api/postSubmitTransaction.js';
|
|
|
17
17
|
export { trackTransaction } from './api/postTrackTransaction.js';
|
|
18
18
|
export { TxStatusResponse, transactionStatus } from './api/postTransactionStatus.js';
|
|
19
19
|
export { getSigningStargateClient, getSigningStargateClientProps } from './public-functions/getSigningStargateClient.js';
|
|
20
|
-
export { S as SkipClientOptions, s as setClientOptions } from './setClientOptions-
|
|
20
|
+
export { S as SkipClientOptions, s as setClientOptions } from './setClientOptions-DNQRvnRl.js';
|
|
21
21
|
export { getRecommendedGasPrice } from './public-functions/getRecommendedGasPrice.js';
|
|
22
22
|
export { getFeeInfoForChain } from './public-functions/getFeeInfoForChain.js';
|
|
23
23
|
export { SetApiOptionsProps, setApiOptions } from './public-functions/setApiOptions.js';
|
|
24
|
-
import './generateApi-
|
|
24
|
+
import './generateApi-DBAMmstt.js';
|
|
25
25
|
import '@cosmjs/amino';
|
|
26
26
|
import '@cosmjs/proto-signing';
|
|
27
27
|
import '@cosmjs/stargate';
|
|
@@ -308,7 +308,7 @@ interface StargateTransferJson {
|
|
|
308
308
|
oft_fee_amount_usd?: string;
|
|
309
309
|
messaging_fee_asset?: AssetJson;
|
|
310
310
|
messaging_fee_amount?: string;
|
|
311
|
-
|
|
311
|
+
messaging_fee_amount_usd?: string;
|
|
312
312
|
}
|
|
313
313
|
/**
|
|
314
314
|
* Stargate transfer state:
|
|
@@ -676,7 +676,7 @@ interface FeeAssetJson {
|
|
|
676
676
|
}
|
|
677
677
|
/** Go fast Fee */
|
|
678
678
|
interface GoFastFeeJson {
|
|
679
|
-
|
|
679
|
+
feeAsset: AssetJson;
|
|
680
680
|
bpsFee?: string;
|
|
681
681
|
bpsFeeAmount?: string;
|
|
682
682
|
bpsFeeUsd?: string;
|
|
@@ -1200,15 +1200,15 @@ interface TransferJson {
|
|
|
1200
1200
|
smart_relay?: boolean;
|
|
1201
1201
|
}
|
|
1202
1202
|
interface TransferEventJson {
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1203
|
+
ibc_transfer?: IBCTransferInfoJson;
|
|
1204
|
+
axelar_transfer?: AxelarTransferInfoJson;
|
|
1205
|
+
cctp_transfer?: CCTPTransferInfoJson;
|
|
1206
|
+
hyperlane_transfer?: HyperlaneTransferInfoJson;
|
|
1207
|
+
op_init_transfer?: OPInitTransferInfoJson;
|
|
1208
|
+
stargate_transfer?: StargateTransferInfoJson;
|
|
1209
|
+
go_fast_transfer?: GoFastTransferInfoJson;
|
|
1210
|
+
eureka_transfer?: EurekaTransferInfoJson;
|
|
1211
|
+
layer_zero_transfer?: LayerZeroTransferInfoJson;
|
|
1212
1212
|
}
|
|
1213
1213
|
/**
|
|
1214
1214
|
* Transfer state:
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { E as ExecuteRouteOptions, e as executeRoute } from '../executeRoute-
|
|
2
|
-
import '../swaggerTypes-
|
|
3
|
-
import '../generateApi-
|
|
4
|
-
import '../client-types-
|
|
1
|
+
export { E as ExecuteRouteOptions, e as executeRoute } from '../executeRoute-Dy607vic.js';
|
|
2
|
+
import '../swaggerTypes-BkgwzRF2.js';
|
|
3
|
+
import '../generateApi-DBAMmstt.js';
|
|
4
|
+
import '../client-types-B5Wk1mFT.js';
|
|
5
5
|
import '@cosmjs/amino';
|
|
6
6
|
import '@cosmjs/proto-signing';
|
|
7
7
|
import '@cosmjs/stargate';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { executeRoute } from '../chunk-
|
|
1
|
+
export { executeRoute } from '../chunk-R5U2IBQY.js';
|
|
2
2
|
import '../chunk-VQ5SIQWU.js';
|
|
3
3
|
import '../chunk-SWYON2RG.js';
|
|
4
4
|
import '../chunk-UPL6CT4S.js';
|
|
@@ -8,5 +8,6 @@ import '../chunk-7FSLD7Y4.js';
|
|
|
8
8
|
import '../chunk-7P6AOFMX.js';
|
|
9
9
|
import '../chunk-BCN2WD5Q.js';
|
|
10
10
|
import '../chunk-2NYWLY5S.js';
|
|
11
|
+
import '../chunk-RL5AVCSG.js';
|
|
11
12
|
import '../chunk-EAUM5JYS.js';
|
|
12
13
|
import '../chunk-SOGMQT4H.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { S as SkipApiOptions } from '../apiState-CdzxTxYd.js';
|
|
2
|
-
import { M as ChainAffiliates } from '../swaggerTypes-
|
|
2
|
+
import { M as ChainAffiliates } from '../swaggerTypes-BkgwzRF2.js';
|
|
3
3
|
|
|
4
4
|
type SetApiOptionsProps = {
|
|
5
5
|
chainIdsToAffiliates?: Record<string, ChainAffiliates>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { s as setClientOptions } from '../setClientOptions-
|
|
1
|
+
export { s as setClientOptions } from '../setClientOptions-DNQRvnRl.js';
|
|
2
2
|
import '@cosmjs/proto-signing';
|
|
3
3
|
import '@cosmjs/stargate';
|
|
4
4
|
import '../apiState-CdzxTxYd.js';
|
|
5
|
-
import '../client-types-
|
|
5
|
+
import '../client-types-B5Wk1mFT.js';
|
|
6
6
|
import '@cosmjs/amino';
|
|
7
7
|
import 'viem';
|
|
8
8
|
import '@solana/wallet-adapter-base';
|
|
9
|
-
import '../swaggerTypes-
|
|
9
|
+
import '../swaggerTypes-BkgwzRF2.js';
|
|
@@ -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-CdzxTxYd.js';
|
|
4
|
-
import { E as EndpointOptions } from './client-types-
|
|
4
|
+
import { E as EndpointOptions } from './client-types-B5Wk1mFT.js';
|
|
5
5
|
|
|
6
6
|
type SkipClientOptions = SkipApiOptions & {
|
|
7
7
|
endpointOptions?: {
|