1 | import { Hash256 } from './types/hash-256';
|
2 | import { JsonObject } from './types/serialized-type';
|
3 | import { XrplDefinitionsBase } from './enums';
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 | declare function transactionTreeHash(param: Array<JsonObject>): Hash256;
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 | declare function accountStateHash(param: Array<JsonObject>): Hash256;
|
18 |
|
19 |
|
20 |
|
21 | interface ledgerObject {
|
22 | ledger_index: number;
|
23 | total_coins: string | number | bigint;
|
24 | parent_hash: string;
|
25 | transaction_hash: string;
|
26 | account_hash: string;
|
27 | parent_close_time: number;
|
28 | close_time: number;
|
29 | close_time_resolution: number;
|
30 | close_flags: number;
|
31 | }
|
32 |
|
33 |
|
34 |
|
35 |
|
36 |
|
37 |
|
38 | declare function ledgerHash(header: ledgerObject): Hash256;
|
39 |
|
40 |
|
41 |
|
42 |
|
43 |
|
44 |
|
45 |
|
46 |
|
47 | declare function decodeLedgerData(binary: string, definitions?: XrplDefinitionsBase): object;
|
48 | export { accountStateHash, transactionTreeHash, ledgerHash, decodeLedgerData };
|