Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActiveNamespace ¶
type ActiveNamespace struct { ID uint64 `` /* 127-byte string literal not displayed */ Size int64 `` /* 127-byte string literal not displayed */ Version byte `` /* 127-byte string literal not displayed */ NamespaceID string `` /* 126-byte string literal not displayed */ Hash string `` /* 126-byte string literal not displayed */ Reserved bool `example:"true" json:"reserved"` PfbCount int64 `` /* 127-byte string literal not displayed */ Height pkgTypes.Level `` /* 127-byte string literal not displayed */ Time time.Time `` /* 126-byte string literal not displayed */ }
func NewActiveNamespace ¶
func NewActiveNamespace(ns storage.ActiveNamespace) ActiveNamespace
type Address ¶
type Address struct { Id uint64 `example:"321" json:"id" swaggertype:"integer"` Height pkgTypes.Level `example:"100" json:"first_height" swaggertype:"integer"` LastHeight pkgTypes.Level `example:"100" json:"last_height" swaggertype:"integer"` Hash string `example:"celestia1jc92qdnty48pafummfr8ava2tjtuhfdw774w60" json:"hash" swaggertype:"string"` Balance Balance `json:"balance"` }
Address model info
@Description Celestia address information
func NewAddress ¶
func (Address) SearchType ¶
type Balance ¶
type Balance struct { Currency string `example:"utia" json:"currency" swaggertype:"string"` Value string `example:"10000000000" json:"value" swaggertype:"string"` }
Balance info
@Description Balance of address information
type Blob ¶
type Blob struct { Namespace string `example:"AAAAAAAAAAAAAAAAAAAAAAAAAAAAs2bWWU6FOB0=" format:"base64" json:"namespace" swaggertype:"string"` Data string `example:"b2sgZGVtbyBkYQ==" format:"base64" json:"data" swaggertype:"string"` Commitment string `example:"vbGakK59+Non81TE3ULg5Ve5ufT9SFm/bCyY+WLR3gg=" format:"base64" json:"commitment" swaggertype:"string"` }
structure is only for documentation
type Block ¶
type Block struct { Id uint64 `example:"321" json:"id" swaggertype:"integer"` Height uint64 `example:"100" json:"height" swaggertype:"integer"` Time time.Time `example:"2023-07-04T03:10:57+00:00" json:"time" swaggertype:"string"` VersionBlock string `example:"11" json:"version_block" swaggertype:"string"` VersionApp string `example:"1" json:"version_app" swaggertype:"string"` Hash pkgTypes.Hex `example:"652452A670018D629CC116E510BA88C1CABE061336661B1F3D206D248BD558AF" json:"hash" swaggertype:"string"` ParentHash pkgTypes.Hex `example:"652452A670018D629CC116E510BA88C1CABE061336661B1F3D206D248BD558AF" json:"parent_hash" swaggertype:"string"` LastCommitHash pkgTypes.Hex `example:"652452A670018D629CC116E510BA88C1CABE061336661B1F3D206D248BD558AF" json:"last_commit_hash" swaggertype:"string"` DataHash pkgTypes.Hex `example:"652452A670018D629CC116E510BA88C1CABE061336661B1F3D206D248BD558AF" json:"data_hash" swaggertype:"string"` ValidatorsHash pkgTypes.Hex `example:"652452A670018D629CC116E510BA88C1CABE061336661B1F3D206D248BD558AF" json:"validators_hash" swaggertype:"string"` NextValidatorsHash pkgTypes.Hex `example:"652452A670018D629CC116E510BA88C1CABE061336661B1F3D206D248BD558AF" json:"next_validators_hash" swaggertype:"string"` ConsensusHash pkgTypes.Hex `example:"652452A670018D629CC116E510BA88C1CABE061336661B1F3D206D248BD558AF" json:"consensus_hash" swaggertype:"string"` AppHash pkgTypes.Hex `example:"652452A670018D629CC116E510BA88C1CABE061336661B1F3D206D248BD558AF" json:"app_hash" swaggertype:"string"` LastResultsHash pkgTypes.Hex `example:"652452A670018D629CC116E510BA88C1CABE061336661B1F3D206D248BD558AF" json:"last_results_hash" swaggertype:"string"` EvidenceHash pkgTypes.Hex `example:"652452A670018D629CC116E510BA88C1CABE061336661B1F3D206D248BD558AF" json:"evidence_hash" swaggertype:"string"` ProposerAddress pkgTypes.Hex `example:"652452A670018D629CC116E510BA88C1CABE061336661B1F3D206D248BD558AF" json:"proposer_address" swaggertype:"string"` MessageTypes []types.MsgType `example:"MsgSend,MsgUnjail" json:"message_types" swaggertype:"array,string"` Stats *BlockStats `json:"stats,omitempty"` }
func (Block) SearchType ¶
type BlockStats ¶
type BlockStats struct { TxCount int64 `example:"12" json:"tx_count" swaggertype:"integer"` EventsCount int64 `example:"18" json:"events_count" swaggertype:"integer"` BlobsSize int64 `example:"12354" json:"blobs_size" swaggertype:"integer"` Fee string `example:"28347628346" json:"fee" swaggertype:"string"` SupplyChange string `example:"8635234" json:"supply_change" swaggertype:"string"` InflationRate string `example:"0.0800000" json:"inflation_rate" swaggertype:"string"` BlockTime uint64 `example:"12354" json:"block_time" swaggertype:"integer"` MessagesCounts map[types.MsgType]int64 `example:"{MsgPayForBlobs:10,MsgUnjail:1}" json:"messages_counts" swaggertype:"string"` }
func NewBlockStats ¶
func NewBlockStats(stats storage.BlockStats) *BlockStats
type Constants ¶
type Constants struct { Module map[string]Params `json:"module"` DenomMetadata []DenomMetadata `json:"denom_metadata"` }
func NewConstants ¶
func NewConstants(consts []storage.Constant, denomMetadata []storage.DenomMetadata) Constants
type DenomMetadata ¶
type DenomMetadata struct { Description string `example:"Some description" json:"description" swaggertype:"string"` Base string `example:"utia" json:"base" swaggertype:"string"` Display string `example:"TIA" json:"display" swaggertype:"string"` Name string `example:"TIA" json:"name" swaggertype:"string"` Symbol string `example:"TIA" json:"symbol" swaggertype:"string"` Uri string `example:"https://example.com" json:"uri" swaggertype:"string"` Units json.RawMessage `json:"units"` }
type Event ¶
type Event struct { Id uint64 `example:"321" format:"int64" json:"id" swaggertype:"integer"` Height pkgTypes.Level `example:"100" format:"int64" json:"height" swaggertype:"integer"` Time time.Time `example:"2023-07-04T03:10:57+00:00" format:"date-time" json:"time" swaggertype:"string"` Position int64 `example:"1" format:"int64" json:"position" swaggertype:"integer"` TxId uint64 `example:"11" format:"int64" json:"tx_id,omitempty" swaggertype:"integer"` Type types.EventType `example:"commission" json:"type"` Data map[string]any `json:"data"` }
type HistogramItem ¶
type HistogramItem struct { Time time.Time `example:"2023-07-04T03:10:57+00:00" format:"date-time" json:"time" swaggertype:"string"` Value string `example:"2223424" format:"string" json:"value" swaggertype:"string"` }
func NewHistogramItem ¶
func NewHistogramItem(item storage.HistogramItem) HistogramItem
type Message ¶
type Message struct { Id uint64 `example:"321" format:"int64" json:"id" swaggertype:"integer"` Height pkgTypes.Level `example:"100" format:"int64" json:"height" swaggertype:"integer"` Time time.Time `example:"2023-07-04T03:10:57+00:00" format:"date-time" json:"time" swaggertype:"string"` Position int64 `example:"2" format:"int64" json:"position" swaggertype:"integer"` TxId uint64 `example:"11" format:"int64" json:"tx_id,omitempty" swaggertype:"integer"` Type types.MsgType `example:"MsgCreatePeriodicVestingAccount" json:"type"` Data map[string]any `json:"data"` }
func NewMessage ¶
func NewMessageForAddress ¶
func NewMessageForAddress(msg storage.MsgAddress) Message
type Namespace ¶
type Namespace struct { ID uint64 `example:"321" format:"integer" json:"id" swaggertype:"integer"` Size int64 `example:"12345" format:"integer" json:"size" swaggertype:"integer"` Version byte `examle:"1" format:"byte" json:"version" swaggertype:"integer"` NamespaceID string `example:"4723ce10b187716adfc55ff7e6d9179c226e6b5440b02577cca49d02" format:"binary" json:"namespace_id" swaggertype:"string"` Hash string `example:"U3dhZ2dlciByb2Nrcw==" format:"base64" json:"hash" swaggertype:"string"` Reserved bool `example:"true" json:"reserved"` PfbCount int64 `example:"12" format:"integer" json:"pfb_count" swaggertype:"integer"` }
func NewNamespace ¶
func (Namespace) SearchType ¶
type NamespaceMessage ¶
type NamespaceMessage struct { Id uint64 `example:"321" format:"int64" json:"id" swaggertype:"integer"` Height int64 `example:"100" format:"int64" json:"height" swaggertype:"integer"` Time time.Time `example:"2023-07-04T03:10:57+00:00" format:"date-time" json:"time" swaggertype:"string"` Position int64 `example:"2" format:"int64" json:"position" swaggertype:"integer"` Type string `` /* 344-byte string literal not displayed */ Data map[string]any `json:"data"` Tx Tx `json:"tx"` Namespace Namespace `json:"namespace"` }
func NewNamespaceMessage ¶
func NewNamespaceMessage(msg storage.NamespaceMessage) (NamespaceMessage, error)
type SearchResponse ¶
type SearchResponse[T Searchable] struct { // Search result. Can be one of folowwing types: Block, Address, Namespace, Tx Result T `json:"result" swaggertype:"object"` // Result type which is in the result. Can be 'block', 'address', 'namespace', 'tx' Type string `json:"type"` } // @name SearchResponse
func NewSearchResponse ¶
func NewSearchResponse[T Searchable](val T) SearchResponse[T]
type Searchable ¶
type State ¶
type State struct { Id uint64 `` /* 139-byte string literal not displayed */ Name string `` /* 138-byte string literal not displayed */ LastHeight pkgTypes.Level `` /* 139-byte string literal not displayed */ LastHash string `` /* 138-byte string literal not displayed */ LastTime time.Time `` /* 138-byte string literal not displayed */ TotalTx int64 `` /* 139-byte string literal not displayed */ TotalAccounts int64 `` /* 139-byte string literal not displayed */ TotalFee string `` /* 138-byte string literal not displayed */ TotalBlobsSize int64 `` /* 139-byte string literal not displayed */ TotalSupply string `` /* 138-byte string literal not displayed */ Synced bool `` /* 139-byte string literal not displayed */ }
type Tx ¶
type Tx struct { Id uint64 `` /* 142-byte string literal not displayed */ Height pkgTypes.Level `` /* 142-byte string literal not displayed */ Position int64 `` /* 142-byte string literal not displayed */ GasWanted int64 `` /* 142-byte string literal not displayed */ GasUsed int64 `` /* 142-byte string literal not displayed */ TimeoutHeight uint64 `` /* 142-byte string literal not displayed */ EventsCount int64 `` /* 142-byte string literal not displayed */ MessagesCount int64 `` /* 142-byte string literal not displayed */ Hash string `` /* 141-byte string literal not displayed */ Fee string `` /* 141-byte string literal not displayed */ Error string `` /* 141-byte string literal not displayed */ Codespace string `` /* 141-byte string literal not displayed */ Memo string `` /* 141-byte string literal not displayed */ Time time.Time `` /* 141-byte string literal not displayed */ Messages []Message `json:"messages,omitempty"` MessageTypes []types.MsgType `example:"MsgSend,MsgUnjail" json:"message_types"` Status types.Status `example:"success" json:"status"` MsgTypeMask types.MsgTypeBits `json:"-"` }
func (Tx) SearchType ¶
Click to show internal directories.
Click to hide internal directories.