@skip-go/client 1.5.15 → 1.5.17

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 (69) hide show
  1. package/dist/cjs/{chunk-FKKUU7XV.cjs → chunk-4ZIVDKQN.cjs} +3 -3
  2. package/dist/cjs/{chunk-S4TMZ43L.cjs → chunk-CIZTNJ3K.cjs} +2 -2
  3. package/dist/cjs/chunk-EAZQ2ECA.cjs +185 -0
  4. package/dist/cjs/{chunk-YE4P7752.cjs → chunk-LVK2SUFG.cjs} +8 -8
  5. package/dist/cjs/{chunk-TUDI6TWC.cjs → chunk-OVKHTOBP.cjs} +4 -4
  6. package/dist/cjs/{chunk-JSHFYGBG.cjs → chunk-Q7TR6RHE.cjs} +27 -27
  7. package/dist/cjs/{chunk-QAR64M46.cjs → chunk-USQLPDZG.cjs} +6 -6
  8. package/dist/cjs/{chunk-A3UNNRKD.cjs → chunk-X2ASEG4P.cjs} +5 -0
  9. package/dist/cjs/{chunk-ZE23PR7T.cjs → chunk-YX56UXDX.cjs} +2 -2
  10. package/dist/cjs/index.cjs +19 -19
  11. package/dist/cjs/public-functions/executeMultipleRoutes.cjs +7 -7
  12. package/dist/cjs/public-functions/executeRoute.cjs +7 -7
  13. package/dist/cjs/public-functions/getFeeInfoForChain.cjs +3 -3
  14. package/dist/cjs/public-functions/getRecommendedGasPrice.cjs +4 -4
  15. package/dist/cjs/public-functions/getRouteWithGasOnReceive.cjs +9 -9
  16. package/dist/cjs/public-functions/getSigningStargateClient.cjs +3 -3
  17. package/dist/cjs/public-functions/subscribeToRouteStatus.cjs +5 -5
  18. package/dist/cjs/public-functions/validateCosmosGasBalance.cjs +4 -4
  19. package/dist/esm/api/getAssets.d.ts +1 -1
  20. package/dist/esm/api/getAssetsBetweenChains.d.ts +1 -1
  21. package/dist/esm/api/getBridges.d.ts +1 -1
  22. package/dist/esm/api/getChains.d.ts +1 -1
  23. package/dist/esm/api/postAssetsFromSource.d.ts +1 -1
  24. package/dist/esm/api/postBalances.d.ts +2 -2
  25. package/dist/esm/api/postMessages.d.ts +2 -2
  26. package/dist/esm/api/postMessagesDirect.d.ts +1 -1
  27. package/dist/esm/api/postRecommendAssets.d.ts +1 -1
  28. package/dist/esm/api/postRoute.d.ts +2 -2
  29. package/dist/esm/api/postSubmitTransaction.d.ts +2 -2
  30. package/dist/esm/api/postTrackTransaction.d.ts +2 -2
  31. package/dist/esm/api/postTransactionStatus.d.ts +40 -2
  32. package/dist/esm/{callbacks-CZNSHCBb.d.ts → callbacks-BfT9RHTS.d.ts} +4 -3
  33. package/dist/esm/{chunk-BAIZRQWN.js → chunk-5IGYTGG3.js} +4 -4
  34. package/dist/esm/{chunk-DFY3OEIN.js → chunk-5WYMRZIO.js} +1 -1
  35. package/dist/esm/{chunk-UBEGHOHH.js → chunk-CGJRRAFS.js} +1 -1
  36. package/dist/esm/{chunk-6DNHEP6L.js → chunk-DMJMN4J3.js} +1 -1
  37. package/dist/esm/{chunk-45BENU2D.js → chunk-E6IRM5VQ.js} +2 -2
  38. package/dist/esm/chunk-NUHMTWHP.js +180 -0
  39. package/dist/esm/{chunk-FWKA3PAJ.js → chunk-PZ2624FK.js} +1 -1
  40. package/dist/esm/{chunk-3DIX6KRJ.js → chunk-QCGHODGV.js} +5 -0
  41. package/dist/esm/{chunk-S4WHCME5.js → chunk-XUCVKXX3.js} +2 -2
  42. package/dist/esm/{client-types-BX_0924O.d.ts → client-types-CiP7kdse.d.ts} +1 -1
  43. package/dist/esm/{generateApi-Clc85Kxw.d.ts → generateApi-CcpInrQx.d.ts} +1 -1
  44. package/dist/esm/index.d.ts +5 -5
  45. package/dist/esm/index.js +9 -9
  46. package/dist/esm/public-functions/executeMultipleRoutes.d.ts +4 -4
  47. package/dist/esm/public-functions/executeMultipleRoutes.js +6 -6
  48. package/dist/esm/public-functions/executeRoute.d.ts +4 -4
  49. package/dist/esm/public-functions/executeRoute.js +6 -6
  50. package/dist/esm/public-functions/getCosmosGasAmountForMessage.d.ts +1 -1
  51. package/dist/esm/public-functions/getEvmGasAmountForMessage.d.ts +3 -3
  52. package/dist/esm/public-functions/getFeeInfoForChain.d.ts +1 -1
  53. package/dist/esm/public-functions/getFeeInfoForChain.js +2 -2
  54. package/dist/esm/public-functions/getRecommendedGasPrice.js +3 -3
  55. package/dist/esm/public-functions/getRouteWithGasOnReceive.d.ts +1 -1
  56. package/dist/esm/public-functions/getRouteWithGasOnReceive.js +9 -9
  57. package/dist/esm/public-functions/getSigningStargateClient.js +2 -2
  58. package/dist/esm/public-functions/setApiOptions.d.ts +1 -1
  59. package/dist/esm/public-functions/setClientOptions.d.ts +4 -4
  60. package/dist/esm/public-functions/subscribeToRouteStatus.d.ts +4 -4
  61. package/dist/esm/public-functions/subscribeToRouteStatus.js +1 -1
  62. package/dist/esm/public-functions/validateCosmosGasBalance.d.ts +4 -4
  63. package/dist/esm/public-functions/validateCosmosGasBalance.js +3 -3
  64. package/dist/esm/public-functions/waitForTransaction.d.ts +80 -4
  65. package/dist/esm/{setClientOptions-DD5Mzkw_.d.ts → setClientOptions-CMp1c0CF.d.ts} +3 -3
  66. package/dist/esm/{swaggerTypes-Dr4I6vW2.d.ts → swaggerTypes-CJ2Xl5ed.d.ts} +2 -0
  67. package/package.json +1 -1
  68. package/dist/cjs/chunk-5XVV6NQV.cjs +0 -185
  69. package/dist/esm/chunk-GGQPJDAC.js +0 -180
