@otoplo/wallet-common 0.4.3 → 0.4.5
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.js +141 -119
- package/dist/index.js.map +1 -1
- package/dist/types/services/asset.d.ts.map +1 -1
- package/dist/types/services/discovery.d.ts +6 -2
- package/dist/types/services/discovery.d.ts.map +1 -1
- package/dist/types/services/rostrum.d.ts +7 -2
- package/dist/types/services/rostrum.d.ts.map +1 -1
- package/dist/types/services/wallet.d.ts +4 -13
- package/dist/types/services/wallet.d.ts.map +1 -1
- package/dist/types/types/db.types.d.ts +1 -0
- package/dist/types/types/db.types.d.ts.map +1 -1
- package/dist/types/types/rostrum.types.d.ts +4 -17
- package/dist/types/types/rostrum.types.d.ts.map +1 -1
- package/dist/types/types/wallet.types.d.ts +1 -0
- package/dist/types/types/wallet.types.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/services/asset.ts +2 -1
- package/src/services/discovery.ts +30 -21
- package/src/services/rostrum.ts +43 -11
- package/src/services/wallet.ts +18 -35
- package/src/types/db.types.ts +1 -0
- package/src/types/rostrum.types.ts +4 -18
- package/src/types/wallet.types.ts +1 -0
|
@@ -10,6 +10,7 @@ export interface RostrumParams {
|
|
|
10
10
|
export interface ServerFeatures {
|
|
11
11
|
genesis_hash: string;
|
|
12
12
|
server_version: string;
|
|
13
|
+
script_index?: boolean;
|
|
13
14
|
}
|
|
14
15
|
|
|
15
16
|
export interface BlockTip {
|
|
@@ -24,30 +25,15 @@ export interface IFirstUse {
|
|
|
24
25
|
tx_hash: string;
|
|
25
26
|
}
|
|
26
27
|
|
|
27
|
-
export interface ITokenGenesis {
|
|
28
|
-
decimal_places?: number,
|
|
29
|
-
document_hash?: string;
|
|
30
|
-
document_url?: string;
|
|
31
|
-
group: string;
|
|
32
|
-
height: number;
|
|
33
|
-
name?: string;
|
|
34
|
-
op_return?: string;
|
|
35
|
-
ticker?: string;
|
|
36
|
-
token_id_hex: string;
|
|
37
|
-
txid: string;
|
|
38
|
-
txidem: string;
|
|
39
|
-
op_return_id: number;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
28
|
export interface ITokensBalance {
|
|
43
29
|
cursor?: any;
|
|
44
30
|
confirmed: Record<string, string | number>;
|
|
45
31
|
unconfirmed: Record<string, string | number>;
|
|
46
32
|
}
|
|
47
33
|
|
|
48
|
-
export interface
|
|
49
|
-
|
|
50
|
-
|
|
34
|
+
export interface ITemplateScript {
|
|
35
|
+
scriptpubkey: string;
|
|
36
|
+
scripthash: string;
|
|
51
37
|
}
|
|
52
38
|
|
|
53
39
|
export interface ITokenUtxo {
|