@skip-go/client 1.0.6 → 1.1.1

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 (64) hide show
  1. package/dist/api/getAssets.d.ts +1 -1
  2. package/dist/api/getAssets.js +2 -2
  3. package/dist/api/getAssetsBetweenChains.d.ts +1 -1
  4. package/dist/api/getAssetsBetweenChains.js +2 -2
  5. package/dist/api/getBridges.d.ts +1 -1
  6. package/dist/api/getBridges.js +2 -2
  7. package/dist/api/getChains.d.ts +1 -1
  8. package/dist/api/getChains.js +2 -2
  9. package/dist/api/getVenues.js +2 -2
  10. package/dist/api/postAssetsFromSource.d.ts +1 -1
  11. package/dist/api/postAssetsFromSource.js +3 -3
  12. package/dist/api/postBalances.d.ts +4 -4
  13. package/dist/api/postBalances.js +2 -2
  14. package/dist/api/postIbcOriginAssets.js +2 -2
  15. package/dist/api/postMessages.d.ts +44 -6
  16. package/dist/api/postMessages.js +2 -2
  17. package/dist/api/postMessagesDirect.d.ts +42 -4
  18. package/dist/api/postMessagesDirect.js +2 -2
  19. package/dist/api/postRecommendAssets.d.ts +1 -1
  20. package/dist/api/postRecommendAssets.js +2 -2
  21. package/dist/api/postRoute.d.ts +44 -6
  22. package/dist/api/postRoute.js +2 -2
  23. package/dist/api/postSubmitTransaction.js +2 -2
  24. package/dist/api/postTrackTransaction.js +2 -2
  25. package/dist/api/postTransactionStatus.d.ts +68 -4
  26. package/dist/api/postTransactionStatus.js +2 -2
  27. package/dist/{chunk-33K6EESX.js → chunk-2NYWLY5S.js} +2 -2
  28. package/dist/{chunk-RMP3HM5N.js → chunk-5EU3SRDQ.js} +3 -3
  29. package/dist/{chunk-DW4U6YI6.js → chunk-7FSLD7Y4.js} +2 -2
  30. package/dist/{chunk-RDRDFJQE.js → chunk-7P6AOFMX.js} +2 -2
  31. package/dist/{chunk-MGVXJ2U4.js → chunk-BCN2WD5Q.js} +2 -2
  32. package/dist/{chunk-BRMONS6A.js → chunk-EAUM5JYS.js} +4 -4
  33. package/dist/{chunk-PHTQQIAH.js → chunk-GTJ2EDUG.js} +2 -3
  34. package/dist/{chunk-BQTQJQ5E.js → chunk-H6RXHDUX.js} +2 -2
  35. package/dist/{chunk-TW77BXMT.js → chunk-KWVMUF5R.js} +1 -1
  36. package/dist/{chunk-F75DC5RW.js → chunk-MTXTFZRN.js} +7 -7
  37. package/dist/{chunk-UNF72WYO.js → chunk-PWSY2PQJ.js} +1 -1
  38. package/dist/{chunk-4JJWOILI.js → chunk-PZM2IB6H.js} +2 -2
  39. package/dist/{chunk-GARVPN2H.js → chunk-R2N4D2PY.js} +2 -2
  40. package/dist/{chunk-MTMPHY3Y.js → chunk-R3KHKN33.js} +1 -1
  41. package/dist/{chunk-C2EDPY6J.js → chunk-RL5AVCSG.js} +2 -2
  42. package/dist/{chunk-W6TBGBV3.js → chunk-SOGMQT4H.js} +68 -28
  43. package/dist/{chunk-VMPFHQ7U.js → chunk-T2TOUPEA.js} +1 -1
  44. package/dist/{chunk-SONZJVQM.js → chunk-UPL6CT4S.js} +1 -1
  45. package/dist/{chunk-KNV72XRZ.js → chunk-VRPPVMXO.js} +2 -2
  46. package/dist/{chunk-PRQ2NHRZ.js → chunk-WWDCZAB5.js} +2 -2
  47. package/dist/{client-types-CxjtffyG.d.ts → client-types-BvdIj_Nf.d.ts} +1 -1
  48. package/dist/{executeRoute-BKvMVd1I.d.ts → executeRoute-CxEpxhJ4.d.ts} +4 -4
  49. package/dist/{generateApi-DqCp36fX.d.ts → generateApi-BXIkShKU.d.ts} +1 -1
  50. package/dist/index.d.ts +1555 -6
  51. package/dist/index.js +159 -20
  52. package/dist/public-functions/executeRoute.d.ts +4 -4
  53. package/dist/public-functions/executeRoute.js +8 -8
  54. package/dist/public-functions/getFeeInfoForChain.d.ts +1 -1
  55. package/dist/public-functions/getFeeInfoForChain.js +3 -3
  56. package/dist/public-functions/getRecommendedGasPrice.js +4 -4
  57. package/dist/public-functions/getSigningStargateClient.js +3 -3
  58. package/dist/public-functions/setApiOptions.d.ts +1 -1
  59. package/dist/public-functions/setApiOptions.js +2 -2
  60. package/dist/public-functions/setClientOptions.d.ts +3 -3
  61. package/dist/public-functions/setClientOptions.js +3 -3
  62. package/dist/{setClientOptions-DbanEIwL.d.ts → setClientOptions-BkD-BMo7.d.ts} +1 -1
  63. package/dist/{swaggerTypes-O9-gvCT1.d.ts → swaggerTypes-A72fxJ5y.d.ts} +232 -164
  64. package/package.json +1 -2
@@ -389,6 +389,10 @@ interface GoFastTransferInfo {
389
389
  /** Error message if the transfer failed post-fill */
390
390
  errorMessage?: string;
391
391
  }
