Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct { ID string `json:"id"` PublicKey string `json:"public_key"` Balance decimal.Decimal `json:"balance"` Nonce uint64 `json:"nonce"` TransactionsSent int64 `json:"transactions_sent"` TransactionsReceived int64 `json:"transactions_received"` }
Account represents a blockchain account
type Epoch ¶
type Epoch struct { ID uint64 `json:"-"` Height *int64 `json:"height"` BlocksCount *uint16 `json:"blocks_count"` CreatedAt time.Time `json:"processed_at"` UpdatedAt time.Time `json:"-"` }
Epoch represents a blockchain height
type Event ¶
type Event struct { ID uint64 `json:"-"` Height *int64 `json:"height"` MinerAddress string `json:"miner_address"` Kind types.EventKind `json:"kind"` Data types.JSONB `json:"data"` CreatedAt time.Time `json:"-"` UpdatedAt time.Time `json:"-"` }
Event represents a network event
type Miner ¶
type Miner struct { ID uint64 `json:"-"` Height *int64 `json:"-"` Address string `json:"address"` SectorSize *uint64 `json:"sector_size"` RawBytePower *uint64 `json:"raw_byte_power"` QualityAdjPower *uint64 `json:"quality_adj_power"` RelativePower *float32 `json:"relative_power"` DealsCount *uint32 `json:"deals_count"` SlashedDealsCount *uint32 `json:"slashed_deals_count"` FaultsCount *uint32 `json:"faults_count"` Score *uint32 `json:"score"` CreatedAt time.Time `json:"-"` UpdatedAt time.Time `json:"-"` }
Miner represents a storage miner
type Transaction ¶
type Transaction struct { ID uint64 `json:"-"` CID string `json:"cid" gorm:"column:cid"` Height *int64 `json:"height"` From string `json:"from"` To string `json:"to"` Value decimal.Decimal `json:"value"` Method string `json:"method"` CreatedAt time.Time `json:"-"` UpdatedAt time.Time `json:"-"` }
Transaction represents a blockchain transaction
Click to show internal directories.
Click to hide internal directories.