@skip-go/client 1.2.3 → 1.3.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/cjs/api/getAssets.cjs +16 -0
- package/dist/cjs/api/getAssetsBetweenChains.cjs +12 -0
- package/dist/cjs/api/getBridges.cjs +12 -0
- package/dist/cjs/api/getChains.cjs +12 -0
- package/dist/cjs/api/getVenues.cjs +12 -0
- package/dist/cjs/api/postAssetsFromSource.cjs +13 -0
- package/dist/cjs/api/postBalances.cjs +12 -0
- package/dist/cjs/api/postIbcOriginAssets.cjs +12 -0
- package/dist/cjs/api/postMessages.cjs +12 -0
- package/dist/cjs/api/postMessagesDirect.cjs +12 -0
- package/dist/cjs/api/postRecommendAssets.cjs +12 -0
- package/dist/cjs/api/postRoute.cjs +12 -0
- package/dist/cjs/api/postSubmit.cjs +12 -0
- package/dist/cjs/api/postSubmitTransaction.cjs +12 -0
- package/dist/cjs/api/postTrackTransaction.cjs +12 -0
- package/dist/cjs/api/postTransactionStatus.cjs +12 -0
- package/dist/cjs/chunk-4R6OCWRR.cjs +1346 -0
- package/dist/cjs/chunk-5FR25GF5.cjs +209 -0
- package/dist/cjs/chunk-AHRSARNR.cjs +38 -0
- package/dist/cjs/chunk-CPTNOPWI.cjs +566 -0
- package/dist/cjs/chunk-CWUD7UGL.cjs +13 -0
- package/dist/cjs/chunk-D2W4UBJB.cjs +136 -0
- package/dist/cjs/chunk-DUJSZRFD.cjs +1445 -0
- package/dist/cjs/chunk-EINQFLWN.cjs +12 -0
- package/dist/cjs/chunk-EQBTNGJJ.cjs +11 -0
- package/dist/cjs/chunk-F3EB2AQG.cjs +28 -0
- package/dist/cjs/chunk-G3G6PBIF.cjs +47 -0
- package/dist/cjs/chunk-HDKNPB2J.cjs +182 -0
- package/dist/cjs/chunk-KMDNP6DN.cjs +24 -0
- package/dist/cjs/chunk-KZOSEIWH.cjs +10 -0
- package/dist/cjs/chunk-MGYSCMET.cjs +273 -0
- package/dist/cjs/chunk-N3LR7KTI.cjs +304 -0
- package/dist/cjs/chunk-NQR3EPN2.cjs +12 -0
- package/dist/cjs/chunk-OA5PE7TW.cjs +18 -0
- package/dist/cjs/chunk-PFCGKAXF.cjs +15 -0
- package/dist/cjs/chunk-PG7RVHOU.cjs +12 -0
- package/dist/cjs/chunk-RFBDXALX.cjs +12 -0
- package/dist/cjs/chunk-SIY2K7TT.cjs +13 -0
- package/dist/cjs/chunk-SLZCWA4K.cjs +2234 -0
- package/dist/cjs/chunk-T5LPU5A2.cjs +188 -0
- package/dist/cjs/chunk-TCQMGBFL.cjs +38 -0
- package/dist/cjs/chunk-TFL5E5A6.cjs +12 -0
- package/dist/cjs/chunk-TWPLCFOH.cjs +16 -0
- package/dist/cjs/chunk-W2DPDT3Y.cjs +22 -0
- package/dist/cjs/chunk-WE7KICKO.cjs +95 -0
- package/dist/cjs/chunk-WMXUOVHN.cjs +3642 -0
- package/dist/cjs/index.cjs +401 -0
- package/dist/cjs/public-functions/executeRoute.cjs +28 -0
- package/dist/cjs/public-functions/getCosmosGasAmountForMessage.cjs +15 -0
- package/dist/cjs/public-functions/getEvmGasAmountForMessage.cjs +11 -0
- package/dist/cjs/public-functions/getFeeInfoForChain.cjs +15 -0
- package/dist/cjs/public-functions/getRecommendedGasPrice.cjs +17 -0
- package/dist/cjs/public-functions/getSigningStargateClient.cjs +14 -0
- package/dist/cjs/public-functions/setApiOptions.cjs +12 -0
- package/dist/cjs/public-functions/setClientOptions.cjs +14 -0
- package/dist/cjs/public-functions/validateCosmosGasBalance.cjs +18 -0
- package/dist/cjs/public-functions/waitForTransaction.cjs +14 -0
- package/dist/{api → esm/api}/getAssets.d.ts +1 -1
- package/dist/esm/api/getAssets.js +3 -0
- package/dist/{api → esm/api}/getAssetsBetweenChains.d.ts +1 -1
- package/dist/esm/api/getAssetsBetweenChains.js +3 -0
- package/dist/{api → esm/api}/getBridges.d.ts +3 -2
- package/dist/esm/api/getBridges.js +3 -0
- package/dist/{api → esm/api}/getChains.d.ts +1 -1
- package/dist/esm/api/getChains.js +3 -0
- package/dist/esm/api/getVenues.js +3 -0
- package/dist/{api → esm/api}/postAssetsFromSource.d.ts +1 -1
- package/dist/esm/api/postAssetsFromSource.js +4 -0
- package/dist/{api → esm/api}/postBalances.d.ts +2 -2
- package/dist/esm/api/postBalances.js +3 -0
- package/dist/esm/api/postIbcOriginAssets.js +3 -0
- package/dist/{api → esm/api}/postMessages.d.ts +3 -2
- package/dist/esm/api/postMessages.js +3 -0
- package/dist/{api → esm/api}/postMessagesDirect.d.ts +196 -194
- package/dist/esm/api/postMessagesDirect.js +3 -0
- package/dist/{api → esm/api}/postRecommendAssets.d.ts +1 -1
- package/dist/esm/api/postRecommendAssets.js +3 -0
- package/dist/{api → esm/api}/postRoute.d.ts +191 -190
- package/dist/esm/api/postRoute.js +3 -0
- package/dist/{api → esm/api}/postSubmit.d.ts +2 -2
- package/dist/esm/api/postSubmit.js +3 -0
- package/dist/esm/api/postSubmitTransaction.js +3 -0
- package/dist/{api → esm/api}/postTrackTransaction.d.ts +2 -2
- package/dist/esm/api/postTrackTransaction.js +3 -0
- package/dist/{api → esm/api}/postTransactionStatus.d.ts +14 -2
- package/dist/esm/api/postTransactionStatus.js +3 -0
- package/dist/{callbacks-CPh0dr86.d.ts → esm/callbacks-C2lXb0AH.d.ts} +6 -1
- package/dist/{chunk-4CXSWHQ6.js → esm/chunk-2R5COFPS.js} +1 -1
- package/dist/esm/chunk-43P4WRGN.js +183 -0
- package/dist/{chunk-UCUUIQHV.js → esm/chunk-4DI7G6TH.js} +1 -1
- package/dist/{chunk-4XUWIG3Z.js → esm/chunk-6ULKULTX.js} +1 -1
- package/dist/{chunk-OFBEDG4X.js → esm/chunk-6UMMVC2P.js} +1 -1
- package/dist/{chunk-5GWNR2CV.js → esm/chunk-7ZG7HNNC.js} +2 -2
- package/dist/{chunk-A4M35XLF.js → esm/chunk-C6NHVJ3R.js} +2 -2
- package/dist/{chunk-GQXA3DGV.js → esm/chunk-CGZ5DA2T.js} +1 -1
- package/dist/{chunk-COJAW7OW.js → esm/chunk-ERPZHRBM.js} +3 -3
- package/dist/{chunk-EHKR7I66.js → esm/chunk-F65QOYUA.js} +2 -2
- package/dist/{chunk-TKLDJEAS.js → esm/chunk-GOD6ESBZ.js} +14 -14
- package/dist/{chunk-S4LIRB4Q.js → esm/chunk-HAGMHUOI.js} +30 -14
- package/dist/{chunk-2YOWXBHH.js → esm/chunk-HS2D6FKN.js} +1 -1
- package/dist/{chunk-XZV42PVV.js → esm/chunk-I4AMZAHH.js} +3 -2
- package/dist/{chunk-UXUJNZOA.js → esm/chunk-KYLULQOS.js} +7 -1
- package/dist/{chunk-CXFOPLGZ.js → esm/chunk-MAOMQHG5.js} +1 -1
- package/dist/{chunk-A7FWC5OX.js → esm/chunk-NZVZH6OA.js} +1 -1
- package/dist/{chunk-DF3WCTFB.js → esm/chunk-PIQZD2VE.js} +1 -1
- package/dist/{chunk-NQZYCFAA.js → esm/chunk-QPJEHGY7.js} +1 -1
- package/dist/{chunk-YABXOO3H.js → esm/chunk-SS5LQKBL.js} +5 -1
- package/dist/{chunk-U6NXCWXE.js → esm/chunk-UZKIIX6A.js} +1 -1
- package/dist/{chunk-Z3Z7A3YS.js → esm/chunk-VUOOTNLG.js} +1 -1
- package/dist/{chunk-7MWYHGMD.js → esm/chunk-YLMQS52U.js} +2 -2
- package/dist/{chunk-RE4YYQCE.js → esm/chunk-YYXOIRHZ.js} +1 -1
- package/dist/{chunk-THUBVEVZ.js → esm/chunk-ZTDLGX7X.js} +1 -1
- package/dist/{client-types-DRmsTfeT.d.ts → esm/client-types-DuWWc2_J.d.ts} +1 -1
- package/dist/{generateApi-D7KXciAd.d.ts → esm/generateApi-DvFEIUee.d.ts} +2 -1
- package/dist/{index.d.ts → esm/index.d.ts} +21 -6
- package/dist/{index.js → esm/index.js} +32 -26
- package/dist/{public-functions → esm/public-functions}/executeRoute.d.ts +4 -4
- package/dist/esm/public-functions/executeRoute.js +19 -0
- package/dist/{public-functions → esm/public-functions}/getCosmosGasAmountForMessage.d.ts +1 -1
- package/dist/{public-functions → esm/public-functions}/getEvmGasAmountForMessage.d.ts +2 -2
- package/dist/{public-functions → esm/public-functions}/getEvmGasAmountForMessage.js +1 -1
- package/dist/{public-functions → esm/public-functions}/getFeeInfoForChain.d.ts +1 -1
- package/dist/esm/public-functions/getFeeInfoForChain.js +6 -0
- package/dist/esm/public-functions/getRecommendedGasPrice.js +8 -0
- package/dist/esm/public-functions/getSigningStargateClient.js +5 -0
- package/dist/{public-functions → esm/public-functions}/setApiOptions.d.ts +1 -1
- package/dist/esm/public-functions/setApiOptions.js +3 -0
- package/dist/{public-functions → esm/public-functions}/setClientOptions.d.ts +3 -3
- package/dist/esm/public-functions/setClientOptions.js +5 -0
- package/dist/{public-functions → esm/public-functions}/validateCosmosGasBalance.d.ts +4 -4
- package/dist/esm/public-functions/validateCosmosGasBalance.js +9 -0
- package/dist/{public-functions → esm/public-functions}/waitForTransaction.d.ts +15 -3
- package/dist/esm/public-functions/waitForTransaction.js +5 -0
- package/dist/{setClientOptions-CwcM5Ps9.d.ts → esm/setClientOptions-B27lt_6h.d.ts} +1 -1
- package/dist/{swaggerTypes-BpJPRbC3.d.ts → esm/swaggerTypes-BrC-ZYnx.d.ts} +20 -1
- package/package.json +19 -7
- package/dist/api/getAssets.js +0 -3
- package/dist/api/getAssetsBetweenChains.js +0 -3
- package/dist/api/getBridges.js +0 -3
- package/dist/api/getChains.js +0 -3
- package/dist/api/getVenues.js +0 -3
- package/dist/api/postAssetsFromSource.js +0 -4
- package/dist/api/postBalances.js +0 -3
- package/dist/api/postIbcOriginAssets.js +0 -3
- package/dist/api/postMessages.js +0 -3
- package/dist/api/postMessagesDirect.js +0 -3
- package/dist/api/postRecommendAssets.js +0 -3
- package/dist/api/postRoute.js +0 -3
- package/dist/api/postSubmit.js +0 -3
- package/dist/api/postSubmitTransaction.js +0 -3
- package/dist/api/postTrackTransaction.js +0 -3
- package/dist/api/postTransactionStatus.js +0 -3
- package/dist/chunk-6AKLNBEL.js +0 -183
- package/dist/public-functions/executeRoute.js +0 -19
- package/dist/public-functions/getFeeInfoForChain.js +0 -6
- package/dist/public-functions/getRecommendedGasPrice.js +0 -8
- package/dist/public-functions/getSigningStargateClient.js +0 -5
- package/dist/public-functions/setApiOptions.js +0 -3
- package/dist/public-functions/setClientOptions.js +0 -5
- package/dist/public-functions/validateCosmosGasBalance.js +0 -9
- package/dist/public-functions/waitForTransaction.js +0 -5
- /package/dist/{api → esm/api}/getVenues.d.ts +0 -0
- /package/dist/{api → esm/api}/postIbcOriginAssets.d.ts +0 -0
- /package/dist/{api → esm/api}/postSubmitTransaction.d.ts +0 -0
- /package/dist/{apiState-DwZhwVul.d.ts → esm/apiState-DwZhwVul.d.ts} +0 -0
- /package/dist/{chunk-GV2QOWB4.js → esm/chunk-GV2QOWB4.js} +0 -0
- /package/dist/{chunk-SWYON2RG.js → esm/chunk-SWYON2RG.js} +0 -0
- /package/dist/{chunk-TD63P2AG.js → esm/chunk-TD63P2AG.js} +0 -0
- /package/dist/{chunk-TV2XPAIF.js → esm/chunk-TV2XPAIF.js} +0 -0
- /package/dist/{chunk-VQ5SIQWU.js → esm/chunk-VQ5SIQWU.js} +0 -0
- /package/dist/{public-functions → esm/public-functions}/getCosmosGasAmountForMessage.js +0 -0
- /package/dist/{public-functions → esm/public-functions}/getRecommendedGasPrice.d.ts +0 -0
- /package/dist/{public-functions → esm/public-functions}/getSigningStargateClient.d.ts +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getCosmosGasAmountForMessage } from './chunk-TV2XPAIF.js';
|
|
2
2
|
import { BigNumber } from './chunk-VQ5SIQWU.js';
|
|
3
|
-
import { getSigningStargateClient } from './chunk-
|
|
4
|
-
import { ClientState, balances } from './chunk-
|
|
3
|
+
import { getSigningStargateClient } from './chunk-F65QOYUA.js';
|
|
4
|
+
import { ClientState, balances } from './chunk-6ULKULTX.js';
|
|
5
5
|
import { GasPrice, calculateFee } from '@cosmjs/stargate';
|
|
6
6
|
import { Decimal } from '@cosmjs/math';
|
|
7
7
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { MsgAcceptOwner, MsgAddRemoteTokenMessenger, MsgDepositForBurn, MsgDepositForBurnWithCaller, MsgDisableAttester, MsgEnableAttester, MsgLinkTokenPair, MsgPauseBurningAndMinting, MsgPauseSendingAndReceivingMessages, MsgReceiveMessage, MsgRemoveRemoteTokenMessenger, MsgReplaceDepositForBurn, MsgReplaceMessage, MsgSendMessage, MsgSendMessageWithCaller, MsgUnlinkTokenPair, MsgUnpauseBurningAndMinting, MsgUnpauseSendingAndReceivingMessages, MsgUpdateOwner, MsgUpdateAttesterManager, MsgUpdateTokenController, MsgUpdatePauser, MsgUpdateMaxMessageBodySize, MsgSetMaxBurnAmountPerMessage, MsgUpdateSignatureThreshold, MsgExecute, MsgInitiateTokenDeposit, Coin, isSet, Long, Timestamp, toTimestamp, Period, fromTimestamp, fromJsonTimestamp, padDecimal } from './chunk-TD63P2AG.js';
|
|
2
|
-
import { ClientState } from './chunk-
|
|
3
|
-
import { ApiState, createRequestClient } from './chunk-
|
|
2
|
+
import { ClientState } from './chunk-6ULKULTX.js';
|
|
3
|
+
import { ApiState, createRequestClient } from './chunk-SS5LQKBL.js';
|
|
4
4
|
import { AminoTypes, createDefaultAminoConverters, defaultRegistryTypes } from '@cosmjs/stargate';
|
|
5
5
|
import { createWasmAminoConverters } from '@cosmjs/cosmwasm-stargate';
|
|
6
6
|
import { Registry } from '@cosmjs/proto-signing';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { transactionStatus } from './chunk-
|
|
2
|
-
import { trackTransaction } from './chunk-
|
|
3
|
-
import { wait } from './chunk-
|
|
1
|
+
import { transactionStatus } from './chunk-I4AMZAHH.js';
|
|
2
|
+
import { trackTransaction } from './chunk-MAOMQHG5.js';
|
|
3
|
+
import { wait } from './chunk-SS5LQKBL.js';
|
|
4
4
|
|
|
5
5
|
// src/public-functions/waitForTransaction.ts
|
|
6
6
|
var waitForTransaction = async ({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { chains, findFirstWorkingEndpoint } from './chunk-
|
|
2
|
-
import { ClientState } from './chunk-
|
|
1
|
+
import { chains, findFirstWorkingEndpoint } from './chunk-43P4WRGN.js';
|
|
2
|
+
import { ClientState } from './chunk-6ULKULTX.js';
|
|
3
3
|
import { accountFromAny, SigningStargateClient } from '@cosmjs/stargate';
|
|
4
4
|
import { assertDefinedAndNotNull } from '@cosmjs/utils';
|
|
5
5
|
import { BinaryWriter, BinaryReader } from 'cosmjs-types/binary.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DEFAULT_GAS_DENOM_OVERRIDES } from './chunk-SWYON2RG.js';
|
|
2
|
-
import { chains } from './chunk-
|
|
3
|
-
import { ClientState } from './chunk-
|
|
2
|
+
import { chains } from './chunk-43P4WRGN.js';
|
|
3
|
+
import { ClientState } from './chunk-6ULKULTX.js';
|
|
4
4
|
|
|
5
5
|
// src/private-functions/getDefaultGasTokenForChain.ts
|
|
6
6
|
var getDefaultGasTokenForChain = async (chainId) => {
|
|
@@ -8,7 +8,7 @@ var getDefaultGasTokenForChain = async (chainId) => {
|
|
|
8
8
|
if (gasDenom) {
|
|
9
9
|
return gasDenom;
|
|
10
10
|
}
|
|
11
|
-
const chain = chains().find((chain2) => chain2.
|
|
11
|
+
const chain = chains().find((chain2) => chain2.chainId === chainId);
|
|
12
12
|
if (!chain) {
|
|
13
13
|
return void 0;
|
|
14
14
|
}
|
|
@@ -17,27 +17,27 @@ var getDefaultGasTokenForChain = async (chainId) => {
|
|
|
17
17
|
}
|
|
18
18
|
const stakingTokens = getStakingTokensForChain(chainId);
|
|
19
19
|
if (stakingTokens && stakingTokens.length > 0) {
|
|
20
|
-
const feeAsset = chain.fees.
|
|
20
|
+
const feeAsset = chain.fees.feeTokens.find(
|
|
21
21
|
(feeToken) => feeToken.denom === stakingTokens[0]?.denom
|
|
22
22
|
);
|
|
23
23
|
if (feeAsset) {
|
|
24
24
|
return feeAsset.denom;
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
|
-
const nonIBCAsset = chain.fees.
|
|
27
|
+
const nonIBCAsset = chain.fees.feeTokens.find(
|
|
28
28
|
(token) => !token.denom.startsWith("ibc/") && !token.denom.startsWith("l2/")
|
|
29
29
|
);
|
|
30
30
|
if (nonIBCAsset) {
|
|
31
31
|
return nonIBCAsset.denom;
|
|
32
32
|
}
|
|
33
|
-
const nonL2Asset = chain.fees.
|
|
33
|
+
const nonL2Asset = chain.fees.feeTokens.find((token) => !token.denom.startsWith("l2/"));
|
|
34
34
|
if (nonL2Asset) {
|
|
35
35
|
return nonL2Asset.denom;
|
|
36
36
|
}
|
|
37
|
-
return chain.fees.
|
|
37
|
+
return chain.fees.feeTokens[0]?.denom;
|
|
38
38
|
};
|
|
39
39
|
var getStakingTokensForChain = (chainId) => {
|
|
40
|
-
const chain = chains().find((chain2) => chain2.
|
|
40
|
+
const chain = chains().find((chain2) => chain2.chainId === chainId);
|
|
41
41
|
if (!chain) {
|
|
42
42
|
throw new Error(
|
|
43
43
|
`getStakingTokensForChain error: failed to find chain id '${chainId}' in registry`
|
|
@@ -46,7 +46,7 @@ var getStakingTokensForChain = (chainId) => {
|
|
|
46
46
|
if (!chain.staking) {
|
|
47
47
|
return void 0;
|
|
48
48
|
}
|
|
49
|
-
return chain.staking.
|
|
49
|
+
return chain.staking.stakingTokens;
|
|
50
50
|
};
|
|
51
51
|
|
|
52
52
|
// src/public-functions/getFeeInfoForChain.ts
|
|
@@ -67,14 +67,14 @@ var getFeeInfoForChain = async ({ chainId, apiUrl, apiKey }) => {
|
|
|
67
67
|
if (skipFeeInfo && skipFeeInfo.gasPrice !== null) {
|
|
68
68
|
return skipFeeInfo;
|
|
69
69
|
}
|
|
70
|
-
const chain = chains().find((chain2) => chain2.
|
|
70
|
+
const chain = chains().find((chain2) => chain2.chainId === chainId);
|
|
71
71
|
if (!chain) {
|
|
72
72
|
return void 0;
|
|
73
73
|
}
|
|
74
74
|
if (!chain.fees) {
|
|
75
75
|
return void 0;
|
|
76
76
|
}
|
|
77
|
-
const registryFeeInfo = chain.fees.
|
|
77
|
+
const registryFeeInfo = chain.fees.feeTokens.find(
|
|
78
78
|
(feeToken) => feeToken.denom === defaultGasToken
|
|
79
79
|
);
|
|
80
80
|
if (!registryFeeInfo) {
|
|
@@ -83,9 +83,9 @@ var getFeeInfoForChain = async ({ chainId, apiUrl, apiKey }) => {
|
|
|
83
83
|
return {
|
|
84
84
|
denom: registryFeeInfo.denom,
|
|
85
85
|
gasPrice: {
|
|
86
|
-
low: registryFeeInfo.
|
|
87
|
-
average: registryFeeInfo.
|
|
88
|
-
high: registryFeeInfo.
|
|
86
|
+
low: registryFeeInfo.lowGasPrice ? `${registryFeeInfo.lowGasPrice}` : "",
|
|
87
|
+
average: registryFeeInfo.averageGasPrice ? `${registryFeeInfo.averageGasPrice}` : "",
|
|
88
|
+
high: registryFeeInfo.highGasPrice ? `${registryFeeInfo.highGasPrice}` : ""
|
|
89
89
|
}
|
|
90
90
|
};
|
|
91
91
|
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { validateCosmosGasBalance } from './chunk-
|
|
2
|
-
import { waitForTransaction } from './chunk-
|
|
1
|
+
import { validateCosmosGasBalance } from './chunk-7ZG7HNNC.js';
|
|
2
|
+
import { waitForTransaction } from './chunk-ERPZHRBM.js';
|
|
3
3
|
import { getEncodeObjectFromCosmosMessage, getEncodeObjectFromCosmosMessageInjective } from './chunk-TV2XPAIF.js';
|
|
4
4
|
import { getEVMGasAmountForMessage } from './chunk-GV2QOWB4.js';
|
|
5
5
|
import { BigNumber } from './chunk-VQ5SIQWU.js';
|
|
6
6
|
import { GAS_STATION_CHAIN_IDS } from './chunk-SWYON2RG.js';
|
|
7
|
-
import { getSigningStargateClient, getRpcEndpointForChain, accountParser } from './chunk-
|
|
8
|
-
import { chains, findFirstWorkingEndpoint, getIsEthermint, getIsInitia } from './chunk-
|
|
9
|
-
import { messages } from './chunk-
|
|
10
|
-
import { submit } from './chunk-
|
|
11
|
-
import { submitTransaction } from './chunk-
|
|
12
|
-
import { venues } from './chunk-
|
|
13
|
-
import { ClientState, balances } from './chunk-
|
|
14
|
-
import { ApiState, wait, createRequestClient, toCamel } from './chunk-
|
|
7
|
+
import { getSigningStargateClient, getRpcEndpointForChain, accountParser } from './chunk-F65QOYUA.js';
|
|
8
|
+
import { chains, findFirstWorkingEndpoint, getIsEthermint, getIsInitia } from './chunk-43P4WRGN.js';
|
|
9
|
+
import { messages } from './chunk-NZVZH6OA.js';
|
|
10
|
+
import { submit } from './chunk-6UMMVC2P.js';
|
|
11
|
+
import { submitTransaction } from './chunk-PIQZD2VE.js';
|
|
12
|
+
import { venues } from './chunk-YYXOIRHZ.js';
|
|
13
|
+
import { ClientState, balances } from './chunk-6ULKULTX.js';
|
|
14
|
+
import { ApiState, wait, createRequestClient, toCamel } from './chunk-SS5LQKBL.js';
|
|
15
15
|
import { PublicKey, Transaction, Connection, LAMPORTS_PER_SOL } from '@solana/web3.js';
|
|
16
16
|
import { bech32m, bech32 } from 'bech32';
|
|
17
17
|
import { StargateClient } from '@cosmjs/stargate';
|
|
@@ -402,6 +402,11 @@ var signCosmosTransaction = async ({
|
|
|
402
402
|
chainId
|
|
403
403
|
}
|
|
404
404
|
};
|
|
405
|
+
options.onTransactionSignRequested?.({
|
|
406
|
+
chainId,
|
|
407
|
+
txIndex: index,
|
|
408
|
+
signerAddress: currentUserAddress
|
|
409
|
+
});
|
|
405
410
|
if (isOfflineDirectSigner(signer)) {
|
|
406
411
|
rawTx = await signCosmosMessageDirect({
|
|
407
412
|
...commonRawTxBody,
|
|
@@ -644,7 +649,7 @@ var erc20ABI = /* @__PURE__ */ createAbi([
|
|
|
644
649
|
]);
|
|
645
650
|
|
|
646
651
|
// src/private-functions/evm/executeEvmTransaction.ts
|
|
647
|
-
var executeEvmTransaction = async (message, options) => {
|
|
652
|
+
var executeEvmTransaction = async (message, options, index) => {
|
|
648
653
|
const gasArray = ClientState.validateGasResults;
|
|
649
654
|
const gas = gasArray?.find((gas2) => gas2?.error !== null && gas2?.error !== void 0);
|
|
650
655
|
if (typeof gas?.error === "string") {
|
|
@@ -715,6 +720,11 @@ var executeEvmTransaction = async (message, options) => {
|
|
|
715
720
|
status: "completed"
|
|
716
721
|
});
|
|
717
722
|
}
|
|
723
|
+
options?.onTransactionSignRequested?.({
|
|
724
|
+
chainId: evmTx.chainId,
|
|
725
|
+
signerAddress: evmSigner.account.address,
|
|
726
|
+
txIndex: index
|
|
727
|
+
});
|
|
718
728
|
const txHash = await extendedSigner.sendTransaction({
|
|
719
729
|
account: evmSigner.account,
|
|
720
730
|
to: evmTx.to,
|
|
@@ -732,7 +742,8 @@ var executeEvmTransaction = async (message, options) => {
|
|
|
732
742
|
};
|
|
733
743
|
var signSvmTransaction = async ({
|
|
734
744
|
tx,
|
|
735
|
-
options
|
|
745
|
+
options,
|
|
746
|
+
index
|
|
736
747
|
}) => {
|
|
737
748
|
const gasArray = ClientState.validateGasResults;
|
|
738
749
|
if (tx === void 0) {
|
|
@@ -758,6 +769,11 @@ var signSvmTransaction = async ({
|
|
|
758
769
|
const txBuffer = Buffer.from(svmTx.tx ?? "", "base64");
|
|
759
770
|
const transaction = Transaction.from(txBuffer);
|
|
760
771
|
if (!("signTransaction" in signer)) return;
|
|
772
|
+
options?.onTransactionSignRequested?.({
|
|
773
|
+
chainId: svmTx.chainId,
|
|
774
|
+
signerAddress: signer.publicKey?.toBase58(),
|
|
775
|
+
txIndex: index
|
|
776
|
+
});
|
|
761
777
|
const signedTx = await signer.signTransaction(transaction);
|
|
762
778
|
options?.onTransactionSigned?.({ chainId: svmTx.chainId });
|
|
763
779
|
const serializedTx = signedTx.serialize();
|
|
@@ -1249,7 +1265,7 @@ var executeTransactions = async (options) => {
|
|
|
1249
1265
|
}
|
|
1250
1266
|
if ("svmTx" in tx) {
|
|
1251
1267
|
await validateEnabledChainIds(tx.svmTx?.chainId ?? "");
|
|
1252
|
-
const signedTx = await signSvmTransaction({ tx, options });
|
|
1268
|
+
const signedTx = await signSvmTransaction({ tx, options, index: i });
|
|
1253
1269
|
if (!signedTx) {
|
|
1254
1270
|
throw new Error(`executeRoute error: signedTx is undefined`);
|
|
1255
1271
|
}
|
|
@@ -1288,7 +1304,7 @@ var executeTransactions = async (options) => {
|
|
|
1288
1304
|
});
|
|
1289
1305
|
} else if ("evmTx" in tx) {
|
|
1290
1306
|
await validateEnabledChainIds(tx.evmTx?.chainId ?? "");
|
|
1291
|
-
const txResponse = await executeEvmTransaction(tx, options);
|
|
1307
|
+
const txResponse = await executeEvmTransaction(tx, options, i);
|
|
1292
1308
|
txResult = {
|
|
1293
1309
|
chainId: tx?.evmTx?.chainId ?? "",
|
|
1294
1310
|
txHash: txResponse.transactionHash
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { pollingApi } from './chunk-
|
|
1
|
+
import { pollingApi } from './chunk-SS5LQKBL.js';
|
|
2
2
|
|
|
3
3
|
// src/api/postTransactionStatus.ts
|
|
4
4
|
var transactionStatus = pollingApi({
|
|
5
5
|
methodName: "status",
|
|
6
6
|
path: "v2/tx/status",
|
|
7
|
-
method: "get"
|
|
7
|
+
method: "get",
|
|
8
|
+
throwOnError: true
|
|
8
9
|
});
|
|
9
10
|
|
|
10
11
|
export { transactionStatus };
|
|
@@ -118,6 +118,7 @@ var OPInitTransferState = /* @__PURE__ */ ((OPInitTransferState2) => {
|
|
|
118
118
|
var LayerZeroTransferState = /* @__PURE__ */ ((LayerZeroTransferState2) => {
|
|
119
119
|
LayerZeroTransferState2["LAYER_ZERO_TRANSFER_UNKNOWN"] = "LAYER_ZERO_TRANSFER_UNKNOWN";
|
|
120
120
|
LayerZeroTransferState2["LAYER_ZERO_TRANSFER_SENT"] = "LAYER_ZERO_TRANSFER_SENT";
|
|
121
|
+
LayerZeroTransferState2["LAYER_ZERO_TRANSFER_WAITING_FOR_COMPOSE"] = "LAYER_ZERO_TRANSFER_WAITING_FOR_COMPOSE";
|
|
121
122
|
LayerZeroTransferState2["LAYER_ZERO_TRANSFER_RECEIVED"] = "LAYER_ZERO_TRANSFER_RECEIVED";
|
|
122
123
|
LayerZeroTransferState2["LAYER_ZERO_TRANSFER_FAILED"] = "LAYER_ZERO_TRANSFER_FAILED";
|
|
123
124
|
return LayerZeroTransferState2;
|
|
@@ -134,6 +135,11 @@ var FeeType = /* @__PURE__ */ ((FeeType2) => {
|
|
|
134
135
|
FeeType2["SMART_RELAY"] = "SMART_RELAY";
|
|
135
136
|
return FeeType2;
|
|
136
137
|
})(FeeType || {});
|
|
138
|
+
var FeeBehavior = /* @__PURE__ */ ((FeeBehavior2) => {
|
|
139
|
+
FeeBehavior2["FEE_BEHAVIOR_DEDUCTED"] = "FEE_BEHAVIOR_DEDUCTED";
|
|
140
|
+
FeeBehavior2["FEE_BEHAVIOR_ADDITIONAL"] = "FEE_BEHAVIOR_ADDITIONAL";
|
|
141
|
+
return FeeBehavior2;
|
|
142
|
+
})(FeeBehavior || {});
|
|
137
143
|
var ContentType = /* @__PURE__ */ ((ContentType2) => {
|
|
138
144
|
ContentType2["Json"] = "application/json";
|
|
139
145
|
ContentType2["FormData"] = "multipart/form-data";
|
|
@@ -532,4 +538,4 @@ var Api = class extends HttpClient {
|
|
|
532
538
|
});
|
|
533
539
|
};
|
|
534
540
|
|
|
535
|
-
export { Api, AutopilotAction, AxelarTransferState, AxelarTransferType, BridgeType, CCTPTransferState, ChainType, ContentType, ContractCallWithTokenErrorType, FeeType, GoFastTransferState, HttpClient, HyperlaneTransferState, LayerZeroTransferState, OPInitTransferState, PacketErrorType, Reason, RoutePriceWarningType, SendTokenErrorType, StargateTransferState, StatusErrorType, TransactionState, TransferState };
|
|
541
|
+
export { Api, AutopilotAction, AxelarTransferState, AxelarTransferType, BridgeType, CCTPTransferState, ChainType, ContentType, ContractCallWithTokenErrorType, FeeBehavior, FeeType, GoFastTransferState, HttpClient, HyperlaneTransferState, LayerZeroTransferState, OPInitTransferState, PacketErrorType, Reason, RoutePriceWarningType, SendTokenErrorType, StargateTransferState, StatusErrorType, TransactionState, TransferState };
|
|
@@ -150,7 +150,8 @@ function pollingApi({
|
|
|
150
150
|
isSuccess = () => true,
|
|
151
151
|
maxRetries = 5,
|
|
152
152
|
retryInterval = 1e3,
|
|
153
|
-
backoffMultiplier = 2
|
|
153
|
+
backoffMultiplier = 2,
|
|
154
|
+
throwOnError = false
|
|
154
155
|
}) {
|
|
155
156
|
const request = async (requestParams) => {
|
|
156
157
|
let attempt = 0;
|
|
@@ -165,6 +166,9 @@ function pollingApi({
|
|
|
165
166
|
} catch (err) {
|
|
166
167
|
lastError = err;
|
|
167
168
|
onError?.(err, attempt);
|
|
169
|
+
if (throwOnError) {
|
|
170
|
+
throw err;
|
|
171
|
+
}
|
|
168
172
|
}
|
|
169
173
|
const delay = retryInterval * Math.pow(backoffMultiplier, attempt);
|
|
170
174
|
await wait(delay);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { transformAssetsMap } from './chunk-
|
|
2
|
-
import { api } from './chunk-
|
|
1
|
+
import { transformAssetsMap } from './chunk-6ULKULTX.js';
|
|
2
|
+
import { api } from './chunk-SS5LQKBL.js';
|
|
3
3
|
|
|
4
4
|
// src/api/postAssetsFromSource.ts
|
|
5
5
|
var assetsFromSource = api({
|
|
@@ -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 { a3 as FeeAsset, L as ChainType, W as CosmosMsg } from './swaggerTypes-
|
|
6
|
+
import { a3 as FeeAsset, L as ChainType, W as CosmosMsg } from './swaggerTypes-BrC-ZYnx.js';
|
|
7
7
|
|
|
8
8
|
/** Common Types */
|
|
9
9
|
type UserAddress = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { bw as Api } from './swaggerTypes-BrC-ZYnx.js';
|
|
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 ? {
|
|
@@ -50,6 +50,7 @@ type PollingProps<K extends ValidApiMethodKeys> = {
|
|
|
50
50
|
backoffMultiplier?: number;
|
|
51
51
|
onError?: (error: unknown, attempt: number) => void;
|
|
52
52
|
onSuccess?: (result: ApiResponse<K>, attempt: number) => void;
|
|
53
|
+
throwOnError?: boolean;
|
|
53
54
|
};
|
|
54
55
|
|
|
55
56
|
export type { ApiRequest as A, PollingProps as P, ApiResponse as a };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { A as AcknowledgementErrorDetails, a as Affiliate,
|
|
2
|
-
export { T as TransactionCallbacks } from './callbacks-
|
|
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-
|
|
1
|
+
export { A as AcknowledgementErrorDetails, a as Affiliate, bw as Api, bs as ApiConfig, b as ApiError, c as Asset, d as AssetBetweenChains, e as AssetRecommendation, bi as AssetRecommendationsResponse, be as AssetsFromSourceResponse, bc as AssetsRequest, bd as AssetsResponse, 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, E as BalanceResponseChainEntry, D as BalanceResponseDenomEntry, b8 as BalancesResponse, F as BankSend, H as BankSendWrapper, I as Bridge, J as BridgeType, b9 as BridgesResponse, C as CCTPTransfer, n as CCTPTransferInfo, p as CCTPTransferState, o as CCTPTransferTxs, q as CCTPTransferWrapper, K as Chain, M as ChainAffiliates, am as ChainTransaction, L as ChainType, b6 as ChainsRequest, b7 as ChainsResponse, bu as ContentType, N as ContractCallWithTokenError, O as ContractCallWithTokenErrorType, P as ContractCallWithTokenTxs, Q as CosmWasmContractMsg, R as CosmWasmContractMsgWrapper, b1 as CosmosModuleSupport, W as CosmosMsg, X as CosmosTx, Y as CosmosTxWrapper, T as Erc20Approval, V as Error, U as ErrorDetail, aW as EurekaTransfer, aX as EurekaTransferInfo, aY as EurekaTransferWrapper, Z as EvmSwap, _ as EvmSwapWrapper, $ as EvmTx, a0 as EvmTxWrapper, b5 as Fee, a3 as FeeAsset, b4 as FeeBehavior, b3 as FeeType, bq as FullRequestParams, bn as FungibleAssetsBetweenChainsCreateResponse, a5 as GRPCStatusCode, a4 as GoFastFee, G as GoFastTransfer, y as GoFastTransferInfo, w as GoFastTransferState, x as GoFastTransferTxs, z as GoFastTransferWrapper, bv as HttpClient, bt as HttpResponse, a6 as HyperlaneTransfer, a7 as HyperlaneTransferInfo, a8 as HyperlaneTransferState, a9 as HyperlaneTransferTransactions, aa as HyperlaneTransferWrapper, ab as IBCTransferInfo, b2 as IbcCapabilities, bm as IbcOriginAssetsResponse, aZ as LayerZeroTransfer, a_ as LayerZeroTransferInfo, aP as LayerZeroTransferState, ai as LayerZeroTransferTransactions, a$ as LayerZeroTransferWrapper, ac as Msg, bh as MsgsDirectResponse, bg as MsgsResponse, ae as MultiChainMsg, af as MultiChainMsgWrapper, aK as OPInitTransfer, aM as OPInitTransferInfo, aO as OPInitTransferState, aN as OPInitTransferTxs, aL as OPInitTransferWrapper, ag as Operation, ah as OptionalAsset, aj as Packet, ak as PacketError, al as PacketErrorType, an as PostHandler, bo as QueryParamsType, ao as Reason, b0 as RecommendationRequest, br as RequestParams, bp as ResponseFormat, aq as Route, ap as RoutePriceWarningType, bf as RouteResponse, ar as SendTokenError, as as SendTokenErrorType, at as SendTokenTxs, S as SmartRelayFeeQuote, aD as SmartSwapExactCoinIn, aF as SmartSwapInWrapper, aE as SmartSwapOptions, r as StargateTransfer, u as StargateTransferInfo, s as StargateTransferState, t as StargateTransferTxs, v as StargateTransferWrapper, au as StatusError, av as StatusErrorType, bk as StatusRequest, bl as StatusResponse, a1 as SvmTx, a2 as SvmTxWrapper, aw as Swap, ax as SwapExactCoinIn, ay as SwapExactCoinOut, az as SwapInWrapper, aA as SwapOperation, aB as SwapOutWrapper, aC as SwapRoute, aG as SwapVenue, aH as SwapWrapper, bj as TrackResponse, aI as TransactionExecutionErrorDetails, aJ as TransactionState, aQ as Transfer, aT as TransferAssetRelease, aR as TransferEvent, aS as TransferState, aU as TransferStatus, aV as TransferWrapper, ad as Tx, ba as VenuesRequest, bb as VenuesResponse } from './swaggerTypes-BrC-ZYnx.js';
|
|
2
|
+
export { T as TransactionCallbacks } from './callbacks-C2lXb0AH.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-DuWWc2_J.js';
|
|
4
4
|
export { assets } from './api/getAssets.js';
|
|
5
5
|
export { assetsBetweenChains } from './api/getAssetsBetweenChains.js';
|
|
6
6
|
export { bridges } from './api/getBridges.js';
|
|
@@ -18,7 +18,7 @@ export { trackTransaction } from './api/postTrackTransaction.js';
|
|
|
18
18
|
export { TxStatusResponse, transactionStatus } from './api/postTransactionStatus.js';
|
|
19
19
|
export { ExecuteRouteOptions, executeRoute } from './public-functions/executeRoute.js';
|
|
20
20
|
export { getSigningStargateClient, getSigningStargateClientProps } from './public-functions/getSigningStargateClient.js';
|
|
21
|
-
export { S as SkipClientOptions, s as setClientOptions } from './setClientOptions-
|
|
21
|
+
export { S as SkipClientOptions, s as setClientOptions } from './setClientOptions-B27lt_6h.js';
|
|
22
22
|
export { getRecommendedGasPrice } from './public-functions/getRecommendedGasPrice.js';
|
|
23
23
|
export { getFeeInfoForChain } from './public-functions/getFeeInfoForChain.js';
|
|
24
24
|
export { SetApiOptionsProps, setApiOptions } from './public-functions/setApiOptions.js';
|
|
@@ -33,7 +33,7 @@ import '@cosmjs/stargate';
|
|
|
33
33
|
import 'viem';
|
|
34
34
|
import '@solana/wallet-adapter-base';
|
|
35
35
|
import './apiState-DwZhwVul.js';
|
|
36
|
-
import './generateApi-
|
|
36
|
+
import './generateApi-DvFEIUee.js';
|
|
37
37
|
|
|
38
38
|
interface AcknowledgementErrorDetailsJson {
|
|
39
39
|
/** Error code */
|
|
@@ -813,6 +813,7 @@ interface OptionalAssetJson {
|
|
|
813
813
|
interface LayerZeroTransferTransactionsJson {
|
|
814
814
|
send_tx?: ChainTransactionJson | null;
|
|
815
815
|
receive_tx?: ChainTransactionJson | null;
|
|
816
|
+
compose_tx?: ChainTransactionJson | null;
|
|
816
817
|
error_tx?: ChainTransactionJson | null;
|
|
817
818
|
}
|
|
818
819
|
interface PacketJson {
|
|
@@ -1155,12 +1156,14 @@ declare enum OPInitTransferStateJson {
|
|
|
1155
1156
|
* LayerZero transfer state:
|
|
1156
1157
|
* * `LAYER_ZERO_TRANSFER_UNKNOWN` - Unknown error
|
|
1157
1158
|
* * `LAYER_ZERO_TRANSFER_SENT` - The transaction on the source chain has executed
|
|
1159
|
+
* * `LAYER_ZERO_TRANSFER_WAITING_FOR_COMPOSE` - The transfer has been delivered to the destination chain but there is an additional lz_compose transaction that still needs to be delivered before marking this transfer as LAYER_ZERO_TRANSFER_RECEIVED
|
|
1158
1160
|
* * `LAYER_ZERO_TRANSFER_RECEIVED` - The transfer has been received at the destination chain
|
|
1159
1161
|
* * `LAYER_ZERO_TRANSFER_FAILED` - The transfer has failed
|
|
1160
1162
|
*/
|
|
1161
1163
|
declare enum LayerZeroTransferStateJson {
|
|
1162
1164
|
LAYER_ZERO_TRANSFER_UNKNOWN = "LAYER_ZERO_TRANSFER_UNKNOWN",
|
|
1163
1165
|
LAYER_ZERO_TRANSFER_SENT = "LAYER_ZERO_TRANSFER_SENT",
|
|
1166
|
+
LAYER_ZERO_TRANSFER_WAITING_FOR_COMPOSE = "LAYER_ZERO_TRANSFER_WAITING_FOR_COMPOSE",
|
|
1164
1167
|
LAYER_ZERO_TRANSFER_RECEIVED = "LAYER_ZERO_TRANSFER_RECEIVED",
|
|
1165
1168
|
LAYER_ZERO_TRANSFER_FAILED = "LAYER_ZERO_TRANSFER_FAILED"
|
|
1166
1169
|
}
|
|
@@ -1371,6 +1374,7 @@ interface LayerZeroTransferInfoJson {
|
|
|
1371
1374
|
* LayerZero transfer state:
|
|
1372
1375
|
* * `LAYER_ZERO_TRANSFER_UNKNOWN` - Unknown error
|
|
1373
1376
|
* * `LAYER_ZERO_TRANSFER_SENT` - The transaction on the source chain has executed
|
|
1377
|
+
* * `LAYER_ZERO_TRANSFER_WAITING_FOR_COMPOSE` - The transfer has been delivered to the destination chain but there is an additional lz_compose transaction that still needs to be delivered before marking this transfer as LAYER_ZERO_TRANSFER_RECEIVED
|
|
1374
1378
|
* * `LAYER_ZERO_TRANSFER_RECEIVED` - The transfer has been received at the destination chain
|
|
1375
1379
|
* * `LAYER_ZERO_TRANSFER_FAILED` - The transfer has failed
|
|
1376
1380
|
*/
|
|
@@ -1414,6 +1418,15 @@ interface IbcCapabilitiesJson {
|
|
|
1414
1418
|
declare enum FeeTypeJson {
|
|
1415
1419
|
SMART_RELAY = "SMART_RELAY"
|
|
1416
1420
|
}
|
|
1421
|
+
/**
|
|
1422
|
+
* Indicates whether the fee is deducted from the transfer amount or charged additionally.
|
|
1423
|
+
* - FEE_BEHAVIOR_DEDUCTED: Fee is subtracted from the transfer amount (default, typical for Cosmos chains)
|
|
1424
|
+
* - FEE_BEHAVIOR_ADDITIONAL: Fee is charged on top of the transfer amount (typical for EVM chains with native tokens)
|
|
1425
|
+
*/
|
|
1426
|
+
declare enum FeeBehaviorJson {
|
|
1427
|
+
FEE_BEHAVIOR_DEDUCTED = "FEE_BEHAVIOR_DEDUCTED",
|
|
1428
|
+
FEE_BEHAVIOR_ADDITIONAL = "FEE_BEHAVIOR_ADDITIONAL"
|
|
1429
|
+
}
|
|
1417
1430
|
interface FeeJson {
|
|
1418
1431
|
/**
|
|
1419
1432
|
* Fee type:
|
|
@@ -1443,6 +1456,8 @@ interface FeeJson {
|
|
|
1443
1456
|
tx_index?: number;
|
|
1444
1457
|
/** The index of the operation in the returned operations list which incurs the fee */
|
|
1445
1458
|
operation_index?: number | null;
|
|
1459
|
+
/** Indicates whether this fee is deducted from the transfer amount or charged additionally */
|
|
1460
|
+
fee_behavior?: FeeBehaviorJson;
|
|
1446
1461
|
}
|
|
1447
1462
|
interface ChainsRequestJson {
|
|
1448
1463
|
/** Chain IDs to limit the response to, defaults to all chains if not provided */
|
|
@@ -1593,4 +1608,4 @@ interface FungibleAssetsBetweenChainsCreateResponseJson {
|
|
|
1593
1608
|
|
|
1594
1609
|
declare const GAS_STATION_CHAIN_IDS: string[];
|
|
1595
1610
|
|
|
1596
|
-
export { type AcknowledgementErrorDetailsJson, type AffiliateJson, type ApiErrorJson, type AssetBetweenChainsJson, type AssetJson, type AssetRecommendationJson, type AssetRecommendationsResponseJson, type AssetsFromSourceResponseJson, type AssetsRequestJson, type AssetsResponseJson, AutopilotActionJson, type AutopilotMsgJson, type AutopilotMsgWrapperJson, type AxelarTransferInfoJson, type AxelarTransferJson, AxelarTransferStateJson, AxelarTransferTypeJson, type AxelarTransferWrapperJson, type BalanceRequestChainEntryJson, type BalanceResponseChainEntryJson, type BalanceResponseDenomEntryJson, type BalancesResponseJson, type BankSendJson, type BankSendWrapperJson, type BridgeJson, BridgeTypeJson, type BridgesResponseJson, type CCTPTransferInfoJson, type CCTPTransferJson, CCTPTransferStateJson, type CCTPTransferTxsJson, type CCTPTransferWrapperJson, type ChainAffiliatesJson, type ChainJson, type ChainTransactionJson, ChainTypeJson, type ChainsRequestJson, type ChainsResponseJson, type ContractCallWithTokenErrorJson, ContractCallWithTokenErrorTypeJson, type ContractCallWithTokenTxsJson, type CosmWasmContractMsgJson, type CosmWasmContractMsgWrapperJson, type CosmosModuleSupportJson, type CosmosMsgJson, type CosmosTxJson, type CosmosTxWrapperJson, type Erc20ApprovalJson, type ErrorDetailJson, type ErrorJson, type EurekaTransferInfoJson, type EurekaTransferJson, type EurekaTransferWrapperJson, type EvmSwapJson, type EvmSwapWrapperJson, type EvmTxJson, type EvmTxWrapperJson, type FeeAssetJson, type FeeJson, FeeTypeJson, type FungibleAssetsBetweenChainsCreateResponseJson, GAS_STATION_CHAIN_IDS, type GRPCStatusCodeJson, type GoFastFeeJson, type GoFastTransferInfoJson, type GoFastTransferJson, GoFastTransferStateJson, type GoFastTransferTxsJson, type GoFastTransferWrapperJson, type HyperlaneTransferInfoJson, type HyperlaneTransferJson, HyperlaneTransferStateJson, type HyperlaneTransferTransactionsJson, type HyperlaneTransferWrapperJson, type IBCTransferInfoJson, type IbcCapabilitiesJson, type IbcOriginAssetsResponseJson, type LayerZeroTransferInfoJson, type LayerZeroTransferJson, LayerZeroTransferStateJson, type LayerZeroTransferTransactionsJson, type LayerZeroTransferWrapperJson, type MsgJson, type MsgsDirectResponseJson, type MsgsResponseJson, type MultiChainMsgJson, type MultiChainMsgWrapperJson, type OPInitTransferInfoJson, type OPInitTransferJson, OPInitTransferStateJson, type OPInitTransferTxsJson, type OPInitTransferWrapperJson, type OperationJson, type OptionalAssetJson, type PacketErrorJson, PacketErrorTypeJson, type PacketJson, type PostHandlerJson, ReasonJson, type RecommendationRequestJson, type RouteJson, RoutePriceWarningTypeJson, type RouteResponseJson, type SendTokenErrorJson, SendTokenErrorTypeJson, type SendTokenTxsJson, type SmartRelayFeeQuoteJson, type SmartSwapExactCoinInJson, type SmartSwapInWrapperJson, type SmartSwapOptionsJson, type StargateTransferInfoJson, type StargateTransferJson, StargateTransferStateJson, type StargateTransferTxsJson, type StargateTransferWrapperJson, type StatusErrorJson, StatusErrorTypeJson, type StatusRequestJson, type StatusResponseJson, type SubmitResponseJson, type SvmTxJson, type SvmTxWrapperJson, type SwapExactCoinInJson, type SwapExactCoinOutJson, type SwapInWrapperJson, type SwapJson, type SwapOperationJson, type SwapOutWrapperJson, type SwapRouteJson, type SwapVenueJson, type SwapWrapperJson, type TrackResponseJson, type TransactionExecutionErrorDetailsJson, TransactionStateJson, type TransferAssetReleaseJson, type TransferEventJson, type TransferJson, TransferStateJson, type TransferStatusJson, type TransferWrapperJson, type TxJson, type VenuesRequestJson, type VenuesResponseJson };
|
|
1611
|
+
export { type AcknowledgementErrorDetailsJson, type AffiliateJson, type ApiErrorJson, type AssetBetweenChainsJson, type AssetJson, type AssetRecommendationJson, type AssetRecommendationsResponseJson, type AssetsFromSourceResponseJson, type AssetsRequestJson, type AssetsResponseJson, AutopilotActionJson, type AutopilotMsgJson, type AutopilotMsgWrapperJson, type AxelarTransferInfoJson, type AxelarTransferJson, AxelarTransferStateJson, AxelarTransferTypeJson, type AxelarTransferWrapperJson, type BalanceRequestChainEntryJson, type BalanceResponseChainEntryJson, type BalanceResponseDenomEntryJson, type BalancesResponseJson, type BankSendJson, type BankSendWrapperJson, type BridgeJson, BridgeTypeJson, type BridgesResponseJson, type CCTPTransferInfoJson, type CCTPTransferJson, CCTPTransferStateJson, type CCTPTransferTxsJson, type CCTPTransferWrapperJson, type ChainAffiliatesJson, type ChainJson, type ChainTransactionJson, ChainTypeJson, type ChainsRequestJson, type ChainsResponseJson, type ContractCallWithTokenErrorJson, ContractCallWithTokenErrorTypeJson, type ContractCallWithTokenTxsJson, type CosmWasmContractMsgJson, type CosmWasmContractMsgWrapperJson, type CosmosModuleSupportJson, type CosmosMsgJson, type CosmosTxJson, type CosmosTxWrapperJson, type Erc20ApprovalJson, type ErrorDetailJson, type ErrorJson, type EurekaTransferInfoJson, type EurekaTransferJson, type EurekaTransferWrapperJson, type EvmSwapJson, type EvmSwapWrapperJson, type EvmTxJson, type EvmTxWrapperJson, type FeeAssetJson, FeeBehaviorJson, type FeeJson, FeeTypeJson, type FungibleAssetsBetweenChainsCreateResponseJson, GAS_STATION_CHAIN_IDS, type GRPCStatusCodeJson, type GoFastFeeJson, type GoFastTransferInfoJson, type GoFastTransferJson, GoFastTransferStateJson, type GoFastTransferTxsJson, type GoFastTransferWrapperJson, type HyperlaneTransferInfoJson, type HyperlaneTransferJson, HyperlaneTransferStateJson, type HyperlaneTransferTransactionsJson, type HyperlaneTransferWrapperJson, type IBCTransferInfoJson, type IbcCapabilitiesJson, type IbcOriginAssetsResponseJson, type LayerZeroTransferInfoJson, type LayerZeroTransferJson, LayerZeroTransferStateJson, type LayerZeroTransferTransactionsJson, type LayerZeroTransferWrapperJson, type MsgJson, type MsgsDirectResponseJson, type MsgsResponseJson, type MultiChainMsgJson, type MultiChainMsgWrapperJson, type OPInitTransferInfoJson, type OPInitTransferJson, OPInitTransferStateJson, type OPInitTransferTxsJson, type OPInitTransferWrapperJson, type OperationJson, type OptionalAssetJson, type PacketErrorJson, PacketErrorTypeJson, type PacketJson, type PostHandlerJson, ReasonJson, type RecommendationRequestJson, type RouteJson, RoutePriceWarningTypeJson, type RouteResponseJson, type SendTokenErrorJson, SendTokenErrorTypeJson, type SendTokenTxsJson, type SmartRelayFeeQuoteJson, type SmartSwapExactCoinInJson, type SmartSwapInWrapperJson, type SmartSwapOptionsJson, type StargateTransferInfoJson, type StargateTransferJson, StargateTransferStateJson, type StargateTransferTxsJson, type StargateTransferWrapperJson, type StatusErrorJson, StatusErrorTypeJson, type StatusRequestJson, type StatusResponseJson, type SubmitResponseJson, type SvmTxJson, type SvmTxWrapperJson, type SwapExactCoinInJson, type SwapExactCoinOutJson, type SwapInWrapperJson, type SwapJson, type SwapOperationJson, type SwapOutWrapperJson, type SwapRouteJson, type SwapVenueJson, type SwapWrapperJson, type TrackResponseJson, type TransactionExecutionErrorDetailsJson, TransactionStateJson, type TransferAssetReleaseJson, type TransferEventJson, type TransferJson, TransferStateJson, type TransferStatusJson, type TransferWrapperJson, type TxJson, type VenuesRequestJson, type VenuesResponseJson };
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
export { setClientOptions } from './chunk-
|
|
2
|
-
export { executeRoute } from './chunk-
|
|
3
|
-
export { validateCosmosGasBalance } from './chunk-
|
|
4
|
-
export { waitForTransaction } from './chunk-
|
|
5
|
-
export { transactionStatus } from './chunk-
|
|
1
|
+
export { setClientOptions } from './chunk-C6NHVJ3R.js';
|
|
2
|
+
export { executeRoute } from './chunk-HAGMHUOI.js';
|
|
3
|
+
export { validateCosmosGasBalance } from './chunk-7ZG7HNNC.js';
|
|
4
|
+
export { waitForTransaction } from './chunk-ERPZHRBM.js';
|
|
5
|
+
export { transactionStatus } from './chunk-I4AMZAHH.js';
|
|
6
6
|
export { getCosmosGasAmountForMessage } from './chunk-TV2XPAIF.js';
|
|
7
7
|
import './chunk-TD63P2AG.js';
|
|
8
8
|
export { getEVMGasAmountForMessage } from './chunk-GV2QOWB4.js';
|
|
9
|
-
export { getRecommendedGasPrice } from './chunk-
|
|
9
|
+
export { getRecommendedGasPrice } from './chunk-CGZ5DA2T.js';
|
|
10
10
|
import './chunk-VQ5SIQWU.js';
|
|
11
|
-
export { getFeeInfoForChain } from './chunk-
|
|
11
|
+
export { getFeeInfoForChain } from './chunk-GOD6ESBZ.js';
|
|
12
12
|
export { GAS_STATION_CHAIN_IDS } from './chunk-SWYON2RG.js';
|
|
13
|
-
export { getSigningStargateClient } from './chunk-
|
|
14
|
-
import './chunk-
|
|
15
|
-
export { setApiOptions } from './chunk-
|
|
16
|
-
export { ibcOriginAssets } from './chunk-
|
|
17
|
-
export { messages } from './chunk-
|
|
18
|
-
export { messagesDirect } from './chunk-
|
|
19
|
-
export { recommendAssets } from './chunk-
|
|
20
|
-
export { route } from './chunk-
|
|
21
|
-
export { submit } from './chunk-
|
|
22
|
-
export { submitTransaction } from './chunk-
|
|
23
|
-
export { trackTransaction } from './chunk-
|
|
24
|
-
export { assetsBetweenChains } from './chunk-
|
|
25
|
-
export { bridges } from './chunk-
|
|
26
|
-
export { venues } from './chunk-
|
|
27
|
-
export { assetsFromSource } from './chunk-
|
|
28
|
-
export { assets, balances, chains } from './chunk-
|
|
29
|
-
import './chunk-
|
|
30
|
-
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-
|
|
13
|
+
export { getSigningStargateClient } from './chunk-F65QOYUA.js';
|
|
14
|
+
import './chunk-43P4WRGN.js';
|
|
15
|
+
export { setApiOptions } from './chunk-HS2D6FKN.js';
|
|
16
|
+
export { ibcOriginAssets } from './chunk-QPJEHGY7.js';
|
|
17
|
+
export { messages } from './chunk-NZVZH6OA.js';
|
|
18
|
+
export { messagesDirect } from './chunk-2R5COFPS.js';
|
|
19
|
+
export { recommendAssets } from './chunk-ZTDLGX7X.js';
|
|
20
|
+
export { route } from './chunk-UZKIIX6A.js';
|
|
21
|
+
export { submit } from './chunk-6UMMVC2P.js';
|
|
22
|
+
export { submitTransaction } from './chunk-PIQZD2VE.js';
|
|
23
|
+
export { trackTransaction } from './chunk-MAOMQHG5.js';
|
|
24
|
+
export { assetsBetweenChains } from './chunk-VUOOTNLG.js';
|
|
25
|
+
export { bridges } from './chunk-4DI7G6TH.js';
|
|
26
|
+
export { venues } from './chunk-YYXOIRHZ.js';
|
|
27
|
+
export { assetsFromSource } from './chunk-YLMQS52U.js';
|
|
28
|
+
export { assets, balances, chains } from './chunk-6ULKULTX.js';
|
|
29
|
+
import './chunk-SS5LQKBL.js';
|
|
30
|
+
export { Api, AutopilotAction, AxelarTransferState, AxelarTransferType, BridgeType, CCTPTransferState, ChainType, ContentType, ContractCallWithTokenErrorType, FeeBehavior, FeeType, GoFastTransferState, HttpClient, HyperlaneTransferState, LayerZeroTransferState, OPInitTransferState, PacketErrorType, Reason, RoutePriceWarningType, SendTokenErrorType, StargateTransferState, StatusErrorType, TransactionState, TransferState } from './chunk-KYLULQOS.js';
|
|
31
31
|
|
|
32
32
|
// src/types/swaggerTypesJson.ts
|
|
33
33
|
var AutopilotActionJson = /* @__PURE__ */ ((AutopilotActionJson2) => {
|
|
@@ -149,6 +149,7 @@ var OPInitTransferStateJson = /* @__PURE__ */ ((OPInitTransferStateJson2) => {
|
|
|
149
149
|
var LayerZeroTransferStateJson = /* @__PURE__ */ ((LayerZeroTransferStateJson2) => {
|
|
150
150
|
LayerZeroTransferStateJson2["LAYER_ZERO_TRANSFER_UNKNOWN"] = "LAYER_ZERO_TRANSFER_UNKNOWN";
|
|
151
151
|
LayerZeroTransferStateJson2["LAYER_ZERO_TRANSFER_SENT"] = "LAYER_ZERO_TRANSFER_SENT";
|
|
152
|
+
LayerZeroTransferStateJson2["LAYER_ZERO_TRANSFER_WAITING_FOR_COMPOSE"] = "LAYER_ZERO_TRANSFER_WAITING_FOR_COMPOSE";
|
|
152
153
|
LayerZeroTransferStateJson2["LAYER_ZERO_TRANSFER_RECEIVED"] = "LAYER_ZERO_TRANSFER_RECEIVED";
|
|
153
154
|
LayerZeroTransferStateJson2["LAYER_ZERO_TRANSFER_FAILED"] = "LAYER_ZERO_TRANSFER_FAILED";
|
|
154
155
|
return LayerZeroTransferStateJson2;
|
|
@@ -165,5 +166,10 @@ var FeeTypeJson = /* @__PURE__ */ ((FeeTypeJson2) => {
|
|
|
165
166
|
FeeTypeJson2["SMART_RELAY"] = "SMART_RELAY";
|
|
166
167
|
return FeeTypeJson2;
|
|
167
168
|
})(FeeTypeJson || {});
|
|
169
|
+
var FeeBehaviorJson = /* @__PURE__ */ ((FeeBehaviorJson2) => {
|
|
170
|
+
FeeBehaviorJson2["FEE_BEHAVIOR_DEDUCTED"] = "FEE_BEHAVIOR_DEDUCTED";
|
|
171
|
+
FeeBehaviorJson2["FEE_BEHAVIOR_ADDITIONAL"] = "FEE_BEHAVIOR_ADDITIONAL";
|
|
172
|
+
return FeeBehaviorJson2;
|
|
173
|
+
})(FeeBehaviorJson || {});
|
|
168
174
|
|
|
169
|
-
export { AutopilotActionJson, AxelarTransferStateJson, AxelarTransferTypeJson, BridgeTypeJson, CCTPTransferStateJson, ChainTypeJson, ContractCallWithTokenErrorTypeJson, FeeTypeJson, GoFastTransferStateJson, HyperlaneTransferStateJson, LayerZeroTransferStateJson, OPInitTransferStateJson, PacketErrorTypeJson, ReasonJson, RoutePriceWarningTypeJson, SendTokenErrorTypeJson, StargateTransferStateJson, StatusErrorTypeJson, TransactionStateJson, TransferStateJson };
|
|
175
|
+
export { AutopilotActionJson, AxelarTransferStateJson, AxelarTransferTypeJson, BridgeTypeJson, CCTPTransferStateJson, ChainTypeJson, ContractCallWithTokenErrorTypeJson, FeeBehaviorJson, FeeTypeJson, GoFastTransferStateJson, HyperlaneTransferStateJson, LayerZeroTransferStateJson, OPInitTransferStateJson, PacketErrorTypeJson, ReasonJson, RoutePriceWarningTypeJson, SendTokenErrorTypeJson, StargateTransferStateJson, StatusErrorTypeJson, TransactionStateJson, TransferStateJson };
|