Versions in this module Expand all Collapse all v4 v4.0.0 Jun 26, 2023 Changes in this version + func Builder(ctx *db.Context) (db.Database, error) + type Db struct + Sqlx *sqlx.DB + func Cast(db db.Database) *Db + func (db *Db) CheckSoftwareUpgradePlan(upgradeHeight int64) (bool, error) + func (db *Db) DeleteFeeGrantAllowance(allowance types.GrantRemoval) error + func (db *Db) DeleteSoftwareUpgradePlan(proposalID uint64) error + func (db *Db) GetAccounts() ([]string, error) + func (db *Db) GetBlockHeightTimeDayAgo(now time.Time) (dbtypes.BlockRow, error) + func (db *Db) GetBlockHeightTimeHourAgo(now time.Time) (dbtypes.BlockRow, error) + func (db *Db) GetBlockHeightTimeMinuteAgo(now time.Time) (dbtypes.BlockRow, error) + func (db *Db) GetGenesis() (*types.Genesis, error) + func (db *Db) GetGovParams() (*types.GovParams, error) + func (db *Db) GetLastBlock() (*dbtypes.BlockRow, error) + func (db *Db) GetLastBlockHeight() (int64, error) + func (db *Db) GetMissingBlocks(startHeight, endHeight int64) []int64 + func (db *Db) GetOpenProposalsIds(blockTime time.Time) ([]uint64, error) + func (db *Db) GetProposal(id uint64) (types.Proposal, error) + func (db *Db) GetStakingParams() (*types.StakingParams, error) + func (db *Db) GetTokensPriceID() ([]string, error) + func (db *Db) GetValidator(valAddress string) (types.Validator, error) + func (db *Db) GetValidatorBySelfDelegateAddress(address string) (types.Validator, error) + func (db *Db) GetValidatorConsensusAddress(address string) (sdk.ConsAddress, error) + func (db *Db) GetValidatorOperatorAddress(consAddr string) (sdk.ValAddress, error) + func (db *Db) GetValidators() ([]types.Validator, error) + func (db *Db) InsertEnableModules(modules []string) error + func (db *Db) Prune(height int64) error + func (db *Db) SaveAccounts(accounts []types.Account) error + func (db *Db) SaveAverageBlockTimeGenesis(averageTime float64, height int64) error + func (db *Db) SaveAverageBlockTimePerDay(averageTime float64, height int64) error + func (db *Db) SaveAverageBlockTimePerHour(averageTime float64, height int64) error + func (db *Db) SaveAverageBlockTimePerMin(averageTime float64, height int64) error + func (db *Db) SaveCommunityPool(coin sdk.DecCoins, height int64) error + func (db *Db) SaveDeposits(deposits []types.Deposit) error + func (db *Db) SaveDistributionParams(params *types.DistributionParams) error + func (db *Db) SaveDoubleSignEvidence(evidence types.DoubleSignEvidence) error + func (db *Db) SaveFeeGrantAllowance(allowance types.FeeGrant) error + func (db *Db) SaveGenesis(genesis *types.Genesis) error + func (db *Db) SaveGenesisGovParams(params *types.GenesisGovParams) error + func (db *Db) SaveGovParams(params *types.GovParams) error + func (db *Db) SaveInflation(inflation sdk.Dec, height int64) error + func (db *Db) SaveMintParams(params *types.MintParams) error + func (db *Db) SaveProposalStakingPoolSnapshot(snapshot types.ProposalStakingPoolSnapshot) error + func (db *Db) SaveProposalValidatorsStatusesSnapshots(snapshots []types.ProposalValidatorStatusSnapshot) error + func (db *Db) SaveProposals(proposals []types.Proposal) error + func (db *Db) SaveSlashingParams(params *types.SlashingParams) error + func (db *Db) SaveSoftwareUpgradePlan(proposalID uint64, plan upgradetypes.Plan, height int64) error + func (db *Db) SaveStakingParams(params types.StakingParams) error + func (db *Db) SaveStakingPool(pool *types.Pool) error + func (db *Db) SaveSupply(coins sdk.Coins, height int64) error + func (db *Db) SaveTallyResults(tallys []types.TallyResult) error + func (db *Db) SaveToken(token types.Token) error + func (db *Db) SaveTokenPricesHistory(prices []types.TokenPrice) error + func (db *Db) SaveTokensPrices(prices []types.TokenPrice) error + func (db *Db) SaveValidatorCommission(data types.ValidatorCommission) error + func (db *Db) SaveValidatorData(validator types.Validator) error + func (db *Db) SaveValidatorDescription(description types.ValidatorDescription) error + func (db *Db) SaveValidatorsData(validators []types.Validator) error + func (db *Db) SaveValidatorsSigningInfos(infos []types.ValidatorSigningInfo) error + func (db *Db) SaveValidatorsStatuses(statuses []types.ValidatorStatus) error + func (db *Db) SaveValidatorsVotingPowers(entries []types.ValidatorVotingPower) error + func (db *Db) SaveVestingAccounts(vestingAccounts []exported.VestingAccount) error + func (db *Db) SaveVote(vote types.Vote) error + func (db *Db) StoreBaseVestingAccountFromMsg(bva *vestingtypes.BaseVestingAccount, txTimestamp time.Time) error + func (db *Db) TruncateSoftwareUpgradePlan(height int64) error + func (db *Db) UpdateProposal(update types.ProposalUpdate) error Other modules containing this package github.com/forbole/bdjuno/v2 github.com/forbole/bdjuno/v3