responses

package
v1.17.2 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2025 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBlobShareIndexes added in v1.10.10

func GetBlobShareIndexes(
	shares []share.Share,
	base64namespace string,
	base64commitment string,
) (blobStartIndex, blobEndIndex int, err error)

Types

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"`
	Name       string         `example:"bonded_tokens_pool"                              json:"name,omitempty" swaggertype:"string"`
	Balance    Balance        `json:"balance"`

	Celestials *Celestial `json:"celestials,omitempty"`
}

Address model info

@Description	Celestia address information

func NewAddress

func NewAddress(addr storage.Address) Address

func (*Address) AddCelestails added in v1.10.17

func (address *Address) AddCelestails(celestials *celestials.Celestial)

type Balance

type Balance struct {
	Currency  string `example:"utia"        json:"currency"  swaggertype:"string"`
	Spendable string `example:"10000000000" json:"spendable" swaggertype:"string"`
	Delegated string `example:"10000000000" json:"delegated" swaggertype:"string"`
	Unbonding string `example:"10000000000" json:"unbonding" 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"`
	ShareVersion int    `example:"0"                                            format:"integer" json:"share_version" swaggertype:"integer"`
	Commitment   string `example:"vbGakK59+Non81TE3ULg5Ve5ufT9SFm/bCyY+WLR3gg=" format:"base64"  json:"commitment"    swaggertype:"string"`
	ContentType  string `example:"image/png"                                    format:"string"  json:"content_type"  swaggertype:"string"`
}

func NewBlob added in v1.1.0

func NewBlob(blob types.Blob) (Blob, error)

type BlobLog added in v1.2.0

type BlobLog struct {
	Id           uint64         `example:"200"                                          format:"integer"   json:"id"            swaggertype:"integer"`
	Commitment   string         `example:"vbGakK59+Non81TE3ULg5Ve5ufT9SFm/bCyY+WLR3gg=" format:"base64"    json:"commitment"    swaggertype:"string"`
	Size         int64          `example:"10"                                           format:"integer"   json:"size"          swaggertype:"integer"`
	ShareVersion int            `example:"0"                                            format:"integer"   json:"share_version" swaggertype:"integer"`
	Height       pkgTypes.Level `example:"100"                                          format:"integer"   json:"height"        swaggertype:"integer"`
	Time         time.Time      `example:"2023-07-04T03:10:57+00:00"                    format:"date-time" json:"time"          swaggertype:"string"`
	ContentType  string         `example:"image/png"                                    format:"string"    json:"content_type"  swaggertype:"string"`
	Namespace    *Namespace     `json:"namespace,omitempty"`
	Tx           *Tx            `json:"tx,omitempty"`
	Rollup       *ShortRollup   `json:"rollup,omitempty"`
	Signer       *ShortAddress  `json:"signer,omitempty"`
}

func NewBlobLog added in v1.2.0

func NewBlobLog(blob storage.BlobLog) BlobLog

type BlobProof added in v1.10.10

type BlobProof struct {
	Start int32    `example:"0"  format:"integer" json:"start" swaggertype:"integer"`
	End   int32    `example:"16" format:"integer" json:"end"   swaggertype:"integer"`
	Nodes [][]byte `json:"nodes"`
}

func NewProofs added in v1.10.10

func NewProofs(proofs []*proof.NMTProof) []BlobProof

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

	Proposer *ShortValidator `json:"proposer,omitempty"`

	MessageTypes []types.MsgType `example:"MsgSend,MsgUnjail" json:"message_types" swaggertype:"array,string"`

	Stats *BlockStats `json:"stats,omitempty"`
}

func NewBlock

func NewBlock(block storage.Block, withStats bool) Block

type BlockExplorer added in v1.15.19

type BlockExplorer struct {
	ApiUrl string `example:"https://api.scan.url.io" format:"string" json:"api_url" swaggertype:"string"`
	Family string `example:"etherscan"               format:"string" json:"family"  swaggertype:"string"`
	Name   string `example:"Block explorer"          format:"string" json:"name"    swaggertype:"string"`
	Url    string `example:"https://scan.url.io"     format:"string" json:"url"     swaggertype:"string"`
}

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"`
	BlobsCount    int    `example:"100"         json:"blobs_count"    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"`
	FillRate      string `example:"0.0800"      json:"fill_rate"      swaggertype:"string"`
	Rewards       string `example:"102102812"   json:"rewards"        swaggertype:"string"`
	Commissions   string `example:"123133"      json:"commissions"    swaggertype:"string"`
	BlockTime     uint64 `example:"12354"       json:"block_time"     swaggertype:"integer"`
	GasLimit      int64  `example:"1234"        json:"gas_limit"      swaggertype:"integer"`
	GasUsed       int64  `example:"1234"        json:"gas_used"       swaggertype:"integer"`
	BytesInBlock  int64  `example:"1234"        json:"bytes_in_block" swaggertype:"integer"`
	SquareSize    uint64 `example:"16"          json:"square_size"    swaggertype:"integer"`
}

func NewBlockStats

func NewBlockStats(stats storage.BlockStats) *BlockStats

type BusiestChannel added in v1.15.21

type BusiestChannel struct {
	ChannelId      string `example:"channel-1" format:"string"  json:"channel_id"      swaggertype:"string"`
	TransfersCount int64  `example:"100"       format:"integer" json:"transfers_count" swaggertype:"integer"`
	ChainId        string `example:"osmosis-1" format:"string"  json:"chain_id"        swaggertype:"string"`
}

type Celestial added in v1.10.17

type Celestial struct {
	Name      string `example:"name"                                                                json:"name"              swaggertype:"string"`
	ImageUrl  string `example:"https://ipfs.io/ipfs/QmUi269vE25fagqhyMCCTNSoiW6x4LHCwwQb3keSrEXAmC" json:"image_url"         swaggertype:"string"`
	Status    string `example:"VERIFIED"                                                            json:"status,omitempty"  swaggertype:"string"`
	IsPrimary bool   `example:"true"                                                                json:"primary,omitempty" swaggertype:"boolean"`
}

Celestial ID

@Description	Linked celestial id

func NewCelestial added in v1.10.17

func NewCelestial(c *celestials.Celestial) *Celestial

type ChainMetadata added in v1.15.19

type ChainMetadata struct {
	Name           string          `example:"name"                   json:"name" swaggertype:"string"`
	BlockExplorers []BlockExplorer `json:"block_explorers,omitempty"`
	NativeToken    NativeToken     `json:"native_token,omitempty"`
}

func NewChainMetadata added in v1.15.19

func NewChainMetadata(domainId uint64, store hyperlane.IChainStore) *ChainMetadata

type Change24hBlockStats added in v1.9.7

type Change24hBlockStats struct {
	TxCount      float64 `example:"0.1234" format:"float" json:"tx_count_24h"       swaggertype:"number"`
	Fee          float64 `example:"0.1234" format:"float" json:"fee_24h"            swaggertype:"number"`
	BytesInBlock float64 `example:"0.1234" format:"float" json:"bytes_in_block_24h" swaggertype:"number"`
	BlobsSize    float64 `example:"0.1234" format:"float" json:"blobs_size_24h"     swaggertype:"number"`
}

func NewChange24hBlockStats added in v1.9.7

func NewChange24hBlockStats(response storage.Change24hBlockStats) Change24hBlockStats

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 Contact added in v1.15.28

type Contact struct {
	Website  string `example:"https://cosmosrescue.com"         json:"website,omitempty"  swaggertype:"string"`
	Github   string `example:"https://github.com/cosmosrescue"  json:"github,omitempty"   swaggertype:"string"`
	Twitter  string `example:"https://x.com/cosmosrescue"       json:"twitter,omitempty"  swaggertype:"string"`
	Telegram string `example:"https://t.me/cosmosrescue"        json:"telegram,omitempty" swaggertype:"string"`
	Discord  string `example:"https://discord.cosmosrescue.com" json:"discord,omitempty"  swaggertype:"string"`
	Medium   string `example:"https://medium.com/cosmosrescue"  json:"medium,omitempty"   swaggertype:"string"`
}

type CountItem added in v1.9.7

type CountItem struct {
	Name  string `example:"test"  format:"string" json:"name"  swaggertype:"string"`
	Value int64  `example:"17632" format:"string" json:"value" swaggertype:"string"`
}

func NewCountItem added in v1.9.7