392
+ interface GoFastTransferWrapper {
393
+ /** A transfer facilitated by GoFast */
394
+ goFastTransfer?: GoFastTransfer;
395
+ }
392
396
  interface BalanceRequestChainEntry {
393
397
  /** Address of the wallet that the balance is requested for */
394
398
  address?: string;
@@ -756,7 +760,7 @@ interface MultiChainMsgWrapper {
756
760
  /** A message that interacts with multiple chains */
757
761
  multiChainMsg?: MultiChainMsg;
758
762
  }
759
- type Operation = (TransferWrapper | SwapWrapper | AxelarTransferWrapper | BankSendWrapper | CCTPTransferWrapper | HyperlaneTransferWrapper | EvmSwapWrapper | OPInitTransferWrapper | StargateTransferWrapper | EurekaTransferWrapper | LayerZeroTransferWrapper) & {
763
+ type Operation = (TransferWrapper | SwapWrapper | AxelarTransferWrapper | BankSendWrapper | CCTPTransferWrapper | HyperlaneTransferWrapper | EvmSwapWrapper | OPInitTransferWrapper | StargateTransferWrapper | GoFastTransferWrapper | EurekaTransferWrapper | LayerZeroTransferWrapper) & {
760
764
  /** Index of the tx returned from Msgs that executes this operation */
761
765
  txIndex: number;
762
766
  /** Amount of input asset to this operation */
@@ -811,6 +815,8 @@ interface ChainTransaction {
811
815
  explorerLink: string;
812
816
  /** Hash of the transaction the packet event occurred in */
813
817
  txHash?: string;
818
+ /** RFC3339 formatted UTC timestamp of when the transaction landed on chain */
819
+ onChainAt?: string;
814
820
  }
815
821
  type PostHandler = CosmWasmContractMsgWrapper | AutopilotMsgWrapper;
816
822
  /**
@@ -835,7 +841,7 @@ declare enum RoutePriceWarningType {
835
841
  LOW_INFO_WARNING = "LOW_INFO_WARNING",
836
842
  BAD_PRICE_WARNING = "BAD_PRICE_WARNING"
837
843
  }
838
- interface RouteResponse {
844
+ interface Route {
839
845
  /** Amount of source asset to be transferred or swapped */
840
846
  amountIn: string;
841
847
  /** Amount of destination asset out */
@@ -882,7 +888,7 @@ interface RouteResponse {
882
888
  /** Indicates fees incurred in the execution of the transfer */
883
889
  estimatedFees?: Fee[];
884
890
  /** The estimated time in seconds for the route to execute */
885
- estimatedRouteDurationSeconds?: number;
891
+ estimatedRouteDurationSeconds: number;
886
892
  }
887
893
  interface SendTokenError {
888
894
  /** Error message */
@@ -1077,7 +1083,7 @@ interface OPInitTransfer {
1077
1083
  }
1078
1084
  interface OPInitTransferWrapper {
1079
1085
  /** A transfer facilitated by the CCTP bridge */
1080
- transfer?: OPInitTransfer;
1086
+ opInitTransfer?: OPInitTransfer;
1081
1087
  }
1082
1088
  interface OPInitTransferInfo {
1083
1089
  /** Chain ID of the destination chain */
@@ -1333,7 +1339,7 @@ interface LayerZeroTransferInfo {
1333
1339
  }
1334
1340
  interface LayerZeroTransferWrapper {
1335
1341
  /** A Layer Zero Transfer */
1336
- eurekaTransfer?: LayerZeroTransfer;
1342
+ layerZeroTransfer?: LayerZeroTransfer;
1337
1343
  }
1338
1344
  interface RecommendationRequest {
1339
1345
  /** Denom of the source asset */
@@ -1398,6 +1404,148 @@ interface Fee {
1398
1404
  /** The index of the operation in the returned operations list which incurs the fee */
1399
1405
  operationIndex?: number;
1400
1406
  }
1407
+ interface ChainsRequest {
1408
+ /** Chain IDs to limit the response to, defaults to all chains if not provided */
1409
+ chainIds?: string[];
1410
+ /**
1411
+ * Whether to include EVM chains in the response
1412
+ * @example false
1413
+ */
1414
+ includeEvm?: boolean;
1415
+ /** Whether to include SVM chains in the response */
1416
+ includeSvm?: boolean;
1417
+ /**
1418
+ * Whether to display only testnets in the response
1419
+ * @example false
1420
+ */
1421
+ onlyTestnets?: boolean;
1422
+ }
1423
+ interface ChainsResponse {
1424
+ /** Array of supported chain-ids */
1425
+ chains?: Chain[];
1426
+ }
1427
+ interface BalancesResponse {
1428
+ chains?: Record<string, BalanceResponseChainEntry>;
1429
+ }
1430
+ interface BridgesResponse {
1431
+ /** Array of supported bridges */
1432
+ bridges?: Bridge[];
1433
+ }
1434
+ interface VenuesRequest {
1435
+ /**
1436
+ * Whether to display only venues from testnets in the response
1437
+ * @example false
1438
+ */
1439
+ onlyTestnets?: boolean;
1440
+ }
1441
+ interface VenuesResponse {
1442
+ /** Array of supported swap venues */
1443
+ venues?: SwapVenue[];
1444
+ }
1445
+ interface AssetsRequest {
1446
+ /** Chain IDs to limit the response to, defaults to all chains if not provided */
1447
+ chainIds?: string[];
1448
+ /** Whether to restrict assets to those native to their chain */
1449
+ nativeOnly?: boolean;
1450
+ /** Whether to include assets without metadata (symbol, name, logo_uri, etc.) */
1451
+ includeNoMetadataAssets?: boolean;
1452
+ /** Whether to include CW20 tokens */
1453
+ includeCw20Assets?: boolean;
1454
+ /** Whether to include EVM tokens */
1455
+ includeEvmAssets?: boolean;
1456
+ /** Whether to include SVM tokens */
1457
+ includeSvmAssets?: boolean;
1458
+ /**
1459
+ * Whether to display only assets from testnets in the response
1460
+ * @example false
1461
+ */
1462
+ onlyTestnets?: boolean;
1463
+ }
1464
+ interface AssetsResponse {
1465
+ /** Map of chain-ids to array of assets supported on the chain */
1466
+ chainToAssetsMap?: Record<string, {
1467
+ assets?: Asset[];
1468
+ }>;
1469
+ }
1470
+ interface AssetsFromSourceResponse {
1471
+ /** Array of assets that are reachable from the specified source asset */
1472
+ destAssets?: Record<string, {
1473
+ assets?: Asset[];
1474
+ }>;
1475
+ }
1476
+ type RouteResponse = Route;
1477
+ interface MsgsResponse {
1478
+ msgs?: Msg[];
1479
+ txs?: Tx[];
1480
+ /** Indicates fees incurred in the execution of the transfer */
1481
+ estimatedFees?: Fee[];
1482
+ }
1483
+ interface MsgsDirectResponse {
1484
+ msgs?: Msg[];
1485
+ txs?: Tx[];
1486
+ route?: Route;
1487
+ }
1488
+ interface AssetRecommendationsResponse {
1489
+ /** Array of recommendations for each entry in the `request` field. */
1490
+ recommendationEntries?: {
1491
+ recommendations?: AssetRecommendation[];
1492
+ error?: ApiError;
1493
+ }[];
1494
+ }
1495
+ interface SubmitResponse {
1496
+ /** Hash of the transaction */
1497
+ txHash?: string;
1498
+ /** Link to the transaction on the relevant block explorer */
1499
+ explorerLink?: string;
1500
+ }
1501
+ interface TrackResponse {
1502
+ /** Hash of the transaction */
1503
+ txHash: string;
1504
+ /** Link to the transaction on the relevant block explorer */
1505
+ explorerLink: string;
1506
+ }
1507
+ interface StatusRequest {
1508
+ /**
1509
+ * Hex encoded hash of the transaction to query for
1510
+ * @example "EEC65138E6A7BDD047ED0D4BBA249A754F0BBBC7AA976568C4F35A32CD7FB8EB"
1511
+ */
1512
+ txHash: string;
1513
+ /**
1514
+ * Chain ID of the transaction
1515
+ * @example "cosmoshub-4"
1516
+ */
1517
+ chainId: string;
1518
+ }
1519
+ interface StatusResponse {
1520
+ /** Transfer status for all transfers initiated by the transaction in the order they were initiated. */
1521
+ transfers?: TransferStatus[];
1522
+ /** The overall state reflecting the end-to-end status of all transfers initiated by the original transaction. */
1523
+ state: TransactionState;
1524
+ /**
1525
+ * **DEPRECATED.** This field provides a flat list of all transfer events. For a more structured and detailed status of each transfer leg, including its individual events, please use the 'transfers' array instead. This field may be removed in a future version.
1526
+ * @deprecated
1527
+ */
1528
+ transferSequence: TransferEvent[];
1529
+ /** Details about the next transfer in the sequence that is preventing further progress, if any. */
1530
+ nextBlockingTransfer?: {
1531
+ transfer_sequence_index?: number;
1532
+ };
1533
+ /** Indicates location and denom of transfer asset release. */
1534
+ transferAssetRelease?: TransferAssetRelease;
1535
+ /** Details about any error encountered during the transaction or its subsequent transfers. */
1536
+ error?: StatusError | null;
1537
+ /**
1538
+ * A high-level status indicator for the transaction's completion state.
1539
+ * @example "STATE_COMPLETED"
1540
+ */
1541
+ status?: string;
1542
+ }
1543
+ interface IbcOriginAssetsResponse {
1544
+ originAssets?: OptionalAsset[];
1545
+ }
1546
+ interface FungibleAssetsBetweenChainsCreateResponse {
1547
+ assetsBetweenChains?: AssetBetweenChains[];
1548
+ }
1401
1549
  type QueryParamsType = Record<string | number, any>;
1402
1550
  type ResponseFormat = keyof Omit<Body, "body" | "bodyUsed">;
1403
1551
  interface FullRequestParams extends Omit<RequestInit, "body"> {
@@ -1468,107 +1616,62 @@ declare class Api<SecurityDataType extends unknown> extends HttpClient<SecurityD
1468
1616
  * @description Get all supported chains along with additional data useful for building applications + frontends that interface with them (e.g. logo URI, IBC capabilities, fee assets, bech32 prefix, etc...)
1469
1617
  *
1470
1618
  * @tags Info
1471
- * @name GetChains
1619
+ * @name Chains
1472
1620
  * @request GET:/v2/info/chains
1621
+ * @response `200` `ChainsResponse` Returns a list of supported chains with additional data
1473
1622
  */
1474
- getChains: (query?: {
1475
- /** Chain IDs to limit the response to, defaults to all chains if not provided */
1476
- chain_ids?: string[];
1477
- /**
1478
- * Whether to include EVM chains in the response
1479
- * @example false
1480
- */
1481
- include_evm?: boolean;
1482
- /** Whether to include SVM chains in the response */
1483
- include_svm?: boolean;
1484
- /**
1485
- * Whether to display only testnets in the response
1486
- * @example false
1487
- */
1488
- only_testnets?: boolean;
1489
- }, params?: RequestParams) => Promise<HttpResponse<{
1490
- /** Array of supported chain-ids */
1491
- chains?: Chain[] | undefined;
1492
- }, any>>;
1623
+ chains: (query: ChainsRequest, params?: RequestParams) => Promise<HttpResponse<ChainsResponse, any>>;
1493
1624
  /**
1494
1625
  * @description Get the balances of a given set of assets on a given chain and wallet address. Compatible with all Skip Go-supported assets, excluding CW20 assets, across SVM, EVM, and Cosmos chains.
1495
1626
  *
1496
1627
  * @tags Info
1497
- * @name GetBalances
1628
+ * @name Balances
1498
1629
  * @request POST:/v2/info/balances
1630
+ * @response `200` `BalancesResponse` The balances of the assets
1499
1631
  */
1500
- getBalances: (data: {
1632
+ balances: (data: {
1501
1633
  chains?: Record<string, BalanceRequestChainEntry>;
1502
- }, params?: RequestParams) => Promise<HttpResponse<{
1503
- chains?: Record<string, BalanceResponseChainEntry> | undefined;
1504
- }, any>>;
1634
+ }, params?: RequestParams) => Promise<HttpResponse<BalancesResponse, any>>;
1505
1635
  /**
1506
1636
  * @description Get all supported bridges
1507
1637
  *
1508
1638
  * @tags Info
1509
- * @name GetBridges
1639
+ * @name Bridges
1510
1640
  * @request GET:/v2/info/bridges
1641
+ * @response `200` `BridgesResponse` A list of supported bridges
1511
1642
  */
1512
- getBridges: (params?: RequestParams) => Promise<HttpResponse<{
1513
- /** Array of supported bridges */
1514
- bridges?: Bridge[] | undefined;
1515
- }, any>>;
1643
+ bridges: (params?: RequestParams) => Promise<HttpResponse<BridgesResponse, any>>;
1516
1644
  /**
1517
1645
  * @description Get supported swap venues.
1518
1646
  *
1519
1647
  * @tags Fungible
1520
- * @name GetVenues
1648
+ * @name Venues
1521
1649
  * @request GET:/v2/fungible/venues
1650
+ * @response `200` `VenuesResponse` A list of supported swap venues
1522
1651
  */
1523
- getVenues: (query?: {
1524
- /**
1525
- * Whether to display only venues from testnets in the response
1526
- * @example false
1527
- */
1528
- only_testnets?: boolean;
1529
- }, params?: RequestParams) => Promise<HttpResponse<{
1530
- /** Array of supported swap venues */
1531
- venues?: SwapVenue[] | undefined;
1532
- }, any>>;
1652
+ venues: (query: VenuesRequest, params?: RequestParams) => Promise<HttpResponse<VenuesResponse, any>>;
1533
1653
  /**
1534
1654
  * @description Get supported assets. Optionally limit to assets on a given chain and/or native assets.
1535
1655
  *
1536
1656
  * @tags Fungible
1537
- * @name GetAssets
1657
+ * @name Assets
1538
1658
  * @request GET:/v2/fungible/assets
1659
+ * @response `200` `AssetsResponse` A map of chain_id to assets
1660
+ * @response `400` `Error` The request was invalid, e.g. field is invalid
1661
+ * @response `500` `Error` Internal server error
1539
1662
  */
1540
- getAssets: (query?: {
1541
- /** Chain IDs to limit the response to, defaults to all chains if not provided */
1542
- chain_ids?: string[];
1543
- /** Whether to restrict assets to those native to their chain */
1544
- native_only?: boolean;
1545
- /** Whether to include assets without metadata (symbol, name, logo_uri, etc.) */
1546
- include_no_metadata_assets?: boolean;
1547
- /** Whether to include CW20 tokens */
1548
- include_cw20_assets?: boolean;
1549
- /** Whether to include EVM tokens */
1550
- include_evm_assets?: boolean;
1551
- /** Whether to include SVM tokens */
1552
- include_svm_assets?: boolean;
1553
- /**
1554
- * Whether to display only assets from testnets in the response
1555
- * @example false
1556
- */
1557
- only_testnets?: boolean;
1558
- }, params?: RequestParams) => Promise<HttpResponse<{
1559
- /** Map of chain-ids to array of assets supported on the chain */
1560
- chain_to_assets_map?: Record<string, {
1561
- assets?: Asset[] | undefined;
1562
- }> | undefined;
1563
- }, Error>>;
1663
+ assets: (query: AssetsRequest, params?: RequestParams) => Promise<HttpResponse<AssetsResponse, Error>>;
1564
1664
  /**
1565
1665
  * @description Get assets that can be reached from a source via transfers under different conditions (e.g. single vs multiple txs)
1566
1666
  *
1567
1667
  * @tags Fungible
1568
- * @name GetAssetsFromSource
1668
+ * @name AssetsFromSource
1569
1669
  * @request POST:/v2/fungible/assets_from_source
1670
+ * @response `200` `AssetsFromSourceResponse` Assets reachable from the specified source without swapping
1671
+ * @response `400` `Error` The request was invalid, e.g. field is invalid
1672
+ * @response `500` `Error` Internal server error
1570
1673
  */
1571
- getAssetsFromSource: (data: {
1674
+ assetsFromSource: (data: {
1572
1675
  /** Denom of the source asset */
1573
1676
  source_asset_denom: string;
1574
1677
  /** Chain-id of the source asset */
@@ -1583,20 +1686,18 @@ declare class Api<SecurityDataType extends unknown> extends HttpClient<SecurityD
1583
1686
  * @default false
1584
1687
  */
1585
1688
  include_cw20_assets?: boolean;
1586
- }, params?: RequestParams) => Promise<HttpResponse<{
1587
- /** Array of assets that are reachable from the specified source asset */
1588
- dest_assets?: Record<string, {
1589
- assets?: Asset[] | undefined;
1590
- }> | undefined;
1591
- }, Error>>;
1689
+ }, params?: RequestParams) => Promise<HttpResponse<AssetsFromSourceResponse, Error>>;
1592
1690
  /**
1593
1691
  * @description This supports cross-chain actions among EVM chains, Cosmos chains, and between them. Returns the sequence of transfers and/or swaps to reach the given destination asset from the given source asset, along with estimated amount out. Commonly called before /msgs to generate route info and quote.
1594
1692
  *
1595
1693
  * @tags Fungible
1596
- * @name GetRouteV2
1694
+ * @name Route
1597
1695
  * @request POST:/v2/fungible/route
1696
+ * @response `200` `RouteResponse` Swap and transfer route summary & quote
1697
+ * @response `400` `Error` The request was invalid, e.g. an invalid amount was passed or the swap size is unsafe
1698
+ * @response `500` `Error` Internal server error
1598
1699
  */
1599
- getRouteV2: (data: {
1700
+ route: (data: {
1600
1701
  /** Amount of source asset to be transferred or swapped. Only one of amount_in and amount_out should be provided. */
1601
1702
  amount_in?: string;
1602
1703
  /** Amount of destination asset to receive. Only one of amount_in and amount_out should be provided. If amount_out is provided for a swap, the route will be computed to give exactly amount_out. */
@@ -1628,15 +1729,18 @@ declare class Api<SecurityDataType extends unknown> extends HttpClient<SecurityD
1628
1729
  allow_swaps?: boolean;
1629
1730
  /** Whether to enable Go Fast routes */
1630
1731
  go_fast?: boolean;
1631
- }, params?: RequestParams) => Promise<HttpResponse<RouteResponse, Error>>;
1732
+ }, params?: RequestParams) => Promise<HttpResponse<Route, Error>>;
1632
1733
  /**
1633
1734
  * @description This supports cross-chain actions among EVM chains, Cosmos chains, and between them. Returns minimal number of messages required to execute a multi-chain swap or transfer. Input consists of the output of route with additional information required for message construction (e.g. destination addresses for each chain)
1634
1735
  *
1635
1736
  * @tags Fungible
1636
- * @name GetMsgsV2
1737
+ * @name Msgs
1637
1738
  * @request POST:/v2/fungible/msgs
1739
+ * @response `200` `MsgsResponse` The messages required to execute the swap, as JSON.
1740
+ * @response `400` `Error` The request was invalid, e.g. an invalid amount was passed.
1741
+ * @response `500` `Error` Internal server error
1638
1742
  */
1639
- getMsgsV2: (data: {
1743
+ msgs: (data: {
1640
1744
  /** Denom of the source asset */
1641
1745
  source_asset_denom: string;
1642
1746
  /** Chain-id of the source asset */
@@ -1666,20 +1770,18 @@ declare class Api<SecurityDataType extends unknown> extends HttpClient<SecurityD
1666
1770
  * @default false
1667
1771
  */
1668
1772
  enable_gas_warnings?: boolean;
1669
- }, params?: RequestParams) => Promise<HttpResponse<{
1670
- msgs?: Msg[] | undefined;
1671
- txs?: Tx[] | undefined;
1672
- /** Indicates fees incurred in the execution of the transfer */
1673
- estimated_fees?: Fee[] | undefined;
1674
- }, Error>>;
1773
+ }, params?: RequestParams) => Promise<HttpResponse<MsgsResponse, Error>>;
1675
1774
  /**
1676
1775
  * @description This supports cross-chain actions among EVM chains, Cosmos chains, and between them. Returns minimal number of messages required to execute a multi-chain swap or transfer. This is a convenience endpoint that combines /route and /msgs into a single call.
1677
1776
  *
1678
1777
  * @tags Fungible
1679
- * @name GetMsgsDirectV2
1778
+ * @name MsgsDirect
1680
1779
  * @request POST:/v2/fungible/msgs_direct
1780
+ * @response `200` `MsgsDirectResponse` The messages required to execute the swap, as JSON.
1781
+ * @response `400` `Error` The request was invalid, e.g. an invalid amount was passed or the swap size is unsafe
1782
+ * @response `500` `Error` Internal server error
1681
1783
  */
1682
- getMsgsDirectV2: (data: {
1784
+ msgsDirect: (data: {
1683
1785
  /** Denom of the source asset */
1684
1786
  source_asset_denom?: string;
1685
1787
  /** Chain-id of the source asset */
@@ -1723,36 +1825,34 @@ declare class Api<SecurityDataType extends unknown> extends HttpClient<SecurityD
1723
1825
  * @default false
1724
1826
  */
1725
1827
  enable_gas_warnings?: boolean;
1726
- }, params?: RequestParams) => Promise<HttpResponse<{
1727
- msgs?: Msg[] | undefined;
1728
- txs?: Tx[] | undefined;
1729
- route?: RouteResponse | undefined;
1730
- }, Error>>;
1828
+ }, params?: RequestParams) => Promise<HttpResponse<MsgsDirectResponse, Error>>;
1731
1829
  /**
1732
1830
  * @description Request asset recommendations for the given source assets on a given destination chain. The response includes recommended destination assets and recommendation reasons.
1733
1831
  *
1734
1832
  * @tags Fungible
1735
- * @name GetAssetRecommendations
1833
+ * @name AssetRecommendations
1736
1834
  * @request POST:/v2/fungible/recommend_assets
1835
+ * @response `200` `AssetRecommendationsResponse` Recommended destination assets and reasons
1836
+ * @response `400` `Error` The request was invalid, i.e. required fields are missing
1837
+ * @response `404` `Error` A recommendation or the specified token was not found
1838
+ * @response `500` `Error` Internal server error
1737
1839
  */
1738
- getAssetRecommendations: (data: {
1840
+ assetRecommendations: (data: {
1739
1841
  /** Array where each entry corresponds to a distinct asset recommendation request. */
1740
1842
  requests?: RecommendationRequest[];
1741
- }, params?: RequestParams) => Promise<HttpResponse<{
1742
- /** Array of recommendations for each entry in the `request` field. */
1743
- recommendation_entries?: {
1744
- recommendations?: AssetRecommendation[] | undefined;
1745
- error?: ApiError | undefined;
1746
- }[] | undefined;
1747
- }, Error>>;
1843
+ }, params?: RequestParams) => Promise<HttpResponse<AssetRecommendationsResponse, Error>>;
1748
1844
  /**
1749
1845
  * @description Submit a signed base64 encoded transaction to be broadcast to the specified network. On successful submission, the status of the transaction and any subsequent IBC or Axelar transfers can be queried through the /status endpoint.
1750
1846
  *
1751
1847
  * @tags Transaction
1752
- * @name SubmitTransactionV2
1848
+ * @name Submit
1753
1849
  * @request POST:/v2/tx/submit
1850
+ * @response `200` `SubmitResponse` The hash of the transaction.
1851
+ * @response `400` `Error` The request was invalid, i.e. the submitted transaction was malformed or fails on execution.
1852
+ * @response `404` `Error` The specified chain is not supported.
1853
+ * @response `500` `Error` Internal server error
1754
1854
  */
1755
- submitTransactionV2: (data: {
1855
+ submit: (data: {
1756
1856
  /**
1757
1857
  * Signed base64 encoded transaction
1758
1858
  * @example "base64 encoded transaction"
@@ -1763,20 +1863,19 @@ declare class Api<SecurityDataType extends unknown> extends HttpClient<SecurityD
1763
1863
  * @example "osmosis-1"
1764
1864
  */
1765
1865
  chain_id?: string;
1766
- }, params?: RequestParams) => Promise<HttpResponse<{
1767
- /** Hash of the transaction */
1768
- tx_hash?: string | undefined;
1769
- /** Link to the transaction on the relevant block explorer */
1770
- explorer_link?: string | undefined;
1771
- }, Error>>;
1866
+ }, params?: RequestParams) => Promise<HttpResponse<SubmitResponse, Error>>;
1772
1867
  /**
1773
1868
  * @description Requests tracking of a transaction that has already landed on-chain but was not broadcast through the Skip Go API. The status of a tracked transaction and subsequent IBC or Axelar transfers if routing assets cross chain can be queried through the /status endpoint.
1774
1869
  *
1775
1870
  * @tags Transaction
1776
- * @name TrackTransactionV2
1871
+ * @name Track
1777
1872
  * @request POST:/v2/tx/track
1873
+ * @response `200` `TrackResponse` The hash of the transaction and a link to its explorer page.
1874
+ * @response `400` `Error` The request was invalid, i.e. the transaction hash was malformed or the specified transaction did not execute successfully.
1875
+ * @response `404` `Error` The specified chain is not supported or the specified transaction was not found.
1876
+ * @response `500` `Error` Internal server error
1778
1877
  */
1779
- trackTransactionV2: (data: {
1878
+ track: (data: {
1780
1879
  /**
1781
1880
  * Hex encoded hash of the transaction to track
1782
1881
  * @example "F30790E79987F18F3A4DA8C7A9BA9FD837043EF59D8236CA85180E1078BC607F"
@@ -1787,59 +1886,29 @@ declare class Api<SecurityDataType extends unknown> extends HttpClient<SecurityD
1787
1886
  * @example "osmosis-1"
1788
1887
  */
1789
1888
  chain_id: string;
1790
- }, params?: RequestParams) => Promise<HttpResponse<{
1791
- /** Hash of the transaction */
1792
- tx_hash: string;
1793
- /** Link to the transaction on the relevant block explorer */
1794
- explorer_link: string;
1795
- }, Error>>;
1889
+ }, params?: RequestParams) => Promise<HttpResponse<TrackResponse, Error>>;
1796
1890
  /**
1797
1891
  * @description Get the status of the specified transaction and any subsequent IBC or Axelar transfers if routing assets cross chain. The transaction must have previously been submitted to either the /submit or /track endpoints.
1798
1892
  *
1799
1893
  * @tags Transaction
1800
- * @name GetTransactionStatusV2
1894
+ * @name Status
1801
1895
  * @request GET:/v2/tx/status
1896
+ * @response `200` `StatusResponse` The status of the transaction and any subsequent ibc or Axelar transfers.
1897
+ * @response `404` `Error` The specified tx was not found.
1898
+ * @response `500` `Error` Internal server error
1802
1899
  */
1803
- getTransactionStatusV2: (query: {
1804
- /**
1805
- * Hex encoded hash of the transaction to query for
1806
- * @example "EEC65138E6A7BDD047ED0D4BBA249A754F0BBBC7AA976568C4F35A32CD7FB8EB"
1807
- */
1808
- tx_hash: string;
1809
- /**
1810
- * Chain ID of the transaction
1811
- * @example "cosmoshub-4"
1812
- */
1813
- chain_id: string;
1814
- }, params?: RequestParams) => Promise<HttpResponse<{
1815
- /** Transfer status for all transfers initiated by the transaction in the order they were initiated. */
1816
- transfers?: TransferStatus[] | undefined;
1817
- /** The overall state reflecting the end-to-end status of all transfers initiated by the original transaction. */
1818
- state: TransactionState;
1819
- /** A detailed sequence of all cross-chain transfer events associated with the transaction. */
1820
- transfer_sequence: TransferEvent[];
1821
- /** Details about the next transfer in the sequence that is preventing further progress, if any. */
1822
- next_blocking_transfer?: {
1823
- transfer_sequence_index?: number | undefined;
1824
- } | null | undefined;
1825
- /** Indicates location and denom of transfer asset release. */
1826
- transfer_asset_release?: TransferAssetRelease | undefined;
1827
- /** Details about any error encountered during the transaction or its subsequent transfers. */
1828
- error?: StatusError | null | undefined;
1829
- /**
1830
- * A high-level status indicator for the transaction's completion state.
1831
- * @example "STATE_COMPLETED"
1832
- */
1833
- status?: string | undefined;
1834
- }, Error>>;
1900
+ status: (query: StatusRequest, params?: RequestParams) => Promise<HttpResponse<StatusResponse, Error>>;
1835
1901
  /**
1836
1902
  * @description Get origin assets from a given list of denoms and chain IDs.
1837
1903
  *
1838
1904
  * @tags Fungible
1839
- * @name GetOriginAssets
1905
+ * @name IbcOriginAssets
1840
1906
  * @request POST:/v2/fungible/ibc_origin_assets
1907
+ * @response `200` `IbcOriginAssetsResponse` The origin assets of the specified denoms and chain IDs.
1908
+ * @response `400` `Error` The request was invalid, i.e. required fields are missing
1909
+ * @response `500` `Error` Internal server error
1841
1910
  */
1842
- getOriginAssets: (data: {
1911
+ ibcOriginAssets: (data: {
1843
1912
  /** Array of assets to get origin assets for */
1844
1913
  assets?: {
1845
1914
  /** Denom of the asset */
@@ -1847,15 +1916,16 @@ declare class Api<SecurityDataType extends unknown> extends HttpClient<SecurityD
1847
1916
  /** Chain-id of the asset */
1848
1917
  chain_id?: string;
1849
1918
  }[];
1850
- }, params?: RequestParams) => Promise<HttpResponse<{
1851
- origin_assets?: OptionalAsset[] | undefined;
1852
- }, Error>>;
1919
+ }, params?: RequestParams) => Promise<HttpResponse<IbcOriginAssetsResponse, Error>>;
1853
1920
  /**
1854
1921
  * @description Given 2 chain IDs, returns a list of equivalent assets that can be transferred
1855
1922
  *
1856
1923
  * @tags Fungible
1857
1924
  * @name FungibleAssetsBetweenChainsCreate
1858
1925
  * @request POST:/v2/fungible/assets_between_chains
1926
+ * @response `200` `FungibleAssetsBetweenChainsCreateResponse` OK
1927
+ * @response `404` `Error` One of the chain IDs was not found
1928
+ * @response `500` `Error` Internal server error
1859
1929
  */
1860
1930
  fungibleAssetsBetweenChainsCreate: (data: {
1861
1931
  /** Chain-id of the source chain */
@@ -1882,9 +1952,7 @@ declare class Api<SecurityDataType extends unknown> extends HttpClient<SecurityD
1882
1952
  * @default false
1883
1953
  */
1884
1954
  allow_multi_tx?: boolean;
1885
- }, params?: RequestParams) => Promise<HttpResponse<{
1886
- assets_between_chains?: AssetBetweenChains[] | undefined;
1887
- }, Error>>;
1955
+ }, params?: RequestParams) => Promise<HttpResponse<FungibleAssetsBetweenChainsCreateResponse, Error>>;
1888
1956
  }
1889
1957
 
1890
- export { type EvmTxWrapper as $, type AcknowledgementErrorDetails as A, type BalanceRequestChainEntry as B, type CCTPTransfer as C, type BalanceResponseChainEntry as D, type BankSend as E, type BankSendWrapper as F, type GoFastTransfer as G, type Bridge as H, BridgeType as I, type Chain as J, ChainType as K, type ChainAffiliates as L, type ContractCallWithTokenError as M, ContractCallWithTokenErrorType as N, type ContractCallWithTokenTxs as O, type CosmWasmContractMsg as P, type CosmWasmContractMsgWrapper as Q, type Erc20Approval as R, type SmartRelayFeeQuote as S, type ErrorDetail as T, type Error as U, type CosmosMsg as V, type CosmosTx as W, type CosmosTxWrapper as X, type EvmSwap as Y, type EvmSwapWrapper as Z, type EvmTx as _, type Affiliate as a, type RecommendationRequest as a$, type SvmTx as a0, type SvmTxWrapper as a1, type FeeAsset as a2, type GoFastFee as a3, type GRPCStatusCode as a4, type HyperlaneTransfer as a5, type HyperlaneTransferInfo as a6, HyperlaneTransferState as a7, type HyperlaneTransferTransactions as a8, type HyperlaneTransferWrapper as a9, type SwapOutWrapper as aA, type SwapRoute as aB, type SmartSwapExactCoinIn as aC, type SmartSwapOptions as aD, type SmartSwapInWrapper as aE, type SwapVenue as aF, type SwapWrapper as aG, type TransactionExecutionErrorDetails as aH, TransactionState as aI, type OPInitTransfer as aJ, type OPInitTransferWrapper as aK, type OPInitTransferInfo as aL, type OPInitTransferTxs as aM, OPInitTransferState as aN, LayerZeroTransferState as aO, type Transfer as aP, type TransferEvent as aQ, TransferState as aR, type TransferAssetRelease as aS, type TransferStatus as aT, type TransferWrapper as aU, type EurekaTransfer as aV, type EurekaTransferInfo as aW, type EurekaTransferWrapper as aX, type LayerZeroTransfer as aY, type LayerZeroTransferInfo as aZ, type LayerZeroTransferWrapper as a_, type IBCTransferInfo as aa, type Msg as ab, type Tx as ac, type MultiChainMsg as ad, type MultiChainMsgWrapper as ae, type Operation as af, type OptionalAsset as ag, type LayerZeroTransferTransactions as ah, type Packet as ai, type PacketError as aj, PacketErrorType as ak, type ChainTransaction as al, type PostHandler as am, Reason as an, RoutePriceWarningType as ao, type RouteResponse as ap, type SendTokenError as aq, SendTokenErrorType as ar, type SendTokenTxs as as, type StatusError as at, StatusErrorType as au, type Swap as av, type SwapExactCoinIn as aw, type SwapExactCoinOut as ax, type SwapInWrapper as ay, type SwapOperation as az, type ApiError as b, type CosmosModuleSupport as b0, type IbcCapabilities as b1, FeeType as b2, type Fee as b3, type QueryParamsType as b4, type ResponseFormat as b5, type FullRequestParams as b6, type RequestParams as b7, type ApiConfig as b8, type HttpResponse as b9, ContentType as ba, HttpClient as bb, Api as bc, type Asset as c, type AssetBetweenChains as d, type AssetRecommendation as e, AutopilotAction as f, type AutopilotMsg as g, type AutopilotMsgWrapper as h, type AxelarTransfer as i, type AxelarTransferInfo as j, AxelarTransferState as k, AxelarTransferType as l, type AxelarTransferWrapper as m, type CCTPTransferInfo as n, type CCTPTransferTxs as o, CCTPTransferState as p, type CCTPTransferWrapper as q, type StargateTransfer as r, StargateTransferState as s, type StargateTransferTxs as t, type StargateTransferInfo as u, type StargateTransferWrapper as v, GoFastTransferState as w, type GoFastTransferTxs as x, type GoFastTransferInfo as y, type BalanceResponseDenomEntry as z };
1958
+ export { type EvmTx as $, type AcknowledgementErrorDetails as A, type BalanceRequestChainEntry as B, type CCTPTransfer as C, type BalanceResponseDenomEntry as D, type BalanceResponseChainEntry as E, type BankSend as F, type GoFastTransfer as G, type BankSendWrapper as H, type Bridge as I, BridgeType as J, type Chain as K, ChainType as L, type ChainAffiliates as M, type ContractCallWithTokenError as N, ContractCallWithTokenErrorType as O, type ContractCallWithTokenTxs as P, type CosmWasmContractMsg as Q, type CosmWasmContractMsgWrapper as R, type SmartRelayFeeQuote as S, type Erc20Approval as T, type ErrorDetail as U, type Error as V, type CosmosMsg as W, type CosmosTx as X, type CosmosTxWrapper as Y, type EvmSwap as Z, type EvmSwapWrapper as _, type Affiliate as a, type LayerZeroTransferWrapper as a$, type EvmTxWrapper as a0, type SvmTx as a1, type SvmTxWrapper as a2, type FeeAsset as a3, type GoFastFee as a4, type GRPCStatusCode as a5, type HyperlaneTransfer as a6, type HyperlaneTransferInfo as a7, HyperlaneTransferState as a8, type HyperlaneTransferTransactions as a9, type SwapOperation as aA, type SwapOutWrapper as aB, type SwapRoute as aC, type SmartSwapExactCoinIn as aD, type SmartSwapOptions as aE, type SmartSwapInWrapper as aF, type SwapVenue as aG, type SwapWrapper as aH, type TransactionExecutionErrorDetails as aI, TransactionState as aJ, type OPInitTransfer as aK, type OPInitTransferWrapper as aL, type OPInitTransferInfo as aM, type OPInitTransferTxs as aN, OPInitTransferState as aO, LayerZeroTransferState as aP, type Transfer as aQ, type TransferEvent as aR, TransferState as aS, type TransferAssetRelease as aT, type TransferStatus as aU, type TransferWrapper as aV, type EurekaTransfer as aW, type EurekaTransferInfo as aX, type EurekaTransferWrapper as aY, type LayerZeroTransfer as aZ, type LayerZeroTransferInfo as a_, type HyperlaneTransferWrapper as aa, type IBCTransferInfo as ab, type Msg as ac, type Tx as ad, type MultiChainMsg as ae, type MultiChainMsgWrapper as af, type Operation as ag, type OptionalAsset as ah, type LayerZeroTransferTransactions as ai, type Packet as aj, type PacketError as ak, PacketErrorType as al, type ChainTransaction as am, type PostHandler as an, Reason as ao, RoutePriceWarningType as ap, type Route as aq, type SendTokenError as ar, SendTokenErrorType as as, type SendTokenTxs as at, type StatusError as au, StatusErrorType as av, type Swap as aw, type SwapExactCoinIn as ax, type SwapExactCoinOut as ay, type SwapInWrapper as az, type ApiError as b, type RecommendationRequest as b0, type CosmosModuleSupport as b1, type IbcCapabilities as b2, FeeType as b3, type Fee as b4, type ChainsRequest as b5, type ChainsResponse as b6, type BalancesResponse as b7, type BridgesResponse as b8, type VenuesRequest as b9, type VenuesResponse as ba, type AssetsRequest as bb, type AssetsResponse as bc, type AssetsFromSourceResponse as bd, type RouteResponse as be, type MsgsResponse as bf, type MsgsDirectResponse as bg, type AssetRecommendationsResponse as bh, type SubmitResponse as bi, type TrackResponse as bj, type StatusRequest as bk, type StatusResponse as bl, type IbcOriginAssetsResponse as bm, type FungibleAssetsBetweenChainsCreateResponse as bn, type QueryParamsType as bo, type ResponseFormat as bp, type FullRequestParams as bq, type RequestParams as br, type ApiConfig as bs, type HttpResponse as bt, ContentType as bu, HttpClient as bv, Api as bw, type Asset as c, type AssetBetweenChains as d, type AssetRecommendation as e, AutopilotAction as f, type AutopilotMsg as g, type AutopilotMsgWrapper as h, type AxelarTransfer as i, type AxelarTransferInfo as j, AxelarTransferState as k, AxelarTransferType as l, type AxelarTransferWrapper as m, type CCTPTransferInfo as n, type CCTPTransferTxs as o, CCTPTransferState as p, type CCTPTransferWrapper as q, type StargateTransfer as r, StargateTransferState as s, type StargateTransferTxs as t, type StargateTransferInfo as u, type StargateTransferWrapper as v, GoFastTransferState as w, type GoFastTransferTxs as x, type GoFastTransferInfo as y, type GoFastTransferWrapper as z };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@skip-go/client",
3
3
  "description": "JavaScript SDK for Skip Go API",
4
- "version": "1.0.6",
4
+ "version": "1.1.1",
5
5
  "repository": "https://github.com/skip-mev/skip-go",
6
6
  "type": "module",
7
7
  "main": "./dist/index.js",
@@ -31,7 +31,6 @@
31
31
  "@cosmjs/math": "0.33.1",
32
32
  "@cosmjs/proto-signing": "0.33.1",
33
33
  "@cosmjs/stargate": "0.33.1",
34
- "@cosmjs/tendermint-rpc": "0.33.1",
35
34
  "@injectivelabs/sdk-ts": "1.15.3",
36
35
  "@keplr-wallet/unit": "^0.12.143",
37
36
  "@solana/wallet-adapter-base": "^0.9.23",