@sodax/sdk 1.0.4-beta-rc1 → 1.0.4-beta-rc2
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/index.cjs +5 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +5 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -11878,7 +11878,7 @@ var SolanaSpokeService = class _SolanaSpokeService {
|
|
|
11878
11878
|
}
|
|
11879
11879
|
return spokeProvider.walletProvider.sendTransaction(serializedTransaction);
|
|
11880
11880
|
}
|
|
11881
|
-
static async waitForConfirmation(spokeProvider, signature, commitment = "finalized", timeoutMs =
|
|
11881
|
+
static async waitForConfirmation(spokeProvider, signature, commitment = "finalized", timeoutMs = 6e4) {
|
|
11882
11882
|
try {
|
|
11883
11883
|
const connection = new web3_js.Connection(spokeProvider.chainConfig.rpcUrl, commitment);
|
|
11884
11884
|
const deadline = Date.now() + timeoutMs;
|
|
@@ -14188,7 +14188,7 @@ var MoneyMarketService = class _MoneyMarketService {
|
|
|
14188
14188
|
ok: true,
|
|
14189
14189
|
value: txResult,
|
|
14190
14190
|
data: {
|
|
14191
|
-
address:
|
|
14191
|
+
address: fromHubWallet,
|
|
14192
14192
|
payload: data
|
|
14193
14193
|
}
|
|
14194
14194
|
};
|
|
@@ -14255,7 +14255,7 @@ var MoneyMarketService = class _MoneyMarketService {
|
|
|
14255
14255
|
if (spokeProvider.chainConfig.chain.id !== this.hubProvider.chainConfig.chain.id || params.toChainId && params.toAddress && params.toChainId !== this.hubProvider.chainConfig.chain.id) {
|
|
14256
14256
|
const packetResult = await relayTxAndWaitPacket(
|
|
14257
14257
|
txResult.value,
|
|
14258
|
-
|
|
14258
|
+
spokeProvider instanceof SolanaSpokeProvider ? txResult.data : void 0,
|
|
14259
14259
|
spokeProvider,
|
|
14260
14260
|
this.config.relayerApiEndpoint,
|
|
14261
14261
|
timeout
|
|
@@ -14540,7 +14540,7 @@ var MoneyMarketService = class _MoneyMarketService {
|
|
|
14540
14540
|
if (spokeProvider.chainConfig.chain.id !== this.hubProvider.chainConfig.chain.id) {
|
|
14541
14541
|
const packetResult = await relayTxAndWaitPacket(
|
|
14542
14542
|
txResult.value,
|
|
14543
|
-
spokeProvider
|
|
14543
|
+
isSolanaSpokeProviderType(spokeProvider) ? txResult.data : void 0,
|
|
14544
14544
|
spokeProvider,
|
|
14545
14545
|
this.config.relayerApiEndpoint,
|
|
14546
14546
|
timeout
|
|
@@ -14640,7 +14640,7 @@ var MoneyMarketService = class _MoneyMarketService {
|
|
|
14640
14640
|
ok: true,
|
|
14641
14641
|
value: txResult,
|
|
14642
14642
|
data: {
|
|
14643
|
-
address:
|
|
14643
|
+
address: fromHubWallet,
|
|
14644
14644
|
payload: data
|
|
14645
14645
|
}
|
|
14646
14646
|
};
|