writer

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: GPL-3.0, GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SolveSendTranstion1 = "type1" // value ==nil
	SolveSendTranstion2 = "type2" // value !=nil
	SolveQueryResult3   = "type3" // handle Atomic
	SolveQueryResult4   = "type4" // handle Tuple
)
View Source
const DefaultGasLimit = 4500000

Variables

This section is empty.

Functions

func GetResult

func GetResult(conn *ethclient.Client, txHash common.Hash, contract bool)

func SendContractTransaction

func SendContractTransaction(client *ethclient.Client, from, toAddress common.Address, value *big.Int, privateKey *ecdsa.PrivateKey, input []byte, gasLimitSetting uint64) (common.Hash, error)

Types

type Message

type Message struct {
	DoneCh chan<- struct{}
	// contains filtered or unexported fields
}

func NewMessage

func NewMessage(messageType string, ch chan<- struct{}, cfg *define.Config, to common.Address, value *big.Int, abi *abi.ABI, abiMethod string, params ...interface{}) Message

func NewMessageRet1

func NewMessageRet1(messageType string, ch chan<- struct{}, cfg *define.Config, ret interface{}, to common.Address, value *big.Int, abi *abi.ABI, abiMethod string, params ...interface{}) Message

NewMessageRet1 need to handle return params

func NewMessageRet2

func NewMessageRet2(messageType string, ch chan<- struct{}, cfg *define.Config, solveResult func([]byte), to common.Address, value *big.Int, abi *abi.ABI, abiMethod string, params ...interface{}) Message

NewMessageRet2 need to handle return params

type Writer

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

func New

func New(conn *ethclient.Client) *Writer

func (*Writer) ResolveMessage

func (w *Writer) ResolveMessage(m Message) bool

Jump to

Keyboard shortcuts

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