Documentation ¶
Index ¶
- Constants
- Variables
- func NewChainAdaptor(conf *config.Config) (wallet.WalletAdaptor, error)
- func NewEtherscanClient(apiURL string, Key string) *etherscan.Client
- func NewLocalWalletAdaptor(network config.NetWorkType) wallet.WalletAdaptor
- type Client
- type WalletAdaptor
- func (a *WalletAdaptor) ConvertAddress(req *wallet2.ConvertAddressRequest) (*wallet2.ConvertAddressResponse, error)
- func (a *WalletAdaptor) CreateAccountSignedTx(req *wallet2.CreateAccountSignedTxRequest) (*wallet2.CreateSignedTxResponse, error)
- func (a *WalletAdaptor) CreateAccountTx(req *wallet2.CreateAccountTxRequest) (*wallet2.CreateAccountTxResponse, error)
- func (a *WalletAdaptor) CreateUtxoSignedTx(req *wallet2.CreateUtxoSignedTxRequest) (*wallet2.CreateSignedTxResponse, error)
- func (a *WalletAdaptor) CreateUtxoTx(req *wallet2.CreateUtxoTxRequest) (*wallet2.CreateUtxoTxResponse, error)
- func (wa *WalletAdaptor) GetAccount(req *wallet2.AccountRequest) (*wallet2.AccountResponse, error)
- func (a *WalletAdaptor) GetAccountTxFromData(req *wallet2.TxFromDataRequest) (*wallet2.AccountTxResponse, error)
- func (a *WalletAdaptor) GetAccountTxFromSignedData(req *wallet2.TxFromSignedDataRequest) (*wallet2.AccountTxResponse, error)
- func (wa *WalletAdaptor) GetBalance(req *wallet2.BalanceRequest) (*wallet2.BalanceResponse, error)
- func (wa *WalletAdaptor) GetGasPrice(req *wallet2.GasPriceRequest) (*wallet2.GasPriceResponse, error)
- func (wa *WalletAdaptor) GetMinRent(req *wallet2.MinRentRequest) (*wallet2.MinRentResponse, error)
- func (wa *WalletAdaptor) GetNonce(req *wallet2.NonceRequest) (*wallet2.NonceResponse, error)
- func (wa *WalletAdaptor) GetSupportCoins(req *wallet2.SupportCoinsRequest) (*wallet2.SupportCoinsResponse, error)
- func (wa *WalletAdaptor) GetTxByAddress(req *wallet2.TxAddressRequest) (*wallet2.TxAddressResponse, error)
- func (wa *WalletAdaptor) GetTxByHash(req *wallet2.TxHashRequest) (*wallet2.TxHashResponse, error)
- func (wa *WalletAdaptor) GetUtxo(req *wallet2.UtxoRequest) (*wallet2.UtxoResponse, error)
- func (a *WalletAdaptor) GetUtxoInsFromData(req *wallet2.UtxoInsFromDataRequest) (*wallet2.UtxoInsResponse, error)
- func (a *WalletAdaptor) GetUtxoTxFromData(req *wallet2.TxFromDataRequest) (*wallet2.UtxoTxResponse, error)
- func (a *WalletAdaptor) GetUtxoTxFromSignedData(req *wallet2.TxFromSignedDataRequest) (*wallet2.UtxoTxResponse, error)
- func (wa *WalletAdaptor) SendTx(req *wallet2.SendTxRequest) (*wallet2.SendTxResponse, error)
- func (a *WalletAdaptor) ValidAddress(req *wallet2.ValidAddressRequest) (*wallet2.ValidAddressResponse, error)
- func (a *WalletAdaptor) VerifyAccountSignedTx(req *wallet2.VerifySignedTxRequest) (*wallet2.VerifySignedTxResponse, error)
- func (a *WalletAdaptor) VerifyUtxoSignedTx(req *wallet2.VerifySignedTxRequest) (*wallet2.VerifySignedTxResponse, error)
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 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 (a *WalletAdaptor) ConvertAddress(req *wallet2.ConvertAddressRequest) (*wallet2.ConvertAddressResponse, error)
func (*WalletAdaptor) CreateAccountSignedTx ¶
func (a *WalletAdaptor) CreateAccountSignedTx(req *wallet2.CreateAccountSignedTxRequest) (*wallet2.CreateSignedTxResponse, error)
func (*WalletAdaptor) CreateAccountTx ¶
func (a *WalletAdaptor) CreateAccountTx(req *wallet2.CreateAccountTxRequest) (*wallet2.CreateAccountTxResponse, error)
func (*WalletAdaptor) CreateUtxoSignedTx ¶
func (a *WalletAdaptor) CreateUtxoSignedTx(req *wallet2.CreateUtxoSignedTxRequest) (*wallet2.CreateSignedTxResponse, error)
func (*WalletAdaptor) CreateUtxoTx ¶
func (a *WalletAdaptor) CreateUtxoTx(req *wallet2.CreateUtxoTxRequest) (*wallet2.CreateUtxoTxResponse, error)
func (*WalletAdaptor) GetAccount ¶
func (wa *WalletAdaptor) GetAccount(req *wallet2.AccountRequest) (*wallet2.AccountResponse, error)
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 (wa *WalletAdaptor) GetBalance(req *wallet2.BalanceRequest) (*wallet2.BalanceResponse, error)
func (*WalletAdaptor) GetGasPrice ¶
func (wa *WalletAdaptor) GetGasPrice(req *wallet2.GasPriceRequest) (*wallet2.GasPriceResponse, error)
func (*WalletAdaptor) GetMinRent ¶
func (wa *WalletAdaptor) GetMinRent(req *wallet2.MinRentRequest) (*wallet2.MinRentResponse, error)
func (*WalletAdaptor) GetNonce ¶
func (wa *WalletAdaptor) GetNonce(req *wallet2.NonceRequest) (*wallet2.NonceResponse, error)
func (*WalletAdaptor) GetSupportCoins ¶
func (wa *WalletAdaptor) GetSupportCoins(req *wallet2.SupportCoinsRequest) (*wallet2.SupportCoinsResponse, error)
func (*WalletAdaptor) GetTxByAddress ¶
func (wa *WalletAdaptor) GetTxByAddress(req *wallet2.TxAddressRequest) (*wallet2.TxAddressResponse, error)
func (*WalletAdaptor) GetTxByHash ¶
func (wa *WalletAdaptor) GetTxByHash(req *wallet2.TxHashRequest) (*wallet2.TxHashResponse, error)
func (*WalletAdaptor) GetUtxo ¶
func (wa *WalletAdaptor) GetUtxo(req *wallet2.UtxoRequest) (*wallet2.UtxoResponse, error)
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 (wa *WalletAdaptor) SendTx(req *wallet2.SendTxRequest) (*wallet2.SendTxResponse, error)
func (*WalletAdaptor) ValidAddress ¶
func (a *WalletAdaptor) ValidAddress(req *wallet2.ValidAddressRequest) (*wallet2.ValidAddressResponse, error)
func (*WalletAdaptor) VerifyAccountSignedTx ¶
func (a *WalletAdaptor) VerifyAccountSignedTx(req *wallet2.VerifySignedTxRequest) (*wallet2.VerifySignedTxResponse, error)
func (*WalletAdaptor) VerifyUtxoSignedTx ¶
func (a *WalletAdaptor) VerifyUtxoSignedTx(req *wallet2.VerifySignedTxRequest) (*wallet2.VerifySignedTxResponse, error)
Click to show internal directories.
Click to hide internal directories.