ethereum

package
v0.0.78 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Block

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

func NewBlockProcessor added in v0.0.43

func NewBlockProcessor(tx actions.Transaction) *Block

func (*Block) Run

func (b *Block) Run(ctx context.Context, protocol, network string, blk interface{}) error

type BlockClient added in v0.0.52

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

func NewRPC

func NewRPC(address string) (*BlockClient, error)

func (*BlockClient) BlockByNumber added in v0.0.52

func (c *BlockClient) BlockByNumber(ctx context.Context, blockNo uint64) (blk interface{}, err error)

func (*BlockClient) GetLatest added in v0.0.52

func (c *BlockClient) GetLatest(ctx context.Context) (blk interface{}, err error)

func (*BlockClient) LatestBlockNumber added in v0.0.52

func (c *BlockClient) LatestBlockNumber(ctx context.Context) (blockNo uint64, err error)

func (*BlockClient) NetworkID added in v0.0.52

func (c *BlockClient) NetworkID(ctx context.Context) (*big.Int, error)

type Transaction

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

func NewTransactionProcessor added in v0.0.43

func NewTransactionProcessor(store datastore.TransactionStore, rawStore datastore.RawTransactionStore, pkStore datastore.PublicKeyStore, chainConfig *params.ChainConfig) *Transaction

func (*Transaction) From added in v0.0.43

func (t *Transaction) From(blockNo *big.Int, tx *types.Transaction) ([]byte, error)

func (*Transaction) Run

func (t *Transaction) Run(ctx context.Context, protocol, network string, tx interface{}, txOpts actions.TransactionOptions) error

func (*Transaction) ToTransaction added in v0.0.43

func (t *Transaction) ToTransaction(blk *types.Block, tx *types.Transaction) (*datastore.Transaction, error)

type TxOptions added in v0.0.43

type TxOptions struct {
	Block *types.Block
}

Jump to

Keyboard shortcuts

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