@skip-go/client 1.2.2 → 1.3.0

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 (80) hide show
  1. package/dist/api/getAssets.d.ts +1 -1
  2. package/dist/api/getAssets.js +3 -3
  3. package/dist/api/getAssetsBetweenChains.d.ts +1 -1
  4. package/dist/api/getAssetsBetweenChains.js +3 -3
  5. package/dist/api/getBridges.d.ts +3 -2
  6. package/dist/api/getBridges.js +3 -3
  7. package/dist/api/getChains.d.ts +1 -1
  8. package/dist/api/getChains.js +3 -3
  9. package/dist/api/getVenues.js +3 -3
  10. package/dist/api/postAssetsFromSource.d.ts +1 -1
  11. package/dist/api/postAssetsFromSource.js +4 -4
  12. package/dist/api/postBalances.d.ts +2 -2
  13. package/dist/api/postBalances.js +3 -3
  14. package/dist/api/postIbcOriginAssets.js +3 -3
  15. package/dist/api/postMessages.d.ts +3 -2
  16. package/dist/api/postMessages.js +3 -3
  17. package/dist/api/postMessagesDirect.d.ts +3 -1
  18. package/dist/api/postMessagesDirect.js +3 -3
  19. package/dist/api/postRecommendAssets.d.ts +1 -1
  20. package/dist/api/postRecommendAssets.js +3 -3
  21. package/dist/api/postRoute.d.ts +3 -2
  22. package/dist/api/postRoute.js +3 -3
  23. package/dist/api/postSubmit.d.ts +2 -2
  24. package/dist/api/postSubmit.js +3 -3
  25. package/dist/api/postSubmitTransaction.js +3 -3
  26. package/dist/api/postTrackTransaction.d.ts +2 -2
  27. package/dist/api/postTrackTransaction.js +3 -3
  28. package/dist/api/postTransactionStatus.d.ts +14 -2
  29. package/dist/api/postTransactionStatus.js +3 -3
  30. package/dist/{callbacks-CPh0dr86.d.ts → callbacks-DK2GxU0a.d.ts} +1 -1
  31. package/dist/{chunk-4CXSWHQ6.js → chunk-2R5COFPS.js} +1 -1
  32. package/dist/chunk-43P4WRGN.js +183 -0
  33. package/dist/{chunk-UCUUIQHV.js → chunk-4DI7G6TH.js} +1 -1
  34. package/dist/{chunk-4XUWIG3Z.js → chunk-6ULKULTX.js} +1 -1
  35. package/dist/{chunk-OFBEDG4X.js → chunk-6UMMVC2P.js} +1 -1
  36. package/dist/{chunk-35T3HXEL.js → chunk-7ZG7HNNC.js} +2 -2
  37. package/dist/{chunk-A4M35XLF.js → chunk-C6NHVJ3R.js} +2 -2
  38. package/dist/{chunk-O4IHON37.js → chunk-CGZ5DA2T.js} +1 -1
  39. package/dist/{chunk-COJAW7OW.js → chunk-ERPZHRBM.js} +3 -3
  40. package/dist/{chunk-72PK3PKI.js → chunk-F65QOYUA.js} +2 -2
  41. package/dist/{chunk-6SQTOOYP.js → chunk-GOD6ESBZ.js} +14 -14
  42. package/dist/{chunk-PFJUQWAV.js → chunk-HIJ6YOTK.js} +10 -10
  43. package/dist/{chunk-2YOWXBHH.js → chunk-HS2D6FKN.js} +1 -1
  44. package/dist/{chunk-XZV42PVV.js → chunk-I4AMZAHH.js} +3 -2
  45. package/dist/{chunk-UXUJNZOA.js → chunk-KYLULQOS.js} +7 -1
  46. package/dist/{chunk-CXFOPLGZ.js → chunk-MAOMQHG5.js} +1 -1
  47. package/dist/{chunk-A7FWC5OX.js → chunk-NZVZH6OA.js} +1 -1
  48. package/dist/{chunk-DF3WCTFB.js → chunk-PIQZD2VE.js} +1 -1
  49. package/dist/{chunk-NQZYCFAA.js → chunk-QPJEHGY7.js} +1 -1
  50. package/dist/{chunk-YABXOO3H.js → chunk-SS5LQKBL.js} +5 -1
  51. package/dist/{chunk-U6NXCWXE.js → chunk-UZKIIX6A.js} +1 -1
  52. package/dist/{chunk-Z3Z7A3YS.js → chunk-VUOOTNLG.js} +1 -1
  53. package/dist/{chunk-7MWYHGMD.js → chunk-YLMQS52U.js} +2 -2
  54. package/dist/{chunk-RE4YYQCE.js → chunk-YYXOIRHZ.js} +1 -1
  55. package/dist/{chunk-THUBVEVZ.js → chunk-ZTDLGX7X.js} +1 -1
  56. package/dist/{client-types-DRmsTfeT.d.ts → client-types-DuWWc2_J.d.ts} +1 -1
  57. package/dist/{generateApi-D7KXciAd.d.ts → generateApi-DvFEIUee.d.ts} +2 -1
  58. package/dist/index.d.ts +21 -6
  59. package/dist/index.js +32 -26
  60. package/dist/public-functions/executeRoute.d.ts +4 -4
  61. package/dist/public-functions/executeRoute.js +14 -14
  62. package/dist/public-functions/getCosmosGasAmountForMessage.d.ts +1 -1
  63. package/dist/public-functions/getEvmGasAmountForMessage.d.ts +2 -2
  64. package/dist/public-functions/getEvmGasAmountForMessage.js +1 -1
  65. package/dist/public-functions/getFeeInfoForChain.d.ts +1 -1
  66. package/dist/public-functions/getFeeInfoForChain.js +5 -5
  67. package/dist/public-functions/getRecommendedGasPrice.js +6 -6
  68. package/dist/public-functions/getSigningStargateClient.js +5 -5
  69. package/dist/public-functions/setApiOptions.d.ts +1 -1
  70. package/dist/public-functions/setApiOptions.js +3 -3
  71. package/dist/public-functions/setClientOptions.d.ts +3 -3
  72. package/dist/public-functions/setClientOptions.js +4 -4
  73. package/dist/public-functions/validateCosmosGasBalance.d.ts +4 -4
  74. package/dist/public-functions/validateCosmosGasBalance.js +6 -6
  75. package/dist/public-functions/waitForTransaction.d.ts +15 -3
  76. package/dist/public-functions/waitForTransaction.js +5 -5
  77. package/dist/{setClientOptions-CwcM5Ps9.d.ts → setClientOptions-B27lt_6h.d.ts} +1 -1
  78. package/dist/{swaggerTypes-BpJPRbC3.d.ts → swaggerTypes-BrC-ZYnx.d.ts} +20 -1
  79. package/package.json +1 -1
  80. package/dist/chunk-36MCR5DZ.js +0 -183
