Documentation ¶
Index ¶
- Constants
- func ClassifyEventSignature(content string) (int, error)
- func DecodeTransfer(network_ network.BlockchainNetwork, transactionHash ethereum.Hash, ...) (*user_actions.UserAction, error)
- func DecodeTwoLog(addressPadded, amountPadded string) (string, *misc.BigInt, error)
- func HashEventSignature(eventSignature string) string
Constants ¶
View Source
const ( // FilterEventTransferSignature to use to filter for transfer signatures FilterEventTransferSignature = `Transfer(address,address,uint256)` // FilterEventMintFluidSignature to use to filter for MintFluid events FilterEventMintFluidSignature = `MintFluid(address,uint256)` // FilterEventBurnFluidSignature to use to filter for BurnFluid events FilterEventBurnFluidSignature = `BurnFluid(address,uint256)` )
View Source
const ( // EventTransfer generated by FilterEventTransferSignature EventTransfer = iota // EventMintFluid generated by FilterEventMintFluidSignature EventMintFluid // EventBurnFluid generated by FilterEventBurnFluidSignature EventBurnFluid )
View Source
const Context = "MICROSERVICE_USER_ACTIONS"
Context used in logging the signature for the desired events
Variables ¶
This section is empty.
Functions ¶
func ClassifyEventSignature ¶
ClassifyEventSignature based on the topic hash, returning Event something and error if it wasn't possible to identify the signature
func DecodeTransfer ¶
func DecodeTransfer(network_ network.BlockchainNetwork, transactionHash ethereum.Hash, logAddress ethereum.Address, fromAddressPadded, toAddressPadded string, data []byte, when time.Time, tokenShortName string, tokenDecimals int, logIndex misc.BigInt, applicationContracts map[ethereum.Address]applications.Application) (*user_actions.UserAction, error)
DecodeTransfer, making a new UserAction that contains a transfer
func DecodeTwoLog ¶
DecodeTwoLog containing address and a uint from their padded versions
func HashEventSignature ¶
HashEventSignature to find the hex representation of a event signature
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.