account

package
v0.0.0-...-c0db43c Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	bun.BaseModel `bun:"accounts"`

	ID                 int64             `bun:"id,pk,notnull,autoincrement"`
	Type               types.AccountType `bun:"type,type:SMALLINT"`
	Address            string            `bun:"address,type:text,unique:address_hash"`
	Level              int64             `bun:"level"`
	LastAction         time.Time         `bun:"last_action"`
	OperationsCount    int64             `bun:"operations_count"`
	MigrationsCount    int64             `bun:"migrations_count"`
	EventsCount        int64             `bun:"events_count"`
	TicketUpdatesCount int64             `bun:"ticket_updates_count"`
}

Account -

func (*Account) GetID

func (a *Account) GetID() int64

GetID -

func (*Account) IsEmpty

func (a *Account) IsEmpty() bool

IsEmpty -

func (Account) TableName

func (Account) TableName() string

type Repository

type Repository interface {
	Get(ctx context.Context, address string) (Account, error)
	RecentlyCalledContracts(ctx context.Context, offset, size int64) (accounts []Account, err error)
}

Jump to

Keyboard shortcuts

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