@skip-go/client 1.0.1 → 1.0.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.cjs +15 -0
- package/dist/api/{getAssets.d.ts → getAssets.d.cts} +2 -2
- package/dist/api/getAssetsBetweenChains.cjs +11 -0
- package/dist/api/{getAssetsBetweenChains.d.ts → getAssetsBetweenChains.d.cts} +2 -2
- package/dist/api/getBridges.cjs +11 -0
- package/dist/api/{getBridges.d.ts → getBridges.d.cts} +2 -2
- package/dist/api/getChains.cjs +11 -0
- package/dist/api/{getChains.d.ts → getChains.d.cts} +2 -2
- package/dist/api/getVenues.cjs +11 -0
- package/dist/api/{getVenues.d.ts → getVenues.d.cts} +1 -1
- package/dist/api/postAssetsFromSource.cjs +12 -0
- package/dist/api/{postAssetsFromSource.d.ts → postAssetsFromSource.d.cts} +2 -2
- package/dist/api/postBalances.cjs +11 -0
- package/dist/api/{postBalances.d.ts → postBalances.d.cts} +3 -3
- package/dist/api/postIbcOriginAssets.cjs +11 -0
- package/dist/api/{postIbcOriginAssets.d.ts → postIbcOriginAssets.d.cts} +1 -1
- package/dist/api/postMessages.cjs +11 -0
- package/dist/api/{postMessages.d.ts → postMessages.d.cts} +186 -186
- package/dist/api/postMessagesDirect.cjs +11 -0
- package/dist/api/{postMessagesDirect.d.ts → postMessagesDirect.d.cts} +185 -185
- package/dist/api/postRecommendAssets.cjs +11 -0
- package/dist/api/{postRecommendAssets.d.ts → postRecommendAssets.d.cts} +2 -2
- package/dist/api/postRoute.cjs +11 -0
- package/dist/api/{postRoute.d.ts → postRoute.d.cts} +163 -163
- package/dist/api/postSubmitTransaction.cjs +11 -0
- package/dist/api/{postSubmitTransaction.d.ts → postSubmitTransaction.d.cts} +1 -1
- package/dist/api/postTrackTransaction.cjs +11 -0
- package/dist/api/{postTrackTransaction.d.ts → postTrackTransaction.d.cts} +1 -1
- package/dist/api/postTransactionStatus.cjs +11 -0
- package/dist/api/{postTransactionStatus.d.ts → postTransactionStatus.d.cts} +3 -3
- package/dist/{chunk-FVSSCQ6C.js → chunk-32MRDO7V.cjs} +2 -2
- package/dist/chunk-44PBLFB5.cjs +24 -0
- package/dist/{chunk-GFRPLEJR.js → chunk-5IAEEEOQ.cjs} +217 -227
- package/dist/{chunk-Z4ZKOUGH.js → chunk-77ITCT75.cjs} +2 -2
- package/dist/{chunk-RT5TZAMU.js → chunk-7OIZPQJB.cjs} +101 -138
- package/dist/{chunk-CG5CQQBW.js → chunk-7SK3IFXJ.cjs} +32 -36
- package/dist/{chunk-2WHYWV4Y.js → chunk-DAMZSSOH.cjs} +2 -2
- package/dist/chunk-ED2OY55G.cjs +136 -0
- package/dist/chunk-G7BBDZ7C.cjs +1812 -0
- package/dist/chunk-HAR3IXDE.cjs +705 -0
- package/dist/{chunk-6BTWKTNM.js → chunk-ISHM4QWP.cjs} +4 -4
- package/dist/{chunk-4XWIXR2P.js → chunk-J4LI33TK.cjs} +18 -24
- package/dist/{chunk-YYNIFO2A.js → chunk-KDN7RCGP.cjs} +2 -2
- package/dist/{chunk-KYFTM3PI.js → chunk-L5V5PASH.cjs} +2 -2
- package/dist/{chunk-X2E2TKVR.js → chunk-LXYLWTNZ.cjs} +2 -2
- package/dist/{chunk-ZG23Z3WY.js → chunk-PNWIJSMA.cjs} +2 -2
- package/dist/{chunk-RE2QZJWE.js → chunk-RDOSNDAQ.cjs} +2 -2
- package/dist/chunk-SFMBRLUS.cjs +18 -0
- package/dist/{chunk-X2YPYBVN.js → chunk-SW3SEQMJ.cjs} +25 -30
- package/dist/{chunk-LRIPQQ4M.js → chunk-URLFWBSC.cjs} +2 -2
- package/dist/{chunk-5ZJBR5AQ.js → chunk-VI7UMBQ7.cjs} +2 -2
- package/dist/{chunk-PKPZTO4H.js → chunk-ZNXE6PUV.cjs} +9 -10
- package/dist/{client-types-CxjtffyG.d.ts → client-types-qvyKvyFh.d.cts} +1 -1
- package/dist/{executeRoute-BKvMVd1I.d.ts → executeRoute-BKRpODCc.d.cts} +3 -3
- package/dist/{generateApi-DqCp36fX.d.ts → generateApi-C0amiydg.d.cts} +1 -1
- package/dist/index.cjs +209 -0
- package/dist/{index.d.ts → index.d.cts} +25 -27
- package/dist/public-functions/executeRoute.cjs +21 -0
- package/dist/public-functions/{executeRoute.d.ts → executeRoute.d.cts} +4 -4
- package/dist/public-functions/getFeeInfoForChain.cjs +14 -0
- package/dist/public-functions/{getFeeInfoForChain.d.ts → getFeeInfoForChain.d.cts} +2 -2
- package/dist/public-functions/getRecommendedGasPrice.cjs +16 -0
- package/dist/public-functions/{getRecommendedGasPrice.d.ts → getRecommendedGasPrice.d.cts} +2 -2
- package/dist/public-functions/getSigningStargateClient.cjs +13 -0
- package/dist/public-functions/{getSigningStargateClient.d.ts → getSigningStargateClient.d.cts} +1 -1
- package/dist/public-functions/setApiOptions.cjs +11 -0
- package/dist/public-functions/{setApiOptions.d.ts → setApiOptions.d.cts} +2 -2
- package/dist/public-functions/setClientOptions.cjs +13 -0
- package/dist/public-functions/setClientOptions.d.cts +9 -0
- package/dist/{setClientOptions-DbanEIwL.d.ts → setClientOptions-CT6CHI9I.d.cts} +2 -2
- package/package.json +12 -3
- package/dist/api/getAssets.js +0 -15
- package/dist/api/getAssetsBetweenChains.js +0 -11
- package/dist/api/getBridges.js +0 -11
- package/dist/api/getChains.js +0 -11
- package/dist/api/getVenues.js +0 -11
- package/dist/api/postAssetsFromSource.js +0 -12
- package/dist/api/postBalances.js +0 -11
- package/dist/api/postIbcOriginAssets.js +0 -11
- package/dist/api/postMessages.js +0 -11
- package/dist/api/postMessagesDirect.js +0 -11
- package/dist/api/postRecommendAssets.js +0 -11
- package/dist/api/postRoute.js +0 -11
- package/dist/api/postSubmitTransaction.js +0 -11
- package/dist/api/postTrackTransaction.js +0 -11
- package/dist/api/postTransactionStatus.js +0 -11
- package/dist/chunk-5KVRQLI5.js +0 -17
- package/dist/chunk-6GJEXV5J.js +0 -130
- package/dist/chunk-ASPVKNJ7.js +0 -242
- package/dist/chunk-EQLA2SEZ.js +0 -2361
- package/dist/chunk-L2Q5RP6O.js +0 -25
- package/dist/index.js +0 -209
- package/dist/public-functions/executeRoute.js +0 -21
- package/dist/public-functions/getFeeInfoForChain.js +0 -14
- package/dist/public-functions/getRecommendedGasPrice.js +0 -16
- package/dist/public-functions/getSigningStargateClient.js +0 -13
- package/dist/public-functions/setApiOptions.js +0 -11
- package/dist/public-functions/setClientOptions.d.ts +0 -9
- package/dist/public-functions/setClientOptions.js +0 -13
- /package/dist/{apiState-CdzxTxYd.d.ts → apiState-CdzxTxYd.d.cts} +0 -0
- /package/dist/{chunk-VQ5SIQWU.js → chunk-4R6OCWRR.cjs} +0 -0
- /package/dist/{chunk-SWYON2RG.js → chunk-KZOSEIWH.cjs} +0 -0
- /package/dist/{swaggerTypes-O9-gvCT1.d.ts → swaggerTypes-O9-gvCT1.d.cts} +0 -0
|
@@ -1,36 +1,34 @@
|
|
|
1
|
-
export { A as AcknowledgementErrorDetails, a as Affiliate, bc as Api, b8 as ApiConfig, b as ApiError, c as Asset, d as AssetBetweenChains, e as AssetRecommendation, 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, D as BalanceResponseChainEntry, z as BalanceResponseDenomEntry, E as BankSend, F as BankSendWrapper, H as Bridge, I as BridgeType, C as CCTPTransfer, n as CCTPTransferInfo, p as CCTPTransferState, o as CCTPTransferTxs, q as CCTPTransferWrapper, J as Chain, L as ChainAffiliates, al as ChainTransaction, K as ChainType, ba as ContentType, M as ContractCallWithTokenError, N as ContractCallWithTokenErrorType, O as ContractCallWithTokenTxs, P as CosmWasmContractMsg, Q as CosmWasmContractMsgWrapper, b0 as CosmosModuleSupport, V as CosmosMsg, W as CosmosTx, X as CosmosTxWrapper, R as Erc20Approval, U as Error, T as ErrorDetail, aV as EurekaTransfer, aW as EurekaTransferInfo, aX as EurekaTransferWrapper, Y as EvmSwap, Z as EvmSwapWrapper, _ as EvmTx, $ as EvmTxWrapper, b3 as Fee, a2 as FeeAsset, b2 as FeeType, b6 as FullRequestParams, a4 as GRPCStatusCode, a3 as GoFastFee, G as GoFastTransfer, y as GoFastTransferInfo, w as GoFastTransferState, x as GoFastTransferTxs, bb as HttpClient, b9 as HttpResponse, a5 as HyperlaneTransfer, a6 as HyperlaneTransferInfo, a7 as HyperlaneTransferState, a8 as HyperlaneTransferTransactions, a9 as HyperlaneTransferWrapper, aa as IBCTransferInfo, b1 as IbcCapabilities, aY as LayerZeroTransfer, aZ as LayerZeroTransferInfo, aO as LayerZeroTransferState, ah as LayerZeroTransferTransactions, a_ as LayerZeroTransferWrapper, ab as Msg, ad as MultiChainMsg, ae as MultiChainMsgWrapper, aJ as OPInitTransfer, aL as OPInitTransferInfo, aN as OPInitTransferState, aM as OPInitTransferTxs, aK as OPInitTransferWrapper, af as Operation, ag as OptionalAsset, ai as Packet, aj as PacketError, ak as PacketErrorType, am as PostHandler, b4 as QueryParamsType, an as Reason, a$ as RecommendationRequest, b7 as RequestParams, b5 as ResponseFormat, ao as RoutePriceWarningType, ap as RouteResponse, aq as SendTokenError, ar as SendTokenErrorType, as as SendTokenTxs, S as SmartRelayFeeQuote, aC as SmartSwapExactCoinIn, aE as SmartSwapInWrapper, aD as SmartSwapOptions, r as StargateTransfer, u as StargateTransferInfo, s as StargateTransferState, t as StargateTransferTxs, v as StargateTransferWrapper, at as StatusError, au as StatusErrorType, a0 as SvmTx, a1 as SvmTxWrapper, av as Swap, aw as SwapExactCoinIn, ax as SwapExactCoinOut, ay as SwapInWrapper, az as SwapOperation, aA as SwapOutWrapper, aB as SwapRoute, aF as SwapVenue, aG as SwapWrapper, aH as TransactionExecutionErrorDetails, aI as TransactionState, aP as Transfer, aS as TransferAssetRelease, aQ as TransferEvent, aR as TransferState, aT as TransferStatus, aU as TransferWrapper, ac as Tx } from './swaggerTypes-O9-gvCT1.
|
|
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-
|
|
4
|
-
export { assets } from './api/getAssets.
|
|
5
|
-
export { assetsBetweenChains } from './api/getAssetsBetweenChains.
|
|
6
|
-
export { bridges } from './api/getBridges.
|
|
7
|
-
export { chains } from './api/getChains.
|
|
8
|
-
export { venues } from './api/getVenues.
|
|
9
|
-
export { ibcOriginAssets } from './api/postIbcOriginAssets.
|
|
10
|
-
export { MessagesRequest, MessagesResponse, messages } from './api/postMessages.
|
|
11
|
-
export { messagesDirect } from './api/postMessagesDirect.
|
|
12
|
-
export { recommendAssets } from './api/postRecommendAssets.
|
|
13
|
-
export { assetsFromSource } from './api/postAssetsFromSource.
|
|
14
|
-
export { BalanceRequest, BalanceResponse, balances } from './api/postBalances.
|
|
15
|
-
export { RouteRequest, route } from './api/postRoute.
|
|
16
|
-
export { submitTransaction } from './api/postSubmitTransaction.
|
|
17
|
-
export { trackTransaction } from './api/postTrackTransaction.
|
|
18
|
-
export { TxStatusResponse, transactionStatus } from './api/postTransactionStatus.
|
|
19
|
-
export { getSigningStargateClient, getSigningStargateClientProps } from './public-functions/getSigningStargateClient.
|
|
20
|
-
export { S as SkipClientOptions, s as setClientOptions } from './setClientOptions-
|
|
21
|
-
export { getRecommendedGasPrice } from './public-functions/getRecommendedGasPrice.
|
|
22
|
-
export { getFeeInfoForChain } from './public-functions/getFeeInfoForChain.
|
|
23
|
-
export { SetApiOptionsProps, setApiOptions } from './public-functions/setApiOptions.
|
|
24
|
-
import './generateApi-
|
|
1
|
+
export { A as AcknowledgementErrorDetails, a as Affiliate, bc as Api, b8 as ApiConfig, b as ApiError, c as Asset, d as AssetBetweenChains, e as AssetRecommendation, 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, D as BalanceResponseChainEntry, z as BalanceResponseDenomEntry, E as BankSend, F as BankSendWrapper, H as Bridge, I as BridgeType, C as CCTPTransfer, n as CCTPTransferInfo, p as CCTPTransferState, o as CCTPTransferTxs, q as CCTPTransferWrapper, J as Chain, L as ChainAffiliates, al as ChainTransaction, K as ChainType, ba as ContentType, M as ContractCallWithTokenError, N as ContractCallWithTokenErrorType, O as ContractCallWithTokenTxs, P as CosmWasmContractMsg, Q as CosmWasmContractMsgWrapper, b0 as CosmosModuleSupport, V as CosmosMsg, W as CosmosTx, X as CosmosTxWrapper, R as Erc20Approval, U as Error, T as ErrorDetail, aV as EurekaTransfer, aW as EurekaTransferInfo, aX as EurekaTransferWrapper, Y as EvmSwap, Z as EvmSwapWrapper, _ as EvmTx, $ as EvmTxWrapper, b3 as Fee, a2 as FeeAsset, b2 as FeeType, b6 as FullRequestParams, a4 as GRPCStatusCode, a3 as GoFastFee, G as GoFastTransfer, y as GoFastTransferInfo, w as GoFastTransferState, x as GoFastTransferTxs, bb as HttpClient, b9 as HttpResponse, a5 as HyperlaneTransfer, a6 as HyperlaneTransferInfo, a7 as HyperlaneTransferState, a8 as HyperlaneTransferTransactions, a9 as HyperlaneTransferWrapper, aa as IBCTransferInfo, b1 as IbcCapabilities, aY as LayerZeroTransfer, aZ as LayerZeroTransferInfo, aO as LayerZeroTransferState, ah as LayerZeroTransferTransactions, a_ as LayerZeroTransferWrapper, ab as Msg, ad as MultiChainMsg, ae as MultiChainMsgWrapper, aJ as OPInitTransfer, aL as OPInitTransferInfo, aN as OPInitTransferState, aM as OPInitTransferTxs, aK as OPInitTransferWrapper, af as Operation, ag as OptionalAsset, ai as Packet, aj as PacketError, ak as PacketErrorType, am as PostHandler, b4 as QueryParamsType, an as Reason, a$ as RecommendationRequest, b7 as RequestParams, b5 as ResponseFormat, ao as RoutePriceWarningType, ap as RouteResponse, aq as SendTokenError, ar as SendTokenErrorType, as as SendTokenTxs, S as SmartRelayFeeQuote, aC as SmartSwapExactCoinIn, aE as SmartSwapInWrapper, aD as SmartSwapOptions, r as StargateTransfer, u as StargateTransferInfo, s as StargateTransferState, t as StargateTransferTxs, v as StargateTransferWrapper, at as StatusError, au as StatusErrorType, a0 as SvmTx, a1 as SvmTxWrapper, av as Swap, aw as SwapExactCoinIn, ax as SwapExactCoinOut, ay as SwapInWrapper, az as SwapOperation, aA as SwapOutWrapper, aB as SwapRoute, aF as SwapVenue, aG as SwapWrapper, aH as TransactionExecutionErrorDetails, aI as TransactionState, aP as Transfer, aS as TransferAssetRelease, aQ as TransferEvent, aR as TransferState, aT as TransferStatus, aU as TransferWrapper, ac as Tx } from './swaggerTypes-O9-gvCT1.cjs';
|
|
2
|
+
export { E as ExecuteRouteOptions, T as TransactionCallbacks, e as executeRoute } from './executeRoute-BKRpODCc.cjs';
|
|
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-qvyKvyFh.cjs';
|
|
4
|
+
export { assets } from './api/getAssets.cjs';
|
|
5
|
+
export { assetsBetweenChains } from './api/getAssetsBetweenChains.cjs';
|
|
6
|
+
export { bridges } from './api/getBridges.cjs';
|
|
7
|
+
export { chains } from './api/getChains.cjs';
|
|
8
|
+
export { venues } from './api/getVenues.cjs';
|
|
9
|
+
export { ibcOriginAssets } from './api/postIbcOriginAssets.cjs';
|
|
10
|
+
export { MessagesRequest, MessagesResponse, messages } from './api/postMessages.cjs';
|
|
11
|
+
export { messagesDirect } from './api/postMessagesDirect.cjs';
|
|
12
|
+
export { recommendAssets } from './api/postRecommendAssets.cjs';
|
|
13
|
+
export { assetsFromSource } from './api/postAssetsFromSource.cjs';
|
|
14
|
+
export { BalanceRequest, BalanceResponse, balances } from './api/postBalances.cjs';
|
|
15
|
+
export { RouteRequest, route } from './api/postRoute.cjs';
|
|
16
|
+
export { submitTransaction } from './api/postSubmitTransaction.cjs';
|
|
17
|
+
export { trackTransaction } from './api/postTrackTransaction.cjs';
|
|
18
|
+
export { TxStatusResponse, transactionStatus } from './api/postTransactionStatus.cjs';
|
|
19
|
+
export { getSigningStargateClient, getSigningStargateClientProps } from './public-functions/getSigningStargateClient.cjs';
|
|
20
|
+
export { S as SkipClientOptions, s as setClientOptions } from './setClientOptions-CT6CHI9I.cjs';
|
|
21
|
+
export { getRecommendedGasPrice } from './public-functions/getRecommendedGasPrice.cjs';
|
|
22
|
+
export { getFeeInfoForChain } from './public-functions/getFeeInfoForChain.cjs';
|
|
23
|
+
export { SetApiOptionsProps, setApiOptions } from './public-functions/setApiOptions.cjs';
|
|
24
|
+
import './generateApi-C0amiydg.cjs';
|
|
25
25
|
import '@cosmjs/amino';
|
|
26
26
|
import '@cosmjs/proto-signing';
|
|
27
27
|
import '@cosmjs/stargate';
|
|
28
28
|
import 'viem';
|
|
29
29
|
import '@solana/wallet-adapter-base';
|
|
30
|
-
import './apiState-CdzxTxYd.
|
|
30
|
+
import './apiState-CdzxTxYd.cjs';
|
|
31
31
|
import '@cosmjs/proto-signing/build/signer';
|
|
32
|
-
import '@cosmjs/stargate/build/signingstargateclient';
|
|
33
|
-
import '@cosmjs/stargate/build/fee';
|
|
34
32
|
|
|
35
33
|
declare const GAS_STATION_CHAIN_IDS: string[];
|
|
36
34
|
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkG7BBDZ7C_cjs = require('../chunk-G7BBDZ7C.cjs');
|
|
4
|
+
require('../chunk-4R6OCWRR.cjs');
|
|
5
|
+
require('../chunk-KZOSEIWH.cjs');
|
|
6
|
+
require('../chunk-SW3SEQMJ.cjs');
|
|
7
|
+
require('../chunk-7SK3IFXJ.cjs');
|
|
8
|
+
require('../chunk-7OIZPQJB.cjs');
|
|
9
|
+
require('../chunk-32MRDO7V.cjs');
|
|
10
|
+
require('../chunk-L5V5PASH.cjs');
|
|
11
|
+
require('../chunk-KDN7RCGP.cjs');
|
|
12
|
+
require('../chunk-DAMZSSOH.cjs');
|
|
13
|
+
require('../chunk-ED2OY55G.cjs');
|
|
14
|
+
require('../chunk-HAR3IXDE.cjs');
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
Object.defineProperty(exports, "executeRoute", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function () { return chunkG7BBDZ7C_cjs.executeRoute; }
|
|
21
|
+
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { E as ExecuteRouteOptions, e as executeRoute } from '../executeRoute-
|
|
2
|
-
import '../swaggerTypes-O9-gvCT1.
|
|
3
|
-
import '../generateApi-
|
|
4
|
-
import '../client-types-
|
|
1
|
+
export { E as ExecuteRouteOptions, e as executeRoute } from '../executeRoute-BKRpODCc.cjs';
|
|
2
|
+
import '../swaggerTypes-O9-gvCT1.cjs';
|
|
3
|
+
import '../generateApi-C0amiydg.cjs';
|
|
4
|
+
import '../client-types-qvyKvyFh.cjs';
|
|
5
5
|
import '@cosmjs/amino';
|
|
6
6
|
import '@cosmjs/proto-signing';
|
|
7
7
|
import '@cosmjs/stargate';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkJ4LI33TK_cjs = require('../chunk-J4LI33TK.cjs');
|
|
4
|
+
require('../chunk-KZOSEIWH.cjs');
|
|
5
|
+
require('../chunk-7SK3IFXJ.cjs');
|
|
6
|
+
require('../chunk-ED2OY55G.cjs');
|
|
7
|
+
require('../chunk-HAR3IXDE.cjs');
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
Object.defineProperty(exports, "getFeeInfoForChain", {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: function () { return chunkJ4LI33TK_cjs.getFeeInfoForChain; }
|
|
14
|
+
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a2 as FeeAsset } from '../swaggerTypes-O9-gvCT1.
|
|
2
|
-
import { S as SkipApiOptions } from '../apiState-CdzxTxYd.
|
|
1
|
+
import { a2 as FeeAsset } from '../swaggerTypes-O9-gvCT1.cjs';
|
|
2
|
+
import { S as SkipApiOptions } from '../apiState-CdzxTxYd.cjs';
|
|
3
3
|
|
|
4
4
|
type GetFeeInfoForChainProps = {
|
|
5
5
|
chainId: string;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunk44PBLFB5_cjs = require('../chunk-44PBLFB5.cjs');
|
|
4
|
+
require('../chunk-4R6OCWRR.cjs');
|
|
5
|
+
require('../chunk-J4LI33TK.cjs');
|
|
6
|
+
require('../chunk-KZOSEIWH.cjs');
|
|
7
|
+
require('../chunk-7SK3IFXJ.cjs');
|
|
8
|
+
require('../chunk-ED2OY55G.cjs');
|
|
9
|
+
require('../chunk-HAR3IXDE.cjs');
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
Object.defineProperty(exports, "getRecommendedGasPrice", {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function () { return chunk44PBLFB5_cjs.getRecommendedGasPrice; }
|
|
16
|
+
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { GasPrice } from '@cosmjs/stargate
|
|
2
|
-
import { S as SkipApiOptions } from '../apiState-CdzxTxYd.
|
|
1
|
+
import { GasPrice } from '@cosmjs/stargate';
|
|
2
|
+
import { S as SkipApiOptions } from '../apiState-CdzxTxYd.cjs';
|
|
3
3
|
|
|
4
4
|
type getRecommendedGasPriceProps = {
|
|
5
5
|
chainId: string;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkSW3SEQMJ_cjs = require('../chunk-SW3SEQMJ.cjs');
|
|
4
|
+
require('../chunk-7SK3IFXJ.cjs');
|
|
5
|
+
require('../chunk-ED2OY55G.cjs');
|
|
6
|
+
require('../chunk-HAR3IXDE.cjs');
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
Object.defineProperty(exports, "getSigningStargateClient", {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function () { return chunkSW3SEQMJ_cjs.getSigningStargateClient; }
|
|
13
|
+
});
|
package/dist/public-functions/{getSigningStargateClient.d.ts → getSigningStargateClient.d.cts}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OfflineSigner } from '@cosmjs/proto-signing/build/signer';
|
|
2
|
-
import { SigningStargateClient } from '@cosmjs/stargate
|
|
2
|
+
import { SigningStargateClient } from '@cosmjs/stargate';
|
|
3
3
|
|
|
4
4
|
type getSigningStargateClientProps = {
|
|
5
5
|
chainId: string;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkZNXE6PUV_cjs = require('../chunk-ZNXE6PUV.cjs');
|
|
4
|
+
require('../chunk-HAR3IXDE.cjs');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
Object.defineProperty(exports, "setApiOptions", {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function () { return chunkZNXE6PUV_cjs.setApiOptions; }
|
|
11
|
+
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as SkipApiOptions } from '../apiState-CdzxTxYd.
|
|
2
|
-
import { L as ChainAffiliates } from '../swaggerTypes-O9-gvCT1.
|
|
1
|
+
import { S as SkipApiOptions } from '../apiState-CdzxTxYd.cjs';
|
|
2
|
+
import { L as ChainAffiliates } from '../swaggerTypes-O9-gvCT1.cjs';
|
|
3
3
|
|
|
4
4
|
type SetApiOptionsProps = {
|
|
5
5
|
chainIdsToAffiliates?: Record<string, ChainAffiliates>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunk5IAEEEOQ_cjs = require('../chunk-5IAEEEOQ.cjs');
|
|
4
|
+
require('../chunk-7OIZPQJB.cjs');
|
|
5
|
+
require('../chunk-ED2OY55G.cjs');
|
|
6
|
+
require('../chunk-HAR3IXDE.cjs');
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
Object.defineProperty(exports, "setClientOptions", {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function () { return chunk5IAEEEOQ_cjs.setClientOptions; }
|
|
13
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { s as setClientOptions } from '../setClientOptions-CT6CHI9I.cjs';
|
|
2
|
+
import '@cosmjs/proto-signing';
|
|
3
|
+
import '@cosmjs/stargate';
|
|
4
|
+
import '../apiState-CdzxTxYd.cjs';
|
|
5
|
+
import '../client-types-qvyKvyFh.cjs';
|
|
6
|
+
import '@cosmjs/amino';
|
|
7
|
+
import 'viem';
|
|
8
|
+
import '@solana/wallet-adapter-base';
|
|
9
|
+
import '../swaggerTypes-O9-gvCT1.cjs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { GeneratedType } from '@cosmjs/proto-signing';
|
|
2
2
|
import { AminoConverters } from '@cosmjs/stargate';
|
|
3
|
-
import { S as SkipApiOptions } from './apiState-CdzxTxYd.
|
|
4
|
-
import { E as EndpointOptions } from './client-types-
|
|
3
|
+
import { S as SkipApiOptions } from './apiState-CdzxTxYd.cjs';
|
|
4
|
+
import { E as EndpointOptions } from './client-types-qvyKvyFh.cjs';
|
|
5
5
|
|
|
6
6
|
type SkipClientOptions = SkipApiOptions & {
|
|
7
7
|
endpointOptions?: {
|
package/package.json
CHANGED
|
@@ -1,10 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skip-go/client",
|
|
3
3
|
"description": "JavaScript SDK for Skip Go API",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.3",
|
|
5
5
|
"repository": "https://github.com/skip-mev/skip-go",
|
|
6
|
-
"
|
|
7
|
-
"
|
|
6
|
+
"type": "module",
|
|
7
|
+
"main": "./dist/index.cjs",
|
|
8
|
+
"module": "./dist/index.cjs",
|
|
9
|
+
"types": "./dist/index.d.cts",
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"import": "./dist/index.cjs",
|
|
13
|
+
"types": "./dist/index.d.cts"
|
|
14
|
+
},
|
|
15
|
+
"./package.json": "./package.json"
|
|
16
|
+
},
|
|
8
17
|
"files": [
|
|
9
18
|
"dist/*",
|
|
10
19
|
"*.js",
|
package/dist/api/getAssets.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunk6GJEXV5J_js = require('../chunk-6GJEXV5J.js');
|
|
4
|
-
require('../chunk-ASPVKNJ7.js');
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
Object.defineProperty(exports, "assets", {
|
|
9
|
-
enumerable: true,
|
|
10
|
-
get: function () { return chunk6GJEXV5J_js.assets; }
|
|
11
|
-
});
|
|
12
|
-
Object.defineProperty(exports, "transformAssetsMap", {
|
|
13
|
-
enumerable: true,
|
|
14
|
-
get: function () { return chunk6GJEXV5J_js.transformAssetsMap; }
|
|
15
|
-
});
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkLRIPQQ4M_js = require('../chunk-LRIPQQ4M.js');
|
|
4
|
-
require('../chunk-ASPVKNJ7.js');
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
Object.defineProperty(exports, "assetsBetweenChains", {
|
|
9
|
-
enumerable: true,
|
|
10
|
-
get: function () { return chunkLRIPQQ4M_js.assetsBetweenChains; }
|
|
11
|
-
});
|
package/dist/api/getBridges.js
DELETED
package/dist/api/getChains.js
DELETED
package/dist/api/getVenues.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunk6BTWKTNM_js = require('../chunk-6BTWKTNM.js');
|
|
4
|
-
require('../chunk-6GJEXV5J.js');
|
|
5
|
-
require('../chunk-ASPVKNJ7.js');
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
Object.defineProperty(exports, "assetsFromSource", {
|
|
10
|
-
enumerable: true,
|
|
11
|
-
get: function () { return chunk6BTWKTNM_js.assetsFromSource; }
|
|
12
|
-
});
|
package/dist/api/postBalances.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkRE2QZJWE_js = require('../chunk-RE2QZJWE.js');
|
|
4
|
-
require('../chunk-ASPVKNJ7.js');
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
Object.defineProperty(exports, "ibcOriginAssets", {
|
|
9
|
-
enumerable: true,
|
|
10
|
-
get: function () { return chunkRE2QZJWE_js.ibcOriginAssets; }
|
|
11
|
-
});
|
package/dist/api/postMessages.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkZ4ZKOUGH_js = require('../chunk-Z4ZKOUGH.js');
|
|
4
|
-
require('../chunk-ASPVKNJ7.js');
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
Object.defineProperty(exports, "recommendAssets", {
|
|
9
|
-
enumerable: true,
|
|
10
|
-
get: function () { return chunkZ4ZKOUGH_js.recommendAssets; }
|
|
11
|
-
});
|
package/dist/api/postRoute.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkKYFTM3PI_js = require('../chunk-KYFTM3PI.js');
|
|
4
|
-
require('../chunk-ASPVKNJ7.js');
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
Object.defineProperty(exports, "submitTransaction", {
|
|
9
|
-
enumerable: true,
|
|
10
|
-
get: function () { return chunkKYFTM3PI_js.submitTransaction; }
|
|
11
|
-
});
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkYYNIFO2A_js = require('../chunk-YYNIFO2A.js');
|
|
4
|
-
require('../chunk-ASPVKNJ7.js');
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
Object.defineProperty(exports, "trackTransaction", {
|
|
9
|
-
enumerable: true,
|
|
10
|
-
get: function () { return chunkYYNIFO2A_js.trackTransaction; }
|
|
11
|
-
});
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunk2WHYWV4Y_js = require('../chunk-2WHYWV4Y.js');
|
|
4
|
-
require('../chunk-ASPVKNJ7.js');
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
Object.defineProperty(exports, "transactionStatus", {
|
|
9
|
-
enumerable: true,
|
|
10
|
-
get: function () { return chunk2WHYWV4Y_js.transactionStatus; }
|
|
11
|
-
});
|
package/dist/chunk-5KVRQLI5.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkASPVKNJ7_js = require('./chunk-ASPVKNJ7.js');
|
|
4
|
-
|
|
5
|
-
// src/api/postRoute.ts
|
|
6
|
-
var route = (request) => chunkASPVKNJ7_js.__async(void 0, null, function* () {
|
|
7
|
-
const requestWithAffiliateFeeBps = chunkASPVKNJ7_js.__spreadProps(chunkASPVKNJ7_js.__spreadValues({}, request), {
|
|
8
|
-
cumulativeAffiliateFeeBps: chunkASPVKNJ7_js.ApiState.cumulativeAffiliateFeeBPS
|
|
9
|
-
});
|
|
10
|
-
return chunkASPVKNJ7_js.api({
|
|
11
|
-
methodName: "getRouteV2",
|
|
12
|
-
method: "post",
|
|
13
|
-
path: "/v2/fungible/route"
|
|
14
|
-
})(requestWithAffiliateFeeBps);
|
|
15
|
-
});
|
|
16
|
-
|
|
17
|
-
exports.route = route;
|
package/dist/chunk-6GJEXV5J.js
DELETED
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkASPVKNJ7_js = require('./chunk-ASPVKNJ7.js');
|
|
4
|
-
|
|
5
|
-
// src/private-functions/getMainnetAndTestnetChains.ts
|
|
6
|
-
var getMainnetAndTestnetChains = (apiOptions) => chunkASPVKNJ7_js.__async(void 0, null, function* () {
|
|
7
|
-
const [mainnetRes, testnetRes] = yield Promise.all([
|
|
8
|
-
chains(chunkASPVKNJ7_js.__spreadValues({
|
|
9
|
-
includeEvm: true,
|
|
10
|
-
includeSvm: true
|
|
11
|
-
}, apiOptions)),
|
|
12
|
-
chains(chunkASPVKNJ7_js.__spreadValues({
|
|
13
|
-
includeEvm: true,
|
|
14
|
-
includeSvm: true,
|
|
15
|
-
onlyTestnets: true
|
|
16
|
-
}, apiOptions))
|
|
17
|
-
]);
|
|
18
|
-
const combinedChains = [...mainnetRes != null ? mainnetRes : [], ...testnetRes != null ? testnetRes : []];
|
|
19
|
-
ClientState.skipChains = combinedChains;
|
|
20
|
-
return combinedChains;
|
|
21
|
-
});
|
|
22
|
-
|
|
23
|
-
// src/api/getAssets.ts
|
|
24
|
-
var assets = chunkASPVKNJ7_js.api({
|
|
25
|
-
methodName: "getAssets",
|
|
26
|
-
path: "/v2/fungible/assets",
|
|
27
|
-
transformResponse: (response) => {
|
|
28
|
-
return transformAssetsMap(response.chainToAssetsMap);
|
|
29
|
-
},
|
|
30
|
-
onSuccess: (response, options) => {
|
|
31
|
-
if ((options == null ? void 0 : options.includeEvmAssets) && (options == null ? void 0 : options.includeSvmAssets) && (options == null ? void 0 : options.includeCw20Assets)) {
|
|
32
|
-
ClientState.skipAssets = response;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
});
|
|
36
|
-
var transformAssetsMap = (input) => Object.entries(input != null ? input : {}).reduce(
|
|
37
|
-
(acc, [chainId, { assets: assets2 }]) => {
|
|
38
|
-
acc[chainId] = (assets2 != null ? assets2 : []).map((asset) => asset);
|
|
39
|
-
return acc;
|
|
40
|
-
},
|
|
41
|
-
{}
|
|
42
|
-
);
|
|
43
|
-
|
|
44
|
-
// src/private-functions/getMainnetAndTestnetAssets.ts
|
|
45
|
-
var getMainnetAndTestnetAssets = (_a) => chunkASPVKNJ7_js.__async(void 0, null, function* () {
|
|
46
|
-
var _b = _a, {
|
|
47
|
-
chainId
|
|
48
|
-
} = _b, apiOptions = chunkASPVKNJ7_js.__objRest(_b, [
|
|
49
|
-
"chainId"
|
|
50
|
-
]);
|
|
51
|
-
const [assetsMainnet, assetsTestnet] = yield Promise.all([
|
|
52
|
-
assets(chunkASPVKNJ7_js.__spreadValues({
|
|
53
|
-
chainIds: chainId ? [chainId] : void 0
|
|
54
|
-
}, apiOptions)),
|
|
55
|
-
assets(chunkASPVKNJ7_js.__spreadValues({
|
|
56
|
-
chainIds: chainId ? [chainId] : void 0,
|
|
57
|
-
onlyTestnets: true
|
|
58
|
-
}, apiOptions))
|
|
59
|
-
]);
|
|
60
|
-
const mainnet = assetsMainnet;
|
|
61
|
-
const testnet = assetsTestnet;
|
|
62
|
-
const merged = chunkASPVKNJ7_js.__spreadValues(chunkASPVKNJ7_js.__spreadValues({}, mainnet), testnet);
|
|
63
|
-
ClientState.skipAssets = merged;
|
|
64
|
-
return merged;
|
|
65
|
-
});
|
|
66
|
-
|
|
67
|
-
// src/api/postBalances.ts
|
|
68
|
-
var balances = chunkASPVKNJ7_js.api({
|
|
69
|
-
methodName: "getBalances",
|
|
70
|
-
method: "post",
|
|
71
|
-
path: "/v2/info/balances",
|
|
72
|
-
onSuccess: (response, options) => {
|
|
73
|
-
if (!options) {
|
|
74
|
-
ClientState.skipBalances = response;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
});
|
|
78
|
-
|
|
79
|
-
// src/state/clientState.ts
|
|
80
|
-
var ClientState = class {
|
|
81
|
-
static getSkipChains(apiOptions) {
|
|
82
|
-
return chunkASPVKNJ7_js.__async(this, null, function* () {
|
|
83
|
-
if (this.skipChains) {
|
|
84
|
-
return this.skipChains;
|
|
85
|
-
}
|
|
86
|
-
const response = yield getMainnetAndTestnetChains(apiOptions);
|
|
87
|
-
this.skipChains = response;
|
|
88
|
-
return response;
|
|
89
|
-
});
|
|
90
|
-
}
|
|
91
|
-
static getSkipAssets(props) {
|
|
92
|
-
return chunkASPVKNJ7_js.__async(this, null, function* () {
|
|
93
|
-
if (this.skipAssets) {
|
|
94
|
-
return this.skipAssets;
|
|
95
|
-
}
|
|
96
|
-
const response = yield getMainnetAndTestnetAssets(props);
|
|
97
|
-
this.skipAssets = response;
|
|
98
|
-
return response;
|
|
99
|
-
});
|
|
100
|
-
}
|
|
101
|
-
static getSkipBalances() {
|
|
102
|
-
return chunkASPVKNJ7_js.__async(this, null, function* () {
|
|
103
|
-
if (this.skipBalances) {
|
|
104
|
-
return this.skipBalances;
|
|
105
|
-
}
|
|
106
|
-
const response = yield balances();
|
|
107
|
-
this.skipBalances = response;
|
|
108
|
-
return response;
|
|
109
|
-
});
|
|
110
|
-
}
|
|
111
|
-
};
|
|
112
|
-
ClientState.signingStargateClientByChainId = {};
|
|
113
|
-
|
|
114
|
-
// src/api/getChains.ts
|
|
115
|
-
var chains = chunkASPVKNJ7_js.api({
|
|
116
|
-
methodName: "getChains",
|
|
117
|
-
path: "/v2/info/chains",
|
|
118
|
-
transformResponse: (response) => response.chains,
|
|
119
|
-
onSuccess: (response, options) => {
|
|
120
|
-
if ((options == null ? void 0 : options.includeEvm) && (options == null ? void 0 : options.includeSvm)) {
|
|
121
|
-
ClientState.skipChains = response;
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
});
|
|
125
|
-
|
|
126
|
-
exports.ClientState = ClientState;
|
|
127
|
-
exports.assets = assets;
|
|
128
|
-
exports.balances = balances;
|
|
129
|
-
exports.chains = chains;
|
|
130
|
-
exports.transformAssetsMap = transformAssetsMap;
|