common

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Common

type Common struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func New

func New(logger logging.Logger, signer crypto.Signer, chainId *big.Int, chainEndpoint string) (*Common, error)

func (*Common) All

func (c *Common) All(ctx context.Context, req *chain.AllRequest) (*chain.AllResponse, error)

func (*Common) GetTransaction

func (c *Common) GetTransaction() *chain.TxInfo

func (*Common) IsTransaction

func (c *Common) IsTransaction() bool

func (*Common) SyncTransaction

func (c *Common) SyncTransaction(t chain.TransactionType, value, txHash string)

func (*Common) UpdateStatus

func (c *Common) UpdateStatus(status bool)

type TxCommonRequest

type TxCommonRequest struct {
	From     string `json:"from"`
	Nonce    string `json:"nonce"`
	To       string `json:"to"`       // recipient of the transaction
	Data     string `json:"data"`     // transaction data
	GasPrice string `json:"gasPrice"` // gas price or nil if suggested gas price should be used
	GasLimit string `json:"gasLimit"` // gas limit or 0 if it should be estimated
	Value    string `json:"value"`    // amount of wei to send
}

Jump to

Keyboard shortcuts

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