Documentation ¶
Index ¶
- func DecodeTransactionInputData(contractABI *abi.ABI, data []byte) (method *abi.Method, inputsMap map[string]interface{}, err error)
- func GetContractABI(contractAddress, apiKey string, chain Chain) (*abi.ABI, error)
- func GetContractABIFromFile(fileName string) (*abi.ABI, error)
- func GetContractProxyABI(contractAddress, apiKey string, chain Chain) (*abi.ABI, error)
- func GetEthClient(log *logrus.Entry, chain Chain) (client *ethclient.Client, err error)
- func GetPriceInEth(id string) (ethPrice float64, err error)
- func GetTokenName(contract string) string
- func GetTransactionLog(receipt *types.Receipt, contractABI *abi.ABI, name string) (eventMap map[string]interface{}, err error)
- func GetTxSenderHash(tx *types.Transaction) (txSenderHash string, err error)
- func WeiToEther(wei *big.Int) float64
- type Chain
- type Protocol
- type RawABIResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeTransactionInputData ¶ added in v0.2.173
func GetContractABI ¶ added in v0.2.173
func GetContractABIFromFile ¶ added in v0.2.218
func GetContractProxyABI ¶ added in v0.2.252
func GetEthClient ¶
func GetPriceInEth ¶ added in v0.2.228
func GetTokenName ¶ added in v0.2.228
func GetTransactionLog ¶ added in v0.2.228
func GetTxSenderHash ¶ added in v0.2.173
func GetTxSenderHash(tx *types.Transaction) (txSenderHash string, err error)
func WeiToEther ¶ added in v0.2.173
Types ¶
type RawABIResponse ¶ added in v0.2.173
type RawABIResponse struct { Status *string `json:"status"` Message *string `json:"message"` Result *string `json:"result"` }
func GetContractRawABI ¶ added in v0.2.173
func GetContractRawABI(address string, apiKey string, chain Chain) (rawABIResponse *RawABIResponse, err error)
Click to show internal directories.
Click to hide internal directories.