func NewCountItem(item storage.CountItem) CountItem

type Delegation added in v1.6.0

type Delegation struct {
	Amount string `example:"0.1" json:"amount" swaggertype:"string"`

	Delegator *ShortAddress   `json:"delegator,omitempty"`
	Validator *ShortValidator `json:"validator,omitempty"`
}

func NewDelegation added in v1.6.0

func NewDelegation(d storage.Delegation) Delegation

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 DistributionItem added in v1.6.1

type DistributionItem struct {
	Name  string `example:"12"      format:"string" json:"name"  swaggertype:"string"`
	Value string `example:"0.17632" format:"string" json:"value" swaggertype:"string"`
}

func NewDistributionItem added in v1.6.1

func NewDistributionItem(item storage.DistributionItem, tf string) (result DistributionItem)

type DomainMetadata added in v1.15.24

type DomainMetadata struct {
	Domain         uint64          `example:"1488"         json:"domain,omitempty" swaggertype:"integer"`
	Name           string          `example:"name"         json:"name,omitempty"   swaggertype:"string"`
	BlockExplorers []BlockExplorer `json:"block_explorers"`
	NativeToken    NativeToken     `json:"native_token"`
}

func NewDomainMetadata added in v1.15.24

func NewDomainMetadata(domainId uint64, store hyperlane.IChainStore) *DomainMetadata

type Enums added in v1.1.3

type Enums struct {
	Status             []string `json:"status"`
	MessageType        []string `json:"message_type"`
	EventType          []string `json:"event_type"`
	Categories         []string `json:"categories"`
	RollupTypes        []string `json:"rollup_type"`
	Tags               []string `json:"tags"`
	CelestialsStatuses []string `json:"celestials_statuses"`
	ProposalStatus     []string `json:"proposal_status"`
	ProposalType       []string `json:"proposal_type"`
	VoteType           []string `json:"vote_type"`
	VoteOption         []string `json:"vote_option"`
	IbcChannelStatus   []string `json:"ibc_channel_status"`
	HLTokenType        []string `json:"hyperlane_token_type"`
	HLTransferType     []string `json:"hyperlane_transfer_type"`
}

func NewEnums added in v1.1.3

func NewEnums(tags []string) Enums

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

func NewEvent

func NewEvent(event storage.Event) Event

type GasPayment added in v1.17.1

type GasPayment struct {
	Amount    string `` /* 129-byte string literal not displayed */
	GasAmount string `` /* 129-byte string literal not displayed */
	IgpId     string `` /* 129-byte string literal not displayed */
}

type GasPrice added in v1.1.0

type GasPrice struct {
	Slow   string `example:"0.1234" format:"string" json:"slow"   swaggertype:"string"`
	Median string `example:"0.1234" format:"string" json:"median" swaggertype:"string"`
	Fast   string `example:"0.1234" format:"string" json:"fast"   swaggertype:"string"`
}

type Grant added in v1.7.0

type Grant struct {
	Authorization string     `example:"/cosmos.staking.v1beta1.MsgDelegate" json:"authorization"           swaggertype:"string"`
	Expiration    *time.Time `example:"2023-07-04T03:10:57+00:00"           json:"expiration,omitempty"    swaggertype:"string"`
	Revoked       bool       `example:"true"                                json:"revoked"                 swaggertype:"boolean"`
	RevokeHeight  uint64     `example:"123123"                              json:"revoke_height,omitempty" swaggertype:"integer"`
	Height        uint64     `example:"123123"                              json:"height"                  swaggertype:"integer"`
	Time          time.Time  `example:"2023-07-04T03:10:57+00:00"           json:"time"                    swaggertype:"string"`

	Params  map[string]any `json:"params"`
	Granter *ShortAddress  `json:"granter,omitempty"`
	Grantee *ShortAddress  `json:"grantee,omitempty"`
}

func NewGrant added in v1.7.0

func NewGrant(g storage.Grant) Grant

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 HlDomainStats added in v1.15.24

type HlDomainStats struct {
	Domain         uint64         `example:"123456"                format:"integer" json:"domain_id"       swaggertype:"integer"`
	Amount         string         `example:"1234.5678"             format:"string"  json:"amount"          swaggertype:"string"`
	TransfersCount uint64         `example:"123445"                format:"integer" json:"transfers_count" swaggertype:"integer"`
	ChainMetadata  *ChainMetadata `json:"chain_metadata,omitempty"`
}

func NewHlDomainStats added in v1.15.24

func NewHlDomainStats(stats storage.DomainStats, store hyperlane.IChainStore) HlDomainStats

type HyperlaneCounterparty added in v1.15.0

type HyperlaneCounterparty struct {
	Hash          string         `example:"652452A670018D629CC116E510BA88C1CABE061336661B1F3D206D248BD558AF" json:"hash"    swaggertype:"string"`
	Domain        uint64         `` /* 135-byte string literal not displayed */
	ChainMetadata *ChainMetadata `json:"chain_metadata,omitempty"`
}

type HyperlaneIgp added in v1.17.1

type HyperlaneIgp struct {
	Id     uint64         `` /* 129-byte string literal not displayed */
	Height pkgTypes.Level `` /* 129-byte string literal not displayed */
	Time   time.Time      `` /* 128-byte string literal not displayed */
	Denom  string         `` /* 128-byte string literal not displayed */
	IgpId  string         `` /* 128-byte string literal not displayed */

	Owner   *ShortAddress         `json:"owner,omitempty"`
	Configs []*HyperlaneIgpConfig `json:"configs,omitempty"`
}

func NewHyperlaneIgp added in v1.17.1

func NewHyperlaneIgp(igp storage.HLIGP, store hyperlane.IChainStore) HyperlaneIgp

type HyperlaneIgpConfig added in v1.17.1

type HyperlaneIgpConfig struct {
	GasOverhead       string `example:"100000"   format:"int64" json:"gas_overhead"        swaggertype:"string"`
	GasPrice          string `example:"1"        format:"int64" json:"gas_price"           swaggertype:"string"`
	TokenExchangeRate string `example:"12345678" format:"int64" json:"token_exchange_rate" swaggertype:"string"`

	Counterparty HyperlaneRemoteDomain `json:"counterparty"`
}

func NewHyperlaneIgpConfig added in v1.17.1

func NewHyperlaneIgpConfig(igp *storage.HLIGPConfig, store hyperlane.IChainStore) *HyperlaneIgpConfig

type HyperlaneMailbox added in v1.15.0

type HyperlaneMailbox struct {
	Id               uint64         `` /* 146-byte string literal not displayed */
	InternalId       uint64         `` /* 146-byte string literal not displayed */
	Height           pkgTypes.Level `` /* 146-byte string literal not displayed */
	Time             time.Time      `` /* 145-byte string literal not displayed */
	TxHash           string         `` /* 145-byte string literal not displayed */
	Mailbox          string         `` /* 145-byte string literal not displayed */
	DefaultIsm       string         `` /* 145-byte string literal not displayed */
	DefaultHook      string         `` /* 145-byte string literal not displayed */
	RequiredHook     string         `` /* 145-byte string literal not displayed */
	Domain           uint64         `` /* 146-byte string literal not displayed */
	SentMessages     uint64         `` /* 146-byte string literal not displayed */
	ReceivedMessages uint64         `` /* 146-byte string literal not displayed */

	Owner *ShortAddress `json:"owner,omitempty"`
}

func NewHyperlaneMailbox added in v1.15.0

func NewHyperlaneMailbox(mailbox storage.HLMailbox) HyperlaneMailbox

type HyperlaneRemoteDomain added in v1.17.1

type HyperlaneRemoteDomain struct {
	RemoteDomain  uint64         `example:"100"                   format:"int64" json:"remote_domain" swaggertype:"integer"`
	ChainMetadata *ChainMetadata `json:"chain_metadata,omitempty"`
}

type HyperlaneToken added in v1.15.0

type HyperlaneToken struct {
	Id               uint64         `` /* 141-byte string literal not displayed */
	Height           pkgTypes.Level `` /* 141-byte string literal not displayed */
	Time             time.Time      `` /* 140-byte string literal not displayed */
	Mailbox          string         `` /* 140-byte string literal not displayed */
	TxHash           string         `` /* 140-byte string literal not displayed */
	Type             string         `` /* 140-byte string literal not displayed */
	Denom            string         `` /* 140-byte string literal not displayed */
	TokenId          string         `` /* 140-byte string literal not displayed */
	SentTransfers    uint64         `` /* 141-byte string literal not displayed */
	ReceiveTransfers uint64         `` /* 141-byte string literal not displayed */
	Sent             string         `` /* 140-byte string literal not displayed */
	Received         string         `` /* 140-byte string literal not displayed */

	Owner *ShortAddress `json:"owner,omitempty"`
}

