besu

package
v0.0.0-...-471bb1c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 21, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Alloc

type Alloc struct {
	Balance string   `json:"balance"`
	Code    string   `json:"code,omitempty"`
	Storage *Storage `json:"storage,omitempty"`
}

type BesuProvider

type BesuProvider struct {
	// contains filtered or unexported fields
}

func NewBesuProvider

func NewBesuProvider(ctx context.Context, stack *types.Stack) *BesuProvider

func (*BesuProvider) CreateAccount

func (p *BesuProvider) CreateAccount(args []string) (interface{}, error)

func (*BesuProvider) DeployContract

func (p *BesuProvider) DeployContract(filename, contractName, instanceName string, member *types.Organization, extraArgs []string) (*types.ContractDeploymentResult, error)

func (*BesuProvider) DeployFireFlyContract

func (p *BesuProvider) DeployFireFlyContract() (*types.ContractDeploymentResult, error)

func (*BesuProvider) FirstTimeSetup

func (p *BesuProvider) FirstTimeSetup() error

func (*BesuProvider) GetBlockchainPluginConfig

func (p *BesuProvider) GetBlockchainPluginConfig(stack *types.Stack, m *types.Organization) (blockchainConfig *types.BlockchainConfig)

func (*BesuProvider) GetConnectorExternalURL

func (p *BesuProvider) GetConnectorExternalURL(org *types.Organization) string

func (*BesuProvider) GetConnectorName

func (p *BesuProvider) GetConnectorName() string

func (*BesuProvider) GetConnectorURL

func (p *BesuProvider) GetConnectorURL(org *types.Organization) string

func (*BesuProvider) GetContracts

func (p *BesuProvider) GetContracts(filename string, extraArgs []string) ([]string, error)

func (*BesuProvider) GetDockerServiceDefinitions

func (p *BesuProvider) GetDockerServiceDefinitions() []*docker.ServiceDefinition

func (*BesuProvider) GetOrgConfig

func (p *BesuProvider) GetOrgConfig(stack *types.Stack, m *types.Organization) (orgConfig *types.OrgConfig)

func (*BesuProvider) ParseAccount

func (p *BesuProvider) ParseAccount(account interface{}) interface{}

func (*BesuProvider) PostStart

func (p *BesuProvider) PostStart(firstTimeSetup bool) error

func (*BesuProvider) PreStart

func (p *BesuProvider) PreStart() error

func (*BesuProvider) Reset

func (p *BesuProvider) Reset() error

func (*BesuProvider) WriteConfig

func (p *BesuProvider) WriteConfig(options *types.InitOptions) error

type CliqueConfig

type CliqueConfig struct {
	EpochLength        int `json:"epochlength"`
	Blockperiodseconds int `json:"blockperiodseconds"`
}

type Genesis

type Genesis struct {
	Config     *GenesisConfig    `json:"config"`
	Nonce      string            `json:"nonce"`
	Timestamp  string            `json:"timestamp"`
	ExtraData  string            `json:"extraData"`
	GasLimit   string            `json:"gasLimit"`
	Difficulty string            `json:"difficulty"`
	MixHash    string            `json:"mixHash"`
	Coinbase   string            `json:"coinbase"`
	Alloc      map[string]*Alloc `json:"alloc"`
	Number     string            `json:"number"`
	GasUsed    string            `json:"gasUsed"`
	ParentHash string            `json:"parentHash"`
}

func CreateGenesis

func CreateGenesis(addresses []string, blockPeriod int, chainID int64) *Genesis

func (*Genesis) WriteGenesisJson

func (g *Genesis) WriteGenesisJson(filename string) error

type GenesisConfig

type GenesisConfig struct {
	ChainId                int64         `json:"chainId"`
	ConstantinopleFixBlock int           `json:"constantinoplefixblock"`
	Clique                 *CliqueConfig `json:"clique"`
}

type Storage

type Storage struct {
	Field1 string `json:"0x0000000000000000000000000000000000000000000000000000000000000000"`
	Field2 string `json:"0x0000000000000000000000000000000000000000000000000000000000000001"`
	Field3 string `json:"0x0000000000000000000000000000000000000000000000000000000000000004"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL