stakes

package
v0.5.6 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

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

func NewDB

func NewDB(conn *pgxpool.Pool) *DB

func (*DB) GetStakeByLatestStake

func (db *DB) GetStakeByLatestStake(ctx context.Context) (*string, error)

func (*DB) GetStakes

func (db *DB) GetStakes(ctx context.Context, walletID []byte) ([]*dto.Stake, error)

func (*DB) GetStakesByWalletID

func (db *DB) GetStakesByWalletID(ctx context.Context, walletID string) ([]*entry.Stake, error)

func (*DB) GetStakesByWorldID

func (db *DB) GetStakesByWorldID(ctx context.Context, worldID umid.UMID) ([]*entry.Stake, error)

func (*DB) GetStakesWithCount

func (db *DB) GetStakesWithCount(ctx context.Context) ([]*entry.Stake, error)

func (*DB) GetWalletsInfo

func (db *DB) GetWalletsInfo(ctx context.Context, walletIDs [][]byte) ([]*dto.WalletInfo, error)

func (*DB) InsertIntoPendingStakes

func (db *DB) InsertIntoPendingStakes(ctx context.Context, transactionID []byte,
	objectID umid.UMID,
	walletID []byte,
	blockchainID umid.UMID,
	amount *big.Int,
	comment string,
	kind uint8) error

Jump to

Keyboard shortcuts

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