Home Reference Source Test
public class | source

GenesisConfig

Static Member Summary

Static Public Members
public static get
public static get
public static get
public static get

NETWORK_ID: number

public static get

NETWORK_NAME: string

public static get
public static get

Static Method Summary

Static Public Methods
public static

dev()

public static

init(config: {NETWORK_ID: number, NETWORK_NAME: string, GENESIS_BLOCK: Block, GENESIS_ACCOUNTS: string, SEED_PEERS: Array<PeerAddress>})

public static

main()

public static

networkIdToNetworkName(networkId: number): string

public static

test()

Static Public Members

public static get GENESIS_ACCOUNTS: string source

public static get GENESIS_BLOCK: Block source

public static get GENESIS_HASH: Hash source

public static get NETWORK_ID: number source

public static get NETWORK_NAME: string source

public static get SEED_LISTS: Array<SeedList> source

public static get SEED_PEERS: Array<PeerAddress> source

Static Public Methods

public static dev() source

public static init(config: {NETWORK_ID: number, NETWORK_NAME: string, GENESIS_BLOCK: Block, GENESIS_ACCOUNTS: string, SEED_PEERS: Array<PeerAddress>}) source

Params:

NameTypeAttributeDescription
config {NETWORK_ID: number, NETWORK_NAME: string, GENESIS_BLOCK: Block, GENESIS_ACCOUNTS: string, SEED_PEERS: Array<PeerAddress>}

public static main() source

public static networkIdToNetworkName(networkId: number): string source

Params:

NameTypeAttributeDescription
networkId number

Return:

string

public static test() source