@skip-go/client 1.2.2 → 1.3.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.d.ts +1 -1
- package/dist/api/getAssets.js +3 -3
- package/dist/api/getAssetsBetweenChains.d.ts +1 -1
- package/dist/api/getAssetsBetweenChains.js +3 -3
- package/dist/api/getBridges.d.ts +3 -2
- package/dist/api/getBridges.js +3 -3
- package/dist/api/getChains.d.ts +1 -1
- package/dist/api/getChains.js +3 -3
- package/dist/api/getVenues.js +3 -3
- package/dist/api/postAssetsFromSource.d.ts +1 -1
- package/dist/api/postAssetsFromSource.js +4 -4
- package/dist/api/postBalances.d.ts +2 -2
- package/dist/api/postBalances.js +3 -3
- package/dist/api/postIbcOriginAssets.js +3 -3
- package/dist/api/postMessages.d.ts +3 -2
- package/dist/api/postMessages.js +3 -3
- package/dist/api/postMessagesDirect.d.ts +3 -1
- package/dist/api/postMessagesDirect.js +3 -3
- package/dist/api/postRecommendAssets.d.ts +1 -1
- package/dist/api/postRecommendAssets.js +3 -3
- package/dist/api/postRoute.d.ts +3 -2
- package/dist/api/postRoute.js +3 -3
- package/dist/api/postSubmit.d.ts +2 -2
- package/dist/api/postSubmit.js +3 -3
- package/dist/api/postSubmitTransaction.js +3 -3
- package/dist/api/postTrackTransaction.d.ts +2 -2
- package/dist/api/postTrackTransaction.js +3 -3
- package/dist/api/postTransactionStatus.d.ts +14 -2
- package/dist/api/postTransactionStatus.js +3 -3
- package/dist/{callbacks-CPh0dr86.d.ts → callbacks-DK2GxU0a.d.ts} +1 -1
- package/dist/{chunk-4CXSWHQ6.js → chunk-2R5COFPS.js} +1 -1
- package/dist/chunk-43P4WRGN.js +183 -0
- package/dist/{chunk-UCUUIQHV.js → chunk-4DI7G6TH.js} +1 -1
- package/dist/{chunk-4XUWIG3Z.js → chunk-6ULKULTX.js} +1 -1
- package/dist/{chunk-OFBEDG4X.js → chunk-6UMMVC2P.js} +1 -1
- package/dist/{chunk-35T3HXEL.js → chunk-7ZG7HNNC.js} +2 -2
- package/dist/{chunk-A4M35XLF.js → chunk-C6NHVJ3R.js} +2 -2
- package/dist/{chunk-O4IHON37.js → chunk-CGZ5DA2T.js} +1 -1
- package/dist/{chunk-COJAW7OW.js → chunk-ERPZHRBM.js} +3 -3
- package/dist/{chunk-72PK3PKI.js → chunk-F65QOYUA.js} +2 -2
- package/dist/{chunk-6SQTOOYP.js → chunk-GOD6ESBZ.js} +14 -14
- package/dist/{chunk-PFJUQWAV.js → chunk-HIJ6YOTK.js} +10 -10
- package/dist/{chunk-2YOWXBHH.js → chunk-HS2D6FKN.js} +1 -1
- package/dist/{chunk-XZV42PVV.js → chunk-I4AMZAHH.js} +3 -2
- package/dist/{chunk-UXUJNZOA.js → chunk-KYLULQOS.js} +7 -1
- package/dist/{chunk-CXFOPLGZ.js → chunk-MAOMQHG5.js} +1 -1
- package/dist/{chunk-A7FWC5OX.js → chunk-NZVZH6OA.js} +1 -1
- package/dist/{chunk-DF3WCTFB.js → chunk-PIQZD2VE.js} +1 -1
- package/dist/{chunk-NQZYCFAA.js → chunk-QPJEHGY7.js} +1 -1
- package/dist/{chunk-YABXOO3H.js → chunk-SS5LQKBL.js} +5 -1
- package/dist/{chunk-U6NXCWXE.js → chunk-UZKIIX6A.js} +1 -1
- package/dist/{chunk-Z3Z7A3YS.js → chunk-VUOOTNLG.js} +1 -1
- package/dist/{chunk-7MWYHGMD.js → chunk-YLMQS52U.js} +2 -2
- package/dist/{chunk-RE4YYQCE.js → chunk-YYXOIRHZ.js} +1 -1
- package/dist/{chunk-THUBVEVZ.js → chunk-ZTDLGX7X.js} +1 -1
- package/dist/{client-types-DRmsTfeT.d.ts → client-types-DuWWc2_J.d.ts} +1 -1
- package/dist/{generateApi-D7KXciAd.d.ts → generateApi-DvFEIUee.d.ts} +2 -1
- package/dist/index.d.ts +21 -6
- package/dist/index.js +32 -26
- package/dist/public-functions/executeRoute.d.ts +4 -4
- package/dist/public-functions/executeRoute.js +14 -14
- package/dist/public-functions/getCosmosGasAmountForMessage.d.ts +1 -1
- package/dist/public-functions/getEvmGasAmountForMessage.d.ts +2 -2
- package/dist/public-functions/getEvmGasAmountForMessage.js +1 -1
- package/dist/public-functions/getFeeInfoForChain.d.ts +1 -1
- package/dist/public-functions/getFeeInfoForChain.js +5 -5
- package/dist/public-functions/getRecommendedGasPrice.js +6 -6
- package/dist/public-functions/getSigningStargateClient.js +5 -5
- package/dist/public-functions/setApiOptions.d.ts +1 -1
- package/dist/public-functions/setApiOptions.js +3 -3
- package/dist/public-functions/setClientOptions.d.ts +3 -3
- package/dist/public-functions/setClientOptions.js +4 -4
- package/dist/public-functions/validateCosmosGasBalance.d.ts +4 -4
- package/dist/public-functions/validateCosmosGasBalance.js +6 -6
- package/dist/public-functions/waitForTransaction.d.ts +15 -3
- package/dist/public-functions/waitForTransaction.js +5 -5
- package/dist/{setClientOptions-CwcM5Ps9.d.ts → setClientOptions-B27lt_6h.d.ts} +1 -1
- package/dist/{swaggerTypes-BpJPRbC3.d.ts → swaggerTypes-BrC-ZYnx.d.ts} +20 -1
- package/package.json +1 -1
- package/dist/chunk-36MCR5DZ.js +0 -183
|
@@ -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';
|
|
@@ -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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -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-DK2GxU0a.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 };
|
package/dist/index.js
CHANGED
|
@@ -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-HIJ6YOTK.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 };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { T as TransactionCallbacks } from '../callbacks-
|
|
2
|
-
import {
|
|
3
|
-
import { A as ApiRequest } from '../generateApi-
|
|
4
|
-
import { S as SignerGetters, b as GasOptions, U as UserAddress } from '../client-types-
|
|
1
|
+
import { T as TransactionCallbacks } from '../callbacks-DK2GxU0a.js';
|
|
2
|
+
import { bf as RouteResponse, W as CosmosMsg, an as PostHandler } from '../swaggerTypes-BrC-ZYnx.js';
|
|
3
|
+
import { A as ApiRequest } from '../generateApi-DvFEIUee.js';
|
|
4
|
+
import { S as SignerGetters, b as GasOptions, U as UserAddress } from '../client-types-DuWWc2_J.js';
|
|
5
5
|
import { TrackTxPollingProps } from '../api/postTrackTransaction.js';
|
|
6
6
|
import '@cosmjs/amino';
|
|
7
7
|
import '@cosmjs/proto-signing';
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
export { executeRoute } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
4
|
-
import '../chunk-
|
|
1
|
+
export { executeRoute } from '../chunk-HIJ6YOTK.js';
|
|
2
|
+
import '../chunk-7ZG7HNNC.js';
|
|
3
|
+
import '../chunk-ERPZHRBM.js';
|
|
4
|
+
import '../chunk-I4AMZAHH.js';
|
|
5
5
|
import '../chunk-TV2XPAIF.js';
|
|
6
6
|
import '../chunk-TD63P2AG.js';
|
|
7
7
|
import '../chunk-GV2QOWB4.js';
|
|
8
8
|
import '../chunk-VQ5SIQWU.js';
|
|
9
9
|
import '../chunk-SWYON2RG.js';
|
|
10
|
-
import '../chunk-
|
|
11
|
-
import '../chunk-
|
|
12
|
-
import '../chunk-
|
|
13
|
-
import '../chunk-
|
|
14
|
-
import '../chunk-
|
|
15
|
-
import '../chunk-
|
|
16
|
-
import '../chunk-
|
|
17
|
-
import '../chunk-
|
|
18
|
-
import '../chunk-
|
|
19
|
-
import '../chunk-
|
|
10
|
+
import '../chunk-F65QOYUA.js';
|
|
11
|
+
import '../chunk-43P4WRGN.js';
|
|
12
|
+
import '../chunk-NZVZH6OA.js';
|
|
13
|
+
import '../chunk-6UMMVC2P.js';
|
|
14
|
+
import '../chunk-PIQZD2VE.js';
|
|
15
|
+
import '../chunk-MAOMQHG5.js';
|
|
16
|
+
import '../chunk-YYXOIRHZ.js';
|
|
17
|
+
import '../chunk-6ULKULTX.js';
|
|
18
|
+
import '../chunk-SS5LQKBL.js';
|
|
19
|
+
import '../chunk-KYLULQOS.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EncodeObject } from '@cosmjs/proto-signing';
|
|
2
2
|
import { SigningStargateClient } from '@cosmjs/stargate';
|
|
3
|
-
import { W as CosmosMsg } from '../swaggerTypes-
|
|
3
|
+
import { W as CosmosMsg } from '../swaggerTypes-BrC-ZYnx.js';
|
|
4
4
|
|
|
5
5
|
declare const DEFAULT_GAS_MULTIPLIER = 1.5;
|
|
6
6
|
declare function getCosmosGasAmountForMessage(client: SigningStargateClient, signerAddress: string, chainId: string, messages?: CosmosMsg[], encodedMsgs?: EncodeObject[], multiplier?: number): Promise<string>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { G as GetFallbackGasAmount } from '../client-types-
|
|
2
|
-
import { $ as EvmTx } from '../swaggerTypes-
|
|
1
|
+
import { G as GetFallbackGasAmount } from '../client-types-DuWWc2_J.js';
|
|
2
|
+
import { $ as EvmTx } from '../swaggerTypes-BrC-ZYnx.js';
|
|
3
3
|
import { WalletClient } from 'viem';
|
|
4
4
|
import '@cosmjs/amino';
|
|
5
5
|
import '@cosmjs/proto-signing';
|