@skip-go/client 1.0.3 → 1.0.5
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.cts → getAssets.d.ts} +2 -2
- package/dist/api/getAssets.js +2 -0
- package/dist/api/{getAssetsBetweenChains.d.cts → getAssetsBetweenChains.d.ts} +2 -2
- package/dist/api/getAssetsBetweenChains.js +2 -0
- package/dist/api/{getBridges.d.cts → getBridges.d.ts} +2 -2
- package/dist/api/getBridges.js +2 -0
- package/dist/api/{getChains.d.cts → getChains.d.ts} +2 -2
- package/dist/api/getChains.js +2 -0
- package/dist/api/{getVenues.d.cts → getVenues.d.ts} +1 -1
- package/dist/api/getVenues.js +2 -0
- package/dist/api/{postAssetsFromSource.d.cts → postAssetsFromSource.d.ts} +2 -2
- package/dist/api/postAssetsFromSource.js +3 -0
- package/dist/api/{postBalances.d.cts → postBalances.d.ts} +3 -3
- package/dist/api/postBalances.js +2 -0
- package/dist/api/{postIbcOriginAssets.d.cts → postIbcOriginAssets.d.ts} +1 -1
- package/dist/api/postIbcOriginAssets.js +2 -0
- package/dist/api/{postMessages.d.cts → postMessages.d.ts} +186 -186
- package/dist/api/postMessages.js +2 -0
- package/dist/api/{postMessagesDirect.d.cts → postMessagesDirect.d.ts} +185 -185
- package/dist/api/postMessagesDirect.js +2 -0
- package/dist/api/{postRecommendAssets.d.cts → postRecommendAssets.d.ts} +2 -2
- package/dist/api/postRecommendAssets.js +2 -0
- package/dist/api/{postRoute.d.cts → postRoute.d.ts} +163 -163
- package/dist/api/postRoute.js +2 -0
- package/dist/api/{postSubmitTransaction.d.cts → postSubmitTransaction.d.ts} +1 -1
- package/dist/api/postSubmitTransaction.js +2 -0
- package/dist/api/{postTrackTransaction.d.cts → postTrackTransaction.d.ts} +1 -1
- package/dist/api/postTrackTransaction.js +2 -0
- package/dist/api/{postTransactionStatus.d.cts → postTransactionStatus.d.ts} +3 -3
- package/dist/api/postTransactionStatus.js +2 -0
- package/dist/chunk-33K6EESX.js +10 -0
- package/dist/{chunk-77ITCT75.cjs → chunk-4JJWOILI.js} +3 -5
- package/dist/chunk-BQTQJQ5E.js +10 -0
- package/dist/{chunk-ED2OY55G.cjs → chunk-BRMONS6A.js} +5 -11
- package/dist/{chunk-PNWIJSMA.cjs → chunk-C2EDPY6J.js} +3 -5
- package/dist/chunk-DW4U6YI6.js +10 -0
- package/dist/{chunk-G7BBDZ7C.cjs → chunk-F75DC5RW.js} +182 -208
- package/dist/{chunk-SFMBRLUS.cjs → chunk-GARVPN2H.js} +4 -6
- package/dist/{chunk-7SK3IFXJ.cjs → chunk-JTIHU43D.js} +1 -6
- package/dist/{chunk-VI7UMBQ7.cjs → chunk-KNV72XRZ.js} +3 -5
- package/dist/chunk-MGVXJ2U4.js +11 -0
- package/dist/chunk-MTMPHY3Y.js +9 -0
- package/dist/{chunk-5IAEEEOQ.cjs → chunk-PHTQQIAH.js} +220 -243
- package/dist/{chunk-RDOSNDAQ.cjs → chunk-PRQ2NHRZ.js} +3 -5
- package/dist/chunk-RDRDFJQE.js +10 -0
- package/dist/chunk-RMP3HM5N.js +14 -0
- package/dist/{chunk-SW3SEQMJ.cjs → chunk-SONZJVQM.js} +47 -51
- package/dist/{chunk-KZOSEIWH.cjs → chunk-SWYON2RG.js} +1 -4
- package/dist/{chunk-7OIZPQJB.cjs → chunk-TD63P2AG.js} +111 -174
- package/dist/{chunk-ZNXE6PUV.cjs → chunk-TW77BXMT.js} +7 -9
- package/dist/chunk-UNF72WYO.js +22 -0
- package/dist/{chunk-J4LI33TK.cjs → chunk-VMPFHQ7U.js} +9 -11
- package/dist/{chunk-4R6OCWRR.cjs → chunk-VQ5SIQWU.js} +1 -3
- package/dist/{chunk-HAR3IXDE.cjs → chunk-W6TBGBV3.js} +1 -31
- package/dist/{client-types-qvyKvyFh.d.cts → client-types-CxjtffyG.d.ts} +1 -1
- package/dist/{executeRoute-BKRpODCc.d.cts → executeRoute-BKvMVd1I.d.ts} +3 -3
- package/dist/{generateApi-C0amiydg.d.cts → generateApi-DqCp36fX.d.ts} +1 -1
- package/dist/{index.d.cts → index.d.ts} +25 -26
- package/dist/index.js +24 -0
- package/dist/public-functions/{executeRoute.d.cts → executeRoute.d.ts} +4 -4
- package/dist/public-functions/executeRoute.js +12 -0
- package/dist/public-functions/{getFeeInfoForChain.d.cts → getFeeInfoForChain.d.ts} +2 -2
- package/dist/public-functions/getFeeInfoForChain.js +5 -0
- package/dist/public-functions/{getRecommendedGasPrice.d.cts → getRecommendedGasPrice.d.ts} +1 -1
- package/dist/public-functions/getRecommendedGasPrice.js +7 -0
- package/dist/public-functions/{getSigningStargateClient.d.cts → getSigningStargateClient.d.ts} +1 -1
- package/dist/public-functions/getSigningStargateClient.js +4 -0
- package/dist/public-functions/{setApiOptions.d.cts → setApiOptions.d.ts} +2 -2
- package/dist/public-functions/setApiOptions.js +2 -0
- package/dist/public-functions/setClientOptions.d.ts +9 -0
- package/dist/public-functions/setClientOptions.js +4 -0
- package/dist/{setClientOptions-CT6CHI9I.d.cts → setClientOptions-DbanEIwL.d.ts} +2 -2
- package/package.json +6 -6
- package/dist/api/getAssets.cjs +0 -15
- package/dist/api/getAssetsBetweenChains.cjs +0 -11
- package/dist/api/getBridges.cjs +0 -11
- package/dist/api/getChains.cjs +0 -11
- package/dist/api/getVenues.cjs +0 -11
- package/dist/api/postAssetsFromSource.cjs +0 -12
- package/dist/api/postBalances.cjs +0 -11
- package/dist/api/postIbcOriginAssets.cjs +0 -11
- package/dist/api/postMessages.cjs +0 -11
- package/dist/api/postMessagesDirect.cjs +0 -11
- package/dist/api/postRecommendAssets.cjs +0 -11
- package/dist/api/postRoute.cjs +0 -11
- package/dist/api/postSubmitTransaction.cjs +0 -11
- package/dist/api/postTrackTransaction.cjs +0 -11
- package/dist/api/postTransactionStatus.cjs +0 -11
- package/dist/chunk-32MRDO7V.cjs +0 -12
- package/dist/chunk-44PBLFB5.cjs +0 -24
- package/dist/chunk-DAMZSSOH.cjs +0 -12
- package/dist/chunk-ISHM4QWP.cjs +0 -16
- package/dist/chunk-KDN7RCGP.cjs +0 -13
- package/dist/chunk-L5V5PASH.cjs +0 -12
- package/dist/chunk-LXYLWTNZ.cjs +0 -12
- package/dist/chunk-URLFWBSC.cjs +0 -11
- package/dist/index.cjs +0 -209
- package/dist/public-functions/executeRoute.cjs +0 -21
- package/dist/public-functions/getFeeInfoForChain.cjs +0 -14
- package/dist/public-functions/getRecommendedGasPrice.cjs +0 -16
- package/dist/public-functions/getSigningStargateClient.cjs +0 -13
- package/dist/public-functions/setApiOptions.cjs +0 -11
- package/dist/public-functions/setClientOptions.cjs +0 -13
- package/dist/public-functions/setClientOptions.d.cts +0 -9
- /package/dist/{apiState-CdzxTxYd.d.cts → apiState-CdzxTxYd.d.ts} +0 -0
- /package/dist/{swaggerTypes-O9-gvCT1.d.cts → swaggerTypes-O9-gvCT1.d.ts} +0 -0
|
@@ -1,19 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var chunkHAR3IXDE_cjs = require('./chunk-HAR3IXDE.cjs');
|
|
1
|
+
import { ApiState, createRequestClient } from './chunk-W6TBGBV3.js';
|
|
4
2
|
|
|
5
3
|
// src/public-functions/setApiOptions.ts
|
|
6
4
|
var setApiOptions = (options = {}) => {
|
|
7
|
-
|
|
5
|
+
ApiState.client = createRequestClient({
|
|
8
6
|
baseUrl: options.apiUrl || "https://api.skip.build",
|
|
9
7
|
apiKey: options.apiKey
|
|
10
8
|
});
|
|
11
|
-
|
|
9
|
+
ApiState.setClientInitialized();
|
|
12
10
|
if (options.chainIdsToAffiliates) {
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
ApiState.cumulativeAffiliateFeeBPS = validateChainIdsToAffiliates(options.chainIdsToAffiliates);
|
|
12
|
+
ApiState.chainIdsToAffiliates = options.chainIdsToAffiliates;
|
|
15
13
|
}
|
|
16
|
-
return
|
|
14
|
+
return ApiState.clientInitialized;
|
|
17
15
|
};
|
|
18
16
|
function validateChainIdsToAffiliates(chainIdsToAffiliates) {
|
|
19
17
|
const affiliatesArray = Object.values(chainIdsToAffiliates).map((chain) => chain.affiliates).filter((a) => a !== void 0);
|
|
@@ -43,4 +41,4 @@ function validateChainIdsToAffiliates(chainIdsToAffiliates) {
|
|
|
43
41
|
return firstAffiliateBasisPointsFee?.toFixed(0);
|
|
44
42
|
}
|
|
45
43
|
|
|
46
|
-
|
|
44
|
+
export { setApiOptions };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { BigNumber } from './chunk-VQ5SIQWU.js';
|
|
2
|
+
import { getFeeInfoForChain } from './chunk-VMPFHQ7U.js';
|
|
3
|
+
import { Decimal } from '@cosmjs/math';
|
|
4
|
+
import { GasPrice } from '@cosmjs/stargate';
|
|
5
|
+
|
|
6
|
+
var getRecommendedGasPrice = async (props) => {
|
|
7
|
+
const feeInfo = await getFeeInfoForChain(props);
|
|
8
|
+
if (!feeInfo || !feeInfo.gasPrice) {
|
|
9
|
+
return void 0;
|
|
10
|
+
}
|
|
11
|
+
let price = feeInfo.gasPrice.average;
|
|
12
|
+
if (price === "") {
|
|
13
|
+
price = feeInfo.gasPrice.high;
|
|
14
|
+
}
|
|
15
|
+
if (price === "") {
|
|
16
|
+
price = feeInfo.gasPrice.low;
|
|
17
|
+
}
|
|
18
|
+
if (!price) return;
|
|
19
|
+
return new GasPrice(Decimal.fromUserInput(BigNumber(price).toFixed(), 18), feeInfo.denom);
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export { getRecommendedGasPrice };
|
|
@@ -1,16 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var chunk7SK3IFXJ_cjs = require('./chunk-7SK3IFXJ.cjs');
|
|
5
|
-
var chunkED2OY55G_cjs = require('./chunk-ED2OY55G.cjs');
|
|
1
|
+
import { DEFAULT_GAS_DENOM_OVERRIDES } from './chunk-SWYON2RG.js';
|
|
2
|
+
import { chains } from './chunk-JTIHU43D.js';
|
|
3
|
+
import { ClientState } from './chunk-BRMONS6A.js';
|
|
6
4
|
|
|
7
5
|
// src/private-functions/getDefaultGasTokenForChain.ts
|
|
8
6
|
var getDefaultGasTokenForChain = async (chainId) => {
|
|
9
|
-
const gasDenom =
|
|
7
|
+
const gasDenom = DEFAULT_GAS_DENOM_OVERRIDES[chainId];
|
|
10
8
|
if (gasDenom) {
|
|
11
9
|
return gasDenom;
|
|
12
10
|
}
|
|
13
|
-
const chain =
|
|
11
|
+
const chain = chains().find((chain2) => chain2.chain_id === chainId);
|
|
14
12
|
if (!chain) {
|
|
15
13
|
return void 0;
|
|
16
14
|
}
|
|
@@ -39,7 +37,7 @@ var getDefaultGasTokenForChain = async (chainId) => {
|
|
|
39
37
|
return chain.fees.fee_tokens[0]?.denom;
|
|
40
38
|
};
|
|
41
39
|
var getStakingTokensForChain = (chainId) => {
|
|
42
|
-
const chain =
|
|
40
|
+
const chain = chains().find((chain2) => chain2.chain_id === chainId);
|
|
43
41
|
if (!chain) {
|
|
44
42
|
throw new Error(
|
|
45
43
|
`getStakingTokensForChain error: failed to find chain id '${chainId}' in registry`
|
|
@@ -53,7 +51,7 @@ var getStakingTokensForChain = (chainId) => {
|
|
|
53
51
|
|
|
54
52
|
// src/public-functions/getFeeInfoForChain.ts
|
|
55
53
|
var getFeeInfoForChain = async ({ chainId, apiUrl, apiKey }) => {
|
|
56
|
-
const skipChains = await
|
|
54
|
+
const skipChains = await ClientState.getSkipChains({ apiUrl, apiKey });
|
|
57
55
|
const skipChain = skipChains.find((chain2) => chain2.chainId === chainId);
|
|
58
56
|
if (!skipChain) {
|
|
59
57
|
return void 0;
|
|
@@ -69,7 +67,7 @@ var getFeeInfoForChain = async ({ chainId, apiUrl, apiKey }) => {
|
|
|
69
67
|
if (skipFeeInfo && skipFeeInfo.gasPrice !== null) {
|
|
70
68
|
return skipFeeInfo;
|
|
71
69
|
}
|
|
72
|
-
const chain =
|
|
70
|
+
const chain = chains().find((chain2) => chain2.chain_id === chainId);
|
|
73
71
|
if (!chain) {
|
|
74
72
|
return void 0;
|
|
75
73
|
}
|
|
@@ -92,4 +90,4 @@ var getFeeInfoForChain = async ({ chainId, apiUrl, apiKey }) => {
|
|
|
92
90
|
};
|
|
93
91
|
};
|
|
94
92
|
|
|
95
|
-
|
|
93
|
+
export { getFeeInfoForChain };
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
1
|
// ../../node_modules/bignumber.js/bignumber.mjs
|
|
4
2
|
var isNumeric = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i;
|
|
5
3
|
var mathceil = Math.ceil;
|
|
@@ -1343,4 +1341,4 @@ function toFixedPoint(str, e, z) {
|
|
|
1343
1341
|
}
|
|
1344
1342
|
var BigNumber = clone();
|
|
1345
1343
|
|
|
1346
|
-
|
|
1344
|
+
export { BigNumber };
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
1
|
// src/types/swaggerTypes.ts
|
|
4
2
|
var AutopilotAction = /* @__PURE__ */ ((AutopilotAction2) => {
|
|
5
3
|
AutopilotAction2["LIQUID_STAKE"] = "LIQUID_STAKE";
|
|
@@ -674,32 +672,4 @@ var ApiState = class _ApiState {
|
|
|
674
672
|
}
|
|
675
673
|
};
|
|
676
674
|
|
|
677
|
-
|
|
678
|
-
exports.ApiState = ApiState;
|
|
679
|
-
exports.AutopilotAction = AutopilotAction;
|
|
680
|
-
exports.AxelarTransferState = AxelarTransferState;
|
|
681
|
-
exports.AxelarTransferType = AxelarTransferType;
|
|
682
|
-
exports.BridgeType = BridgeType;
|
|
683
|
-
exports.CCTPTransferState = CCTPTransferState;
|
|
684
|
-
exports.ChainType = ChainType;
|
|
685
|
-
exports.ContentType = ContentType;
|
|
686
|
-
exports.ContractCallWithTokenErrorType = ContractCallWithTokenErrorType;
|
|
687
|
-
exports.FeeType = FeeType;
|
|
688
|
-
exports.GoFastTransferState = GoFastTransferState;
|
|
689
|
-
exports.HttpClient = HttpClient;
|
|
690
|
-
exports.HyperlaneTransferState = HyperlaneTransferState;
|
|
691
|
-
exports.LayerZeroTransferState = LayerZeroTransferState;
|
|
692
|
-
exports.OPInitTransferState = OPInitTransferState;
|
|
693
|
-
exports.PacketErrorType = PacketErrorType;
|
|
694
|
-
exports.Reason = Reason;
|
|
695
|
-
exports.RoutePriceWarningType = RoutePriceWarningType;
|
|
696
|
-
exports.SendTokenErrorType = SendTokenErrorType;
|
|
697
|
-
exports.StargateTransferState = StargateTransferState;
|
|
698
|
-
exports.StatusErrorType = StatusErrorType;
|
|
699
|
-
exports.TransactionState = TransactionState;
|
|
700
|
-
exports.TransferState = TransferState;
|
|
701
|
-
exports.api = api;
|
|
702
|
-
exports.createRequestClient = createRequestClient;
|
|
703
|
-
exports.pollingApi = pollingApi;
|
|
704
|
-
exports.toCamel = toCamel;
|
|
705
|
-
exports.wait = wait;
|
|
675
|
+
export { Api, ApiState, AutopilotAction, AxelarTransferState, AxelarTransferType, BridgeType, CCTPTransferState, ChainType, ContentType, ContractCallWithTokenErrorType, FeeType, GoFastTransferState, HttpClient, HyperlaneTransferState, LayerZeroTransferState, OPInitTransferState, PacketErrorType, Reason, RoutePriceWarningType, SendTokenErrorType, StargateTransferState, StatusErrorType, TransactionState, TransferState, api, createRequestClient, pollingApi, toCamel, wait };
|
|
@@ -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 { a2 as FeeAsset, K as ChainType, V as CosmosMsg } from './swaggerTypes-O9-gvCT1.
|
|
6
|
+
import { a2 as FeeAsset, K as ChainType, V as CosmosMsg } from './swaggerTypes-O9-gvCT1.js';
|
|
7
7
|
|
|
8
8
|
/** Common Types */
|
|
9
9
|
type UserAddress = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { aT as TransferStatus, R as Erc20Approval, ap as RouteResponse, V as CosmosMsg } from './swaggerTypes-O9-gvCT1.
|
|
2
|
-
import { A as ApiRequest } from './generateApi-
|
|
3
|
-
import { S as SignerGetters, b as GasOptions, U as UserAddress } from './client-types-
|
|
1
|
+
import { aT as TransferStatus, R as Erc20Approval, ap as RouteResponse, V as CosmosMsg } from './swaggerTypes-O9-gvCT1.js';
|
|
2
|
+
import { A as ApiRequest } from './generateApi-DqCp36fX.js';
|
|
3
|
+
import { S as SignerGetters, b as GasOptions, U as UserAddress } from './client-types-CxjtffyG.js';
|
|
4
4
|
|
|
5
5
|
type CallbackStatus = "success" | "error" | "pending" | "completed";
|
|
6
6
|
type TransactionCallbacks = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { bc as Api } from './swaggerTypes-O9-gvCT1.
|
|
1
|
+
import { bc as Api } from './swaggerTypes-O9-gvCT1.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 ? {
|
|
@@ -1,34 +1,33 @@
|
|
|
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.js';
|
|
2
|
+
export { E as ExecuteRouteOptions, T as TransactionCallbacks, e as executeRoute } from './executeRoute-BKvMVd1I.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-CxjtffyG.js';
|
|
4
|
+
export { assets } from './api/getAssets.js';
|
|
5
|
+
export { assetsBetweenChains } from './api/getAssetsBetweenChains.js';
|
|
6
|
+
export { bridges } from './api/getBridges.js';
|
|
7
|
+
export { chains } from './api/getChains.js';
|
|
8
|
+
export { venues } from './api/getVenues.js';
|
|
9
|
+
export { ibcOriginAssets } from './api/postIbcOriginAssets.js';
|
|
10
|
+
export { MessagesRequest, MessagesResponse, messages } from './api/postMessages.js';
|
|
11
|
+
export { messagesDirect } from './api/postMessagesDirect.js';
|
|
12
|
+
export { recommendAssets } from './api/postRecommendAssets.js';
|
|
13
|
+
export { assetsFromSource } from './api/postAssetsFromSource.js';
|
|
14
|
+
export { BalanceRequest, BalanceResponse, balances } from './api/postBalances.js';
|
|
15
|
+
export { RouteRequest, route } from './api/postRoute.js';
|
|
16
|
+
export { submitTransaction } from './api/postSubmitTransaction.js';
|
|
17
|
+
export { trackTransaction } from './api/postTrackTransaction.js';
|
|
18
|
+
export { TxStatusResponse, transactionStatus } from './api/postTransactionStatus.js';
|
|
19
|
+
export { getSigningStargateClient, getSigningStargateClientProps } from './public-functions/getSigningStargateClient.js';
|
|
20
|
+
export { S as SkipClientOptions, s as setClientOptions } from './setClientOptions-DbanEIwL.js';
|
|
21
|
+
export { getRecommendedGasPrice } from './public-functions/getRecommendedGasPrice.js';
|
|
22
|
+
export { getFeeInfoForChain } from './public-functions/getFeeInfoForChain.js';
|
|
23
|
+
export { SetApiOptionsProps, setApiOptions } from './public-functions/setApiOptions.js';
|
|
24
|
+
import './generateApi-DqCp36fX.js';
|
|
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.
|
|
31
|
-
import '@cosmjs/proto-signing/build/signer';
|
|
30
|
+
import './apiState-CdzxTxYd.js';
|
|
32
31
|
|
|
33
32
|
declare const GAS_STATION_CHAIN_IDS: string[];
|
|
34
33
|
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export { executeRoute } from './chunk-F75DC5RW.js';
|
|
2
|
+
export { getRecommendedGasPrice } from './chunk-UNF72WYO.js';
|
|
3
|
+
import './chunk-VQ5SIQWU.js';
|
|
4
|
+
export { getFeeInfoForChain } from './chunk-VMPFHQ7U.js';
|
|
5
|
+
export { GAS_STATION_CHAIN_IDS } from './chunk-SWYON2RG.js';
|
|
6
|
+
export { getSigningStargateClient } from './chunk-SONZJVQM.js';
|
|
7
|
+
import './chunk-JTIHU43D.js';
|
|
8
|
+
export { setApiOptions } from './chunk-TW77BXMT.js';
|
|
9
|
+
export { setClientOptions } from './chunk-PHTQQIAH.js';
|
|
10
|
+
import './chunk-TD63P2AG.js';
|
|
11
|
+
export { ibcOriginAssets } from './chunk-PRQ2NHRZ.js';
|
|
12
|
+
export { messages } from './chunk-DW4U6YI6.js';
|
|
13
|
+
export { messagesDirect } from './chunk-BQTQJQ5E.js';
|
|
14
|
+
export { recommendAssets } from './chunk-4JJWOILI.js';
|
|
15
|
+
export { route } from './chunk-GARVPN2H.js';
|
|
16
|
+
export { submitTransaction } from './chunk-RDRDFJQE.js';
|
|
17
|
+
export { trackTransaction } from './chunk-MGVXJ2U4.js';
|
|
18
|
+
export { transactionStatus } from './chunk-33K6EESX.js';
|
|
19
|
+
export { assetsBetweenChains } from './chunk-MTMPHY3Y.js';
|
|
20
|
+
export { bridges } from './chunk-KNV72XRZ.js';
|
|
21
|
+
export { venues } from './chunk-C2EDPY6J.js';
|
|
22
|
+
export { assetsFromSource } from './chunk-RMP3HM5N.js';
|
|
23
|
+
export { assets, balances, chains } from './chunk-BRMONS6A.js';
|
|
24
|
+
export { Api, AutopilotAction, AxelarTransferState, AxelarTransferType, BridgeType, CCTPTransferState, ChainType, ContentType, ContractCallWithTokenErrorType, FeeType, GoFastTransferState, HttpClient, HyperlaneTransferState, LayerZeroTransferState, OPInitTransferState, PacketErrorType, Reason, RoutePriceWarningType, SendTokenErrorType, StargateTransferState, StatusErrorType, TransactionState, TransferState } from './chunk-W6TBGBV3.js';
|
|
@@ -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-BKvMVd1I.js';
|
|
2
|
+
import '../swaggerTypes-O9-gvCT1.js';
|
|
3
|
+
import '../generateApi-DqCp36fX.js';
|
|
4
|
+
import '../client-types-CxjtffyG.js';
|
|
5
5
|
import '@cosmjs/amino';
|
|
6
6
|
import '@cosmjs/proto-signing';
|
|
7
7
|
import '@cosmjs/stargate';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export { executeRoute } from '../chunk-F75DC5RW.js';
|
|
2
|
+
import '../chunk-VQ5SIQWU.js';
|
|
3
|
+
import '../chunk-SWYON2RG.js';
|
|
4
|
+
import '../chunk-SONZJVQM.js';
|
|
5
|
+
import '../chunk-JTIHU43D.js';
|
|
6
|
+
import '../chunk-TD63P2AG.js';
|
|
7
|
+
import '../chunk-DW4U6YI6.js';
|
|
8
|
+
import '../chunk-RDRDFJQE.js';
|
|
9
|
+
import '../chunk-MGVXJ2U4.js';
|
|
10
|
+
import '../chunk-33K6EESX.js';
|
|
11
|
+
import '../chunk-BRMONS6A.js';
|
|
12
|
+
import '../chunk-W6TBGBV3.js';
|
|
@@ -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.js';
|
|
2
|
+
import { S as SkipApiOptions } from '../apiState-CdzxTxYd.js';
|
|
3
3
|
|
|
4
4
|
type GetFeeInfoForChainProps = {
|
|
5
5
|
chainId: string;
|
|
@@ -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.js';
|
|
2
|
+
import { L as ChainAffiliates } from '../swaggerTypes-O9-gvCT1.js';
|
|
3
3
|
|
|
4
4
|
type SetApiOptionsProps = {
|
|
5
5
|
chainIdsToAffiliates?: Record<string, ChainAffiliates>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { s as setClientOptions } from '../setClientOptions-DbanEIwL.js';
|
|
2
|
+
import '@cosmjs/proto-signing';
|
|
3
|
+
import '@cosmjs/stargate';
|
|
4
|
+
import '../apiState-CdzxTxYd.js';
|
|
5
|
+
import '../client-types-CxjtffyG.js';
|
|
6
|
+
import '@cosmjs/amino';
|
|
7
|
+
import 'viem';
|
|
8
|
+
import '@solana/wallet-adapter-base';
|
|
9
|
+
import '../swaggerTypes-O9-gvCT1.js';
|
|
@@ -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.js';
|
|
4
|
+
import { E as EndpointOptions } from './client-types-CxjtffyG.js';
|
|
5
5
|
|
|
6
6
|
type SkipClientOptions = SkipApiOptions & {
|
|
7
7
|
endpointOptions?: {
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
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.5",
|
|
5
5
|
"repository": "https://github.com/skip-mev/skip-go",
|
|
6
6
|
"type": "module",
|
|
7
|
-
"main": "./dist/index.
|
|
8
|
-
"module": "./dist/index.
|
|
9
|
-
"types": "./dist/index.d.
|
|
7
|
+
"main": "./dist/index.js",
|
|
8
|
+
"module": "./dist/index.js",
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
10
10
|
"exports": {
|
|
11
11
|
".": {
|
|
12
|
-
"import": "./dist/index.
|
|
13
|
-
"types": "./dist/index.d.
|
|
12
|
+
"import": "./dist/index.js",
|
|
13
|
+
"types": "./dist/index.d.ts"
|
|
14
14
|
},
|
|
15
15
|
"./package.json": "./package.json"
|
|
16
16
|
},
|
package/dist/api/getAssets.cjs
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkED2OY55G_cjs = require('../chunk-ED2OY55G.cjs');
|
|
4
|
-
require('../chunk-HAR3IXDE.cjs');
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
Object.defineProperty(exports, "assets", {
|
|
9
|
-
enumerable: true,
|
|
10
|
-
get: function () { return chunkED2OY55G_cjs.assets; }
|
|
11
|
-
});
|
|
12
|
-
Object.defineProperty(exports, "transformAssetsMap", {
|
|
13
|
-
enumerable: true,
|
|
14
|
-
get: function () { return chunkED2OY55G_cjs.transformAssetsMap; }
|
|
15
|
-
});
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkURLFWBSC_cjs = require('../chunk-URLFWBSC.cjs');
|
|
4
|
-
require('../chunk-HAR3IXDE.cjs');
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
Object.defineProperty(exports, "assetsBetweenChains", {
|
|
9
|
-
enumerable: true,
|
|
10
|
-
get: function () { return chunkURLFWBSC_cjs.assetsBetweenChains; }
|
|
11
|
-
});
|
package/dist/api/getBridges.cjs
DELETED
package/dist/api/getChains.cjs
DELETED
package/dist/api/getVenues.cjs
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkISHM4QWP_cjs = require('../chunk-ISHM4QWP.cjs');
|
|
4
|
-
require('../chunk-ED2OY55G.cjs');
|
|
5
|
-
require('../chunk-HAR3IXDE.cjs');
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
Object.defineProperty(exports, "assetsFromSource", {
|
|
10
|
-
enumerable: true,
|
|
11
|
-
get: function () { return chunkISHM4QWP_cjs.assetsFromSource; }
|
|
12
|
-
});
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkRDOSNDAQ_cjs = require('../chunk-RDOSNDAQ.cjs');
|
|
4
|
-
require('../chunk-HAR3IXDE.cjs');
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
Object.defineProperty(exports, "ibcOriginAssets", {
|
|
9
|
-
enumerable: true,
|
|
10
|
-
get: function () { return chunkRDOSNDAQ_cjs.ibcOriginAssets; }
|
|
11
|
-
});
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkLXYLWTNZ_cjs = require('../chunk-LXYLWTNZ.cjs');
|
|
4
|
-
require('../chunk-HAR3IXDE.cjs');
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
Object.defineProperty(exports, "messagesDirect", {
|
|
9
|
-
enumerable: true,
|
|
10
|
-
get: function () { return chunkLXYLWTNZ_cjs.messagesDirect; }
|
|
11
|
-
});
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunk77ITCT75_cjs = require('../chunk-77ITCT75.cjs');
|
|
4
|
-
require('../chunk-HAR3IXDE.cjs');
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
Object.defineProperty(exports, "recommendAssets", {
|
|
9
|
-
enumerable: true,
|
|
10
|
-
get: function () { return chunk77ITCT75_cjs.recommendAssets; }
|
|
11
|
-
});
|
package/dist/api/postRoute.cjs
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkL5V5PASH_cjs = require('../chunk-L5V5PASH.cjs');
|
|
4
|
-
require('../chunk-HAR3IXDE.cjs');
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
Object.defineProperty(exports, "submitTransaction", {
|
|
9
|
-
enumerable: true,
|
|
10
|
-
get: function () { return chunkL5V5PASH_cjs.submitTransaction; }
|
|
11
|
-
});
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkKDN7RCGP_cjs = require('../chunk-KDN7RCGP.cjs');
|
|
4
|
-
require('../chunk-HAR3IXDE.cjs');
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
Object.defineProperty(exports, "trackTransaction", {
|
|
9
|
-
enumerable: true,
|
|
10
|
-
get: function () { return chunkKDN7RCGP_cjs.trackTransaction; }
|
|
11
|
-
});
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkDAMZSSOH_cjs = require('../chunk-DAMZSSOH.cjs');
|
|
4
|
-
require('../chunk-HAR3IXDE.cjs');
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
Object.defineProperty(exports, "transactionStatus", {
|
|
9
|
-
enumerable: true,
|
|
10
|
-
get: function () { return chunkDAMZSSOH_cjs.transactionStatus; }
|
|
11
|
-
});
|