Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store interface { // ERC 20 InsertERC20(ctx context.Context, code *model.ERC20) error BatchUpdateERC20BlockNumber(ctx context.Context, blockNumber int64, addrs [][]byte) error FindERC20(ctx context.Context, address common.Address) (result *model.ERC20, err error) ListERC20(ctx context.Context) ([]*model.ERC20, error) ListOldERC20(ctx context.Context) ([]*model.ERC20, error) ListNewERC20(ctx context.Context) ([]*model.ERC20, error) // Accounts InsertAccount(ctx context.Context, account *model.Account) error FindAccount(ctx context.Context, contractAddress common.Address, address common.Address, blockNr ...int64) (result *model.Account, err error) FindLatestAccounts(ctx context.Context, contractAddress common.Address, addrs [][]byte) (result []*model.Account, err error) DeleteAccounts(ctx context.Context, contractAddress common.Address, from, to int64) error // Transfer events InsertTransfer(ctx context.Context, event *model.Transfer) error FindAllTransfers(ctx context.Context, contractAddress common.Address, address common.Address) (result []*model.Transfer, err error) DeleteTransfer(ctx context.Context, contractAddress common.Address, from, to int64) error }
Click to show internal directories.
Click to hide internal directories.