Documentation ¶
Index ¶
- Constants
- func ToDoubleOperationEvidence(op tzblock.Operations) (dee models.DoubleOperationEvidence, err error)
- type Contents
- type InternalOperationResults
- type Metadata
- type Operation
- type Parameters
- type Tezos
- func (t *Tezos) BlocksInCycle(cycle int64) int64
- func (t *Tezos) CyclesBlocksCount(cycle int64) int64
- func (t *Tezos) DoubleOperationEvidence(ctx context.Context, blockLevel int, operationHash string) (dee models.DoubleOperationEvidence, err error)
- func (t *Tezos) EndorsementRightsFor(ctx context.Context, blockFrom, blockTo, currentHead int64) ([]models.EndorsementRight, error)
- func (t *Tezos) Operation(ctx context.Context, blockHash, transactionHash string) (op Operation, err error)
- func (t *Tezos) RightsFor(ctx context.Context, blockFrom, blockTo, currentHead int64) ([]models.FutureBakingRight, error)
- func (t *Tezos) RollsForBlock(ctx context.Context, blockLevel int64) (roll []models.Roll, err error)
- func (t *Tezos) Script(ctx context.Context, contractHash string) (bm michelson.BigMap, err error)
- func (t *Tezos) SnapshotForCycle(ctx context.Context, cycle int64, useHead bool) (snap models.Snapshot, err error)
Constants ¶
View Source
const ( GranadaBlocksInCycle int64 = 4096 * 2 GranadaCycle = 388 BlocksPerRollSnapshot = 256 * 2 EndorsementNum = 256 )
Variables ¶
This section is empty.
Functions ¶
func ToDoubleOperationEvidence ¶
func ToDoubleOperationEvidence(op tzblock.Operations) (dee models.DoubleOperationEvidence, err error)
Types ¶
type Contents ¶
type Contents struct { Parameters Parameters `json:"parameters` Kind string `json:"kind"` Metadata Metadata `json:"metadata"` Source string `json:"source"` }
type InternalOperationResults ¶
type InternalOperationResults struct {
Parameters Parameters `json:"parameters`
}
type Metadata ¶
type Metadata struct {
InternalOperationResults []InternalOperationResults `json:"internal_operation_results"`
}
type Parameters ¶
Todo move models somewhere Block parse
type Tezos ¶
type Tezos struct {
// contains filtered or unexported fields
}
func (*Tezos) BlocksInCycle ¶
func (*Tezos) CyclesBlocksCount ¶
Blocks count till cycle end
func (*Tezos) DoubleOperationEvidence ¶
func (*Tezos) EndorsementRightsFor ¶
func (*Tezos) RollsForBlock ¶
Click to show internal directories.
Click to hide internal directories.