Versions in this module Expand all Collapse all v0 v0.1.3 Feb 21, 2024 Changes in this version + const CONTRACT_NAME_ERC20 + const CONTRACT_NAME_ERC721 + const CONTRACT_NAME_ERC777 + const CONTRACT_NAME_FARCASTER + const CONTRACT_NAME_GITCOIN + const CONTRACT_NAME_POAP + const CONTRACT_NAME_UNKNOWN + const CONTRACT_TYPE_ERC20 + const CONTRACT_TYPE_ERC721 + const CONTRACT_TYPE_ERC777 + const CONTRACT_TYPE_FARCASTER + const CONTRACT_TYPE_GITCOIN + const CONTRACT_TYPE_POAP + const CONTRACT_TYPE_UNKNOWN + func CalcPartialHolders(currentHolders, newHolders map[common.Address]*big.Int) map[common.Address]*big.Int + func ClientSupportsGetCode(ctx context.Context, cli *ethclient.Client, controlAddr common.Address) bool + func ServeTestStaticFiles(ctx context.Context, port int, files map[string]string) map[string]string + func TokenTypeID(name string) uint64 + func TokenTypeName(id uint64) string + type HolderProvider interface + Address func(id []byte) common.Address + BalanceAt func(ctx context.Context, addr common.Address, id []byte, blockNumber uint64) (*big.Int, error) + BalanceOf func(addr common.Address, id []byte) (*big.Int, error) + BlockRootHash func(ctx context.Context, blockNumber uint64) ([]byte, error) + BlockTimestamp func(ctx context.Context, blockNumber uint64) (string, error) + CensusKeys func(holders map[common.Address]*big.Int) (map[common.Address]*big.Int, error) + ChainID func() uint64 + Close func() error + CreationBlock func(ctx context.Context, id []byte) (uint64, error) + Decimals func(id []byte) (uint64, error) + HoldersBalances func(ctx context.Context, id []byte, to uint64) (map[common.Address]*big.Int, uint64, uint64, bool, *big.Int, error) + IconURI func(id []byte) (string, error) + Init func(conf any) error + IsExternal func() bool + IsSynced func(id []byte) bool + LatestBlockNumber func(ctx context.Context, id []byte) (uint64, error) + Name func(id []byte) (string, error) + SetLastBalances func(ctx context.Context, id []byte, balances map[common.Address]*big.Int, ...) error + SetLastBlockNumber func(blockNumber uint64) + SetRef func(ref any) error + Symbol func(id []byte) (string, error) + TotalSupply func(id []byte) (*big.Int, error) + Type func() uint64 + TypeName func() string