microservice_user_actions

package
v0.0.0-...-ec1c8bb Latest Latest
Warning

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

Go to latest
Published: May 5, 2024 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

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

func ClassifyEventSignature(content string) (int, error)

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

func DecodeTwoLog(addressPadded, amountPadded string) (string, *misc.BigInt, error)

DecodeTwoLog containing address and a uint from their padded versions

func HashEventSignature

func HashEventSignature(eventSignature string) string

HashEventSignature to find the hex representation of a event signature

Types

This section is empty.

Jump to

Keyboard shortcuts

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