@rsksmart/powpeg-sdk 1.2.0 → 1.3.0-beta

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.d.mts CHANGED
@@ -333,16 +333,16 @@ declare class PowPegSDK {
333
333
  }>;
334
334
  /**
335
335
  * Sends a peg-out transaction (as returned by {@link createPegout}) using the given ethers signer
336
- * and waits for it to be mined.
336
+ * and waits for it to be mined on the SDK's RSK RPC node.
337
337
  * @param {{ from: string, to: string, value: string }} tx - The peg-out transaction request.
338
338
  * @param {ethers.Signer} signer - Ethers signer used to send the transaction.
339
- * @returns The mined transaction receipt, if the signer's provider is set.
339
+ * @returns The mined transaction receipt.
340
340
  */
341
341
  signAndBroadcastPegout(tx: {
342
342
  from: string;
343
343
  to: string;
344
344
  value: string;
345
- }, signer: ethers.Signer): Promise<ethers.providers.TransactionReceipt | undefined>;
345
+ }, signer: ethers.Signer): Promise<ethers.providers.TransactionReceipt>;
346
346
  /**
347
347
  * Fetches the current status of a peg-in or peg-out transaction from the configured API.
348
348
  * @param {string} txHash - The Bitcoin or Rootstock transaction hash to look up.
package/dist/index.d.ts CHANGED
@@ -333,16 +333,16 @@ declare class PowPegSDK {
333
333
  }>;
334
334
  /**
335
335
  * Sends a peg-out transaction (as returned by {@link createPegout}) using the given ethers signer
336
- * and waits for it to be mined.
336
+ * and waits for it to be mined on the SDK's RSK RPC node.
337
337
  * @param {{ from: string, to: string, value: string }} tx - The peg-out transaction request.
338
338
  * @param {ethers.Signer} signer - Ethers signer used to send the transaction.
339
- * @returns The mined transaction receipt, if the signer's provider is set.
339
+ * @returns The mined transaction receipt.
340
340
  */
341
341
  signAndBroadcastPegout(tx: {
342
342
  from: string;
343
343
  to: string;
344
344
  value: string;
345
- }, signer: ethers.Signer): Promise<ethers.providers.TransactionReceipt | undefined>;
345
+ }, signer: ethers.Signer): Promise<ethers.providers.TransactionReceipt>;
346
346
  /**
347
347
  * Fetches the current status of a peg-in or peg-out transaction from the configured API.
348
348
  * @param {string} txHash - The Bitcoin or Rootstock transaction hash to look up.
package/dist/index.js CHANGED
@@ -768,14 +768,14 @@ var PowPegSDK = class {
768
768
  }
769
769
  /**
770
770
  * Sends a peg-out transaction (as returned by {@link createPegout}) using the given ethers signer
771
- * and waits for it to be mined.
771
+ * and waits for it to be mined on the SDK's RSK RPC node.
772
772
  * @param {{ from: string, to: string, value: string }} tx - The peg-out transaction request.
773
773
  * @param {ethers.Signer} signer - Ethers signer used to send the transaction.
774
- * @returns The mined transaction receipt, if the signer's provider is set.
774
+ * @returns The mined transaction receipt.
775
775
  */
776
776
  async signAndBroadcastPegout(tx, signer) {
777
777
  const { hash } = await signer.sendTransaction(tx);
778
- return signer.provider?.waitForTransaction(hash);
778
+ return this.rskProvider.waitForTransaction(hash);
779
779
  }
780
780
  /**
781
781
  * Fetches the current status of a peg-in or peg-out transaction from the configured API.
package/dist/index.mjs CHANGED
@@ -720,14 +720,14 @@ var PowPegSDK = class {
720
720
  }
721
721
  /**
722
722
  * Sends a peg-out transaction (as returned by {@link createPegout}) using the given ethers signer
723
- * and waits for it to be mined.
723
+ * and waits for it to be mined on the SDK's RSK RPC node.
724
724
  * @param {{ from: string, to: string, value: string }} tx - The peg-out transaction request.
725
725
  * @param {ethers.Signer} signer - Ethers signer used to send the transaction.
726
- * @returns The mined transaction receipt, if the signer's provider is set.
726
+ * @returns The mined transaction receipt.
727
727
  */
728
728
  async signAndBroadcastPegout(tx, signer) {
729
729
  const { hash } = await signer.sendTransaction(tx);
730
- return signer.provider?.waitForTransaction(hash);
730
+ return this.rskProvider.waitForTransaction(hash);
731
731
  }
732
732
  /**
733
733
  * Fetches the current status of a peg-in or peg-out transaction from the configured API.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rsksmart/powpeg-sdk",
3
- "version": "1.2.0",
3
+ "version": "1.3.0-beta",
4
4
  "description": "SDK for creating native peg-in and peg-out transactions following the PowPeg protocol.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",