Versions in this module Expand all Collapse all v0 v0.1.3 Feb 21, 2024 Changes in this version + const ChainID + const IdRegistryAddress + const KeyRegistryAddress + var ErrUserAlreadyExists = errors.New("user already exists") + var FarcasterIDRegistryType = []byte + var FarcasterKeyRegistryType = []byte + var VoidAddress = common.Address + type DB struct + QueriesRO *queries.Queries + QueriesRW *queries.Queries + RO *sql.DB + RW *sql.DB + func InitDB(dataDir string, dbName string) (*DB, error) + func (db *DB) CloseDB() error + type FarcasterContracts struct + type FarcasterProvider struct + func (p *FarcasterProvider) Address(contractType []byte) common.Address + func (p *FarcasterProvider) BalanceAt(ctx context.Context, addr common.Address, _ []byte, blockNumber uint64) (*big.Int, error) + func (p *FarcasterProvider) BalanceOf(addr common.Address, _ []byte) (*big.Int, error) + func (p *FarcasterProvider) BlockRootHash(ctx context.Context, blockNumber uint64) ([]byte, error) + func (p *FarcasterProvider) BlockTimestamp(ctx context.Context, blockNumber uint64) (string, error) + func (p *FarcasterProvider) CensusKeys(data map[common.Address]*big.Int) (map[common.Address]*big.Int, error) + func (p *FarcasterProvider) ChainID() uint64 + func (p *FarcasterProvider) Close() error + func (p *FarcasterProvider) CreationBlock(ctx context.Context, contractType []byte) (uint64, error) + func (p *FarcasterProvider) Decimals(_ []byte) (uint64, error) + func (p *FarcasterProvider) HoldersBalances(ctx context.Context, _ []byte, fromBlock uint64) (map[common.Address]*big.Int, uint64, uint64, bool, *big.Int, error) + func (p *FarcasterProvider) IconURI(_ []byte) (string, error) + func (p *FarcasterProvider) Init(iconf any) error + func (p *FarcasterProvider) IsExternal() bool + func (p *FarcasterProvider) IsSynced(_ []byte) bool + func (p *FarcasterProvider) LatestBlockNumber(ctx context.Context, _ []byte) (uint64, error) + func (p *FarcasterProvider) Name(_ []byte) (string, error) + func (p *FarcasterProvider) ScanLogsIDRegistry(ctx context.Context, fromBlock, toBlock uint64) (map[uint64]common.Address, uint64, bool, error) + func (p *FarcasterProvider) ScanLogsKeyRegistry(ctx context.Context, fromBlock, toBlock uint64) (map[uint64][][]byte, map[uint64][][]byte, uint64, bool, error) + func (p *FarcasterProvider) SetLastBalances(_ context.Context, _ []byte, _ map[common.Address]*big.Int, _ uint64) error + func (p *FarcasterProvider) SetLastBlockNumber(blockNumber uint64) + func (p *FarcasterProvider) SetRef(iref any) error + func (p *FarcasterProvider) Symbol(_ []byte) (string, error) + func (p *FarcasterProvider) TotalSupply(_ []byte) (*big.Int, error) + func (p *FarcasterProvider) Type() uint64 + func (p *FarcasterProvider) TypeName() string + type FarcasterProviderConf struct + DB *DB + Endpoints web3.NetworkEndpoints + type FarcasterUserData struct + FID uint64