@btc-vision/transaction 1.0.79 → 1.0.80
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/browser/_version.d.ts +1 -1
- package/browser/index.js +1 -1
- package/build/_version.d.ts +1 -1
- package/build/_version.js +1 -1
- package/build/transaction/builders/UnwrapSegwitTransaction.js +1 -1
- package/build/transaction/builders/UnwrapTransaction.js +1 -1
- package/build/transaction/builders/WrapTransaction.js +1 -1
- package/package.json +1 -1
- package/src/_version.ts +1 -1
- package/src/transaction/builders/UnwrapSegwitTransaction.ts +365 -365
- package/src/transaction/builders/UnwrapTransaction.ts +507 -505
- package/src/transaction/builders/WrapTransaction.ts +346 -346
package/build/_version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "1.0.
|
|
1
|
+
export declare const version = "1.0.80";
|
package/build/_version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '1.0.
|
|
1
|
+
export const version = '1.0.80';
|
|
@@ -26,7 +26,7 @@ export class UnwrapSegwitTransaction extends SharedInteractionTransaction {
|
|
|
26
26
|
parameters.disableAutoRefund = true;
|
|
27
27
|
parameters.calldata = UnwrapSegwitTransaction.generateBurnCalldata(parameters.amount);
|
|
28
28
|
super(parameters);
|
|
29
|
-
this.wbtc = new wBTC(parameters.network);
|
|
29
|
+
this.wbtc = new wBTC(parameters.network, parameters.chainId);
|
|
30
30
|
this.to = this.wbtc.getAddress();
|
|
31
31
|
this.vaultUTXOs = parameters.unwrapUTXOs;
|
|
32
32
|
this.amount = parameters.amount;
|
|
@@ -34,7 +34,7 @@ export class UnwrapTransaction extends SharedInteractionTransaction {
|
|
|
34
34
|
parameters.disableAutoRefund = true;
|
|
35
35
|
parameters.calldata = UnwrapTransaction.generateBurnCalldata(parameters.amount);
|
|
36
36
|
super(parameters);
|
|
37
|
-
this.wbtc = new wBTC(parameters.network);
|
|
37
|
+
this.wbtc = new wBTC(parameters.network, parameters.chainId);
|
|
38
38
|
this.to = this.wbtc.getAddress();
|
|
39
39
|
this.vaultUTXOs = parameters.unwrapUTXOs;
|
|
40
40
|
this.estimatedFeeLoss = UnwrapTransaction.preEstimateTaprootTransactionFees(BigInt(this.feeRate), this.calculateNumInputs(this.vaultUTXOs), 2n, this.calculateNumSignatures(this.vaultUTXOs), 65n, this.calculateNumEmptyWitnesses(this.vaultUTXOs));
|
|
@@ -29,7 +29,7 @@ export class WrapTransaction extends SharedInteractionTransaction {
|
|
|
29
29
|
TransactionBuilder.getFrom(parameters.from, parameters.signer, parameters.network);
|
|
30
30
|
parameters.calldata = WrapTransaction.generateMintCalldata(parameters.amount, receiver, parameters.network);
|
|
31
31
|
super(parameters);
|
|
32
|
-
this.wbtc = new wBTC(parameters.network);
|
|
32
|
+
this.wbtc = new wBTC(parameters.network, parameters.chainId);
|
|
33
33
|
this.vault = parameters.generationParameters.vault;
|
|
34
34
|
this.to = this.wbtc.getAddress();
|
|
35
35
|
this.receiver = receiver;
|
package/package.json
CHANGED
package/src/_version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '1.0.
|
|
1
|
+
export const version = '1.0.80';
|