store

package
v0.0.0-...-3eec7cb Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: MIT Imports: 17 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 struct {
	Block           *block.Block
	BigMapState     map[string]*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
	Stats           stats.Stats
	// contains filtered or unexported fields
}

Store -

func NewStore

func NewStore(db *bun.DB, statsRepo stats.Repository) *Store

NewStore -

func (*Store) AddAccounts

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

AddAccounts -

func (*Store) AddBigMapStates

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

AddBigMapStates -

func (*Store) AddContracts

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

AddContracts -

func (*Store) AddGlobalConstants

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

AddGlobalConstants -

func (*Store) AddMigrations

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

AddMigrations -

func (*Store) AddOperations

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

AddOperations -

func (*Store) AddSmartRollups

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

AddSmartRollups -

func (*Store) AddTicketBalances

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

AddTicketBalances -

func (*Store) AddTickets

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

AddTickets -

func (*Store) ListContracts

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

ListContracts -

func (*Store) ListOperations

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

ListOperations -

func (*Store) Save

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

Save -

func (*Store) SetBlock

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

Jump to

Keyboard shortcuts

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