@skip-go/client 1.1.0 → 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.
- package/dist/api/getAssets.d.ts +1 -1
- package/dist/api/getAssets.js +2 -2
- package/dist/api/getAssetsBetweenChains.d.ts +1 -1
- package/dist/api/getAssetsBetweenChains.js +2 -2
- package/dist/api/getBridges.d.ts +1 -1
- package/dist/api/getBridges.js +2 -2
- package/dist/api/getChains.d.ts +1 -1
- package/dist/api/getChains.js +2 -2
- package/dist/api/getVenues.js +2 -2
- package/dist/api/postAssetsFromSource.d.ts +1 -1
- package/dist/api/postAssetsFromSource.js +3 -3
- package/dist/api/postBalances.d.ts +4 -4
- package/dist/api/postBalances.js +2 -2
- package/dist/api/postIbcOriginAssets.js +2 -2
- package/dist/api/postMessages.d.ts +42 -4
- package/dist/api/postMessages.js +2 -2
- package/dist/api/postMessagesDirect.d.ts +40 -2
- package/dist/api/postMessagesDirect.js +2 -2
- package/dist/api/postRecommendAssets.d.ts +1 -1
- package/dist/api/postRecommendAssets.js +2 -2
- package/dist/api/postRoute.d.ts +42 -4
- package/dist/api/postRoute.js +2 -2
- package/dist/api/postSubmitTransaction.js +2 -2
- package/dist/api/postTrackTransaction.js +2 -2
- package/dist/api/postTransactionStatus.d.ts +4 -4
- package/dist/api/postTransactionStatus.js +2 -2
- package/dist/{chunk-33K6EESX.js → chunk-2NYWLY5S.js} +2 -2
- package/dist/{chunk-RMP3HM5N.js → chunk-5EU3SRDQ.js} +3 -3
- package/dist/{chunk-DW4U6YI6.js → chunk-7FSLD7Y4.js} +2 -2
- package/dist/{chunk-RDRDFJQE.js → chunk-7P6AOFMX.js} +2 -2
- package/dist/{chunk-MGVXJ2U4.js → chunk-BCN2WD5Q.js} +2 -2
- package/dist/{chunk-BRMONS6A.js → chunk-EAUM5JYS.js} +4 -4
- package/dist/{chunk-L2KVKJG4.js → chunk-GTJ2EDUG.js} +2 -2
- package/dist/{chunk-BQTQJQ5E.js → chunk-H6RXHDUX.js} +2 -2
- package/dist/{chunk-TW77BXMT.js → chunk-KWVMUF5R.js} +1 -1
- package/dist/{chunk-F75DC5RW.js → chunk-MTXTFZRN.js} +7 -7
- package/dist/{chunk-UNF72WYO.js → chunk-PWSY2PQJ.js} +1 -1
- package/dist/{chunk-4JJWOILI.js → chunk-PZM2IB6H.js} +2 -2
- package/dist/{chunk-GARVPN2H.js → chunk-R2N4D2PY.js} +2 -2
- package/dist/{chunk-MTMPHY3Y.js → chunk-R3KHKN33.js} +1 -1
- package/dist/{chunk-C2EDPY6J.js → chunk-RL5AVCSG.js} +2 -2
- package/dist/{chunk-W6TBGBV3.js → chunk-SOGMQT4H.js} +68 -28
- package/dist/{chunk-VMPFHQ7U.js → chunk-T2TOUPEA.js} +1 -1
- package/dist/{chunk-SONZJVQM.js → chunk-UPL6CT4S.js} +1 -1
- package/dist/{chunk-KNV72XRZ.js → chunk-VRPPVMXO.js} +2 -2
- package/dist/{chunk-PRQ2NHRZ.js → chunk-WWDCZAB5.js} +2 -2
- package/dist/{client-types-CRJ3C0Fs.d.ts → client-types-BvdIj_Nf.d.ts} +1 -1
- package/dist/{executeRoute-DuwZ4QCT.d.ts → executeRoute-CxEpxhJ4.d.ts} +4 -4
- package/dist/{generateApi-B9tL1Q3P.d.ts → generateApi-BXIkShKU.d.ts} +1 -1
- package/dist/index.d.ts +155 -9
- package/dist/index.js +20 -20
- package/dist/public-functions/executeRoute.d.ts +4 -4
- package/dist/public-functions/executeRoute.js +8 -8
- package/dist/public-functions/getFeeInfoForChain.d.ts +1 -1
- package/dist/public-functions/getFeeInfoForChain.js +3 -3
- package/dist/public-functions/getRecommendedGasPrice.js +4 -4
- package/dist/public-functions/getSigningStargateClient.js +3 -3
- package/dist/public-functions/setApiOptions.d.ts +1 -1
- package/dist/public-functions/setApiOptions.js +2 -2
- package/dist/public-functions/setClientOptions.d.ts +3 -3
- package/dist/public-functions/setClientOptions.js +3 -3
- package/dist/{setClientOptions-BvZ71LJa.d.ts → setClientOptions-BkD-BMo7.d.ts} +1 -1
- package/dist/{swaggerTypes-zXseZjSi.d.ts → swaggerTypes-A72fxJ5y.d.ts} +228 -162
- package/package.json +1 -1
|
@@ -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 */
|
|
@@ -837,7 +841,7 @@ declare enum RoutePriceWarningType {
|
|
|
837
841
|
LOW_INFO_WARNING = "LOW_INFO_WARNING",
|
|
838
842
|
BAD_PRICE_WARNING = "BAD_PRICE_WARNING"
|
|
839
843
|
}
|
|
840
|
-
interface
|
|
844
|
+
interface Route {
|
|
841
845
|
/** Amount of source asset to be transferred or swapped */
|
|
842
846
|
amountIn: string;
|
|
843
847
|
/** Amount of destination asset out */
|
|
@@ -884,7 +888,7 @@ interface RouteResponse {
|
|
|
884
888
|
/** Indicates fees incurred in the execution of the transfer */
|
|
885
889
|
estimatedFees?: Fee[];
|
|
886
890
|
/** The estimated time in seconds for the route to execute */
|
|
887
|
-
estimatedRouteDurationSeconds
|
|
891
|
+
estimatedRouteDurationSeconds: number;
|
|
888
892
|
}
|
|
889
893
|
interface SendTokenError {
|
|
890
894
|
/** Error message */
|
|
@@ -1400,6 +1404,148 @@ interface Fee {
|
|
|
1400
1404
|
/** The index of the operation in the returned operations list which incurs the fee */
|
|
1401
1405
|
operationIndex?: number;
|
|
1402
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
|
+
}
|
|
1403
1549
|
type QueryParamsType = Record<string | number, any>;
|
|
1404
1550
|
type ResponseFormat = keyof Omit<Body, "body" | "bodyUsed">;
|
|
1405
1551
|
interface FullRequestParams extends Omit<RequestInit, "body"> {
|
|
@@ -1470,107 +1616,62 @@ declare class Api<SecurityDataType extends unknown> extends HttpClient<SecurityD
|
|
|
1470
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...)
|
|
1471
1617
|
*
|
|
1472
1618
|
* @tags Info
|
|
1473
|
-
* @name
|
|
1619
|
+
* @name Chains
|
|
1474
1620
|
* @request GET:/v2/info/chains
|
|
1621
|
+
* @response `200` `ChainsResponse` Returns a list of supported chains with additional data
|
|
1475
1622
|
*/
|
|
1476
|
-
|
|
1477
|
-
/** Chain IDs to limit the response to, defaults to all chains if not provided */
|
|
1478
|
-
chain_ids?: string[];
|
|
1479
|
-
/**
|
|
1480
|
-
* Whether to include EVM chains in the response
|
|
1481
|
-
* @example false
|
|
1482
|
-
*/
|
|
1483
|
-
include_evm?: boolean;
|
|
1484
|
-
/** Whether to include SVM chains in the response */
|
|
1485
|
-
include_svm?: boolean;
|
|
1486
|
-
/**
|
|
1487
|
-
* Whether to display only testnets in the response
|
|
1488
|
-
* @example false
|
|
1489
|
-
*/
|
|
1490
|
-
only_testnets?: boolean;
|
|
1491
|
-
}, params?: RequestParams) => Promise<HttpResponse<{
|
|
1492
|
-
/** Array of supported chain-ids */
|
|
1493
|
-
chains?: Chain[] | undefined;
|
|
1494
|
-
}, any>>;
|
|
1623
|
+
chains: (query: ChainsRequest, params?: RequestParams) => Promise<HttpResponse<ChainsResponse, any>>;
|
|
1495
1624
|
/**
|
|
1496
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.
|
|
1497
1626
|
*
|
|
1498
1627
|
* @tags Info
|
|
1499
|
-
* @name
|
|
1628
|
+
* @name Balances
|
|
1500
1629
|
* @request POST:/v2/info/balances
|
|
1630
|
+
* @response `200` `BalancesResponse` The balances of the assets
|
|
1501
1631
|
*/
|
|
1502
|
-
|
|
1632
|
+
balances: (data: {
|
|
1503
1633
|
chains?: Record<string, BalanceRequestChainEntry>;
|
|
1504
|
-
}, params?: RequestParams) => Promise<HttpResponse<
|
|
1505
|
-
chains?: Record<string, BalanceResponseChainEntry> | undefined;
|
|
1506
|
-
}, any>>;
|
|
1634
|
+
}, params?: RequestParams) => Promise<HttpResponse<BalancesResponse, any>>;
|
|
1507
1635
|
/**
|
|
1508
1636
|
* @description Get all supported bridges
|
|
1509
1637
|
*
|
|
1510
1638
|
* @tags Info
|
|
1511
|
-
* @name
|
|
1639
|
+
* @name Bridges
|
|
1512
1640
|
* @request GET:/v2/info/bridges
|
|
1641
|
+
* @response `200` `BridgesResponse` A list of supported bridges
|
|
1513
1642
|
*/
|
|
1514
|
-
|
|
1515
|
-
/** Array of supported bridges */
|
|
1516
|
-
bridges?: Bridge[] | undefined;
|
|
1517
|
-
}, any>>;
|
|
1643
|
+
bridges: (params?: RequestParams) => Promise<HttpResponse<BridgesResponse, any>>;
|
|
1518
1644
|
/**
|
|
1519
1645
|
* @description Get supported swap venues.
|
|
1520
1646
|
*
|
|
1521
1647
|
* @tags Fungible
|
|
1522
|
-
* @name
|
|
1648
|
+
* @name Venues
|
|
1523
1649
|
* @request GET:/v2/fungible/venues
|
|
1650
|
+
* @response `200` `VenuesResponse` A list of supported swap venues
|
|
1524
1651
|
*/
|
|
1525
|
-
|
|
1526
|
-
/**
|
|
1527
|
-
* Whether to display only venues from testnets in the response
|
|
1528
|
-
* @example false
|
|
1529
|
-
*/
|
|
1530
|
-
only_testnets?: boolean;
|
|
1531
|
-
}, params?: RequestParams) => Promise<HttpResponse<{
|
|
1532
|
-
/** Array of supported swap venues */
|
|
1533
|
-
venues?: SwapVenue[] | undefined;
|
|
1534
|
-
}, any>>;
|
|
1652
|
+
venues: (query: VenuesRequest, params?: RequestParams) => Promise<HttpResponse<VenuesResponse, any>>;
|
|
1535
1653
|
/**
|
|
1536
1654
|
* @description Get supported assets. Optionally limit to assets on a given chain and/or native assets.
|
|
1537
1655
|
*
|
|
1538
1656
|
* @tags Fungible
|
|
1539
|
-
* @name
|
|
1657
|
+
* @name Assets
|
|
1540
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
|
|
1541
1662
|
*/
|
|
1542
|
-
|
|
1543
|
-
/** Chain IDs to limit the response to, defaults to all chains if not provided */
|
|
1544
|
-
chain_ids?: string[];
|
|
1545
|
-
/** Whether to restrict assets to those native to their chain */
|
|
1546
|
-
native_only?: boolean;
|
|
1547
|
-
/** Whether to include assets without metadata (symbol, name, logo_uri, etc.) */
|
|
1548
|
-
include_no_metadata_assets?: boolean;
|
|
1549
|
-
/** Whether to include CW20 tokens */
|
|
1550
|
-
include_cw20_assets?: boolean;
|
|
1551
|
-
/** Whether to include EVM tokens */
|
|
1552
|
-
include_evm_assets?: boolean;
|
|
1553
|
-
/** Whether to include SVM tokens */
|
|
1554
|
-
include_svm_assets?: boolean;
|
|
1555
|
-
/**
|
|
1556
|
-
* Whether to display only assets from testnets in the response
|
|
1557
|
-
* @example false
|
|
1558
|
-
*/
|
|
1559
|
-
only_testnets?: boolean;
|
|
1560
|
-
}, params?: RequestParams) => Promise<HttpResponse<{
|
|
1561
|
-
/** Map of chain-ids to array of assets supported on the chain */
|
|
1562
|
-
chain_to_assets_map?: Record<string, {
|
|
1563
|
-
assets?: Asset[] | undefined;
|
|
1564
|
-
}> | undefined;
|
|
1565
|
-
}, Error>>;
|
|
1663
|
+
assets: (query: AssetsRequest, params?: RequestParams) => Promise<HttpResponse<AssetsResponse, Error>>;
|
|
1566
1664
|
/**
|
|
1567
1665
|
* @description Get assets that can be reached from a source via transfers under different conditions (e.g. single vs multiple txs)
|
|
1568
1666
|
*
|
|
1569
1667
|
* @tags Fungible
|
|
1570
|
-
* @name
|
|
1668
|
+
* @name AssetsFromSource
|
|
1571
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
|
|
1572
1673
|
*/
|
|
1573
|
-
|
|
1674
|
+
assetsFromSource: (data: {
|
|
1574
1675
|
/** Denom of the source asset */
|
|
1575
1676
|
source_asset_denom: string;
|
|
1576
1677
|
/** Chain-id of the source asset */
|
|
@@ -1585,20 +1686,18 @@ declare class Api<SecurityDataType extends unknown> extends HttpClient<SecurityD
|
|
|
1585
1686
|
* @default false
|
|
1586
1687
|
*/
|
|
1587
1688
|
include_cw20_assets?: boolean;
|
|
1588
|
-
}, params?: RequestParams) => Promise<HttpResponse<
|
|
1589
|
-
/** Array of assets that are reachable from the specified source asset */
|
|
1590
|
-
dest_assets?: Record<string, {
|
|
1591
|
-
assets?: Asset[] | undefined;
|
|
1592
|
-
}> | undefined;
|
|
1593
|
-
}, Error>>;
|
|
1689
|
+
}, params?: RequestParams) => Promise<HttpResponse<AssetsFromSourceResponse, Error>>;
|
|
1594
1690
|
/**
|
|
1595
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.
|
|
1596
1692
|
*
|
|
1597
1693
|
* @tags Fungible
|
|
1598
|
-
* @name
|
|
1694
|
+
* @name Route
|
|
1599
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
|
|
1600
1699
|
*/
|
|
1601
|
-
|
|
1700
|
+
route: (data: {
|
|
1602
1701
|
/** Amount of source asset to be transferred or swapped. Only one of amount_in and amount_out should be provided. */
|
|
1603
1702
|
amount_in?: string;
|
|
1604
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. */
|
|
@@ -1630,15 +1729,18 @@ declare class Api<SecurityDataType extends unknown> extends HttpClient<SecurityD
|
|
|
1630
1729
|
allow_swaps?: boolean;
|
|
1631
1730
|
/** Whether to enable Go Fast routes */
|
|
1632
1731
|
go_fast?: boolean;
|
|
1633
|
-
}, params?: RequestParams) => Promise<HttpResponse<
|
|
1732
|
+
}, params?: RequestParams) => Promise<HttpResponse<Route, Error>>;
|
|
1634
1733
|
/**
|
|
1635
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)
|
|
1636
1735
|
*
|
|
1637
1736
|
* @tags Fungible
|
|
1638
|
-
* @name
|
|
1737
|
+
* @name Msgs
|
|
1639
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
|
|
1640
1742
|
*/
|
|
1641
|
-
|
|
1743
|
+
msgs: (data: {
|
|
1642
1744
|
/** Denom of the source asset */
|
|
1643
1745
|
source_asset_denom: string;
|
|
1644
1746
|
/** Chain-id of the source asset */
|
|
@@ -1668,20 +1770,18 @@ declare class Api<SecurityDataType extends unknown> extends HttpClient<SecurityD
|
|
|
1668
1770
|
* @default false
|
|
1669
1771
|
*/
|
|
1670
1772
|
enable_gas_warnings?: boolean;
|
|
1671
|
-
}, params?: RequestParams) => Promise<HttpResponse<
|
|
1672
|
-
msgs?: Msg[] | undefined;
|
|
1673
|
-
txs?: Tx[] | undefined;
|
|
1674
|
-
/** Indicates fees incurred in the execution of the transfer */
|
|
1675
|
-
estimated_fees?: Fee[] | undefined;
|
|
1676
|
-
}, Error>>;
|
|
1773
|
+
}, params?: RequestParams) => Promise<HttpResponse<MsgsResponse, Error>>;
|
|
1677
1774
|
/**
|
|
1678
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.
|
|
1679
1776
|
*
|
|
1680
1777
|
* @tags Fungible
|
|
1681
|
-
* @name
|
|
1778
|
+
* @name MsgsDirect
|
|
1682
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
|
|
1683
1783
|
*/
|
|
1684
|
-
|
|
1784
|
+
msgsDirect: (data: {
|
|
1685
1785
|
/** Denom of the source asset */
|
|
1686
1786
|
source_asset_denom?: string;
|
|
1687
1787
|
/** Chain-id of the source asset */
|
|
@@ -1725,36 +1825,34 @@ declare class Api<SecurityDataType extends unknown> extends HttpClient<SecurityD
|
|
|
1725
1825
|
* @default false
|
|
1726
1826
|
*/
|
|
1727
1827
|
enable_gas_warnings?: boolean;
|
|
1728
|
-
}, params?: RequestParams) => Promise<HttpResponse<
|
|
1729
|
-
msgs?: Msg[] | undefined;
|
|
1730
|
-
txs?: Tx[] | undefined;
|
|
1731
|
-
route?: RouteResponse | undefined;
|
|
1732
|
-
}, Error>>;
|
|
1828
|
+
}, params?: RequestParams) => Promise<HttpResponse<MsgsDirectResponse, Error>>;
|
|
1733
1829
|
/**
|
|
1734
1830
|
* @description Request asset recommendations for the given source assets on a given destination chain. The response includes recommended destination assets and recommendation reasons.
|
|
1735
1831
|
*
|
|
1736
1832
|
* @tags Fungible
|
|
1737
|
-
* @name
|
|
1833
|
+
* @name AssetRecommendations
|
|
1738
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
|
|
1739
1839
|
*/
|
|
1740
|
-
|
|
1840
|
+
assetRecommendations: (data: {
|
|
1741
1841
|
/** Array where each entry corresponds to a distinct asset recommendation request. */
|
|
1742
1842
|
requests?: RecommendationRequest[];
|
|
1743
|
-
}, params?: RequestParams) => Promise<HttpResponse<
|
|
1744
|
-
/** Array of recommendations for each entry in the `request` field. */
|
|
1745
|
-
recommendation_entries?: {
|
|
1746
|
-
recommendations?: AssetRecommendation[] | undefined;
|
|
1747
|
-
error?: ApiError | undefined;
|
|
1748
|
-
}[] | undefined;
|
|
1749
|
-
}, Error>>;
|
|
1843
|
+
}, params?: RequestParams) => Promise<HttpResponse<AssetRecommendationsResponse, Error>>;
|
|
1750
1844
|
/**
|
|
1751
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.
|
|
1752
1846
|
*
|
|
1753
1847
|
* @tags Transaction
|
|
1754
|
-
* @name
|
|
1848
|
+
* @name Submit
|
|
1755
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
|
|
1756
1854
|
*/
|
|
1757
|
-
|
|
1855
|
+
submit: (data: {
|
|
1758
1856
|
/**
|
|
1759
1857
|
* Signed base64 encoded transaction
|
|
1760
1858
|
* @example "base64 encoded transaction"
|
|
@@ -1765,20 +1863,19 @@ declare class Api<SecurityDataType extends unknown> extends HttpClient<SecurityD
|
|
|
1765
1863
|
* @example "osmosis-1"
|
|
1766
1864
|
*/
|
|
1767
1865
|
chain_id?: string;
|
|
1768
|
-
}, params?: RequestParams) => Promise<HttpResponse<
|
|
1769
|
-
/** Hash of the transaction */
|
|
1770
|
-
tx_hash?: string | undefined;
|
|
1771
|
-
/** Link to the transaction on the relevant block explorer */
|
|
1772
|
-
explorer_link?: string | undefined;
|
|
1773
|
-
}, Error>>;
|
|
1866
|
+
}, params?: RequestParams) => Promise<HttpResponse<SubmitResponse, Error>>;
|
|
1774
1867
|
/**
|
|
1775
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.
|
|
1776
1869
|
*
|
|
1777
1870
|
* @tags Transaction
|
|
1778
|
-
* @name
|
|
1871
|
+
* @name Track
|
|
1779
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
|
|
1780
1877
|
*/
|
|
1781
|
-
|
|
1878
|
+
track: (data: {
|
|
1782
1879
|
/**
|
|
1783
1880
|
* Hex encoded hash of the transaction to track
|
|
1784
1881
|
* @example "F30790E79987F18F3A4DA8C7A9BA9FD837043EF59D8236CA85180E1078BC607F"
|
|
@@ -1789,59 +1886,29 @@ declare class Api<SecurityDataType extends unknown> extends HttpClient<SecurityD
|
|
|
1789
1886
|
* @example "osmosis-1"
|
|
1790
1887
|
*/
|
|
1791
1888
|
chain_id: string;
|
|
1792
|
-
}, params?: RequestParams) => Promise<HttpResponse<
|
|
1793
|
-
/** Hash of the transaction */
|
|
1794
|
-
tx_hash: string;
|
|
1795
|
-
/** Link to the transaction on the relevant block explorer */
|
|
1796
|
-
explorer_link: string;
|
|
1797
|
-
}, Error>>;
|
|
1889
|
+
}, params?: RequestParams) => Promise<HttpResponse<TrackResponse, Error>>;
|
|
1798
1890
|
/**
|
|
1799
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.
|
|
1800
1892
|
*
|
|
1801
1893
|
* @tags Transaction
|
|
1802
|
-
* @name
|
|
1894
|
+
* @name Status
|
|
1803
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
|
|
1804
1899
|
*/
|
|
1805
|
-
|
|
1806
|
-
/**
|
|
1807
|
-
* Hex encoded hash of the transaction to query for
|
|
1808
|
-
* @example "EEC65138E6A7BDD047ED0D4BBA249A754F0BBBC7AA976568C4F35A32CD7FB8EB"
|
|
1809
|
-
*/
|
|
1810
|
-
tx_hash: string;
|
|
1811
|
-
/**
|
|
1812
|
-
* Chain ID of the transaction
|
|
1813
|
-
* @example "cosmoshub-4"
|
|
1814
|
-
*/
|
|
1815
|
-
chain_id: string;
|
|
1816
|
-
}, params?: RequestParams) => Promise<HttpResponse<{
|
|
1817
|
-
/** Transfer status for all transfers initiated by the transaction in the order they were initiated. */
|
|
1818
|
-
transfers?: TransferStatus[] | undefined;
|
|
1819
|
-
/** The overall state reflecting the end-to-end status of all transfers initiated by the original transaction. */
|
|
1820
|
-
state: TransactionState;
|
|
1821
|
-
/** A detailed sequence of all cross-chain transfer events associated with the transaction. */
|
|
1822
|
-
transfer_sequence: TransferEvent[];
|
|
1823
|
-
/** Details about the next transfer in the sequence that is preventing further progress, if any. */
|
|
1824
|
-
next_blocking_transfer?: {
|
|
1825
|
-
transfer_sequence_index?: number | undefined;
|
|
1826
|
-
} | null | undefined;
|
|
1827
|
-
/** Indicates location and denom of transfer asset release. */
|
|
1828
|
-
transfer_asset_release?: TransferAssetRelease | undefined;
|
|
1829
|
-
/** Details about any error encountered during the transaction or its subsequent transfers. */
|
|
1830
|
-
error?: StatusError | null | undefined;
|
|
1831
|
-
/**
|
|
1832
|
-
* A high-level status indicator for the transaction's completion state.
|
|
1833
|
-
* @example "STATE_COMPLETED"
|
|
1834
|
-
*/
|
|
1835
|
-
status?: string | undefined;
|
|
1836
|
-
}, Error>>;
|
|
1900
|
+
status: (query: StatusRequest, params?: RequestParams) => Promise<HttpResponse<StatusResponse, Error>>;
|
|
1837
1901
|
/**
|
|
1838
1902
|
* @description Get origin assets from a given list of denoms and chain IDs.
|
|
1839
1903
|
*
|
|
1840
1904
|
* @tags Fungible
|
|
1841
|
-
* @name
|
|
1905
|
+
* @name IbcOriginAssets
|
|
1842
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
|
|
1843
1910
|
*/
|
|
1844
|
-
|
|
1911
|
+
ibcOriginAssets: (data: {
|
|
1845
1912
|
/** Array of assets to get origin assets for */
|
|
1846
1913
|
assets?: {
|
|
1847
1914
|
/** Denom of the asset */
|
|
@@ -1849,15 +1916,16 @@ declare class Api<SecurityDataType extends unknown> extends HttpClient<SecurityD
|
|
|
1849
1916
|
/** Chain-id of the asset */
|
|
1850
1917
|
chain_id?: string;
|
|
1851
1918
|
}[];
|
|
1852
|
-
}, params?: RequestParams) => Promise<HttpResponse<
|
|
1853
|
-
origin_assets?: OptionalAsset[] | undefined;
|
|
1854
|
-
}, Error>>;
|
|
1919
|
+
}, params?: RequestParams) => Promise<HttpResponse<IbcOriginAssetsResponse, Error>>;
|
|
1855
1920
|
/**
|
|
1856
1921
|
* @description Given 2 chain IDs, returns a list of equivalent assets that can be transferred
|
|
1857
1922
|
*
|
|
1858
1923
|
* @tags Fungible
|
|
1859
1924
|
* @name FungibleAssetsBetweenChainsCreate
|
|
1860
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
|
|
1861
1929
|
*/
|
|
1862
1930
|
fungibleAssetsBetweenChainsCreate: (data: {
|
|
1863
1931
|
/** Chain-id of the source chain */
|
|
@@ -1884,9 +1952,7 @@ declare class Api<SecurityDataType extends unknown> extends HttpClient<SecurityD
|
|
|
1884
1952
|
* @default false
|
|
1885
1953
|
*/
|
|
1886
1954
|
allow_multi_tx?: boolean;
|
|
1887
|
-
}, params?: RequestParams) => Promise<HttpResponse<
|
|
1888
|
-
assets_between_chains?: AssetBetweenChains[] | undefined;
|
|
1889
|
-
}, Error>>;
|
|
1955
|
+
}, params?: RequestParams) => Promise<HttpResponse<FungibleAssetsBetweenChainsCreateResponse, Error>>;
|
|
1890
1956
|
}
|
|
1891
1957
|
|
|
1892
|
-
export { type
|
|
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 };
|