@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.
Files changed (106) hide show
  1. package/dist/api/{getAssets.d.cts → getAssets.d.ts} +2 -2
  2. package/dist/api/getAssets.js +2 -0
  3. package/dist/api/{getAssetsBetweenChains.d.cts → getAssetsBetweenChains.d.ts} +2 -2
  4. package/dist/api/getAssetsBetweenChains.js +2 -0
  5. package/dist/api/{getBridges.d.cts → getBridges.d.ts} +2 -2
  6. package/dist/api/getBridges.js +2 -0
  7. package/dist/api/{getChains.d.cts → getChains.d.ts} +2 -2
  8. package/dist/api/getChains.js +2 -0
  9. package/dist/api/{getVenues.d.cts → getVenues.d.ts} +1 -1
  10. package/dist/api/getVenues.js +2 -0
  11. package/dist/api/{postAssetsFromSource.d.cts → postAssetsFromSource.d.ts} +2 -2
  12. package/dist/api/postAssetsFromSource.js +3 -0
  13. package/dist/api/{postBalances.d.cts → postBalances.d.ts} +3 -3
  14. package/dist/api/postBalances.js +2 -0
  15. package/dist/api/{postIbcOriginAssets.d.cts → postIbcOriginAssets.d.ts} +1 -1
  16. package/dist/api/postIbcOriginAssets.js +2 -0
  17. package/dist/api/{postMessages.d.cts → postMessages.d.ts} +186 -186
  18. package/dist/api/postMessages.js +2 -0
  19. package/dist/api/{postMessagesDirect.d.cts → postMessagesDirect.d.ts} +185 -185
  20. package/dist/api/postMessagesDirect.js +2 -0
  21. package/dist/api/{postRecommendAssets.d.cts → postRecommendAssets.d.ts} +2 -2
  22. package/dist/api/postRecommendAssets.js +2 -0
  23. package/dist/api/{postRoute.d.cts → postRoute.d.ts} +163 -163
  24. package/dist/api/postRoute.js +2 -0
  25. package/dist/api/{postSubmitTransaction.d.cts → postSubmitTransaction.d.ts} +1 -1
  26. package/dist/api/postSubmitTransaction.js +2 -0
  27. package/dist/api/{postTrackTransaction.d.cts → postTrackTransaction.d.ts} +1 -1
  28. package/dist/api/postTrackTransaction.js +2 -0
  29. package/dist/api/{postTransactionStatus.d.cts → postTransactionStatus.d.ts} +3 -3
  30. package/dist/api/postTransactionStatus.js +2 -0
  31. package/dist/chunk-33K6EESX.js +10 -0
  32. package/dist/{chunk-77ITCT75.cjs → chunk-4JJWOILI.js} +3 -5
  33. package/dist/chunk-BQTQJQ5E.js +10 -0
  34. package/dist/{chunk-ED2OY55G.cjs → chunk-BRMONS6A.js} +5 -11
  35. package/dist/{chunk-PNWIJSMA.cjs → chunk-C2EDPY6J.js} +3 -5
  36. package/dist/chunk-DW4U6YI6.js +10 -0
  37. package/dist/{chunk-G7BBDZ7C.cjs → chunk-F75DC5RW.js} +182 -208
  38. package/dist/{chunk-SFMBRLUS.cjs → chunk-GARVPN2H.js} +4 -6
  39. package/dist/{chunk-7SK3IFXJ.cjs → chunk-JTIHU43D.js} +1 -6
  40. package/dist/{chunk-VI7UMBQ7.cjs → chunk-KNV72XRZ.js} +3 -5
  41. package/dist/chunk-MGVXJ2U4.js +11 -0
  42. package/dist/chunk-MTMPHY3Y.js +9 -0
  43. package/dist/{chunk-5IAEEEOQ.cjs → chunk-PHTQQIAH.js} +220 -243
  44. package/dist/{chunk-RDOSNDAQ.cjs → chunk-PRQ2NHRZ.js} +3 -5
  45. package/dist/chunk-RDRDFJQE.js +10 -0
  46. package/dist/chunk-RMP3HM5N.js +14 -0
  47. package/dist/{chunk-SW3SEQMJ.cjs → chunk-SONZJVQM.js} +47 -51
  48. package/dist/{chunk-KZOSEIWH.cjs → chunk-SWYON2RG.js} +1 -4
  49. package/dist/{chunk-7OIZPQJB.cjs → chunk-TD63P2AG.js} +111 -174
  50. package/dist/{chunk-ZNXE6PUV.cjs → chunk-TW77BXMT.js} +7 -9
  51. package/dist/chunk-UNF72WYO.js +22 -0
  52. package/dist/{chunk-J4LI33TK.cjs → chunk-VMPFHQ7U.js} +9 -11
  53. package/dist/{chunk-4R6OCWRR.cjs → chunk-VQ5SIQWU.js} +1 -3
  54. package/dist/{chunk-HAR3IXDE.cjs → chunk-W6TBGBV3.js} +1 -31
  55. package/dist/{client-types-qvyKvyFh.d.cts → client-types-CxjtffyG.d.ts} +1 -1
  56. package/dist/{executeRoute-BKRpODCc.d.cts → executeRoute-BKvMVd1I.d.ts} +3 -3
  57. package/dist/{generateApi-C0amiydg.d.cts → generateApi-DqCp36fX.d.ts} +1 -1
  58. package/dist/{index.d.cts → index.d.ts} +25 -26
  59. package/dist/index.js +24 -0
  60. package/dist/public-functions/{executeRoute.d.cts → executeRoute.d.ts} +4 -4
  61. package/dist/public-functions/executeRoute.js +12 -0
  62. package/dist/public-functions/{getFeeInfoForChain.d.cts → getFeeInfoForChain.d.ts} +2 -2
  63. package/dist/public-functions/getFeeInfoForChain.js +5 -0
  64. package/dist/public-functions/{getRecommendedGasPrice.d.cts → getRecommendedGasPrice.d.ts} +1 -1
  65. package/dist/public-functions/getRecommendedGasPrice.js +7 -0
  66. package/dist/public-functions/{getSigningStargateClient.d.cts → getSigningStargateClient.d.ts} +1 -1
  67. package/dist/public-functions/getSigningStargateClient.js +4 -0
  68. package/dist/public-functions/{setApiOptions.d.cts → setApiOptions.d.ts} +2 -2
  69. package/dist/public-functions/setApiOptions.js +2 -0
  70. package/dist/public-functions/setClientOptions.d.ts +9 -0
  71. package/dist/public-functions/setClientOptions.js +4 -0
  72. package/dist/{setClientOptions-CT6CHI9I.d.cts → setClientOptions-DbanEIwL.d.ts} +2 -2
  73. package/package.json +6 -6
  74. package/dist/api/getAssets.cjs +0 -15
  75. package/dist/api/getAssetsBetweenChains.cjs +0 -11
  76. package/dist/api/getBridges.cjs +0 -11
  77. package/dist/api/getChains.cjs +0 -11
  78. package/dist/api/getVenues.cjs +0 -11
  79. package/dist/api/postAssetsFromSource.cjs +0 -12
  80. package/dist/api/postBalances.cjs +0 -11
  81. package/dist/api/postIbcOriginAssets.cjs +0 -11
  82. package/dist/api/postMessages.cjs +0 -11
  83. package/dist/api/postMessagesDirect.cjs +0 -11
  84. package/dist/api/postRecommendAssets.cjs +0 -11
  85. package/dist/api/postRoute.cjs +0 -11
  86. package/dist/api/postSubmitTransaction.cjs +0 -11
  87. package/dist/api/postTrackTransaction.cjs +0 -11
  88. package/dist/api/postTransactionStatus.cjs +0 -11
  89. package/dist/chunk-32MRDO7V.cjs +0 -12
  90. package/dist/chunk-44PBLFB5.cjs +0 -24
  91. package/dist/chunk-DAMZSSOH.cjs +0 -12
  92. package/dist/chunk-ISHM4QWP.cjs +0 -16
  93. package/dist/chunk-KDN7RCGP.cjs +0 -13
  94. package/dist/chunk-L5V5PASH.cjs +0 -12
  95. package/dist/chunk-LXYLWTNZ.cjs +0 -12
  96. package/dist/chunk-URLFWBSC.cjs +0 -11
  97. package/dist/index.cjs +0 -209
  98. package/dist/public-functions/executeRoute.cjs +0 -21
  99. package/dist/public-functions/getFeeInfoForChain.cjs +0 -14
  100. package/dist/public-functions/getRecommendedGasPrice.cjs +0 -16
  101. package/dist/public-functions/getSigningStargateClient.cjs +0 -13
  102. package/dist/public-functions/setApiOptions.cjs +0 -11
  103. package/dist/public-functions/setClientOptions.cjs +0 -13
  104. package/dist/public-functions/setClientOptions.d.cts +0 -9
  105. /package/dist/{apiState-CdzxTxYd.d.cts → apiState-CdzxTxYd.d.ts} +0 -0
  106. /package/dist/{swaggerTypes-O9-gvCT1.d.cts → swaggerTypes-O9-gvCT1.d.ts} +0 -0
