@skip-go/client 0.9.3 → 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/README.md +8 -3
- package/dist/{chunk-5I2266VA.js → chunk-F6SLLVEL.js} +28 -8
- package/dist/index.d.ts +18 -5
- package/dist/index.js +279 -221
- package/dist/{shared-DxdVuIaC.d.ts → shared-IGtrUCgc.d.ts} +23 -9
- 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
|
@@ -331,13 +331,11 @@ type MsgsRequest = {
|
|
|
331
331
|
postRouteHandler?: PostHandler;
|
|
332
332
|
enableGasWarnings?: boolean;
|
|
333
333
|
};
|
|
334
|
-
type
|
|
334
|
+
type MsgsDirectRequestBaseJSON = {
|
|
335
335
|
source_asset_denom: string;
|
|
336
336
|
source_asset_chain_id: string;
|
|
337
337
|
dest_asset_denom: string;
|
|
338
338
|
dest_asset_chain_id: string;
|
|
339
|
-
amount_in: string;
|
|
340
|
-
amount_out: string;
|
|
341
339
|
chain_ids_to_addresses: {
|
|
342
340
|
[key: string]: string;
|
|
343
341
|
};
|
|
@@ -357,13 +355,20 @@ type MsgsDirectRequestJSON = {
|
|
|
357
355
|
allow_swaps?: boolean;
|
|
358
356
|
enable_gas_warnings?: boolean;
|
|
359
357
|
};
|
|
360
|
-
type
|
|
358
|
+
type MsgsDirectRequestGivenInJSON = MsgsDirectRequestBaseJSON & {
|
|
359
|
+
amount_in: string;
|
|
360
|
+
amount_out?: never;
|
|
361
|
+
};
|
|
362
|
+
type MsgsDirectRequestGivenOutJSON = MsgsDirectRequestBaseJSON & {
|
|
363
|
+
amount_in?: never;
|
|
364
|
+
amount_out: string;
|
|
365
|
+
};
|
|
366
|
+
type MsgsDirectRequestJSON = MsgsDirectRequestGivenInJSON | MsgsDirectRequestGivenOutJSON;
|
|
367
|
+
type MsgsDirectRequestBase = {
|
|
361
368
|
sourceAssetDenom: string;
|
|
362
369
|
sourceAssetChainID: string;
|
|
363
370
|
destAssetDenom: string;
|
|
364
371
|
destAssetChainID: string;
|
|
365
|
-
amountIn: string;
|
|
366
|
-
amountOut: string;
|
|
367
372
|
chainIdsToAddresses: {
|
|
368
373
|
[key: string]: string;
|
|
369
374
|
};
|
|
@@ -383,6 +388,15 @@ type MsgsDirectRequest = {
|
|
|
383
388
|
allowSwaps?: boolean;
|
|
384
389
|
enableGasWarnings?: boolean;
|
|
385
390
|
};
|
|
391
|
+
type MsgsDirectRequestGivenIn = MsgsDirectRequestBase & {
|
|
392
|
+
amountIn: string;
|
|
393
|
+
amountOut?: never;
|
|
394
|
+
};
|
|
395
|
+
type MsgsDirectRequestGivenOut = MsgsDirectRequestBase & {
|
|
396
|
+
amountIn?: never;
|
|
397
|
+
amountOut: string;
|
|
398
|
+
};
|
|
399
|
+
type MsgsDirectRequest = MsgsDirectRequestGivenIn | MsgsDirectRequestGivenOut;
|
|
386
400
|
type MsgJSON = {
|
|
387
401
|
multi_chain_msg: MultiChainMsgJSON;
|
|
388
402
|
} | {
|
|
@@ -469,11 +483,11 @@ type AssetsBetweenChainsResponse = {
|
|
|
469
483
|
};
|
|
470
484
|
type BalanceRequestChainEntryJSON = {
|
|
471
485
|
address: string;
|
|
472
|
-
denoms
|
|
486
|
+
denoms?: string[];
|
|
473
487
|
};
|
|
474
488
|
type BalanceRequestChainEntry = {
|
|
475
489
|
address: string;
|
|
476
|
-
denoms
|
|
490
|
+
denoms?: string[];
|
|
477
491
|
};
|
|
478
492
|
type BalanceRequestJSON = {
|
|
479
493
|
chains: {
|
|
@@ -1018,4 +1032,4 @@ type SmartSwapOptions = {
|
|
|
1018
1032
|
evmSwaps?: boolean;
|
|
1019
1033
|
};
|
|
1020
1034
|
|
|
1021
|
-
export type { SwapExactCoinInJSON as $, AssetsRequest as A, Bridge as B, CosmosMsg as C, DenomWithChainID as D, EvmTx as E, CosmosTxJSON as F, CosmosTx as G, CCTPTransferJSON as H, IBCAddressJSON as I, CCTPTransfer as J, HyperlaneTransferJSON as K, HyperlaneTransfer as L, MultiChainMsg as M, OPInitTransfer as N, OPInitTransferJSON as O, SmartRelayFeeQuoteJSON as P, SmartRelayFeeQuote as Q, RouteResponse as R, SvmTx as S, Tx as T, SwapVenueJSON as U, SwapVenueRequestJSON as V, SwapVenueRequest as W, SwapOperationJSON as X, SwapOperation as Y, SwapExactCoinOutJSON as Z, SwapExactCoinOut as _, ChainAffiliates as a,
|
|
1035
|
+
export type { SwapExactCoinInJSON as $, AssetsRequest as A, Bridge as B, CosmosMsg as C, DenomWithChainID as D, EvmTx as E, CosmosTxJSON as F, CosmosTx as G, CCTPTransferJSON as H, IBCAddressJSON as I, CCTPTransfer as J, HyperlaneTransferJSON as K, HyperlaneTransfer as L, MultiChainMsg as M, OPInitTransfer as N, OPInitTransferJSON as O, SmartRelayFeeQuoteJSON as P, SmartRelayFeeQuote as Q, RouteResponse as R, SvmTx as S, Tx as T, SwapVenueJSON as U, SwapVenueRequestJSON as V, SwapVenueRequest as W, SwapOperationJSON as X, SwapOperation as Y, SwapExactCoinOutJSON as Z, SwapExactCoinOut as _, ChainAffiliates as a, MsgsDirectRequestGivenInJSON as a$, SwapExactCoinIn as a0, SwapRouteJSON as a1, SwapRoute as a2, SmartSwapExactCoinInJSON as a3, SmartSwapExactCoinIn as a4, SwapJSON as a5, Swap as a6, EvmSwapJSON as a7, EvmSwap as a8, AffiliateJSON as a9, AssetRecommendationRequestJSON as aA, RecommendAssetsRequestJSON as aB, RecommendAssetsRequest as aC, RecommendAssetsResponseJSON as aD, RecommendAssetsResponse as aE, RecommendationEntryJSON as aF, RouteRequestBaseJSON as aG, RouteRequestGivenInJSON as aH, RouteRequestGivenOutJSON as aI, RouteRequestJSON as aJ, MsgsDirectResponseJSON as aK, RouteRequestBase as aL, RouteRequestGivenIn as aM, RouteRequestGivenOut as aN, RouteWarningType as aO, MsgsWarningType as aP, ExperimentalFeature as aQ, RouteWarning as aR, MsgsWarning as aS, FeeType as aT, EstimatedFee as aU, EstimatedFeeJSON as aV, OperationJSON as aW, Operation as aX, RouteResponseJSON as aY, MsgsRequestJSON as aZ, MsgsDirectRequestBaseJSON as a_, Affiliate as aa, ChainAffiliatesJSON as ab, Reason as ac, CosmWasmContractMsgJSON as ad, CosmWasmContractMsg as ae, AutopilotAction as af, AutopilotMsg as ag, PostHandlerJSON as ah, PostHandler as ai, ERC20ApprovalJSON as aj, ERC20Approval as ak, SvmTxJSON as al, EvmTxJSON as am, DenomWithChainIDJSON as an, ApiError as ao, AssetOrErrorJSON as ap, OriginAssetsRequestJSON as aq, OriginAssetsRequest as ar, OriginAssetsResponseJSON as as, OriginAssetsResponse as at, SmartSwapOptionsJSON as au, SmartSwapOptions as av, AssetsRequestJSON as aw, AssetsFromSourceRequestJSON as ax, AssetRecommendation as ay, AssetRecommendationJSON as az, Asset as b, MsgsDirectRequestGivenOutJSON as b0, MsgsDirectRequestJSON as b1, MsgsDirectRequestBase as b2, MsgsDirectRequestGivenIn as b3, MsgsDirectRequestGivenOut as b4, MsgJSON as b5, Msg as b6, TxJSON as b7, MsgsResponseJSON as b8, BridgeType as b9, AssetBetweenChainsJSON as ba, AssetsBetweenChainsRequestJSON as bb, AssetsBetweenChainsResponseJSON as bc, AssetsBetweenChainsResponse as bd, BalanceRequestChainEntryJSON as be, BalanceRequestChainEntry as bf, BalanceRequestJSON as bg, BalanceResponseDenomEntryJSON as bh, BalanceResponseDenomEntry as bi, BalanceResponseChainEntryJSON as bj, BalanceResponseChainEntry as bk, BalanceResponseJSON as bl, BridgesResponseJSON as bm, BridgesResponse as bn, BridgeJSON as bo, AssetsFromSourceRequest as c, AssetsBetweenChainsRequest as d, AssetBetweenChains as e, BalanceRequest as f, BalanceResponse as g, MsgsRequest as h, MsgsResponse as i, RouteRequest as j, MsgsDirectRequest as k, MsgsDirectResponse as l, AssetRecommendationRequest as m, RecommendationEntry as n, AssetOrError as o, SwapVenue as p, IBCAddress as q, AssetJSON as r, TransferJSON as s, Transfer as t, AxelarTransferJSON as u, AxelarTransfer as v, BankSendJSON as w, BankSend as x, MultiChainMsgJSON as y, CosmosMsgJSON 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-IGtrUCgc.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 { a9 as AffiliateJSON, aa as Affiliate, r as AssetJSON, b as Asset, az as AssetRecommendationJSON, ay as AssetRecommendation, ax as AssetsFromSourceRequestJSON, c as AssetsFromSourceRequest, aw as AssetsRequestJSON, A as AssetsRequest, aB as RecommendAssetsRequestJSON, aC as RecommendAssetsRequest, aD as RecommendAssetsResponseJSON, aE as RecommendAssetsResponse, aF as RecommendationEntryJSON, n as RecommendationEntry, aV as EstimatedFeeJSON, aU as EstimatedFee, U as SwapVenueJSON, p as SwapVenue, V as SwapVenueRequestJSON, W as SwapVenueRequest, aJ as RouteRequestJSON, j as RouteRequest, s as TransferJSON, t as Transfer, X as SwapOperationJSON, Y as SwapOperation, a1 as SwapRouteJSON, a2 as SwapRoute, $ as SwapExactCoinInJSON, a0 as SwapExactCoinIn, a3 as SmartSwapExactCoinInJSON, a4 as SmartSwapExactCoinIn, Z as SwapExactCoinOutJSON, _ as SwapExactCoinOut, a5 as SwapJSON, a6 as Swap, a7 as EvmSwapJSON, a8 as EvmSwap, aW as OperationJSON, aX as Operation, aY as RouteResponseJSON, R as RouteResponse, ad as CosmWasmContractMsgJSON, ae as CosmWasmContractMsg, ah as PostHandlerJSON, ai as PostHandler, aZ as MsgsRequestJSON, h as MsgsRequest, y as MultiChainMsgJSON, M as MultiChainMsg, z as CosmosMsgJSON, C as CosmosMsg, I as IBCAddressJSON, q as IBCAddress, u as AxelarTransferJSON, v as AxelarTransfer, w as BankSendJSON, x as BankSend, P as SmartRelayFeeQuoteJSON, Q as SmartRelayFeeQuote, H as CCTPTransferJSON, J as CCTPTransfer, K as HyperlaneTransferJSON, L as HyperlaneTransfer, O as OPInitTransferJSON, N as OPInitTransfer, aj as ERC20ApprovalJSON, ak as ERC20Approval, al as SvmTxJSON, S as SvmTx, am as EvmTxJSON, E as EvmTx, F as CosmosTxJSON, G as CosmosTx,
|
|
2
|
-
export { ao as ApiError, af as AutopilotAction, ag as AutopilotMsg,
|
|
1
|
+
import { a9 as AffiliateJSON, aa as Affiliate, r as AssetJSON, b as Asset, az as AssetRecommendationJSON, ay as AssetRecommendation, ax as AssetsFromSourceRequestJSON, c as AssetsFromSourceRequest, aw as AssetsRequestJSON, A as AssetsRequest, aB as RecommendAssetsRequestJSON, aC as RecommendAssetsRequest, aD as RecommendAssetsResponseJSON, aE as RecommendAssetsResponse, aF as RecommendationEntryJSON, n as RecommendationEntry, aV as EstimatedFeeJSON, aU as EstimatedFee, U as SwapVenueJSON, p as SwapVenue, V as SwapVenueRequestJSON, W as SwapVenueRequest, aJ as RouteRequestJSON, j as RouteRequest, s as TransferJSON, t as Transfer, X as SwapOperationJSON, Y as SwapOperation, a1 as SwapRouteJSON, a2 as SwapRoute, $ as SwapExactCoinInJSON, a0 as SwapExactCoinIn, a3 as SmartSwapExactCoinInJSON, a4 as SmartSwapExactCoinIn, Z as SwapExactCoinOutJSON, _ as SwapExactCoinOut, a5 as SwapJSON, a6 as Swap, a7 as EvmSwapJSON, a8 as EvmSwap, aW as OperationJSON, aX as Operation, aY as RouteResponseJSON, R as RouteResponse, ad as CosmWasmContractMsgJSON, ae as CosmWasmContractMsg, ah as PostHandlerJSON, ai as PostHandler, aZ as MsgsRequestJSON, h as MsgsRequest, y as MultiChainMsgJSON, M as MultiChainMsg, z as CosmosMsgJSON, C as CosmosMsg, I as IBCAddressJSON, q as IBCAddress, u as AxelarTransferJSON, v as AxelarTransfer, w as BankSendJSON, x as BankSend, P as SmartRelayFeeQuoteJSON, Q as SmartRelayFeeQuote, H as CCTPTransferJSON, J as CCTPTransfer, K as HyperlaneTransferJSON, L as HyperlaneTransfer, O as OPInitTransferJSON, N as OPInitTransfer, aj as ERC20ApprovalJSON, ak as ERC20Approval, al as SvmTxJSON, S as SvmTx, am as EvmTxJSON, E as EvmTx, F as CosmosTxJSON, G as CosmosTx, b7 as TxJSON, T as Tx, b5 as MsgJSON, b6 as Msg, b8 as MsgsResponseJSON, i as MsgsResponse, an as DenomWithChainIDJSON, D as DenomWithChainID, ap as AssetOrErrorJSON, o as AssetOrError, aq as OriginAssetsRequestJSON, ar as OriginAssetsRequest, as as OriginAssetsResponseJSON, at as OriginAssetsResponse, ba as AssetBetweenChainsJSON, e as AssetBetweenChains, bb as AssetsBetweenChainsRequestJSON, d as AssetsBetweenChainsRequest, bc as AssetsBetweenChainsResponseJSON, bd as AssetsBetweenChainsResponse, aA as AssetRecommendationRequestJSON, m as AssetRecommendationRequest, bm as BridgesResponseJSON, bn as BridgesResponse, bo as BridgeJSON, B as Bridge, b1 as MsgsDirectRequestJSON, k as MsgsDirectRequest, au as SmartSwapOptionsJSON, av as SmartSwapOptions, ab as ChainAffiliatesJSON, a as ChainAffiliates, be as BalanceRequestChainEntryJSON, bf as BalanceRequestChainEntry, bg as BalanceRequestJSON, f as BalanceRequest, bh as BalanceResponseDenomEntryJSON, bi as BalanceResponseDenomEntry, bj as BalanceResponseChainEntryJSON, bk as BalanceResponseChainEntry, bl as BalanceResponseJSON, g as BalanceResponse } from './shared-IGtrUCgc.js';
|
|
2
|
+
export { ao as ApiError, af as AutopilotAction, ag as AutopilotMsg, b9 as BridgeType, aQ as ExperimentalFeature, aT as FeeType, b2 as MsgsDirectRequestBase, a_ as MsgsDirectRequestBaseJSON, b3 as MsgsDirectRequestGivenIn, a$ as MsgsDirectRequestGivenInJSON, b4 as MsgsDirectRequestGivenOut, b0 as MsgsDirectRequestGivenOutJSON, l as MsgsDirectResponse, aK as MsgsDirectResponseJSON, aS as MsgsWarning, aP as MsgsWarningType, ac as Reason, aL as RouteRequestBase, aG as RouteRequestBaseJSON, aM as RouteRequestGivenIn, aH as RouteRequestGivenInJSON, aN as RouteRequestGivenOut, aI as RouteRequestGivenOutJSON, aR as RouteWarning, aO as RouteWarningType } from './shared-IGtrUCgc.js';
|
|
3
3
|
|
|
4
4
|
type SubmitTxRequestJSON = {
|
|
5
5
|
tx: string;
|