@@ -1,11 +1,11 @@
1
1
  'use strict';
2
2
 
3
- var chunkZE23PR7T_cjs = require('../chunk-ZE23PR7T.cjs');
3
+ var chunkYX56UXDX_cjs = require('../chunk-YX56UXDX.cjs');
4
4
  require('../chunk-TEH6UMUR.cjs');
5
5
  require('../chunk-NM4PISTQ.cjs');
6
- require('../chunk-FKKUU7XV.cjs');
6
+ require('../chunk-4ZIVDKQN.cjs');
7
7
  require('../chunk-MUJBB64F.cjs');
8
- require('../chunk-5XVV6NQV.cjs');
8
+ require('../chunk-EAZQ2ECA.cjs');
9
9
  require('../chunk-ATW6UNT5.cjs');
10
10
  require('../chunk-2QPPD3BB.cjs');
11
11
  require('../chunk-WOSAJSJB.cjs');
@@ -14,5 +14,5 @@ require('../chunk-WOSAJSJB.cjs');
14
14
 
15
15
  Object.defineProperty(exports, "validateCosmosGasBalance", {
16
16
  enumerable: true,
17
- get: function () { return chunkZE23PR7T_cjs.validateCosmosGasBalance; }
17
+ get: function () { return chunkYX56UXDX_cjs.validateCosmosGasBalance; }
18
18
  });
