Documentation ¶
Index ¶
- type Address
- type Block
- type BlockEvent
- type BlockEventAttribute
- type BlockEventAttributeKey
- type BlockEventParser
- type BlockEventParserError
- type BlockEventType
- type BlockLifecyclePosition
- type Chain
- type Custodial
- type CustodialGroup
- type DApp
- type Denom
- type FailedBlock
- type FailedEventBlock
- type FailedMessage
- type FailedTx
- type Fee
- type Message
- type MessageEvent
- type MessageEventAttribute
- type MessageEventAttributeKey
- type MessageEventType
- type MessageParser
- type MessageParserError
- type MessageType
- type ShortenCustodialGroup
- type Tx
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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 // TODO: Should block event indexing be split out or rolled up? BlockEventsIndexed bool }
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 CustodialGroup ¶
type CustodialGroup struct { ID uint `gorm:"primaryKey;column:id"` Name string `gorm:"column:name"` TaprootAddress string `gorm:"uniqueIndex; not null;column:taproot_address"` // Calculate from BtcPublicKeyHex of each Custodials Quorum uint `gorm:"not null;column:quorum"` Custodials []Custodial `gorm:"many2many:custodial_group_members;"` }
type DApp ¶
type DApp struct { ID string `gorm:"primaryKey;type:uuid;default:gen_random_uuid()"` ChainName string `gorm:"column:chain_name;not null"` BTCAddressHex string `gorm:"column:btc_address_hex"` PublicKeyHex string `gorm:"column:public_key_hex"` SmartContractAddress string `gorm:"column:smart_contract_address"` State bool `gorm:"column:state"` ChainID string `gorm:"column:chain_id"` ChainEndpoint string `gorm:"column:chain_endpoint"` RPCUrl string `gorm:"column:rpc_url"` AccessToken string `gorm:"column:access_token"` TokenContractAddress string `gorm:"column:token_contract_address"` CustodialGroupID uint `gorm:"not null" json:"-"` CustodialGroup CustodialGroup `gorm:"constraint:OnUpdate:CASCADE,OnDelete:RESTRICT;"` }
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 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 MessageParser ¶
type MessageParserError ¶
type MessageType ¶
type ShortenCustodialGroup ¶
Click to show internal directories.
Click to hide internal directories.