Documentation
¶
Index ¶
- type AdaPots
- type Block
- type CollateralTxIn
- type CostModel
- type Datum
- type Delegation
- type DelistedPool
- type Epoch
- type EpochParam
- type EpochRewardTotalReceived
- type EpochStake
- type EpochSyncTime
- type MaTxMint
- type MaTxOut
- type Meta
- type MultiAsset
- type ParamProposal
- type PoolHash
- type PoolMetadataRef
- type PoolOfflineData
- type PoolOfflineFetchError
- type PoolOwner
- type PoolRelay
- type PoolRetire
- type PoolUpdate
- type PotTransfer
- type Redeemer
- type Reserve
- type ReservedPoolTicker
- type Reward
- type Script
- type SlotLeader
- type StakeAddress
- type StakeDeregistration
- type StakeRegistration
- type Treasury
- type Tx
- type TxIn
- type TxMetadata
- type TxOut
- type Withdrawal
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdaPots ¶ added in v0.3.0
type AdaPots struct {
Id int64 `gorm:"column:id"`
SlotNumber uint32 `gorm:"column:slot_no"`
EpochNumber uint32 `gorm:"column:epoch_no"`
Treasury uint64 `gorm:"column:treasury"` // This is a "lovelace" column
Reserves uint64 `gorm:"column:reserves"` // This is a "lovelace" column
Rewards uint64 `gorm:"column:rewards"` // This is a "lovelace" column
Utxo uint64 `gorm:"column:utxo"` // This is a "lovelace" column
Deposits uint64 `gorm:"column:deposits"` // This is a "lovelace" column
Fees uint64 `gorm:"column:fees"` // This is a "lovelace" column
BlockId int64 `gorm:"column:block_id"` // block(id)
}
type Block ¶
type Block struct {
Id int64 `gorm:"column:id"`
Hash []byte `gorm:"column:hash"` // This is a "hash32type" column
EpochNumber uint16 `gorm:"column:epoch_no"`
SlotNumber uint32 `gorm:"column:slot_no"`
EpochSlotNumber uint32 `gorm:"column:epoch_slot_no"`
BlockNumber uint32 `gorm:"column:block_no"`
PreviousID int64 `gorm:"column:previous_id"` // block(id)
SlotLeaderID int64 `gorm:"column:slot_leader_id"` // slot_leader(id)
Size uint32 `gorm:"column:size"`
Time *time.Time `gorm:"column:time"`
TxCount int64 `gorm:"column:tx_count"`
ProtoMajor uint16 `gorm:"column:proto_major"`
ProtoMinor uint16 `gorm:"column:proto_minor"`
VrfKey string `gorm:"column:vrf_key"`
OpCert []byte `gorm:"column:op_cert"` // This is a "hash32type" column
OpCertCounter uint32 `gorm:"column:op_cert_counter"` // This is a "word63type" column
}
type CollateralTxIn ¶ added in v0.3.0
type CollateralTxIn struct {
Id int64 `gorm:"column:id"`
TxInId int64 `gorm:"column:tx_in_id"` // tx(id)
TxOutId int64 `gorm:"column:tx_out_id"` // tx(id)
TxOutIndex string `gorm:"column:tx_out_index"` // This is a "txindex" column
}
func (CollateralTxIn) TableName ¶ added in v0.3.0
func (CollateralTxIn) TableName() string
Override default pluralized table name
type CostModel ¶ added in v0.3.0
type Datum ¶ added in v0.3.0
type Delegation ¶ added in v0.3.0
type Delegation struct {
Id int64 `gorm:"column:id"`
AddrId int64 `gorm:"column:addr_id"` // stake_address(id)
CertIndex int32 `gorm:"column:cert_index"`
PoolHashId int64 `gorm:"column:pool_hash_id"` // pool_hash(id)
ActiveEpochNumber int64 `gorm:"column:active_epoch_no"`
TxId int64 `gorm:"column:tx_id"` // tx(id)
SlotNumber uint32 `gorm:"column:slot_no"`
RedeemerId int64 `gorm:"column:redeemer_id"` // redeemer(id)
}
func (Delegation) TableName ¶ added in v0.3.0
func (Delegation) TableName() string
Override default pluralized table name
type DelistedPool ¶ added in v0.3.0
type DelistedPool struct {
Id int64 `gorm:"column:id"`
HashRaw []byte `gorm:"column:hash_raw"` // This is a "hash28type" column
}
func (DelistedPool) TableName ¶ added in v0.3.0
func (DelistedPool) TableName() string
Override default pluralized table name
type Epoch ¶
type Epoch struct {
Id int64 `gorm:"column:id"`
OutSum uint64 `gorm:"column:out_sum"` // This type may not be large enough. The DB column uses NUMERIC(38, 0)
Fees uint64 `gorm:"column:fees"` // This is a "lovelace" column
TxCount uint32 `gorm:"column:tx_count"`
BlockCount uint32 `gorm:"column:blk_count"`
EpochNumber uint32 `gorm:"column:no"`
StartTime *time.Time `gorm:"column:start_time"`
EndTime *time.Time `gorm:"column:end_time"`
}
type EpochParam ¶ added in v0.3.0
type EpochParam struct {
Id int64 `gorm:"column:id"`
EpochNumber uint32 `gorm:"column:epoch_num"`
MinFeeA uint32 `gorm:"column:min_fee_a"`
MinFeeB uint32 `gorm:"column:min_fee_b"`
MaxBlockSize uint32 `gorm:"column:max_block_size"`
MaxTxSize uint32 `gorm:"column:max_tx_size"`
MaxBhSize uint32 `gorm:"column:max_bh_size"`
KeyDeposit uint64 `gorm:"column:key_deposit"` // This is a "lovelace" column
PoolDeposit uint64 `gorm:"column:pool_deposit"` // This is a "lovelace" column
MaxEpoch uint32 `gorm:"column:max_epoch"`
OptimalPoolCount uint32 `gorm:"column:optimal_pool_count"`
Influence float32 `gorm:"column:influence"`
MonetaryExpandRate float32 `gorm:"column:monetary_expand_rate"`
TreasuryGrowthRate float32 `gorm:"column:treasury_growth_rate"`
Decentralisation float32 `gorm:"column:decentralisation"`
Entropy []byte `gorm:"column:entropy"` // This is a "hash32type" column
ProtocolMajor uint32 `gorm:"column:protocol_major"`
ProtocolMinor uint32 `gorm:"column:protocol_minor"`
MinUtxoValue uint64 `gorm:"column:min_utxo_value"` // This is a "lovelace" column
MinPoolCost uint64 `gorm:"column:min_pool_cost"` // This is a "lovelace" column
Nonce []byte `gorm:"column:nonce"` // This is a "hash32type" column
CoinsPerUtxoWord uint64 `gorm:"column:coins_per_utxo_word"` // This is a "lovelace" column
CostModelId int64 `gorm:"column:cost_model_id"` // cost_model(id)
PriceMem float32 `gorm:"column:price_mem"`
PriceStep float32 `gorm:"column:price_step"`
MaxTxExMem string `gorm:"column:max_tx_ex_mem"` // This is a "word64type" column
MaxTxExSteps string `gorm:"column:max_tx_ex_steps"` // This is a "word64type" column
MaxBlockExMem string `gorm:"column:max_block_ex_mem"` // This is a "word64type" column
MaxBlockExSteps string `gorm:"column:max_block_ex_steps"` // This is a "word64type" column
MaxValSize string `gorm:"column:max_val_size"` // This is a "word64type" column
CollateralPercent uint32 `gorm:"column:collateral_percent"`
MaxCollateralInputs uint32 `gorm:"column:max_collateral_inputs"`
BlockId int64 `gorm:"column:block_id"` // block(id)
}
func (EpochParam) TableName ¶ added in v0.3.0
func (EpochParam) TableName() string
Override default pluralized table name
type EpochRewardTotalReceived ¶ added in v0.3.0
type EpochRewardTotalReceived struct {
Id int64 `gorm:"column:id"`
EarnedEpoch uint32 `gorm:"column:earned_epoch"`
Amount uint64 `gorm:"column:amount"` // This is a "lovelace" column
}
func (EpochRewardTotalReceived) TableName ¶ added in v0.3.0
func (EpochRewardTotalReceived) TableName() string
Override default pluralized table name
type EpochStake ¶ added in v0.3.0
type EpochStake struct {
Id int64 `gorm:"column:id"`
AddrId int64 `gorm:"column:addr_id"` // stake_address(id)
PoolId int64 `gorm:"column:pool_id"` // pool_hash(id)
Amount uint32 `gorm:"column:amount"`
EpochNumber uint32 `gorm:"column:epoch_no"`
}
func (EpochStake) TableName ¶ added in v0.3.0
func (EpochStake) TableName() string
Override default table name
type EpochSyncTime ¶ added in v0.3.0
type EpochSyncTime struct {
Id int64 `gorm:"column:id"`
EpochNumber int64 `gorm:"column:no"`
Seconds uint64 `gorm:"column:seconds"` // This is a "word63type" column
State string `gorm:"column:state"` // This is a "syncstatetype" column
}
func (EpochSyncTime) TableName ¶ added in v0.3.0
func (EpochSyncTime) TableName() string
Override default pluralized table name
type MaTxMint ¶ added in v0.3.0
type MaTxOut ¶ added in v0.3.0
type Meta ¶ added in v0.2.0
type MultiAsset ¶ added in v0.3.0
type MultiAsset struct {
Id int64 `gorm:"column:id"`
Policy []byte `gorm:"column:policy"` // This is a "hash28type" column
Name []byte `gorm:"column:name"` // This is a "asset32type" column
Fingerprint string `gorm:"column:fingerprint"`
}
func (MultiAsset) TableName ¶ added in v0.3.0
func (MultiAsset) TableName() string
Override default table name
type ParamProposal ¶ added in v0.3.0
type ParamProposal struct {
Id int64 `gorm:"column:id"`
EpochNumber uint32 `gorm:"column:epoch_num"`
Key []byte `gorm:"column:key"` // This is a "hash28type" column
MinFeeA string `gorm:"column:min_fee_a"` // This is a "word64type" column
MinFeeB string `gorm:"column:min_fee_b"` // This is a "word64type" column
MaxBlockSize string `gorm:"column:max_block_size"` // This is a "word64type" column
MaxTxSize string `gorm:"column:max_tx_size"` // This is a "word64type" column
MaxBhSize string `gorm:"column:max_bh_size"` // This is a "word64type" column
KeyDeposit uint64 `gorm:"column:key_deposit"` // This is a "lovelace" column
PoolDeposit uint64 `gorm:"column:pool_deposit"` // This is a "lovelace" column
MaxEpoch uint32 `gorm:"column:max_epoch"` // This is a "word64type" column
OptimalPoolCount uint32 `gorm:"column:optimal_pool_count"` // This is a "word64type" column
Influence float32 `gorm:"column:influence"`
MonetaryExpandRate float32 `gorm:"column:monetary_expand_rate"`
TreasuryGrowthRate float32 `gorm:"column:treasury_growth_rate"`
Decentralisation float32 `gorm:"column:decentralisation"`
Entropy []byte `gorm:"column:entropy"` // This is a "hash32type" column
ProtocolMajor uint32 `gorm:"column:protocol_major"`
ProtocolMinor uint32 `gorm:"column:protocol_minor"`
MinUtxoValue uint64 `gorm:"column:min_utxo_value"` // This is a "lovelace" column
MinPoolCost uint64 `gorm:"column:min_pool_cost"` // This is a "lovelace" column
CoinsPerUtxoWord uint64 `gorm:"column:coins_per_utxo_word"` // This is a "lovelace" column
CostModelId int64 `gorm:"column:cost_model_id"` // cost_model(id)
PriceMem float32 `gorm:"column:price_mem"`
PriceStep float32 `gorm:"column:price_step"`
MaxTxExMem string `gorm:"column:max_tx_ex_mem"` // This is a "word64type" column
MaxTxExSteps string `gorm:"column:max_tx_ex_steps"` // This is a "word64type" column
MaxBlockExMem string `gorm:"column:max_block_ex_mem"` // This is a "word64type" column
MaxBlockExSteps string `gorm:"column:max_block_ex_steps"` // This is a "word64type" column
MaxValSize string `gorm:"column:max_val_size"` // This is a "word64type" column
CollateralPercent uint32 `gorm:"column:collateral_percent"`
MaxCollateralInputs uint32 `gorm:"column:max_collateral_inputs"`
RegisteredTxId int64 `gorm:"column:registered_tx_id"` // tx(id)
}
func (ParamProposal) TableName ¶ added in v0.3.0
func (ParamProposal) TableName() string
Override default pluralized table name
type PoolHash ¶ added in v0.3.0
type PoolMetadataRef ¶ added in v0.3.0
type PoolMetadataRef struct {
Id int64 `gorm:"column:id"`
HashId int64 `gorm:"column:hash_id"` // pool_hash(id)
Url string `gorm:"column:url"`
Hash []byte `gorm:"column:hash"` // This is a "hash32type" column
RegisterdTxId int64 `gorm:"column:registered_tx_id"` // tx(id)
}
func (PoolMetadataRef) TableName ¶ added in v0.3.0
func (PoolMetadataRef) TableName() string
Override default pluralized table name
type PoolOfflineData ¶ added in v0.3.0
type PoolOfflineData struct {
Id int64 `gorm:"column:id"`
PoolId int64 `gorm:"column:pool_id"` // pool_hash(id)
TickerName string `gorm:"column:ticker_name"`
Hash []byte `gorm:"column:hash"` // This is a "hash32type" column
Json jsonb `gorm:"column:json"`
Bytes []byte `gorm:"column:bytes"`
PmrId int64 `gorm:"column:pmr_id"` // pool_metadata_ref(id)
}
func (PoolOfflineData) TableName ¶ added in v0.3.0
func (PoolOfflineData) TableName() string
Override default pluralized table name
type PoolOfflineFetchError ¶ added in v0.3.0
type PoolOfflineFetchError struct {
Id int64 `gorm:"column:id"`
PoolId int64 `gorm:"column:pool_id"` // pool_hash(id)
FetchTime *time.Time `gorm:"column:fetch_time"`
PmrId int64 `gorm:"column:pmr_id"` // pool_metadata_ref(id)
FetchError string `gorm:"column:fetch_error"`
RetryCount uint32 `gorm:"column:retry_count"`
}
func (PoolOfflineFetchError) TableName ¶ added in v0.3.0
func (PoolOfflineFetchError) TableName() string
Override default pluralized table name
type PoolOwner ¶ added in v0.3.0
type PoolRelay ¶ added in v0.3.0
type PoolRetire ¶ added in v0.3.0
type PoolRetire struct {
Id int64 `gorm:"column:id"`
HashId int64 `gorm:"column:hash_id"` // pool_hash(id)
CertIndex int32 `gorm:"column:cert_index"`
AnnounceTxnId int64 `gorm:"column:announced_tx_id"` // tx(id)
RetiringEpoch uint64 `gorm:"column:retiring_epoch"`
}
func (PoolRetire) TableName ¶ added in v0.3.0
func (PoolRetire) TableName() string
Override default pluralized table name
type PoolUpdate ¶ added in v0.3.0
type PoolUpdate struct {
Id int64 `gorm:"column:id"`
HashId int64 `gorm:"column:hash_id"` // pool_hash(id)
CertIndex int32 `gorm:"column:cert_index"`
VrfKeyHash []byte `gorm:"column:vrf_key_hash"` // This is a "hash32type" column
Pledge uint64 `gorm:"column:pledge"` // This is a "lovelace" column
RewardAddr string `gorm:"column:reward_addr"` // This is a "addr29type" column
ActiveEpochNumber int64 `gorm:"column:active_epoch_no"`
MetaId int64 `gorm:"column:meta_id"` // pool_metadata_ref(id)
Margin float32 `gorm:"column:margin"`
FixedCost uint64 `gorm:"column:fixed_cost"` // This is a "lovelace" column
RegisterdTxId int64 `gorm:"column:registered_tx_id"` // tx(id)
}
func (PoolUpdate) TableName ¶ added in v0.3.0
func (PoolUpdate) TableName() string
Override default pluralized table name
type PotTransfer ¶ added in v0.3.0
type PotTransfer struct {
Id int64 `gorm:"column:id"`
CertIndex int32 `gorm:"column:cert_index"`
Treasury uint64 `gorm:"column:treasury"` // This is a "int65type" column
Reserves uint64 `gorm:"column:reserves"` // This is a "int65type" column
TxId int64 `gorm:"column:tx_id"` // tx(id)
}
func (PotTransfer) TableName ¶ added in v0.3.0
func (PotTransfer) TableName() string
Override default table name
type Redeemer ¶ added in v0.3.0
type Redeemer struct {
Id int64 `gorm:"column:id"`
TxId int64 `gorm:"column:tx_id"` // tx(id)
UnitMem uint32 `gorm:"column:unit_mem"` // This is a "word63type" column
UnitSteps uint32 `gorm:"column:unit_steps"` // This is a "word63type" column
Fee uint64 `gorm:"column:fee"` // This is a "lovelace" column
Purpose string `gorm:"column:purpose"` // This is a "scriptpurposetype" column
Index uint32 `gorm:"column:index"`
ScriptHash []byte `gorm:"column:script_hash"` // This is a "hash28type" column
DatumId int64 `gorm:"column:datum_id"` // datum(id)
}
type Reserve ¶ added in v0.3.0
type ReservedPoolTicker ¶ added in v0.3.0
type ReservedPoolTicker struct {
Id int64 `gorm:"column:id"`
Name string `gorm:"column:name"`
PoolHash string `gorm:"column:pool_hash"`
}
func (ReservedPoolTicker) TableName ¶ added in v0.3.0
func (ReservedPoolTicker) TableName() string
Override default pluralized table name
type Reward ¶ added in v0.3.0
type Reward struct {
Id int64 `gorm:"column:id"`
AddrId int64 `gorm:"column:addr_id"` // stake_address(id)
Type string `gorm:"column:type"` // This is a "rewardtype" column
Amount uint64 `gorm:"column:amount"` // This is a "lovelace" column
EarnedEpoch uint32 `gorm:"column:earned_epoch"`
SpendableEpoch uint32 `gorm:"column:spendable_epoch"`
PoolId int64 `gorm:"column:pool_id"` // pool_hash(id)
}
type Script ¶ added in v0.3.0
type Script struct {
Id int64 `gorm:"column:id"`
TxId int64 `gorm:"column:tx_id"` // tx(id)
Hash []byte `gorm:"column:hash"` // This is a "hash28type" column
Type string `gorm:"column:type"` // This is a "scripttype" column
Json jsonb `gorm:"column:json"` // This is a "jsonb" type
Bytes []byte `gorm:"column:bytes"`
SerialisedSize uint32 `gorm:"column:serialised_size"`
}
type SlotLeader ¶ added in v0.3.0
type SlotLeader struct {
Id int64 `gorm:"column:id"`
Hash []byte `gorm:"column:hash"` // This is a "hash28type" column
PoolId int64 `gorm:"column:pool_id"` // pool_hash(id)
Description string `gorm:"column:description"`
}
func (SlotLeader) TableName ¶ added in v0.3.0
func (SlotLeader) TableName() string
Override default table name
type StakeAddress ¶ added in v0.3.0
type StakeAddress struct {
Id int64 `gorm:"column:id"`
HashRaw []byte `gorm:"column:hash_raw"` // This is a "addr29type" column
View string `gorm:"column:view"`
ScriptHash []byte `gorm:"column:script_hash"` // This is a "hash28type" column
RegisteredTxId int64 `gorm:"column:registered_tx_id"` // tx(id)
}
func (StakeAddress) TableName ¶ added in v0.3.0
func (StakeAddress) TableName() string
Override default pluralized table name
type StakeDeregistration ¶ added in v0.3.0
type StakeDeregistration struct {
Id int64 `gorm:"column:id"`
AddrId int64 `gorm:"column:addr_id"` // stake_address(id)
CertIndex int32 `gorm:"column:cert_index"`
EpochNumber int64 `gorm:"column:epoch_no"`
TxId int64 `gorm:"column:tx_id"` // tx(id)
RedeemerId int64 `gorm:"column:redeemer_id"` // redeemer(id)
}
func (StakeDeregistration) TableName ¶ added in v0.3.0
func (StakeDeregistration) TableName() string
Override default pluralized table name
type StakeRegistration ¶ added in v0.3.0
type StakeRegistration struct {
Id int64 `gorm:"column:id"`
AddrId int64 `gorm:"column:addr_id"` // stake_address(id)
CertIndex int32 `gorm:"column:cert_index"`
EpochNumber int64 `gorm:"column:epoch_no"`
TxId int64 `gorm:"column:tx_id"` // tx(id)
}
func (StakeRegistration) TableName ¶ added in v0.3.0
func (StakeRegistration) TableName() string
Override default pluralized table name
type Treasury ¶ added in v0.3.0
type Tx ¶ added in v0.3.0
type Tx struct {
Id int64 `gorm:"column:id"`
Hash []byte `gorm:"column:hash"` // This is a "hash32type" column
BlockId int64 `gorm:"column:block_id"` // block(id)
BlockIndex uint32 `gorm:"column:block_index"`
OutSum uint64 `gorm:"column:out_sum"` // This is a "lovelace" column
Fee uint64 `gorm:"column:fee"` // This is a "lovelace" column
Deposit int64 `gorm:"column:deposit"`
Size uint32 `gorm:"column:size"`
InvalidBefore string `gorm:"column:invalid_before"` // This is a "word64type" column
InvalidAfter string `gorm:"column:invalid_after"` // This is a "word64type" column
ValidContract bool `gorm:"column:valid_contract"`
ScriptSize uint32 `gorm:"column:script_size"`
}
type TxIn ¶ added in v0.3.0
type TxMetadata ¶ added in v0.3.0
type TxMetadata struct {
Id int64 `gorm:"column:id"`
Key string `gorm:"column:key"` // This is a "word64type" column
Json jsonb `gorm:"column:json"` // This is a "jsonb" type
Bytes []byte `gorm:"column:bytes"`
TxId int64 `gorm:"column:tx_id"` // tx(id)
}
func (TxMetadata) TableName ¶ added in v0.3.0
func (TxMetadata) TableName() string
Override default pluralized table name
type TxOut ¶ added in v0.3.0
type TxOut struct {
Id int64 `gorm:"column:id"`
TxId int64 `gorm:"column:tx_id"` // tx(id)
Index string `gorm:"column:index"` // This is a "txindex" column
Address string `gorm:"column:address"`
AddressRaw []byte `gorm:"column:address_raw"`
AddressHasScript bool `gorm:"column:address_has_script"`
PaymentCred []byte `gorm:"column:payment_cred"` // This is a "hash28type" column
StakeAddressId int64 `gorm:"column:stake_address_id"` // stake_address(id)
Value uint64 `gorm:"column:value"` // This is a "lovelace" column
DataHash []byte `gorm:"column:data_hash"` // This is a "hash32type" column
}
type Withdrawal ¶ added in v0.3.0
type Withdrawal struct {
Id int64 `gorm:"column:id"`
AddrId int64 `gorm:"column:addr_id"` // stake_address(id)
Amount uint64 `gorm:"column:amount"` // This is a "lovelace" column
RedeemerId int64 `gorm:"column:redeemer_id"` // redeemer(id)
TxId int64 `gorm:"column:tx_id"` // tx(id)
}
func (Withdrawal) TableName ¶ added in v0.3.0
func (Withdrawal) TableName() string
Override default pluralized table name
Source Files
¶
- ada_pots.go
- block.go
- collateral_tx_in.go
- cost_model.go
- datum.go
- delegation.go
- delisted_pool.go
- epoch.go
- epoch_param.go
- epoch_reward_total_received.go
- epoch_stake.go
- epoch_sync_time.go
- ma_tx_mint.go
- ma_tx_out.go
- meta.go
- multi_asset.go
- param_proposal.go
- pool_hash.go
- pool_metadata_ref.go
- pool_offline_data.go
- pool_offline_fetch_error.go
- pool_owner.go
- pool_relay.go
- pool_retire.go
- pool_update.go
- pot_transfer.go
- redeemer.go
- reserve.go
- reserved_pool_ticker.go
- reward.go
- script.go
- slot_leader.go
- stake_address.go
- stake_deregistration.go
- stake_registration.go
- treasury.go
- tx.go
- tx_in.go
- tx_metadata.go
- tx_out.go
- withdrawal.go