@btc-vision/transaction 1.0.71 → 1.0.72

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.
@@ -5,6 +5,17 @@ export declare enum UnisatNetwork {
5
5
  mainnet = "livenet",
6
6
  regtest = "regtest"
7
7
  }
8
+ export declare enum UnisatChainType {
9
+ BITCOIN_MAINNET = "BITCOIN_MAINNET",
10
+ BITCOIN_TESTNET = "BITCOIN_TESTNET",
11
+ FRACTAL_BITCOIN_MAINNET = "FRACTAL_BITCOIN_MAINNET",
12
+ BITCOIN_REGTEST = "BITCOIN_REGTEST"
13
+ }
14
+ export interface UnisatChainInfo {
15
+ readonly enum: UnisatChainType;
16
+ readonly name: string;
17
+ readonly network: UnisatNetwork;
18
+ }
8
19
  export interface Balance {
9
20
  readonly confirmed: number;
10
21
  readonly unconfirmed: number;
@@ -52,6 +63,7 @@ export interface Unisat {
52
63
  pushPsbt(psbtHex: string): Promise<string>;
53
64
  on(event: 'accountsChanged', listener: (accounts: string[]) => void): void;
54
65
  on(event: 'networkChanged', listener: (network: UnisatNetwork) => void): void;
66
+ on(event: 'chainChanged', listener: (network: UnisatNetwork) => void): void;
55
67
  removeListener(event: 'accountsChanged', listener: (accounts: string[]) => void): void;
56
68
  removeListener(event: 'networkChanged', listener: (network: UnisatNetwork) => void): void;
57
69
  }
@@ -1 +1 @@
1
- export declare const version = "1.0.71";
1
+ export declare const version = "1.0.72";
package/build/_version.js CHANGED
@@ -1 +1 @@
1
- export const version = '1.0.71';
1
+ export const version = '1.0.72';
@@ -5,6 +5,17 @@ export declare enum UnisatNetwork {
5
5
  mainnet = "livenet",
6
6
  regtest = "regtest"
7
7
  }
8
+ export declare enum UnisatChainType {
9
+ BITCOIN_MAINNET = "BITCOIN_MAINNET",
10
+ BITCOIN_TESTNET = "BITCOIN_TESTNET",
11
+ FRACTAL_BITCOIN_MAINNET = "FRACTAL_BITCOIN_MAINNET",
12
+ BITCOIN_REGTEST = "BITCOIN_REGTEST"
13
+ }
14
+ export interface UnisatChainInfo {
15
+ readonly enum: UnisatChainType;
16
+ readonly name: string;
17
+ readonly network: UnisatNetwork;
18
+ }
8
19
  export interface Balance {
9
20
  readonly confirmed: number;
10
21
  readonly unconfirmed: number;
@@ -52,6 +63,7 @@ export interface Unisat {
52
63
  pushPsbt(psbtHex: string): Promise<string>;
53
64
  on(event: 'accountsChanged', listener: (accounts: string[]) => void): void;
54
65
  on(event: 'networkChanged', listener: (network: UnisatNetwork) => void): void;
66
+ on(event: 'chainChanged', listener: (network: UnisatNetwork) => void): void;
55
67
  removeListener(event: 'accountsChanged', listener: (accounts: string[]) => void): void;
56
68
  removeListener(event: 'networkChanged', listener: (network: UnisatNetwork) => void): void;
57
69
  }
@@ -4,6 +4,13 @@ export var UnisatNetwork;
4
4
  UnisatNetwork["mainnet"] = "livenet";
5
5
  UnisatNetwork["regtest"] = "regtest";
6
6
  })(UnisatNetwork || (UnisatNetwork = {}));
7
+ export var UnisatChainType;
8
+ (function (UnisatChainType) {
9
+ UnisatChainType["BITCOIN_MAINNET"] = "BITCOIN_MAINNET";
10
+ UnisatChainType["BITCOIN_TESTNET"] = "BITCOIN_TESTNET";
11
+ UnisatChainType["FRACTAL_BITCOIN_MAINNET"] = "FRACTAL_BITCOIN_MAINNET";
12
+ UnisatChainType["BITCOIN_REGTEST"] = "BITCOIN_REGTEST";
13
+ })(UnisatChainType || (UnisatChainType = {}));
7
14
  export var MessageType;
8
15
  (function (MessageType) {
9
16
  MessageType["ecdsa"] = "ecdsa";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "type": "module",
3
- "version": "1.0.71",
3
+ "version": "1.0.72",
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.71';
1
+ export const version = '1.0.72';
@@ -7,6 +7,19 @@ export enum UnisatNetwork {
7
7
  regtest = 'regtest',
8
8
  }
9
9
 
10
+ export enum UnisatChainType {
11
+ BITCOIN_MAINNET = 'BITCOIN_MAINNET',
12
+ BITCOIN_TESTNET = 'BITCOIN_TESTNET',
13
+ FRACTAL_BITCOIN_MAINNET = 'FRACTAL_BITCOIN_MAINNET',
14
+ BITCOIN_REGTEST = 'BITCOIN_REGTEST'
15
+ }
16
+
17
+ export interface UnisatChainInfo {
18
+ readonly enum: UnisatChainType;
19
+ readonly name: string;
20
+ readonly network: UnisatNetwork;
21
+ }
22
+
10
23
  export interface Balance {
11
24
  readonly confirmed: number;
12
25
  readonly unconfirmed: number;
@@ -74,6 +87,8 @@ export interface Unisat {
74
87
 
75
88
  on(event: 'networkChanged', listener: (network: UnisatNetwork) => void): void;
76
89
 
90
+ on(event: 'chainChanged', listener: (network: UnisatNetwork) => void): void;
91
+
77
92
  removeListener(event: 'accountsChanged', listener: (accounts: string[]) => void): void;
78
93
 
79
94
  removeListener(event: 'networkChanged', listener: (network: UnisatNetwork) => void): void;