Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var MigrateModels = []any{ &Epoch{}, &PoolRegistration{}, &PoolRegistrationOwner{}, &PoolRegistrationRelay{}, &PoolRetirement{}, &PParams{}, &PParamUpdate{}, &StakeDelegation{}, &StakeDeregistration{}, &StakeRegistration{}, &Tip{}, &Utxo{}, }
MigrateModels contains a list of model objects that should have DB migrations applied
Functions ¶
This section is empty.
Types ¶
type Epoch ¶
type PParamUpdate ¶
type PParamUpdate struct { ID uint `gorm:"primarykey"` GenesisHash []byte Cbor []byte AddedSlot uint64 Epoch uint64 }
func (PParamUpdate) TableName ¶
func (PParamUpdate) TableName() string
type PParams ¶
type PoolRegistration ¶
type PoolRegistration struct { ID uint `gorm:"primarykey"` PoolKeyHash []byte `gorm:"index"` VrfKeyHash []byte Pledge Uint64 Cost Uint64 Margin *Rat Owners []PoolRegistrationOwner Relays []PoolRegistrationRelay MetadataUrl string MetadataHash []byte AddedSlot uint64 DepositAmount uint64 }
func (PoolRegistration) TableName ¶
func (PoolRegistration) TableName() string
type PoolRegistrationOwner ¶
type PoolRegistrationOwner struct { ID uint `gorm:"primarykey"` PoolRegistrationID uint KeyHash []byte }
func (PoolRegistrationOwner) TableName ¶
func (PoolRegistrationOwner) TableName() string
type PoolRegistrationRelay ¶
type PoolRegistrationRelay struct { ID uint `gorm:"primarykey"` PoolRegistrationID uint Port uint Ipv4 *net.IP Ipv6 *net.IP Hostname string }
func (PoolRegistrationRelay) TableName ¶
func (PoolRegistrationRelay) TableName() string
type PoolRetirement ¶
type PoolRetirement struct { ID uint `gorm:"primarykey"` PoolKeyHash []byte `gorm:"index"` Epoch uint64 AddedSlot uint64 }
func (PoolRetirement) TableName ¶
func (PoolRetirement) TableName() string
type StakeDelegation ¶
type StakeDelegation struct { ID uint `gorm:"primarykey"` StakingKey []byte `gorm:"index"` PoolKeyHash []byte `gorm:"index"` AddedSlot uint64 }
func (StakeDelegation) TableName ¶
func (StakeDelegation) TableName() string
type StakeDeregistration ¶
type StakeDeregistration struct { ID uint `gorm:"primarykey"` StakingKey []byte `gorm:"index"` AddedSlot uint64 }
func (StakeDeregistration) TableName ¶
func (StakeDeregistration) TableName() string
type StakeRegistration ¶
type StakeRegistration struct { ID uint `gorm:"primarykey"` StakingKey []byte `gorm:"index"` AddedSlot uint64 DepositAmount uint64 }
func (StakeRegistration) TableName ¶
func (StakeRegistration) TableName() string
type Utxo ¶
type Utxo struct { ID uint `gorm:"primarykey"` TxId []byte `gorm:"index:tx_id_output_idx"` OutputIdx uint32 `gorm:"index:tx_id_output_idx"` AddedSlot uint64 `gorm:"index"` DeletedSlot uint64 `gorm:"index"` PaymentKey []byte `gorm:"index"` StakingKey []byte `gorm:"index"` Cbor []byte `gorm:"-"` // This is here for convenience but not represented in the metadata DB }
Click to show internal directories.
Click to hide internal directories.