@skip-go/client 1.5.16 → 1.5.18
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/{chunk-LJF74VNZ.cjs → chunk-LVRHZ5ZL.cjs} +8 -8
- package/dist/cjs/{chunk-WVMDZODS.cjs → chunk-NPKUHEGG.cjs} +40 -20
- package/dist/cjs/{chunk-A3UNNRKD.cjs → chunk-X2ASEG4P.cjs} +5 -0
- package/dist/cjs/{chunk-AQTXZWLA.cjs → chunk-YLL6U5SG.cjs} +6 -6
- package/dist/cjs/index.cjs +10 -10
- package/dist/cjs/public-functions/executeMultipleRoutes.cjs +4 -4
- package/dist/cjs/public-functions/executeRoute.cjs +4 -4
- package/dist/cjs/public-functions/getRouteWithGasOnReceive.cjs +4 -4
- package/dist/cjs/public-functions/subscribeToRouteStatus.cjs +5 -5
- package/dist/esm/api/getAssets.d.ts +1 -1
- package/dist/esm/api/getAssetsBetweenChains.d.ts +1 -1
- package/dist/esm/api/getBridges.d.ts +3 -3
- package/dist/esm/api/getChains.d.ts +1 -1
- package/dist/esm/api/postAssetsFromSource.d.ts +1 -1
- package/dist/esm/api/postBalances.d.ts +2 -2
- package/dist/esm/api/postMessages.d.ts +2 -2
- package/dist/esm/api/postMessagesDirect.d.ts +1 -1
- package/dist/esm/api/postRecommendAssets.d.ts +1 -1
- package/dist/esm/api/postRoute.d.ts +2 -2
- package/dist/esm/api/postSubmitTransaction.d.ts +2 -2
- package/dist/esm/api/postTrackTransaction.d.ts +2 -2
- package/dist/esm/api/postTransactionStatus.d.ts +40 -2
- package/dist/esm/{callbacks-CZNSHCBb.d.ts → callbacks-BfT9RHTS.d.ts} +4 -3
- package/dist/esm/{chunk-OMOVHXSC.js → chunk-DFXZ6FIV.js} +2 -2
- package/dist/esm/{chunk-6QW6MRVQ.js → chunk-PQCZ64TO.js} +2 -2
- package/dist/esm/{chunk-3DIX6KRJ.js → chunk-QCGHODGV.js} +5 -0
- package/dist/esm/{chunk-ZVFYCNA5.js → chunk-RCXA3W7Y.js} +28 -8
- package/dist/esm/{client-types-BX_0924O.d.ts → client-types-CiP7kdse.d.ts} +1 -1
- package/dist/esm/{generateApi-Clc85Kxw.d.ts → generateApi-CcpInrQx.d.ts} +1 -1
- package/dist/esm/index.d.ts +5 -5
- package/dist/esm/index.js +4 -4
- package/dist/esm/public-functions/executeMultipleRoutes.d.ts +4 -4
- package/dist/esm/public-functions/executeMultipleRoutes.js +3 -3
- package/dist/esm/public-functions/executeRoute.d.ts +4 -4
- package/dist/esm/public-functions/executeRoute.js +3 -3
- package/dist/esm/public-functions/getCosmosGasAmountForMessage.d.ts +1 -1
- package/dist/esm/public-functions/getEvmGasAmountForMessage.d.ts +3 -3
- package/dist/esm/public-functions/getFeeInfoForChain.d.ts +1 -1
- package/dist/esm/public-functions/getRouteWithGasOnReceive.d.ts +1 -1
- package/dist/esm/public-functions/getRouteWithGasOnReceive.js +4 -4
- package/dist/esm/public-functions/setApiOptions.d.ts +1 -1
- package/dist/esm/public-functions/setClientOptions.d.ts +4 -4
- package/dist/esm/public-functions/subscribeToRouteStatus.d.ts +4 -4
- package/dist/esm/public-functions/subscribeToRouteStatus.js +1 -1
- package/dist/esm/public-functions/validateCosmosGasBalance.d.ts +4 -4
- package/dist/esm/public-functions/waitForTransaction.d.ts +80 -4
- package/dist/esm/{setClientOptions-DD5Mzkw_.d.ts → setClientOptions-CMp1c0CF.d.ts} +3 -3
- package/dist/esm/{swaggerTypes-Dr4I6vW2.d.ts → swaggerTypes-CJ2Xl5ed.d.ts} +2 -0
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkNPKUHEGG_cjs = require('./chunk-NPKUHEGG.cjs');
|
|
4
|
+
var chunkX2ASEG4P_cjs = require('./chunk-X2ASEG4P.cjs');
|
|
5
5
|
var chunkNCFH5MGF_cjs = require('./chunk-NCFH5MGF.cjs');
|
|
6
6
|
var chunkAUTOIM57_cjs = require('./chunk-AUTOIM57.cjs');
|
|
7
7
|
var chunk2QPPD3BB_cjs = require('./chunk-2QPPD3BB.cjs');
|
|
@@ -24,7 +24,7 @@ var executeMultipleRoutes = async (options) => {
|
|
|
24
24
|
`executeMultipleRoutes error: no user addresses found for route: ${routeKey}`
|
|
25
25
|
);
|
|
26
26
|
}
|
|
27
|
-
const routeAddressList = await
|
|
27
|
+
const routeAddressList = await chunkNPKUHEGG_cjs.createValidAddressList({
|
|
28
28
|
userAddresses: _userAddresses,
|
|
29
29
|
route: routeValue
|
|
30
30
|
});
|
|
@@ -119,7 +119,7 @@ var executeMultipleRoutes = async (options) => {
|
|
|
119
119
|
const executeTransactionList = {};
|
|
120
120
|
const mergedMainAndSecondaryRoutes = Object.entries(msgsRecord).length !== Object.entries(route).length;
|
|
121
121
|
for (const [routeKey, msgsResponse] of Object.entries(msgsRecord)) {
|
|
122
|
-
const { id: routeId } =
|
|
122
|
+
const { id: routeId } = chunkX2ASEG4P_cjs.updateRouteDetails({
|
|
123
123
|
status: "unconfirmed",
|
|
124
124
|
options: {
|
|
125
125
|
route: route[routeKey],
|
|
@@ -132,7 +132,7 @@ var executeMultipleRoutes = async (options) => {
|
|
|
132
132
|
if (routeKey === "mainRoute") {
|
|
133
133
|
mainRouteId = routeId;
|
|
134
134
|
}
|
|
135
|
-
const { transactionDetails, executeTransaction: _executeTransaction } = await
|
|
135
|
+
const { transactionDetails, executeTransaction: _executeTransaction } = await chunkNPKUHEGG_cjs.executeTransactions({
|
|
136
136
|
...restOptions,
|
|
137
137
|
routeId,
|
|
138
138
|
txs: msgsResponse?.txs,
|
|
@@ -144,7 +144,7 @@ var executeMultipleRoutes = async (options) => {
|
|
|
144
144
|
const txResult = await _executeTransaction(index2);
|
|
145
145
|
if (routeKey !== "mainRoute" || mergedMainAndSecondaryRoutes) {
|
|
146
146
|
const relatedRoutes = Object.entries(route).filter(([key]) => key !== "mainRoute").map(([key, route2]) => ({ route: route2, routeKey: key, status: "pending" }));
|
|
147
|
-
|
|
147
|
+
chunkX2ASEG4P_cjs.updateRouteDetails({
|
|
148
148
|
options: {
|
|
149
149
|
route: route[routeKey],
|
|
150
150
|
...restOptions
|
|
@@ -182,7 +182,7 @@ var executeMultipleRoutes = async (options) => {
|
|
|
182
182
|
}
|
|
183
183
|
await Promise.all(
|
|
184
184
|
Object.entries(msgsRecord).map(([routeKey, msgsResponse], index2) => {
|
|
185
|
-
return
|
|
185
|
+
return chunkX2ASEG4P_cjs.executeAndSubscribeToRouteStatus({
|
|
186
186
|
transactionDetails: transactionDetailsList[index2],
|
|
187
187
|
executeTransaction: executeTransactionList[index2],
|
|
188
188
|
routeId: msgsRecordIndexToRouteId[index2],
|
|
@@ -193,7 +193,7 @@ var executeMultipleRoutes = async (options) => {
|
|
|
193
193
|
onRouteStatusUpdated: (routeStatus) => {
|
|
194
194
|
const relatedRoutes = Object.entries(route).filter(([key]) => key !== "mainRoute").map(([key, route2]) => ({ route: route2, routeKey: key, status: routeStatus.status }));
|
|
195
195
|
if (routeKey !== "mainRoute") {
|
|
196
|
-
|
|
196
|
+
chunkX2ASEG4P_cjs.updateRouteDetails({
|
|
197
197
|
options: {
|
|
198
198
|
route: route[routeKey],
|
|
199
199
|
...restOptions
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkX2ASEG4P_cjs = require('./chunk-X2ASEG4P.cjs');
|
|
4
4
|
var chunkYX56UXDX_cjs = require('./chunk-YX56UXDX.cjs');
|
|
5
5
|
var chunkTEH6UMUR_cjs = require('./chunk-TEH6UMUR.cjs');
|
|
6
6
|
var chunkF3EB2AQG_cjs = require('./chunk-F3EB2AQG.cjs');
|
|
@@ -327,7 +327,7 @@ var signCosmosTransaction = async ({
|
|
|
327
327
|
txIndex: index,
|
|
328
328
|
signerAddress: currentUserAddress
|
|
329
329
|
});
|
|
330
|
-
|
|
330
|
+
chunkX2ASEG4P_cjs.updateRouteDetails({
|
|
331
331
|
status: "signing",
|
|
332
332
|
routeId,
|
|
333
333
|
options
|
|
@@ -343,7 +343,7 @@ var signCosmosTransaction = async ({
|
|
|
343
343
|
options?.onTransactionSigned?.({
|
|
344
344
|
chainId
|
|
345
345
|
});
|
|
346
|
-
|
|
346
|
+
chunkX2ASEG4P_cjs.updateRouteDetails({
|
|
347
347
|
status: "pending",
|
|
348
348
|
routeId,
|
|
349
349
|
options
|
|
@@ -629,7 +629,7 @@ var executeEvmTransaction = async (message, options, index, routeId) => {
|
|
|
629
629
|
status: "pending",
|
|
630
630
|
allowance: requiredApproval
|
|
631
631
|
});
|
|
632
|
-
|
|
632
|
+
chunkX2ASEG4P_cjs.updateRouteDetails({
|
|
633
633
|
status: "allowance",
|
|
634
634
|
routeId,
|
|
635
635
|
options
|
|
@@ -663,7 +663,7 @@ var executeEvmTransaction = async (message, options, index, routeId) => {
|
|
|
663
663
|
signerAddress: evmSigner.account.address,
|
|
664
664
|
txIndex: index
|
|
665
665
|
});
|
|
666
|
-
|
|
666
|
+
chunkX2ASEG4P_cjs.updateRouteDetails({
|
|
667
667
|
status: "signing",
|
|
668
668
|
routeId,
|
|
669
669
|
options
|
|
@@ -675,7 +675,7 @@ var executeEvmTransaction = async (message, options, index, routeId) => {
|
|
|
675
675
|
chain: evmSigner.chain,
|
|
676
676
|
value: evmTx.value === "" ? void 0 : BigInt(evmTx.value)
|
|
677
677
|
});
|
|
678
|
-
|
|
678
|
+
chunkX2ASEG4P_cjs.updateRouteDetails({
|
|
679
679
|
status: "pending",
|
|
680
680
|
routeId,
|
|
681
681
|
options
|
|
@@ -688,6 +688,24 @@ var executeEvmTransaction = async (message, options, index, routeId) => {
|
|
|
688
688
|
});
|
|
689
689
|
return receipt;
|
|
690
690
|
};
|
|
691
|
+
function deserializeSvmTransaction(txBuffer) {
|
|
692
|
+
const probe = web3_js.VersionedTransaction.deserialize(txBuffer);
|
|
693
|
+
if (probe.version === "legacy") {
|
|
694
|
+
return web3_js.Transaction.from(txBuffer);
|
|
695
|
+
}
|
|
696
|
+
return probe;
|
|
697
|
+
}
|
|
698
|
+
function isVersionedTransaction(tx) {
|
|
699
|
+
return "version" in tx;
|
|
700
|
+
}
|
|
701
|
+
function serializeSvmMessage(tx) {
|
|
702
|
+
return isVersionedTransaction(tx) ? tx.message.serialize() : tx.serializeMessage();
|
|
703
|
+
}
|
|
704
|
+
function simulateSvmTransaction(connection, tx) {
|
|
705
|
+
return isVersionedTransaction(tx) ? connection.simulateTransaction(tx) : connection.simulateTransaction(tx);
|
|
706
|
+
}
|
|
707
|
+
|
|
708
|
+
// src/private-functions/svm/signSvmTransaction.ts
|
|
691
709
|
var signSvmTransaction = async ({
|
|
692
710
|
tx,
|
|
693
711
|
options,
|
|
@@ -716,10 +734,12 @@ var signSvmTransaction = async ({
|
|
|
716
734
|
throw new Error("executeSvmTransaction error: chainId not found in svmTx");
|
|
717
735
|
}
|
|
718
736
|
const txBuffer = Buffer.from(svmTx.tx ?? "", "base64");
|
|
719
|
-
const transaction =
|
|
737
|
+
const transaction = deserializeSvmTransaction(txBuffer);
|
|
720
738
|
if (options.svmFeePayer) {
|
|
721
|
-
const message = transaction
|
|
722
|
-
const resSignTx = await options.svmFeePayer.signTransaction(
|
|
739
|
+
const message = serializeSvmMessage(transaction);
|
|
740
|
+
const resSignTx = await options.svmFeePayer.signTransaction(
|
|
741
|
+
Buffer.from(message)
|
|
742
|
+
);
|
|
723
743
|
transaction.addSignature(
|
|
724
744
|
new web3_js.PublicKey(options.svmFeePayer.address),
|
|
725
745
|
Buffer.from(resSignTx)
|
|
@@ -731,19 +751,19 @@ var signSvmTransaction = async ({
|
|
|
731
751
|
signerAddress: signer.publicKey?.toBase58(),
|
|
732
752
|
txIndex: index
|
|
733
753
|
});
|
|
734
|
-
|
|
754
|
+
chunkX2ASEG4P_cjs.updateRouteDetails({
|
|
735
755
|
status: "signing",
|
|
736
756
|
routeId,
|
|
737
757
|
options
|
|
738
758
|
});
|
|
739
759
|
const signedTx = await signer.signTransaction(transaction);
|
|
740
760
|
options?.onTransactionSigned?.({ chainId: svmTx.chainId });
|
|
741
|
-
|
|
761
|
+
chunkX2ASEG4P_cjs.updateRouteDetails({
|
|
742
762
|
status: "pending",
|
|
743
763
|
routeId,
|
|
744
764
|
options
|
|
745
765
|
});
|
|
746
|
-
const serializedTx = signedTx.serialize();
|
|
766
|
+
const serializedTx = Buffer.from(signedTx.serialize());
|
|
747
767
|
return serializedTx;
|
|
748
768
|
};
|
|
749
769
|
|
|
@@ -869,7 +889,7 @@ var validateEvmTokenApproval = async ({
|
|
|
869
889
|
status: "pending",
|
|
870
890
|
allowance: requiredApproval
|
|
871
891
|
});
|
|
872
|
-
|
|
892
|
+
chunkX2ASEG4P_cjs.updateRouteDetails({
|
|
873
893
|
status: "allowance",
|
|
874
894
|
routeId,
|
|
875
895
|
options
|
|
@@ -896,7 +916,7 @@ var validateEvmTokenApproval = async ({
|
|
|
896
916
|
onApproveAllowance?.({
|
|
897
917
|
status: "completed"
|
|
898
918
|
});
|
|
899
|
-
|
|
919
|
+
chunkX2ASEG4P_cjs.updateRouteDetails({
|
|
900
920
|
status: "signing",
|
|
901
921
|
routeId,
|
|
902
922
|
options
|
|
@@ -1019,7 +1039,7 @@ var validateSvmGasBalance = async ({
|
|
|
1019
1039
|
const txBuffer = Buffer.from(tx.tx, "base64");
|
|
1020
1040
|
let transaction;
|
|
1021
1041
|
try {
|
|
1022
|
-
transaction =
|
|
1042
|
+
transaction = deserializeSvmTransaction(txBuffer);
|
|
1023
1043
|
} catch (decodeError) {
|
|
1024
1044
|
return {
|
|
1025
1045
|
success: false,
|
|
@@ -1028,7 +1048,7 @@ var validateSvmGasBalance = async ({
|
|
|
1028
1048
|
fee: null
|
|
1029
1049
|
};
|
|
1030
1050
|
}
|
|
1031
|
-
const simulation = await connection
|
|
1051
|
+
const simulation = await simulateSvmTransaction(connection, transaction);
|
|
1032
1052
|
if (simulation.value.err) {
|
|
1033
1053
|
const logs = simulation.value.logs ?? [];
|
|
1034
1054
|
const shortfall = getSolShortfall(logs);
|
|
@@ -1088,7 +1108,7 @@ var validateGasBalances = async ({
|
|
|
1088
1108
|
onValidateGasBalance?.({
|
|
1089
1109
|
status: "pending"
|
|
1090
1110
|
});
|
|
1091
|
-
|
|
1111
|
+
chunkX2ASEG4P_cjs.updateRouteDetails({
|
|
1092
1112
|
status: "validating",
|
|
1093
1113
|
routeId,
|
|
1094
1114
|
options
|
|
@@ -1122,7 +1142,7 @@ var validateGasBalances = async ({
|
|
|
1122
1142
|
onValidateGasBalance?.({
|
|
1123
1143
|
status: "pending"
|
|
1124
1144
|
});
|
|
1125
|
-
|
|
1145
|
+
chunkX2ASEG4P_cjs.updateRouteDetails({
|
|
1126
1146
|
status: "validating",
|
|
1127
1147
|
routeId,
|
|
1128
1148
|
options
|
|
@@ -1155,7 +1175,7 @@ var validateGasBalances = async ({
|
|
|
1155
1175
|
onValidateGasBalance?.({
|
|
1156
1176
|
status: "pending"
|
|
1157
1177
|
});
|
|
1158
|
-
|
|
1178
|
+
chunkX2ASEG4P_cjs.updateRouteDetails({
|
|
1159
1179
|
status: "validating",
|
|
1160
1180
|
routeId,
|
|
1161
1181
|
options
|
|
@@ -1251,7 +1271,7 @@ var executeTransactions = async (options) => {
|
|
|
1251
1271
|
throw new Error("executeRoute error: invalid message type");
|
|
1252
1272
|
}
|
|
1253
1273
|
});
|
|
1254
|
-
|
|
1274
|
+
chunkX2ASEG4P_cjs.updateRouteDetails({
|
|
1255
1275
|
transactionDetails,
|
|
1256
1276
|
routeId,
|
|
1257
1277
|
options
|
|
@@ -11,6 +11,7 @@ function getClientTransferEvent(transferEvent) {
|
|
|
11
11
|
const axelarTransfer = combinedTransferEvent?.axelarTransfer;
|
|
12
12
|
const ibcTransfer = combinedTransferEvent?.ibcTransfer;
|
|
13
13
|
const cctpTransfer = combinedTransferEvent?.cctpTransfer;
|
|
14
|
+
const cctpTransferV2 = combinedTransferEvent?.cctpTransferV2;
|
|
14
15
|
const hyperlaneTransfer = combinedTransferEvent?.hyperlaneTransfer;
|
|
15
16
|
const opInitTransfer = combinedTransferEvent?.opInitTransfer;
|
|
16
17
|
const goFastTransfer = combinedTransferEvent?.goFastTransfer;
|
|
@@ -24,6 +25,8 @@ function getClientTransferEvent(transferEvent) {
|
|
|
24
25
|
transferType = "ibcTransfer" /* ibcTransfer */;
|
|
25
26
|
} else if (cctpTransfer) {
|
|
26
27
|
transferType = "cctpTransfer" /* cctpTransfer */;
|
|
28
|
+
} else if (cctpTransferV2) {
|
|
29
|
+
transferType = "cctpTransferV2" /* cctpTransferV2 */;
|
|
27
30
|
} else if (hyperlaneTransfer) {
|
|
28
31
|
transferType = "hyperlaneTransfer" /* hyperlaneTransfer */;
|
|
29
32
|
} else if (opInitTransfer) {
|
|
@@ -139,6 +142,7 @@ function getClientTransferEvent(transferEvent) {
|
|
|
139
142
|
...ibcTransfer,
|
|
140
143
|
...axelarTransfer,
|
|
141
144
|
...cctpTransfer,
|
|
145
|
+
...cctpTransferV2,
|
|
142
146
|
...hyperlaneTransfer,
|
|
143
147
|
...stargateTransfer,
|
|
144
148
|
...hyperlaneTransfer,
|
|
@@ -215,6 +219,7 @@ var TransferType = /* @__PURE__ */ ((TransferType2) => {
|
|
|
215
219
|
TransferType2["ibcTransfer"] = "ibcTransfer";
|
|
216
220
|
TransferType2["axelarTransfer"] = "axelarTransfer";
|
|
217
221
|
TransferType2["cctpTransfer"] = "cctpTransfer";
|
|
222
|
+
TransferType2["cctpTransferV2"] = "cctpTransferV2";
|
|
218
223
|
TransferType2["hyperlaneTransfer"] = "hyperlaneTransfer";
|
|
219
224
|
TransferType2["opInitTransfer"] = "opInitTransfer";
|
|
220
225
|
TransferType2["goFastTransfer"] = "goFastTransfer";
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkNPKUHEGG_cjs = require('./chunk-NPKUHEGG.cjs');
|
|
4
|
+
var chunkX2ASEG4P_cjs = require('./chunk-X2ASEG4P.cjs');
|
|
5
5
|
var chunkNCFH5MGF_cjs = require('./chunk-NCFH5MGF.cjs');
|
|
6
6
|
var chunk2QPPD3BB_cjs = require('./chunk-2QPPD3BB.cjs');
|
|
7
7
|
|
|
8
8
|
// src/public-functions/executeRoute.ts
|
|
9
9
|
var executeRoute = async (options) => {
|
|
10
10
|
const { route, userAddresses, appendCosmosMsgs, timeoutSeconds } = options;
|
|
11
|
-
const { id: routeId } =
|
|
11
|
+
const { id: routeId } = chunkX2ASEG4P_cjs.updateRouteDetails({
|
|
12
12
|
status: "unconfirmed",
|
|
13
13
|
options
|
|
14
14
|
});
|
|
15
|
-
const addressList = await
|
|
15
|
+
const addressList = await chunkNPKUHEGG_cjs.createValidAddressList({
|
|
16
16
|
userAddresses,
|
|
17
17
|
route
|
|
18
18
|
});
|
|
@@ -43,8 +43,8 @@ var executeRoute = async (options) => {
|
|
|
43
43
|
}
|
|
44
44
|
});
|
|
45
45
|
}
|
|
46
|
-
const { transactionDetails, executeTransaction } = await
|
|
47
|
-
await
|
|
46
|
+
const { transactionDetails, executeTransaction } = await chunkNPKUHEGG_cjs.executeTransactions({ ...options, routeId, txs: response?.txs });
|
|
47
|
+
await chunkX2ASEG4P_cjs.executeAndSubscribeToRouteStatus({
|
|
48
48
|
transactionDetails,
|
|
49
49
|
executeTransaction,
|
|
50
50
|
routeId,
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -4,10 +4,10 @@ var chunkSNDRAYA6_cjs = require('./chunk-SNDRAYA6.cjs');
|
|
|
4
4
|
var chunkAVWWCQ5P_cjs = require('./chunk-AVWWCQ5P.cjs');
|
|
5
5
|
var chunkCK6CQWQU_cjs = require('./chunk-CK6CQWQU.cjs');
|
|
6
6
|
var chunk4BWE7SOV_cjs = require('./chunk-4BWE7SOV.cjs');
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
require('./chunk-
|
|
10
|
-
var
|
|
7
|
+
var chunkLVRHZ5ZL_cjs = require('./chunk-LVRHZ5ZL.cjs');
|
|
8
|
+
var chunkYLL6U5SG_cjs = require('./chunk-YLL6U5SG.cjs');
|
|
9
|
+
require('./chunk-NPKUHEGG.cjs');
|
|
10
|
+
var chunkX2ASEG4P_cjs = require('./chunk-X2ASEG4P.cjs');
|
|
11
11
|
var chunkYX56UXDX_cjs = require('./chunk-YX56UXDX.cjs');
|
|
12
12
|
var chunkTEH6UMUR_cjs = require('./chunk-TEH6UMUR.cjs');
|
|
13
13
|
require('./chunk-NM4PISTQ.cjs');
|
|
@@ -141,27 +141,27 @@ Object.defineProperty(exports, "waitForTransactionWithCancel", {
|
|
|
141
141
|
});
|
|
142
142
|
Object.defineProperty(exports, "executeMultipleRoutes", {
|
|
143
143
|
enumerable: true,
|
|
144
|
-
get: function () { return
|
|
144
|
+
get: function () { return chunkLVRHZ5ZL_cjs.executeMultipleRoutes; }
|
|
145
145
|
});
|
|
146
146
|
Object.defineProperty(exports, "executeRoute", {
|
|
147
147
|
enumerable: true,
|
|
148
|
-
get: function () { return
|
|
148
|
+
get: function () { return chunkYLL6U5SG_cjs.executeRoute; }
|
|
149
149
|
});
|
|
150
150
|
Object.defineProperty(exports, "TransferType", {
|
|
151
151
|
enumerable: true,
|
|
152
|
-
get: function () { return
|
|
152
|
+
get: function () { return chunkX2ASEG4P_cjs.TransferType; }
|
|
153
153
|
});
|
|
154
154
|
Object.defineProperty(exports, "getSimpleOverallStatus", {
|
|
155
155
|
enumerable: true,
|
|
156
|
-
get: function () { return
|
|
156
|
+
get: function () { return chunkX2ASEG4P_cjs.getSimpleOverallStatus; }
|
|
157
157
|
});
|
|
158
158
|
Object.defineProperty(exports, "getTransferEventsFromTxStatusResponse", {
|
|
159
159
|
enumerable: true,
|
|
160
|
-
get: function () { return
|
|
160
|
+
get: function () { return chunkX2ASEG4P_cjs.getTransferEventsFromTxStatusResponse; }
|
|
161
161
|
});
|
|
162
162
|
Object.defineProperty(exports, "subscribeToRouteStatus", {
|
|
163
163
|
enumerable: true,
|
|
164
|
-
get: function () { return
|
|
164
|
+
get: function () { return chunkX2ASEG4P_cjs.subscribeToRouteStatus; }
|
|
165
165
|
});
|
|
166
166
|
Object.defineProperty(exports, "validateCosmosGasBalance", {
|
|
167
167
|
enumerable: true,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
5
|
-
require('../chunk-
|
|
3
|
+
var chunkLVRHZ5ZL_cjs = require('../chunk-LVRHZ5ZL.cjs');
|
|
4
|
+
require('../chunk-NPKUHEGG.cjs');
|
|
5
|
+
require('../chunk-X2ASEG4P.cjs');
|
|
6
6
|
require('../chunk-YX56UXDX.cjs');
|
|
7
7
|
require('../chunk-TEH6UMUR.cjs');
|
|
8
8
|
require('../chunk-NM4PISTQ.cjs');
|
|
@@ -23,5 +23,5 @@ require('../chunk-WOSAJSJB.cjs');
|
|
|
23
23
|
|
|
24
24
|
Object.defineProperty(exports, "executeMultipleRoutes", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkLVRHZ5ZL_cjs.executeMultipleRoutes; }
|
|
27
27
|
});
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
5
|
-
require('../chunk-
|
|
3
|
+
var chunkYLL6U5SG_cjs = require('../chunk-YLL6U5SG.cjs');
|
|
4
|
+
require('../chunk-NPKUHEGG.cjs');
|
|
5
|
+
require('../chunk-X2ASEG4P.cjs');
|
|
6
6
|
require('../chunk-YX56UXDX.cjs');
|
|
7
7
|
require('../chunk-TEH6UMUR.cjs');
|
|
8
8
|
require('../chunk-NM4PISTQ.cjs');
|
|
@@ -23,5 +23,5 @@ require('../chunk-WOSAJSJB.cjs');
|
|
|
23
23
|
|
|
24
24
|
Object.defineProperty(exports, "executeRoute", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkYLL6U5SG_cjs.executeRoute; }
|
|
27
27
|
});
|
|
@@ -4,10 +4,10 @@ var chunkSNDRAYA6_cjs = require('../chunk-SNDRAYA6.cjs');
|
|
|
4
4
|
require('../chunk-AVWWCQ5P.cjs');
|
|
5
5
|
require('../chunk-CK6CQWQU.cjs');
|
|
6
6
|
require('../chunk-4BWE7SOV.cjs');
|
|
7
|
-
require('../chunk-
|
|
8
|
-
require('../chunk-
|
|
9
|
-
require('../chunk-
|
|
10
|
-
require('../chunk-
|
|
7
|
+
require('../chunk-LVRHZ5ZL.cjs');
|
|
8
|
+
require('../chunk-YLL6U5SG.cjs');
|
|
9
|
+
require('../chunk-NPKUHEGG.cjs');
|
|
10
|
+
require('../chunk-X2ASEG4P.cjs');
|
|
11
11
|
require('../chunk-YX56UXDX.cjs');
|
|
12
12
|
require('../chunk-TEH6UMUR.cjs');
|
|
13
13
|
require('../chunk-NM4PISTQ.cjs');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkX2ASEG4P_cjs = require('../chunk-X2ASEG4P.cjs');
|
|
4
4
|
require('../chunk-AUTOIM57.cjs');
|
|
5
5
|
require('../chunk-PDNKS5R2.cjs');
|
|
6
6
|
require('../chunk-2QPPD3BB.cjs');
|
|
@@ -10,17 +10,17 @@ require('../chunk-WOSAJSJB.cjs');
|
|
|
10
10
|
|
|
11
11
|
Object.defineProperty(exports, "executeAndSubscribeToRouteStatus", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkX2ASEG4P_cjs.executeAndSubscribeToRouteStatus; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "getTransactionStatus", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkX2ASEG4P_cjs.getTransactionStatus; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "subscribeToRouteStatus", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkX2ASEG4P_cjs.subscribeToRouteStatus; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "updateRouteDetails", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkX2ASEG4P_cjs.updateRouteDetails; }
|
|
26
26
|
});
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { S as SkipApiOptions } from '../apiState-1VvikVK-.js';
|
|
2
|
-
import { bG as ContentType, B as BridgeType } from '../swaggerTypes-
|
|
2
|
+
import { bG as ContentType, B as BridgeType } from '../swaggerTypes-CJ2Xl5ed.js';
|
|
3
3
|
|
|
4
4
|
declare const bridges: (options?: ({
|
|
5
5
|
cache?: RequestCache | undefined;
|
|
6
6
|
credentials?: RequestCredentials | undefined;
|
|
7
|
-
headers?: {
|
|
7
|
+
headers?: string[][] | {
|
|
8
8
|
[x: string]: string;
|
|
9
|
-
} |
|
|
9
|
+
} | {
|
|
10
10
|
append: {};
|
|
11
11
|
delete: {};
|
|
12
12
|
get: {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { S as SkipApiOptions } from '../apiState-1VvikVK-.js';
|
|
2
|
-
import { d as Reason, m as Asset } from '../swaggerTypes-
|
|
2
|
+
import { d as Reason, m as Asset } from '../swaggerTypes-CJ2Xl5ed.js';
|
|
3
3
|
|
|
4
4
|
declare const assetsFromSource: (options?: ({
|
|
5
5
|
sourceAssetDenom: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { S as SkipApiOptions } from '../apiState-1VvikVK-.js';
|
|
2
|
-
import { A as ApiRequest, a as ApiResponse } from '../generateApi-
|
|
3
|
-
import '../swaggerTypes-
|
|
2
|
+
import { A as ApiRequest, a as ApiResponse } from '../generateApi-CcpInrQx.js';
|
|
3
|
+
import '../swaggerTypes-CJ2Xl5ed.js';
|
|
4
4
|
|
|
5
5
|
declare const balances: (options?: ({
|
|
6
6
|
chains?: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as FeeType, B as BridgeType, F as FeeBehavior } from '../swaggerTypes-
|
|
1
|
+
import { a as FeeType, B as BridgeType, F as FeeBehavior } from '../swaggerTypes-CJ2Xl5ed.js';
|
|
2
2
|
import { S as SkipApiOptions } from '../apiState-1VvikVK-.js';
|
|
3
|
-
import { A as ApiRequest, a as ApiResponse } from '../generateApi-
|
|
3
|
+
import { A as ApiRequest, a as ApiResponse } from '../generateApi-CcpInrQx.js';
|
|
4
4
|
|
|
5
5
|
declare const messages: (request: MessagesRequest) => Promise<{
|
|
6
6
|
msgs?: ({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { S as SkipApiOptions } from '../apiState-1VvikVK-.js';
|
|
2
|
-
import { i as AutopilotAction, B as BridgeType, R as RoutePriceWarningType, a as FeeType, F as FeeBehavior } from '../swaggerTypes-
|
|
2
|
+
import { i as AutopilotAction, B as BridgeType, R as RoutePriceWarningType, a as FeeType, F as FeeBehavior } from '../swaggerTypes-CJ2Xl5ed.js';
|
|
3
3
|
|
|
4
4
|
declare const messagesDirect: (options?: ({
|
|
5
5
|
sourceAssetDenom?: string | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { B as BridgeType, R as RoutePriceWarningType, a as FeeType, F as FeeBehavior } from '../swaggerTypes-
|
|
1
|
+
import { B as BridgeType, R as RoutePriceWarningType, a as FeeType, F as FeeBehavior } from '../swaggerTypes-CJ2Xl5ed.js';
|
|
2
2
|
import { S as SkipApiOptions } from '../apiState-1VvikVK-.js';
|
|
3
|
-
import { A as ApiRequest } from '../generateApi-
|
|
3
|
+
import { A as ApiRequest } from '../generateApi-CcpInrQx.js';
|
|
4
4
|
|
|
5
5
|
declare const route: (request: RouteRequest) => Promise<{
|
|
6
6
|
amountIn: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { S as SkipApiOptions } from '../apiState-1VvikVK-.js';
|
|
2
|
-
import { A as ApiRequest, a as ApiResponse } from '../generateApi-
|
|
3
|
-
import '../swaggerTypes-
|
|
2
|
+
import { A as ApiRequest, a as ApiResponse } from '../generateApi-CcpInrQx.js';
|
|
3
|
+
import '../swaggerTypes-CJ2Xl5ed.js';
|
|
4
4
|
|
|
5
5
|
declare const submitTransaction: (options?: ({
|
|
6
6
|
tx?: string | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { S as SkipApiOptions } from '../apiState-1VvikVK-.js';
|
|
2
|
-
import { A as ApiRequest, P as PollingProps } from '../generateApi-
|
|
3
|
-
import '../swaggerTypes-
|
|
2
|
+
import { A as ApiRequest, P as PollingProps } from '../generateApi-CcpInrQx.js';
|
|
3
|
+
import '../swaggerTypes-CJ2Xl5ed.js';
|
|
4
4
|
|
|
5
5
|
type TrackTxRequest = ApiRequest<"status"> & TrackTxPollingProps & SkipApiOptions;
|
|
6
6
|
type TrackTxPollingProps = Omit<PollingProps<"status">, "isSuccess" | "onError" | "onSuccess">;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as TransactionState, P as PacketErrorType, T as TransferState, h as AxelarTransferState, C as ContractCallWithTokenErrorType, c as SendTokenErrorType, A as AxelarTransferType, g as CCTPTransferState, H as HyperlaneTransferState, O as OPInitTransferState, f as StargateTransferState, G as GoFastTransferState, L as LayerZeroTransferState, S as StatusErrorType } from '../swaggerTypes-
|
|
2
|
-
import { a as ApiResponse } from '../generateApi-
|
|
1
|
+
import { b as TransactionState, P as PacketErrorType, T as TransferState, h as AxelarTransferState, C as ContractCallWithTokenErrorType, c as SendTokenErrorType, A as AxelarTransferType, g as CCTPTransferState, H as HyperlaneTransferState, O as OPInitTransferState, f as StargateTransferState, G as GoFastTransferState, L as LayerZeroTransferState, S as StatusErrorType } from '../swaggerTypes-CJ2Xl5ed.js';
|
|
2
|
+
import { a as ApiResponse } from '../generateApi-CcpInrQx.js';
|
|
3
3
|
import { S as SkipApiOptions } from '../apiState-1VvikVK-.js';
|
|
4
4
|
|
|
5
5
|
declare const transactionStatus: (params?: ({
|
|
@@ -137,6 +137,25 @@ declare const transactionStatus: (params?: ({
|
|
|
137
137
|
} | undefined;
|
|
138
138
|
} | undefined;
|
|
139
139
|
} | undefined;
|
|
140
|
+
cctpTransferV2?: {
|
|
141
|
+
toChainId?: string | undefined;
|
|
142
|
+
fromChainId?: string | undefined;
|
|
143
|
+
state?: CCTPTransferState | undefined;
|
|
144
|
+
txs?: {
|
|
145
|
+
sendTx?: {
|
|
146
|
+
chainId?: string | undefined;
|
|
147
|
+
explorerLink: string;
|
|
148
|
+
txHash?: string | undefined;
|
|
149
|
+
onChainAt?: string | undefined;
|
|
150
|
+
} | undefined;
|
|
151
|
+
receiveTx?: {
|
|
152
|
+
chainId?: string | undefined;
|
|
153
|
+
explorerLink: string;
|
|
154
|
+
txHash?: string | undefined;
|
|
155
|
+
onChainAt?: string | undefined;
|
|
156
|
+
} | undefined;
|
|
157
|
+
} | undefined;
|
|
158
|
+
} | undefined;
|
|
140
159
|
hyperlaneTransfer?: {
|
|
141
160
|
fromChainId: string;
|
|
142
161
|
toChainId: string;
|
|
@@ -466,6 +485,25 @@ declare const transactionStatus: (params?: ({
|
|
|
466
485
|
} | undefined;
|
|
467
486
|
} | undefined;
|
|
468
487
|
} | undefined;
|
|
488
|
+
cctpTransferV2?: {
|
|
489
|
+
toChainId?: string | undefined;
|
|
490
|
+
fromChainId?: string | undefined;
|
|
491
|
+
state?: CCTPTransferState | undefined;
|
|
492
|
+
txs?: {
|
|
493
|
+
sendTx?: {
|
|
494
|
+
chainId?: string | undefined;
|
|
495
|
+
explorerLink: string;
|
|
496
|
+
txHash?: string | undefined;
|
|
497
|
+
onChainAt?: string | undefined;
|
|
498
|
+
} | undefined;
|
|
499
|
+
receiveTx?: {
|
|
500
|
+
chainId?: string | undefined;
|
|
501
|
+
explorerLink: string;
|
|
502
|
+
txHash?: string | undefined;
|
|
503
|
+
onChainAt?: string | undefined;
|
|
504
|
+
} | undefined;
|
|
505
|
+
} | undefined;
|
|
506
|
+
} | undefined;
|
|
469
507
|
hyperlaneTransfer?: {
|
|
470
508
|
fromChainId: string;
|
|
471
509
|
toChainId: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TxStatusResponse } from './api/postTransactionStatus.js';
|
|
2
|
-
import { T as TransferState, h as AxelarTransferState, g as CCTPTransferState, H as HyperlaneTransferState, O as OPInitTransferState, G as GoFastTransferState, f as StargateTransferState, L as LayerZeroTransferState, b as TransactionState, bq as RouteResponse, a6 as CosmosMsg, ax as PostHandler, ay as Route, aV as TransferAssetRelease, aW as TransferStatus, a3 as Erc20Approval } from './swaggerTypes-
|
|
3
|
-
import { A as ApiRequest } from './generateApi-
|
|
4
|
-
import { S as SignerGetters, b as GasOptions, B as BaseSettings, U as UserAddress, T as TxResult } from './client-types-
|
|
2
|
+
import { T as TransferState, h as AxelarTransferState, g as CCTPTransferState, H as HyperlaneTransferState, O as OPInitTransferState, G as GoFastTransferState, f as StargateTransferState, L as LayerZeroTransferState, b as TransactionState, bq as RouteResponse, a6 as CosmosMsg, ax as PostHandler, ay as Route, aV as TransferAssetRelease, aW as TransferStatus, a3 as Erc20Approval } from './swaggerTypes-CJ2Xl5ed.js';
|
|
3
|
+
import { A as ApiRequest } from './generateApi-CcpInrQx.js';
|
|
4
|
+
import { S as SignerGetters, b as GasOptions, B as BaseSettings, U as UserAddress, T as TxResult } from './client-types-CiP7kdse.js';
|
|
5
5
|
|
|
6
6
|
type OverallStatus = "pending" | "success" | "failed";
|
|
7
7
|
declare function getTransferEventsFromTxStatusResponse(txStatusResponse?: TxStatusResponse[]): {
|
|
@@ -22,6 +22,7 @@ declare enum TransferType {
|
|
|
22
22
|
ibcTransfer = "ibcTransfer",
|
|
23
23
|
axelarTransfer = "axelarTransfer",
|
|
24
24
|
cctpTransfer = "cctpTransfer",
|
|
25
|
+
cctpTransferV2 = "cctpTransferV2",
|
|
25
26
|
hyperlaneTransfer = "hyperlaneTransfer",
|
|
26
27
|
opInitTransfer = "opInitTransfer",
|
|
27
28
|
goFastTransfer = "goFastTransfer",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { createValidAddressList, executeTransactions } from './chunk-
|
|
2
|
-
import { updateRouteDetails, executeAndSubscribeToRouteStatus } from './chunk-
|
|
1
|
+
import { createValidAddressList, executeTransactions } from './chunk-RCXA3W7Y.js';
|
|
2
|
+
import { updateRouteDetails, executeAndSubscribeToRouteStatus } from './chunk-QCGHODGV.js';
|
|
3
3
|
import { messages } from './chunk-P36PE4CR.js';
|
|
4
4
|
import { trackTransaction } from './chunk-SXBG57J3.js';
|
|
5
5
|
import { ApiState } from './chunk-F66EKL3W.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { createValidAddressList, executeTransactions } from './chunk-
|
|
2
|
-
import { updateRouteDetails, executeAndSubscribeToRouteStatus } from './chunk-
|
|
1
|
+
import { createValidAddressList, executeTransactions } from './chunk-RCXA3W7Y.js';
|
|
2
|
+
import { updateRouteDetails, executeAndSubscribeToRouteStatus } from './chunk-QCGHODGV.js';
|
|
3
3
|
import { messages } from './chunk-P36PE4CR.js';
|
|
4
4
|
import { ApiState } from './chunk-F66EKL3W.js';
|
|
5
5
|
|
|
@@ -9,6 +9,7 @@ function getClientTransferEvent(transferEvent) {
|
|
|
9
9
|
const axelarTransfer = combinedTransferEvent?.axelarTransfer;
|
|
10
10
|
const ibcTransfer = combinedTransferEvent?.ibcTransfer;
|
|
11
11
|
const cctpTransfer = combinedTransferEvent?.cctpTransfer;
|
|
12
|
+
const cctpTransferV2 = combinedTransferEvent?.cctpTransferV2;
|
|
12
13
|
const hyperlaneTransfer = combinedTransferEvent?.hyperlaneTransfer;
|
|
13
14
|
const opInitTransfer = combinedTransferEvent?.opInitTransfer;
|
|
14
15
|
const goFastTransfer = combinedTransferEvent?.goFastTransfer;
|
|
@@ -22,6 +23,8 @@ function getClientTransferEvent(transferEvent) {
|
|
|
22
23
|
transferType = "ibcTransfer" /* ibcTransfer */;
|
|
23
24
|
} else if (cctpTransfer) {
|
|
24
25
|
transferType = "cctpTransfer" /* cctpTransfer */;
|
|
26
|
+
} else if (cctpTransferV2) {
|
|
27
|
+
transferType = "cctpTransferV2" /* cctpTransferV2 */;
|
|
25
28
|
} else if (hyperlaneTransfer) {
|
|
26
29
|
transferType = "hyperlaneTransfer" /* hyperlaneTransfer */;
|
|
27
30
|
} else if (opInitTransfer) {
|
|
@@ -137,6 +140,7 @@ function getClientTransferEvent(transferEvent) {
|
|
|
137
140
|
...ibcTransfer,
|
|
138
141
|
...axelarTransfer,
|
|
139
142
|
...cctpTransfer,
|
|
143
|
+
...cctpTransferV2,
|
|
140
144
|
...hyperlaneTransfer,
|
|
141
145
|
...stargateTransfer,
|
|
142
146
|
...hyperlaneTransfer,
|
|
@@ -213,6 +217,7 @@ var TransferType = /* @__PURE__ */ ((TransferType2) => {
|
|
|
213
217
|
TransferType2["ibcTransfer"] = "ibcTransfer";
|
|
214
218
|
TransferType2["axelarTransfer"] = "axelarTransfer";
|
|
215
219
|
TransferType2["cctpTransfer"] = "cctpTransfer";
|
|
220
|
+
TransferType2["cctpTransferV2"] = "cctpTransferV2";
|
|
216
221
|
TransferType2["hyperlaneTransfer"] = "hyperlaneTransfer";
|
|
217
222
|
TransferType2["opInitTransfer"] = "opInitTransfer";
|
|
218
223
|
TransferType2["goFastTransfer"] = "goFastTransfer";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { updateRouteDetails } from './chunk-
|
|
1
|
+
import { updateRouteDetails } from './chunk-QCGHODGV.js';
|
|
2
2
|
import { validateCosmosGasBalance } from './chunk-PZ2624FK.js';
|
|
3
3
|
import { getEncodeObjectFromCosmosMessage } from './chunk-R2GHDOWX.js';
|
|
4
4
|
import { getEVMGasAmountForMessage } from './chunk-GV2QOWB4.js';
|
|
@@ -18,7 +18,7 @@ import { Any } from 'cosmjs-types/google/protobuf/any.js';
|
|
|
18
18
|
import { Int53 } from '@cosmjs/math';
|
|
19
19
|
import { SignMode } from 'cosmjs-types/cosmos/tx/signing/v1beta1/signing.js';
|
|
20
20
|
import { isAddress, publicActions, maxUint256, formatUnits } from 'viem';
|
|
21
|
-
import {
|
|
21
|
+
import { PublicKey, Connection, VersionedTransaction, Transaction, LAMPORTS_PER_SOL } from '@solana/web3.js';
|
|
22
22
|
import { BigNumber } from 'bignumber.js';
|
|
23
23
|
import { bech32m, bech32 } from 'bech32';
|
|
24
24
|
|
|
@@ -686,6 +686,24 @@ var executeEvmTransaction = async (message, options, index, routeId) => {
|
|
|
686
686
|
});
|
|
687
687
|
return receipt;
|
|
688
688
|
};
|
|
689
|
+
function deserializeSvmTransaction(txBuffer) {
|
|
690
|
+
const probe = VersionedTransaction.deserialize(txBuffer);
|
|
691
|
+
if (probe.version === "legacy") {
|
|
692
|
+
return Transaction.from(txBuffer);
|
|
693
|
+
}
|
|
694
|
+
return probe;
|
|
695
|
+
}
|
|
696
|
+
function isVersionedTransaction(tx) {
|
|
697
|
+
return "version" in tx;
|
|
698
|
+
}
|
|
699
|
+
function serializeSvmMessage(tx) {
|
|
700
|
+
return isVersionedTransaction(tx) ? tx.message.serialize() : tx.serializeMessage();
|
|
701
|
+
}
|
|
702
|
+
function simulateSvmTransaction(connection, tx) {
|
|
703
|
+
return isVersionedTransaction(tx) ? connection.simulateTransaction(tx) : connection.simulateTransaction(tx);
|
|
704
|
+
}
|
|
705
|
+
|
|
706
|
+
// src/private-functions/svm/signSvmTransaction.ts
|
|
689
707
|
var signSvmTransaction = async ({
|
|
690
708
|
tx,
|
|
691
709
|
options,
|
|
@@ -714,10 +732,12 @@ var signSvmTransaction = async ({
|
|
|
714
732
|
throw new Error("executeSvmTransaction error: chainId not found in svmTx");
|
|
715
733
|
}
|
|
716
734
|
const txBuffer = Buffer.from(svmTx.tx ?? "", "base64");
|
|
717
|
-
const transaction =
|
|
735
|
+
const transaction = deserializeSvmTransaction(txBuffer);
|
|
718
736
|
if (options.svmFeePayer) {
|
|
719
|
-
const message = transaction
|
|
720
|
-
const resSignTx = await options.svmFeePayer.signTransaction(
|
|
737
|
+
const message = serializeSvmMessage(transaction);
|
|
738
|
+
const resSignTx = await options.svmFeePayer.signTransaction(
|
|
739
|
+
Buffer.from(message)
|
|
740
|
+
);
|
|
721
741
|
transaction.addSignature(
|
|
722
742
|
new PublicKey(options.svmFeePayer.address),
|
|
723
743
|
Buffer.from(resSignTx)
|
|
@@ -741,7 +761,7 @@ var signSvmTransaction = async ({
|
|
|
741
761
|
routeId,
|
|
742
762
|
options
|
|
743
763
|
});
|
|
744
|
-
const serializedTx = signedTx.serialize();
|
|
764
|
+
const serializedTx = Buffer.from(signedTx.serialize());
|
|
745
765
|
return serializedTx;
|
|
746
766
|
};
|
|
747
767
|
|
|
@@ -1017,7 +1037,7 @@ var validateSvmGasBalance = async ({
|
|
|
1017
1037
|
const txBuffer = Buffer.from(tx.tx, "base64");
|
|
1018
1038
|
let transaction;
|
|
1019
1039
|
try {
|
|
1020
|
-
transaction =
|
|
1040
|
+
transaction = deserializeSvmTransaction(txBuffer);
|
|
1021
1041
|
} catch (decodeError) {
|
|
1022
1042
|
return {
|
|
1023
1043
|
success: false,
|
|
@@ -1026,7 +1046,7 @@ var validateSvmGasBalance = async ({
|
|
|
1026
1046
|
fee: null
|
|
1027
1047
|
};
|
|
1028
1048
|
}
|
|
1029
|
-
const simulation = await connection
|
|
1049
|
+
const simulation = await simulateSvmTransaction(connection, transaction);
|
|
1030
1050
|
if (simulation.value.err) {
|
|
1031
1051
|
const logs = simulation.value.logs ?? [];
|
|
1032
1052
|
const shortfall = getSolShortfall(logs);
|
|
@@ -3,7 +3,7 @@ import { OfflineDirectSigner } from '@cosmjs/proto-signing';
|
|
|
3
3
|
import { GasPrice, StdFee, SignerData } from '@cosmjs/stargate';
|
|
4
4
|
import { WalletClient } from 'viem';
|
|
5
5
|
import { Adapter } from '@solana/wallet-adapter-base';
|
|
6
|
-
import { e as ChainType, af as FeeAsset, a6 as CosmosMsg } from './swaggerTypes-
|
|
6
|
+
import { e as ChainType, af as FeeAsset, a6 as CosmosMsg } from './swaggerTypes-CJ2Xl5ed.js';
|
|
7
7
|
import { TrackTxPollingProps } from './api/postTrackTransaction.js';
|
|
8
8
|
|
|
9
9
|
/** Common Types */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { bI as Api } from './swaggerTypes-
|
|
1
|
+
import { bI as Api } from './swaggerTypes-CJ2Xl5ed.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 ? {
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { j as AcknowledgementErrorDetails, k as Affiliate, bI as Api, bE as ApiConfig, l as ApiError, m as Asset, n as AssetBetweenChains, o as AssetRecommendation, ba as AssetRecommendationsRequest, bt as AssetRecommendationsResponse, bg as AssetsBetweenChainsRequest, b7 as AssetsFromSourceRequest, bp as AssetsFromSourceResponse, bn as AssetsRequest, bo as AssetsResponse, i as AutopilotAction, p as AutopilotMsg, q as AutopilotMsgWrapper, r as AxelarTransfer, s as AxelarTransferInfo, h as AxelarTransferState, A as AxelarTransferType, t as AxelarTransferWrapper, Q as BalanceRequestChainEntry, V as BalanceResponseChainEntry, U as BalanceResponseDenomEntry, b6 as BalancesRequest, bj as BalancesResponse, W as BankSend, X as BankSendWrapper, Y as Bridge, B as BridgeType, bk as BridgesResponse, v as CCTPTransfer, w as CCTPTransferInfo, g as CCTPTransferState, x as CCTPTransferTxs, y as CCTPTransferWrapper, Z as Chain, _ as ChainAffiliates, aw as ChainTransaction, e as ChainType, bh as ChainsRequest, bi as ChainsResponse, bG as ContentType, $ as ContractCallWithTokenError, C as ContractCallWithTokenErrorType, a0 as ContractCallWithTokenTxs, a1 as CosmWasmContractMsg, a2 as CosmWasmContractMsgWrapper, b3 as CosmosModuleSupport, a6 as CosmosMsg, a7 as CosmosTx, a8 as CosmosTxWrapper, a3 as Erc20Approval, a5 as Error, a4 as ErrorDetail, aY as EurekaTransfer, aZ as EurekaTransferInfo, a_ as EurekaTransferWrapper, a9 as EvmSwap, aa as EvmSwapWrapper, ab as EvmTx, ac as EvmTxWrapper, b5 as Fee, af as FeeAsset, F as FeeBehavior, a as FeeType, bC as FullRequestParams, bz as FungibleAssetsBetweenChainsCreateResponse, ah as GRPCStatusCode, ag as GoFastFee, J as GoFastTransfer, M as GoFastTransferInfo, G as GoFastTransferState, K as GoFastTransferTxs, N as GoFastTransferWrapper, bH as HttpClient, bF as HttpResponse, ai as HyperlaneTransfer, aj as HyperlaneTransferInfo, H as HyperlaneTransferState, ak as HyperlaneTransferTransactions, al as HyperlaneTransferWrapper, am as IBCTransferInfo, b4 as IbcCapabilities, bf as IbcOriginAssetsRequest, by as IbcOriginAssetsResponse, a$ as LayerZeroTransfer, b0 as LayerZeroTransferInfo, L as LayerZeroTransferState, at as LayerZeroTransferTransactions, b1 as LayerZeroTransferWrapper, an as Msg, b9 as MsgsDirectRequest, bs as MsgsDirectResponse, b8 as MsgsRequest, br as MsgsResponse, ap as MultiChainMsg, aq as MultiChainMsgWrapper, aP as OPInitTransfer, aR as OPInitTransferInfo, O as OPInitTransferState, aS as OPInitTransferTxs, aQ as OPInitTransferWrapper, ar as Operation, as as OptionalAsset, au as Packet, av as PacketError, P as PacketErrorType, ax as PostHandler, bA as QueryParamsType, d as Reason, b2 as RecommendationRequest, bD as RequestParams, bB as ResponseFormat, ay as Route, R as RoutePriceWarningType, bq as RouteResponse, az as SendTokenError, c as SendTokenErrorType, aA as SendTokenTxs, u as SmartRelayFeeQuote, aJ as SmartSwapExactCoinIn, aL as SmartSwapInWrapper, aK as SmartSwapOptions, z as StargateTransfer, E as StargateTransferInfo, f as StargateTransferState, D as StargateTransferTxs, I as StargateTransferWrapper, aB as StatusError, S as StatusErrorType, bw as StatusRequest, bx as StatusResponse, be as StatusTxResponse, bu as SubmitResponse, bb as SubmitTxRequest, ad as SvmTx, ae as SvmTxWrapper, aC as Swap, aD as SwapExactCoinIn, aE as SwapExactCoinOut, aF as SwapInWrapper, aG as SwapOperation, aH as SwapOutWrapper, aI as SwapRoute, aM as SwapVenue, aN as SwapWrapper, bv as TrackResponse, bc as TrackTxRequest, bd as TrackTxResponse, aO as TransactionExecutionErrorDetails, b as TransactionState, aT as Transfer, aV as TransferAssetRelease, aU as TransferEvent, T as TransferState, aW as TransferStatus, aX as TransferWrapper, ao as Tx, bl as VenuesRequest, bm as VenuesResponse } from './swaggerTypes-
|
|
2
|
-
export { C as ClientTransferEvent, E as ExecuteRouteOptions, O as OverallStatus, R as RouteDetails, a as RouteStatus, h as TransactionCallbacks, T as TransactionDetails, b as TransactionStatus, c as TransferEventStatus, d as TransferType, e as executeRoute, f as getSimpleOverallStatus, g as getTransferEventsFromTxStatusResponse, s as subscribeToRouteStatus } from './callbacks-
|
|
3
|
-
export { B as BaseSettings, 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 { j as AcknowledgementErrorDetails, k as Affiliate, bI as Api, bE as ApiConfig, l as ApiError, m as Asset, n as AssetBetweenChains, o as AssetRecommendation, ba as AssetRecommendationsRequest, bt as AssetRecommendationsResponse, bg as AssetsBetweenChainsRequest, b7 as AssetsFromSourceRequest, bp as AssetsFromSourceResponse, bn as AssetsRequest, bo as AssetsResponse, i as AutopilotAction, p as AutopilotMsg, q as AutopilotMsgWrapper, r as AxelarTransfer, s as AxelarTransferInfo, h as AxelarTransferState, A as AxelarTransferType, t as AxelarTransferWrapper, Q as BalanceRequestChainEntry, V as BalanceResponseChainEntry, U as BalanceResponseDenomEntry, b6 as BalancesRequest, bj as BalancesResponse, W as BankSend, X as BankSendWrapper, Y as Bridge, B as BridgeType, bk as BridgesResponse, v as CCTPTransfer, w as CCTPTransferInfo, g as CCTPTransferState, x as CCTPTransferTxs, y as CCTPTransferWrapper, Z as Chain, _ as ChainAffiliates, aw as ChainTransaction, e as ChainType, bh as ChainsRequest, bi as ChainsResponse, bG as ContentType, $ as ContractCallWithTokenError, C as ContractCallWithTokenErrorType, a0 as ContractCallWithTokenTxs, a1 as CosmWasmContractMsg, a2 as CosmWasmContractMsgWrapper, b3 as CosmosModuleSupport, a6 as CosmosMsg, a7 as CosmosTx, a8 as CosmosTxWrapper, a3 as Erc20Approval, a5 as Error, a4 as ErrorDetail, aY as EurekaTransfer, aZ as EurekaTransferInfo, a_ as EurekaTransferWrapper, a9 as EvmSwap, aa as EvmSwapWrapper, ab as EvmTx, ac as EvmTxWrapper, b5 as Fee, af as FeeAsset, F as FeeBehavior, a as FeeType, bC as FullRequestParams, bz as FungibleAssetsBetweenChainsCreateResponse, ah as GRPCStatusCode, ag as GoFastFee, J as GoFastTransfer, M as GoFastTransferInfo, G as GoFastTransferState, K as GoFastTransferTxs, N as GoFastTransferWrapper, bH as HttpClient, bF as HttpResponse, ai as HyperlaneTransfer, aj as HyperlaneTransferInfo, H as HyperlaneTransferState, ak as HyperlaneTransferTransactions, al as HyperlaneTransferWrapper, am as IBCTransferInfo, b4 as IbcCapabilities, bf as IbcOriginAssetsRequest, by as IbcOriginAssetsResponse, a$ as LayerZeroTransfer, b0 as LayerZeroTransferInfo, L as LayerZeroTransferState, at as LayerZeroTransferTransactions, b1 as LayerZeroTransferWrapper, an as Msg, b9 as MsgsDirectRequest, bs as MsgsDirectResponse, b8 as MsgsRequest, br as MsgsResponse, ap as MultiChainMsg, aq as MultiChainMsgWrapper, aP as OPInitTransfer, aR as OPInitTransferInfo, O as OPInitTransferState, aS as OPInitTransferTxs, aQ as OPInitTransferWrapper, ar as Operation, as as OptionalAsset, au as Packet, av as PacketError, P as PacketErrorType, ax as PostHandler, bA as QueryParamsType, d as Reason, b2 as RecommendationRequest, bD as RequestParams, bB as ResponseFormat, ay as Route, R as RoutePriceWarningType, bq as RouteResponse, az as SendTokenError, c as SendTokenErrorType, aA as SendTokenTxs, u as SmartRelayFeeQuote, aJ as SmartSwapExactCoinIn, aL as SmartSwapInWrapper, aK as SmartSwapOptions, z as StargateTransfer, E as StargateTransferInfo, f as StargateTransferState, D as StargateTransferTxs, I as StargateTransferWrapper, aB as StatusError, S as StatusErrorType, bw as StatusRequest, bx as StatusResponse, be as StatusTxResponse, bu as SubmitResponse, bb as SubmitTxRequest, ad as SvmTx, ae as SvmTxWrapper, aC as Swap, aD as SwapExactCoinIn, aE as SwapExactCoinOut, aF as SwapInWrapper, aG as SwapOperation, aH as SwapOutWrapper, aI as SwapRoute, aM as SwapVenue, aN as SwapWrapper, bv as TrackResponse, bc as TrackTxRequest, bd as TrackTxResponse, aO as TransactionExecutionErrorDetails, b as TransactionState, aT as Transfer, aV as TransferAssetRelease, aU as TransferEvent, T as TransferState, aW as TransferStatus, aX as TransferWrapper, ao as Tx, bl as VenuesRequest, bm as VenuesResponse } from './swaggerTypes-CJ2Xl5ed.js';
|
|
2
|
+
export { C as ClientTransferEvent, E as ExecuteRouteOptions, O as OverallStatus, R as RouteDetails, a as RouteStatus, h as TransactionCallbacks, T as TransactionDetails, b as TransactionStatus, c as TransferEventStatus, d as TransferType, e as executeRoute, f as getSimpleOverallStatus, g as getTransferEventsFromTxStatusResponse, s as subscribeToRouteStatus } from './callbacks-BfT9RHTS.js';
|
|
3
|
+
export { B as BaseSettings, 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-CiP7kdse.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';
|
|
@@ -19,7 +19,7 @@ export { trackTransaction } from './api/postTrackTransaction.js';
|
|
|
19
19
|
export { TxStatusResponse, transactionStatus } from './api/postTransactionStatus.js';
|
|
20
20
|
export { ExecuteMultipleRoutesOptions, executeMultipleRoutes } from './public-functions/executeMultipleRoutes.js';
|
|
21
21
|
export { getSigningStargateClient, getSigningStargateClientProps } from './public-functions/getSigningStargateClient.js';
|
|
22
|
-
export { C as ClientState, S as SkipClientOptions, s as setClientOptions } from './setClientOptions-
|
|
22
|
+
export { C as ClientState, S as SkipClientOptions, s as setClientOptions } from './setClientOptions-CMp1c0CF.js';
|
|
23
23
|
export { getRecommendedGasPrice } from './public-functions/getRecommendedGasPrice.js';
|
|
24
24
|
export { getFeeInfoForChain } from './public-functions/getFeeInfoForChain.js';
|
|
25
25
|
export { SetApiOptionsProps, setApiOptions } from './public-functions/setApiOptions.js';
|
|
@@ -27,7 +27,7 @@ export { waitForTransaction, waitForTransactionWithCancel } from './public-funct
|
|
|
27
27
|
export { getCosmosGasAmountForMessage } from './public-functions/getCosmosGasAmountForMessage.js';
|
|
28
28
|
export { getEVMGasAmountForMessage } from './public-functions/getEvmGasAmountForMessage.js';
|
|
29
29
|
export { validateCosmosGasBalance } from './public-functions/validateCosmosGasBalance.js';
|
|
30
|
-
import './generateApi-
|
|
30
|
+
import './generateApi-CcpInrQx.js';
|
|
31
31
|
import '@cosmjs/amino';
|
|
32
32
|
import '@cosmjs/proto-signing';
|
|
33
33
|
import '@cosmjs/stargate';
|
package/dist/esm/index.js
CHANGED
|
@@ -2,10 +2,10 @@ export { AutopilotActionJson, AxelarTransferStateJson, AxelarTransferTypeJson, B
|
|
|
2
2
|
export { setClientOptions } from './chunk-GZJLX2CP.js';
|
|
3
3
|
export { setApiOptions } from './chunk-QYXGDTUU.js';
|
|
4
4
|
export { waitForTransaction, waitForTransactionWithCancel } from './chunk-E4NRDAVO.js';
|
|
5
|
-
export { executeMultipleRoutes } from './chunk-
|
|
6
|
-
export { executeRoute } from './chunk-
|
|
7
|
-
import './chunk-
|
|
8
|
-
export { TransferType, getSimpleOverallStatus, getTransferEventsFromTxStatusResponse, subscribeToRouteStatus } from './chunk-
|
|
5
|
+
export { executeMultipleRoutes } from './chunk-DFXZ6FIV.js';
|
|
6
|
+
export { executeRoute } from './chunk-PQCZ64TO.js';
|
|
7
|
+
import './chunk-RCXA3W7Y.js';
|
|
8
|
+
export { TransferType, getSimpleOverallStatus, getTransferEventsFromTxStatusResponse, subscribeToRouteStatus } from './chunk-QCGHODGV.js';
|
|
9
9
|
export { validateCosmosGasBalance } from './chunk-PZ2624FK.js';
|
|
10
10
|
export { getCosmosGasAmountForMessage } from './chunk-R2GHDOWX.js';
|
|
11
11
|
import './chunk-F2LQB2DP.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { h as TransactionCallbacks } from '../callbacks-
|
|
2
|
-
import { bq as RouteResponse, a6 as CosmosMsg, ax as PostHandler } from '../swaggerTypes-
|
|
3
|
-
import { A as ApiRequest } from '../generateApi-
|
|
4
|
-
import { S as SignerGetters, b as GasOptions, B as BaseSettings, U as UserAddress } from '../client-types-
|
|
1
|
+
import { h as TransactionCallbacks } from '../callbacks-BfT9RHTS.js';
|
|
2
|
+
import { bq as RouteResponse, a6 as CosmosMsg, ax as PostHandler } from '../swaggerTypes-CJ2Xl5ed.js';
|
|
3
|
+
import { A as ApiRequest } from '../generateApi-CcpInrQx.js';
|
|
4
|
+
import { S as SignerGetters, b as GasOptions, B as BaseSettings, U as UserAddress } from '../client-types-CiP7kdse.js';
|
|
5
5
|
import '../api/postTransactionStatus.js';
|
|
6
6
|
import '../apiState-1VvikVK-.js';
|
|
7
7
|
import '@cosmjs/amino';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { executeMultipleRoutes } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
1
|
+
export { executeMultipleRoutes } from '../chunk-DFXZ6FIV.js';
|
|
2
|
+
import '../chunk-RCXA3W7Y.js';
|
|
3
|
+
import '../chunk-QCGHODGV.js';
|
|
4
4
|
import '../chunk-PZ2624FK.js';
|
|
5
5
|
import '../chunk-R2GHDOWX.js';
|
|
6
6
|
import '../chunk-F2LQB2DP.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { E as ExecuteRouteOptions, e as executeRoute } from '../callbacks-
|
|
2
|
-
import '../swaggerTypes-
|
|
3
|
-
import '../generateApi-
|
|
4
|
-
import '../client-types-
|
|
1
|
+
export { E as ExecuteRouteOptions, e as executeRoute } from '../callbacks-BfT9RHTS.js';
|
|
2
|
+
import '../swaggerTypes-CJ2Xl5ed.js';
|
|
3
|
+
import '../generateApi-CcpInrQx.js';
|
|
4
|
+
import '../client-types-CiP7kdse.js';
|
|
5
5
|
import '../api/postTransactionStatus.js';
|
|
6
6
|
import '../apiState-1VvikVK-.js';
|
|
7
7
|
import '@cosmjs/amino';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { executeRoute } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
1
|
+
export { executeRoute } from '../chunk-PQCZ64TO.js';
|
|
2
|
+
import '../chunk-RCXA3W7Y.js';
|
|
3
|
+
import '../chunk-QCGHODGV.js';
|
|
4
4
|
import '../chunk-PZ2624FK.js';
|
|
5
5
|
import '../chunk-R2GHDOWX.js';
|
|
6
6
|
import '../chunk-F2LQB2DP.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EncodeObject } from '@cosmjs/proto-signing';
|
|
2
2
|
import { SigningStargateClient } from '@cosmjs/stargate';
|
|
3
|
-
import { a6 as CosmosMsg } from '../swaggerTypes-
|
|
3
|
+
import { a6 as CosmosMsg } from '../swaggerTypes-CJ2Xl5ed.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 { ab as EvmTx } from '../swaggerTypes-
|
|
1
|
+
import { G as GetFallbackGasAmount } from '../client-types-CiP7kdse.js';
|
|
2
|
+
import { ab as EvmTx } from '../swaggerTypes-CJ2Xl5ed.js';
|
|
3
3
|
import { WalletClient } from 'viem';
|
|
4
4
|
import '@cosmjs/amino';
|
|
5
5
|
import '@cosmjs/proto-signing';
|
|
@@ -7,7 +7,7 @@ import '@cosmjs/stargate';
|
|
|
7
7
|
import '@solana/wallet-adapter-base';
|
|
8
8
|
import '../api/postTrackTransaction.js';
|
|
9
9
|
import '../apiState-1VvikVK-.js';
|
|
10
|
-
import '../generateApi-
|
|
10
|
+
import '../generateApi-CcpInrQx.js';
|
|
11
11
|
|
|
12
12
|
declare function getEVMGasAmountForMessage(signer: WalletClient, tx: EvmTx, getFallbackGasAmount?: GetFallbackGasAmount): Promise<bigint>;
|
|
13
13
|
|
|
@@ -2,10 +2,10 @@ export { getRouteWithGasOnReceive } from '../chunk-6URWUQ4I.js';
|
|
|
2
2
|
import '../chunk-GZJLX2CP.js';
|
|
3
3
|
import '../chunk-QYXGDTUU.js';
|
|
4
4
|
import '../chunk-E4NRDAVO.js';
|
|
5
|
-
import '../chunk-
|
|
6
|
-
import '../chunk-
|
|
7
|
-
import '../chunk-
|
|
8
|
-
import '../chunk-
|
|
5
|
+
import '../chunk-DFXZ6FIV.js';
|
|
6
|
+
import '../chunk-PQCZ64TO.js';
|
|
7
|
+
import '../chunk-RCXA3W7Y.js';
|
|
8
|
+
import '../chunk-QCGHODGV.js';
|
|
9
9
|
import '../chunk-PZ2624FK.js';
|
|
10
10
|
import '../chunk-R2GHDOWX.js';
|
|
11
11
|
import '../chunk-F2LQB2DP.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { S as SkipApiOptions } from '../apiState-1VvikVK-.js';
|
|
2
|
-
import { _ as ChainAffiliates } from '../swaggerTypes-
|
|
2
|
+
import { _ as ChainAffiliates } from '../swaggerTypes-CJ2Xl5ed.js';
|
|
3
3
|
|
|
4
4
|
type SetApiOptionsProps = {
|
|
5
5
|
chainIdsToAffiliates?: Record<string, ChainAffiliates>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { s as setClientOptions } from '../setClientOptions-
|
|
1
|
+
export { s as setClientOptions } from '../setClientOptions-CMp1c0CF.js';
|
|
2
2
|
import '@cosmjs/proto-signing';
|
|
3
3
|
import '@cosmjs/stargate';
|
|
4
|
-
import '../swaggerTypes-
|
|
5
|
-
import '../generateApi-
|
|
4
|
+
import '../swaggerTypes-CJ2Xl5ed.js';
|
|
5
|
+
import '../generateApi-CcpInrQx.js';
|
|
6
6
|
import '../apiState-1VvikVK-.js';
|
|
7
|
-
import '../client-types-
|
|
7
|
+
import '../client-types-CiP7kdse.js';
|
|
8
8
|
import '@cosmjs/amino';
|
|
9
9
|
import 'viem';
|
|
10
10
|
import '@solana/wallet-adapter-base';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import '../api/postTransactionStatus.js';
|
|
2
|
-
import '../swaggerTypes-
|
|
3
|
-
export { R as RouteDetails, a as RouteStatus, T as TransactionDetails, b as TransactionStatus, l as executeAndSubscribeToRouteStatus, k as executeAndSubscribeToRouteStatusProps, i as getTransactionStatus, s as subscribeToRouteStatus, j as subscribeToRouteStatusProps, u as updateRouteDetails } from '../callbacks-
|
|
4
|
-
import '../client-types-
|
|
5
|
-
import '../generateApi-
|
|
2
|
+
import '../swaggerTypes-CJ2Xl5ed.js';
|
|
3
|
+
export { R as RouteDetails, a as RouteStatus, T as TransactionDetails, b as TransactionStatus, l as executeAndSubscribeToRouteStatus, k as executeAndSubscribeToRouteStatusProps, i as getTransactionStatus, s as subscribeToRouteStatus, j as subscribeToRouteStatusProps, u as updateRouteDetails } from '../callbacks-BfT9RHTS.js';
|
|
4
|
+
import '../client-types-CiP7kdse.js';
|
|
5
|
+
import '../generateApi-CcpInrQx.js';
|
|
6
6
|
import '../apiState-1VvikVK-.js';
|
|
7
7
|
import '@cosmjs/amino';
|
|
8
8
|
import '@cosmjs/proto-signing';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { executeAndSubscribeToRouteStatus, getTransactionStatus, subscribeToRouteStatus, updateRouteDetails } from '../chunk-
|
|
1
|
+
export { executeAndSubscribeToRouteStatus, getTransactionStatus, subscribeToRouteStatus, updateRouteDetails } from '../chunk-QCGHODGV.js';
|
|
2
2
|
import '../chunk-SXBG57J3.js';
|
|
3
3
|
import '../chunk-N4PTRCNT.js';
|
|
4
4
|
import '../chunk-F66EKL3W.js';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as _cosmjs_stargate from '@cosmjs/stargate';
|
|
2
|
-
import { a6 as CosmosMsg, af as FeeAsset } from '../swaggerTypes-
|
|
2
|
+
import { a6 as CosmosMsg, af as FeeAsset } from '../swaggerTypes-CJ2Xl5ed.js';
|
|
3
3
|
import { OfflineSigner } from '@cosmjs/proto-signing';
|
|
4
|
-
import { E as ExecuteRouteOptions } from '../callbacks-
|
|
5
|
-
import { G as GetFallbackGasAmount } from '../client-types-
|
|
4
|
+
import { E as ExecuteRouteOptions } from '../callbacks-BfT9RHTS.js';
|
|
5
|
+
import { G as GetFallbackGasAmount } from '../client-types-CiP7kdse.js';
|
|
6
6
|
import '../api/postTransactionStatus.js';
|
|
7
|
-
import '../generateApi-
|
|
7
|
+
import '../generateApi-CcpInrQx.js';
|
|
8
8
|
import '../apiState-1VvikVK-.js';
|
|
9
9
|
import '@cosmjs/amino';
|
|
10
10
|
import 'viem';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { b as TransactionState, P as PacketErrorType, T as TransferState, h as AxelarTransferState, C as ContractCallWithTokenErrorType, c as SendTokenErrorType, A as AxelarTransferType, g as CCTPTransferState, H as HyperlaneTransferState, O as OPInitTransferState, f as StargateTransferState, G as GoFastTransferState, L as LayerZeroTransferState, S as StatusErrorType } from '../swaggerTypes-
|
|
2
|
-
import { h as TransactionCallbacks } from '../callbacks-
|
|
3
|
-
import { T as TxResult } from '../client-types-
|
|
1
|
+
import { b as TransactionState, P as PacketErrorType, T as TransferState, h as AxelarTransferState, C as ContractCallWithTokenErrorType, c as SendTokenErrorType, A as AxelarTransferType, g as CCTPTransferState, H as HyperlaneTransferState, O as OPInitTransferState, f as StargateTransferState, G as GoFastTransferState, L as LayerZeroTransferState, S as StatusErrorType } from '../swaggerTypes-CJ2Xl5ed.js';
|
|
2
|
+
import { h as TransactionCallbacks } from '../callbacks-BfT9RHTS.js';
|
|
3
|
+
import { T as TxResult } from '../client-types-CiP7kdse.js';
|
|
4
4
|
import { TxStatusResponse } from '../api/postTransactionStatus.js';
|
|
5
|
-
import '../generateApi-
|
|
5
|
+
import '../generateApi-CcpInrQx.js';
|
|
6
6
|
import '@cosmjs/amino';
|
|
7
7
|
import '@cosmjs/proto-signing';
|
|
8
8
|
import '@cosmjs/stargate';
|
|
@@ -148,6 +148,25 @@ declare const waitForTransaction: ({ chainId, txHash, explorerLink, doNotTrack,
|
|
|
148
148
|
} | undefined;
|
|
149
149
|
} | undefined;
|
|
150
150
|
} | undefined;
|
|
151
|
+
cctpTransferV2?: {
|
|
152
|
+
toChainId?: string | undefined;
|
|
153
|
+
fromChainId?: string | undefined;
|
|
154
|
+
state?: CCTPTransferState | undefined;
|
|
155
|
+
txs?: {
|
|
156
|
+
sendTx?: {
|
|
157
|
+
chainId?: string | undefined;
|
|
158
|
+
explorerLink: string;
|
|
159
|
+
txHash?: string | undefined;
|
|
160
|
+
onChainAt?: string | undefined;
|
|
161
|
+
} | undefined;
|
|
162
|
+
receiveTx?: {
|
|
163
|
+
chainId?: string | undefined;
|
|
164
|
+
explorerLink: string;
|
|
165
|
+
txHash?: string | undefined;
|
|
166
|
+
onChainAt?: string | undefined;
|
|
167
|
+
} | undefined;
|
|
168
|
+
} | undefined;
|
|
169
|
+
} | undefined;
|
|
151
170
|
hyperlaneTransfer?: {
|
|
152
171
|
fromChainId: string;
|
|
153
172
|
toChainId: string;
|
|
@@ -477,6 +496,25 @@ declare const waitForTransaction: ({ chainId, txHash, explorerLink, doNotTrack,
|
|
|
477
496
|
} | undefined;
|
|
478
497
|
} | undefined;
|
|
479
498
|
} | undefined;
|
|
499
|
+
cctpTransferV2?: {
|
|
500
|
+
toChainId?: string | undefined;
|
|
501
|
+
fromChainId?: string | undefined;
|
|
502
|
+
state?: CCTPTransferState | undefined;
|
|
503
|
+
txs?: {
|
|
504
|
+
sendTx?: {
|
|
505
|
+
chainId?: string | undefined;
|
|
506
|
+
explorerLink: string;
|
|
507
|
+
txHash?: string | undefined;
|
|
508
|
+
onChainAt?: string | undefined;
|
|
509
|
+
} | undefined;
|
|
510
|
+
receiveTx?: {
|
|
511
|
+
chainId?: string | undefined;
|
|
512
|
+
explorerLink: string;
|
|
513
|
+
txHash?: string | undefined;
|
|
514
|
+
onChainAt?: string | undefined;
|
|
515
|
+
} | undefined;
|
|
516
|
+
} | undefined;
|
|
517
|
+
} | undefined;
|
|
480
518
|
hyperlaneTransfer?: {
|
|
481
519
|
fromChainId: string;
|
|
482
520
|
toChainId: string;
|
|
@@ -776,6 +814,25 @@ declare const waitForTransactionWithCancel: (props: WaitForTransactionProps) =>
|
|
|
776
814
|
} | undefined;
|
|
777
815
|
} | undefined;
|
|
778
816
|
} | undefined;
|
|
817
|
+
cctpTransferV2?: {
|
|
818
|
+
toChainId?: string | undefined;
|
|
819
|
+
fromChainId?: string | undefined;
|
|
820
|
+
state?: CCTPTransferState | undefined;
|
|
821
|
+
txs?: {
|
|
822
|
+
sendTx?: {
|
|
823
|
+
chainId?: string | undefined;
|
|
824
|
+
explorerLink: string;
|
|
825
|
+
txHash?: string | undefined;
|
|
826
|
+
onChainAt?: string | undefined;
|
|
827
|
+
} | undefined;
|
|
828
|
+
receiveTx?: {
|
|
829
|
+
chainId?: string | undefined;
|
|
830
|
+
explorerLink: string;
|
|
831
|
+
txHash?: string | undefined;
|
|
832
|
+
onChainAt?: string | undefined;
|
|
833
|
+
} | undefined;
|
|
834
|
+
} | undefined;
|
|
835
|
+
} | undefined;
|
|
779
836
|
hyperlaneTransfer?: {
|
|
780
837
|
fromChainId: string;
|
|
781
838
|
toChainId: string;
|
|
@@ -1105,6 +1162,25 @@ declare const waitForTransactionWithCancel: (props: WaitForTransactionProps) =>
|
|
|
1105
1162
|
} | undefined;
|
|
1106
1163
|
} | undefined;
|
|
1107
1164
|
} | undefined;
|
|
1165
|
+
cctpTransferV2?: {
|
|
1166
|
+
toChainId?: string | undefined;
|
|
1167
|
+
fromChainId?: string | undefined;
|
|
1168
|
+
state?: CCTPTransferState | undefined;
|
|
1169
|
+
txs?: {
|
|
1170
|
+
sendTx?: {
|
|
1171
|
+
chainId?: string | undefined;
|
|
1172
|
+
explorerLink: string;
|
|
1173
|
+
txHash?: string | undefined;
|
|
1174
|
+
onChainAt?: string | undefined;
|
|
1175
|
+
} | undefined;
|
|
1176
|
+
receiveTx?: {
|
|
1177
|
+
chainId?: string | undefined;
|
|
1178
|
+
explorerLink: string;
|
|
1179
|
+
txHash?: string | undefined;
|
|
1180
|
+
onChainAt?: string | undefined;
|
|
1181
|
+
} | undefined;
|
|
1182
|
+
} | undefined;
|
|
1183
|
+
} | undefined;
|
|
1108
1184
|
hyperlaneTransfer?: {
|
|
1109
1185
|
fromChainId: string;
|
|
1110
1186
|
toChainId: string;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { GeneratedType, Registry } from '@cosmjs/proto-signing';
|
|
2
2
|
import { AminoConverters, AminoTypes, SigningStargateClient } from '@cosmjs/stargate';
|
|
3
|
-
import { Z as Chain, m as Asset } from './swaggerTypes-
|
|
4
|
-
import { a as ApiResponse } from './generateApi-
|
|
3
|
+
import { Z as Chain, m as Asset } from './swaggerTypes-CJ2Xl5ed.js';
|
|
4
|
+
import { a as ApiResponse } from './generateApi-CcpInrQx.js';
|
|
5
5
|
import { S as SkipApiOptions } from './apiState-1VvikVK-.js';
|
|
6
|
-
import { E as EndpointOptions, V as ValidateGasResult } from './client-types-
|
|
6
|
+
import { E as EndpointOptions, V as ValidateGasResult } from './client-types-CiP7kdse.js';
|
|
7
7
|
|
|
8
8
|
type GetMainnetAndTestnetAssetsProps = {
|
|
9
9
|
chainId?: string;
|
|
@@ -1240,6 +1240,8 @@ interface TransferEvent {
|
|
|
1240
1240
|
ibcTransfer?: IBCTransferInfo;
|
|
1241
1241
|
axelarTransfer?: AxelarTransferInfo;
|
|
1242
1242
|
cctpTransfer?: CCTPTransferInfo;
|
|
1243
|
+
/** Status of a transfer facilitated by the CCTP V2 bridge, which is reported in the same shape as CCTP V1 */
|
|
1244
|
+
cctpTransferV2?: CCTPTransferInfo;
|
|
1243
1245
|
hyperlaneTransfer?: HyperlaneTransferInfo;
|
|
1244
1246
|
opInitTransfer?: OPInitTransferInfo;
|
|
1245
1247
|
stargateTransfer?: StargateTransferInfo;
|