Documentation ¶
Index ¶
- type AllVotings
- type BlockStorage
- func (s *BlockStorage) Erase(fromID uint64) error
- func (s *BlockStorage) GetBlockEarlierThan(timestamp int64) (*data.Block, error)
- func (s *BlockStorage) GetByNumber(number uint64) (*data.Block, error)
- func (s *BlockStorage) GetLatest() (*data.Block, error)
- func (s *BlockStorage) Insert(block *data.Block) error
- func (s *BlockStorage) Select(params *data.SelectBlocksParams) ([]data.Block, error)
- type ConstitutionVotingStorage
- func (s *ConstitutionVotingStorage) Erase(fromID uint64) error
- func (s *ConstitutionVotingStorage) GetByNumber(number uint64) (*data.ConstitutionVoting, error)
- func (s *ConstitutionVotingStorage) GetEarliestUnfinishedVotings() ([]data.ConstitutionVoting, error)
- func (s *ConstitutionVotingStorage) GetLatest() (*data.ConstitutionVoting, error)
- func (s *ConstitutionVotingStorage) Insert(voting *data.ConstitutionVoting) error
- func (s *ConstitutionVotingStorage) Select(params *data.SelectConstitutionVotingParams) ([]data.ConstitutionVoting, error)
- func (s *ConstitutionVotingStorage) Update(voting *data.ConstitutionVoting) error
- type ContractRegistryAddressVotingStorage
- func (s *ContractRegistryAddressVotingStorage) Erase(fromID uint64) error
- func (s *ContractRegistryAddressVotingStorage) GetByNumber(number uint64) (*data.ContractRegistryAddressVoting, error)
- func (s *ContractRegistryAddressVotingStorage) GetEarliestUnfinishedVotings() ([]data.ContractRegistryAddressVoting, error)
- func (s *ContractRegistryAddressVotingStorage) GetLatest() (*data.ContractRegistryAddressVoting, error)
- func (s *ContractRegistryAddressVotingStorage) Insert(voting *data.ContractRegistryAddressVoting) error
- func (s *ContractRegistryAddressVotingStorage) Select(params *data.SelectContractRegistryAddressVotingParams) ([]data.ContractRegistryAddressVoting, error)
- func (s *ContractRegistryAddressVotingStorage) Update(voting *data.ContractRegistryAddressVoting) error
- type ContractRegistryUpgradeVotingStorage
- func (s *ContractRegistryUpgradeVotingStorage) Erase(fromID uint64) error
- func (s *ContractRegistryUpgradeVotingStorage) GetByNumber(number uint64) (*data.ContractRegistryUpgradeVoting, error)
- func (s *ContractRegistryUpgradeVotingStorage) GetEarliestUnfinishedVotings() ([]data.ContractRegistryUpgradeVoting, error)
- func (s *ContractRegistryUpgradeVotingStorage) GetLatest() (*data.ContractRegistryUpgradeVoting, error)
- func (s *ContractRegistryUpgradeVotingStorage) Insert(voting *data.ContractRegistryUpgradeVoting) error
- func (s *ContractRegistryUpgradeVotingStorage) Select(params *data.SelectContractRegistryUpgradeVotingParams) ([]data.ContractRegistryUpgradeVoting, error)
- func (s *ContractRegistryUpgradeVotingStorage) Update(voting *data.ContractRegistryUpgradeVoting) error
- type EmergencyUpdateVotingStorage
- func (s *EmergencyUpdateVotingStorage) Erase(fromID uint64) error
- func (s *EmergencyUpdateVotingStorage) GetByNumber(number uint64) (*data.EmergencyUpdateVoting, error)
- func (s *EmergencyUpdateVotingStorage) GetEarliestUnfinishedVotings() ([]data.EmergencyUpdateVoting, error)
- func (s *EmergencyUpdateVotingStorage) GetLatest() (*data.EmergencyUpdateVoting, error)
- func (s *EmergencyUpdateVotingStorage) Insert(voting *data.EmergencyUpdateVoting) error
- func (s *EmergencyUpdateVotingStorage) Select(params *data.SelectEmergencyUpdateVotingParams) ([]data.EmergencyUpdateVoting, error)
- func (s *EmergencyUpdateVotingStorage) Update(voting *data.EmergencyUpdateVoting) error
- type EpdrMembershipVotingStorage
- func (s *EpdrMembershipVotingStorage) Erase(fromID uint64) error
- func (s *EpdrMembershipVotingStorage) GetByNumber(number uint64) (*data.EpdrMembershipVoting, error)
- func (s *EpdrMembershipVotingStorage) GetEarliestUnfinishedVotings() ([]data.EpdrMembershipVoting, error)
- func (s *EpdrMembershipVotingStorage) GetLatest() (*data.EpdrMembershipVoting, error)
- func (s *EpdrMembershipVotingStorage) Insert(voting *data.EpdrMembershipVoting) error
- func (s *EpdrMembershipVotingStorage) Select(params *data.SelectEpdrMembershipVotingParams) ([]data.EpdrMembershipVoting, error)
- func (s *EpdrMembershipVotingStorage) Update(voting *data.EpdrMembershipVoting) error
- type EpdrParametersVotingStorage
- func (s *EpdrParametersVotingStorage) Erase(fromID uint64) error
- func (s *EpdrParametersVotingStorage) GetByNumber(number uint64) (*data.EpdrParametersVoting, error)
- func (s *EpdrParametersVotingStorage) GetEarliestUnfinishedVotings() ([]data.EpdrParametersVoting, error)
- func (s *EpdrParametersVotingStorage) GetLatest() (*data.EpdrParametersVoting, error)
- func (s *EpdrParametersVotingStorage) Insert(voting *data.EpdrParametersVoting) error
- func (s *EpdrParametersVotingStorage) Select(params *data.SelectEpdrParametersVotingParams) ([]data.EpdrParametersVoting, error)
- func (s *EpdrParametersVotingStorage) Update(voting *data.EpdrParametersVoting) error
- type EpqfiMembershipVotingStorage
- func (s *EpqfiMembershipVotingStorage) Erase(fromID uint64) error
- func (s *EpqfiMembershipVotingStorage) GetByNumber(number uint64) (*data.EpqfiMembershipVoting, error)
- func (s *EpqfiMembershipVotingStorage) GetEarliestUnfinishedVotings() ([]data.EpqfiMembershipVoting, error)
- func (s *EpqfiMembershipVotingStorage) GetLatest() (*data.EpqfiMembershipVoting, error)
- func (s *EpqfiMembershipVotingStorage) Insert(voting *data.EpqfiMembershipVoting) error
- func (s *EpqfiMembershipVotingStorage) Select(params *data.SelectEpqfiMembershipVotingParams) ([]data.EpqfiMembershipVoting, error)
- func (s *EpqfiMembershipVotingStorage) Update(voting *data.EpqfiMembershipVoting) error
- type EpqfiParametersVotingStorage
- func (s *EpqfiParametersVotingStorage) Erase(fromID uint64) error
- func (s *EpqfiParametersVotingStorage) GetByNumber(number uint64) (*data.EpqfiParametersVoting, error)
- func (s *EpqfiParametersVotingStorage) GetEarliestUnfinishedVotings() ([]data.EpqfiParametersVoting, error)
- func (s *EpqfiParametersVotingStorage) GetLatest() (*data.EpqfiParametersVoting, error)
- func (s *EpqfiParametersVotingStorage) Insert(voting *data.EpqfiParametersVoting) error
- func (s *EpqfiParametersVotingStorage) Select(params *data.SelectEpqfiParametersVotingParams) ([]data.EpqfiParametersVoting, error)
- func (s *EpqfiParametersVotingStorage) Update(voting *data.EpqfiParametersVoting) error
- type EprsMembershipVotingStorage
- func (s *EprsMembershipVotingStorage) Erase(fromID uint64) error
- func (s *EprsMembershipVotingStorage) GetByNumber(number uint64) (*data.EprsMembershipVoting, error)
- func (s *EprsMembershipVotingStorage) GetEarliestUnfinishedVotings() ([]data.EprsMembershipVoting, error)
- func (s *EprsMembershipVotingStorage) GetLatest() (*data.EprsMembershipVoting, error)
- func (s *EprsMembershipVotingStorage) Insert(voting *data.EprsMembershipVoting) error
- func (s *EprsMembershipVotingStorage) Select(params *data.SelectEprsMembershipVotingParams) ([]data.EprsMembershipVoting, error)
- func (s *EprsMembershipVotingStorage) Update(voting *data.EprsMembershipVoting) error
- type EprsParametersVotingStorage
- func (s *EprsParametersVotingStorage) Erase(fromID uint64) error
- func (s *EprsParametersVotingStorage) GetByNumber(number uint64) (*data.EprsParametersVoting, error)
- func (s *EprsParametersVotingStorage) GetEarliestUnfinishedVotings() ([]data.EprsParametersVoting, error)
- func (s *EprsParametersVotingStorage) GetLatest() (*data.EprsParametersVoting, error)
- func (s *EprsParametersVotingStorage) Insert(voting *data.EprsParametersVoting) error
- func (s *EprsParametersVotingStorage) Select(params *data.SelectEprsParametersVotingParams) ([]data.EprsParametersVoting, error)
- func (s *EprsParametersVotingStorage) Update(voting *data.EprsParametersVoting) error
- type GeneralUpdateVotingStorage
- func (s *GeneralUpdateVotingStorage) Erase(fromID uint64) error
- func (s *GeneralUpdateVotingStorage) GetByNumber(number uint64) (*data.GeneralUpdateVoting, error)
- func (s *GeneralUpdateVotingStorage) GetEarliestUnfinishedVotings() ([]data.GeneralUpdateVoting, error)
- func (s *GeneralUpdateVotingStorage) GetLatest() (*data.GeneralUpdateVoting, error)
- func (s *GeneralUpdateVotingStorage) Insert(voting *data.GeneralUpdateVoting) error
- func (s *GeneralUpdateVotingStorage) Select(params *data.SelectGeneralUpdateVotingParams) ([]data.GeneralUpdateVoting, error)
- func (s *GeneralUpdateVotingStorage) Update(voting *data.GeneralUpdateVoting) error
- type PaymentStorage
- type RootnodesSlashingVotingStorage
- func (s *RootnodesSlashingVotingStorage) Erase(fromID uint64) error
- func (s *RootnodesSlashingVotingStorage) GetByNumber(number uint64) (*data.RootnodesSlashingVoting, error)
- func (s *RootnodesSlashingVotingStorage) GetEarliestUnfinishedVotings() ([]data.RootnodesSlashingVoting, error)
- func (s *RootnodesSlashingVotingStorage) GetLatest() (*data.RootnodesSlashingVoting, error)
- func (s *RootnodesSlashingVotingStorage) Insert(voting *data.RootnodesSlashingVoting) error
- func (s *RootnodesSlashingVotingStorage) Select(params *data.SelectRootnodesSlashingVotingParams) ([]data.RootnodesSlashingVoting, error)
- func (s *RootnodesSlashingVotingStorage) Update(voting *data.RootnodesSlashingVoting) error
- type RootsVotingStorage
- func (s *RootsVotingStorage) Erase(fromID uint64) error
- func (s *RootsVotingStorage) GetByNumber(number uint64) (*data.RootsVoting, error)
- func (s *RootsVotingStorage) GetEarliestUnfinishedVoting() (*data.RootsVoting, error)
- func (s *RootsVotingStorage) GetEarliestUnfinishedVotings() ([]data.RootsVoting, error)
- func (s *RootsVotingStorage) GetLatest() (*data.RootsVoting, error)
- func (s *RootsVotingStorage) Insert(voting *data.RootsVoting) error
- func (s *RootsVotingStorage) Select(params *data.SelectRootsVotingParams) ([]data.RootsVoting, error)
- func (s *RootsVotingStorage) Update(voting *data.RootsVoting) error
- type Storage
- func (s *Storage) Blocks() data.BlockStorage
- func (s *Storage) Clone() data.Storage
- func (s *Storage) ConstitutionVotings() data.ConstitutionVotingStorage
- func (s *Storage) ContractRegistryAddressVotings() data.ContractRegistryAddressVotingStorage
- func (s *Storage) ContractRegistryUpgradeVotings() data.ContractRegistryUpgradeVotingStorage
- func (s *Storage) EmergencyUpdateVotings() data.EmergencyUpdateVotingStorage
- func (s *Storage) EpdrMembershipVotings() data.EpdrMembershipVotingStorage
- func (s *Storage) EpdrParametersVotings() data.EpdrParametersVotingStorage
- func (s *Storage) EpqfiMembershipVotings() data.EpqfiMembershipVotingStorage
- func (s *Storage) EpqfiParametersVotings() data.EpqfiParametersVotingStorage
- func (s *Storage) EprsMembershipVotings() data.EprsMembershipVotingStorage
- func (s *Storage) EprsParametersVotings() data.EprsParametersVotingStorage
- func (s *Storage) ExecInTx(fn func() error) error
- func (s *Storage) GeneralUpdateVotings() data.GeneralUpdateVotingStorage
- func (s *Storage) Payments() data.PaymentsStorage
- func (s *Storage) RootnodesSlashingVotings() data.RootnodesSlashingVotingStorage
- func (s *Storage) RootsVotings() data.RootsVotingStorage
- func (s *Storage) SummaryMetrics() data.SummaryMetricsStorage
- func (s *Storage) Transactions() data.TransactionStorage
- func (s *Storage) ValidatorsSlashingVotings() data.ValidatorsSlashingVotingStorage
- func (s *Storage) Votings() data.VotingStorage
- type SummaryMetricsStorage
- type TransactionStorage
- type ValidatorsSlashingVotingStorage
- func (s *ValidatorsSlashingVotingStorage) Erase(fromID uint64) error
- func (s *ValidatorsSlashingVotingStorage) GetByNumber(number uint64) (*data.ValidatorsSlashingVoting, error)
- func (s *ValidatorsSlashingVotingStorage) GetEarliestUnfinishedVotings() ([]data.ValidatorsSlashingVoting, error)
- func (s *ValidatorsSlashingVotingStorage) GetLatest() (*data.ValidatorsSlashingVoting, error)
- func (s *ValidatorsSlashingVotingStorage) Insert(voting *data.ValidatorsSlashingVoting) error
- func (s *ValidatorsSlashingVotingStorage) Select(params *data.SelectValidatorsSlashingVotingParams) ([]data.ValidatorsSlashingVoting, error)
- func (s *ValidatorsSlashingVotingStorage) Update(voting *data.ValidatorsSlashingVoting) error
- type VotingStorage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AllVotings ¶
type AllVotings struct { Cvotings []data.ConstitutionVoting GUvotings []data.GeneralUpdateVoting EUvotings []data.EmergencyUpdateVoting Rvotings []data.RootsVoting RSvotings []data.RootnodesSlashingVoting VSvotings []data.ValidatorsSlashingVoting EPQFIMvotings []data.EpqfiMembershipVoting EPQFIPvotings []data.EpqfiParametersVoting EPDRMvotings []data.EpdrMembershipVoting EPDRPvotings []data.EpdrParametersVoting EPRSMvotings []data.EprsMembershipVoting EPRSPvotings []data.EprsParametersVoting CRAvotings []data.ContractRegistryAddressVoting CRUvotings []data.ContractRegistryUpgradeVoting }
type BlockStorage ¶
type BlockStorage struct {
// contains filtered or unexported fields
}
BlockStorage implements data.BlockStorage.
func (*BlockStorage) Erase ¶
func (s *BlockStorage) Erase(fromID uint64) error
Erase all history starting fromID inclusively.
func (*BlockStorage) GetBlockEarlierThan ¶
func (s *BlockStorage) GetBlockEarlierThan(timestamp int64) (*data.Block, error)
func (*BlockStorage) GetByNumber ¶
func (s *BlockStorage) GetByNumber(number uint64) (*data.Block, error)
func (*BlockStorage) GetLatest ¶
func (s *BlockStorage) GetLatest() (*data.Block, error)
GetLatest block.
func (*BlockStorage) Select ¶
func (s *BlockStorage) Select(params *data.SelectBlocksParams) ([]data.Block, error)
Select blocks with params.
type ConstitutionVotingStorage ¶
type ConstitutionVotingStorage struct {
// contains filtered or unexported fields
}
ConstitutionVotingStorage implements data.ConstitutionVotingStorage.
func (*ConstitutionVotingStorage) Erase ¶
func (s *ConstitutionVotingStorage) Erase(fromID uint64) error
Erase all history starting fromID inclusively.
func (*ConstitutionVotingStorage) GetByNumber ¶
func (s *ConstitutionVotingStorage) GetByNumber(number uint64) (*data.ConstitutionVoting, error)
func (*ConstitutionVotingStorage) GetEarliestUnfinishedVotings ¶
func (s *ConstitutionVotingStorage) GetEarliestUnfinishedVotings() ([]data.ConstitutionVoting, error)
func (*ConstitutionVotingStorage) GetLatest ¶
func (s *ConstitutionVotingStorage) GetLatest() (*data.ConstitutionVoting, error)
GetLatest block.
func (*ConstitutionVotingStorage) Insert ¶
func (s *ConstitutionVotingStorage) Insert(voting *data.ConstitutionVoting) error
func (*ConstitutionVotingStorage) Select ¶
func (s *ConstitutionVotingStorage) Select(params *data.SelectConstitutionVotingParams) ([]data.ConstitutionVoting, error)
Select votings with params.
func (*ConstitutionVotingStorage) Update ¶
func (s *ConstitutionVotingStorage) Update(voting *data.ConstitutionVoting) error
type ContractRegistryAddressVotingStorage ¶
type ContractRegistryAddressVotingStorage struct {
// contains filtered or unexported fields
}
ContractRegistryAddressVotingStorage implements data.ContractRegistryAddressVotingStorage.
func (*ContractRegistryAddressVotingStorage) Erase ¶
func (s *ContractRegistryAddressVotingStorage) Erase(fromID uint64) error
Erase all history starting fromID inclusively.
func (*ContractRegistryAddressVotingStorage) GetByNumber ¶
func (s *ContractRegistryAddressVotingStorage) GetByNumber(number uint64) (*data.ContractRegistryAddressVoting, error)
func (*ContractRegistryAddressVotingStorage) GetEarliestUnfinishedVotings ¶
func (s *ContractRegistryAddressVotingStorage) GetEarliestUnfinishedVotings() ([]data.ContractRegistryAddressVoting, error)
func (*ContractRegistryAddressVotingStorage) GetLatest ¶
func (s *ContractRegistryAddressVotingStorage) GetLatest() (*data.ContractRegistryAddressVoting, error)
GetLatest block.
func (*ContractRegistryAddressVotingStorage) Insert ¶
func (s *ContractRegistryAddressVotingStorage) Insert(voting *data.ContractRegistryAddressVoting) error
func (*ContractRegistryAddressVotingStorage) Select ¶
func (s *ContractRegistryAddressVotingStorage) Select(params *data.SelectContractRegistryAddressVotingParams) ([]data.ContractRegistryAddressVoting, error)
Select votings with params.
func (*ContractRegistryAddressVotingStorage) Update ¶
func (s *ContractRegistryAddressVotingStorage) Update(voting *data.ContractRegistryAddressVoting) error
type ContractRegistryUpgradeVotingStorage ¶
type ContractRegistryUpgradeVotingStorage struct {
// contains filtered or unexported fields
}
ContractRegistryUpgradeVotingStorage implements data.ContractRegistryUpgradeVotingStorage.
func (*ContractRegistryUpgradeVotingStorage) Erase ¶
func (s *ContractRegistryUpgradeVotingStorage) Erase(fromID uint64) error
Erase all history starting fromID inclusively.
func (*ContractRegistryUpgradeVotingStorage) GetByNumber ¶
func (s *ContractRegistryUpgradeVotingStorage) GetByNumber(number uint64) (*data.ContractRegistryUpgradeVoting, error)
func (*ContractRegistryUpgradeVotingStorage) GetEarliestUnfinishedVotings ¶
func (s *ContractRegistryUpgradeVotingStorage) GetEarliestUnfinishedVotings() ([]data.ContractRegistryUpgradeVoting, error)
func (*ContractRegistryUpgradeVotingStorage) GetLatest ¶
func (s *ContractRegistryUpgradeVotingStorage) GetLatest() (*data.ContractRegistryUpgradeVoting, error)
GetLatest block.
func (*ContractRegistryUpgradeVotingStorage) Insert ¶
func (s *ContractRegistryUpgradeVotingStorage) Insert(voting *data.ContractRegistryUpgradeVoting) error
func (*ContractRegistryUpgradeVotingStorage) Select ¶
func (s *ContractRegistryUpgradeVotingStorage) Select(params *data.SelectContractRegistryUpgradeVotingParams) ([]data.ContractRegistryUpgradeVoting, error)
Select votings with params.
func (*ContractRegistryUpgradeVotingStorage) Update ¶
func (s *ContractRegistryUpgradeVotingStorage) Update(voting *data.ContractRegistryUpgradeVoting) error
type EmergencyUpdateVotingStorage ¶
type EmergencyUpdateVotingStorage struct {
// contains filtered or unexported fields
}
EmergencyUpdateVotingStorage implements data.EmergencyUpdateVotingStorage.
func (*EmergencyUpdateVotingStorage) Erase ¶
func (s *EmergencyUpdateVotingStorage) Erase(fromID uint64) error
Erase all history starting fromID inclusively.
func (*EmergencyUpdateVotingStorage) GetByNumber ¶
func (s *EmergencyUpdateVotingStorage) GetByNumber(number uint64) (*data.EmergencyUpdateVoting, error)
func (*EmergencyUpdateVotingStorage) GetEarliestUnfinishedVotings ¶
func (s *EmergencyUpdateVotingStorage) GetEarliestUnfinishedVotings() ([]data.EmergencyUpdateVoting, error)
func (*EmergencyUpdateVotingStorage) GetLatest ¶
func (s *EmergencyUpdateVotingStorage) GetLatest() (*data.EmergencyUpdateVoting, error)
GetLatest block.
func (*EmergencyUpdateVotingStorage) Insert ¶
func (s *EmergencyUpdateVotingStorage) Insert(voting *data.EmergencyUpdateVoting) error
func (*EmergencyUpdateVotingStorage) Select ¶
func (s *EmergencyUpdateVotingStorage) Select(params *data.SelectEmergencyUpdateVotingParams) ([]data.EmergencyUpdateVoting, error)
Select votings with params.
func (*EmergencyUpdateVotingStorage) Update ¶
func (s *EmergencyUpdateVotingStorage) Update(voting *data.EmergencyUpdateVoting) error
type EpdrMembershipVotingStorage ¶
type EpdrMembershipVotingStorage struct {
// contains filtered or unexported fields
}
EpdrMembershipVotingStorage implements data.EpdrMembershipVotingStorage.
func (*EpdrMembershipVotingStorage) Erase ¶
func (s *EpdrMembershipVotingStorage) Erase(fromID uint64) error
Erase all history starting fromID inclusively.
func (*EpdrMembershipVotingStorage) GetByNumber ¶
func (s *EpdrMembershipVotingStorage) GetByNumber(number uint64) (*data.EpdrMembershipVoting, error)
func (*EpdrMembershipVotingStorage) GetEarliestUnfinishedVotings ¶
func (s *EpdrMembershipVotingStorage) GetEarliestUnfinishedVotings() ([]data.EpdrMembershipVoting, error)
func (*EpdrMembershipVotingStorage) GetLatest ¶
func (s *EpdrMembershipVotingStorage) GetLatest() (*data.EpdrMembershipVoting, error)
GetLatest block.
func (*EpdrMembershipVotingStorage) Insert ¶
func (s *EpdrMembershipVotingStorage) Insert(voting *data.EpdrMembershipVoting) error
func (*EpdrMembershipVotingStorage) Select ¶
func (s *EpdrMembershipVotingStorage) Select(params *data.SelectEpdrMembershipVotingParams) ([]data.EpdrMembershipVoting, error)
Select votings with params.
func (*EpdrMembershipVotingStorage) Update ¶
func (s *EpdrMembershipVotingStorage) Update(voting *data.EpdrMembershipVoting) error
type EpdrParametersVotingStorage ¶
type EpdrParametersVotingStorage struct {
// contains filtered or unexported fields
}
EpdrParametersVotingStorage implements data.EpdrParametersVotingStorage.
func (*EpdrParametersVotingStorage) Erase ¶
func (s *EpdrParametersVotingStorage) Erase(fromID uint64) error
Erase all history starting fromID inclusively.
func (*EpdrParametersVotingStorage) GetByNumber ¶
func (s *EpdrParametersVotingStorage) GetByNumber(number uint64) (*data.EpdrParametersVoting, error)
func (*EpdrParametersVotingStorage) GetEarliestUnfinishedVotings ¶
func (s *EpdrParametersVotingStorage) GetEarliestUnfinishedVotings() ([]data.EpdrParametersVoting, error)
func (*EpdrParametersVotingStorage) GetLatest ¶
func (s *EpdrParametersVotingStorage) GetLatest() (*data.EpdrParametersVoting, error)
GetLatest epdr parameters voting.
func (*EpdrParametersVotingStorage) Insert ¶
func (s *EpdrParametersVotingStorage) Insert(voting *data.EpdrParametersVoting) error
func (*EpdrParametersVotingStorage) Select ¶
func (s *EpdrParametersVotingStorage) Select(params *data.SelectEpdrParametersVotingParams) ([]data.EpdrParametersVoting, error)
Select votings with params.
func (*EpdrParametersVotingStorage) Update ¶
func (s *EpdrParametersVotingStorage) Update(voting *data.EpdrParametersVoting) error
type EpqfiMembershipVotingStorage ¶
type EpqfiMembershipVotingStorage struct {
// contains filtered or unexported fields
}
EpqfiMembershipVotingStorage implements data.EpqfiMembershipVotingStorage.
func (*EpqfiMembershipVotingStorage) Erase ¶
func (s *EpqfiMembershipVotingStorage) Erase(fromID uint64) error
Erase all history starting fromID inclusively.
func (*EpqfiMembershipVotingStorage) GetByNumber ¶
func (s *EpqfiMembershipVotingStorage) GetByNumber(number uint64) (*data.EpqfiMembershipVoting, error)
func (*EpqfiMembershipVotingStorage) GetEarliestUnfinishedVotings ¶
func (s *EpqfiMembershipVotingStorage) GetEarliestUnfinishedVotings() ([]data.EpqfiMembershipVoting, error)
func (*EpqfiMembershipVotingStorage) GetLatest ¶
func (s *EpqfiMembershipVotingStorage) GetLatest() (*data.EpqfiMembershipVoting, error)
GetLatest epqfi membership voting.
func (*EpqfiMembershipVotingStorage) Insert ¶
func (s *EpqfiMembershipVotingStorage) Insert(voting *data.EpqfiMembershipVoting) error
func (*EpqfiMembershipVotingStorage) Select ¶
func (s *EpqfiMembershipVotingStorage) Select(params *data.SelectEpqfiMembershipVotingParams) ([]data.EpqfiMembershipVoting, error)
Select votings with params.
func (*EpqfiMembershipVotingStorage) Update ¶
func (s *EpqfiMembershipVotingStorage) Update(voting *data.EpqfiMembershipVoting) error
type EpqfiParametersVotingStorage ¶
type EpqfiParametersVotingStorage struct {
// contains filtered or unexported fields
}
EpqfiParametersVotingStorage implements data.EpqfiParametersVotingStorage.
func (*EpqfiParametersVotingStorage) Erase ¶
func (s *EpqfiParametersVotingStorage) Erase(fromID uint64) error
Erase all history starting fromID inclusively.
func (*EpqfiParametersVotingStorage) GetByNumber ¶
func (s *EpqfiParametersVotingStorage) GetByNumber(number uint64) (*data.EpqfiParametersVoting, error)
func (*EpqfiParametersVotingStorage) GetEarliestUnfinishedVotings ¶
func (s *EpqfiParametersVotingStorage) GetEarliestUnfinishedVotings() ([]data.EpqfiParametersVoting, error)
func (*EpqfiParametersVotingStorage) GetLatest ¶
func (s *EpqfiParametersVotingStorage) GetLatest() (*data.EpqfiParametersVoting, error)
GetLatest epqfi parameters voting.
func (*EpqfiParametersVotingStorage) Insert ¶
func (s *EpqfiParametersVotingStorage) Insert(voting *data.EpqfiParametersVoting) error
func (*EpqfiParametersVotingStorage) Select ¶
func (s *EpqfiParametersVotingStorage) Select(params *data.SelectEpqfiParametersVotingParams) ([]data.EpqfiParametersVoting, error)
Select votings with params.
func (*EpqfiParametersVotingStorage) Update ¶
func (s *EpqfiParametersVotingStorage) Update(voting *data.EpqfiParametersVoting) error
type EprsMembershipVotingStorage ¶
type EprsMembershipVotingStorage struct {
// contains filtered or unexported fields
}
EprsMembershipVotingStorage implements data.EprsMembershipVotingStorage.
func (*EprsMembershipVotingStorage) Erase ¶
func (s *EprsMembershipVotingStorage) Erase(fromID uint64) error
Erase all history starting fromID inclusively.
func (*EprsMembershipVotingStorage) GetByNumber ¶
func (s *EprsMembershipVotingStorage) GetByNumber(number uint64) (*data.EprsMembershipVoting, error)
func (*EprsMembershipVotingStorage) GetEarliestUnfinishedVotings ¶
func (s *EprsMembershipVotingStorage) GetEarliestUnfinishedVotings() ([]data.EprsMembershipVoting, error)
func (*EprsMembershipVotingStorage) GetLatest ¶
func (s *EprsMembershipVotingStorage) GetLatest() (*data.EprsMembershipVoting, error)
GetLatest eprs membership voting.
func (*EprsMembershipVotingStorage) Insert ¶
func (s *EprsMembershipVotingStorage) Insert(voting *data.EprsMembershipVoting) error
func (*EprsMembershipVotingStorage) Select ¶
func (s *EprsMembershipVotingStorage) Select(params *data.SelectEprsMembershipVotingParams) ([]data.EprsMembershipVoting, error)
Select votings with params.
func (*EprsMembershipVotingStorage) Update ¶
func (s *EprsMembershipVotingStorage) Update(voting *data.EprsMembershipVoting) error
type EprsParametersVotingStorage ¶
type EprsParametersVotingStorage struct {
// contains filtered or unexported fields
}
EprsParametersVotingStorage implements data.EprsParametersVotingStorage.
func (*EprsParametersVotingStorage) Erase ¶
func (s *EprsParametersVotingStorage) Erase(fromID uint64) error
Erase all history starting fromID inclusively.
func (*EprsParametersVotingStorage) GetByNumber ¶
func (s *EprsParametersVotingStorage) GetByNumber(number uint64) (*data.EprsParametersVoting, error)
func (*EprsParametersVotingStorage) GetEarliestUnfinishedVotings ¶
func (s *EprsParametersVotingStorage) GetEarliestUnfinishedVotings() ([]data.EprsParametersVoting, error)
func (*EprsParametersVotingStorage) GetLatest ¶
func (s *EprsParametersVotingStorage) GetLatest() (*data.EprsParametersVoting, error)
GetLatest eprs parameters voting.
func (*EprsParametersVotingStorage) Insert ¶
func (s *EprsParametersVotingStorage) Insert(voting *data.EprsParametersVoting) error
func (*EprsParametersVotingStorage) Select ¶
func (s *EprsParametersVotingStorage) Select(params *data.SelectEprsParametersVotingParams) ([]data.EprsParametersVoting, error)
Select votings with params.
func (*EprsParametersVotingStorage) Update ¶
func (s *EprsParametersVotingStorage) Update(voting *data.EprsParametersVoting) error
type GeneralUpdateVotingStorage ¶
type GeneralUpdateVotingStorage struct {
// contains filtered or unexported fields
}
GeneralUpdateVotingStorage implements data.GeneralUpdateVotingStorage.
func (*GeneralUpdateVotingStorage) Erase ¶
func (s *GeneralUpdateVotingStorage) Erase(fromID uint64) error
Erase all history starting fromID inclusively.
func (*GeneralUpdateVotingStorage) GetByNumber ¶
func (s *GeneralUpdateVotingStorage) GetByNumber(number uint64) (*data.GeneralUpdateVoting, error)
func (*GeneralUpdateVotingStorage) GetEarliestUnfinishedVotings ¶
func (s *GeneralUpdateVotingStorage) GetEarliestUnfinishedVotings() ([]data.GeneralUpdateVoting, error)
func (*GeneralUpdateVotingStorage) GetLatest ¶
func (s *GeneralUpdateVotingStorage) GetLatest() (*data.GeneralUpdateVoting, error)
GetLatest general update voting.
func (*GeneralUpdateVotingStorage) Insert ¶
func (s *GeneralUpdateVotingStorage) Insert(voting *data.GeneralUpdateVoting) error
func (*GeneralUpdateVotingStorage) Select ¶
func (s *GeneralUpdateVotingStorage) Select(params *data.SelectGeneralUpdateVotingParams) ([]data.GeneralUpdateVoting, error)
Select votings with params.
func (*GeneralUpdateVotingStorage) Update ¶
func (s *GeneralUpdateVotingStorage) Update(voting *data.GeneralUpdateVoting) error
type PaymentStorage ¶
type PaymentStorage struct {
// contains filtered or unexported fields
}
func (*PaymentStorage) Select ¶
func (s *PaymentStorage) Select(params *data.SelectPaymentsParams) ([]data.Payment, error)
type RootnodesSlashingVotingStorage ¶
type RootnodesSlashingVotingStorage struct {
// contains filtered or unexported fields
}
RootnodesSlashingVotingStorage implements data.RootnodesSlashingVotingStorage.
func (*RootnodesSlashingVotingStorage) Erase ¶
func (s *RootnodesSlashingVotingStorage) Erase(fromID uint64) error
Erase all history starting fromID inclusively.
func (*RootnodesSlashingVotingStorage) GetByNumber ¶
func (s *RootnodesSlashingVotingStorage) GetByNumber(number uint64) (*data.RootnodesSlashingVoting, error)
func (*RootnodesSlashingVotingStorage) GetEarliestUnfinishedVotings ¶
func (s *RootnodesSlashingVotingStorage) GetEarliestUnfinishedVotings() ([]data.RootnodesSlashingVoting, error)
func (*RootnodesSlashingVotingStorage) GetLatest ¶
func (s *RootnodesSlashingVotingStorage) GetLatest() (*data.RootnodesSlashingVoting, error)
GetLatest rootnodes slashing voting.
func (*RootnodesSlashingVotingStorage) Insert ¶
func (s *RootnodesSlashingVotingStorage) Insert(voting *data.RootnodesSlashingVoting) error
func (*RootnodesSlashingVotingStorage) Select ¶
func (s *RootnodesSlashingVotingStorage) Select(params *data.SelectRootnodesSlashingVotingParams) ([]data.RootnodesSlashingVoting, error)
Select votings with params.
func (*RootnodesSlashingVotingStorage) Update ¶
func (s *RootnodesSlashingVotingStorage) Update(voting *data.RootnodesSlashingVoting) error
type RootsVotingStorage ¶
type RootsVotingStorage struct {
// contains filtered or unexported fields
}
RootsVotingStorage implements data.RootsVotingStorage.
func (*RootsVotingStorage) Erase ¶
func (s *RootsVotingStorage) Erase(fromID uint64) error
Erase all history starting fromID inclusively.
func (*RootsVotingStorage) GetByNumber ¶
func (s *RootsVotingStorage) GetByNumber(number uint64) (*data.RootsVoting, error)
func (*RootsVotingStorage) GetEarliestUnfinishedVoting ¶
func (s *RootsVotingStorage) GetEarliestUnfinishedVoting() (*data.RootsVoting, error)
func (*RootsVotingStorage) GetEarliestUnfinishedVotings ¶
func (s *RootsVotingStorage) GetEarliestUnfinishedVotings() ([]data.RootsVoting, error)
func (*RootsVotingStorage) GetLatest ¶
func (s *RootsVotingStorage) GetLatest() (*data.RootsVoting, error)
GetLatest roots voting.
func (*RootsVotingStorage) Insert ¶
func (s *RootsVotingStorage) Insert(voting *data.RootsVoting) error
func (*RootsVotingStorage) Select ¶
func (s *RootsVotingStorage) Select(params *data.SelectRootsVotingParams) ([]data.RootsVoting, error)
Select votings with params.
func (*RootsVotingStorage) Update ¶
func (s *RootsVotingStorage) Update(voting *data.RootsVoting) error
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
Storage backed by postgres.
func (*Storage) ConstitutionVotings ¶
func (s *Storage) ConstitutionVotings() data.ConstitutionVotingStorage
ConstitutionVotings storage.
func (*Storage) ContractRegistryAddressVotings ¶
func (s *Storage) ContractRegistryAddressVotings() data.ContractRegistryAddressVotingStorage
ContractRegistryAddressVotings storage.
func (*Storage) ContractRegistryUpgradeVotings ¶
func (s *Storage) ContractRegistryUpgradeVotings() data.ContractRegistryUpgradeVotingStorage
ContractRegistryUpgradeVotings storage.
func (*Storage) EmergencyUpdateVotings ¶
func (s *Storage) EmergencyUpdateVotings() data.EmergencyUpdateVotingStorage
EmergencyUpdateVotings storage.
func (*Storage) EpdrMembershipVotings ¶
func (s *Storage) EpdrMembershipVotings() data.EpdrMembershipVotingStorage
EpdrMembershipVotings storage.
func (*Storage) EpdrParametersVotings ¶
func (s *Storage) EpdrParametersVotings() data.EpdrParametersVotingStorage
EpdrParametersVotings storage.
func (*Storage) EpqfiMembershipVotings ¶
func (s *Storage) EpqfiMembershipVotings() data.EpqfiMembershipVotingStorage
EpqfiMembershipVotings storage.
func (*Storage) EpqfiParametersVotings ¶
func (s *Storage) EpqfiParametersVotings() data.EpqfiParametersVotingStorage
EpqfiParametersVotings storage.
func (*Storage) EprsMembershipVotings ¶
func (s *Storage) EprsMembershipVotings() data.EprsMembershipVotingStorage
EprsMembershipVotings storage.
func (*Storage) EprsParametersVotings ¶
func (s *Storage) EprsParametersVotings() data.EprsParametersVotingStorage
EprsParametersVotings storage.
func (*Storage) GeneralUpdateVotings ¶
func (s *Storage) GeneralUpdateVotings() data.GeneralUpdateVotingStorage
GeneralUpdateVotings storage.
func (*Storage) RootnodesSlashingVotings ¶
func (s *Storage) RootnodesSlashingVotings() data.RootnodesSlashingVotingStorage
RootnodesSlashingVotings storage.
func (*Storage) RootsVotings ¶
func (s *Storage) RootsVotings() data.RootsVotingStorage
RootsVotings storage.
func (*Storage) SummaryMetrics ¶
func (s *Storage) SummaryMetrics() data.SummaryMetricsStorage
SummaryMetrics.
func (*Storage) Transactions ¶
func (s *Storage) Transactions() data.TransactionStorage
Transactions.
func (*Storage) ValidatorsSlashingVotings ¶
func (s *Storage) ValidatorsSlashingVotings() data.ValidatorsSlashingVotingStorage
ValidatorsSlashingVotings storage.
type SummaryMetricsStorage ¶
type SummaryMetricsStorage struct {
// contains filtered or unexported fields
}
SummaryMetricsStorage implements data.SummaryMetricsStorage.
func (*SummaryMetricsStorage) Select ¶
func (s *SummaryMetricsStorage) Select(params *data.SelectSummaryMetricsParams) ([]data.SummaryMetrics, error)
Select blocks with params.
type TransactionStorage ¶
type TransactionStorage struct {
// contains filtered or unexported fields
}
func (*TransactionStorage) Get ¶
func (s *TransactionStorage) Get(hash string) (*data.Transaction, error)
Get Transaction by hash.
func (*TransactionStorage) Insert ¶
func (s *TransactionStorage) Insert(txs ...data.Transaction) error
Insert txs.
func (*TransactionStorage) Select ¶
func (s *TransactionStorage) Select(params *data.SelectTxsParams) ([]data.Transaction, error)
Select txs.
type ValidatorsSlashingVotingStorage ¶
type ValidatorsSlashingVotingStorage struct {
// contains filtered or unexported fields
}
ValidatorsSlashingVotingStorage implements data.ValidatorsSlashingVotingStorage.
func (*ValidatorsSlashingVotingStorage) Erase ¶
func (s *ValidatorsSlashingVotingStorage) Erase(fromID uint64) error
Erase all history starting fromID inclusively.
func (*ValidatorsSlashingVotingStorage) GetByNumber ¶
func (s *ValidatorsSlashingVotingStorage) GetByNumber(number uint64) (*data.ValidatorsSlashingVoting, error)
func (*ValidatorsSlashingVotingStorage) GetEarliestUnfinishedVotings ¶
func (s *ValidatorsSlashingVotingStorage) GetEarliestUnfinishedVotings() ([]data.ValidatorsSlashingVoting, error)
func (*ValidatorsSlashingVotingStorage) GetLatest ¶
func (s *ValidatorsSlashingVotingStorage) GetLatest() (*data.ValidatorsSlashingVoting, error)
GetLatest validators slashing voting.
func (*ValidatorsSlashingVotingStorage) Insert ¶
func (s *ValidatorsSlashingVotingStorage) Insert(voting *data.ValidatorsSlashingVoting) error
func (*ValidatorsSlashingVotingStorage) Select ¶
func (s *ValidatorsSlashingVotingStorage) Select(params *data.SelectValidatorsSlashingVotingParams) ([]data.ValidatorsSlashingVoting, error)
Select votings with params.
func (*ValidatorsSlashingVotingStorage) Update ¶
func (s *ValidatorsSlashingVotingStorage) Update(voting *data.ValidatorsSlashingVoting) error
type VotingStorage ¶
type VotingStorage struct {
// contains filtered or unexported fields
}
VotingStorage implements all votings from package data.
func (*VotingStorage) Select ¶
func (s *VotingStorage) Select(params *data.SelectVotingsParams) ([]interface{}, error)
Select blocks with params.
func (*VotingStorage) Union ¶
func (s *VotingStorage) Union(mainQuery *squirrel.SelectBuilder, query squirrel.SelectBuilder) error
Source Files ¶
- block.go
- constitutionVoting.go
- contractRegistryAddressVoting.go
- contractRegistryUpgradeVoting.go
- emergencyUpdateVoting.go
- epdrMembershipVoting.go
- epdrParametersVoting.go
- epqfiMembershipVoting.go
- epqfiParametersVoting.go
- eprsMembershipVoting.go
- eprsParametersVoting.go
- generalUpdateVoting.go
- metricssummary.go
- payment.go
- rootnodesSlashingVoting.go
- rootsVoting.go
- storage.go
- transaction.go
- validatorsSlashingVoting.go
- votings.go