@btc-vision/transaction 1.0.71 → 1.0.73
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/browser/transaction/browser/types/Unisat.d.ts +12 -0
- package/build/_version.d.ts +1 -1
- package/build/_version.js +1 -1
- package/build/metadata/tokens.js +2 -2
- package/build/transaction/browser/types/Unisat.d.ts +12 -0
- package/build/transaction/browser/types/Unisat.js +7 -0
- package/package.json +1 -1
- package/src/_version.ts +1 -1
- package/src/metadata/tokens.ts +2 -2
- package/src/transaction/browser/types/Unisat.ts +15 -0
|
@@ -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
|
}
|
package/build/_version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "1.0.
|
|
1
|
+
export declare const version = "1.0.73";
|
package/build/_version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '1.0.
|
|
1
|
+
export const version = '1.0.73';
|
package/build/metadata/tokens.js
CHANGED
|
@@ -2,9 +2,9 @@ export const FACTORY_ADDRESS_REGTEST = 'bcrt1qgph2k9dahptnz2vu72ezd9r2p4phjm2pkg
|
|
|
2
2
|
export const POOL_ADDRESS_REGTEST = 'bcrt1q5nkjpjmh6xwweprcyeylwdw7aud4een7p9pphd';
|
|
3
3
|
export const WBTC_ADDRESS_REGTEST = 'bcrt1qdr7sjgtnudda8zrfklw8l5cnrxum5hns7e46hf';
|
|
4
4
|
export const MOTO_ADDRESS_REGTEST = 'bcrt1q8reuxx9naek4mqesrfsgdpjv3q7a5g2llkh6ua';
|
|
5
|
-
export const ROUTER_ADDRESS_REGTEST = '
|
|
5
|
+
export const ROUTER_ADDRESS_REGTEST = 'bcrt1qxzf93gucpz6qj5r9d2htzmp7e66hu7su5qmca3';
|
|
6
6
|
export const FACTORY_ADDRESS_TESTNET = 'tb1qgev5kldhp5zvg6j8t9vl6x4phkrwn8nk9felxh';
|
|
7
7
|
export const POOL_ADDRESS_TESTNET = 'tb1q6a7yw353hjmresphupytw5vczpqxtg4yrupayk';
|
|
8
8
|
export const WBTC_ADDRESS_TESTNET = 'tb1qp28xna6pv47x6wflcplhu0a9hkld5shtvjx6xv';
|
|
9
9
|
export const MOTO_ADDRESS_TESTNET = 'tb1q4tyhf8hpu04qjj3qaag20knun0spctultxzakw';
|
|
10
|
-
export const ROUTER_ADDRESS_TESTNET = '
|
|
10
|
+
export const ROUTER_ADDRESS_TESTNET = 'tb1qnh9mj95nnej25dwhjvvsppwmdm0myhxv7tllgt';
|
|
@@ -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
package/src/_version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '1.0.
|
|
1
|
+
export const version = '1.0.73';
|
package/src/metadata/tokens.ts
CHANGED
|
@@ -5,11 +5,11 @@ export const FACTORY_ADDRESS_REGTEST: Address = 'bcrt1qgph2k9dahptnz2vu72ezd9r2p
|
|
|
5
5
|
export const POOL_ADDRESS_REGTEST: Address = 'bcrt1q5nkjpjmh6xwweprcyeylwdw7aud4een7p9pphd';
|
|
6
6
|
export const WBTC_ADDRESS_REGTEST: Address = 'bcrt1qdr7sjgtnudda8zrfklw8l5cnrxum5hns7e46hf';
|
|
7
7
|
export const MOTO_ADDRESS_REGTEST: Address = 'bcrt1q8reuxx9naek4mqesrfsgdpjv3q7a5g2llkh6ua';
|
|
8
|
-
export const ROUTER_ADDRESS_REGTEST: Address = '
|
|
8
|
+
export const ROUTER_ADDRESS_REGTEST: Address = 'bcrt1qxzf93gucpz6qj5r9d2htzmp7e66hu7su5qmca3';
|
|
9
9
|
|
|
10
10
|
// Addresses Testnet
|
|
11
11
|
export const FACTORY_ADDRESS_TESTNET: Address = 'tb1qgev5kldhp5zvg6j8t9vl6x4phkrwn8nk9felxh';
|
|
12
12
|
export const POOL_ADDRESS_TESTNET: Address = 'tb1q6a7yw353hjmresphupytw5vczpqxtg4yrupayk';
|
|
13
13
|
export const WBTC_ADDRESS_TESTNET: Address = 'tb1qp28xna6pv47x6wflcplhu0a9hkld5shtvjx6xv';
|
|
14
14
|
export const MOTO_ADDRESS_TESTNET: Address = 'tb1q4tyhf8hpu04qjj3qaag20knun0spctultxzakw';
|
|
15
|
-
export const ROUTER_ADDRESS_TESTNET: Address = '
|
|
15
|
+
export const ROUTER_ADDRESS_TESTNET: Address = 'tb1qnh9mj95nnej25dwhjvvsppwmdm0myhxv7tllgt';
|
|
@@ -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;
|