func NewHyperlaneToken added in v1.15.0

func NewHyperlaneToken(token storage.HLToken) HyperlaneToken

type HyperlaneTransfer added in v1.15.0

type HyperlaneTransfer struct {
	Id       uint64         `` /* 141-byte string literal not displayed */
	Height   pkgTypes.Level `` /* 141-byte string literal not displayed */
	Time     time.Time      `` /* 140-byte string literal not displayed */
	TxHash   string         `` /* 140-byte string literal not displayed */
	Mailbox  string         `` /* 140-byte string literal not displayed */
	TokenId  string         `` /* 140-byte string literal not displayed */
	Type     string         `` /* 140-byte string literal not displayed */
	Version  byte           `` /* 141-byte string literal not displayed */
	Nonce    uint32         `` /* 141-byte string literal not displayed */
	Body     []byte         `` /* 140-byte string literal not displayed */
	Metadata []byte         `` /* 140-byte string literal not displayed */
	Amount   string         `` /* 140-byte string literal not displayed */
	Denom    string         `` /* 140-byte string literal not displayed */

	Address      *ShortAddress         `json:"address,omitempty"`
	Relayer      *ShortAddress         `json:"relayer,omitempty"`
	GasPayment   *GasPayment           `json:"gas_payment,omitempty"`
	Counterparty HyperlaneCounterparty `json:"counterparty"`
}

func NewHyperlaneTransfer added in v1.15.0

func NewHyperlaneTransfer(transfer storage.HLTransfer, store hyperlane.IChainStore) HyperlaneTransfer

type IbcChainStats added in v1.13.0

type IbcChainStats struct {
	Chain    string `example:"123456" format:"string" json:"chain"    swaggertype:"string"`
	Sent     string `example:"123445" format:"string" json:"sent"     swaggertype:"string"`
	Received string `example:"123445" format:"string" json:"received" swaggertype:"string"`
	Flow     string `example:"123445" format:"string" json:"flow"     swaggertype:"string"`
}

func NewIbcChainStats added in v1.13.0

func NewIbcChainStats(stats storage.ChainStats) IbcChainStats

type IbcChannel added in v1.13.0

type IbcChannel struct {
	Id                    string         `` /* 152-byte string literal not displayed */
	ConnectionId          string         `` /* 152-byte string literal not displayed */
	PortId                string         `` /* 152-byte string literal not displayed */
	CounterpartyPortId    string         `` /* 152-byte string literal not displayed */
	CounterpartyChannelId string         `` /* 152-byte string literal not displayed */
	Version               string         `` /* 152-byte string literal not displayed */
	CreatedAt             time.Time      `` /* 152-byte string literal not displayed */
	ConfirmedAt           *time.Time     `` /* 152-byte string literal not displayed */
	Height                pkgTypes.Level `` /* 153-byte string literal not displayed */
	ConfirmationHeight    pkgTypes.Level `` /* 153-byte string literal not displayed */
	CreatedTxHash         string         `` /* 152-byte string literal not displayed */
	ConfirmationTxHash    string         `` /* 152-byte string literal not displayed */
	Ordering              bool           `` /* 153-byte string literal not displayed */
	Status                string         `` /* 152-byte string literal not displayed */

	Client  *ShortIbcClient `json:"client,omitempty"`
	Creator *ShortAddress   `json:"creator,omitempty"`
}

func NewIbcChannel added in v1.13.0

func NewIbcChannel(channel storage.IbcChannel) IbcChannel

type IbcClient added in v1.13.0

type IbcClient struct {
	Id                    string         `` /* 145-byte string literal not displayed */
	Type                  string         `` /* 145-byte string literal not displayed */
	CreatedAt             time.Time      `` /* 145-byte string literal not displayed */
	UpdatedAt             time.Time      `` /* 145-byte string literal not displayed */
	Height                pkgTypes.Level `` /* 146-byte string literal not displayed */
	ChainId               string         `` /* 145-byte string literal not displayed */
	TxHash                string         `` /* 145-byte string literal not displayed */
	LatestRevisionHeight  uint64         `` /* 146-byte string literal not displayed */
	LatestRevisionNumber  uint64         `` /* 146-byte string literal not displayed */
	FrozenRevisionHeight  uint64         `` /* 146-byte string literal not displayed */
	FrozenRevisionNumber  uint64         `` /* 146-byte string literal not displayed */
	TrustingPeriod        time.Duration  `` /* 146-byte string literal not displayed */
	UnbondingPeriod       time.Duration  `` /* 146-byte string literal not displayed */
	MaxClockDrift         time.Duration  `` /* 146-byte string literal not displayed */
	TrustLevelDenominator uint64         `` /* 146-byte string literal not displayed */
	TrustLevelNumerator   uint64         `` /* 146-byte string literal not displayed */
	ConnectionCount       uint64         `` /* 146-byte string literal not displayed */

	Creator *ShortAddress `json:"creator,omitempty"`
}

func NewIbcClient added in v1.13.0

func NewIbcClient(client storage.IbcClient) IbcClient

type IbcConnection added in v1.13.0

type IbcConnection struct {
	Id                   string         `` /* 148-byte string literal not displayed */
	CounterpartyConnId   string         `` /* 148-byte string literal not displayed */
	CounterpartyClientId string         `` /* 148-byte string literal not displayed */
	CreatedAt            time.Time      `` /* 148-byte string literal not displayed */
	ConnectedAt          time.Time      `` /* 148-byte string literal not displayed */
	Height               pkgTypes.Level `` /* 149-byte string literal not displayed */
	ConnectedHeight      pkgTypes.Level `` /* 149-byte string literal not displayed */
	CreatedTxHash        string         `` /* 148-byte string literal not displayed */
	ConnectedTxHash      string         `` /* 148-byte string literal not displayed */
	ChannelsCount        int64          `` /* 149-byte string literal not displayed */

	Client *ShortIbcClient `json:"client,omitempty"`
}

func NewIbcConnection added in v1.13.0

func NewIbcConnection(conn storage.IbcConnection) IbcConnection

type IbcSummaryStats added in v1.15.21

type IbcSummaryStats struct {
	LargestTransfer IbcTransfer    `json:"largest_transfer,omitempty"`
	BusiestChannel  BusiestChannel `json:"busiest_channel,omitempty"`
}

func NewIbcSummaryStats added in v1.15.21

func NewIbcSummaryStats(transfer storage.IbcTransfer, channel storage.BusiestChannel) IbcSummaryStats

type IbcTransfer added in v1.13.0

type IbcTransfer struct {
	Id            uint64         `` /* 147-byte string literal not displayed */
	Time          time.Time      `` /* 146-byte string literal not displayed */
	Height        pkgTypes.Level `` /* 147-byte string literal not displayed */
	ChannelId     string         `` /* 146-byte string literal not displayed */
	ConnectionId  string         `` /* 146-byte string literal not displayed */
	Port          string         `` /* 146-byte string literal not displayed */
	Amount        string         `` /* 146-byte string literal not displayed */
	Denom         string         `` /* 146-byte string literal not displayed */
	Memo          string         `` /* 146-byte string literal not displayed */
	Timeout       *time.Time     `` /* 146-byte string literal not displayed */
	TimeoutHeight uint64         `` /* 147-byte string literal not displayed */
	TxHash        string         `` /* 146-byte string literal not displayed */
	Sequence      uint64         `` /* 147-byte string literal not displayed */
	ChainId       string         `` /* 146-byte string literal not displayed */

	Sender   *ShortAddress `json:"sender,omitempty"`
	Receiver *ShortAddress `json:"receiver,omitempty"`
	Relayer  *Relayer      `json:"relayer,omitempty"`
}

func NewIbcTransfer added in v1.13.0

func NewIbcTransfer(transfer storage.IbcTransfer) IbcTransfer

func NewIbcTransferWithRelayer added in v1.15.30

