Versions in this module Expand all Collapse all v0 v0.1.3 Nov 18, 2024 Changes in this version type PoolRegistration + Margin *database.Rat v0.1.2 Nov 14, 2024 v0.1.1 Nov 11, 2024 v0.1.0 Nov 5, 2024 Changes in this version + var MigrateModels = []any + func BlockBlobKey(slot uint64, hash []byte) []byte + func BlockBlobKeyHashHex(slot uint64, hashHex string) ([]byte, error) + func UtxoBlobKey(txId []byte, outputIdx uint32) []byte + func UtxoDelete(db database.Database, utxo Utxo) error + func UtxoDeleteTxn(txn *database.Txn, utxo Utxo) error + func UtxosDeleteTxn(txn *database.Txn, utxos []Utxo) error + type Block struct + Cbor []byte + Hash []byte + ID uint + Number uint64 + Slot uint64 + Type uint + func BlockByNumber(db database.Database, blockNumber uint64) (Block, error) + func BlockByNumberTxn(txn *database.Txn, blockNumber uint64) (Block, error) + func BlockByPoint(db database.Database, point ocommon.Point) (Block, error) + func BlockByPointTxn(txn *database.Txn, point ocommon.Point) (Block, error) + func (Block) TableName() string + func (b Block) Decode() (ledger.Block, error) + type Epoch struct + EpochId uint + EraId uint + ID uint + LengthInSlots uint + SlotLength uint + StartSlot uint64 + func EpochLatest(db database.Database) (Epoch, error) + func EpochLatestTxn(txn *database.Txn) (Epoch, error) + func (Epoch) TableName() string + type PParamUpdate struct + AddedSlot uint64 + Cbor []byte + Epoch uint64 + GenesisHash []byte + ID uint + func (PParamUpdate) TableName() string + type PParams struct + AddedSlot uint64 + Cbor []byte + Epoch uint + EraId uint + ID uint + func (PParams) TableName() string + type PoolRegistration struct + AddedSlot uint64 + Cost uint64 + ID uint + MarginDenom uint64 + MarginNum uint64 + MetadataHash []byte + MetadataUrl string + Owners []PoolRegistrationOwner + Pledge uint64 + PoolKeyHash []byte + Relays []PoolRegistrationRelay + VrfKeyHash []byte + func (PoolRegistration) TableName() string + type PoolRegistrationOwner struct + ID uint + KeyHash []byte + PoolRegistrationID uint + func (PoolRegistrationOwner) TableName() string + type PoolRegistrationRelay struct + Hostname string + ID uint + Ipv4 *net.IP + Ipv6 *net.IP + PoolRegistrationID uint + Port uint + func (PoolRegistrationRelay) TableName() string + type PoolRetirement struct + AddedSlot uint64 + Epoch uint + ID uint + PoolKeyHash []byte + func (PoolRetirement) TableName() string + type StakeDelegation struct + AddedSlot uint64 + ID uint + PoolKeyHash []byte + StakingKey []byte + func (StakeDelegation) TableName() string + type StakeDeregistration struct + AddedSlot uint64 + ID uint + StakingKey []byte + func (StakeDeregistration) TableName() string + type StakeRegistration struct + AddedSlot uint64 + ID uint + StakingKey []byte + func (StakeRegistration) TableName() string + type Utxo struct + AddedSlot uint64 + Cbor []byte + DeletedSlot uint64 + ID uint + OutputIdx uint32 + PaymentKey []byte + StakingKey []byte + TxId []byte + func UtxoByRef(db database.Database, txId []byte, outputIdx uint32) (Utxo, error) + func UtxoByRefTxn(txn *database.Txn, txId []byte, outputIdx uint32) (Utxo, error) + func UtxosByAddress(db database.Database, addr ledger.Address) ([]Utxo, error) + func UtxosByAddressTxn(txn *database.Txn, addr ledger.Address) ([]Utxo, error) + func (Utxo) TableName() string + func (u Utxo) Decode() (ledger.TransactionOutput, error)