@skip-go/client 1.0.0 → 1.0.1-alpha-0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/getAssets.cjs +15 -0
- package/dist/api/{getAssets.d.mts → getAssets.d.cts} +2 -2
- package/dist/api/getAssets.d.ts +19 -0
- package/dist/api/getAssets.js +2 -0
- package/dist/api/getAssetsBetweenChains.cjs +11 -0
- package/dist/api/{getAssetsBetweenChains.d.mts → getAssetsBetweenChains.d.cts} +2 -2
- package/dist/api/getAssetsBetweenChains.d.ts +56 -0
- package/dist/api/getAssetsBetweenChains.js +2 -0
- package/dist/api/getBridges.cjs +11 -0
- package/dist/api/{getBridges.d.mts → getBridges.d.cts} +2 -2
- package/dist/api/getBridges.d.ts +54 -0
- package/dist/api/getBridges.js +2 -0
- package/dist/api/getChains.cjs +11 -0
- package/dist/api/{getChains.d.mts → getChains.d.cts} +2 -2
- package/dist/api/getChains.d.ts +41 -0
- package/dist/api/getChains.js +2 -0
- package/dist/api/getVenues.cjs +11 -0
- package/dist/api/{getVenues.d.mts → getVenues.d.cts} +1 -1
- package/dist/api/getVenues.d.ts +13 -0
- package/dist/api/getVenues.js +2 -0
- package/dist/api/postAssetsFromSource.cjs +12 -0
- package/dist/api/{postAssetsFromSource.d.mts → postAssetsFromSource.d.cts} +2 -2
- package/dist/api/postAssetsFromSource.d.ts +13 -0
- package/dist/api/postAssetsFromSource.js +3 -0
- package/dist/api/postBalances.cjs +11 -0
- package/dist/api/{postBalances.d.mts → postBalances.d.cts} +3 -3
- package/dist/api/postBalances.d.ts +35 -0
- package/dist/api/postBalances.js +2 -0
- package/dist/api/postIbcOriginAssets.cjs +11 -0
- package/dist/api/{postIbcOriginAssets.d.mts → postIbcOriginAssets.d.cts} +1 -1
- package/dist/api/postIbcOriginAssets.d.ts +32 -0
- package/dist/api/postIbcOriginAssets.js +2 -0
- package/dist/api/postMessages.cjs +11 -0
- package/dist/api/{postMessages.d.mts → postMessages.d.cts} +3 -3
- package/dist/api/postMessages.d.ts +528 -0
- package/dist/api/postMessages.js +2 -0
- package/dist/api/postMessagesDirect.cjs +11 -0
- package/dist/api/{postMessagesDirect.d.mts → postMessagesDirect.d.cts} +2 -2
- package/dist/api/postMessagesDirect.d.ts +568 -0
- package/dist/api/postMessagesDirect.js +2 -0
- package/dist/api/postRecommendAssets.cjs +11 -0
- package/dist/api/{postRecommendAssets.d.mts → postRecommendAssets.d.cts} +2 -2
- package/dist/api/postRecommendAssets.d.ts +40 -0
- package/dist/api/postRecommendAssets.js +2 -0
- package/dist/api/postRoute.cjs +11 -0
- package/dist/api/{postRoute.d.mts → postRoute.d.cts} +3 -3
- package/dist/api/postRoute.d.ts +460 -0
- package/dist/api/postRoute.js +2 -0
- package/dist/api/postSubmitTransaction.cjs +11 -0
- package/dist/api/{postSubmitTransaction.d.mts → postSubmitTransaction.d.cts} +1 -1
- package/dist/api/postSubmitTransaction.d.ts +13 -0
- package/dist/api/postSubmitTransaction.js +2 -0
- package/dist/api/postTrackTransaction.cjs +11 -0
- package/dist/api/{postTrackTransaction.d.mts → postTrackTransaction.d.cts} +1 -1
- package/dist/api/postTrackTransaction.d.ts +13 -0
- package/dist/api/postTrackTransaction.js +2 -0
- package/dist/api/postTransactionStatus.cjs +11 -0
- package/dist/api/{postTransactionStatus.d.mts → postTransactionStatus.d.cts} +3 -3
- package/dist/api/postTransactionStatus.d.ts +559 -0
- package/dist/api/postTransactionStatus.js +2 -0
- package/dist/apiState-CdzxTxYd.d.ts +6 -0
- package/dist/chunk-32MRDO7V.cjs +12 -0
- package/dist/{chunk-C5CGY2X7.mjs → chunk-33K6EESX.js} +1 -1
- package/dist/{chunk-ZMEQSFOL.mjs → chunk-3N7XVGLX.js} +18 -23
- package/dist/{chunk-OTLFF5OB.mjs → chunk-3OZQ35X3.js} +101 -138
- package/dist/chunk-44PBLFB5.cjs +24 -0
- package/dist/{chunk-7TBBV2YY.mjs → chunk-4JJWOILI.js} +1 -1
- package/dist/chunk-4R6OCWRR.cjs +1346 -0
- package/dist/chunk-5IAEEEOQ.cjs +2251 -0
- package/dist/chunk-77ITCT75.cjs +15 -0
- package/dist/chunk-7OIZPQJB.cjs +3660 -0
- package/dist/chunk-7SK3IFXJ.cjs +188 -0
- package/dist/{chunk-QZ3X6MP3.mjs → chunk-BQTQJQ5E.js} +1 -1
- package/dist/{chunk-IHIJJNTV.mjs → chunk-BRJDNGYH.js} +6 -7
- package/dist/chunk-BRMONS6A.js +130 -0
- package/dist/{chunk-NNZFCKHP.mjs → chunk-C2EDPY6J.js} +1 -1
- package/dist/chunk-DAMZSSOH.cjs +12 -0
- package/dist/{chunk-KPK3Z6QZ.mjs → chunk-DW4U6YI6.js} +1 -1
- package/dist/chunk-ED2OY55G.cjs +136 -0
- package/dist/chunk-GARVPN2H.js +16 -0
- package/dist/chunk-HAR3IXDE.cjs +705 -0
- package/dist/chunk-ISHM4QWP.cjs +16 -0
- package/dist/chunk-J4LI33TK.cjs +95 -0
- package/dist/{chunk-NU7MCJOK.mjs → chunk-JTIHU43D.js} +32 -36
- package/dist/chunk-KDN7RCGP.cjs +13 -0
- package/dist/{chunk-J7GGREYX.mjs → chunk-KNV72XRZ.js} +1 -1
- package/dist/chunk-KZOSEIWH.cjs +10 -0
- package/dist/chunk-L5V5PASH.cjs +12 -0
- package/dist/chunk-LXYLWTNZ.cjs +12 -0
- package/dist/{chunk-CAAR7GDJ.mjs → chunk-MGVXJ2U4.js} +1 -1
- package/dist/{chunk-IGD32L7C.mjs → chunk-MTMPHY3Y.js} +1 -1
- package/dist/chunk-PNWIJSMA.cjs +12 -0
- package/dist/{chunk-CZ27FEZ7.mjs → chunk-PRQ2NHRZ.js} +1 -1
- package/dist/chunk-RDOSNDAQ.cjs +13 -0
- package/dist/{chunk-LJVI5DLG.mjs → chunk-RDRDFJQE.js} +1 -1
- package/dist/{chunk-YWYU6P7W.mjs → chunk-RMP3HM5N.js} +2 -2
- package/dist/chunk-SFMBRLUS.cjs +18 -0
- package/dist/{chunk-DZQJN6OX.mjs → chunk-SQGWZAUC.js} +76 -86
- package/dist/chunk-SW3SEQMJ.cjs +273 -0
- package/dist/{chunk-2ETF4N4H.mjs → chunk-TW77BXMT.js} +4 -5
- package/dist/chunk-URLFWBSC.cjs +11 -0
- package/dist/chunk-VI7UMBQ7.cjs +12 -0
- package/dist/{chunk-2F4MBSMT.mjs → chunk-VMPFHQ7U.js} +14 -20
- package/dist/chunk-W2U2UOFA.js +1790 -0
- package/dist/chunk-W6TBGBV3.js +675 -0
- package/dist/chunk-WWNTHZ6I.cjs +1812 -0
- package/dist/chunk-ZNXE6PUV.cjs +46 -0
- package/dist/{client-types-CVch1pZ-.d.mts → client-types-CxjtffyG.d.ts} +1 -1
- package/dist/client-types-qvyKvyFh.d.cts +60 -0
- package/dist/{executeRoute-CRdeEz1o.d.mts → executeRoute-BKRpODCc.d.cts} +3 -3
- package/dist/executeRoute-BKvMVd1I.d.ts +69 -0
- package/dist/{generateApi-3mHZ6Zbr.d.mts → generateApi-C0amiydg.d.cts} +1 -1
- package/dist/generateApi-DqCp36fX.d.ts +22 -0
- package/dist/index.cjs +209 -0
- package/dist/{index.d.mts → index.d.cts} +25 -27
- package/dist/index.d.ts +35 -0
- package/dist/index.js +24 -0
- package/dist/public-functions/executeRoute.cjs +21 -0
- package/dist/public-functions/{executeRoute.d.mts → executeRoute.d.cts} +4 -4
- package/dist/public-functions/executeRoute.d.ts +9 -0
- package/dist/public-functions/executeRoute.js +12 -0
- package/dist/public-functions/getFeeInfoForChain.cjs +14 -0
- package/dist/public-functions/{getFeeInfoForChain.d.mts → getFeeInfoForChain.d.cts} +2 -2
- package/dist/public-functions/getFeeInfoForChain.d.ts +9 -0
- package/dist/public-functions/getFeeInfoForChain.js +5 -0
- package/dist/public-functions/getRecommendedGasPrice.cjs +16 -0
- package/dist/public-functions/{getRecommendedGasPrice.d.mts → getRecommendedGasPrice.d.cts} +2 -2
- package/dist/public-functions/getRecommendedGasPrice.d.ts +9 -0
- package/dist/public-functions/getRecommendedGasPrice.js +7 -0
- package/dist/public-functions/getSigningStargateClient.cjs +13 -0
- package/dist/public-functions/{getSigningStargateClient.d.mts → getSigningStargateClient.d.cts} +1 -1
- package/dist/public-functions/getSigningStargateClient.d.ts +13 -0
- package/dist/public-functions/getSigningStargateClient.js +4 -0
- package/dist/public-functions/setApiOptions.cjs +11 -0
- package/dist/public-functions/{setApiOptions.d.mts → setApiOptions.d.cts} +2 -2
- package/dist/public-functions/setApiOptions.d.ts +9 -0
- package/dist/public-functions/setApiOptions.js +2 -0
- package/dist/public-functions/setClientOptions.cjs +13 -0
- package/dist/public-functions/setClientOptions.d.cts +9 -0
- package/dist/public-functions/setClientOptions.d.ts +9 -0
- package/dist/public-functions/setClientOptions.js +4 -0
- package/dist/{setClientOptions-CVB_OUIn.d.mts → setClientOptions-CT6CHI9I.d.cts} +2 -2
- package/dist/setClientOptions-DbanEIwL.d.ts +19 -0
- package/dist/swaggerTypes-O9-gvCT1.d.ts +1890 -0
- package/package.json +12 -3
- package/dist/api/getAssets.mjs +0 -2
- package/dist/api/getAssetsBetweenChains.mjs +0 -2
- package/dist/api/getBridges.mjs +0 -2
- package/dist/api/getChains.mjs +0 -2
- package/dist/api/getVenues.mjs +0 -2
- package/dist/api/postAssetsFromSource.mjs +0 -3
- package/dist/api/postBalances.mjs +0 -2
- package/dist/api/postIbcOriginAssets.mjs +0 -2
- package/dist/api/postMessages.mjs +0 -2
- package/dist/api/postMessagesDirect.mjs +0 -2
- package/dist/api/postRecommendAssets.mjs +0 -2
- package/dist/api/postRoute.mjs +0 -2
- package/dist/api/postSubmitTransaction.mjs +0 -2
- package/dist/api/postTrackTransaction.mjs +0 -2
- package/dist/api/postTransactionStatus.mjs +0 -2
- package/dist/chunk-2FYLP573.mjs +0 -15
- package/dist/chunk-DKIWPD5I.mjs +0 -124
- package/dist/chunk-I2MX24LT.mjs +0 -2316
- package/dist/chunk-RXWDHQLG.mjs +0 -231
- package/dist/index.mjs +0 -24
- package/dist/public-functions/executeRoute.mjs +0 -12
- package/dist/public-functions/getFeeInfoForChain.mjs +0 -5
- package/dist/public-functions/getRecommendedGasPrice.mjs +0 -7
- package/dist/public-functions/getSigningStargateClient.mjs +0 -4
- package/dist/public-functions/setApiOptions.mjs +0 -2
- package/dist/public-functions/setClientOptions.d.mts +0 -9
- package/dist/public-functions/setClientOptions.mjs +0 -4
- /package/dist/{apiState-CdzxTxYd.d.mts → apiState-CdzxTxYd.d.cts} +0 -0
- /package/dist/{chunk-ZAF3Z56R.mjs → chunk-SWYON2RG.js} +0 -0
- /package/dist/{chunk-TUBI6VE6.mjs → chunk-VQ5SIQWU.js} +0 -0
- /package/dist/{swaggerTypes-O9-gvCT1.d.mts → swaggerTypes-O9-gvCT1.d.cts} +0 -0
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkHAR3IXDE_cjs = require('./chunk-HAR3IXDE.cjs');
|
|
4
|
+
|
|
5
|
+
// src/public-functions/setApiOptions.ts
|
|
6
|
+
var setApiOptions = (options = {}) => {
|
|
7
|
+
chunkHAR3IXDE_cjs.ApiState.client = chunkHAR3IXDE_cjs.createRequestClient({
|
|
8
|
+
baseUrl: options.apiUrl || "https://api.skip.build",
|
|
9
|
+
apiKey: options.apiKey
|
|
10
|
+
});
|
|
11
|
+
chunkHAR3IXDE_cjs.ApiState.setClientInitialized();
|
|
12
|
+
if (options.chainIdsToAffiliates) {
|
|
13
|
+
chunkHAR3IXDE_cjs.ApiState.cumulativeAffiliateFeeBPS = validateChainIdsToAffiliates(options.chainIdsToAffiliates);
|
|
14
|
+
chunkHAR3IXDE_cjs.ApiState.chainIdsToAffiliates = options.chainIdsToAffiliates;
|
|
15
|
+
}
|
|
16
|
+
return chunkHAR3IXDE_cjs.ApiState.clientInitialized;
|
|
17
|
+
};
|
|
18
|
+
function validateChainIdsToAffiliates(chainIdsToAffiliates) {
|
|
19
|
+
const affiliatesArray = Object.values(chainIdsToAffiliates).map((chain) => chain.affiliates).filter((a) => a !== void 0);
|
|
20
|
+
const firstAffiliateBasisPointsFee = affiliatesArray[0]?.reduce((acc, affiliate) => {
|
|
21
|
+
if (!affiliate.basisPointsFee) {
|
|
22
|
+
throw new Error("basisPointFee must exist in each affiliate");
|
|
23
|
+
}
|
|
24
|
+
return acc + parseInt(affiliate.basisPointsFee, 10);
|
|
25
|
+
}, 0);
|
|
26
|
+
const allBasisPointsAreEqual = affiliatesArray.every((affiliate) => {
|
|
27
|
+
const totalBasisPointsFee = affiliate.reduce((acc, affiliate2) => {
|
|
28
|
+
if (!affiliate2.basisPointsFee) {
|
|
29
|
+
throw new Error("basisPointFee must exist in each affiliate");
|
|
30
|
+
}
|
|
31
|
+
if (!affiliate2.address) {
|
|
32
|
+
throw new Error("address to receive fee must exist in each affiliate");
|
|
33
|
+
}
|
|
34
|
+
return acc + parseInt(affiliate2?.basisPointsFee, 10);
|
|
35
|
+
}, 0);
|
|
36
|
+
return totalBasisPointsFee === firstAffiliateBasisPointsFee;
|
|
37
|
+
});
|
|
38
|
+
if (!allBasisPointsAreEqual) {
|
|
39
|
+
throw new Error(
|
|
40
|
+
"basisPointFee does not add up to the same number for each chain in chainIdsToAffiliates"
|
|
41
|
+
);
|
|
42
|
+
}
|
|
43
|
+
return firstAffiliateBasisPointsFee?.toFixed(0);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
exports.setApiOptions = setApiOptions;
|
|
@@ -3,7 +3,7 @@ import { OfflineDirectSigner } from '@cosmjs/proto-signing';
|
|
|
3
3
|
import { StdFee, GasPrice, SignerData } from '@cosmjs/stargate';
|
|
4
4
|
import { WalletClient } from 'viem';
|
|
5
5
|
import { Adapter } from '@solana/wallet-adapter-base';
|
|
6
|
-
import { a2 as FeeAsset, K as ChainType, V as CosmosMsg } from './swaggerTypes-O9-gvCT1.
|
|
6
|
+
import { a2 as FeeAsset, K as ChainType, V as CosmosMsg } from './swaggerTypes-O9-gvCT1.js';
|
|
7
7
|
|
|
8
8
|
/** Common Types */
|
|
9
9
|
type UserAddress = {
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { OfflineAminoSigner } from '@cosmjs/amino';
|
|
2
|
+
import { OfflineDirectSigner } from '@cosmjs/proto-signing';
|
|
3
|
+
import { StdFee, GasPrice, SignerData } from '@cosmjs/stargate';
|
|
4
|
+
import { WalletClient } from 'viem';
|
|
5
|
+
import { Adapter } from '@solana/wallet-adapter-base';
|
|
6
|
+
import { a2 as FeeAsset, K as ChainType, V as CosmosMsg } from './swaggerTypes-O9-gvCT1.cjs';
|
|
7
|
+
|
|
8
|
+
/** Common Types */
|
|
9
|
+
type UserAddress = {
|
|
10
|
+
chainId: string;
|
|
11
|
+
address: string;
|
|
12
|
+
};
|
|
13
|
+
type EndpointOptions = {
|
|
14
|
+
rpc?: string;
|
|
15
|
+
rest?: string;
|
|
16
|
+
};
|
|
17
|
+
type ValidateGasResult = {
|
|
18
|
+
error: null | string;
|
|
19
|
+
asset: FeeAsset | null;
|
|
20
|
+
fee: StdFee | null;
|
|
21
|
+
};
|
|
22
|
+
/** Signer Getters */
|
|
23
|
+
type SignerGetters = {
|
|
24
|
+
getEvmSigner?: (chainId: string) => Promise<WalletClient>;
|
|
25
|
+
getCosmosSigner?: (chainId: string) => Promise<(OfflineAminoSigner & OfflineDirectSigner) | OfflineAminoSigner | OfflineDirectSigner>;
|
|
26
|
+
getSvmSigner?: () => Promise<Adapter>;
|
|
27
|
+
};
|
|
28
|
+
/** Gas Options */
|
|
29
|
+
type GetFallbackGasAmount = (chainId: string, chainType: ChainType) => Promise<number | undefined>;
|
|
30
|
+
type GetGasPrice = (chainId: string, chainType: ChainType) => Promise<GasPrice | undefined>;
|
|
31
|
+
type GasOptions = {
|
|
32
|
+
/**
|
|
33
|
+
* If `getGasPrice` is undefined, or returns undefined, the router will attempt to set the recommended gas price
|
|
34
|
+
**/
|
|
35
|
+
getGasPrice?: GetGasPrice;
|
|
36
|
+
/**
|
|
37
|
+
* If `getFallbackGasAmount` is set, when router fails to simulate the gas amount, it will use the fallback gas amount
|
|
38
|
+
*/
|
|
39
|
+
getFallbackGasAmount?: GetFallbackGasAmount;
|
|
40
|
+
gasAmountMultiplier?: number;
|
|
41
|
+
};
|
|
42
|
+
type SignCosmosMessageOptionsBase = {
|
|
43
|
+
signerAddress: string;
|
|
44
|
+
chainId: string;
|
|
45
|
+
cosmosMsgs: CosmosMsg[];
|
|
46
|
+
fee: StdFee;
|
|
47
|
+
signerData: SignerData;
|
|
48
|
+
};
|
|
49
|
+
type SignCosmosMessageDirectOptions = SignCosmosMessageOptionsBase & {
|
|
50
|
+
signer: OfflineDirectSigner;
|
|
51
|
+
};
|
|
52
|
+
type SignCosmosMessageAminoOptions = SignCosmosMessageOptionsBase & {
|
|
53
|
+
signer: OfflineAminoSigner;
|
|
54
|
+
};
|
|
55
|
+
type TxResult = {
|
|
56
|
+
txHash: string;
|
|
57
|
+
chainId: string;
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
export type { EndpointOptions as E, GetFallbackGasAmount as G, SignerGetters as S, TxResult as T, UserAddress as U, ValidateGasResult as V, GetGasPrice as a, GasOptions as b, SignCosmosMessageOptionsBase as c, SignCosmosMessageDirectOptions as d, SignCosmosMessageAminoOptions as e };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { aT as TransferStatus, R as Erc20Approval, ap as RouteResponse, V as CosmosMsg } from './swaggerTypes-O9-gvCT1.
|
|
2
|
-
import { A as ApiRequest } from './generateApi-
|
|
3
|
-
import { S as SignerGetters, b as GasOptions, U as UserAddress } from './client-types-
|
|
1
|
+
import { aT as TransferStatus, R as Erc20Approval, ap as RouteResponse, V as CosmosMsg } from './swaggerTypes-O9-gvCT1.cjs';
|
|
2
|
+
import { A as ApiRequest } from './generateApi-C0amiydg.cjs';
|
|
3
|
+
import { S as SignerGetters, b as GasOptions, U as UserAddress } from './client-types-qvyKvyFh.cjs';
|
|
4
4
|
|
|
5
5
|
type CallbackStatus = "success" | "error" | "pending" | "completed";
|
|
6
6
|
type TransactionCallbacks = {
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { aT as TransferStatus, R as Erc20Approval, ap as RouteResponse, V as CosmosMsg } from './swaggerTypes-O9-gvCT1.js';
|
|
2
|
+
import { A as ApiRequest } from './generateApi-DqCp36fX.js';
|
|
3
|
+
import { S as SignerGetters, b as GasOptions, U as UserAddress } from './client-types-CxjtffyG.js';
|
|
4
|
+
|
|
5
|
+
type CallbackStatus = "success" | "error" | "pending" | "completed";
|
|
6
|
+
type TransactionCallbacks = {
|
|
7
|
+
onTransactionSigned?: (txInfo: {
|
|
8
|
+
chainId: string;
|
|
9
|
+
}) => Promise<void>;
|
|
10
|
+
onTransactionBroadcast?: (txInfo: {
|
|
11
|
+
txHash: string;
|
|
12
|
+
chainId: string;
|
|
13
|
+
}) => Promise<void>;
|
|
14
|
+
onTransactionTracked?: (txInfo: {
|
|
15
|
+
txHash: string;
|
|
16
|
+
chainId: string;
|
|
17
|
+
explorerLink: string;
|
|
18
|
+
}) => Promise<void>;
|
|
19
|
+
onTransactionCompleted?: (txInfo: {
|
|
20
|
+
chainId: string;
|
|
21
|
+
txHash: string;
|
|
22
|
+
status?: TransferStatus;
|
|
23
|
+
}) => Promise<void>;
|
|
24
|
+
onValidateGasBalance?: (value: {
|
|
25
|
+
chainId?: string;
|
|
26
|
+
txIndex?: number;
|
|
27
|
+
status: CallbackStatus;
|
|
28
|
+
}) => Promise<void>;
|
|
29
|
+
onApproveAllowance?: (value: {
|
|
30
|
+
allowance?: Erc20Approval;
|
|
31
|
+
status: CallbackStatus;
|
|
32
|
+
}) => Promise<void>;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
/** Execute Route Options */
|
|
36
|
+
type ExecuteRouteOptions = SignerGetters & GasOptions & TransactionCallbacks & Pick<ApiRequest<"getMsgsV2">, "timeoutSeconds"> & {
|
|
37
|
+
route: RouteResponse;
|
|
38
|
+
/**
|
|
39
|
+
* Addresses should be in the same order with the `chainIDs` in the `route`
|
|
40
|
+
*/
|
|
41
|
+
userAddresses: UserAddress[];
|
|
42
|
+
simulate?: boolean;
|
|
43
|
+
slippageTolerancePercent?: string;
|
|
44
|
+
/**
|
|
45
|
+
* Arbitrary Tx to be executed before or after route msgs
|
|
46
|
+
*/
|
|
47
|
+
beforeMsg?: CosmosMsg;
|
|
48
|
+
afterMsg?: CosmosMsg;
|
|
49
|
+
/**
|
|
50
|
+
* Set allowance amount to max if EVM transaction requires allowance approval.
|
|
51
|
+
*/
|
|
52
|
+
useUnlimitedApproval?: boolean;
|
|
53
|
+
/**
|
|
54
|
+
/**
|
|
55
|
+
* If `skipApproval` is set to `true`, the router will bypass checking whether
|
|
56
|
+
* the signer has granted approval for the specified token contract on an EVM chain.
|
|
57
|
+
* This can be useful if approval has already been handled externally or there are race conditions.
|
|
58
|
+
*/
|
|
59
|
+
bypassApprovalCheck?: boolean;
|
|
60
|
+
/**
|
|
61
|
+
* defaults to true
|
|
62
|
+
* If `batchSimulate` is set to `true`, it will simulate all messages in a batch before the first tx run.
|
|
63
|
+
* If `batchSimulate` is set to `false`, it will simulate each message one by one.
|
|
64
|
+
*/
|
|
65
|
+
batchSimulate?: boolean;
|
|
66
|
+
};
|
|
67
|
+
declare const executeRoute: (options: ExecuteRouteOptions) => Promise<void>;
|
|
68
|
+
|
|
69
|
+
export { type ExecuteRouteOptions as E, type TransactionCallbacks as T, executeRoute as e };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { bc as Api } from './swaggerTypes-O9-gvCT1.
|
|
1
|
+
import { bc as Api } from './swaggerTypes-O9-gvCT1.cjs';
|
|
2
2
|
|
|
3
3
|
type CamelKey<S extends string> = S extends `${infer T}_${infer U}` ? `${T}${Capitalize<CamelKey<U>>}` : S;
|
|
4
4
|
type Camel<T> = T extends (infer U)[] ? Camel<U>[] : T extends object ? {
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { bc as Api } from './swaggerTypes-O9-gvCT1.js';
|
|
2
|
+
|
|
3
|
+
type CamelKey<S extends string> = S extends `${infer T}_${infer U}` ? `${T}${Capitalize<CamelKey<U>>}` : S;
|
|
4
|
+
type Camel<T> = T extends (infer U)[] ? Camel<U>[] : T extends object ? {
|
|
5
|
+
[K in keyof T as K extends string ? CamelKey<K> : never]: Camel<T[K]>;
|
|
6
|
+
} : T;
|
|
7
|
+
|
|
8
|
+
type ApiInstance = InstanceType<typeof Api>;
|
|
9
|
+
type FunctionKeys<T> = {
|
|
10
|
+
[K in keyof T]: T[K] extends (...args: any[]) => any ? K : never;
|
|
11
|
+
}[keyof T];
|
|
12
|
+
type ValidApiMethodKeys = {
|
|
13
|
+
[K in FunctionKeys<ApiInstance>]: Awaited<ReturnType<ApiInstance[K]>> extends {
|
|
14
|
+
data: unknown;
|
|
15
|
+
} ? K : never;
|
|
16
|
+
}[FunctionKeys<ApiInstance>];
|
|
17
|
+
type ApiRequest<K extends ValidApiMethodKeys> = NonNullable<Camel<Parameters<ApiInstance[K]>[0]>>;
|
|
18
|
+
type ApiResponse<K extends ValidApiMethodKeys> = Camel<Awaited<ReturnType<ApiInstance[K]>> extends {
|
|
19
|
+
data: infer D;
|
|
20
|
+
} ? D extends object ? D : never : never>;
|
|
21
|
+
|
|
22
|
+
export type { ApiRequest as A, ApiResponse as a };
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkWWNTHZ6I_cjs = require('./chunk-WWNTHZ6I.cjs');
|
|
4
|
+
var chunk44PBLFB5_cjs = require('./chunk-44PBLFB5.cjs');
|
|
5
|
+
require('./chunk-4R6OCWRR.cjs');
|
|
6
|
+
var chunkJ4LI33TK_cjs = require('./chunk-J4LI33TK.cjs');
|
|
7
|
+
var chunkKZOSEIWH_cjs = require('./chunk-KZOSEIWH.cjs');
|
|
8
|
+
var chunkSW3SEQMJ_cjs = require('./chunk-SW3SEQMJ.cjs');
|
|
9
|
+
require('./chunk-7SK3IFXJ.cjs');
|
|
10
|
+
var chunkZNXE6PUV_cjs = require('./chunk-ZNXE6PUV.cjs');
|
|
11
|
+
var chunk5IAEEEOQ_cjs = require('./chunk-5IAEEEOQ.cjs');
|
|
12
|
+
require('./chunk-7OIZPQJB.cjs');
|
|
13
|
+
var chunkRDOSNDAQ_cjs = require('./chunk-RDOSNDAQ.cjs');
|
|
14
|
+
var chunk32MRDO7V_cjs = require('./chunk-32MRDO7V.cjs');
|
|
15
|
+
var chunkLXYLWTNZ_cjs = require('./chunk-LXYLWTNZ.cjs');
|
|
16
|
+
var chunk77ITCT75_cjs = require('./chunk-77ITCT75.cjs');
|
|
17
|
+
var chunkSFMBRLUS_cjs = require('./chunk-SFMBRLUS.cjs');
|
|
18
|
+
var chunkL5V5PASH_cjs = require('./chunk-L5V5PASH.cjs');
|
|
19
|
+
var chunkKDN7RCGP_cjs = require('./chunk-KDN7RCGP.cjs');
|
|
20
|
+
var chunkDAMZSSOH_cjs = require('./chunk-DAMZSSOH.cjs');
|
|
21
|
+
var chunkURLFWBSC_cjs = require('./chunk-URLFWBSC.cjs');
|
|
22
|
+
var chunkVI7UMBQ7_cjs = require('./chunk-VI7UMBQ7.cjs');
|
|
23
|
+
var chunkPNWIJSMA_cjs = require('./chunk-PNWIJSMA.cjs');
|
|
24
|
+
var chunkISHM4QWP_cjs = require('./chunk-ISHM4QWP.cjs');
|
|
25
|
+
var chunkED2OY55G_cjs = require('./chunk-ED2OY55G.cjs');
|
|
26
|
+
var chunkHAR3IXDE_cjs = require('./chunk-HAR3IXDE.cjs');
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
Object.defineProperty(exports, "executeRoute", {
|
|
31
|
+
enumerable: true,
|
|
32
|
+
get: function () { return chunkWWNTHZ6I_cjs.executeRoute; }
|
|
33
|
+
});
|
|
34
|
+
Object.defineProperty(exports, "getRecommendedGasPrice", {
|
|
35
|
+
enumerable: true,
|
|
36
|
+
get: function () { return chunk44PBLFB5_cjs.getRecommendedGasPrice; }
|
|
37
|
+
});
|
|
38
|
+
Object.defineProperty(exports, "getFeeInfoForChain", {
|
|
39
|
+
enumerable: true,
|
|
40
|
+
get: function () { return chunkJ4LI33TK_cjs.getFeeInfoForChain; }
|
|
41
|
+
});
|
|
42
|
+
Object.defineProperty(exports, "GAS_STATION_CHAIN_IDS", {
|
|
43
|
+
enumerable: true,
|
|
44
|
+
get: function () { return chunkKZOSEIWH_cjs.GAS_STATION_CHAIN_IDS; }
|
|
45
|
+
});
|
|
46
|
+
Object.defineProperty(exports, "getSigningStargateClient", {
|
|
47
|
+
enumerable: true,
|
|
48
|
+
get: function () { return chunkSW3SEQMJ_cjs.getSigningStargateClient; }
|
|
49
|
+
});
|
|
50
|
+
Object.defineProperty(exports, "setApiOptions", {
|
|
51
|
+
enumerable: true,
|
|
52
|
+
get: function () { return chunkZNXE6PUV_cjs.setApiOptions; }
|
|
53
|
+
});
|
|
54
|
+
Object.defineProperty(exports, "setClientOptions", {
|
|
55
|
+
enumerable: true,
|
|
56
|
+
get: function () { return chunk5IAEEEOQ_cjs.setClientOptions; }
|
|
57
|
+
});
|
|
58
|
+
Object.defineProperty(exports, "ibcOriginAssets", {
|
|
59
|
+
enumerable: true,
|
|
60
|
+
get: function () { return chunkRDOSNDAQ_cjs.ibcOriginAssets; }
|
|
61
|
+
});
|
|
62
|
+
Object.defineProperty(exports, "messages", {
|
|
63
|
+
enumerable: true,
|
|
64
|
+
get: function () { return chunk32MRDO7V_cjs.messages; }
|
|
65
|
+
});
|
|
66
|
+
Object.defineProperty(exports, "messagesDirect", {
|
|
67
|
+
enumerable: true,
|
|
68
|
+
get: function () { return chunkLXYLWTNZ_cjs.messagesDirect; }
|
|
69
|
+
});
|
|
70
|
+
Object.defineProperty(exports, "recommendAssets", {
|
|
71
|
+
enumerable: true,
|
|
72
|
+
get: function () { return chunk77ITCT75_cjs.recommendAssets; }
|
|
73
|
+
});
|
|
74
|
+
Object.defineProperty(exports, "route", {
|
|
75
|
+
enumerable: true,
|
|
76
|
+
get: function () { return chunkSFMBRLUS_cjs.route; }
|
|
77
|
+
});
|
|
78
|
+
Object.defineProperty(exports, "submitTransaction", {
|
|
79
|
+
enumerable: true,
|
|
80
|
+
get: function () { return chunkL5V5PASH_cjs.submitTransaction; }
|
|
81
|
+
});
|
|
82
|
+
Object.defineProperty(exports, "trackTransaction", {
|
|
83
|
+
enumerable: true,
|
|
84
|
+
get: function () { return chunkKDN7RCGP_cjs.trackTransaction; }
|
|
85
|
+
});
|
|
86
|
+
Object.defineProperty(exports, "transactionStatus", {
|
|
87
|
+
enumerable: true,
|
|
88
|
+
get: function () { return chunkDAMZSSOH_cjs.transactionStatus; }
|
|
89
|
+
});
|
|
90
|
+
Object.defineProperty(exports, "assetsBetweenChains", {
|
|
91
|
+
enumerable: true,
|
|
92
|
+
get: function () { return chunkURLFWBSC_cjs.assetsBetweenChains; }
|
|
93
|
+
});
|
|
94
|
+
Object.defineProperty(exports, "bridges", {
|
|
95
|
+
enumerable: true,
|
|
96
|
+
get: function () { return chunkVI7UMBQ7_cjs.bridges; }
|
|
97
|
+
});
|
|
98
|
+
Object.defineProperty(exports, "venues", {
|
|
99
|
+
enumerable: true,
|
|
100
|
+
get: function () { return chunkPNWIJSMA_cjs.venues; }
|
|
101
|
+
});
|
|
102
|
+
Object.defineProperty(exports, "assetsFromSource", {
|
|
103
|
+
enumerable: true,
|
|
104
|
+
get: function () { return chunkISHM4QWP_cjs.assetsFromSource; }
|
|
105
|
+
});
|
|
106
|
+
Object.defineProperty(exports, "assets", {
|
|
107
|
+
enumerable: true,
|
|
108
|
+
get: function () { return chunkED2OY55G_cjs.assets; }
|
|
109
|
+
});
|
|
110
|
+
Object.defineProperty(exports, "balances", {
|
|
111
|
+
enumerable: true,
|
|
112
|
+
get: function () { return chunkED2OY55G_cjs.balances; }
|
|
113
|
+
});
|
|
114
|
+
Object.defineProperty(exports, "chains", {
|
|
115
|
+
enumerable: true,
|
|
116
|
+
get: function () { return chunkED2OY55G_cjs.chains; }
|
|
117
|
+
});
|
|
118
|
+
Object.defineProperty(exports, "Api", {
|
|
119
|
+
enumerable: true,
|
|
120
|
+
get: function () { return chunkHAR3IXDE_cjs.Api; }
|
|
121
|
+
});
|
|
122
|
+
Object.defineProperty(exports, "AutopilotAction", {
|
|
123
|
+
enumerable: true,
|
|
124
|
+
get: function () { return chunkHAR3IXDE_cjs.AutopilotAction; }
|
|
125
|
+
});
|
|
126
|
+
Object.defineProperty(exports, "AxelarTransferState", {
|
|
127
|
+
enumerable: true,
|
|
128
|
+
get: function () { return chunkHAR3IXDE_cjs.AxelarTransferState; }
|
|
129
|
+
});
|
|
130
|
+
Object.defineProperty(exports, "AxelarTransferType", {
|
|
131
|
+
enumerable: true,
|
|
132
|
+
get: function () { return chunkHAR3IXDE_cjs.AxelarTransferType; }
|
|
133
|
+
});
|
|
134
|
+
Object.defineProperty(exports, "BridgeType", {
|
|
135
|
+
enumerable: true,
|
|
136
|
+
get: function () { return chunkHAR3IXDE_cjs.BridgeType; }
|
|
137
|
+
});
|
|
138
|
+
Object.defineProperty(exports, "CCTPTransferState", {
|
|
139
|
+
enumerable: true,
|
|
140
|
+
get: function () { return chunkHAR3IXDE_cjs.CCTPTransferState; }
|
|
141
|
+
});
|
|
142
|
+
Object.defineProperty(exports, "ChainType", {
|
|
143
|
+
enumerable: true,
|
|
144
|
+
get: function () { return chunkHAR3IXDE_cjs.ChainType; }
|
|
145
|
+
});
|
|
146
|
+
Object.defineProperty(exports, "ContentType", {
|
|
147
|
+
enumerable: true,
|
|
148
|
+
get: function () { return chunkHAR3IXDE_cjs.ContentType; }
|
|
149
|
+
});
|
|
150
|
+
Object.defineProperty(exports, "ContractCallWithTokenErrorType", {
|
|
151
|
+
enumerable: true,
|
|
152
|
+
get: function () { return chunkHAR3IXDE_cjs.ContractCallWithTokenErrorType; }
|
|
153
|
+
});
|
|
154
|
+
Object.defineProperty(exports, "FeeType", {
|
|
155
|
+
enumerable: true,
|
|
156
|
+
get: function () { return chunkHAR3IXDE_cjs.FeeType; }
|
|
157
|
+
});
|
|
158
|
+
Object.defineProperty(exports, "GoFastTransferState", {
|
|
159
|
+
enumerable: true,
|
|
160
|
+
get: function () { return chunkHAR3IXDE_cjs.GoFastTransferState; }
|
|
161
|
+
});
|
|
162
|
+
Object.defineProperty(exports, "HttpClient", {
|
|
163
|
+
enumerable: true,
|
|
164
|
+
get: function () { return chunkHAR3IXDE_cjs.HttpClient; }
|
|
165
|
+
});
|
|
166
|
+
Object.defineProperty(exports, "HyperlaneTransferState", {
|
|
167
|
+
enumerable: true,
|
|
168
|
+
get: function () { return chunkHAR3IXDE_cjs.HyperlaneTransferState; }
|
|
169
|
+
});
|
|
170
|
+
Object.defineProperty(exports, "LayerZeroTransferState", {
|
|
171
|
+
enumerable: true,
|
|
172
|
+
get: function () { return chunkHAR3IXDE_cjs.LayerZeroTransferState; }
|
|
173
|
+
});
|
|
174
|
+
Object.defineProperty(exports, "OPInitTransferState", {
|
|
175
|
+
enumerable: true,
|
|
176
|
+
get: function () { return chunkHAR3IXDE_cjs.OPInitTransferState; }
|
|
177
|
+
});
|
|
178
|
+
Object.defineProperty(exports, "PacketErrorType", {
|
|
179
|
+
enumerable: true,
|
|
180
|
+
get: function () { return chunkHAR3IXDE_cjs.PacketErrorType; }
|
|
181
|
+
});
|
|
182
|
+
Object.defineProperty(exports, "Reason", {
|
|
183
|
+
enumerable: true,
|
|
184
|
+
get: function () { return chunkHAR3IXDE_cjs.Reason; }
|
|
185
|
+
});
|
|
186
|
+
Object.defineProperty(exports, "RoutePriceWarningType", {
|
|
187
|
+
enumerable: true,
|
|
188
|
+
get: function () { return chunkHAR3IXDE_cjs.RoutePriceWarningType; }
|
|
189
|
+
});
|
|
190
|
+
Object.defineProperty(exports, "SendTokenErrorType", {
|
|
191
|
+
enumerable: true,
|
|
192
|
+
get: function () { return chunkHAR3IXDE_cjs.SendTokenErrorType; }
|
|
193
|
+
});
|
|
194
|
+
Object.defineProperty(exports, "StargateTransferState", {
|
|
195
|
+
enumerable: true,
|
|
196
|
+
get: function () { return chunkHAR3IXDE_cjs.StargateTransferState; }
|
|
197
|
+
});
|
|
198
|
+
Object.defineProperty(exports, "StatusErrorType", {
|
|
199
|
+
enumerable: true,
|
|
200
|
+
get: function () { return chunkHAR3IXDE_cjs.StatusErrorType; }
|
|
201
|
+
});
|
|
202
|
+
Object.defineProperty(exports, "TransactionState", {
|
|
203
|
+
enumerable: true,
|
|
204
|
+
get: function () { return chunkHAR3IXDE_cjs.TransactionState; }
|
|
205
|
+
});
|
|
206
|
+
Object.defineProperty(exports, "TransferState", {
|
|
207
|
+
enumerable: true,
|
|
208
|
+
get: function () { return chunkHAR3IXDE_cjs.TransferState; }
|
|
209
|
+
});
|
|
@@ -1,36 +1,34 @@
|
|
|
1
|
-
export { A as AcknowledgementErrorDetails, a as Affiliate, bc as Api, b8 as ApiConfig, b as ApiError, c as Asset, d as AssetBetweenChains, e as AssetRecommendation, f as AutopilotAction, g as AutopilotMsg, h as AutopilotMsgWrapper, i as AxelarTransfer, j as AxelarTransferInfo, k as AxelarTransferState, l as AxelarTransferType, m as AxelarTransferWrapper, B as BalanceRequestChainEntry, D as BalanceResponseChainEntry, z as BalanceResponseDenomEntry, E as BankSend, F as BankSendWrapper, H as Bridge, I as BridgeType, C as CCTPTransfer, n as CCTPTransferInfo, p as CCTPTransferState, o as CCTPTransferTxs, q as CCTPTransferWrapper, J as Chain, L as ChainAffiliates, al as ChainTransaction, K as ChainType, ba as ContentType, M as ContractCallWithTokenError, N as ContractCallWithTokenErrorType, O as ContractCallWithTokenTxs, P as CosmWasmContractMsg, Q as CosmWasmContractMsgWrapper, b0 as CosmosModuleSupport, V as CosmosMsg, W as CosmosTx, X as CosmosTxWrapper, R as Erc20Approval, U as Error, T as ErrorDetail, aV as EurekaTransfer, aW as EurekaTransferInfo, aX as EurekaTransferWrapper, Y as EvmSwap, Z as EvmSwapWrapper, _ as EvmTx, $ as EvmTxWrapper, b3 as Fee, a2 as FeeAsset, b2 as FeeType, b6 as FullRequestParams, a4 as GRPCStatusCode, a3 as GoFastFee, G as GoFastTransfer, y as GoFastTransferInfo, w as GoFastTransferState, x as GoFastTransferTxs, bb as HttpClient, b9 as HttpResponse, a5 as HyperlaneTransfer, a6 as HyperlaneTransferInfo, a7 as HyperlaneTransferState, a8 as HyperlaneTransferTransactions, a9 as HyperlaneTransferWrapper, aa as IBCTransferInfo, b1 as IbcCapabilities, aY as LayerZeroTransfer, aZ as LayerZeroTransferInfo, aO as LayerZeroTransferState, ah as LayerZeroTransferTransactions, a_ as LayerZeroTransferWrapper, ab as Msg, ad as MultiChainMsg, ae as MultiChainMsgWrapper, aJ as OPInitTransfer, aL as OPInitTransferInfo, aN as OPInitTransferState, aM as OPInitTransferTxs, aK as OPInitTransferWrapper, af as Operation, ag as OptionalAsset, ai as Packet, aj as PacketError, ak as PacketErrorType, am as PostHandler, b4 as QueryParamsType, an as Reason, a$ as RecommendationRequest, b7 as RequestParams, b5 as ResponseFormat, ao as RoutePriceWarningType, ap as RouteResponse, aq as SendTokenError, ar as SendTokenErrorType, as as SendTokenTxs, S as SmartRelayFeeQuote, aC as SmartSwapExactCoinIn, aE as SmartSwapInWrapper, aD as SmartSwapOptions, r as StargateTransfer, u as StargateTransferInfo, s as StargateTransferState, t as StargateTransferTxs, v as StargateTransferWrapper, at as StatusError, au as StatusErrorType, a0 as SvmTx, a1 as SvmTxWrapper, av as Swap, aw as SwapExactCoinIn, ax as SwapExactCoinOut, ay as SwapInWrapper, az as SwapOperation, aA as SwapOutWrapper, aB as SwapRoute, aF as SwapVenue, aG as SwapWrapper, aH as TransactionExecutionErrorDetails, aI as TransactionState, aP as Transfer, aS as TransferAssetRelease, aQ as TransferEvent, aR as TransferState, aT as TransferStatus, aU as TransferWrapper, ac as Tx } from './swaggerTypes-O9-gvCT1.
|
|
2
|
-
export { E as ExecuteRouteOptions, T as TransactionCallbacks, e as executeRoute } from './executeRoute-
|
|
3
|
-
export { E as EndpointOptions, b as GasOptions, G as GetFallbackGasAmount, a as GetGasPrice, e as SignCosmosMessageAminoOptions, d as SignCosmosMessageDirectOptions, c as SignCosmosMessageOptionsBase, S as SignerGetters, T as TxResult, U as UserAddress, V as ValidateGasResult } from './client-types-
|
|
4
|
-
export { assets } from './api/getAssets.
|
|
5
|
-
export { assetsBetweenChains } from './api/getAssetsBetweenChains.
|
|
6
|
-
export { bridges } from './api/getBridges.
|
|
7
|
-
export { chains } from './api/getChains.
|
|
8
|
-
export { venues } from './api/getVenues.
|
|
9
|
-
export { ibcOriginAssets } from './api/postIbcOriginAssets.
|
|
10
|
-
export { MessagesRequest, MessagesResponse, messages } from './api/postMessages.
|
|
11
|
-
export { messagesDirect } from './api/postMessagesDirect.
|
|
12
|
-
export { recommendAssets } from './api/postRecommendAssets.
|
|
13
|
-
export { assetsFromSource } from './api/postAssetsFromSource.
|
|
14
|
-
export { BalanceRequest, BalanceResponse, balances } from './api/postBalances.
|
|
15
|
-
export { RouteRequest, route } from './api/postRoute.
|
|
16
|
-
export { submitTransaction } from './api/postSubmitTransaction.
|
|
17
|
-
export { trackTransaction } from './api/postTrackTransaction.
|
|
18
|
-
export { TxStatusResponse, transactionStatus } from './api/postTransactionStatus.
|
|
19
|
-
export { getSigningStargateClient, getSigningStargateClientProps } from './public-functions/getSigningStargateClient.
|
|
20
|
-
export { S as SkipClientOptions, s as setClientOptions } from './setClientOptions-
|
|
21
|
-
export { getRecommendedGasPrice } from './public-functions/getRecommendedGasPrice.
|
|
22
|
-
export { getFeeInfoForChain } from './public-functions/getFeeInfoForChain.
|
|
23
|
-
export { SetApiOptionsProps, setApiOptions } from './public-functions/setApiOptions.
|
|
24
|
-
import './generateApi-
|
|
1
|
+
export { A as AcknowledgementErrorDetails, a as Affiliate, bc as Api, b8 as ApiConfig, b as ApiError, c as Asset, d as AssetBetweenChains, e as AssetRecommendation, f as AutopilotAction, g as AutopilotMsg, h as AutopilotMsgWrapper, i as AxelarTransfer, j as AxelarTransferInfo, k as AxelarTransferState, l as AxelarTransferType, m as AxelarTransferWrapper, B as BalanceRequestChainEntry, D as BalanceResponseChainEntry, z as BalanceResponseDenomEntry, E as BankSend, F as BankSendWrapper, H as Bridge, I as BridgeType, C as CCTPTransfer, n as CCTPTransferInfo, p as CCTPTransferState, o as CCTPTransferTxs, q as CCTPTransferWrapper, J as Chain, L as ChainAffiliates, al as ChainTransaction, K as ChainType, ba as ContentType, M as ContractCallWithTokenError, N as ContractCallWithTokenErrorType, O as ContractCallWithTokenTxs, P as CosmWasmContractMsg, Q as CosmWasmContractMsgWrapper, b0 as CosmosModuleSupport, V as CosmosMsg, W as CosmosTx, X as CosmosTxWrapper, R as Erc20Approval, U as Error, T as ErrorDetail, aV as EurekaTransfer, aW as EurekaTransferInfo, aX as EurekaTransferWrapper, Y as EvmSwap, Z as EvmSwapWrapper, _ as EvmTx, $ as EvmTxWrapper, b3 as Fee, a2 as FeeAsset, b2 as FeeType, b6 as FullRequestParams, a4 as GRPCStatusCode, a3 as GoFastFee, G as GoFastTransfer, y as GoFastTransferInfo, w as GoFastTransferState, x as GoFastTransferTxs, bb as HttpClient, b9 as HttpResponse, a5 as HyperlaneTransfer, a6 as HyperlaneTransferInfo, a7 as HyperlaneTransferState, a8 as HyperlaneTransferTransactions, a9 as HyperlaneTransferWrapper, aa as IBCTransferInfo, b1 as IbcCapabilities, aY as LayerZeroTransfer, aZ as LayerZeroTransferInfo, aO as LayerZeroTransferState, ah as LayerZeroTransferTransactions, a_ as LayerZeroTransferWrapper, ab as Msg, ad as MultiChainMsg, ae as MultiChainMsgWrapper, aJ as OPInitTransfer, aL as OPInitTransferInfo, aN as OPInitTransferState, aM as OPInitTransferTxs, aK as OPInitTransferWrapper, af as Operation, ag as OptionalAsset, ai as Packet, aj as PacketError, ak as PacketErrorType, am as PostHandler, b4 as QueryParamsType, an as Reason, a$ as RecommendationRequest, b7 as RequestParams, b5 as ResponseFormat, ao as RoutePriceWarningType, ap as RouteResponse, aq as SendTokenError, ar as SendTokenErrorType, as as SendTokenTxs, S as SmartRelayFeeQuote, aC as SmartSwapExactCoinIn, aE as SmartSwapInWrapper, aD as SmartSwapOptions, r as StargateTransfer, u as StargateTransferInfo, s as StargateTransferState, t as StargateTransferTxs, v as StargateTransferWrapper, at as StatusError, au as StatusErrorType, a0 as SvmTx, a1 as SvmTxWrapper, av as Swap, aw as SwapExactCoinIn, ax as SwapExactCoinOut, ay as SwapInWrapper, az as SwapOperation, aA as SwapOutWrapper, aB as SwapRoute, aF as SwapVenue, aG as SwapWrapper, aH as TransactionExecutionErrorDetails, aI as TransactionState, aP as Transfer, aS as TransferAssetRelease, aQ as TransferEvent, aR as TransferState, aT as TransferStatus, aU as TransferWrapper, ac as Tx } from './swaggerTypes-O9-gvCT1.cjs';
|
|
2
|
+
export { E as ExecuteRouteOptions, T as TransactionCallbacks, e as executeRoute } from './executeRoute-BKRpODCc.cjs';
|
|
3
|
+
export { E as EndpointOptions, b as GasOptions, G as GetFallbackGasAmount, a as GetGasPrice, e as SignCosmosMessageAminoOptions, d as SignCosmosMessageDirectOptions, c as SignCosmosMessageOptionsBase, S as SignerGetters, T as TxResult, U as UserAddress, V as ValidateGasResult } from './client-types-qvyKvyFh.cjs';
|
|
4
|
+
export { assets } from './api/getAssets.cjs';
|
|
5
|
+
export { assetsBetweenChains } from './api/getAssetsBetweenChains.cjs';
|
|
6
|
+
export { bridges } from './api/getBridges.cjs';
|
|
7
|
+
export { chains } from './api/getChains.cjs';
|
|
8
|
+
export { venues } from './api/getVenues.cjs';
|
|
9
|
+
export { ibcOriginAssets } from './api/postIbcOriginAssets.cjs';
|
|
10
|
+
export { MessagesRequest, MessagesResponse, messages } from './api/postMessages.cjs';
|
|
11
|
+
export { messagesDirect } from './api/postMessagesDirect.cjs';
|
|
12
|
+
export { recommendAssets } from './api/postRecommendAssets.cjs';
|
|
13
|
+
export { assetsFromSource } from './api/postAssetsFromSource.cjs';
|
|
14
|
+
export { BalanceRequest, BalanceResponse, balances } from './api/postBalances.cjs';
|
|
15
|
+
export { RouteRequest, route } from './api/postRoute.cjs';
|
|
16
|
+
export { submitTransaction } from './api/postSubmitTransaction.cjs';
|
|
17
|
+
export { trackTransaction } from './api/postTrackTransaction.cjs';
|
|
18
|
+
export { TxStatusResponse, transactionStatus } from './api/postTransactionStatus.cjs';
|
|
19
|
+
export { getSigningStargateClient, getSigningStargateClientProps } from './public-functions/getSigningStargateClient.cjs';
|
|
20
|
+
export { S as SkipClientOptions, s as setClientOptions } from './setClientOptions-CT6CHI9I.cjs';
|
|
21
|
+
export { getRecommendedGasPrice } from './public-functions/getRecommendedGasPrice.cjs';
|
|
22
|
+
export { getFeeInfoForChain } from './public-functions/getFeeInfoForChain.cjs';
|
|
23
|
+
export { SetApiOptionsProps, setApiOptions } from './public-functions/setApiOptions.cjs';
|
|
24
|
+
import './generateApi-C0amiydg.cjs';
|
|
25
25
|
import '@cosmjs/amino';
|
|
26
26
|
import '@cosmjs/proto-signing';
|
|
27
27
|
import '@cosmjs/stargate';
|
|
28
28
|
import 'viem';
|
|
29
29
|
import '@solana/wallet-adapter-base';
|
|
30
|
-
import './apiState-CdzxTxYd.
|
|
30
|
+
import './apiState-CdzxTxYd.cjs';
|
|
31
31
|
import '@cosmjs/proto-signing/build/signer';
|
|
32
|
-
import '@cosmjs/stargate/build/signingstargateclient';
|
|
33
|
-
import '@cosmjs/stargate/build/fee';
|
|
34
32
|
|
|
35
33
|
declare const GAS_STATION_CHAIN_IDS: string[];
|
|
36
34
|
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export { A as AcknowledgementErrorDetails, a as Affiliate, bc as Api, b8 as ApiConfig, b as ApiError, c as Asset, d as AssetBetweenChains, e as AssetRecommendation, f as AutopilotAction, g as AutopilotMsg, h as AutopilotMsgWrapper, i as AxelarTransfer, j as AxelarTransferInfo, k as AxelarTransferState, l as AxelarTransferType, m as AxelarTransferWrapper, B as BalanceRequestChainEntry, D as BalanceResponseChainEntry, z as BalanceResponseDenomEntry, E as BankSend, F as BankSendWrapper, H as Bridge, I as BridgeType, C as CCTPTransfer, n as CCTPTransferInfo, p as CCTPTransferState, o as CCTPTransferTxs, q as CCTPTransferWrapper, J as Chain, L as ChainAffiliates, al as ChainTransaction, K as ChainType, ba as ContentType, M as ContractCallWithTokenError, N as ContractCallWithTokenErrorType, O as ContractCallWithTokenTxs, P as CosmWasmContractMsg, Q as CosmWasmContractMsgWrapper, b0 as CosmosModuleSupport, V as CosmosMsg, W as CosmosTx, X as CosmosTxWrapper, R as Erc20Approval, U as Error, T as ErrorDetail, aV as EurekaTransfer, aW as EurekaTransferInfo, aX as EurekaTransferWrapper, Y as EvmSwap, Z as EvmSwapWrapper, _ as EvmTx, $ as EvmTxWrapper, b3 as Fee, a2 as FeeAsset, b2 as FeeType, b6 as FullRequestParams, a4 as GRPCStatusCode, a3 as GoFastFee, G as GoFastTransfer, y as GoFastTransferInfo, w as GoFastTransferState, x as GoFastTransferTxs, bb as HttpClient, b9 as HttpResponse, a5 as HyperlaneTransfer, a6 as HyperlaneTransferInfo, a7 as HyperlaneTransferState, a8 as HyperlaneTransferTransactions, a9 as HyperlaneTransferWrapper, aa as IBCTransferInfo, b1 as IbcCapabilities, aY as LayerZeroTransfer, aZ as LayerZeroTransferInfo, aO as LayerZeroTransferState, ah as LayerZeroTransferTransactions, a_ as LayerZeroTransferWrapper, ab as Msg, ad as MultiChainMsg, ae as MultiChainMsgWrapper, aJ as OPInitTransfer, aL as OPInitTransferInfo, aN as OPInitTransferState, aM as OPInitTransferTxs, aK as OPInitTransferWrapper, af as Operation, ag as OptionalAsset, ai as Packet, aj as PacketError, ak as PacketErrorType, am as PostHandler, b4 as QueryParamsType, an as Reason, a$ as RecommendationRequest, b7 as RequestParams, b5 as ResponseFormat, ao as RoutePriceWarningType, ap as RouteResponse, aq as SendTokenError, ar as SendTokenErrorType, as as SendTokenTxs, S as SmartRelayFeeQuote, aC as SmartSwapExactCoinIn, aE as SmartSwapInWrapper, aD as SmartSwapOptions, r as StargateTransfer, u as StargateTransferInfo, s as StargateTransferState, t as StargateTransferTxs, v as StargateTransferWrapper, at as StatusError, au as StatusErrorType, a0 as SvmTx, a1 as SvmTxWrapper, av as Swap, aw as SwapExactCoinIn, ax as SwapExactCoinOut, ay as SwapInWrapper, az as SwapOperation, aA as SwapOutWrapper, aB as SwapRoute, aF as SwapVenue, aG as SwapWrapper, aH as TransactionExecutionErrorDetails, aI as TransactionState, aP as Transfer, aS as TransferAssetRelease, aQ as TransferEvent, aR as TransferState, aT as TransferStatus, aU as TransferWrapper, ac as Tx } from './swaggerTypes-O9-gvCT1.js';
|
|
2
|
+
export { E as ExecuteRouteOptions, T as TransactionCallbacks, e as executeRoute } from './executeRoute-BKvMVd1I.js';
|
|
3
|
+
export { E as EndpointOptions, b as GasOptions, G as GetFallbackGasAmount, a as GetGasPrice, e as SignCosmosMessageAminoOptions, d as SignCosmosMessageDirectOptions, c as SignCosmosMessageOptionsBase, S as SignerGetters, T as TxResult, U as UserAddress, V as ValidateGasResult } from './client-types-CxjtffyG.js';
|
|
4
|
+
export { assets } from './api/getAssets.js';
|
|
5
|
+
export { assetsBetweenChains } from './api/getAssetsBetweenChains.js';
|
|
6
|
+
export { bridges } from './api/getBridges.js';
|
|
7
|
+
export { chains } from './api/getChains.js';
|
|
8
|
+
export { venues } from './api/getVenues.js';
|
|
9
|
+
export { ibcOriginAssets } from './api/postIbcOriginAssets.js';
|
|
10
|
+
export { MessagesRequest, MessagesResponse, messages } from './api/postMessages.js';
|
|
11
|
+
export { messagesDirect } from './api/postMessagesDirect.js';
|
|
12
|
+
export { recommendAssets } from './api/postRecommendAssets.js';
|
|
13
|
+
export { assetsFromSource } from './api/postAssetsFromSource.js';
|
|
14
|
+
export { BalanceRequest, BalanceResponse, balances } from './api/postBalances.js';
|
|
15
|
+
export { RouteRequest, route } from './api/postRoute.js';
|
|
16
|
+
export { submitTransaction } from './api/postSubmitTransaction.js';
|
|
17
|
+
export { trackTransaction } from './api/postTrackTransaction.js';
|
|
18
|
+
export { TxStatusResponse, transactionStatus } from './api/postTransactionStatus.js';
|
|
19
|
+
export { getSigningStargateClient, getSigningStargateClientProps } from './public-functions/getSigningStargateClient.js';
|
|
20
|
+
export { S as SkipClientOptions, s as setClientOptions } from './setClientOptions-DbanEIwL.js';
|
|
21
|
+
export { getRecommendedGasPrice } from './public-functions/getRecommendedGasPrice.js';
|
|
22
|
+
export { getFeeInfoForChain } from './public-functions/getFeeInfoForChain.js';
|
|
23
|
+
export { SetApiOptionsProps, setApiOptions } from './public-functions/setApiOptions.js';
|
|
24
|
+
import './generateApi-DqCp36fX.js';
|
|
25
|
+
import '@cosmjs/amino';
|
|
26
|
+
import '@cosmjs/proto-signing';
|
|
27
|
+
import '@cosmjs/stargate';
|
|
28
|
+
import 'viem';
|
|
29
|
+
import '@solana/wallet-adapter-base';
|
|
30
|
+
import './apiState-CdzxTxYd.js';
|
|
31
|
+
import '@cosmjs/proto-signing/build/signer';
|
|
32
|
+
|
|
33
|
+
declare const GAS_STATION_CHAIN_IDS: string[];
|
|
34
|
+
|
|
35
|
+
export { GAS_STATION_CHAIN_IDS };
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export { executeRoute } from './chunk-W2U2UOFA.js';
|
|
2
|
+
export { getRecommendedGasPrice } from './chunk-BRJDNGYH.js';
|
|
3
|
+
import './chunk-VQ5SIQWU.js';
|
|
4
|
+
export { getFeeInfoForChain } from './chunk-VMPFHQ7U.js';
|
|
5
|
+
export { GAS_STATION_CHAIN_IDS } from './chunk-SWYON2RG.js';
|
|
6
|
+
export { getSigningStargateClient } from './chunk-3N7XVGLX.js';
|
|
7
|
+
import './chunk-JTIHU43D.js';
|
|
8
|
+
export { setApiOptions } from './chunk-TW77BXMT.js';
|
|
9
|
+
export { setClientOptions } from './chunk-SQGWZAUC.js';
|
|
10
|
+
import './chunk-3OZQ35X3.js';
|
|
11
|
+
export { ibcOriginAssets } from './chunk-PRQ2NHRZ.js';
|
|
12
|
+
export { messages } from './chunk-DW4U6YI6.js';
|
|
13
|
+
export { messagesDirect } from './chunk-BQTQJQ5E.js';
|
|
14
|
+
export { recommendAssets } from './chunk-4JJWOILI.js';
|
|
15
|
+
export { route } from './chunk-GARVPN2H.js';
|
|
16
|
+
export { submitTransaction } from './chunk-RDRDFJQE.js';
|
|
17
|
+
export { trackTransaction } from './chunk-MGVXJ2U4.js';
|
|
18
|
+
export { transactionStatus } from './chunk-33K6EESX.js';
|
|
19
|
+
export { assetsBetweenChains } from './chunk-MTMPHY3Y.js';
|
|
20
|
+
export { bridges } from './chunk-KNV72XRZ.js';
|
|
21
|
+
export { venues } from './chunk-C2EDPY6J.js';
|
|
22
|
+
export { assetsFromSource } from './chunk-RMP3HM5N.js';
|
|
23
|
+
export { assets, balances, chains } from './chunk-BRMONS6A.js';
|
|
24
|
+
export { Api, AutopilotAction, AxelarTransferState, AxelarTransferType, BridgeType, CCTPTransferState, ChainType, ContentType, ContractCallWithTokenErrorType, FeeType, GoFastTransferState, HttpClient, HyperlaneTransferState, LayerZeroTransferState, OPInitTransferState, PacketErrorType, Reason, RoutePriceWarningType, SendTokenErrorType, StargateTransferState, StatusErrorType, TransactionState, TransferState } from './chunk-W6TBGBV3.js';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkWWNTHZ6I_cjs = require('../chunk-WWNTHZ6I.cjs');
|
|
4
|
+
require('../chunk-4R6OCWRR.cjs');
|
|
5
|
+
require('../chunk-KZOSEIWH.cjs');
|
|
6
|
+
require('../chunk-SW3SEQMJ.cjs');
|
|
7
|
+
require('../chunk-7SK3IFXJ.cjs');
|
|
8
|
+
require('../chunk-7OIZPQJB.cjs');
|
|
9
|
+
require('../chunk-32MRDO7V.cjs');
|
|
10
|
+
require('../chunk-L5V5PASH.cjs');
|
|
11
|
+
require('../chunk-KDN7RCGP.cjs');
|
|
12
|
+
require('../chunk-DAMZSSOH.cjs');
|
|
13
|
+
require('../chunk-ED2OY55G.cjs');
|
|
14
|
+
require('../chunk-HAR3IXDE.cjs');
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
Object.defineProperty(exports, "executeRoute", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function () { return chunkWWNTHZ6I_cjs.executeRoute; }
|
|
21
|
+
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { E as ExecuteRouteOptions, e as executeRoute } from '../executeRoute-
|
|
2
|
-
import '../swaggerTypes-O9-gvCT1.
|
|
3
|
-
import '../generateApi-
|
|
4
|
-
import '../client-types-
|
|
1
|
+
export { E as ExecuteRouteOptions, e as executeRoute } from '../executeRoute-BKRpODCc.cjs';
|
|
2
|
+
import '../swaggerTypes-O9-gvCT1.cjs';
|
|
3
|
+
import '../generateApi-C0amiydg.cjs';
|
|
4
|
+
import '../client-types-qvyKvyFh.cjs';
|
|
5
5
|
import '@cosmjs/amino';
|
|
6
6
|
import '@cosmjs/proto-signing';
|
|
7
7
|
import '@cosmjs/stargate';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { E as ExecuteRouteOptions, e as executeRoute } from '../executeRoute-BKvMVd1I.js';
|
|
2
|
+
import '../swaggerTypes-O9-gvCT1.js';
|
|
3
|
+
import '../generateApi-DqCp36fX.js';
|
|
4
|
+
import '../client-types-CxjtffyG.js';
|
|
5
|
+
import '@cosmjs/amino';
|
|
6
|
+
import '@cosmjs/proto-signing';
|
|
7
|
+
import '@cosmjs/stargate';
|
|
8
|
+
import 'viem';
|
|
9
|
+
import '@solana/wallet-adapter-base';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export { executeRoute } from '../chunk-W2U2UOFA.js';
|
|
2
|
+
import '../chunk-VQ5SIQWU.js';
|
|
3
|
+
import '../chunk-SWYON2RG.js';
|
|
4
|
+
import '../chunk-3N7XVGLX.js';
|
|
5
|
+
import '../chunk-JTIHU43D.js';
|
|
6
|
+
import '../chunk-3OZQ35X3.js';
|
|
7
|
+
import '../chunk-DW4U6YI6.js';
|
|
8
|
+
import '../chunk-RDRDFJQE.js';
|
|
9
|
+
import '../chunk-MGVXJ2U4.js';
|
|
10
|
+
import '../chunk-33K6EESX.js';
|
|
11
|
+
import '../chunk-BRMONS6A.js';
|
|
12
|
+
import '../chunk-W6TBGBV3.js';
|