go-tezos: github.com/DefinitelyNotAGoat/go-tezos/snapshot Index | Files

package snapshot

import "github.com/DefinitelyNotAGoat/go-tezos/snapshot"


Package Files

interfaces.go mocks.go snapshot.go

type Snapshot Uses

type Snapshot struct {
    Cycle           int
    Number          int
    AssociatedHash  string
    AssociatedBlock int

Snapshot is a SnapShot on the Tezos Network.

type SnapshotQuery Uses

type SnapshotQuery struct {
    RandomSeed   string `json:"random_seed"`
    RollSnapShot int    `json:"roll_snapshot"`

SnapshotQuery is a Snapshot returned by the Tezos RPC API.

type SnapshotService Uses

type SnapshotService struct {
    // contains filtered or unexported fields

SnapshotService is a struct wrapper for snap shot functions

func NewSnapshotService Uses

func NewSnapshotService(cycleService cycle.TezosCycleService, tzclient tzc.TezosClient, blockService block.TezosBlockService, constants network.Constants) *SnapshotService

NewSnapshotService returns a new SnapShotService

func (*SnapshotService) Get Uses

func (s *SnapshotService) Get(cycle int) (Snapshot, error)

Get takes a cycle number and returns a helper structure describing a snap shot on the tezos network.

type TezosSnapshotService Uses

type TezosSnapshotService interface {
    Get(cycle int) (Snapshot, error)

Package snapshot imports 7 packages (graph) and is imported by 7 packages. Updated 2019-10-19. Refresh now. Tools for package owners.