@skip-go/client 0.10.0 → 0.10.1
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/{chunk-5I2266VA.js → chunk-F6SLLVEL.js} +28 -8
- package/dist/index.d.ts +2 -2
- package/dist/index.js +197 -197
- package/dist/{shared-BXdO_XhQ.d.ts → shared-IGtrUCgc.d.ts} +21 -7
- package/dist/transactions.d.ts +1 -1
- package/dist/types.d.ts +2 -2
- package/dist/types.js +171 -171
- package/package.json +1 -1
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
var chunk6FNC3XMI_js = require('./chunk-6FNC3XMI.js');
|
|
4
|
+
|
|
3
5
|
// src/types/converters.ts
|
|
4
6
|
function affiliateFromJSON(affiliateJSON) {
|
|
5
7
|
return {
|
|
@@ -1649,13 +1651,11 @@ function opInitTransferInfoToJSON(value) {
|
|
|
1649
1651
|
}
|
|
1650
1652
|
function msgsDirectRequestFromJSON(msgDirectRequestJSON) {
|
|
1651
1653
|
var _a;
|
|
1652
|
-
|
|
1654
|
+
const baseRequest = {
|
|
1653
1655
|
sourceAssetDenom: msgDirectRequestJSON.source_asset_denom,
|
|
1654
1656
|
sourceAssetChainID: msgDirectRequestJSON.source_asset_chain_id,
|
|
1655
1657
|
destAssetDenom: msgDirectRequestJSON.dest_asset_denom,
|
|
1656
1658
|
destAssetChainID: msgDirectRequestJSON.dest_asset_chain_id,
|
|
1657
|
-
amountIn: msgDirectRequestJSON.amount_in,
|
|
1658
|
-
amountOut: msgDirectRequestJSON.amount_out,
|
|
1659
1659
|
chainIdsToAddresses: msgDirectRequestJSON.chain_ids_to_addresses,
|
|
1660
1660
|
slippageTolerancePercent: msgDirectRequestJSON.slippage_tolerance_percent,
|
|
1661
1661
|
affiliates: (_a = msgDirectRequestJSON.affiliates) == null ? void 0 : _a.map(affiliateFromJSON),
|
|
@@ -1669,18 +1669,29 @@ function msgsDirectRequestFromJSON(msgDirectRequestJSON) {
|
|
|
1669
1669
|
smartRelay: msgDirectRequestJSON.smart_relay,
|
|
1670
1670
|
smartSwapOptions: msgDirectRequestJSON.smart_swap_options ? smartSwapOptionsFromJSON(msgDirectRequestJSON.smart_swap_options) : void 0,
|
|
1671
1671
|
allowSwaps: msgDirectRequestJSON.allow_swaps,
|
|
1672
|
-
enableGasWarnings: msgDirectRequestJSON.enable_gas_warnings
|
|
1673
|
-
|
|
1672
|
+
enableGasWarnings: msgDirectRequestJSON.enable_gas_warnings,
|
|
1673
|
+
allowMultiTx: msgDirectRequestJSON.allow_multi_tx,
|
|
1674
|
+
allowUnsafe: msgDirectRequestJSON.allow_unsafe,
|
|
1675
|
+
bridges: msgDirectRequestJSON.bridges,
|
|
1676
|
+
experimentalFeatures: msgDirectRequestJSON.experimental_features
|
|
1677
|
+
};
|
|
1678
|
+
if (msgDirectRequestJSON.amount_in !== void 0) {
|
|
1679
|
+
return chunk6FNC3XMI_js.__spreadProps(chunk6FNC3XMI_js.__spreadValues({}, baseRequest), {
|
|
1680
|
+
amountIn: msgDirectRequestJSON.amount_in
|
|
1681
|
+
});
|
|
1682
|
+
} else {
|
|
1683
|
+
return chunk6FNC3XMI_js.__spreadProps(chunk6FNC3XMI_js.__spreadValues({}, baseRequest), {
|
|
1684
|
+
amountOut: msgDirectRequestJSON.amount_out
|
|
1685
|
+
});
|
|
1686
|
+
}
|
|
1674
1687
|
}
|
|
1675
1688
|
function msgsDirectRequestToJSON(msgDirectRequest) {
|
|
1676
1689
|
var _a;
|
|
1677
|
-
|
|
1690
|
+
const baseRequest = {
|
|
1678
1691
|
source_asset_denom: msgDirectRequest.sourceAssetDenom,
|
|
1679
1692
|
source_asset_chain_id: msgDirectRequest.sourceAssetChainID,
|
|
1680
1693
|
dest_asset_denom: msgDirectRequest.destAssetDenom,
|
|
1681
1694
|
dest_asset_chain_id: msgDirectRequest.destAssetChainID,
|
|
1682
|
-
amount_in: msgDirectRequest.amountIn,
|
|
1683
|
-
amount_out: msgDirectRequest.amountOut,
|
|
1684
1695
|
chain_ids_to_addresses: msgDirectRequest.chainIdsToAddresses,
|
|
1685
1696
|
slippage_tolerance_percent: msgDirectRequest.slippageTolerancePercent,
|
|
1686
1697
|
affiliates: (_a = msgDirectRequest.affiliates) == null ? void 0 : _a.map(affiliateToJSON),
|
|
@@ -1698,6 +1709,15 @@ function msgsDirectRequestToJSON(msgDirectRequest) {
|
|
|
1698
1709
|
allow_swaps: msgDirectRequest.allowSwaps,
|
|
1699
1710
|
enable_gas_warnings: msgDirectRequest.enableGasWarnings
|
|
1700
1711
|
};
|
|
1712
|
+
if (msgDirectRequest.amountIn !== void 0) {
|
|
1713
|
+
return chunk6FNC3XMI_js.__spreadProps(chunk6FNC3XMI_js.__spreadValues({}, baseRequest), {
|
|
1714
|
+
amount_in: msgDirectRequest.amountIn
|
|
1715
|
+
});
|
|
1716
|
+
} else {
|
|
1717
|
+
return chunk6FNC3XMI_js.__spreadProps(chunk6FNC3XMI_js.__spreadValues({}, baseRequest), {
|
|
1718
|
+
amount_out: msgDirectRequest.amountOut
|
|
1719
|
+
});
|
|
1720
|
+
}
|
|
1701
1721
|
}
|
|
1702
1722
|
function smartSwapOptionsFromJSON(smartSwapOptionsJSON) {
|
|
1703
1723
|
return {
|
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, balanceRequestChainEntryFromJSON, balanceRequestChainEntryToJSON, balanceRequestFromJSON, balanceRequestToJSON, balanceResponseChainEntryFromJSON, balanceResponseChainEntryToJSON, balanceResponseDenomEntryFromJSON, balanceResponseDenomEntryToJSON, balanceResponseFromJSON, balanceResponseToJSON, 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, smartRelayFeeQuoteFromJSON, smartRelayFeeQuoteToJSON, 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 { 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, f as BalanceRequest, g as BalanceResponse, T as Tx, E as EvmTx, S as SvmTx, h as MsgsRequest, i as MsgsResponse, j as RouteRequest, k as MsgsDirectRequest, l as MsgsDirectResponse, m as AssetRecommendationRequest, n as RecommendationEntry, D as DenomWithChainID, o as AssetOrError, p as SwapVenue } from './shared-
|
|
11
|
-
export { aa as Affiliate, a9 as AffiliateJSON, ao as ApiError,
|
|
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, f as BalanceRequest, g as BalanceResponse, T as Tx, E as EvmTx, S as SvmTx, h as MsgsRequest, i as MsgsResponse, j as RouteRequest, k as MsgsDirectRequest, l as MsgsDirectResponse, m as AssetRecommendationRequest, n as RecommendationEntry, D as DenomWithChainID, o as AssetOrError, p as SwapVenue } from './shared-IGtrUCgc.js';
|
|
11
|
+
export { aa as Affiliate, a9 as AffiliateJSON, ao as ApiError, ba as AssetBetweenChainsJSON, r as AssetJSON, ap as AssetOrErrorJSON, ay as AssetRecommendation, az as AssetRecommendationJSON, aA as AssetRecommendationRequestJSON, bb as AssetsBetweenChainsRequestJSON, bd as AssetsBetweenChainsResponse, bc as AssetsBetweenChainsResponseJSON, ax as AssetsFromSourceRequestJSON, aw as AssetsRequestJSON, af as AutopilotAction, ag as AutopilotMsg, v as AxelarTransfer, u as AxelarTransferJSON, bf as BalanceRequestChainEntry, be as BalanceRequestChainEntryJSON, bg as BalanceRequestJSON, bk as BalanceResponseChainEntry, bj as BalanceResponseChainEntryJSON, bi as BalanceResponseDenomEntry, bh as BalanceResponseDenomEntryJSON, bl as BalanceResponseJSON, x as BankSend, w as BankSendJSON, bo as BridgeJSON, b9 as BridgeType, bn as BridgesResponse, bm as BridgesResponseJSON, J as CCTPTransfer, H as CCTPTransferJSON, ab as ChainAffiliatesJSON, ae as CosmWasmContractMsg, ad as CosmWasmContractMsgJSON, z as CosmosMsgJSON, G as CosmosTx, F as CosmosTxJSON, an as DenomWithChainIDJSON, ak as ERC20Approval, aj as ERC20ApprovalJSON, aU as EstimatedFee, aV as EstimatedFeeJSON, a8 as EvmSwap, a7 as EvmSwapJSON, am as EvmTxJSON, aQ as ExperimentalFeature, aT as FeeType, L as HyperlaneTransfer, K as HyperlaneTransferJSON, q as IBCAddress, I as IBCAddressJSON, b6 as Msg, b5 as MsgJSON, b2 as MsgsDirectRequestBase, a_ as MsgsDirectRequestBaseJSON, b3 as MsgsDirectRequestGivenIn, a$ as MsgsDirectRequestGivenInJSON, b4 as MsgsDirectRequestGivenOut, b0 as MsgsDirectRequestGivenOutJSON, b1 as MsgsDirectRequestJSON, aK as MsgsDirectResponseJSON, aZ as MsgsRequestJSON, b8 as MsgsResponseJSON, aS as MsgsWarning, aP as MsgsWarningType, y as MultiChainMsgJSON, N as OPInitTransfer, O as OPInitTransferJSON, aX as Operation, aW as OperationJSON, ar as OriginAssetsRequest, aq as OriginAssetsRequestJSON, at as OriginAssetsResponse, as as OriginAssetsResponseJSON, ai as PostHandler, ah as PostHandlerJSON, ac as Reason, aC as RecommendAssetsRequest, aB as RecommendAssetsRequestJSON, aE as RecommendAssetsResponse, aD as RecommendAssetsResponseJSON, aF as RecommendationEntryJSON, aL as RouteRequestBase, aG as RouteRequestBaseJSON, aM as RouteRequestGivenIn, aH as RouteRequestGivenInJSON, aN as RouteRequestGivenOut, aI as RouteRequestGivenOutJSON, aJ as RouteRequestJSON, aY as RouteResponseJSON, aR as RouteWarning, aO as RouteWarningType, Q as SmartRelayFeeQuote, P as SmartRelayFeeQuoteJSON, a4 as SmartSwapExactCoinIn, a3 as SmartSwapExactCoinInJSON, av as SmartSwapOptions, au as SmartSwapOptionsJSON, al as SvmTxJSON, a6 as Swap, a0 as SwapExactCoinIn, $ as SwapExactCoinInJSON, _ as SwapExactCoinOut, Z as SwapExactCoinOutJSON, a5 as SwapJSON, Y as SwapOperation, X as SwapOperationJSON, a2 as SwapRoute, a1 as SwapRouteJSON, U as SwapVenueJSON, W as SwapVenueRequest, V as SwapVenueRequestJSON, t as Transfer, s as TransferJSON, b7 as TxJSON } from './shared-IGtrUCgc.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';
|