@@ -1,19 +1,17 @@
1
- 'use strict';
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
- chunkHAR3IXDE_cjs.ApiState.client = chunkHAR3IXDE_cjs.createRequestClient({
5
+ ApiState.client = createRequestClient({
8
6
  baseUrl: options.apiUrl || "https://api.skip.build",
9
7
  apiKey: options.apiKey
10
8
  });
11
- chunkHAR3IXDE_cjs.ApiState.setClientInitialized();
9
+ ApiState.setClientInitialized();
12
10
  if (options.chainIdsToAffiliates) {
13
- chunkHAR3IXDE_cjs.ApiState.cumulativeAffiliateFeeBPS = validateChainIdsToAffiliates(options.chainIdsToAffiliates);
14
- chunkHAR3IXDE_cjs.ApiState.chainIdsToAffiliates = options.chainIdsToAffiliates;
11
+ ApiState.cumulativeAffiliateFeeBPS = validateChainIdsToAffiliates(options.chainIdsToAffiliates);
12
+ ApiState.chainIdsToAffiliates = options.chainIdsToAffiliates;
15
13
  }
16
- return chunkHAR3IXDE_cjs.ApiState.clientInitialized;
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
- exports.setApiOptions = setApiOptions;
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
- 'use strict';
2
-
3
- var chunkKZOSEIWH_cjs = require('./chunk-KZOSEIWH.cjs');
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 = chunkKZOSEIWH_cjs.DEFAULT_GAS_DENOM_OVERRIDES[chainId];
7
+ const gasDenom = DEFAULT_GAS_DENOM_OVERRIDES[chainId];
10
8
  if (gasDenom) {
11
9
  return gasDenom;
12
10
  }
13
- const chain = chunk7SK3IFXJ_cjs.chains().find((chain2) => chain2.chain_id === chainId);
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 = chunk7SK3IFXJ_cjs.chains().find((chain2) => chain2.chain_id === chainId);
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 chunkED2OY55G_cjs.ClientState.getSkipChains({ apiUrl, apiKey });
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 = chunk7SK3IFXJ_cjs.chains().find((chain2) => chain2.chain_id === chainId);
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
- exports.getFeeInfoForChain = getFeeInfoForChain;
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
- exports.BigNumber = BigNumber;
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
- exports.Api = Api;
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.cjs';
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.cjs';
2
- import { A as ApiRequest } from './generateApi-C0amiydg.cjs';
3
- import { S as SignerGetters, b as GasOptions, U as UserAddress } from './client-types-qvyKvyFh.cjs';
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.cjs';
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.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';
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.cjs';
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-BKRpODCc.cjs';
2
- import '../swaggerTypes-O9-gvCT1.cjs';
3
- import '../generateApi-C0amiydg.cjs';
4
- import '../client-types-qvyKvyFh.cjs';
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.cjs';
2
- import { S as SkipApiOptions } from '../apiState-CdzxTxYd.cjs';
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;
@@ -0,0 +1,5 @@
1
+ export { getFeeInfoForChain } from '../chunk-VMPFHQ7U.js';
2
+ import '../chunk-SWYON2RG.js';
3
+ import '../chunk-JTIHU43D.js';
4
+ import '../chunk-BRMONS6A.js';
5
+ import '../chunk-W6TBGBV3.js';
@@ -1,5 +1,5 @@
1
1
  import { GasPrice } from '@cosmjs/stargate';
2
- import { S as SkipApiOptions } from '../apiState-CdzxTxYd.cjs';
2
+ import { S as SkipApiOptions } from '../apiState-CdzxTxYd.js';
3
3
 
4
4
  type getRecommendedGasPriceProps = {
5
5
  chainId: string;
@@ -0,0 +1,7 @@
1
+ export { getRecommendedGasPrice } from '../chunk-UNF72WYO.js';
2
+ import '../chunk-VQ5SIQWU.js';
3
+ import '../chunk-VMPFHQ7U.js';
4
+ import '../chunk-SWYON2RG.js';
5
+ import '../chunk-JTIHU43D.js';
6
+ import '../chunk-BRMONS6A.js';
7
+ import '../chunk-W6TBGBV3.js';
@@ -1,4 +1,4 @@
1
- import { OfflineSigner } from '@cosmjs/proto-signing/build/signer';
1
+ import { OfflineSigner } from '@cosmjs/proto-signing';
2
2
  import { SigningStargateClient } from '@cosmjs/stargate';
3
3
 
4
4
  type getSigningStargateClientProps = {
@@ -0,0 +1,4 @@
1
+ export { getSigningStargateClient } from '../chunk-SONZJVQM.js';
2
+ import '../chunk-JTIHU43D.js';
3
+ import '../chunk-BRMONS6A.js';
4
+ import '../chunk-W6TBGBV3.js';
@@ -1,5 +1,5 @@
1
- import { S as SkipApiOptions } from '../apiState-CdzxTxYd.cjs';
2
- import { L as ChainAffiliates } from '../swaggerTypes-O9-gvCT1.cjs';
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,2 @@
1
+ export { setApiOptions } from '../chunk-TW77BXMT.js';
2
+ import '../chunk-W6TBGBV3.js';
@@ -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';
@@ -0,0 +1,4 @@
1
+ export { setClientOptions } from '../chunk-PHTQQIAH.js';
2
+ import '../chunk-TD63P2AG.js';
3
+ import '../chunk-BRMONS6A.js';
4
+ import '../chunk-W6TBGBV3.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.cjs';
4
- import { E as EndpointOptions } from './client-types-qvyKvyFh.cjs';
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.3",
4
+ "version": "1.0.5",
5
5
  "repository": "https://github.com/skip-mev/skip-go",
6
6
  "type": "module",
7
- "main": "./dist/index.cjs",
8
- "module": "./dist/index.cjs",
9
- "types": "./dist/index.d.cts",
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.cjs",
13
- "types": "./dist/index.d.cts"
12
+ "import": "./dist/index.js",
13
+ "types": "./dist/index.d.ts"
14
14
  },
15
15
  "./package.json": "./package.json"
16
16
  },
@@ -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
- });
@@ -1,11 +0,0 @@
1
- 'use strict';
2
-
3
- var chunkVI7UMBQ7_cjs = require('../chunk-VI7UMBQ7.cjs');
4
- require('../chunk-HAR3IXDE.cjs');
5
-
6
-
7
-
8
- Object.defineProperty(exports, "bridges", {
9
- enumerable: true,
10
- get: function () { return chunkVI7UMBQ7_cjs.bridges; }
11
- });
@@ -1,11 +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, "chains", {
9
- enumerable: true,
10
- get: function () { return chunkED2OY55G_cjs.chains; }
11
- });
@@ -1,11 +0,0 @@
1
- 'use strict';
2
-
3
- var chunkPNWIJSMA_cjs = require('../chunk-PNWIJSMA.cjs');
4
- require('../chunk-HAR3IXDE.cjs');
5
-
6
-
7
-
8
- Object.defineProperty(exports, "venues", {
9
- enumerable: true,
10
- get: function () { return chunkPNWIJSMA_cjs.venues; }
11
- });
@@ -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 chunkED2OY55G_cjs = require('../chunk-ED2OY55G.cjs');
4
- require('../chunk-HAR3IXDE.cjs');
5
-
6
-
7
-
8
- Object.defineProperty(exports, "balances", {
9
- enumerable: true,
10
- get: function () { return chunkED2OY55G_cjs.balances; }
11
- });
@@ -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 chunk32MRDO7V_cjs = require('../chunk-32MRDO7V.cjs');
4
- require('../chunk-HAR3IXDE.cjs');
5
-
6
-
7
-
8
- Object.defineProperty(exports, "messages", {
9
- enumerable: true,
10
- get: function () { return chunk32MRDO7V_cjs.messages; }
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
- });
@@ -1,11 +0,0 @@
1
- 'use strict';
2
-
3
- var chunkSFMBRLUS_cjs = require('../chunk-SFMBRLUS.cjs');
4
- require('../chunk-HAR3IXDE.cjs');
5
-
6
-
7
-
8
- Object.defineProperty(exports, "route", {
9
- enumerable: true,
10
- get: function () { return chunkSFMBRLUS_cjs.route; }
11
- });
@@ -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
- });