Documentation
¶
Index ¶
- type Address
- type AuthInfo
- type AuthInfoFee
- type Block
- type BlockEvent
- type BlockEventAttribute
- type BlockEventAttributeKey
- type BlockEventParser
- type BlockEventParserError
- type BlockEventType
- type BlockLifecyclePosition
- type BlockSignature
- type Chain
- type Denom
- type FailedBlock
- type FailedEventBlock
- type FailedMessage
- type FailedTx
- type Fee
- type InfoFeeAmount
- type Message
- type MessageEvent
- type MessageEventAttribute
- type MessageEventAttributeKey
- type MessageEventType
- type MessageType
- type SignerInfo
- type Tip
- type TipAmount
- type Tx
- type TxDelegateAggregated
- type TxResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthInfo ¶
type AuthInfo struct {
ID uint `gorm:"primarykey"`
FeeID uint
Fee AuthInfoFee `gorm:"foreignKey:FeeID"`
TipID uint
Tip Tip `gorm:"foreignKey:TipID"`
SignerInfos []*SignerInfo `gorm:"many2many:tx_signer_infos;"`
}
type AuthInfoFee ¶
func (AuthInfoFee) TableName ¶
func (AuthInfoFee) TableName() string
type Block ¶
type Block struct {
ID uint
TimeStamp time.Time
Height int64 `gorm:"uniqueIndex:chainheight"`
ChainID uint `gorm:"uniqueIndex:chainheight"`
Chain Chain
ProposerConsAddress Address
ProposerConsAddressID uint
TxIndexed bool
TotalTxs int
// TODO: Should block event indexing be split out or rolled up?
BlockEventsIndexed bool
BlockHash string
Signatures []BlockSignature
}
type BlockEvent ¶
type BlockEvent struct {
ID uint
// These fields uniquely identify every block event
// Index refers to the position of the event in the block event lifecycle array
// LifecyclePosition refers to whether the event is a BeginBlock or EndBlock event
Index uint64 `gorm:"uniqueIndex:eventBlockPositionIndex,priority:3"`
LifecyclePosition BlockLifecyclePosition `gorm:"uniqueIndex:eventBlockPositionIndex,priority:2"`
BlockID uint `gorm:"uniqueIndex:eventBlockPositionIndex,priority:1"`
Block Block
BlockEventTypeID uint
BlockEventType BlockEventType
}
type BlockEventAttribute ¶
type BlockEventAttribute struct {
ID uint
BlockEvent BlockEvent
BlockEventID uint `gorm:"uniqueIndex:eventAttributeIndex,priority:1"`
Value string
Index uint64 `gorm:"uniqueIndex:eventAttributeIndex,priority:2"`
// Keys are limited to a smallish subset of string values set by the Cosmos SDK and external modules
// Save DB space by storing the key as a foreign key
BlockEventAttributeKeyID uint
BlockEventAttributeKey BlockEventAttributeKey
}
type BlockEventAttributeKey ¶
type BlockEventParser ¶
type BlockEventParser struct {
ID uint
BlockLifecyclePosition BlockLifecyclePosition `gorm:"uniqueIndex:idx_block_event_parser_identifier_lifecycle_position"`
Identifier string `gorm:"uniqueIndex:idx_block_event_parser_identifier_lifecycle_position"`
}
type BlockEventParserError ¶
type BlockEventParserError struct {
ID uint
BlockEventParserID uint
BlockEventParser BlockEventParser
BlockEventID uint
BlockEvent BlockEvent
Error string
}
type BlockEventType ¶
type BlockLifecyclePosition ¶
type BlockLifecyclePosition int
Used to keep track of BeginBlock and EndBlock events
const ( BeginBlockEvent BlockLifecyclePosition = iota EndBlockEvent )
type BlockSignature ¶ added in v0.0.23
type FailedBlock ¶
type FailedEventBlock ¶
type Fee ¶
type Fee struct {
ID uint `gorm:"primaryKey"`
TxID uint `gorm:"uniqueIndex:txDenomFee"`
Amount decimal.Decimal `gorm:"type:decimal(78,0);"`
DenominationID uint `gorm:"uniqueIndex:txDenomFee"`
Denomination Denom `gorm:"foreignKey:DenominationID"`
PayerAddressID uint `gorm:"index:idx_payer_addr"`
PayerAddress Address `gorm:"foreignKey:PayerAddressID"`
}
type InfoFeeAmount ¶
type InfoFeeAmount struct {
ID uint `gorm:"primaryKey"`
Amount decimal.Decimal `gorm:"type:decimal(78,0);"`
Denom string
}
func (InfoFeeAmount) TableName ¶
func (InfoFeeAmount) TableName() string
type MessageEvent ¶
type MessageEvent struct {
ID uint
// These fields uniquely identify every message event
// Index refers to the position of the event in the message event array
Index uint64 `gorm:"uniqueIndex:messageEventIndex,priority:2"`
MessageID uint `gorm:"uniqueIndex:messageEventIndex,priority:1"`
Message Message
MessageEventTypeID uint
MessageEventType MessageEventType
}
type MessageEventAttribute ¶
type MessageEventAttribute struct {
ID uint
MessageEvent MessageEvent
MessageEventID uint `gorm:"uniqueIndex:messageAttributeIndex,priority:1"`
Value string
Index uint64 `gorm:"uniqueIndex:messageAttributeIndex,priority:2"`
// Keys are limited to a smallish subset of string values set by the Cosmos SDK and external modules
// Save DB space by storing the key as a foreign key
MessageEventAttributeKeyID uint
MessageEventAttributeKey MessageEventAttributeKey
}
type MessageEventType ¶
type MessageType ¶
type SignerInfo ¶
type SignerInfo struct {
ID uint
AddressID uint
Address *Address `gorm:"foreignKey:AddressID"`
ModeInfo string
Sequence uint64
}
func (SignerInfo) TableName ¶
func (SignerInfo) TableName() string
type TipAmount ¶
type Tx ¶
type Tx struct {
ID uint
Hash string `gorm:"uniqueIndex"`
Code uint32
BlockID uint
Block Block
SignerAddresses []Address `gorm:"many2many:tx_signer_addresses;"`
Fees []Fee
Signatures pq.ByteaArray `gorm:"type:bytea[]" json:"signatures"`
Timestamp time.Time
Memo string
TimeoutHeight uint64
ExtensionOptions pq.StringArray `gorm:"type:text[]" json:"extension_options"`
NonCriticalExtensionOptions pq.StringArray `gorm:"type:text[]" json:"non_critical_options"`
AuthInfoID uint
AuthInfo AuthInfo `gorm:"foreignKey:AuthInfoID;belongsTo"`
TxResponseID uint
TxResponse TxResponse `gorm:"foreignKey:TxResponseID;belongsTo"`
SenderReceiver *model.TxSenderReceiver `gorm:"-" json:"sender_receiver"`
Events []*model.TxEvents `gorm:"-" json:"events"`
}
type TxDelegateAggregated ¶ added in v0.0.53
type TxResponse ¶
type TxResponse struct {
ID uint
TxHash string `gorm:"uniqueIndex"`
Height string
TimeStamp string
Code uint32
RawLog []byte `gorm:"type:bytea"`
// Log []LogMessage
GasUsed int64
GasWanted int64
Codespace string
Data string
Info string
}
func (TxResponse) TableName ¶
func (TxResponse) TableName() string
Click to show internal directories.
Click to hide internal directories.