types

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: LGPL-3.0 Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	ERC20EventAbi   = `` /* 580-byte string literal not displayed */
	ERC721EventAbi  = `` /* 878-byte string literal not displayed */
	ERC1155EventAbi = `` /* 1194-byte string literal not displayed */
)
View Source
const (
	ERC20   = "ERC20"
	ERC721  = "ERC721"
	ERC1155 = "ERC1155"
	Unknown = "Unknown"
)
View Source
const (
	// ERC20 | ERC721 Events
	EventTransferSignature = "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef"
	EventApprovalSignature = "0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925"
	// ERC721 | ERC1155 Events
	EventApprovalForAllSignature = "0x17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31"
	// ERC1155 Events
	EventTransferSingleSignature = "0xc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62"
	EventTransferBatchSignature  = "0x4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb"
)
View Source
const CHAINTYPE_ETHEREUM = "ethereum"

Variables

This section is empty.

Functions

func GetAddressFromPubKey added in v0.0.2

func GetAddressFromPubKey(pubKey cryptotypes.PubKey) (string, error)

GetAddressFromPubKey returns the address of a public key

func GetERC20Sigs

func GetERC20Sigs() map[string]struct{}

func GetERC721EnumerableSigs

func GetERC721EnumerableSigs() map[string]struct{}

func GetERC721Sigs

func GetERC721Sigs() map[string]struct{}

func GetERC1155Sigs

func GetERC1155Sigs() map[string]struct{}

func PadBytes

func PadBytes(pad int, b []byte) []byte

func ValidateHexString

func ValidateHexString(s string) bool

Types

type BlockEventData

type BlockEventData struct {
	BlockNumber    *big.Int
	BlockHash      []byte
	NftTransferred []*OwnershipTransferEvent
}

type NotFoundError

type NotFoundError struct {
	// contains filtered or unexported fields
}

func NewNotFoundError

func NewNotFoundError(msg string) *NotFoundError

func (*NotFoundError) Error

func (e *NotFoundError) Error() string

type OwnershipTransferEvent

type OwnershipTransferEvent struct {
	TxId         string
	BlockNumber  uint64
	ContractAddr []byte
	To           []byte
	TokenId      *big.Int
}

Jump to

Keyboard shortcuts

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