storage

package
v0.0.0-...-a9dd475 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrTreeIsNotSettled        = errors.New("tree is not settled")
	ErrInvalidPointer          = errors.New("invalid pointer")
	ErrUnknownTemporaryPointer = errors.New("unknown temporary pointer")
)

errors

View Source
var (
	ErrInvalidPath          = errors.Errorf("Invalid path")
	ErrPathIsNotPointer     = errors.Errorf("Path is not pointer")
	ErrPointerAlreadyExists = errors.Errorf("Pointer already exists")
)

Errors -

View Source
var (
	ErrBigMapNotFound = errors.New("Big map is not found")
)

errors -

Functions

func Enrich

func Enrich(storage *ast.TypedAst, bmd []bigmapdiff.BigMapDiff, skipEmpty, unpack bool) error

Enrich -

func EnrichFromState

func EnrichFromState(storage *ast.TypedAst, bmd []bigmapdiff.BigMapState, skipEmpty, unpack bool) error

EnrichFromState -

func FindByName

func FindByName(ctx context.Context, repo models.GeneralRepository, contracts contract.Repository, address, key, protocol string) *ast.BigMap

FindByName -

func GetBigMapPtr

func GetBigMapPtr(ctx context.Context, repo models.GeneralRepository, contracts contract.Repository, rpc noderpc.INode, address, key, protocol string, level int64) (int64, error)

GetBigMapPtr -

func GetStrings

func GetStrings(data []byte) ([]string, error)

GetStrings -

Types

type Alpha

type Alpha struct{}

Alpha -

func NewAlpha

func NewAlpha() *Alpha

NewAlpha -

func (*Alpha) ParseOrigination

func (a *Alpha) ParseOrigination(ctx context.Context, content noderpc.Operation, operation *operation.Operation, store parsers.Store) error

ParseOrigination -

func (*Alpha) ParseTransaction

func (a *Alpha) ParseTransaction(ctx context.Context, content noderpc.Operation, operation *operation.Operation, store parsers.Store) error

ParseTransaction -

type Babylon

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

Babylon -

func NewBabylon

func NewBabylon(bigmapdiffs bigmapdiff.Repository, operations operation.Repository, accounts account.Repository) *Babylon

NewBabylon -

func (*Babylon) ParseOrigination

func (b *Babylon) ParseOrigination(ctx context.Context, content noderpc.Operation, operation *operation.Operation, store parsers.Store) error

ParseOrigination -

func (*Babylon) ParseTransaction

func (b *Babylon) ParseTransaction(ctx context.Context, content noderpc.Operation, operation *operation.Operation, store parsers.Store) error

ParseTransaction -

type LazyBabylon

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

LazyBabylon -

func NewLazyBabylon

func NewLazyBabylon(repo bigmapdiff.Repository, operations operation.Repository, accounts account.Repository) *LazyBabylon

NewLazyBabylon -

func (*LazyBabylon) ParseOrigination

func (b *LazyBabylon) ParseOrigination(ctx context.Context, content noderpc.Operation, operation *operation.Operation, store parsers.Store) error

ParseOrigination -

func (*LazyBabylon) ParseTransaction

func (b *LazyBabylon) ParseTransaction(ctx context.Context, content noderpc.Operation, operation *operation.Operation, store parsers.Store) error

ParseTransaction -

type Parser

type Parser interface {
	ParseTransaction(ctx context.Context, content noderpc.Operation, operation *operation.Operation, store parsers.Store) error
	ParseOrigination(ctx context.Context, content noderpc.Operation, operation *operation.Operation, store parsers.Store) error
}

Parser -

Jump to

Keyboard shortcuts

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