Documentation ¶
Index ¶
- type Action
- type Address
- type AppWithStats
- type Asset
- type Balance
- type Block
- type BlockStats
- type Bridge
- type Constants
- type Deposit
- type Enums
- type Fee
- type FeeSummary
- type FullFee
- type NetworkSummary
- type NetworkSummaryWithChange
- type Params
- type Rollup
- type RollupAction
- type RollupSeriesItem
- type SearchResult
- type SeriesItem
- type ShortValidator
- type SignedBlocks
- type State
- type TokenTransferDistributionItem
- type Tx
- type TxFee
- type Validator
- type ValidatorUptime
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Action ¶
type Action struct { Id uint64 `` /* 140-byte string literal not displayed */ Height pkgTypes.Level `` /* 140-byte string literal not displayed */ Time time.Time `` /* 139-byte string literal not displayed */ Position int64 `` /* 140-byte string literal not displayed */ Type types.ActionType `` /* 139-byte string literal not displayed */ TxHash string `` /* 139-byte string literal not displayed */ Fee *Fee `json:"fee,omitempty"` Data map[string]any `json:"data"` }
func NewActionFromRollupAction ¶ added in v1.2.0
func NewActionFromRollupAction(action storage.RollupAction) Action
func NewActionWithTx ¶
func NewActionWithTx(action storage.ActionWithTx) Action
func NewAddressAction ¶
func NewAddressAction(action storage.AddressAction) Action
type Address ¶
type Address struct { Id uint64 `example:"321" json:"id" swaggertype:"integer"` Height pkgTypes.Level `example:"100" json:"first_height" swaggertype:"integer"` ActionsCount int64 `example:"10" json:"actions_count" swaggertype:"integer"` SignedTxCount int64 `example:"10" json:"signed_tx_count" swaggertype:"integer"` Nonce uint32 `example:"10" json:"nonce" swaggertype:"integer"` Hash string `example:"astria1phym4uktjn6gjle226009ge7u82w0dgtszs8x2" json:"hash" swaggertype:"string"` IsBridge bool `example:"false" json:"is_bridge" swaggertype:"boolean"` IsIbcRelayer bool `example:"false" json:"is_ibc_relayer" swaggertype:"boolean"` IsSudo bool `example:"false" json:"is_sudo" swaggertype:"boolean"` IsIbcSudo bool `example:"false" json:"is_ibc_sudo" swaggertype:"boolean"` Balance []Balance `json:"balances"` Bridge *Bridge `json:"bridge,omitempty"` }
Address model info
@Description address information
type AppWithStats ¶ added in v1.2.0
type AppWithStats 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"` Logo string `example:"https://some_link.com/image.png" format:"string" json:"logo,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"` Explorer string `example:"https://explorer.karak.network/" format:"string" json:"explorer,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"` NativeBridge string `example:"astria1phym4uktjn6gjle226009ge7u82w0dgtszs8x2" format:"string" json:"native_bridge" swaggertype:"string"` Rollup string `example:"O0Ia+lPYYMf3iFfxBaWXCSdlhphc6d4ZoBXINov6Tjc=" format:"string" json:"rollup" swaggertype:"string"` ActionsCount int64 `example:"2" format:"integer" json:"actions_count" swaggertype:"integer"` Size int64 `example:"1000" format:"integer" json:"size" swaggertype:"integer"` MinSize int64 `example:"1000" format:"integer" json:"min_size" swaggertype:"integer"` MaxSize int64 `example:"1000" format:"integer" json:"max_size" swaggertype:"integer"` AvgSize int64 `example:"1000" format:"integer" json:"avg_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"` Links []string `json:"links,omitempty"` }
func NewAppWithStats ¶ added in v1.2.0
func NewAppWithStats(r storage.AppWithStats) AppWithStats
type Asset ¶ added in v1.3.0
type Asset struct { Fee string `example:"1000" format:"string" json:"fee" swaggertype:"string"` FeeCount int `example:"100" format:"number" json:"fee_count" swaggertype:"integer"` Transferred string `example:"1000" format:"string" json:"transferred" swaggertype:"string"` TransferCount int `example:"100" format:"number" json:"transfer_count" swaggertype:"integer"` Asset string `example:"nria" format:"string" json:"asset" swaggertype:"string"` Supply string `example:"1000" format:"string" json:"supply" swaggertype:"string"` }
type Balance ¶
type Balance struct { Currency string `example:"nria" json:"currency" swaggertype:"string"` Value string `example:"10000000000" json:"value" swaggertype:"string"` }
Balance info
@Description Balance of address information
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"` ActionTypes []string `example:"rollup_data_submission,transfer" json:"action_types" swaggertype:"string"` Proposer *ShortValidator `json:"proposer,omitempty"` Stats *BlockStats `json:"stats,omitempty"` }
type BlockStats ¶
type BlockStats struct { TxCount int64 `example:"12" json:"tx_count" swaggertype:"integer"` Fee string `example:"28347628346" json:"fee" swaggertype:"string"` SupplyChange string `example:"8635234" json:"supply_change" swaggertype:"string"` BlockTime uint64 `example:"12354" json:"block_time" swaggertype:"integer"` BytesInBlock int64 `example:"1234" json:"bytes_in_block" swaggertype:"integer"` }
func NewBlockStats ¶
func NewBlockStats(stats *storage.BlockStats) *BlockStats
type Bridge ¶
type Bridge struct { Address string `example:"astria1phym4uktjn6gjle226009ge7u82w0dgtszs8x2" json:"address" swaggertype:"string"` Rollup []byte `example:"O0Ia+lPYYMf3iFfxBaWXCSdlhphc6d4ZoBXINov6Tjc=" json:"rollup" swaggertype:"string"` Sudo string `example:"astria1phym4uktjn6gjle226009ge7u82w0dgtszs8x2" json:"sudo,omitempty" swaggertype:"string"` Withdrawer string `example:"astria1phym4uktjn6gjle226009ge7u82w0dgtszs8x2" json:"withdrawer,omitempty" swaggertype:"string"` Asset string `example:"nria" json:"asset" swaggertype:"string"` FeeAsset string `example:"nria" json:"fee_asset" swaggertype:"string"` }
Bridge model info
@Description bridge account information
type Constants ¶
func NewConstants ¶
type Deposit ¶ added in v1.1.0
type Deposit struct { Id uint64 `` /* 148-byte string literal not displayed */ Height pkgTypes.Level `` /* 148-byte string literal not displayed */ Time time.Time `` /* 147-byte string literal not displayed */ Amount string `` /* 147-byte string literal not displayed */ Asset string `` /* 147-byte string literal not displayed */ DestinationChainAddress string `` /* 147-byte string literal not displayed */ TxHash string `` /* 147-byte string literal not displayed */ Rollup []byte `` /* 147-byte string literal not displayed */ Bridge string `` /* 147-byte string literal not displayed */ }
func NewDeposit ¶ added in v1.1.0
type Fee ¶
type FeeSummary ¶ added in v1.1.0
type FeeSummary struct { Asset string `example:"nria" format:"string" json:"asset"` Amount string `example:"1000000" format:"integer" json:"amount"` MinAmount string `example:"1000000" format:"integer" json:"min_amount"` MaxAmount string `example:"1000000" format:"integer" json:"max_amount"` FeeCount int64 `example:"1000000" format:"integer" json:"fee_count"` }
func NewFeeSummary ¶ added in v1.1.0
func NewFeeSummary(summary storage.FeeSummary) FeeSummary
type FullFee ¶ added in v1.1.0
type FullFee struct { Amount string `` /* 139-byte string literal not displayed */ Asset string `` /* 139-byte string literal not displayed */ Payer string `` /* 139-byte string literal not displayed */ TxHash string `` /* 139-byte string literal not displayed */ Height pkgTypes.Level `` /* 140-byte string literal not displayed */ Time time.Time `` /* 139-byte string literal not displayed */ }
func NewFullFee ¶ added in v1.1.0
type NetworkSummary ¶
type NetworkSummary struct { DataSize int64 `example:"1000000" format:"integer" json:"data_size"` TxCount int64 `example:"100" format:"integer" json:"tx_count"` BytesInBlock int64 `example:"1024" format:"integer" json:"bytes_in_block"` TPS float64 `example:"0.17632" format:"number" json:"tps"` BPS float64 `example:"0.17632" format:"number" json:"bps"` RBPS float64 `example:"0.17632" format:"number" json:"rbps"` BlockTime float64 `example:"2345" format:"number" json:"block_time"` Fee string `example:"1012012" format:"string" json:"fee"` Supply string `example:"1029129" format:"string" json:"supply"` }
func NewNetworkSummary ¶
func NewNetworkSummary(summary storage.NetworkSummary) NetworkSummary
type NetworkSummaryWithChange ¶
type NetworkSummaryWithChange struct { DataSize int64 `example:"1000000" format:"integer" json:"data_size"` DataSizePct float64 `example:"17.632" format:"number" json:"data_size_pct"` TxCount int64 `example:"100" format:"integer" json:"tx_count"` TxCountPct float64 `example:"17.632" format:"number" json:"tx_count_pct"` BytesInBlock int64 `example:"1024" format:"integer" json:"bytes_in_block"` BytesInBlockPct float64 `example:"17.632" format:"number" json:"bytes_in_block_pct"` TPS float64 `example:"0.17632" format:"number" json:"tps"` TPSPct float64 `example:"17.632" format:"number" json:"tps_pct"` BPS float64 `example:"0.17632" format:"number" json:"bps"` BPSPct float64 `example:"17.632" format:"number" json:"bps_pct"` RBPS float64 `example:"0.17632" format:"number" json:"rbps"` RBPSPct float64 `example:"17.632" format:"number" json:"rbps_pct"` BlockTime float64 `example:"2345" format:"number" json:"block_time"` BlockTimePct float64 `example:"17.632" format:"number" json:"block_time_pct"` }
func NewNetworkSummaryWithChange ¶
func NewNetworkSummaryWithChange(summary storage.NetworkSummaryWithChange) NetworkSummaryWithChange
type Rollup ¶
type Rollup struct { Id uint64 `example:"321" json:"id" swaggertype:"integer"` FirstHeight types.Level `example:"100" json:"first_height" swaggertype:"integer"` AstriaId []byte `example:"O0Ia+lPYYMf3iFfxBaWXCSdlhphc6d4ZoBXINov6Tjc=" json:"hash" swaggertype:"string"` ActionsCount int64 `example:"101" json:"actions_count" swaggertype:"integer"` BridgeCount int64 `example:"2" json:"bridge_count" swaggertype:"integer"` Size int64 `example:"100" json:"size" swaggertype:"integer"` App *AppWithStats `json:"app,omitempty"` }
type RollupAction ¶
func NewRollupAction ¶
func NewRollupAction(action storage.RollupAction) RollupAction
type RollupSeriesItem ¶
type RollupSeriesItem 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"` }
func NewRollupSeriesItem ¶
func NewRollupSeriesItem(item storage.SeriesItem) RollupSeriesItem
type SearchResult ¶
type SearchResult struct { Value string `json:"value"` Type string `json:"type"` Body any `json:"body,omitempty"` }
func NewSearchResult ¶
func NewSearchResult(value, typ string, body any) SearchResult
type SeriesItem ¶
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 ¶
func NewSeriesItem(item storage.SeriesItem) SeriesItem
type ShortValidator ¶
type ShortValidator struct { Id uint64 `example:"321" json:"id" swaggertype:"integer"` ConsAddress string `example:"E641C7A2C964833E556AEF934FBF166B712874B6" json:"address" swaggertype:"string"` Name string `example:"Node0" json:"name" swaggertype:"string"` }
func NewShortValidator ¶
func NewShortValidator(val *storage.Validator) *ShortValidator
type SignedBlocks ¶
type State ¶
type State struct { Id uint64 `` /* 137-byte string literal not displayed */ Name string `` /* 136-byte string literal not displayed */ ChainID string `` /* 136-byte string literal not displayed */ LastHeight pkgTypes.Level `` /* 137-byte string literal not displayed */ LastHash string `` /* 136-byte string literal not displayed */ LastTime time.Time `` /* 136-byte string literal not displayed */ TotalTx int64 `` /* 137-byte string literal not displayed */ TotalAccounts int64 `` /* 137-byte string literal not displayed */ TotalRollups int64 `` /* 137-byte string literal not displayed */ TotalBridges int64 `` /* 137-byte string literal not displayed */ TotalBytes int64 `` /* 137-byte string literal not displayed */ TotalSupply string `` /* 136-byte string literal not displayed */ Synced bool `` /* 137-byte string literal not displayed */ }
type TokenTransferDistributionItem ¶ added in v1.1.0
type TokenTransferDistributionItem struct { Asset string `example:"nria" format:"string" json:"asset"` Amount string `example:"1000000" format:"integer" json:"amount"` TransfersCount int64 `example:"1000000" format:"integer" json:"transfers_count"` }
func NewTokenTransferDistributionItem ¶ added in v1.1.0
func NewTokenTransferDistributionItem(summary storage.TokenTransferDistributionItem) TokenTransferDistributionItem
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 */ ActionsCount int64 `` /* 142-byte string literal not displayed */ Nonce uint32 `` /* 142-byte string literal not displayed */ Hash string `` /* 141-byte string literal not displayed */ Error string `` /* 141-byte string literal not displayed */ Codespace string `` /* 141-byte string literal not displayed */ Signature string `` /* 141-byte string literal not displayed */ Signer string `` /* 141-byte string literal not displayed */ Time time.Time `` /* 141-byte string literal not displayed */ Status types.Status `` /* 141-byte string literal not displayed */ ActionTypes []string `` /* 141-byte string literal not displayed */ Actions []Action `json:"actions,omitempty"` Fees []TxFee `json:"fees,omitempty"` }
type TxFee ¶ added in v1.3.0
type Validator ¶
type Validator struct { Id uint64 `example:"321" json:"id" swaggertype:"integer"` ConsAddress string `example:"E641C7A2C964833E556AEF934FBF166B712874B6" json:"address" swaggertype:"string"` Name string `example:"Node0" json:"name" swaggertype:"string"` PubkeyType string `example:"tendermint/PubKeyEd25519" json:"pubkey_type" swaggertype:"string"` Pubkey string `example:"a497aa4a22ca8232876082920b110678988c86194b0c2e12a04dcf6f53688bb2" json:"pubkey" swaggertype:"string"` Power string `example:"100" json:"power" swaggertype:"string"` }
func NewValidator ¶
type ValidatorUptime ¶
type ValidatorUptime struct { Uptime string `example:"0.97" json:"uptime" swaggertype:"string"` Blocks []SignedBlocks `json:"blocks"` }
func NewValidatorUptime ¶
Click to show internal directories.
Click to hide internal directories.