func NewIbcTransferWithRelayer(transfer storage.IbcTransferWithSigner, relayers map[uint64]Relayer) IbcTransfer

type Jail added in v1.6.0

type Jail struct {
	Height types.Level `example:"100"                       json:"height" swaggertype:"integer"`
	Time   time.Time   `example:"2023-07-04T03:10:57+00:00" json:"time"   swaggertype:"string"`
	Reason string      `example:"double_sign"               json:"reason" swaggertype:"string"`
	Burned string      `example:"10000000000"               json:"burned" swaggertype:"string"`

	Validator *ShortValidator `json:"validator,omitempty"`
}

func NewJail added in v1.6.0

func NewJail(jail storage.Jail) Jail

type LightBlobLog added in v1.10.0

type LightBlobLog struct {
	Id           uint64         `` /* 136-byte string literal not displayed */
	Commitment   string         `` /* 135-byte string literal not displayed */
	Size         int64          `` /* 136-byte string literal not displayed */
	ShareVersion int            `` /* 136-byte string literal not displayed */
	Height       pkgTypes.Level `` /* 136-byte string literal not displayed */
	Time         time.Time      `` /* 135-byte string literal not displayed */
	ContentType  string         `` /* 135-byte string literal not displayed */
	Namespace    string         `` /* 135-byte string literal not displayed */
	TxHash       string         `` /* 135-byte string literal not displayed */

	Signer *ShortAddress `json:"signer,omitempty"`
}

func NewLightBlobLog added in v1.10.0

func NewLightBlobLog(blob storage.BlobLog) LightBlobLog

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"`
	Size     int            `example:"2"                         format:"int"       json:"size"            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"`

	Tx *Tx `json:"tx,omitempty"`
}

func NewMessage

func NewMessage(msg storage.Message) Message

func NewMessageWithTx added in v1.0.4

func NewMessageWithTx(msg storage.MessageWithTx) Message

func NewValidatorMessage added in v1.17.1

func NewValidatorMessage(msg storage.MsgValidator) Message

type MessageForAddress added in v1.2.0

type MessageForAddress 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"`
	Size     int            `example:"2"                         format:"int"       json:"size"            swaggertype:"integer"`
	TxId     uint64         `example:"11"                        format:"int64"     json:"tx_id,omitempty" swaggertype:"integer"`

	Type           types.MsgType        `example:"MsgCreatePeriodicVestingAccount" json:"type"`
	InvocationType types.MsgAddressType `example:"fromAddress"                     json:"invocation_type"`

	Data map[string]any `json:"data"`
	Tx   TxForAddress   `json:"tx"`
}

type Metrics added in v1.17.1

type Metrics struct {
	Id                    uint64    `example:"321"                       json:"id"                      swaggertype:"integer"`
	Moniker               string    `example:"Easy 2 Stake"              json:"moniker"                 swaggertype:"string"`
	MaxRate               string    `example:"0.1"                       json:"max_rate"                swaggertype:"string"`
	MaxChangeRate         string    `example:"0.01"                      json:"max_change_rate"         swaggertype:"string"`
	Stake                 string    `example:"1"                         json:"stake"                   swaggertype:"string"`
	CreationTime          time.Time `example:"2025-07-04T03:10:57+00:00" format:"date-time"             json:"creation_time"  swaggertype:"string"`
	SelfDelegationAmount  string    `example:"1"                         json:"self_delegation_amount"  swaggertype:"string"`
	AppliedProposalsCount uint64    `example:"321"                       json:"applied_proposals_count" swaggertype:"integer"`
	VotesCount            uint64    `example:"321"                       json:"votes_count"             swaggertype:"integer"`
	BlockMissedCount      uint64    `example:"321"                       json:"block_missed_count"      swaggertype:"integer"`
	VotesMetric           string    `example:"1"                         json:"votes_metric"            swaggertype:"string"`
	CommissionMetric      string    `example:"1"                         json:"commission_metric"       swaggertype:"string"`
	OperationTimeMetric   string    `example:"1"                         json:"operation_time_metric"   swaggertype:"string"`
	SelfDelegationMetric  string    `example:"1"                         json:"self_delegation_metric"  swaggertype:"string"`
	BlockMissedMetric     string    `example:"1"                         json:"block_missed_metric"     swaggertype:"string"`
}

func NewMetrics added in v1.17.1

func NewMetrics(value storage.ValidatorMetrics) Metrics

type Namespace

type Namespace struct {
	ID              uint64         `` /* 132-byte string literal not displayed */
	Size            int64          `` /* 132-byte string literal not displayed */
	BlobsCount      int64          `` /* 132-byte string literal not displayed */
	Version         byte           `` /* 132-byte string literal not displayed */
	NamespaceID     string         `` /* 131-byte string literal not displayed */
	Hash            string         `` /* 131-byte string literal not displayed */
	PfbCount        int64          `` /* 132-byte string literal not displayed */
	LastHeight      pkgTypes.Level `` /* 132-byte string literal not displayed */
	LastMessageTime time.Time      `` /* 131-byte string literal not displayed */
	Name            string         `` /* 131-byte string literal not displayed */
	Reserved        bool           `example:"true"                                                     json:"reserved"`
}

func NewNamespace

func NewNamespace(ns storage.Namespace) Namespace

type NamespaceKind added in v1.7.4

type NamespaceKind string
const (
	PayForBlobNamespace      NamespaceKind = "pay_for_blob"
	TailPaddingNamespace     NamespaceKind = "tail_padding"
	TxNamespace              NamespaceKind = "tx"
	ParitySharesNamespace    NamespaceKind = "parity_shares"
	PrimaryReservedNamespace NamespaceKind = "primary_reserved_padding"
	DefaultNamespace         NamespaceKind = "namespace"
)

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 NamespaceUsage added in v1.1.0

type NamespaceUsage struct {
	Name        string `` /* 134-byte string literal not displayed */
	Version     *byte  `` /* 135-byte string literal not displayed */
	NamespaceID string `` /* 134-byte string literal not displayed */
	Size        int64  `` /* 134-byte string literal not displayed */
}

func NewNamespaceUsage added in v1.1.0

func NewNamespaceUsage(ns storage.Namespace) NamespaceUsage

type NativeToken added in v1.15.19

type NativeToken struct {
	Decimals uint64 `example:"18"    format:"int64"  json:"decimals" swaggertype:"integer"`
	Name     string `example:"Ether" format:"string" json:"name"     swaggertype:"string"`
	Symbol   string `example:"ETH"   format:"string" json:"symbol"   swaggertype:"string"`
}

type ODS added in v1.7.4

type ODS struct {
	Width uint `example:"2" json:"width" swaggertype:"integer"`

	Items []ODSItem `json:"items"`
}

func NewODS added in v1.7.4

func NewODS(eds *rsmt2d.ExtendedDataSquare) (ODS, error)

type ODSItem added in v1.7.4

type ODSItem struct {
	From      []uint        `json:"from"`
	To        []uint        `json:"to"`
	Namespace string        `json:"namespace"`
	Type      NamespaceKind `json:"type"`
}

type Params

type Params map[string]string

type Price added in v1.2.0

type Price struct {
	Time  time.Time `example:"2023-07-04T03:10:57+00:00" format:"date-time" json:"time"  swaggertype:"string"`
	Open  string    `example:"0.17632"                   format:"string"    json:"open"  swaggertype:"string"`
	High  string    `example:"0.17632"                   format:"string"    json:"high"  swaggertype:"string"`
	Low   string    `example:"0.17632"                   format:"string"    json:"low"   swaggertype:"string"`
	Close string    `example:"0.17632"                   format:"string"    json:"close" swaggertype:"string"`
}

type Proposal added in v1.12.0

