models

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 23, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

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)
}

func (AdaPots) TableName added in v0.3.0

func (AdaPots) TableName() string

Override default table name

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
}

func (Block) TableName

func (Block) TableName() string

Override default pluralized table name

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 CostModel struct {
	Id      int64 `gorm:"column:id"`
	Costs   jsonb `gorm:"column:costs"`    // This is a "jsonb" column
	BlockId int64 `gorm:"column:block_id"` // block(id)
}

func (CostModel) TableName added in v0.3.0

func (CostModel) TableName() string

Override default pluralized table name

type Datum added in v0.3.0

type Datum struct {
	Id    int64  `gorm:"column:id"`
	Hash  []byte `gorm:"column:hash"`  // This is a "hash32type" column
	TxId  int64  `gorm:"column:tx_id"` // tx(id)
	Value jsonb  `gorm:"column:value"` // This is a "jsonb" column
}

func (Datum) TableName added in v0.3.0

func (Datum) TableName() string

Override default pluralized table name

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"`
}

func (Epoch) TableName

func (Epoch) TableName() string

Override default pluralized table name

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 MaTxMint struct {
	Id       int64 `gorm:"column:id"`
	Quantity int64 `gorm:"column:quantity"` // This is a "int65type" column
	TxId     int64 `gorm:"column:tx_id"`    // tx(id)
	Ident    int64 `gorm:"column:ident"`    // multi_asset(id)
}

func (MaTxMint) TableName added in v0.3.0

func (MaTxMint) TableName() string

Override default table name

type MaTxOut added in v0.3.0

type MaTxOut struct {
	Id       int64  `gorm:"column:id"`
	Quantity uint64 `gorm:"column:quantity"`  // This is a "word64type" column
	TxOutId  int64  `gorm:"column:tx_out_id"` // tx_out(id)
	Ident    int64  `gorm:"column:ident"`     // multi_asset(id)
}

func (MaTxOut) TableName added in v0.3.0

func (MaTxOut) TableName() string

Override default table name

type Meta added in v0.2.0

type Meta struct {
	Id        int64      `gorm:"column:id"`
	StartTime *time.Time `gorm:"column:start_time"`
	Network   string     `gorm:"column:network_name"`
}

func (Meta) TableName added in v0.2.0

func (Meta) TableName() string

Override default pluralized table name

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 PoolHash struct {
	Id      int64  `gorm:"column:id"`
	HashRaw []byte `gorm:"column:hash_raw"` // This is a "hash28type" column
	View    string `gorm:"column:view"`
}

func (PoolHash) TableName added in v0.3.0

func (PoolHash) TableName() string

Override default pluralized table name

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 PoolOwner struct {
	Id            int64 `gorm:"column:id"`
	AddrId        int64 `gorm:"column:addr_id"`          // stake_address(id)
	PoolHashId    int64 `gorm:"column:pool_hash_id"`     // pool_hash(id)
	RegisterdTxId int64 `gorm:"column:registered_tx_id"` // tx(id)
}

func (PoolOwner) TableName added in v0.3.0

func (PoolOwner) TableName() string

Override default pluralized table name

type PoolRelay added in v0.3.0

type PoolRelay struct {
	Id         int64  `gorm:"column:id"`
	UpdateId   int64  `gorm:"column:update_id"` // pool_update(id)
	Ipv4       string `gorm:"column:ipv4"`
	Ipv6       string `gorm:"column:ipv6"`
	DnsName    string `gorm:"column:dns_name"`
	DnsSrvName string `gorm:"column:dns_srv_name"`
	Port       int32  `gorm:"column:port"`
}

func (PoolRelay) TableName added in v0.3.0

func (PoolRelay) TableName() string

Override default pluralized table name

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)
}

func (Redeemer) TableName added in v0.3.0

func (Redeemer) TableName() string

Override default pluralized table name

type Reserve added in v0.3.0

type Reserve struct {
	Id        int64  `gorm:"column:id"`
	AddrId    int64  `gorm:"column:addr_id"` // stake_address(id)
	CertIndex int32  `gorm:"column:cert_index"`
	Amount    uint64 `gorm:"column:amount"` // This is a "int65type" column
	TxId      int64  `gorm:"column:tx_id"`  // tx(id)
}

func (Reserve) TableName added in v0.3.0

func (Reserve) TableName() string

Override default table name

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)
}

func (Reward) TableName added in v0.3.0

func (Reward) TableName() string

Override default pluralized table name

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"`
}

func (Script) TableName added in v0.3.0

func (Script) TableName() string

Override default pluralized table name

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 Treasury struct {
	Id        int64  `gorm:"column:id"`
	AddrId    int64  `gorm:"column:addr_id"` // stake_address(id)
	CertIndex int32  `gorm:"column:cert_index"`
	Amount    uint64 `gorm:"column:amount"` // This is a "int65type" column
	TxId      int64  `gorm:"column:tx_id"`  // tx(id)
}

func (Treasury) TableName added in v0.3.0

func (Treasury) TableName() string

Override default table name

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"`
}

func (Tx) TableName added in v0.3.0

func (Tx) TableName() string

Override default pluralized table name

type TxIn added in v0.3.0

type TxIn 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
	RedeemerId int64  `gorm:"column:redeemer_id"`  // redeemer(id)
}

func (TxIn) TableName added in v0.3.0

func (TxIn) TableName() string

Override default pluralized table name

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
}

func (TxOut) TableName added in v0.3.0

func (TxOut) TableName() string

Override default pluralized table name

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL