Properties
Private
_assetRoot
_assetRoot: Buffer
Methods
Private
_calculateRoot
- _calculateRoot(): Promise<Buffer>
-
Returns Promise<Buffer>
getAsset
- getAsset(module: string): undefined | Buffer
-
Returns undefined | Buffer
getBytes
- getBytes(): Buffer[]
-
Returns Buffer[]
getRoot
- getRoot(): Promise<Buffer>
-
Returns Promise<Buffer>
setAsset
- setAsset(module: string, value: Buffer): void
-
Parameters
-
module: string
-
value: Buffer
Returns void
sort
- sort(): void
-
Returns void
toJSON
- toJSON(): {
data: string;
module: string;
}[]
-
Returns {
data: string;
module: string;
}[]
validate
- validate(): void
-
Returns void
validateGenesis
- validateGenesis(): void
-
Returns void
Static
fromBytes
- fromBytes(values: readonly Buffer[]): BlockAssets
-
Parameters
-
values: readonly Buffer[]
Static
fromJSON
- fromJSON(values: Record<string, unknown>[]): BlockAssets
-
Parameters
-
values: Record<string, unknown>[]