simpletrigger

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2023 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultConfirmDepth = 12

Functions

This section is empty.

Types

type BlockChain

type BlockChain interface {
	core.ChainContext
	GetBlockNumber(hash common.Hash) *uint64
	GetHeaderByHash(hash common.Hash) *types.Header
	CurrentBlock() *types.Block
	StateAt(root common.Hash) (*state.StateDB, error)
}

type GasPriceOracle

type GasPriceOracle interface {
	SuggestPrice(ctx context.Context) (*big.Int, error)
}

type ProtocolManager

type ProtocolManager interface {
	NetworkId() uint64
	GetNonce(address common.Address) uint64
	AddLocals([]*types.Transaction)
	Pending() (map[common.Address]types.Transactions, error)
	CanAcceptTxs() bool
}

type SimpleChain

type SimpleChain interface {
	BlockChain() *core.BlockChain
	ChainConfig() *params.ChainConfig
	GasOracle() *gasprice.Oracle
	ProtocolManager() ProtocolManager
	AccountManager() *accounts.Manager
	RegisterAPIs([]rpc.API)
	GetEVM(ctx context.Context, msg core.Message, state *state.StateDB, header *types.Header, vmCfg vm.Config) (*vm.EVM, func() error, error)
	StateAndHeaderByNumber(ctx context.Context, blockNr rpc.BlockNumber) (*state.StateDB, *types.Header, error)
}

type SimpleProtocolChain

type SimpleProtocolChain struct {
	SimpleChain
}

func NewSimpleProtocolChain

func NewSimpleProtocolChain(sc SimpleChain) *SimpleProtocolChain

func (*SimpleProtocolChain) ChainID

func (sc *SimpleProtocolChain) ChainID() *big.Int

func (*SimpleProtocolChain) GenesisHash

func (sc *SimpleProtocolChain) GenesisHash() common.Hash

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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