@@ -1,5 +1,5 @@
1
1
  import { S as SkipApiOptions } from '../apiState-DwZhwVul.js';
2
- import { c as Asset } from '../swaggerTypes-BpJPRbC3.js';
2
+ import { c as Asset } from '../swaggerTypes-BrC-ZYnx.js';
3
3
 
4
4
  declare const assets: (options?: ({
5
5
  chainIds?: string[] | undefined;
@@ -1,3 +1,3 @@
1
- export { assets, transformAssetsMap } from '../chunk-4XUWIG3Z.js';
2
- import '../chunk-YABXOO3H.js';
3
- import '../chunk-UXUJNZOA.js';
1
+ export { assets, transformAssetsMap } from '../chunk-6ULKULTX.js';
2
+ import '../chunk-SS5LQKBL.js';
3
+ import '../chunk-KYLULQOS.js';
@@ -1,4 +1,4 @@
1
- import { J as BridgeType } from '../swaggerTypes-BpJPRbC3.js';
1
+ import { J as BridgeType } from '../swaggerTypes-BrC-ZYnx.js';
2
2
  import { S as SkipApiOptions } from '../apiState-DwZhwVul.js';
3
3
 
4
4
  declare const assetsBetweenChains: (options?: ({
@@ -1,3 +1,3 @@
1
- export { assetsBetweenChains } from '../chunk-Z3Z7A3YS.js';
2
- import '../chunk-YABXOO3H.js';
3
- import '../chunk-UXUJNZOA.js';
1
+ export { assetsBetweenChains } from '../chunk-VUOOTNLG.js';
2
+ import '../chunk-SS5LQKBL.js';
3
+ import '../chunk-KYLULQOS.js';
@@ -1,5 +1,5 @@
1
1
  import { S as SkipApiOptions } from '../apiState-DwZhwVul.js';
2
- import { bt as ContentType, J as BridgeType } from '../swaggerTypes-BpJPRbC3.js';
2
+ import { bu as ContentType, J as BridgeType } from '../swaggerTypes-BrC-ZYnx.js';
3
3
 
4
4
  declare const bridges: (options?: ({
5
5
  cache?: RequestCache | undefined;
@@ -34,9 +34,10 @@ declare const bridges: (options?: ({
34
34
  dispatchEvent: {};
35
35
  } | null | undefined;
36
36
  window?: null | undefined;
37
+ priority?: RequestPriority | undefined;
37
38
  secure?: boolean | undefined;
38
39
  type?: ContentType | undefined;
39
- format?: "arrayBuffer" | "blob" | "formData" | "json" | "text" | undefined;
40
+ format?: "arrayBuffer" | "blob" | "formData" | "json" | "text" | "bytes" | undefined;
40
41
  baseUrl?: string | undefined;
41
42
  cancelToken?: string | number | {
42
43
  toString: {};
@@ -1,3 +1,3 @@
1
- export { bridges } from '../chunk-UCUUIQHV.js';
2
- import '../chunk-YABXOO3H.js';
3
- import '../chunk-UXUJNZOA.js';
1
+ export { bridges } from '../chunk-4DI7G6TH.js';
2
+ import '../chunk-SS5LQKBL.js';
3
+ import '../chunk-KYLULQOS.js';
@@ -1,4 +1,4 @@
1
- import { L as ChainType } from '../swaggerTypes-BpJPRbC3.js';
1
+ import { L as ChainType } from '../swaggerTypes-BrC-ZYnx.js';
2
2
  import { S as SkipApiOptions } from '../apiState-DwZhwVul.js';
3
3
 
4
4
  declare const chains: (options?: ({
@@ -1,3 +1,3 @@
1
- export { chains } from '../chunk-4XUWIG3Z.js';
2
- import '../chunk-YABXOO3H.js';
3
- import '../chunk-UXUJNZOA.js';
1
+ export { chains } from '../chunk-6ULKULTX.js';
2
+ import '../chunk-SS5LQKBL.js';
3
+ import '../chunk-KYLULQOS.js';
@@ -1,3 +1,3 @@
1
- export { venues } from '../chunk-RE4YYQCE.js';
2
- import '../chunk-YABXOO3H.js';
3
- import '../chunk-UXUJNZOA.js';
1
+ export { venues } from '../chunk-YYXOIRHZ.js';
2
+ import '../chunk-SS5LQKBL.js';
3
+ import '../chunk-KYLULQOS.js';
@@ -1,4 +1,4 @@
1
- import { c as Asset } from '../swaggerTypes-BpJPRbC3.js';
1
+ import { c as Asset } from '../swaggerTypes-BrC-ZYnx.js';
2
2
  import { S as SkipApiOptions } from '../apiState-DwZhwVul.js';
3
3
 
4
4
  declare const assetsFromSource: (options?: ({
@@ -1,4 +1,4 @@
1
- export { assetsFromSource } from '../chunk-7MWYHGMD.js';
2
- import '../chunk-4XUWIG3Z.js';
3
- import '../chunk-YABXOO3H.js';
4
- import '../chunk-UXUJNZOA.js';
1
+ export { assetsFromSource } from '../chunk-YLMQS52U.js';
2
+ import '../chunk-6ULKULTX.js';
3
+ import '../chunk-SS5LQKBL.js';
4
+ import '../chunk-KYLULQOS.js';
@@ -1,6 +1,6 @@
1
1
  import { S as SkipApiOptions } from '../apiState-DwZhwVul.js';
2
- import { A as ApiRequest, a as ApiResponse } from '../generateApi-D7KXciAd.js';
3
- import '../swaggerTypes-BpJPRbC3.js';
2
+ import { A as ApiRequest, a as ApiResponse } from '../generateApi-DvFEIUee.js';
3
+ import '../swaggerTypes-BrC-ZYnx.js';
4
4
 
5
5
  declare const balances: (options?: ({
6
6
  chains?: {
@@ -1,3 +1,3 @@
1
- export { balances } from '../chunk-4XUWIG3Z.js';
2
- import '../chunk-YABXOO3H.js';
3
- import '../chunk-UXUJNZOA.js';
1
+ export { balances } from '../chunk-6ULKULTX.js';
2
+ import '../chunk-SS5LQKBL.js';
3
+ import '../chunk-KYLULQOS.js';
@@ -1,3 +1,3 @@
1
- export { ibcOriginAssets } from '../chunk-NQZYCFAA.js';
2
- import '../chunk-YABXOO3H.js';
3
- import '../chunk-UXUJNZOA.js';
1
+ export { ibcOriginAssets } from '../chunk-QPJEHGY7.js';
2
+ import '../chunk-SS5LQKBL.js';
3
+ import '../chunk-KYLULQOS.js';
@@ -1,6 +1,6 @@
1
- import { b3 as FeeType, J as BridgeType } from '../swaggerTypes-BpJPRbC3.js';
1
+ import { b3 as FeeType, J as BridgeType, b4 as FeeBehavior } from '../swaggerTypes-BrC-ZYnx.js';
2
2
  import { S as SkipApiOptions } from '../apiState-DwZhwVul.js';
3
- import { A as ApiRequest, a as ApiResponse } from '../generateApi-D7KXciAd.js';
3
+ import { A as ApiRequest, a as ApiResponse } from '../generateApi-DvFEIUee.js';
4
4
 
5
5
  declare const messages: (request: MessagesRequest) => Promise<{
6
6
  msgs?: ({
@@ -90,6 +90,7 @@ declare const messages: (request: MessagesRequest) => Promise<{
90
90
  chainId?: string | undefined;
91
91
  txIndex?: number | undefined;
92
92
  operationIndex?: number | undefined;
93
+ feeBehavior?: FeeBehavior | undefined;
93
94
  }[] | undefined;
94
95
  } | undefined>;
95
96
  type MessagesRequest = ApiRequest<"msgs"> & SkipApiOptions & {
@@ -1,3 +1,3 @@
1
- export { messages } from '../chunk-A7FWC5OX.js';
2
- import '../chunk-YABXOO3H.js';
3
- import '../chunk-UXUJNZOA.js';
1
+ export { messages } from '../chunk-NZVZH6OA.js';
2
+ import '../chunk-SS5LQKBL.js';
3
+ import '../chunk-KYLULQOS.js';
@@ -1,5 +1,5 @@
1
1
  import { S as SkipApiOptions } from '../apiState-DwZhwVul.js';
2
- import { f as AutopilotAction, J as BridgeType, ap as RoutePriceWarningType, b3 as FeeType } from '../swaggerTypes-BpJPRbC3.js';
2
+ import { f as AutopilotAction, J as BridgeType, ap as RoutePriceWarningType, b3 as FeeType, b4 as FeeBehavior } from '../swaggerTypes-BrC-ZYnx.js';
3
3
 
4
4
  declare const messagesDirect: (options?: ({
5
5
  sourceAssetDenom?: string | undefined;
@@ -49,6 +49,7 @@ declare const messagesDirect: (options?: ({
49
49
  allowSwaps?: boolean | undefined;
50
50
  goFast?: boolean | undefined;
51
51
  enableGasWarnings?: boolean | undefined;
52
+ feePayerAddress?: string | undefined;
52
53
  } & SkipApiOptions & {
53
54
  abortDuplicateRequests?: boolean | undefined;
54
55
  }) | undefined) => Promise<{
@@ -603,6 +604,7 @@ declare const messagesDirect: (options?: ({
603
604
  chainId?: string | undefined;
604
605
  txIndex?: number | undefined;
605
606
  operationIndex?: number | undefined;
607
+ feeBehavior?: FeeBehavior | undefined;
606
608
  }[] | undefined;
607
609
  estimatedRouteDurationSeconds: number;
608
610
  } | undefined;
@@ -1,3 +1,3 @@
1
- export { messagesDirect } from '../chunk-4CXSWHQ6.js';
2
- import '../chunk-YABXOO3H.js';
3
- import '../chunk-UXUJNZOA.js';
1
+ export { messagesDirect } from '../chunk-2R5COFPS.js';
2
+ import '../chunk-SS5LQKBL.js';
3
+ import '../chunk-KYLULQOS.js';
@@ -1,5 +1,5 @@
1
1
  import { S as SkipApiOptions } from '../apiState-DwZhwVul.js';
2
- import { ao as Reason } from '../swaggerTypes-BpJPRbC3.js';
2
+ import { ao as Reason } from '../swaggerTypes-BrC-ZYnx.js';
3
3
 
4
4
  declare const recommendAssets: (options?: ({
5
5
  requests?: {
@@ -1,3 +1,3 @@
1
- export { recommendAssets } from '../chunk-THUBVEVZ.js';
2
- import '../chunk-YABXOO3H.js';
3
- import '../chunk-UXUJNZOA.js';
1
+ export { recommendAssets } from '../chunk-ZTDLGX7X.js';
2
+ import '../chunk-SS5LQKBL.js';
3
+ import '../chunk-KYLULQOS.js';
@@ -1,6 +1,6 @@
1
- import { J as BridgeType, ap as RoutePriceWarningType, b3 as FeeType } from '../swaggerTypes-BpJPRbC3.js';
1
+ import { J as BridgeType, ap as RoutePriceWarningType, b3 as FeeType, b4 as FeeBehavior } from '../swaggerTypes-BrC-ZYnx.js';
2
2
  import { S as SkipApiOptions } from '../apiState-DwZhwVul.js';
3
- import { A as ApiRequest } from '../generateApi-D7KXciAd.js';
3
+ import { A as ApiRequest } from '../generateApi-DvFEIUee.js';
4
4
 
5
5
  declare const route: (request: RouteRequest) => Promise<{
6
6
  amountIn: string;
@@ -492,6 +492,7 @@ declare const route: (request: RouteRequest) => Promise<{
492
492
  chainId?: string | undefined;
493
493
  txIndex?: number | undefined;
494
494
  operationIndex?: number | undefined;
495
+ feeBehavior?: FeeBehavior | undefined;
495
496
  }[] | undefined;
496
497
  estimatedRouteDurationSeconds: number;
497
498
  } | undefined>;
@@ -1,3 +1,3 @@
1
- export { route } from '../chunk-U6NXCWXE.js';
2
- import '../chunk-YABXOO3H.js';
3
- import '../chunk-UXUJNZOA.js';
1
+ export { route } from '../chunk-UZKIIX6A.js';
2
+ import '../chunk-SS5LQKBL.js';
3
+ import '../chunk-KYLULQOS.js';
@@ -1,6 +1,6 @@
1
1
  import { S as SkipApiOptions } from '../apiState-DwZhwVul.js';
2
- import { A as ApiRequest, a as ApiResponse } from '../generateApi-D7KXciAd.js';
3
- import '../swaggerTypes-BpJPRbC3.js';
2
+ import { A as ApiRequest, a as ApiResponse } from '../generateApi-DvFEIUee.js';
3
+ import '../swaggerTypes-BrC-ZYnx.js';
4
4
 
5
5
  declare const submit: (options?: ({
6
6
  tx?: string | undefined;
@@ -1,3 +1,3 @@
1
- export { submit } from '../chunk-OFBEDG4X.js';
2
- import '../chunk-YABXOO3H.js';
3
- import '../chunk-UXUJNZOA.js';
1
+ export { submit } from '../chunk-6UMMVC2P.js';
2
+ import '../chunk-SS5LQKBL.js';
3
+ import '../chunk-KYLULQOS.js';
@@ -1,3 +1,3 @@
1
- export { submitTransaction } from '../chunk-DF3WCTFB.js';
2
- import '../chunk-YABXOO3H.js';
3
- import '../chunk-UXUJNZOA.js';
1
+ export { submitTransaction } from '../chunk-PIQZD2VE.js';
2
+ import '../chunk-SS5LQKBL.js';
3
+ import '../chunk-KYLULQOS.js';
@@ -1,5 +1,5 @@
1
- import { A as ApiRequest, P as PollingProps } from '../generateApi-D7KXciAd.js';
2
- import '../swaggerTypes-BpJPRbC3.js';
1
+ import { A as ApiRequest, P as PollingProps } from '../generateApi-DvFEIUee.js';
2
+ import '../swaggerTypes-BrC-ZYnx.js';
3
3
 
4
4
  type TrackTxRequest = ApiRequest<"status"> & TrackTxPollingProps;
5
5
  type TrackTxPollingProps = Omit<PollingProps<"status">, "isSuccess" | "onError" | "onSuccess">;
@@ -1,3 +1,3 @@
1
- export { trackTransaction } from '../chunk-CXFOPLGZ.js';
2
- import '../chunk-YABXOO3H.js';
3
- import '../chunk-UXUJNZOA.js';
1
+ export { trackTransaction } from '../chunk-MAOMQHG5.js';
2
+ import '../chunk-SS5LQKBL.js';
3
+ import '../chunk-KYLULQOS.js';
@@ -1,6 +1,6 @@
1
- import { av as StatusErrorType, aJ as TransactionState, al as PacketErrorType, aS as TransferState, k as AxelarTransferState, O as ContractCallWithTokenErrorType, as as SendTokenErrorType, l as AxelarTransferType, p as CCTPTransferState, a8 as HyperlaneTransferState, aO as OPInitTransferState, s as StargateTransferState, w as GoFastTransferState, aP as LayerZeroTransferState } from '../swaggerTypes-BpJPRbC3.js';
1
+ import { av as StatusErrorType, aJ as TransactionState, al as PacketErrorType, aS as TransferState, k as AxelarTransferState, O as ContractCallWithTokenErrorType, as as SendTokenErrorType, l as AxelarTransferType, p as CCTPTransferState, a8 as HyperlaneTransferState, aO as OPInitTransferState, s as StargateTransferState, w as GoFastTransferState, aP as LayerZeroTransferState } from '../swaggerTypes-BrC-ZYnx.js';
2
2
  import { S as SkipApiOptions } from '../apiState-DwZhwVul.js';
3
- import { a as ApiResponse } from '../generateApi-D7KXciAd.js';
3
+ import { a as ApiResponse } from '../generateApi-DvFEIUee.js';
4
4
 
5
5
  declare const transactionStatus: (params?: ({
6
6
  txHash: string;
@@ -303,6 +303,12 @@ declare const transactionStatus: (params?: ({
303
303
  txHash?: string | undefined;
304
304
  onChainAt?: string | undefined;
305
305
  } | undefined;
306
+ composeTx?: {
307
+ chainId?: string | undefined;
308
+ explorerLink: string;
309
+ txHash?: string | undefined;
310
+ onChainAt?: string | undefined;
311
+ } | undefined;
306
312
  errorTx?: {
307
313
  chainId?: string | undefined;
308
314
  explorerLink: string;
@@ -590,6 +596,12 @@ declare const transactionStatus: (params?: ({
590
596
  txHash?: string | undefined;
591
597
  onChainAt?: string | undefined;
592
598
  } | undefined;
599
+ composeTx?: {
600
+ chainId?: string | undefined;
601
+ explorerLink: string;
602
+ txHash?: string | undefined;
603
+ onChainAt?: string | undefined;
604
+ } | undefined;
593
605
  errorTx?: {
594
606
  chainId?: string | undefined;
595
607
  explorerLink: string;
@@ -1,3 +1,3 @@
1
- export { transactionStatus } from '../chunk-XZV42PVV.js';
2
- import '../chunk-YABXOO3H.js';
3
- import '../chunk-UXUJNZOA.js';
1
+ export { transactionStatus } from '../chunk-I4AMZAHH.js';
2
+ import '../chunk-SS5LQKBL.js';
3
+ import '../chunk-KYLULQOS.js';
@@ -1,4 +1,4 @@
1
- import { aU as TransferStatus, T as Erc20Approval } from './swaggerTypes-BpJPRbC3.js';
1
+ import { aU as TransferStatus, T as Erc20Approval } from './swaggerTypes-BrC-ZYnx.js';
2
2
 
3
3
  type CallbackStatus = "error" | "pending" | "completed";
4
4
  type TransactionCallbacks = {
@@ -1,4 +1,4 @@
1
- import { api } from './chunk-YABXOO3H.js';
1
+ import { api } from './chunk-SS5LQKBL.js';
2
2
 
3
3
  // src/api/postMessagesDirect.ts
4
4
  var messagesDirect = api({