public_baker

package
v0.0.0-...-80b2b3e Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BakerRegistryContract = "KT1ChNsEFxwyCbJyWGSL3KdjeXE28AY1Kaog"
)

Variables

This section is empty.

Functions

func GetPublicBakerInfo

func GetPublicBakerInfo(ctx context.Context, rpc BakesProvider, container michelson.BigMapContainer, blockHash, operationHash string) (publicBaker models.BakerRegistry, isStorageOperation bool, err error)

func InitContractScript

func InitContractScript(ctx context.Context, rpc BakesProvider, contractHash string) (container michelson.BigMapContainer, err error)

func MonitorPublicBakers

func MonitorPublicBakers(ctx context.Context, unit UnitOfWork, rpc BakesProvider) (err error)

Types

type BakesProvider

type BakesProvider interface {
	Operation(ctx context.Context, blockHash, transactionHash string) (op rpc_client.Operation, err error)
	Script(ctx context.Context, contractHash string) (bm michelson.BigMap, err error)
}

type UnitOfWork

type UnitOfWork interface {
	GetBaker() baker.Repo
	GetOperation() operation.Repo
}

Jump to

Keyboard shortcuts

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