type Proposal struct {
	Id             uint64         `example:"321"                       format:"int64"     json:"id"                        swaggertype:"integer"`
	Height         pkgTypes.Level `example:"100"                       format:"int64"     json:"height"                    swaggertype:"integer"`
	CreatedAt      time.Time      `example:"2023-07-04T03:10:57+00:00" format:"date-time" json:"created_at"                swaggertype:"string"`
	DepositTime    time.Time      `example:"2023-07-04T03:10:57+00:00" format:"date-time" json:"deposit_time"              swaggertype:"string"`
	ActivationTime *time.Time     `example:"2023-07-04T03:10:57+00:00" format:"date-time" json:"activation_time,omitempty" swaggertype:"string"`
	EndTime        *time.Time     `example:"2023-07-04T03:10:57+00:00" format:"date-time" json:"end_time,omitempty"        swaggertype:"string"`
	Status         string         `example:"active"                    format:"string"    json:"status"                    swaggertype:"string"`
	Type           string         `example:"param_changed"             format:"string"    json:"type"                      swaggertype:"string"`
	Title          string         `example:"Proposal title"            format:"string"    json:"title"                     swaggertype:"string"`
	Description    string         `example:"Some proposal description" format:"string"    json:"description"               swaggertype:"string"`
	Deposit        string         `example:"1000000000"                format:"string"    json:"deposit"                   swaggertype:"string"`
	Metadata       string         `example:"metadata"                  format:"string"    json:"metadata,omitempty"        swaggertype:"string"`

	VotesCount int64 `example:"12354" json:"votes_count"  swaggertype:"integer"`
	Yes        int64 `example:"1234"  json:"yes"          swaggertype:"integer"`
	No         int64 `example:"1234"  json:"no"           swaggertype:"integer"`
	NoWithVeto int64 `example:"1234"  json:"no_with_veto" swaggertype:"integer"`
	Abstain    int64 `example:"1234"  json:"abstain"      swaggertype:"integer"`

	YesVals        int64 `example:"1234" json:"yes_vals"          swaggertype:"integer"`
	NoVals         int64 `example:"1234" json:"no_vals"           swaggertype:"integer"`
	NoWithVetoVals int64 `example:"1234" json:"no_with_veto_vals" swaggertype:"integer"`
	AbstainVals    int64 `example:"1234" json:"abstain_vals"      swaggertype:"integer"`

	YesAddr        int64 `example:"1234" json:"yes_addrs"          swaggertype:"integer"`
	NoAddr         int64 `example:"1234" json:"no_addrs"           swaggertype:"integer"`
	NoWithVetoAddr int64 `example:"1234" json:"no_with_veto_addrs" swaggertype:"integer"`
	AbstainAddr    int64 `example:"1234" json:"abstain_addrs"      swaggertype:"integer"`

	TotalVotingPower      string `example:"1000000000" format:"string" json:"total_voting_power,omitempty" swaggertype:"string"`
	VotingPower           string `example:"1000000000" format:"string" json:"voting_power"                 swaggertype:"string"`
	YesVotingPower        string `example:"1000000000" format:"string" json:"yes_voting_power"             swaggertype:"string"`
	NoVotingPower         string `example:"1000000000" format:"string" json:"no_voting_power"              swaggertype:"string"`
	NoWithVetoVotingPower string `example:"1000000000" format:"string" json:"no_with_veto_voting_power"    swaggertype:"string"`
	AbstainVotingPower    string `example:"1000000000" format:"string" json:"abstain_voting_power"         swaggertype:"string"`

	Quorum     string `example:"0.33" format:"string" json:"quorum,omitempty"      swaggertype:"string"`
	VetoQuorum string `example:"0.33" format:"string" json:"veto_quorum,omitempty" swaggertype:"string"`
	Threshold  string `example:"0.33" format:"string" json:"threshold,omitempty"   swaggertype:"string"`
	MinDeposit string `example:"0.33" format:"string" json:"min_deposit,omitempty" swaggertype:"string"`

	Error string `example:"Some error text" format:"string" json:"error,omitempty" swaggertype:"string"`

	Changes  json.RawMessage `json:"changes,omitempty"  swaggerignore:"true"`
	Proposer *ShortAddress   `json:"proposer,omitempty"`
}

func NewProposal added in v1.12.0

func NewProposal(proposal storage.Proposal) Proposal

type Redelegation added in v1.6.0

type Redelegation struct {
	Height         pkgTypes.Level `example:"100"                       json:"height"          swaggertype:"integer"`
	Time           time.Time      `example:"2023-07-04T03:10:57+00:00" json:"time"            swaggertype:"string"`
	CompletionTime time.Time      `example:"2023-07-04T03:10:57+00:00" json:"completion_time" swaggertype:"string"`
	Amount         string         `example:"0.1"                       json:"amount"          swaggertype:"string"`

	Delegator   *ShortAddress   `json:"delegator,omitempty"`
	Source      *ShortValidator `json:"source,omitempty"`
	Destination *ShortValidator `json:"destination,omitempty"`
}

func NewRedelegation added in v1.6.0

func NewRedelegation(d storage.Redelegation) Redelegation

type Relayer added in v1.15.28

type Relayer struct {
	Name      string   `` /* 165-byte string literal not displayed */
	Addresses []string `` /* 144-byte string literal not displayed */

	Contact *Contact `json:"contact,omitempty"`
}

type Rollup added in v1.2.0

type Rollup struct {
	Id             uint64 `example:"321"                             format:"integer" json:"id"                    swaggertype:"integer"`
	Name           string `example:"Rollup name"                     format:"string"  json:"name"                  swaggertype:"string"`
	Description    string `example:"Long rollup description"         format:"string"  json:"description,omitempty" swaggertype:"string"`
	Website        string `example:"https://website.com"             format:"string"  json:"website,omitempty"     swaggertype:"string"`
	Twitter        string `example:"https://x.com/account"           format:"string"  json:"twitter,omitempty"     swaggertype:"string"`
	Github         string `example:"https://github.com/account"      format:"string"  json:"github,omitempty"      swaggertype:"string"`
	Slug           string `example:"rollup_slug"                     format:"string"  json:"slug"                  swaggertype:"string"`
	L2Beat         string `example:"https://github.com/account"      format:"string"  json:"l2_beat,omitempty"     swaggertype:"string"`
	DeFiLama       string `example:"Manta"                           format:"string"  json:"defi_lama,omitempty"   swaggertype:"string"`
	Explorer       string `example:"https://explorer.karak.network/" format:"string"  json:"explorer,omitempty"    swaggertype:"string"`
	BridgeContract string `example:"https://github.com/account"      format:"string"  json:"bridge,omitempty"      swaggertype:"string"`
	Stack          string `example:"op_stack"                        format:"string"  json:"stack,omitempty"       swaggertype:"string"`
	Type           string `example:"settled"                         format:"string"  json:"type,omitempty"        swaggertype:"string"`
	Category       string `example:"nft"                             format:"string"  json:"category,omitempty"    swaggertype:"string"`
	Provider       string `example:"name"                            format:"string"  json:"provider,omitempty"    swaggertype:"string"`
	Compression    string `example:"zip"                             format:"string"  json:"compression,omitempty" swaggertype:"string"`
	VM             string `example:"evm"                             format:"string"  json:"vm,omitempty"          swaggertype:"string"`
	SettledOn      string `example:"Ethereum"                        format:"string"  json:"settled_on,omitempty"  swaggertype:"string"`
	Color          string `example:"#123456"                         format:"string"  json:"color,omitempty"       swaggertype:"string"`

	Tags  []string `json:"tags,omitempty"`
	Links []string `json:"links,omitempty"`
}

func NewRollup added in v1.2.0

func NewRollup(r *storage.Rollup) Rollup

type RollupAllSeriesItem added in v1.9.10

type RollupAllSeriesItem struct {
	Name       string `example:"Rollup name"                     format:"string"  json:"name,omitempty" swaggertype:"string"`
	Size       int64  `example:"123"                             format:"integer" json:"size"           swaggertype:"integer"`
	Fee        string `example:"123"                             format:"string"  json:"fee"            swaggertype:"string"`
	BlobsCount int64  `example:"123"                             format:"integer" json:"blobs_count"    swaggertype:"integer"`
}

func NewRollupAllSeriesItem added in v1.9.10

func NewRollupAllSeriesItem(stats storage.RollupHistogramItem) RollupAllSeriesItem

type RollupAllSeriesResponse added in v1.10.18

type RollupAllSeriesResponse struct {
	Time  time.Time             `example:"2023-07-04T03:10:57+00:00" format:"date-time" json:"time" swaggertype:"string"`
	Items []RollupAllSeriesItem `json:"items"`
}

type RollupGroupedStats added in v1.10.8

type RollupGroupedStats struct {
	Fee        float64 `example:"123.456789" format:"string"  json:"fee"         swaggertype:"string"`
	Size       float64 `example:"1000"       format:"integer" json:"size"        swaggertype:"integer"`
	BlobsCount int64   `example:"2"          format:"integer" json:"blobs_count" swaggertype:"integer"`
	Group      string  `example:"group"      format:"string"  json:"group"       swaggertype:"string"`
}

