snapshot

package
v2.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Snapshot

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

Snapshot is a SnapShot on the Tezos Network.

type SnapshotQuery

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

type SnapshotService struct {
	// contains filtered or unexported fields
}

SnapshotService is a struct wrapper for snap shot functions

func NewSnapshotService

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

NewSnapshotService returns a new SnapShotService

func (*SnapshotService) Get

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

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

Jump to

Keyboard shortcuts

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