Documentation ¶
Index ¶
- Constants
- func GetERC1155Sigs() map[string]struct{}
- func GetERC20Sigs() map[string]struct{}
- func GetERC721EnumerableSigs() map[string]struct{}
- func GetERC721Sigs() map[string]struct{}
- func PadBytes(pad int, b []byte) []byte
- func ValidateHexString(s string) bool
- type BlockEventData
- type NotFoundError
- type OwnershipTransferEvent
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 GetERC1155Sigs ¶
func GetERC1155Sigs() map[string]struct{}
func GetERC20Sigs ¶
func GetERC20Sigs() map[string]struct{}
func GetERC721EnumerableSigs ¶
func GetERC721EnumerableSigs() map[string]struct{}
func GetERC721Sigs ¶
func GetERC721Sigs() map[string]struct{}
func ValidateHexString ¶
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
Click to show internal directories.
Click to hide internal directories.