func NewRollupGroupedStats added in v1.10.8

func NewRollupGroupedStats(r storage.RollupGroupedStats) RollupGroupedStats

type RollupProvider added in v1.17.1

type RollupProvider struct {
	Address   string `example:"0x1234567890abcdef1234567890abcdef12345678" format:"string" json:"address,omitempty"   swaggertype:"string"`
	Namespace string `example:"U3dhZ2dlciByb2Nrcw=="                       format:"string" json:"namespace,omitempty" swaggertype:"string"`
}

func NewRollupProvider added in v1.17.1

func NewRollupProvider(r storage.RollupProvider) (provider RollupProvider)

type RollupStats24h added in v1.9.7

type RollupStats24h struct {
	Id         int64   `example:"321"                             format:"integer" json:"id,omitempty"   swaggertype:"integer"`
	Name       string  `example:"Rollup name"                     format:"string"  json:"name,omitempty" swaggertype:"string"`
	Size       int64   `example:"123"                             format:"integer" json:"size"           swaggertype:"integer"`
	Fee        float64 `example:"123"                             format:"number"  json:"fee"            swaggertype:"integer"`
	BlobsCount int64   `example:"123"                             format:"integer" json:"blobs_count"    swaggertype:"integer"`
}

func NewRollupStats24h added in v1.9.7

func NewRollupStats24h(stats storage.RollupStats24h) RollupStats24h

type RollupWithDayStats added in v1.9.10

type RollupWithDayStats struct {
	Id             uint64 `example:"321"                                       format:"integer" json:"id"                    swaggertype:"integer"`
	Name           string `example:"Rollup name"                               format:"string"  json:"name"                  swaggertype:"string"`
	Description    string `example:"Long rollup description"                   format:"string"  json:"description,omitempty" swaggertype:"string"`
	Website        string `example:"https://website.com"                       format:"string"  json:"website,omitempty"     swaggertype:"string"`
	Twitter        string `example:"https://x.com/account"                     format:"string"  json:"twitter,omitempty"     swaggertype:"string"`
	Github         string `example:"https://github.com/account"                format:"string"  json:"github,omitempty"      swaggertype:"string"`
	Slug           string `example:"rollup_slug"                               format:"string"  json:"slug"                  swaggertype:"string"`
	L2Beat         string `example:"https://l2beat.com/scaling/projects/karak" format:"string"  json:"l2_beat,omitempty"     swaggertype:"string"`
	DeFiLama       string `example:"Manta"                                     format:"string"  json:"defi_lama,omitempty"   swaggertype:"string"`
	Explorer       string `example:"https://explorer.karak.network/"           format:"string"  json:"explorer,omitempty"    swaggertype:"string"`
	BridgeContract string `example:"https://github.com/account"                format:"string"  json:"bridge,omitempty"      swaggertype:"string"`
	Stack          string `example:"op_stack"                                  format:"string"  json:"stack,omitempty"       swaggertype:"string"`
	Type           string `example:"settled"                                   format:"string"  json:"type,omitempty"        swaggertype:"string"`
	Category       string `example:"nft"                                       format:"string"  json:"category,omitempty"    swaggertype:"string"`
	Provider       string `example:"name"                                      format:"string"  json:"provider,omitempty"    swaggertype:"string"`
	Compression    string `example:"zip"                                       format:"string"  json:"compression,omitempty" swaggertype:"string"`
	VM             string `example:"evm"                                       format:"string"  json:"vm,omitempty"          swaggertype:"string"`
	SettledOn      string `example:"Ethereum"                                  format:"string"  json:"settled_on,omitempty"  swaggertype:"string"`
	Color          string `example:"#123456"                                   format:"string"  json:"color,omitempty"       swaggertype:"string"`

	AvgSize        int64   `example:"100" format:"integer" json:"avg_size"        swaggertype:"integer"`
	BlobsCount     int64   `example:"100" format:"integer" json:"blobs_count"     swaggertype:"integer"`
	TotalSize      int64   `example:"100" format:"integer" json:"total_size"      swaggertype:"integer"`
	Throghput      int64   `example:"100" format:"integer" json:"throughput"      swaggertype:"integer"`
	NamespaceCount int64   `example:"100" format:"integer" json:"namespace_count" swaggertype:"integer"`
	PfbCount       int64   `example:"100" format:"integer" json:"pfb_count"       swaggertype:"integer"`
	TotalFee       string  `example:"100" format:"string"  json:"total_fee"       swaggertype:"string"`
	MBPrice        string  `example:"100" format:"string"  json:"mb_price"        swaggertype:"string"`
	FeePerPfb      string  `example:"100" format:"string"  json:"fee_per_pfb"     swaggertype:"string"`
	BlobsPerPfb    float64 `example:"100" format:"float"   json:"blobs_per_pfb"   swaggertype:"number"`
}

func NewRollupWithDayStats added in v1.9.10

func NewRollupWithDayStats(r storage.RollupWithDayStats) RollupWithDayStats

type RollupWithStats added in v1.2.0

type RollupWithStats struct {
	Id             uint64 `example:"321"                                       format:"integer" json:"id"                    swaggertype:"integer"`
	Name           string `example:"Rollup name"                               format:"string"  json:"name"                  swaggertype:"string"`
	Description    string `example:"Long rollup description"                   format:"string"  json:"description,omitempty" swaggertype:"string"`
	Website        string `example:"https://website.com"                       format:"string"  json:"website,omitempty"     swaggertype:"string"`
	Twitter        string `example:"https://x.com/account"                     format:"string"  json:"twitter,omitempty"     swaggertype:"string"`
	Github         string `example:"https://github.com/account"                format:"string"  json:"github,omitempty"      swaggertype:"string"`
	Slug           string `example:"rollup_slug"                               format:"string"  json:"slug"                  swaggertype:"string"`
	L2Beat         string `example:"https://l2beat.com/scaling/projects/karak" format:"string"  json:"l2_beat,omitempty"     swaggertype:"string"`
	DeFiLama       string `example:"Manta"                                     format:"string"  json:"defi_lama,omitempty"   swaggertype:"string"`
	Explorer       string `example:"https://explorer.karak.network/"           format:"string"  json:"explorer,omitempty"    swaggertype:"string"`
	BridgeContract string `example:"https://github.com/account"                format:"string"  json:"bridge,omitempty"      swaggertype:"string"`
	Stack          string `example:"op_stack"                                  format:"string"  json:"stack,omitempty"       swaggertype:"string"`
	Type           string `example:"settled"                                   format:"string"  json:"type,omitempty"        swaggertype:"string"`
	Category       string `example:"nft"                                       format:"string"  json:"category,omitempty"    swaggertype:"string"`
	VM             string `example:"evm"                                       format:"string"  json:"vm,omitempty"          swaggertype:"string"`
	Provider       string `example:"name"                                      format:"string"  json:"provider,omitempty"    swaggertype:"string"`
	SettledOn      string `example:"Ethereum"                                  format:"string"  json:"settled_on,omitempty"  swaggertype:"string"`
	Color          string `example:"#123456"                                   format:"string"  json:"color,omitempty"       swaggertype:"string"`
	Compression    string `example:"zip"                                       format:"string"  json:"compression,omitempty" swaggertype:"string"`

	BlobsCount    int64     `example:"2"                         format:"integer"   json:"blobs_count"        swaggertype:"integer"`
	Size          int64     `example:"1000"                      format:"integer"   json:"size"               swaggertype:"integer"`
	LastAction    time.Time `example:"2023-07-04T03:10:57+00:00" format:"date-time" json:"last_message_time"  swaggertype:"string"`
	FirstAction   time.Time `example:"2023-07-04T03:10:57+00:00" format:"date-time" json:"first_message_time" swaggertype:"string"`
	Fee           string    `example:"123.456789"                format:"string"    json:"fee"                swaggertype:"string"`
	SizePct       float64   `example:"0.9876"                    format:"float"     json:"size_pct"           swaggertype:"number"`
	FeePct        float64   `example:"0.9876"                    format:"float"     json:"fee_pct"            swaggertype:"number"`
	BlobsCountPct float64   `example:"0.9876"                    format:"float"     json:"blobs_count_pct"    swaggertype:"number"`
	DAPct         float64   `example:"0.9876"                    format:"float"     json:"da_pct"             swaggertype:"number"`
	IsActive      bool      `example:"true"                      format:"boolean"   json:"is_active"          swaggertype:"boolean"`

	Tags  []string `json:"tags,omitempty"`
	Links []string `json:"links,omitempty"`
}

