common

package
v0.8.5 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2021 License: Apache-2.0, MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Actor

type Actor struct {
	Height    int64  `pg:",pk,notnull,use_zero"`
	ID        string `pg:",pk,notnull"`
	StateRoot string `pg:",pk,notnull"`
	Code      string `pg:",notnull"`
	Head      string `pg:",notnull"`
	Balance   string `pg:",notnull"`
	Nonce     uint64 `pg:",use_zero"`
}

func (*Actor) Persist

func (a *Actor) Persist(ctx context.Context, s model.StorageBatch, version model.Version) error

type ActorList

type ActorList []*Actor

ActorList is a slice of Actors persistable in a single batch.

func (ActorList) Persist

func (actors ActorList) Persist(ctx context.Context, s model.StorageBatch, version model.Version) error

type ActorState

type ActorState struct {
	Height int64  `pg:",pk,notnull,use_zero"`
	Head   string `pg:",pk,notnull"`
	Code   string `pg:",pk,notnull"`
	State  string `pg:",type:jsonb,notnull"`
}

func (*ActorState) Persist

func (as *ActorState) Persist(ctx context.Context, s model.StorageBatch, version model.Version) error

type ActorStateList

type ActorStateList []*ActorState

ActorStateList is a list of ActorStates persistable in a single batch.

func (ActorStateList) Persist

func (states ActorStateList) Persist(ctx context.Context, s model.StorageBatch, version model.Version) error

type ActorTaskResult

type ActorTaskResult struct {
	Actor *Actor
	State *ActorState
}

func (*ActorTaskResult) Persist

func (a *ActorTaskResult) Persist(ctx context.Context, s model.StorageBatch, version model.Version) error

Jump to

Keyboard shortcuts

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