Documentation ¶
Index ¶
- func MapToJson(param map[string]interface{}) string
- type EthereumAdapter
- func (a *EthereumAdapter) DecodeTransactionInputData(contractABI *abi.ABI, data []byte) (string, map[string]any, error)
- func (a *EthereumAdapter) GetBalance(wallet string, contract string, blockNumber uint64) (*big.Int, error)
- func (a *EthereumAdapter) GetInfo() (umid umid.UMID, name string, rpcURL string)
- func (a *EthereumAdapter) GetLastBlockNumber() (uint64, error)
- func (a *EthereumAdapter) GetLogs(fromBlock, toBlock int64, addresses []common.Address) ([]*contracter.BCDiff, []*contracter.BCStake, error)
- func (a *EthereumAdapter) GetTransactionMessage(tx *types.Transaction) *core.Message
- func (a *EthereumAdapter) RegisterNewBlockListener(f contracter.AdapterListener)
- func (a *EthereumAdapter) Run()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type EthereumAdapter ¶
type EthereumAdapter struct {
// contains filtered or unexported fields
}
func NewEthereumAdapter ¶
func NewEthereumAdapter() *EthereumAdapter
func (*EthereumAdapter) DecodeTransactionInputData ¶
func (a *EthereumAdapter) DecodeTransactionInputData(contractABI *abi.ABI, data []byte) (string, map[string]any, error)
refer https://github.com/ethereum/web3.py/blob/master/web3/contract.py#L435
func (*EthereumAdapter) GetBalance ¶
func (*EthereumAdapter) GetInfo ¶
func (a *EthereumAdapter) GetInfo() (umid umid.UMID, name string, rpcURL string)
func (*EthereumAdapter) GetLastBlockNumber ¶
func (a *EthereumAdapter) GetLastBlockNumber() (uint64, error)
func (*EthereumAdapter) GetLogs ¶
func (a *EthereumAdapter) GetLogs(fromBlock, toBlock int64, addresses []common.Address) ([]*contracter.BCDiff, []*contracter.BCStake, error)
func (*EthereumAdapter) GetTransactionMessage ¶
func (a *EthereumAdapter) GetTransactionMessage(tx *types.Transaction) *core.Message
func (*EthereumAdapter) RegisterNewBlockListener ¶
func (a *EthereumAdapter) RegisterNewBlockListener(f contracter.AdapterListener)
func (*EthereumAdapter) Run ¶
func (a *EthereumAdapter) Run()
Click to show internal directories.
Click to hide internal directories.