Documentation ¶
Index ¶
- func NewAccountCoinBalanceRepository(db *postgres.DB) *accountCoinBalanceRepository
- func NewAddressRepository(db *postgres.DB) *addressRepository
- func NewValueTransferEventRepository(db *postgres.DB) *valueTransferEventRepository
- func NewWatchedContractRepository(db *postgres.DB) *watchedContractRepository
- type AccountCoinBalanceRepository
- type AddressRepository
- type ValueTransferEventRepository
- type WatchedContractRepository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAddressRepository ¶
Types ¶
type AccountCoinBalanceRepository ¶
type AccountCoinBalanceRepository interface {
CreateCoinBalanceRecords(balanceRecords []shared.CoinBalanceRecord) error
}
type AddressRepository ¶
type ValueTransferEventRepository ¶
type ValueTransferEventRepository interface { CreateTokenValueTransferRecords(models []models.ValueTransferModel) error GetTokenValueTransferRecordsForAccount(address common.Address, firstBlock, lastBlock int64) ([]models.ValueTransferModel, error) GetTokenValueTransferRecordsForAccounts(addresses []common.Address, lastBlock int64) (map[common.Address][]models.ValueTransferModel, error) }
Click to show internal directories.
Click to hide internal directories.