parsers

package
v0.0.0-...-e7e250f Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store interface {
	AddBigMapStates(states ...*bigmapdiff.BigMapState)
	AddContracts(contracts ...*contract.Contract)
	AddMigrations(migrations ...*migration.Migration)
	AddOperations(operations ...*operation.Operation)
	AddGlobalConstants(constants ...*contract.GlobalConstant)
	AddSmartRollups(rollups ...*smartrollup.SmartRollup)
	AddTickets(tickets ...ticket.Ticket)
	AddTicketBalances(balances ...ticket.Balance)
	ListContracts() []*contract.Contract
	ListOperations() []*operation.Operation
	AddAccounts(accounts ...account.Account)
	Save(ctx context.Context) error
	SetBlock(block *block.Block)
}

Store -

type TestStore

type TestStore struct {
	Block           *block.Block
	BigMapState     []*bigmapdiff.BigMapState
	Contracts       []*contract.Contract
	Migrations      []*migration.Migration
	Operations      []*operation.Operation
	GlobalConstants []*contract.GlobalConstant
	SmartRollups    []*smartrollup.SmartRollup
	Tickets         map[string]*ticket.Ticket
	TicketBalances  map[string]*ticket.Balance
	Accounts        map[string]*account.Account
}

TestStore -

func NewTestStore

func NewTestStore() *TestStore

NewTestStore -

func (*TestStore) AddAccounts

func (store *TestStore) AddAccounts(accounts ...account.Account)

AddAccounts -

func (*TestStore) AddBigMapStates

func (store *TestStore) AddBigMapStates(states ...*bigmapdiff.BigMapState)

AddBigMapStates -

func (*TestStore) AddContracts

func (store *TestStore) AddContracts(contracts ...*contract.Contract)

AddContracts -

func (*TestStore) AddGlobalConstants

func (store *TestStore) AddGlobalConstants(constants ...*contract.GlobalConstant)

AddGlobalConstants -

func (*TestStore) AddMigrations

func (store *TestStore) AddMigrations(migrations ...*migration.Migration)

AddMigrations -

func (*TestStore) AddOperations

func (store *TestStore) AddOperations(operations ...*operation.Operation)

AddOperations -

func (*TestStore) AddSmartRollups

func (store *TestStore) AddSmartRollups(rollups ...*smartrollup.SmartRollup)

AddSmartRollups -

func (*TestStore) AddTicketBalances

func (store *TestStore) AddTicketBalances(balance ...ticket.Balance)

AddTicketBalances -

func (*TestStore) AddTickets

func (store *TestStore) AddTickets(tickets ...ticket.Ticket)

AddTickets -

func (*TestStore) ListContracts

func (store *TestStore) ListContracts() []*contract.Contract

ListContracts -

func (*TestStore) ListOperations

func (store *TestStore) ListOperations() []*operation.Operation

ListOperations -

func (*TestStore) Save

func (store *TestStore) Save(ctx context.Context) error

Save -

func (*TestStore) SetBlock

func (store *TestStore) SetBlock(block *block.Block)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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