forked from vechain/connex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
block.d.ts
34 lines (32 loc) · 836 Bytes
/
block.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
declare namespace Connex.Thor {
/** the block model */
type Block = {
id: string
number: number
size: number
parentID: string
timestamp: number
gasLimit: number
beneficiary: string
gasUsed: number
totalScore: number
txsRoot: string
txsFeatures?: number
stateRoot: string
receiptsRoot: string
signer: string
transactions: string[]
com?: boolean
isFinalized?: boolean
isTrunk: boolean
}
namespace Block {
/** the block visitor interface */
interface Visitor {
/** id or number of the block to be visited */
readonly revision: string | number
/** query the block */
get(): Promise<Block | null>
}
}
}