func NewRollupWithStats added in v1.2.0

func NewRollupWithStats(r storage.RollupWithStats) RollupWithStats

type SearchItem added in v1.4.0

type SearchItem struct {
	// Result type which is in the result. Can be 'block', 'address', 'namespace', 'tx', 'validator', 'rollup'
	Type string `json:"type"`

	// Search result. Can be one of folowwing types: Block, Address, Namespace, Tx, Validator, Rollup
	Result any `json:"result" swaggertype:"object"`
}

type SeriesItem added in v1.1.0

type SeriesItem struct {
	Time  time.Time `example:"2023-07-04T03:10:57+00:00" format:"date-time" json:"time"          swaggertype:"string"`
	Value string    `example:"0.17632"                   format:"string"    json:"value"         swaggertype:"string"`
	Max   string    `example:"0.17632"                   format:"string"    json:"max,omitempty" swaggertype:"string"`
	Min   string    `example:"0.17632"                   format:"string"    json:"min,omitempty" swaggertype:"string"`
}

func NewSeriesItem added in v1.1.0

func NewSeriesItem(item storage.SeriesItem) SeriesItem

type ShortAddress added in v1.10.17

type ShortAddress struct {
	Hash       string     `example:"celestia1jc92qdnty48pafummfr8ava2tjtuhfdw774w60" json:"hash" swaggertype:"string"`
	Celestials *Celestial `json:"celestials,omitempty"`
}

func NewShortAddress added in v1.10.17

func NewShortAddress(address *storage.Address) *ShortAddress

type ShortIbcClient added in v1.13.0

type ShortIbcClient struct {
	Id      string `example:"client-1"  format:"string" json:"id"       swaggertype:"string"`
	Type    string `example:"client"    format:"string" json:"type"     swaggertype:"string"`
	ChainId string `example:"osmosis-1" format:"binary" json:"chain_id" swaggertype:"string"`
}

func NewShortIbcClient added in v1.13.0

func NewShortIbcClient(client *storage.IbcClient) *ShortIbcClient

type ShortProposal added in v1.17.1

type ShortProposal struct {
	Id          uint64 `example:"321"                       format:"int64"  json:"id"          swaggertype:"integer"`
	Status      string `example:"active"                    format:"string" json:"status"      swaggertype:"string"`
	Title       string `example:"Proposal title"            format:"string" json:"title"       swaggertype:"string"`
	Description string `example:"Some proposal description" format:"string" json:"description" swaggertype:"string"`
}

func NewShortProposal added in v1.17.1

func NewShortProposal(proposal storage.Proposal) *ShortProposal

type ShortRollup added in v1.7.4

type ShortRollup struct {
	Id   uint64 `example:"321"                             format:"integer" json:"id"             swaggertype:"integer"`
	Name string `example:"Rollup name"                     format:"string"  json:"name"           swaggertype:"string"`
	Slug string `example:"rollup_slug"                     format:"string"  json:"slug"           swaggertype:"string"`
}

func NewShortRollup added in v1.7.4

func NewShortRollup(r *storage.Rollup) *ShortRollup

type ShortValidator added in v1.1.0

type ShortValidator struct {
	Id          uint64 `example:"321"                                      json:"id"           swaggertype:"integer"`
	ConsAddress string `example:"E641C7A2C964833E556AEF934FBF166B712874B6" json:"cons_address" swaggertype:"string"`
	Moniker     string `example:"Easy 2 Stake"                             json:"moniker"      swaggertype:"string"`
}

func NewShortValidator added in v1.1.0

func NewShortValidator(val storage.Validator) *ShortValidator

type SignalVersion added in v1.15.28

type SignalVersion struct {
	Id          uint64         `` /* 135-byte string literal not displayed */
	Height      pkgTypes.Level `` /* 135-byte string literal not displayed */
	Time        time.Time      `` /* 134-byte string literal not displayed */
	VotingPower string         `` /* 134-byte string literal not displayed */
	Version     uint64         `` /* 135-byte string literal not displayed */
	TxHash      string         `` /* 134-byte string literal not displayed */

	Validator *ShortValidator `json:"validator,omitempty"`
}

func NewSignalVersion added in v1.15.28

func NewSignalVersion(signal storage.SignalVersion) SignalVersion

type SignedBlocks added in v1.4.0

type SignedBlocks struct {
	Height types.Level `example:"100"  json:"height" swaggertype:"integer"`
	Signed bool        `example:"true" json:"signed" swaggertype:"boolean"`
}

type SizeGroup added in v1.11.3

type SizeGroup struct {
	Name    string `example:"Rollup name" format:"string"  json:"name"     swaggertype:"string"`
	Count   int64  `example:"123"         format:"integer" json:"count"    swaggertype:"integer"`
	Size    int64  `example:"123"         format:"integer" json:"size"     swaggertype:"integer"`
	AvgSize int64  `example:"123"         format:"integer" json:"avg_size" swaggertype:"integer"`
}

func NewSizeGroup added in v1.11.3

func NewSizeGroup(sg storage.SizeGroup) SizeGroup

type SquareSizeResponse added in v1.9.6

type SquareSizeResponse map[int][]TimeValueItem

func NewSquareSizeResponse added in v1.9.6

func NewSquareSizeResponse(m map[int][]storage.SeriesItem) SquareSizeResponse

type StakingDistribution added in v1.17.1

type StakingDistribution map[string][]StakingDistributionItem

func NewStakingDistribution added in v1.17.1

func NewStakingDistribution(items []storage.StakingDistributionItem) StakingDistribution

type StakingDistributionItem added in v1.17.1

type StakingDistributionItem struct {
	Time    time.Time `example:"2023-07-04T03:10:57+00:00" format:"date-time" json:"time"    swaggertype:"string"`
	Value   string    `example:"0.17632"                   format:"string"    json:"value"   swaggertype:"string"`
	Percent string    `example:"0.17632"                   format:"string"    json:"percent" swaggertype:"string"`
}

func NewStakingDistributionItem added in v1.17.1

func NewStakingDistributionItem(item storage.StakingDistributionItem) StakingDistributionItem

type State

type State struct {
	Id               uint64         `` /* 141-byte string literal not displayed */
	Version          uint64         `` /* 141-byte string literal not displayed */
	Name             string         `` /* 140-byte string literal not displayed */
	ChainId          string         `` /* 140-byte string literal not displayed */
	LastHeight       pkgTypes.Level `` /* 141-byte string literal not displayed */
	LastHash         string         `` /* 140-byte string literal not displayed */
	LastTime         time.Time      `` /* 140-byte string literal not displayed */
	TotalTx          int64          `` /* 141-byte string literal not displayed */
	TotalAccounts    int64          `` /* 141-byte string literal not displayed */
	TotalFee         string         `` /* 140-byte string literal not displayed */
	TotalBlobsSize   int64          `` /* 141-byte string literal not displayed */
	TotalProposals   int64          `` /* 141-byte string literal not displayed */
	TotalValidators  int            `` /* 141-byte string literal not displayed */
	TotalSupply      string         `` /* 140-byte string literal not displayed */
	TotalVotingPower string         `` /* 140-byte string literal not displayed */
	TotalNamespaces  int64          `` /* 141-byte string literal not displayed */
	TotalIbcClients  int64          `` /* 141-byte string literal not displayed */
	Synced           bool           `` /* 141-byte string literal not displayed */
}

func NewState

func NewState(state storage.State) State

type TPS added in v1.1.0

type TPS struct {
	High              float64 `example:"1.023" format:"float" json:"high"                 swaggertype:"number"`
	Low               float64 `example:"0.123" format:"float" json:"low"                  swaggertype:"number"`
	Current           float64 `example:"0.567" format:"float" json:"current"              swaggertype:"number"`
	ChangeLastHourPct float64 `example:"0.275" format:"float" json:"change_last_hour_pct" swaggertype:"number"`
}

func NewTPS added in v1.1.0

func NewTPS(tps storage.TPS) TPS

type TimeValueItem added in v1.9.6

