account

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTables

func CreateTables(ctx context.Context, chDB *ch.DB, pgDB *bun.DB) error

Types

type Repository

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

func NewRepository

func NewRepository(ck *ch.DB, pg *bun.DB) *Repository

func (*Repository) AddAccountStates

func (r *Repository) AddAccountStates(ctx context.Context, tx bun.Tx, accounts []*core.AccountState) error

func (*Repository) AddAddressLabel added in v0.3.1

func (r *Repository) AddAddressLabel(ctx context.Context, label *core.AddressLabel) error

func (*Repository) AggregateAccounts

func (r *Repository) AggregateAccounts(ctx context.Context, req *aggregate.AccountsReq) (*aggregate.AccountsRes, error)

func (*Repository) AggregateAccountsHistory

func (r *Repository) AggregateAccountsHistory(ctx context.Context, req *history.AccountsReq) (*history.AccountsRes, error)

func (*Repository) FilterAccounts

func (r *Repository) FilterAccounts(ctx context.Context, f *filter.AccountsReq) (*filter.AccountsRes, error)

func (*Repository) FilterLabels added in v0.3.2

func (r *Repository) FilterLabels(ctx context.Context, f *filter.LabelsReq) (*filter.LabelsRes, error)

func (*Repository) GetAddressLabel added in v0.3.2

func (r *Repository) GetAddressLabel(ctx context.Context, a addr.Address) (*core.AddressLabel, error)

func (*Repository) GetAllAccountInterfaces added in v0.4.1

func (r *Repository) GetAllAccountInterfaces(ctx context.Context, a addr.Address) (map[uint64][]abi.ContractName, error)

func (*Repository) GetAllAccountStates added in v0.4.1

func (r *Repository) GetAllAccountStates(ctx context.Context, a addr.Address, beforeTxLT uint64, limit int) ([]*core.AccountState, error)

func (*Repository) MatchStatesByInterfaceDesc added in v0.4.1

func (r *Repository) MatchStatesByInterfaceDesc(ctx context.Context,
	contractName abi.ContractName,
	addresses []*addr.Address,
	codeHash []byte,
	getMethodHashes []int32,
	afterAddress *addr.Address,
	afterTxLt uint64,
	limit int,
) ([]*core.AccountStateID, error)

func (*Repository) UpdateAccountStates added in v0.4.1

func (r *Repository) UpdateAccountStates(ctx context.Context, accounts []*core.AccountState) error

Jump to

Keyboard shortcuts

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