Documentation
¶
Index ¶
- Variables
- type Account
- type AuthCommitteeHot
- type BlockNonce
- type Datum
- type Deregistration
- type DeregistrationDrep
- type Drep
- type Epoch
- type PParamUpdate
- type PParams
- type Pool
- type PoolRegistration
- type PoolRegistrationOwner
- type PoolRegistrationRelay
- type PoolRetirement
- type Registration
- type RegistrationDrep
- type ResignCommitteeCold
- type StakeDelegation
- type StakeDeregistration
- type StakeRegistration
- type StakeRegistrationDelegation
- type StakeVoteDelegation
- type StakeVoteRegistrationDelegation
- type Tip
- type UpdateDrep
- type Utxo
- type VoteDelegation
- type VoteRegistrationDelegation
Constants ¶
This section is empty.
Variables ¶
View Source
var MigrateModels = []any{ &Account{}, &AuthCommitteeHot{}, &BlockNonce{}, &Datum{}, &Deregistration{}, &DeregistrationDrep{}, &Drep{}, &Epoch{}, &Pool{}, &PoolRegistration{}, &PoolRegistrationOwner{}, &PoolRegistrationRelay{}, &PoolRetirement{}, &PParams{}, &PParamUpdate{}, &Registration{}, &RegistrationDrep{}, &ResignCommitteeCold{}, &StakeDelegation{}, &StakeDeregistration{}, &StakeRegistration{}, &StakeRegistrationDelegation{}, &StakeVoteDelegation{}, &StakeVoteRegistrationDelegation{}, &Tip{}, &UpdateDrep{}, &Utxo{}, &VoteDelegation{}, &VoteRegistrationDelegation{}, }
MigrateModels contains a list of model objects that should have DB migrations applied
Functions ¶
This section is empty.
Types ¶
type Account ¶ added in v0.5.0
type AuthCommitteeHot ¶ added in v0.4.6
type AuthCommitteeHot struct { ID uint `gorm:"primarykey"` ColdCredential []byte `gorm:"index"` HostCredential []byte `gorm:"index"` AddedSlot uint64 }
func (AuthCommitteeHot) TableName ¶ added in v0.4.6
func (AuthCommitteeHot) TableName() string
type BlockNonce ¶ added in v0.11.0
type BlockNonce struct { ID uint `gorm:"primarykey"` Hash []byte `gorm:"index:hash_slot"` Slot uint64 `gorm:"index:hash_slot"` Nonce []byte IsCheckpoint bool }
func (BlockNonce) TableName ¶ added in v0.11.0
func (BlockNonce) TableName() string
TableName overrides default table name
type Datum ¶ added in v0.9.0
type Deregistration ¶ added in v0.4.6
type Deregistration struct { ID uint `gorm:"primarykey"` StakingKey []byte `gorm:"index"` AddedSlot uint64 }
func (Deregistration) TableName ¶ added in v0.4.6
func (Deregistration) TableName() string
type DeregistrationDrep ¶ added in v0.4.6
type DeregistrationDrep struct { ID uint `gorm:"primarykey"` DrepCredential []byte `gorm:"index"` AddedSlot uint64 DepositAmount uint64 }
func (DeregistrationDrep) TableName ¶ added in v0.4.6
func (DeregistrationDrep) TableName() string
type Drep ¶ added in v0.4.6
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 Pool ¶ added in v0.6.0
type Pool struct { ID uint `gorm:"primarykey"` PoolKeyHash []byte `gorm:"uniqueIndex"` VrfKeyHash []byte Pledge types.Uint64 Cost types.Uint64 Margin *types.Rat RewardAccount []byte Owners []PoolRegistrationOwner Relays []PoolRegistrationRelay Registration []PoolRegistration Retirement []PoolRetirement }
type PoolRegistration ¶
type PoolRegistration struct { ID uint `gorm:"primarykey"` PoolID uint PoolKeyHash []byte `gorm:"index"` VrfKeyHash []byte Pledge types.Uint64 Cost types.Uint64 Margin *types.Rat RewardAccount []byte 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 PoolID uint KeyHash []byte }
func (PoolRegistrationOwner) TableName ¶
func (PoolRegistrationOwner) TableName() string
type PoolRegistrationRelay ¶
type PoolRegistrationRelay struct { ID uint `gorm:"primarykey"` PoolRegistrationID uint PoolID 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"` PoolID uint PoolKeyHash []byte `gorm:"index"` Epoch uint64 AddedSlot uint64 }
func (PoolRetirement) TableName ¶
func (PoolRetirement) TableName() string
type Registration ¶ added in v0.4.6
type Registration struct { ID uint `gorm:"primarykey"` StakingKey []byte `gorm:"index"` AddedSlot uint64 DepositAmount uint64 }
func (Registration) TableName ¶ added in v0.4.6
func (Registration) TableName() string
type RegistrationDrep ¶ added in v0.4.6
type RegistrationDrep struct { ID uint `gorm:"primarykey"` DrepCredential []byte `gorm:"index"` AddedSlot uint64 DepositAmount uint64 AnchorUrl string AnchorHash []byte }
func (RegistrationDrep) TableName ¶ added in v0.4.6
func (RegistrationDrep) TableName() string
type ResignCommitteeCold ¶ added in v0.4.6
type ResignCommitteeCold struct { ID uint `gorm:"primarykey"` ColdCredential []byte `gorm:"index"` AnchorUrl string AnchorHash []byte AddedSlot uint64 }
func (ResignCommitteeCold) TableName ¶ added in v0.4.6
func (ResignCommitteeCold) 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 StakeRegistrationDelegation ¶ added in v0.4.6
type StakeRegistrationDelegation struct { ID uint `gorm:"primarykey"` StakingKey []byte `gorm:"index"` PoolKeyHash []byte `gorm:"index"` AddedSlot uint64 DepositAmount uint64 }
func (StakeRegistrationDelegation) TableName ¶ added in v0.4.6
func (StakeRegistrationDelegation) TableName() string
type StakeVoteDelegation ¶ added in v0.4.6
type StakeVoteDelegation struct { ID uint `gorm:"primarykey"` StakingKey []byte `gorm:"index"` PoolKeyHash []byte `gorm:"index"` Drep []byte `gorm:"index"` AddedSlot uint64 }
func (StakeVoteDelegation) TableName ¶ added in v0.4.6
func (StakeVoteDelegation) TableName() string
type StakeVoteRegistrationDelegation ¶ added in v0.4.6
type StakeVoteRegistrationDelegation struct { ID uint `gorm:"primarykey"` StakingKey []byte `gorm:"index"` PoolKeyHash []byte `gorm:"index"` Drep []byte `gorm:"index"` AddedSlot uint64 DepositAmount uint64 }
func (StakeVoteRegistrationDelegation) TableName ¶ added in v0.4.6
func (StakeVoteRegistrationDelegation) TableName() string
type UpdateDrep ¶ added in v0.4.6
type UpdateDrep struct { ID uint `gorm:"primarykey"` Credential []byte `gorm:"index"` AnchorUrl string AnchorHash []byte AddedSlot uint64 }
func (UpdateDrep) TableName ¶ added in v0.4.6
func (UpdateDrep) 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"` Amount uint64 `gorm:"index"` Cbor []byte `gorm:"-"` // This is here for convenience but not represented in the metadata DB }
type VoteDelegation ¶ added in v0.4.6
type VoteDelegation struct { ID uint `gorm:"primarykey"` StakingKey []byte `gorm:"index"` Drep []byte `gorm:"index"` AddedSlot uint64 }
func (VoteDelegation) TableName ¶ added in v0.4.6
func (VoteDelegation) TableName() string
type VoteRegistrationDelegation ¶ added in v0.4.6
type VoteRegistrationDelegation struct { ID uint `gorm:"primarykey"` StakingKey []byte `gorm:"index"` Drep []byte `gorm:"index"` AddedSlot uint64 DepositAmount uint64 }
func (VoteRegistrationDelegation) TableName ¶ added in v0.4.6
func (VoteRegistrationDelegation) TableName() string
Click to show internal directories.
Click to hide internal directories.