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"` 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 []Discovery `mapstructure:"discovery_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 Discovery ¶ added in v0.7.5
type Discovery struct { Host string `mapstructure:"host"` Role string `mapstructure:"role"` KeysFile string `mapstructure:"keys_file"` CertName string `mapstructure:"cert_name"` }
Discovery contains info about discovery nodes
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.