type TimeValueItem struct {
	Time  time.Time `example:"2023-07-04T03:10:57+00:00" format:"date-time" json:"time"  swaggertype:"string"`
	Value string    `example:"0.17632"                   format:"string"    json:"value" swaggertype:"string"`
}

type TopNMetrics added in v1.17.1

type TopNMetrics struct {
	VotesMetric          string `example:"1" json:"votes_metric"           swaggertype:"string"`
	CommissionMetric     string `example:"1" json:"commission_metric"      swaggertype:"string"`
	OperationTimeMetric  string `example:"1" json:"operation_time_metric"  swaggertype:"string"`
	SelfDelegationMetric string `example:"1" json:"self_delegation_metric" swaggertype:"string"`
	BlockMissedMetric    string `example:"1" json:"block_missed_metric"    swaggertype:"string"`
}

func NewTopNMetrics added in v1.17.1

func NewTopNMetrics(value storage.ValidatorMetrics) TopNMetrics

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"`
	Signers  []*ShortAddress `json:"signers,omitempty"`

	MessageTypes []types.MsgType `example:"MsgSend,MsgUnjail" json:"message_types"`
	Status       types.Status    `example:"success"           json:"status"`

	MsgTypeMask types.MsgTypeBits `json:"-"`
}

func NewTx

func NewTx(tx storage.Tx) Tx

type TxForAddress added in v1.2.0

type TxForAddress struct {
	MessagesCount int64  `` /* 134-byte string literal not displayed */
	Hash          string `` /* 133-byte string literal not displayed */
	Fee           string `` /* 133-byte string literal not displayed */

	MessageTypes []types.MsgType `example:"MsgSend,MsgUnjail" json:"message_types"`
	Status       types.Status    `example:"success"           json:"status"`
}

func NewTxForAddress added in v1.2.0

func NewTxForAddress(tx *storage.Tx) TxForAddress

type Undelegation added in v1.6.0

type Undelegation struct {
	Height         pkgTypes.Level `example:"100"                       json:"height"          swaggertype:"integer"`
	Time           time.Time      `example:"2023-07-04T03:10:57+00:00" json:"time"            swaggertype:"string"`
	CompletionTime time.Time      `example:"2023-07-04T03:10:57+00:00" json:"completion_time" swaggertype:"string"`
	Amount         string         `example:"0.1"                       json:"amount"          swaggertype:"string"`

	Delegator *ShortAddress   `json:"delegator,omitempty"`
	Validator *ShortValidator `json:"validator,omitempty"`
}

func NewUndelegation added in v1.6.0

func NewUndelegation(d storage.Undelegation) Undelegation

type Upgrade added in v1.15.28

type Upgrade struct {
	Height       pkgTypes.Level `` /* 143-byte string literal not displayed */
	EndHeight    pkgTypes.Level `` /* 143-byte string literal not displayed */
	Time         time.Time      `` /* 142-byte string literal not displayed */
	EndTime      *time.Time     `` /* 142-byte string literal not displayed */
	Version      uint64         `` /* 143-byte string literal not displayed */
	MsgId        uint64         `` /* 143-byte string literal not displayed */
	TxHash       string         `` /* 142-byte string literal not displayed */
	VotingPower  string         `` /* 142-byte string literal not displayed */
	VotedPower   string         `` /* 142-byte string literal not displayed */
	SignalsCount int            `` /* 143-byte string literal not displayed */

	Signer *ShortAddress `json:"signer,omitempty"`
}

func NewUpgrade added in v1.15.28

func NewUpgrade(upgrade storage.Upgrade) Upgrade

type Validator added in v1.1.0

type Validator struct {
	Id          uint64 `example:"321"                                      json:"id"           swaggertype:"integer"`
	Version     uint64 `example:"5"                                        json:"version"      swaggertype:"integer"`
	ConsAddress string `example:"E641C7A2C964833E556AEF934FBF166B712874B6" json:"cons_address" swaggertype:"string"`

	Moniker  string `example:"Easy 2 Stake"                   json:"moniker"  swaggertype:"string"`
	Website  string `example:"https://www.easy2stake.com/"    json:"website"  swaggertype:"string"`
	Identity string `example:"2C877AC873132C91"               json:"identity" swaggertype:"string"`
	Contacts string `example:"security@0xfury.com"            json:"contacts" swaggertype:"string"`
	Details  string `example:"Some long text about validator" json:"details"  swaggertype:"string"`

	Rate              string `example:"0.03" json:"rate"                swaggertype:"string"`
	MaxRate           string `example:"0.1"  json:"max_rate"            swaggertype:"string"`
	MaxChangeRate     string `example:"0.01" json:"max_change_rate"     swaggertype:"string"`
	MinSelfDelegation string `example:"1"    json:"min_self_delegation" swaggertype:"string"`
	Stake             string `example:"1"    json:"stake"               swaggertype:"string"`
	Rewards           string `example:"1"    json:"rewards"             swaggertype:"string"`
	Commissions       string `example:"1"    json:"commissions"         swaggertype:"string"`
	VotingPower       string `example:"1"    json:"voting_power"        swaggertype:"string"`

	Jailed bool `example:"false" json:"jailed" swaggertype:"boolean"`

	MessagesCount uint64 `example:"1" json:"messages_count" swaggertype:"integer"`

	CreationTime time.Time `example:"2025-07-04T03:10:57+00:00" format:"date-time" json:"creation_time" swaggertype:"string"`

	Address   *ShortAddress `json:"address"`
	Delegator *ShortAddress `json:"delegator"`
}

func NewValidator added in v1.1.0

func NewValidator(val storage.Validator) *Validator

type ValidatorCount added in v1.6.0

type ValidatorCount struct {
	Total    int `example:"100" json:"total"    swaggertype:"integer"`
	Jailed   int `example:"100" json:"jailed"   swaggertype:"integer"`
	Active   int `example:"100" json:"active"   swaggertype:"integer"`
	Inactive int `example:"100" json:"inactive" swaggertype:"integer"`
}

type ValidatorUptime added in v1.4.0

type ValidatorUptime struct {
	Uptime string         `example:"0.97" json:"uptime" swaggertype:"string"`
	Blocks []SignedBlocks `json:"blocks"`
}

func NewValidatorUptime added in v1.4.0

func NewValidatorUptime(levels []types.Level, currentLevel types.Level, count types.Level) (uptime ValidatorUptime)

type Vesting added in v1.7.0

type Vesting struct {
	Id        uint64            `` /* 143-byte string literal not displayed */
	Height    pkgTypes.Level    `` /* 143-byte string literal not displayed */
	Time      time.Time         `` /* 142-byte string literal not displayed */
	StartTime *time.Time        `` /* 142-byte string literal not displayed */
	EndTime   *time.Time        `` /* 142-byte string literal not displayed */
	Hash      string            `` /* 142-byte string literal not displayed */
	Type      types.VestingType `` /* 142-byte string literal not displayed */
	Amount    string            `` /* 142-byte string literal not displayed */
}

func NewVesting added in v1.7.0

func NewVesting(v storage.VestingAccount) Vesting

type VestingPeriod added in v1.7.0

type VestingPeriod struct {
	Time   time.Time `example:"2023-07-04T03:10:57+00:00" format:"date-time" json:"time"   swaggertype:"string"`
	Amount string    `example:"123.13333"                 format:"string"    json:"amount" swaggertype:"string"`
}

func NewVestingPeriod added in v1.7.0

func NewVestingPeriod(v storage.VestingPeriod) VestingPeriod

type Vote added in v1.12.0

type Vote 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:"deposit_time" swaggertype:"string"`
	Option     types.VoteOption `example:"yes"                       format:"string"    json:"status"       swaggertype:"string"`
	Weight     decimal.Decimal  `example:"12345678"                  format:"int64"     json:"weight"       swaggertype:"integer"`
	VoterId    uint64           `example:"1"                         format:"int64"     json:"voter_id"     swaggertype:"integer"`
	ProposalId uint64           `example:"2"                         format:"int64"     json:"proposal_id"  swaggertype:"integer"`

	Voter     *ShortAddress   `json:"voter,omitempty"`
	Validator *ShortValidator `json:"validator,omitempty"`
	Proposal  *ShortProposal  `json:"proposal,omitempty"`
}

func NewVote added in v1.12.0

func NewVote(vote storage.Vote) Vote

Jump to

Keyboard shortcuts

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