cycle

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: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CycleService

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

CycleService is a struct wrapper for cycle functions

func NewCycleService

func NewCycleService(blockService block.TezosBlockService) *CycleService

NewCycleService returns a new CycleService

func (*CycleService) GetCurrent

func (s *CycleService) GetCurrent() (int, error)

GetCurrent gets the current cycle of the chain

type TezosCycleService

type TezosCycleService interface {
	GetCurrent() (int, error)
}

Jump to

Keyboard shortcuts

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