model

package
v0.0.69 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountInfo

type AccountInfo struct {
	TotalTransactions    int64
	FirstTransactionDate time.Time
	TotalReceived        DecCoin
	TotalSpent           DecCoin
}

type AggregatedInfo

type AggregatedInfo struct {
	UpdatedAt    time.Time         `json:"updated_at"`
	Blocks       TotalBlocks       `json:"blocks"`
	Transactions TotalTransactions `json:"transactions"`
	Wallets      TotalWallets      `json:"wallets"`
}

type BlockInfo

type BlockInfo struct {
	BlockHeight              int64
	ProposedValidatorAddress string
	GenerationTime           time.Time
	TimeElapsed              int64
	TotalFees                decimal.Decimal
	TotalTx                  int64
	BlockHash                string
	GasUsed                  decimal.Decimal
	GasWanted                decimal.Decimal
	BlockRewards             decimal.Decimal
}

type BlockSigned

type BlockSigned struct {
	BlockHeight int64
	Signed      bool
}

type BlockSigners

type BlockSigners struct {
	BlockHeight int64
	Validator   string
	Time        time.Time
	Rank        int64
}

type DecCoin

type DecCoin struct {
	Denom  string
	Amount decimal.Decimal
}

type Denom

type Denom struct {
	Denom  string
	Amount string
}

type SearchResult

type SearchResult struct {
	TxHash      string `bson:"tx_hash"`
	Type        string `bson:"type"`
	BlockHeight string `bson:"block_height"`
}

type TotalBlocks

type TotalBlocks struct {
	BlockHeight int64           `json:"block_height"`
	Count24H    int64           `json:"count_24h"`
	Count48H    int64           `json:"count_48h"`
	BlockTime   int64           `json:"block_time"`
	TotalFee24H decimal.Decimal `json:"total_fee_24h"`
}

type TotalTransactions

type TotalTransactions struct {
	Total     int64           `json:"total"`
	Total24H  int64           `json:"total_24h"`
	Total48H  int64           `json:"total_48h"`
	Total30D  int64           `json:"total_30d"`
	Volume24H decimal.Decimal `json:"volume_24h"`
	Volume30D decimal.Decimal `json:"volume_30d"`
}

type TotalWallets

type TotalWallets struct {
	Total    int64 `json:"total"`
	Count24H int64 `json:"count_24h"`
	Count48H int64 `json:"count_48h"`
	Count30D int64 `json:"count_30d"`
}

type Tx

type Tx struct {
	Messages []string
	Memo     string
	AuthInfo TxAuthInfo
}

type TxAuthInfo

type TxAuthInfo struct {
	PublicKeys []string
	Fee        TxFee
	Signatures []string
}

type TxByHourWithCount

type TxByHourWithCount struct {
	Points   []*TxsByHour
	Total24H int64
	Total48H int64
}

type TxEvents

type TxEvents struct {
	MessageType string `json:"message_type,omitempty"`
	EventIndex  int    `json:"event_index"`
	Type        string `json:"type,omitempty"`
	Index       int    `json:"index,omitempty"`
	Value       string `json:"value,omitempty"`
	Key         string `json:"key,omitempty"`
}

type TxFee

type TxFee struct {
	Amount   Denom
	GasLimit string
	Payer    string
	Granter  string
}

type TxSenderReceiver

type TxSenderReceiver struct {
	MessageType string `json:"message_type,omitempty"`
	Sender      string `json:"sender,omitempty"`
	Receiver    string `json:"receiver,omitempty"`
	Amount      string `json:"amount,omitempty"`
	Denom       string `json:"denom,omitempty"`
}

type TxVolumeByHour

type TxVolumeByHour struct {
	TxVolume decimal.Decimal
	Hour     time.Time
}

type TxsByDay

type TxsByDay struct {
	TxNum int32
	Day   time.Time
}

type TxsByHour

type TxsByHour struct {
	TxNum int32
	Hour  time.Time
}

type Validators

type Validators struct {
	Address string
}

type VotesTransaction

type VotesTransaction struct {
	BlockHeight int64     `json:"block_height"`
	Timestamp   time.Time `json:"timestamp"`
	TxHash      string    `json:"tx_hash"`
	ProposalID  int       `json:"proposal_id"`
	Voter       string    `json:"voter"`
	Option      string    `json:"option"`
	Weight      string    `json:"weight"`
}

type WalletWithTxs

type WalletWithTxs struct {
	Account string `json:"account"`
	TxCount int64  `json:"tx_count"`
}

Jump to

Keyboard shortcuts

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