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