@@ -1,5 +1,5 @@
1
1
  import { S as SkipApiOptions } from '../apiState-1VvikVK-.js';
2
- import { m as Asset } from '../swaggerTypes-Dr4I6vW2.js';
2
+ import { m as Asset } from '../swaggerTypes-CJ2Xl5ed.js';
3
3
 
4
4
  declare const assets: (options?: ({
5
5
  chainIds?: string[] | undefined;
@@ -1,4 +1,4 @@
1
- import { B as BridgeType } from '../swaggerTypes-Dr4I6vW2.js';
1
+ import { B as BridgeType } from '../swaggerTypes-CJ2Xl5ed.js';
2
2
  import { S as SkipApiOptions } from '../apiState-1VvikVK-.js';
3
3
 
4
4
  declare const assetsBetweenChains: (options?: ({
@@ -1,5 +1,5 @@
1
1
  import { S as SkipApiOptions } from '../apiState-1VvikVK-.js';
2
- import { bG as ContentType, B as BridgeType } from '../swaggerTypes-Dr4I6vW2.js';
2
+ import { bG as ContentType, B as BridgeType } from '../swaggerTypes-CJ2Xl5ed.js';
3
3
 
4
4
  declare const bridges: (options?: ({
5
5
  cache?: RequestCache | undefined;
@@ -1,4 +1,4 @@
1
- import { e as ChainType } from '../swaggerTypes-Dr4I6vW2.js';
1
+ import { e as ChainType } from '../swaggerTypes-CJ2Xl5ed.js';
2
2
  import { S as SkipApiOptions } from '../apiState-1VvikVK-.js';
3
3
 
4
4
  declare const chains: (options?: ({
@@ -1,5 +1,5 @@
1
1
  import { S as SkipApiOptions } from '../apiState-1VvikVK-.js';
2
- import { d as Reason, m as Asset } from '../swaggerTypes-Dr4I6vW2.js';
2
+ import { d as Reason, m as Asset } from '../swaggerTypes-CJ2Xl5ed.js';
3
3
 
4
4
  declare const assetsFromSource: (options?: ({
5
5
  sourceAssetDenom: string;
@@ -1,6 +1,6 @@
1
1
  import { S as SkipApiOptions } from '../apiState-1VvikVK-.js';
2
- import { A as ApiRequest, a as ApiResponse } from '../generateApi-Clc85Kxw.js';
3
- import '../swaggerTypes-Dr4I6vW2.js';
2
+ import { A as ApiRequest, a as ApiResponse } from '../generateApi-CcpInrQx.js';
3
+ import '../swaggerTypes-CJ2Xl5ed.js';
4
4
 
5
5
  declare const balances: (options?: ({
6
6
  chains?: {
@@ -1,6 +1,6 @@
1
- import { a as FeeType, B as BridgeType, F as FeeBehavior } from '../swaggerTypes-Dr4I6vW2.js';
1
+ import { a as FeeType, B as BridgeType, F as FeeBehavior } from '../swaggerTypes-CJ2Xl5ed.js';
2
2
  import { S as SkipApiOptions } from '../apiState-1VvikVK-.js';
3
- import { A as ApiRequest, a as ApiResponse } from '../generateApi-Clc85Kxw.js';
3
+ import { A as ApiRequest, a as ApiResponse } from '../generateApi-CcpInrQx.js';
4
4
 
5
5
  declare const messages: (request: MessagesRequest) => Promise<{
6
6
  msgs?: ({
@@ -1,5 +1,5 @@
1
1
  import { S as SkipApiOptions } from '../apiState-1VvikVK-.js';
2
- import { i as AutopilotAction, B as BridgeType, R as RoutePriceWarningType, a as FeeType, F as FeeBehavior } from '../swaggerTypes-Dr4I6vW2.js';
2
+ import { i as AutopilotAction, B as BridgeType, R as RoutePriceWarningType, a as FeeType, F as FeeBehavior } from '../swaggerTypes-CJ2Xl5ed.js';
3
3
 
4
4
  declare const messagesDirect: (options?: ({
5
5
  sourceAssetDenom?: string | undefined;
@@ -1,5 +1,5 @@
1
1
  import { S as SkipApiOptions } from '../apiState-1VvikVK-.js';
2
- import { d as Reason } from '../swaggerTypes-Dr4I6vW2.js';
2
+ import { d as Reason } from '../swaggerTypes-CJ2Xl5ed.js';
3
3
 
4
4
  declare const recommendAssets: (options?: ({
5
5
  requests?: {
@@ -1,6 +1,6 @@
1
- import { B as BridgeType, R as RoutePriceWarningType, a as FeeType, F as FeeBehavior } from '../swaggerTypes-Dr4I6vW2.js';
1
+ import { B as BridgeType, R as RoutePriceWarningType, a as FeeType, F as FeeBehavior } from '../swaggerTypes-CJ2Xl5ed.js';
2
2
  import { S as SkipApiOptions } from '../apiState-1VvikVK-.js';
3
- import { A as ApiRequest } from '../generateApi-Clc85Kxw.js';
3
+ import { A as ApiRequest } from '../generateApi-CcpInrQx.js';
4
4
 
5
5
  declare const route: (request: RouteRequest) => Promise<{
6
6
  amountIn: string;
@@ -1,6 +1,6 @@
1
1
  import { S as SkipApiOptions } from '../apiState-1VvikVK-.js';
2
- import { A as ApiRequest, a as ApiResponse } from '../generateApi-Clc85Kxw.js';
3
- import '../swaggerTypes-Dr4I6vW2.js';
2
+ import { A as ApiRequest, a as ApiResponse } from '../generateApi-CcpInrQx.js';
3
+ import '../swaggerTypes-CJ2Xl5ed.js';
4
4
 
5
5
  declare const submitTransaction: (options?: ({
6
6
  tx?: string | undefined;
@@ -1,6 +1,6 @@
1
1
  import { S as SkipApiOptions } from '../apiState-1VvikVK-.js';
2
- import { A as ApiRequest, P as PollingProps } from '../generateApi-Clc85Kxw.js';
3
- import '../swaggerTypes-Dr4I6vW2.js';
2
+ import { A as ApiRequest, P as PollingProps } from '../generateApi-CcpInrQx.js';
3
+ import '../swaggerTypes-CJ2Xl5ed.js';
4
4
 
5
5
  type TrackTxRequest = ApiRequest<"status"> & TrackTxPollingProps & SkipApiOptions;
6
6
  type TrackTxPollingProps = Omit<PollingProps<"status">, "isSuccess" | "onError" | "onSuccess">;
@@ -1,5 +1,5 @@
1
- import { b as TransactionState, P as PacketErrorType, T as TransferState, h as AxelarTransferState, C as ContractCallWithTokenErrorType, c as SendTokenErrorType, A as AxelarTransferType, g as CCTPTransferState, H as HyperlaneTransferState, O as OPInitTransferState, f as StargateTransferState, G as GoFastTransferState, L as LayerZeroTransferState, S as StatusErrorType } from '../swaggerTypes-Dr4I6vW2.js';
2
- import { a as ApiResponse } from '../generateApi-Clc85Kxw.js';
1
+ import { b as TransactionState, P as PacketErrorType, T as TransferState, h as AxelarTransferState, C as ContractCallWithTokenErrorType, c as SendTokenErrorType, A as AxelarTransferType, g as CCTPTransferState, H as HyperlaneTransferState, O as OPInitTransferState, f as StargateTransferState, G as GoFastTransferState, L as LayerZeroTransferState, S as StatusErrorType } from '../swaggerTypes-CJ2Xl5ed.js';
2
+ import { a as ApiResponse } from '../generateApi-CcpInrQx.js';
3
3
  import { S as SkipApiOptions } from '../apiState-1VvikVK-.js';
4
4
 
5
5
  declare const transactionStatus: (params?: ({
@@ -137,6 +137,25 @@ declare const transactionStatus: (params?: ({
137
137
  } | undefined;
138
138
  } | undefined;
139
139
  } | undefined;
140
+ cctpTransferV2?: {
141
+ toChainId?: string | undefined;
142
+ fromChainId?: string | undefined;
143
+ state?: CCTPTransferState | undefined;
144
+ txs?: {
145
+ sendTx?: {
146
+ chainId?: string | undefined;
147
+ explorerLink: string;
148
+ txHash?: string | undefined;
149
+ onChainAt?: string | undefined;
150
+ } | undefined;
151
+ receiveTx?: {
152
+ chainId?: string | undefined;
153
+ explorerLink: string;
154
+ txHash?: string | undefined;
155
+ onChainAt?: string | undefined;
156
+ } | undefined;
157
+ } | undefined;
158
+ } | undefined;
140
159
  hyperlaneTransfer?: {
141
160
  fromChainId: string;
142
161
  toChainId: string;
@@ -466,6 +485,25 @@ declare const transactionStatus: (params?: ({
466
485
  } | undefined;
467
486
  } | undefined;
468
487
  } | undefined;
488
+ cctpTransferV2?: {
489
+ toChainId?: string | undefined;
490
+ fromChainId?: string | undefined;
491
+ state?: CCTPTransferState | undefined;
492
+ txs?: {
493
+ sendTx?: {
494
+ chainId?: string | undefined;
495
+ explorerLink: string;
496
+ txHash?: string | undefined;
497
+ onChainAt?: string | undefined;
498
+ } | undefined;
499
+ receiveTx?: {
500
+ chainId?: string | undefined;
501
+ explorerLink: string;
502
+ txHash?: string | undefined;
503
+ onChainAt?: string | undefined;
504
+ } | undefined;
505
+ } | undefined;
506
+ } | undefined;
469
507
  hyperlaneTransfer?: {
470
508
  fromChainId: string;
471
509
  toChainId: string;
@@ -1,7 +1,7 @@
1
1
  import { TxStatusResponse } from './api/postTransactionStatus.js';
2
- import { T as TransferState, h as AxelarTransferState, g as CCTPTransferState, H as HyperlaneTransferState, O as OPInitTransferState, G as GoFastTransferState, f as StargateTransferState, L as LayerZeroTransferState, b as TransactionState, bq as RouteResponse, a6 as CosmosMsg, ax as PostHandler, ay as Route, aV as TransferAssetRelease, aW as TransferStatus, a3 as Erc20Approval } from './swaggerTypes-Dr4I6vW2.js';
3
- import { A as ApiRequest } from './generateApi-Clc85Kxw.js';
4
- import { S as SignerGetters, b as GasOptions, B as BaseSettings, U as UserAddress, T as TxResult } from './client-types-BX_0924O.js';
2
+ import { T as TransferState, h as AxelarTransferState, g as CCTPTransferState, H as HyperlaneTransferState, O as OPInitTransferState, G as GoFastTransferState, f as StargateTransferState, L as LayerZeroTransferState, b as TransactionState, bq as RouteResponse, a6 as CosmosMsg, ax as PostHandler, ay as Route, aV as TransferAssetRelease, aW as TransferStatus, a3 as Erc20Approval } from './swaggerTypes-CJ2Xl5ed.js';
3
+ import { A as ApiRequest } from './generateApi-CcpInrQx.js';
4
+ import { S as SignerGetters, b as GasOptions, B as BaseSettings, U as UserAddress, T as TxResult } from './client-types-CiP7kdse.js';
5
5
 
6
6
  type OverallStatus = "pending" | "success" | "failed";
7
7
  declare function getTransferEventsFromTxStatusResponse(txStatusResponse?: TxStatusResponse[]): {
@@ -22,6 +22,7 @@ declare enum TransferType {
22
22
  ibcTransfer = "ibcTransfer",
23
23
  axelarTransfer = "axelarTransfer",
24
24
  cctpTransfer = "cctpTransfer",
25
+ cctpTransferV2 = "cctpTransferV2",
25
26
  hyperlaneTransfer = "hyperlaneTransfer",
26
27
  opInitTransfer = "opInitTransfer",
27
28
  goFastTransfer = "goFastTransfer",
@@ -1,9 +1,9 @@
1
- import { updateRouteDetails } from './chunk-3DIX6KRJ.js';
2
- import { validateCosmosGasBalance } from './chunk-FWKA3PAJ.js';
1
+ import { updateRouteDetails } from './chunk-QCGHODGV.js';
2
+ import { validateCosmosGasBalance } from './chunk-PZ2624FK.js';
3
3
  import { getEncodeObjectFromCosmosMessage } from './chunk-R2GHDOWX.js';
4
4
  import { getEVMGasAmountForMessage } from './chunk-GV2QOWB4.js';
5
- import { getRpcEndpointForChain, accountParser, getSigningStargateClient } from './chunk-6DNHEP6L.js';
6
- import { chains, findFirstWorkingEndpoint, getIsEthermint, getIsInitia } from './chunk-GGQPJDAC.js';
5
+ import { getRpcEndpointForChain, accountParser, getSigningStargateClient } from './chunk-DMJMN4J3.js';
6
+ import { chains, findFirstWorkingEndpoint, getIsEthermint, getIsInitia } from './chunk-NUHMTWHP.js';
7
7
  import { submitTransaction } from './chunk-ETBJVFQP.js';
8
8
  import { venues } from './chunk-A5NZMSTI.js';
9
9
  import { ClientState, balances } from './chunk-J24LYWJE.js';
@@ -1,4 +1,4 @@
1
- import { chains } from './chunk-GGQPJDAC.js';
1
+ import { chains } from './chunk-NUHMTWHP.js';
2
2
  import { ClientState } from './chunk-J24LYWJE.js';
3
3
 
4
4
  // src/constants/constants.ts
@@ -1,4 +1,4 @@
1
- import { getFeeInfoForChain } from './chunk-DFY3OEIN.js';
1
+ import { getFeeInfoForChain } from './chunk-5WYMRZIO.js';
2
2
  import { Decimal } from '@cosmjs/math';
3
3
  import { GasPrice } from '@cosmjs/stargate';
4
4
  import { BigNumber } from 'bignumber.js';
@@ -1,5 +1,5 @@
1
1
  import { BaseAccount as BaseAccount$1, base64FromBytes, bytesFromBase64, isSet } from './chunk-RTDD7HZ3.js';
2
- import { chains, findFirstWorkingEndpoint } from './chunk-GGQPJDAC.js';
2
+ import { chains, findFirstWorkingEndpoint } from './chunk-NUHMTWHP.js';
3
3
  import { ClientState } from './chunk-J24LYWJE.js';
4
4
  import { accountFromAny, SigningStargateClient } from '@cosmjs/stargate';
5
5
  import { assertDefinedAndNotNull } from '@cosmjs/utils';
@@ -1,5 +1,5 @@
1
- import { createValidAddressList, executeTransactions } from './chunk-BAIZRQWN.js';
2
- import { updateRouteDetails, executeAndSubscribeToRouteStatus } from './chunk-3DIX6KRJ.js';
1
+ import { createValidAddressList, executeTransactions } from './chunk-5IGYTGG3.js';
2
+ import { updateRouteDetails, executeAndSubscribeToRouteStatus } from './chunk-QCGHODGV.js';
3
3
  import { messages } from './chunk-P36PE4CR.js';
4
4
  import { ApiState } from './chunk-F66EKL3W.js';
5
5