@skip-go/client 0.5.2 → 0.6.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/index.d.ts
CHANGED
|
@@ -7,8 +7,8 @@ import { AminoConverters, GasPrice, StdFee, SignerData, AminoTypes, SigningStarg
|
|
|
7
7
|
import { TxRaw } from 'cosmjs-types/cosmos/tx/v1beta1/tx';
|
|
8
8
|
import { TxStatusResponse, Chain, SubmitTxResponse, TrackTxResponse, FeeAsset } from './types.js';
|
|
9
9
|
export { AcknowledgementError, AxelarTransferInfo, AxelarTransferInfoJSON, AxelarTransferState, AxelarTransferTransactions, AxelarTransferTransactionsJSON, AxelarTransferType, CCTPTransferInfo, CCTPTransferInfoJSON, CCTPTransferState, CCTPTransferTransactions, CCTPTransferTransactionsJSON, ChainJSON, ChainTransaction, ChainTransactionJSON, ContractCallWithTokenError, ContractCallWithTokenErrorType, ContractCallWithTokenTransactions, ContractCallWithTokenTransactionsJSON, FeeAssetJSON, GasPriceInfo, HyperlaneTransferInfo, HyperlaneTransferInfoJSON, HyperlaneTransferState, HyperlaneTransferTransactions, HyperlaneTransferTransactionsJSON, IbcCapabilities, IbcCapabilitiesJSON, ModuleSupport, ModuleVersionInfo, NextBlockingTransfer, NextBlockingTransferJSON, OPInitTransferInfo, OPInitTransferInfoJSON, OPInitTransferState, OPInitTransferTransactions, OPInitTransferTransactionsJSON, Packet, PacketError, PacketErrorJSON, PacketErrorType, PacketJSON, SendTokenError, SendTokenErrorType, SendTokenTransactions, SendTokenTransactionsJSON, StatusError, StatusErrorJSON, StatusErrorType, StatusRequest, StatusRequestJSON, StatusState, SubmitTxRequest, SubmitTxRequestJSON, SubmitTxResponseJSON, TrackTxRequest, TrackTxRequestJSON, TrackTxResponseJSON, TransactionExecutionError, TransferAssetRelease, TransferAssetReleaseJSON, TransferEvent, TransferEventJSON, TransferInfo, TransferInfoJSON, TransferState, TransferStatus, TransferStatusJSON, TxStatusResponseJSON, Venue, affiliateFromJSON, affiliateToJSON, assetBetweenChainsFromJSON, assetBetweenChainsToJSON, assetFromJSON, assetOrErrorFromJSON, assetOrErrorToJSON, assetRecommendationFromJSON, assetRecommendationRequestFromJSON, assetRecommendationRequestToJSON, assetRecommendationToJSON, assetToJSON, assetsBetweenChainsRequestFromJSON, assetsBetweenChainsRequestToJSON, assetsBetweenChainsResponseFromJSON, assetsFromSourceRequestFromJSON, assetsFromSourceRequestToJSON, assetsRequestFromJSON, assetsRequestToJSON, axelarTransferFromJSON, axelarTransferInfoFromJSON, axelarTransferInfoToJSON, axelarTransferToJSON, axelarTransferTransactionsFromJSON, axelarTransferTransactionsToJSON, bankSendFromJSON, bankSendToJSON, bridgeFromJSON, bridgeToJSON, bridgesResponseFromJSON, bridgesResponseToJSON, cctpTransferFromJSON, cctpTransferInfoFromJSON, cctpTransferInfoToJSON, cctpTransferToJSON, cctpTransferTransactionsFromJSON, cctpTransferTransactionsToJSON, chainAffiliatesFromJSON, chainAffiliatesToJSON, chainFromJSON, chainIDsToAffiliatesMapFromJSON, chainIDsToAffiliatesMapToJSON, chainToJSON, chainTransactionFromJSON, chainTransactionToJSON, contractCallWithTokenTransactionsFromJSON, contractCallWithTokenTransactionsToJSON, cosmWasmContractMsgFromJSON, cosmWasmContractMsgToJSON, cosmosMsgFromJSON, cosmosMsgToJSON, cosmosTxFromJSON, cosmosTxToJSON, denomWithChainIDFromJSON, denomWithChainIDToJSON, erc20ApprovalFromJSON, erc20ApprovalToJSON, estimatedFeeFromJSON, estimatedFeeToJSON, evmSwapFromJSON, evmSwapToJSON, evmTxFromJSON, evmTxToJSON, feeAssetFromJSON, feeAssetToJSON, hyperlaneTransferFromJSON, hyperlaneTransferInfoFromJSON, hyperlaneTransferInfoToJSON, hyperlaneTransferToJSON, hyperlaneTransferTransactionsFromJSON, hyperlaneTransferTransactionsToJSON, ibcAddressFromJSON, ibcAddressToJSON, ibcCapabilitiesFromJSON, ibcCapabilitiesToJSON, messageResponseFromJSON, msgFromJSON, msgToJSON, msgsDirectRequestFromJSON, msgsDirectRequestToJSON, msgsRequestFromJSON, msgsRequestToJSON, multiChainMsgFromJSON, multiChainMsgToJSON, nextBlockingTransferFromJSON, nextBlockingTransferToJSON, opInitTransferFromJSON, opInitTransferInfoFromJSON, opInitTransferInfoToJSON, opInitTransferToJSON, opInitTransferTransactionsFromJSON, opInitTransferTransactionsToJSON, operationFromJSON, operationToJSON, originAssetsRequestFromJSON, originAssetsRequestToJSON, originAssetsResponseFromJSON, originAssetsResponseToJSON, packetFromJSON, packetToJSON, postHandlerFromJSON, postHandlerToJSON, recommendAssetsRequestFromJSON, recommendAssetsRequestToJSON, recommendAssetsResponseFromJSON, recommendAssetsResponseToJSON, recommendationEntryFromJSON, recommendationEntryToJSON, routeRequestFromJSON, routeRequestToJSON, routeResponseFromJSON, routeResponseToJSON, sendTokenTransactionsFromJSON, sendTokenTransactionsToJSON, smartSwapExactCoinInFromJSON, smartSwapExactCoinInToJSON, smartSwapOptionsFromJSON, smartSwapOptionsToJSON, submitTxRequestFromJSON, submitTxRequestToJSON, submitTxResponseFromJSON, submitTxResponseToJSON, svmTxFromJSON, svmTxToJSON, swapExactCoinInFromJSON, swapExactCoinInToJSON, swapExactCoinOutFromJSON, swapExactCoinOutToJSON, swapFromJSON, swapOperationFromJSON, swapOperationToJSON, swapRouteFromJSON, swapRouteToJSON, swapToJSON, swapVenueFromJSON, swapVenueRequestFromJSON, swapVenueRequestToJSON, swapVenueToJSON, trackTxRequestFromJSON, trackTxRequestToJSON, trackTxResponseFromJSON, trackTxResponseToJSON, transferAssetReleaseFromJSON, transferAssetReleaseToJSON, transferEventFromJSON, transferEventToJSON, transferFromJSON, transferInfoFromJSON, transferInfoToJSON, transferStatusFromJSON, transferStatusToJSON, transferToJSON, txFromJSON, txStatusRequestFromJSON, txStatusRequestToJSON, txStatusResponseFromJSON, txStatusResponseToJSON, txToJSON } from './types.js';
|
|
10
|
-
import { R as RouteResponse, M as MultiChainMsg, C as CosmosMsg, A as AssetsRequest,
|
|
11
|
-
export {
|
|
10
|
+
import { a as ChainAffiliates, R as RouteResponse, M as MultiChainMsg, C as CosmosMsg, A as AssetsRequest, b as Asset, c as AssetsFromSourceRequest, d as AssetsBetweenChainsRequest, e as AssetBetweenChains, B as Bridge, T as Tx, E as EvmTx, S as SvmTx, f as MsgsRequest, g as MsgsResponse, h as RouteRequest, i as MsgsDirectRequest, j as MsgsDirectResponse, k as AssetRecommendationRequest, l as RecommendationEntry, D as DenomWithChainID, m as AssetOrError, n as SwapVenue } from './shared-CpfDn0H3.js';
|
|
11
|
+
export { a6 as Affiliate, a5 as AffiliateJSON, ak as ApiError, b0 as AssetBetweenChainsJSON, p as AssetJSON, al as AssetOrErrorJSON, au as AssetRecommendation, av as AssetRecommendationJSON, aw as AssetRecommendationRequestJSON, b1 as AssetsBetweenChainsRequestJSON, b3 as AssetsBetweenChainsResponse, b2 as AssetsBetweenChainsResponseJSON, at as AssetsFromSourceRequestJSON, as as AssetsRequestJSON, ab as AutopilotAction, ac as AutopilotMsg, t as AxelarTransfer, s as AxelarTransferJSON, v as BankSend, u as BankSendJSON, b6 as BridgeJSON, a$ as BridgeType, b5 as BridgesResponse, b4 as BridgesResponseJSON, G as CCTPTransfer, F as CCTPTransferJSON, a7 as ChainAffiliatesJSON, aa as CosmWasmContractMsg, a9 as CosmWasmContractMsgJSON, x as CosmosMsgJSON, z as CosmosTx, y as CosmosTxJSON, aj as DenomWithChainIDJSON, ag as ERC20Approval, af as ERC20ApprovalJSON, aQ as EstimatedFee, aR as EstimatedFeeJSON, a4 as EvmSwap, a3 as EvmSwapJSON, ai as EvmTxJSON, aM as ExperimentalFeature, aP as FeeType, J as HyperlaneTransfer, H as HyperlaneTransferJSON, o as IBCAddress, I as IBCAddressJSON, aY as Msg, aX as MsgJSON, aW as MsgsDirectRequestJSON, aG as MsgsDirectResponseJSON, aV as MsgsRequestJSON, a_ as MsgsResponseJSON, aO as MsgsWarning, aL as MsgsWarningType, w as MultiChainMsgJSON, K as OPInitTransfer, O as OPInitTransferJSON, aT as Operation, aS as OperationJSON, an as OriginAssetsRequest, am as OriginAssetsRequestJSON, ap as OriginAssetsResponse, ao as OriginAssetsResponseJSON, ae as PostHandler, ad as PostHandlerJSON, a8 as Reason, ay as RecommendAssetsRequest, ax as RecommendAssetsRequestJSON, aA as RecommendAssetsResponse, az as RecommendAssetsResponseJSON, aB as RecommendationEntryJSON, aH as RouteRequestBase, aC as RouteRequestBaseJSON, aI as RouteRequestGivenIn, aD as RouteRequestGivenInJSON, aJ as RouteRequestGivenOut, aE as RouteRequestGivenOutJSON, aF as RouteRequestJSON, aU as RouteResponseJSON, aN as RouteWarning, aK as RouteWarningType, a0 as SmartSwapExactCoinIn, $ as SmartSwapExactCoinInJSON, ar as SmartSwapOptions, aq as SmartSwapOptionsJSON, ah as SvmTxJSON, a2 as Swap, Y as SwapExactCoinIn, X as SwapExactCoinInJSON, W as SwapExactCoinOut, V as SwapExactCoinOutJSON, a1 as SwapJSON, U as SwapOperation, Q as SwapOperationJSON, _ as SwapRoute, Z as SwapRouteJSON, L as SwapVenueJSON, P as SwapVenueRequest, N as SwapVenueRequestJSON, r as Transfer, q as TransferJSON, aZ as TxJSON } from './shared-CpfDn0H3.js';
|
|
12
12
|
import { Adapter } from '@solana/wallet-adapter-base';
|
|
13
13
|
export { DEFAULT_GAS_MULTIPLIER, getCosmosGasAmountForMessage, getEncodeObjectFromCosmosMessage, getEncodeObjectFromCosmosMessageInjective } from './transactions.js';
|
|
14
14
|
import '@injectivelabs/sdk-ts/dist/cjs/core/modules/msgs';
|
|
@@ -44,6 +44,7 @@ interface SkipRouterOptions {
|
|
|
44
44
|
};
|
|
45
45
|
aminoTypes?: AminoConverters;
|
|
46
46
|
registryTypes?: Iterable<[string, GeneratedType]>;
|
|
47
|
+
chainIDsToAffiliates?: Record<string, ChainAffiliates>;
|
|
47
48
|
}
|
|
48
49
|
type ExecuteRouteOptions = {
|
|
49
50
|
route: RouteResponse;
|
|
@@ -130,6 +131,8 @@ declare class SkipRouter {
|
|
|
130
131
|
protected getCosmosSigner?: (chainID: string) => Promise<OfflineSigner>;
|
|
131
132
|
protected getEVMSigner?: (chainID: string) => Promise<WalletClient>;
|
|
132
133
|
protected getSVMSigner?: () => Promise<Adapter>;
|
|
134
|
+
protected chainIDsToAffiliates?: Record<string, ChainAffiliates>;
|
|
135
|
+
protected cumulativeAffiliateFeeBPS?: string;
|
|
133
136
|
constructor(options?: SkipRouterOptions);
|
|
134
137
|
assets(options?: AssetsRequest): Promise<Record<string, Asset[]>>;
|
|
135
138
|
assetsFromSource(options: AssetsFromSourceRequest): Promise<Record<string, Asset[]>>;
|
|
@@ -304,4 +307,4 @@ declare class SkipRouter {
|
|
|
304
307
|
}): Promise<Coin>;
|
|
305
308
|
}
|
|
306
309
|
|
|
307
|
-
export { Asset, AssetBetweenChains, AssetOrError, AssetRecommendationRequest, AssetsBetweenChainsRequest, AssetsFromSourceRequest, AssetsRequest, Bridge, Chain, CosmosMsg, DenomWithChainID, type EndpointOptions, EvmTx, type ExecuteCosmosMessage, type ExecuteCosmosMessageOptions, type ExecuteRouteOptions, FeeAsset, type GetFallbackGasAmount, type GetGasPrice, MsgsDirectRequest, MsgsDirectResponse, MsgsRequest, MsgsResponse, MultiChainMsg, RecommendationEntry, RouteRequest, RouteResponse, SKIP_API_URL, type SignCosmosMessageAminoOptions, type SignCosmosMessageDirectOptions, SkipRouter, type SkipRouterOptions, SubmitTxResponse, SvmTx, SwapVenue, TrackTxResponse, Tx, TxStatusResponse, type UserAddress };
|
|
310
|
+
export { Asset, AssetBetweenChains, AssetOrError, AssetRecommendationRequest, AssetsBetweenChainsRequest, AssetsFromSourceRequest, AssetsRequest, Bridge, Chain, ChainAffiliates, CosmosMsg, DenomWithChainID, type EndpointOptions, EvmTx, type ExecuteCosmosMessage, type ExecuteCosmosMessageOptions, type ExecuteRouteOptions, FeeAsset, type GetFallbackGasAmount, type GetGasPrice, MsgsDirectRequest, MsgsDirectResponse, MsgsRequest, MsgsResponse, MultiChainMsg, RecommendationEntry, RouteRequest, RouteResponse, SKIP_API_URL, type SignCosmosMessageAminoOptions, type SignCosmosMessageDirectOptions, SkipRouter, type SkipRouterOptions, SubmitTxResponse, SvmTx, SwapVenue, TrackTxResponse, Tx, TxStatusResponse, type UserAddress };
|
package/dist/index.js
CHANGED
|
@@ -2961,6 +2961,7 @@ var RequestClient = class {
|
|
|
2961
2961
|
var SKIP_API_URL = "https://api.skip.build";
|
|
2962
2962
|
var SkipRouter = class {
|
|
2963
2963
|
constructor(options = {}) {
|
|
2964
|
+
this.cumulativeAffiliateFeeBPS = "0";
|
|
2964
2965
|
var _a, _b, _c;
|
|
2965
2966
|
this.requestClient = new RequestClient({
|
|
2966
2967
|
baseURL: options.apiURL || SKIP_API_URL,
|
|
@@ -2980,6 +2981,12 @@ var SkipRouter = class {
|
|
|
2980
2981
|
this.getCosmosSigner = options.getCosmosSigner;
|
|
2981
2982
|
this.getEVMSigner = options.getEVMSigner;
|
|
2982
2983
|
this.getSVMSigner = options.getSVMSigner;
|
|
2984
|
+
if (options.chainIDsToAffiliates) {
|
|
2985
|
+
this.cumulativeAffiliateFeeBPS = validateChainIDsToAffiliates(
|
|
2986
|
+
options.chainIDsToAffiliates
|
|
2987
|
+
);
|
|
2988
|
+
this.chainIDsToAffiliates = options.chainIDsToAffiliates;
|
|
2989
|
+
}
|
|
2983
2990
|
}
|
|
2984
2991
|
assets() {
|
|
2985
2992
|
return chunk6FNC3XMI_js.__async(this, arguments, function* (options = {}) {
|
|
@@ -3074,6 +3081,7 @@ var SkipRouter = class {
|
|
|
3074
3081
|
amountOut: route.estimatedAmountOut || "0",
|
|
3075
3082
|
addressList,
|
|
3076
3083
|
operations: route.operations,
|
|
3084
|
+
chainIDsToAffiliates: this.chainIDsToAffiliates,
|
|
3077
3085
|
slippageTolerancePercent: options.slippageTolerancePercent || "1"
|
|
3078
3086
|
});
|
|
3079
3087
|
yield this.executeTxs(chunk6FNC3XMI_js.__spreadProps(chunk6FNC3XMI_js.__spreadValues({}, options), { txs: messages.txs }));
|
|
@@ -3747,7 +3755,7 @@ var SkipRouter = class {
|
|
|
3747
3755
|
route(options) {
|
|
3748
3756
|
return chunk6FNC3XMI_js.__async(this, null, function* () {
|
|
3749
3757
|
const response = yield this.requestClient.post("/v2/fungible/route", chunk6FNC3XMI_js.__spreadProps(chunk6FNC3XMI_js.__spreadValues({}, chunkIEAKY5XG_js.routeRequestToJSON(options)), {
|
|
3750
|
-
cumulative_affiliate_fee_bps:
|
|
3758
|
+
cumulative_affiliate_fee_bps: this.cumulativeAffiliateFeeBPS
|
|
3751
3759
|
}));
|
|
3752
3760
|
return chunkIEAKY5XG_js.routeResponseFromJSON(response);
|
|
3753
3761
|
});
|
|
@@ -4338,6 +4346,39 @@ var SkipRouter = class {
|
|
|
4338
4346
|
});
|
|
4339
4347
|
}
|
|
4340
4348
|
};
|
|
4349
|
+
function validateChainIDsToAffiliates(chainIDsToAffiliates) {
|
|
4350
|
+
var _a;
|
|
4351
|
+
const affiliatesArray = Object.values(
|
|
4352
|
+
chainIDsToAffiliates
|
|
4353
|
+
).map((chain) => chain.affiliates);
|
|
4354
|
+
const firstAffiliateBasisPointsFee = (_a = affiliatesArray[0]) == null ? void 0 : _a.reduce(
|
|
4355
|
+
(acc, affiliate) => {
|
|
4356
|
+
if (!affiliate.basisPointsFee) {
|
|
4357
|
+
throw new Error("basisPointFee must exist in each affiliate");
|
|
4358
|
+
}
|
|
4359
|
+
return acc + parseInt(affiliate.basisPointsFee, 10);
|
|
4360
|
+
},
|
|
4361
|
+
0
|
|
4362
|
+
);
|
|
4363
|
+
const allBasisPointsAreEqual = affiliatesArray.every((affiliate) => {
|
|
4364
|
+
const totalBasisPointsFee = affiliate.reduce((acc, affiliate2) => {
|
|
4365
|
+
if (!affiliate2.basisPointsFee) {
|
|
4366
|
+
throw new Error("basisPointFee must exist in each affiliate");
|
|
4367
|
+
}
|
|
4368
|
+
if (!affiliate2.address) {
|
|
4369
|
+
throw new Error("address to receive fee must exist in each affiliate");
|
|
4370
|
+
}
|
|
4371
|
+
return acc + parseInt(affiliate2 == null ? void 0 : affiliate2.basisPointsFee, 10);
|
|
4372
|
+
}, 0);
|
|
4373
|
+
return totalBasisPointsFee === firstAffiliateBasisPointsFee;
|
|
4374
|
+
});
|
|
4375
|
+
if (!allBasisPointsAreEqual) {
|
|
4376
|
+
throw new Error(
|
|
4377
|
+
"basisPointFee does not add up to the same number for each chain in chainIDsToAffiliates"
|
|
4378
|
+
);
|
|
4379
|
+
}
|
|
4380
|
+
return firstAffiliateBasisPointsFee == null ? void 0 : firstAffiliateBasisPointsFee.toFixed(0);
|
|
4381
|
+
}
|
|
4341
4382
|
function raise(message, options) {
|
|
4342
4383
|
throw new Error(message, options);
|
|
4343
4384
|
}
|
|
@@ -944,4 +944,4 @@ type SmartSwapOptions = {
|
|
|
944
944
|
evmSwaps?: boolean;
|
|
945
945
|
};
|
|
946
946
|
|
|
947
|
-
export type {
|
|
947
|
+
export type { SmartSwapExactCoinInJSON as $, AssetsRequest as A, Bridge as B, CosmosMsg as C, DenomWithChainID as D, EvmTx as E, CCTPTransferJSON as F, CCTPTransfer as G, HyperlaneTransferJSON as H, IBCAddressJSON as I, HyperlaneTransfer as J, OPInitTransfer as K, SwapVenueJSON as L, MultiChainMsg as M, SwapVenueRequestJSON as N, OPInitTransferJSON as O, SwapVenueRequest as P, SwapOperationJSON as Q, RouteResponse as R, SvmTx as S, Tx as T, SwapOperation as U, SwapExactCoinOutJSON as V, SwapExactCoinOut as W, SwapExactCoinInJSON as X, SwapExactCoinIn as Y, SwapRouteJSON as Z, SwapRoute as _, ChainAffiliates as a, BridgeType as a$, SmartSwapExactCoinIn as a0, SwapJSON as a1, Swap as a2, EvmSwapJSON as a3, EvmSwap as a4, AffiliateJSON as a5, Affiliate as a6, ChainAffiliatesJSON as a7, Reason as a8, CosmWasmContractMsgJSON as a9, RecommendAssetsResponse as aA, RecommendationEntryJSON as aB, RouteRequestBaseJSON as aC, RouteRequestGivenInJSON as aD, RouteRequestGivenOutJSON as aE, RouteRequestJSON as aF, MsgsDirectResponseJSON as aG, RouteRequestBase as aH, RouteRequestGivenIn as aI, RouteRequestGivenOut as aJ, RouteWarningType as aK, MsgsWarningType as aL, ExperimentalFeature as aM, RouteWarning as aN, MsgsWarning as aO, FeeType as aP, EstimatedFee as aQ, EstimatedFeeJSON as aR, OperationJSON as aS, Operation as aT, RouteResponseJSON as aU, MsgsRequestJSON as aV, MsgsDirectRequestJSON as aW, MsgJSON as aX, Msg as aY, TxJSON as aZ, MsgsResponseJSON as a_, CosmWasmContractMsg as aa, AutopilotAction as ab, AutopilotMsg as ac, PostHandlerJSON as ad, PostHandler as ae, ERC20ApprovalJSON as af, ERC20Approval as ag, SvmTxJSON as ah, EvmTxJSON as ai, DenomWithChainIDJSON as aj, ApiError as ak, AssetOrErrorJSON as al, OriginAssetsRequestJSON as am, OriginAssetsRequest as an, OriginAssetsResponseJSON as ao, OriginAssetsResponse as ap, SmartSwapOptionsJSON as aq, SmartSwapOptions as ar, AssetsRequestJSON as as, AssetsFromSourceRequestJSON as at, AssetRecommendation as au, AssetRecommendationJSON as av, AssetRecommendationRequestJSON as aw, RecommendAssetsRequestJSON as ax, RecommendAssetsRequest as ay, RecommendAssetsResponseJSON as az, Asset as b, AssetBetweenChainsJSON as b0, AssetsBetweenChainsRequestJSON as b1, AssetsBetweenChainsResponseJSON as b2, AssetsBetweenChainsResponse as b3, BridgesResponseJSON as b4, BridgesResponse as b5, BridgeJSON as b6, AssetsFromSourceRequest as c, AssetsBetweenChainsRequest as d, AssetBetweenChains as e, MsgsRequest as f, MsgsResponse as g, RouteRequest as h, MsgsDirectRequest as i, MsgsDirectResponse as j, AssetRecommendationRequest as k, RecommendationEntry as l, AssetOrError as m, SwapVenue as n, IBCAddress as o, AssetJSON as p, TransferJSON as q, Transfer as r, AxelarTransferJSON as s, AxelarTransfer as t, BankSendJSON as u, BankSend as v, MultiChainMsgJSON as w, CosmosMsgJSON as x, CosmosTxJSON as y, CosmosTx as z };
|
package/dist/transactions.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EncodeObject } from '@cosmjs/proto-signing';
|
|
2
2
|
import { Msgs } from '@injectivelabs/sdk-ts/dist/cjs/core/modules/msgs';
|
|
3
|
-
import { C as CosmosMsg } from './shared-
|
|
3
|
+
import { C as CosmosMsg } from './shared-CpfDn0H3.js';
|
|
4
4
|
import { SigningStargateClient } from '@cosmjs/stargate';
|
|
5
5
|
|
|
6
6
|
declare const DEFAULT_GAS_MULTIPLIER = 1.5;
|
package/dist/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { ak as ApiError, ab as AutopilotAction, ac as AutopilotMsg, a$ as BridgeType, aM as ExperimentalFeature, aP as FeeType,
|
|
1
|
+
import { a5 as AffiliateJSON, a6 as Affiliate, p as AssetJSON, b as Asset, av as AssetRecommendationJSON, au as AssetRecommendation, at as AssetsFromSourceRequestJSON, c as AssetsFromSourceRequest, as as AssetsRequestJSON, A as AssetsRequest, ax as RecommendAssetsRequestJSON, ay as RecommendAssetsRequest, az as RecommendAssetsResponseJSON, aA as RecommendAssetsResponse, aB as RecommendationEntryJSON, l as RecommendationEntry, aR as EstimatedFeeJSON, aQ as EstimatedFee, L as SwapVenueJSON, n as SwapVenue, N as SwapVenueRequestJSON, P as SwapVenueRequest, aF as RouteRequestJSON, h as RouteRequest, q as TransferJSON, r as Transfer, Q as SwapOperationJSON, U as SwapOperation, Z as SwapRouteJSON, _ as SwapRoute, X as SwapExactCoinInJSON, Y as SwapExactCoinIn, $ as SmartSwapExactCoinInJSON, a0 as SmartSwapExactCoinIn, V as SwapExactCoinOutJSON, W as SwapExactCoinOut, a1 as SwapJSON, a2 as Swap, a3 as EvmSwapJSON, a4 as EvmSwap, aS as OperationJSON, aT as Operation, aU as RouteResponseJSON, R as RouteResponse, a9 as CosmWasmContractMsgJSON, aa as CosmWasmContractMsg, ad as PostHandlerJSON, ae as PostHandler, aV as MsgsRequestJSON, f as MsgsRequest, w as MultiChainMsgJSON, M as MultiChainMsg, x as CosmosMsgJSON, C as CosmosMsg, I as IBCAddressJSON, o as IBCAddress, s as AxelarTransferJSON, t as AxelarTransfer, u as BankSendJSON, v as BankSend, F as CCTPTransferJSON, G as CCTPTransfer, H as HyperlaneTransferJSON, J as HyperlaneTransfer, O as OPInitTransferJSON, K as OPInitTransfer, af as ERC20ApprovalJSON, ag as ERC20Approval, ah as SvmTxJSON, S as SvmTx, ai as EvmTxJSON, E as EvmTx, y as CosmosTxJSON, z as CosmosTx, aZ as TxJSON, T as Tx, aX as MsgJSON, aY as Msg, a_ as MsgsResponseJSON, g as MsgsResponse, aj as DenomWithChainIDJSON, D as DenomWithChainID, al as AssetOrErrorJSON, m as AssetOrError, am as OriginAssetsRequestJSON, an as OriginAssetsRequest, ao as OriginAssetsResponseJSON, ap as OriginAssetsResponse, b0 as AssetBetweenChainsJSON, e as AssetBetweenChains, b1 as AssetsBetweenChainsRequestJSON, d as AssetsBetweenChainsRequest, b2 as AssetsBetweenChainsResponseJSON, b3 as AssetsBetweenChainsResponse, aw as AssetRecommendationRequestJSON, k as AssetRecommendationRequest, b4 as BridgesResponseJSON, b5 as BridgesResponse, b6 as BridgeJSON, B as Bridge, aW as MsgsDirectRequestJSON, i as MsgsDirectRequest, aq as SmartSwapOptionsJSON, ar as SmartSwapOptions, a7 as ChainAffiliatesJSON, a as ChainAffiliates } from './shared-CpfDn0H3.js';
|
|
2
|
+
export { ak as ApiError, ab as AutopilotAction, ac as AutopilotMsg, a$ as BridgeType, aM as ExperimentalFeature, aP as FeeType, j as MsgsDirectResponse, aG as MsgsDirectResponseJSON, aO as MsgsWarning, aL as MsgsWarningType, a8 as Reason, aH as RouteRequestBase, aC as RouteRequestBaseJSON, aI as RouteRequestGivenIn, aD as RouteRequestGivenInJSON, aJ as RouteRequestGivenOut, aE as RouteRequestGivenOutJSON, aN as RouteWarning, aK as RouteWarningType } from './shared-CpfDn0H3.js';
|
|
3
3
|
|
|
4
4
|
type SubmitTxRequestJSON = {
|
|
5
5
|
tx: string;
|
package/package.json
CHANGED