contract

package
v0.0.0-...-11d2657 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2023 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StateReceiver

func StateReceiver() abi.ABI

func ValidatorSet

func ValidatorSet() abi.ABI

Types

type GenesisContractsClient

type GenesisContractsClient struct {
	ValidatorContract     string
	StateReceiverContract string
	// contains filtered or unexported fields
}

func NewGenesisContractsClient

func NewGenesisContractsClient(
	chainConfig *params.ChainConfig,
	validatorContract,
	stateReceiverContract string,
	ethAPI api.Caller,
) *GenesisContractsClient

func (*GenesisContractsClient) CommitState

func (gc *GenesisContractsClient) CommitState(
	event *clerk.EventRecordWithTime,
	state *state.StateDB,
	header *types.Header,
	chCtx statefull.ChainContext,
) (uint64, error)

func (*GenesisContractsClient) LastStateId

func (gc *GenesisContractsClient) LastStateId(state *state.StateDB, number uint64, hash common.Hash) (*big.Int, error)

Jump to

Keyboard shortcuts

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