ethereum

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2022 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ChainName = "eth"
	Coin      = "eth"
)

Variables

View Source
var (
	Startblock = 0
	Endblock   = 999999999
)

Functions

func NewChainAdaptor

func NewChainAdaptor(conf *config.Config) (wallet.WalletAdaptor, error)

func NewEtherscanClient

func NewEtherscanClient(apiURL string, Key string) *etherscan.Client

func NewLocalWalletAdaptor

func NewLocalWalletAdaptor(network config.NetWorkType) wallet.WalletAdaptor

Types

type Client

type Client interface {
	bind.ContractBackend
	BalanceAt(context.Context, common.Address, *big.Int) (*big.Int, error)
	TransactionByHash(context.Context, common.Hash) (*types.Transaction, bool, error)
	BlockByNumber(context.Context, *big.Int) (*types.Block, error)
	TransactionReceipt(context.Context, common.Hash) (*types.Receipt, error)
	NonceAt(context.Context, common.Address, *big.Int) (uint64, error)
}

type WalletAdaptor

type WalletAdaptor struct {
	fallback.WalletAdaptor
	// contains filtered or unexported fields
}

func (*WalletAdaptor) ConvertAddress

func (*WalletAdaptor) CreateAccountSignedTx

func (*WalletAdaptor) CreateAccountTx

func (*WalletAdaptor) CreateUtxoSignedTx

func (*WalletAdaptor) CreateUtxoTx

func (*WalletAdaptor) GetAccount

func (*WalletAdaptor) GetAccountTxFromData

func (a *WalletAdaptor) GetAccountTxFromData(req *wallet2.TxFromDataRequest) (*wallet2.AccountTxResponse, error)

func (*WalletAdaptor) GetAccountTxFromSignedData

func (a *WalletAdaptor) GetAccountTxFromSignedData(req *wallet2.TxFromSignedDataRequest) (*wallet2.AccountTxResponse, error)

func (*WalletAdaptor) GetBalance

func (*WalletAdaptor) GetGasPrice

func (*WalletAdaptor) GetMinRent

func (*WalletAdaptor) GetNonce

func (*WalletAdaptor) GetSupportCoins

func (*WalletAdaptor) GetTxByAddress

func (*WalletAdaptor) GetTxByHash

func (wa *WalletAdaptor) GetTxByHash(req *wallet2.TxHashRequest) (*wallet2.TxHashResponse, error)

func (*WalletAdaptor) GetUtxo

func (*WalletAdaptor) GetUtxoInsFromData

func (a *WalletAdaptor) GetUtxoInsFromData(req *wallet2.UtxoInsFromDataRequest) (*wallet2.UtxoInsResponse, error)

func (*WalletAdaptor) GetUtxoTxFromData

func (a *WalletAdaptor) GetUtxoTxFromData(req *wallet2.TxFromDataRequest) (*wallet2.UtxoTxResponse, error)

func (*WalletAdaptor) GetUtxoTxFromSignedData

func (a *WalletAdaptor) GetUtxoTxFromSignedData(req *wallet2.TxFromSignedDataRequest) (*wallet2.UtxoTxResponse, error)

func (*WalletAdaptor) SendTx

func (*WalletAdaptor) ValidAddress

func (*WalletAdaptor) VerifyAccountSignedTx

func (*WalletAdaptor) VerifyUtxoSignedTx

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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