fees

package
v1.0.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFeesCmd

func NewFeesCmd(walletConfig *clitypes.WalletConfig) *cobra.Command

NewFeesCmd creates a new cobra command for the wallet fees component.

Types

type AccountInfoWrapper

type AccountInfoWrapper struct {
	AccountNumber uint64
	FcrId         basetypes.UnitID
	Balance       uint64
	LockedReason  string
}

func (AccountInfoWrapper) String

func (a AccountInfoWrapper) String() string

type FeeCreditManager

type FeeCreditManager interface {
	GetFeeCredit(ctx context.Context, cmd fees.GetFeeCreditCmd) (*types.FeeCreditRecord, error)
	AddFeeCredit(ctx context.Context, cmd fees.AddFeeCmd) (*fees.AddFeeCmdResponse, error)
	ReclaimFeeCredit(ctx context.Context, cmd fees.ReclaimFeeCmd) (*fees.ReclaimFeeCmdResponse, error)
	LockFeeCredit(ctx context.Context, cmd fees.LockFeeCreditCmd) (*basetypes.TxRecordProof, error)
	UnlockFeeCredit(ctx context.Context, cmd fees.UnlockFeeCreditCmd) (*basetypes.TxRecordProof, error)
	MinAddFeeAmount() uint64
	MinReclaimFeeAmount() uint64
	Close()
}

Jump to

Keyboard shortcuts

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