evm

package
v1.0.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultPartitionID types.PartitionID = 3
View Source
const TransactionTypeEVMCall uint16 = 1

Variables

This section is empty.

Functions

This section is empty.

Types

type CallEVMRequest

type CallEVMRequest struct {
	From  []byte
	To    []byte
	Data  []byte
	Value *big.Int
	Gas   uint64
	// contains filtered or unexported fields
}

type CallEVMResponse

type CallEVMResponse struct {
	ProcessingDetails *ProcessingDetails
	// contains filtered or unexported fields
}

type LogEntry

type LogEntry struct {
	Address common.Address
	Topics  []common.Hash
	Data    []byte
	// contains filtered or unexported fields
}

type ProcessingDetails

type ProcessingDetails struct {
	ErrorDetails string
	ReturnData   []byte
	ContractAddr common.Address
	Logs         []*LogEntry
	// contains filtered or unexported fields
}

func (*ProcessingDetails) Bytes

func (d *ProcessingDetails) Bytes() ([]byte, error)

type TxAttributes

type TxAttributes struct {
	From  []byte
	To    []byte
	Data  []byte
	Value *big.Int
	Gas   uint64
	Nonce uint64
	// contains filtered or unexported fields
}

func (*TxAttributes) AsMessage

func (t *TxAttributes) AsMessage(gasPrice *big.Int, fake bool) *core.Message

AsMessage returns the Alphabill transaction as a ethereum core.Message.

func (*TxAttributes) FromAddr

func (t *TxAttributes) FromAddr() common.Address

FromAddr - returns From as Address, if nil empty address is returned From is mandatory field and must not be nil in a valid TxAttributes

func (*TxAttributes) ToAddr

func (t *TxAttributes) ToAddr() *common.Address

ToAddr - returns To as Address pointer. To field is optional and not present on contract creation calls. If To is nil then nil pointer is returned

type TxAuthProof

type TxAuthProof struct {
	OwnerProof []byte
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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