Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrependGoPath ¶ added in v0.7.5
PrependGoPath prepends `path` to GOPATH environment variable accounting for possibly for default value. Returns new value. NOTE: that environment is not changed
Types ¶
type Config ¶ added in v0.7.5
type Config struct { RootKeysFile string `mapstructure:"root_keys_file"` NodeKeysDir string `mapstructure:"node_keys_dir"` DiscoveryKeysDir string `mapstructure:"discovery_keys_dir"` KeysNameFormat string `mapstructure:"keys_name_format"` ReuseKeys bool `mapstructure:"reuse_keys"` RootBalance uint `mapstructure:"root_balance"` MajorityRule int `mapstructure:"majority_rule"` MinRoles struct { Virtual uint `mapstructure:"virtual"` HeavyMaterial uint `mapstructure:"heavy_material"` LightMaterial uint `mapstructure:"light_material"` } `mapstructure:"min_roles"` PulsarPublicKeys []string `mapstructure:"pulsar_public_keys"` DiscoveryNodes []Node `mapstructure:"discovery_nodes"` Nodes []Node `mapstructure:"nodes"` }
Config contains all genesis config
func ParseGenesisConfig ¶ added in v0.7.5
ParseGenesisConfig parse genesis config
type ContractsBuilder ¶ added in v0.7.5
type ContractsBuilder struct { ArtifactManager core.ArtifactManager Prototypes map[string]*core.RecordRef Codes map[string]*core.RecordRef // contains filtered or unexported fields }
ContractsBuilder for tests
func NewContractBuilder ¶ added in v0.7.5
func NewContractBuilder(am core.ArtifactManager) *ContractsBuilder
NewContractBuilder returns a new `ContractsBuilder`, takes in: path to tmp directory, artifact manager, ...
func (*ContractsBuilder) Build ¶ added in v0.7.5
func (cb *ContractsBuilder) Build(ctx context.Context, contracts map[string]*preprocessor.ParsedFile, domain *core.RecordID) error
Build ...
func (*ContractsBuilder) Clean ¶ added in v0.7.5
func (cb *ContractsBuilder) Clean()
Clean deletes tmp directory used for contracts building
type Genesis ¶
type Genesis struct { ArtifactManager core.ArtifactManager `inject:""` MBLock messageBusLocker `inject:""` // contains filtered or unexported fields }
Genesis is a component for precreation core contracts types and RootDomain instance
func NewGenesis ¶
NewGenesis creates new Genesis
Click to show internal directories.
Click to hide internal directories.