@btc-vision/transaction 1.0.78 → 1.0.79

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.
@@ -4,12 +4,14 @@ import { Address } from '@btc-vision/bsi-binary';
4
4
  import { WrappedGeneration } from '../../wbtc/WrappedGenerationParameters.js';
5
5
  import { ITweakedTransactionData } from '../shared/TweakedTransaction.js';
6
6
  import { VaultUTXOs } from '../processor/PsbtTransaction.js';
7
+ import { ChainId } from '../../network/ChainId.js';
7
8
  export interface ITransactionParameters extends ITweakedTransactionData {
8
9
  readonly from?: Address;
9
10
  readonly to?: Address | undefined;
10
11
  utxos: UTXO[];
11
12
  nonWitnessUtxo?: Buffer | undefined;
12
13
  estimatedFees?: bigint;
14
+ chainId?: ChainId;
13
15
  readonly feeRate: number;
14
16
  readonly priorityFee: bigint;
15
17
  }
@@ -26,7 +28,7 @@ export interface IInteractionParameters extends SharedInteractionParameters {
26
28
  readonly to: Address;
27
29
  }
28
30
  export interface IWrapParameters extends SharedInteractionParameters {
29
- readonly to?: undefined | Address;
31
+ readonly to?: Address;
30
32
  readonly from: Address;
31
33
  readonly amount: bigint;
32
34
  readonly receiver?: Address;
@@ -1 +1 @@
1
- export declare const version = "1.0.78";
1
+ export declare const version = "1.0.79";
package/build/_version.js CHANGED
@@ -1 +1 @@
1
- export const version = '1.0.78';
1
+ export const version = '1.0.79';
@@ -4,12 +4,14 @@ import { Address } from '@btc-vision/bsi-binary';
4
4
  import { WrappedGeneration } from '../../wbtc/WrappedGenerationParameters.js';
5
5
  import { ITweakedTransactionData } from '../shared/TweakedTransaction.js';
6
6
  import { VaultUTXOs } from '../processor/PsbtTransaction.js';
7
+ import { ChainId } from '../../network/ChainId.js';
7
8
  export interface ITransactionParameters extends ITweakedTransactionData {
8
9
  readonly from?: Address;
9
10
  readonly to?: Address | undefined;
10
11
  utxos: UTXO[];
11
12
  nonWitnessUtxo?: Buffer | undefined;
12
13
  estimatedFees?: bigint;
14
+ chainId?: ChainId;
13
15
  readonly feeRate: number;
14
16
  readonly priorityFee: bigint;
15
17
  }
@@ -26,7 +28,7 @@ export interface IInteractionParameters extends SharedInteractionParameters {
26
28
  readonly to: Address;
27
29
  }
28
30
  export interface IWrapParameters extends SharedInteractionParameters {
29
- readonly to?: undefined | Address;
31
+ readonly to?: Address;
30
32
  readonly from: Address;
31
33
  readonly amount: bigint;
32
34
  readonly receiver?: Address;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "type": "module",
3
- "version": "1.0.78",
3
+ "version": "1.0.79",
4
4
  "author": "BlobMaster41",
5
5
  "description": "OPNet transaction library allows you to create and sign transactions for the OPNet network.",
6
6
  "engines": {
package/src/_version.ts CHANGED
@@ -1 +1 @@
1
- export const version = '1.0.78';
1
+ export const version = '1.0.79';
@@ -3,6 +3,7 @@ import { Address } from '@btc-vision/bsi-binary';
3
3
  import { WrappedGeneration } from '../../wbtc/WrappedGenerationParameters.js';
4
4
  import { ITweakedTransactionData } from '../shared/TweakedTransaction.js';
5
5
  import { VaultUTXOs } from '../processor/PsbtTransaction.js';
6
+ import { ChainId } from '../../network/ChainId.js';
6
7
 
7
8
  export interface ITransactionParameters extends ITweakedTransactionData {
8
9
  readonly from?: Address;
@@ -12,6 +13,8 @@ export interface ITransactionParameters extends ITweakedTransactionData {
12
13
  nonWitnessUtxo?: Buffer | undefined;
13
14
  estimatedFees?: bigint;
14
15
 
16
+ chainId?: ChainId;
17
+
15
18
  readonly feeRate: number;
16
19
  readonly priorityFee: bigint;
17
20
  }
@@ -34,7 +37,7 @@ export interface IInteractionParameters extends SharedInteractionParameters {
34
37
  }
35
38
 
36
39
  export interface IWrapParameters extends SharedInteractionParameters {
37
- readonly to?: undefined | Address;
40
+ readonly to?: Address;
38
41
 
39
42
  readonly from: Address;
40
43
  readonly amount: bigint;