Documentation
¶
Index ¶
- func Account(block *graph.Block, input *graph.Account) (*model.Account, error)
- func Accounts(block *graph.Block) ([]model.Account, error)
- func BlockFromArchive(input *archive.Block) (*model.Block, error)
- func BlockHeight(input *graph.Block) uint64
- func BlockRewardTransaction(block *graph.Block) (*model.Transaction, error)
- func BlockTime(input *graph.Block) time.Time
- func FeeTransaction(block *graph.Block, transfer *graph.FeeTransfer) (*model.Transaction, error)
- func SnarkFeeTransaction(block *graph.Block, transfer *graph.FeeTransfer) (*model.Transaction, error)
- func SnarkJob(block *graph.Block, w *graph.CompletedWork) (*model.SnarkJob, error)
- func SnarkJobs(block *graph.Block) ([]model.SnarkJob, error)
- func Snarker(block *graph.Block, job *graph.CompletedWork) (*model.Snarker, error)
- func Snarkers(block *graph.Block) ([]model.Snarker, error)
- func Transactions(block *graph.Block) ([]model.Transaction, error)
- func TransactionsFromArchive(block *archive.Block) ([]model.Transaction, error)
- func UserTransaction(block *graph.Block, t *graph.UserCommand) (*model.Transaction, error)
- func Validator(block *archive.Block) (*model.Validator, error)
- type LedgerData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BlockHeight ¶
BlockHeight returns a parsed block height
func BlockRewardTransaction ¶
func BlockRewardTransaction(block *graph.Block) (*model.Transaction, error)
func FeeTransaction ¶
func FeeTransaction(block *graph.Block, transfer *graph.FeeTransfer) (*model.Transaction, error)
func SnarkFeeTransaction ¶
func SnarkFeeTransaction(block *graph.Block, transfer *graph.FeeTransfer) (*model.Transaction, error)
func Transactions ¶
func Transactions(block *graph.Block) ([]model.Transaction, error)
Transactions returns a list of transactions from the coda input
func TransactionsFromArchive ¶
func TransactionsFromArchive(block *archive.Block) ([]model.Transaction, error)
func UserTransaction ¶
func UserTransaction(block *graph.Block, t *graph.UserCommand) (*model.Transaction, error)
Types ¶
type LedgerData ¶
type LedgerData struct { Ledger *model.Ledger Entries []model.LedgerEntry }
func Ledger ¶
func Ledger(tip *graph.Block, records []archive.StakingInfo) (*LedgerData, error)
func (*LedgerData) UpdateLedgerID ¶
func (data *LedgerData) UpdateLedgerID()
Click to show internal directories.
Click to hide internal directories.