@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.mjs CHANGED
@@ -11850,7 +11850,7 @@ var SolanaSpokeService = class _SolanaSpokeService {
11850
11850
  }
11851
11851
  return spokeProvider.walletProvider.sendTransaction(serializedTransaction);
11852
11852
  }
11853
- static async waitForConfirmation(spokeProvider, signature, commitment = "finalized", timeoutMs = 12e4) {
11853
+ static async waitForConfirmation(spokeProvider, signature, commitment = "finalized", timeoutMs = 6e4) {
11854
11854
  try {
11855
11855
  const connection = new Connection(spokeProvider.chainConfig.rpcUrl, commitment);
11856
11856
  const deadline = Date.now() + timeoutMs;
@@ -14160,7 +14160,7 @@ var MoneyMarketService = class _MoneyMarketService {
14160
14160
  ok: true,
14161
14161
  value: txResult,
14162
14162
  data: {
14163
- address: toHubWallet,
14163
+ address: fromHubWallet,
14164
14164
  payload: data
14165
14165
  }
14166
14166
  };
@@ -14227,7 +14227,7 @@ var MoneyMarketService = class _MoneyMarketService {
14227
14227
  if (spokeProvider.chainConfig.chain.id !== this.hubProvider.chainConfig.chain.id || params.toChainId && params.toAddress && params.toChainId !== this.hubProvider.chainConfig.chain.id) {
14228
14228
  const packetResult = await relayTxAndWaitPacket(
14229
14229
  txResult.value,
14230
- isSolanaSpokeProviderType(spokeProvider) ? txResult.data : void 0,
14230
+ spokeProvider instanceof SolanaSpokeProvider ? txResult.data : void 0,
14231
14231
  spokeProvider,
14232
14232
  this.config.relayerApiEndpoint,
14233
14233
  timeout
@@ -14512,7 +14512,7 @@ var MoneyMarketService = class _MoneyMarketService {
14512
14512
  if (spokeProvider.chainConfig.chain.id !== this.hubProvider.chainConfig.chain.id) {
14513
14513
  const packetResult = await relayTxAndWaitPacket(
14514
14514
  txResult.value,
14515
- spokeProvider instanceof SolanaSpokeProvider ? txResult.data : void 0,
14515
+ isSolanaSpokeProviderType(spokeProvider) ? txResult.data : void 0,
14516
14516
  spokeProvider,
14517
14517
  this.config.relayerApiEndpoint,
14518
14518
  timeout
@@ -14612,7 +14612,7 @@ var MoneyMarketService = class _MoneyMarketService {
14612
14612
  ok: true,
14613
14613
  value: txResult,
14614
14614
  data: {
14615
- address: toHubWallet,
14615
+ address: fromHubWallet,
14616
14616
  payload: data
14617
14617
  }
14618
14618
  };