goTezos: Index | Files

package cycle

import ""


Package Files

cycle.go interfaces.go mocks.go

type CycleService Uses

type CycleService struct {
    // contains filtered or unexported fields

CycleService is a struct wrapper for cycle functions

func NewCycleService Uses

func NewCycleService(blockService block.TezosBlockService) *CycleService

NewCycleService returns a new CycleService

func (*CycleService) GetCurrent Uses

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

GetCurrent gets the current cycle of the chain

type TezosCycleService Uses

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

Package cycle imports 2 packages (graph). Updated 2019-10-19. Refresh now. Tools for package owners.