Skip to content

Create a RawGenesisBlockBuilder #1623

@appetrosyan

Description

@appetrosyan

Motivation

For testing it's better to set up assets/accounts/domains in the genesis block. We currently don't have a convenient interface to do that.

example

RawGenesisBlockBuilder::new()
    .with(Domain("wonderland"))
    .with(Account("alice@wonderland"))
    .with(Asset::BigQuantity("roses")
            .initially(100)
            .owned_by("alice@wonderland"))
    .finish()  

Metadata

Metadata

Assignees

Labels

EnhancementNew feature or requestgood first issueGood for newcomersiroha2-devThe re-implementation of a BFT hyperledger in RUST

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions