pkgstate

package
v0.0.0-...-93382e6 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2022 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OPkg

type OPkg struct {
	Z localdb.ZPkg
	O pkg.Pkg_O
}

type PkgState

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

func NewPkgState

func NewPkgState(tri tri.Tri, num uint64) (state PkgState)

func (*PkgState) Close

func (self *PkgState) Close(id *c_type.Uint256, pkr *c_type.PKr, key *c_type.Uint256) (ret OPkg, e error)

func (*PkgState) Force_add

func (self *PkgState) Force_add(from *c_type.PKr, pack *stx.PkgCreate) (e error)

func (*PkgState) Force_del

func (self *PkgState) Force_del(hash *c_type.Uint256, close *stx.PkgClose) (e error)

func (*PkgState) Force_transfer

func (self *PkgState) Force_transfer(hash *c_type.Uint256, trans *stx.PkgTransfer) (e error)

func (*PkgState) GetPkgByHash

func (self *PkgState) GetPkgByHash(hash *c_type.Uint256) (ret *localdb.ZPkg)

func (*PkgState) GetPkgById

func (self *PkgState) GetPkgById(id *c_type.Uint256) (ret *localdb.ZPkg)

func (*PkgState) GetPkgHashes

func (state *PkgState) GetPkgHashes() (ret []c_type.Uint256)

func (*PkgState) RecordState

func (self *PkgState) RecordState(putter decedb.Putter, hash *c_type.Uint256)

func (*PkgState) Revert

func (self *PkgState) Revert(revid int)

func (*PkgState) Snapshot

func (self *PkgState) Snapshot(revid int)

func (*PkgState) Transfer

func (self *PkgState) Transfer(id *c_type.Uint256, pkr *c_type.PKr, to *c_type.PKr) (e error)

func (*PkgState) Update

func (self *PkgState) Update()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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