antispam

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2026 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Guard

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

func NewGuard

func NewGuard(integration integration.Antispam) *Guard

func (*Guard) AllowCurrencyLaunch added in v1.0.0

func (g *Guard) AllowCurrencyLaunch(ctx context.Context, owner *common.Account, name, symbol string) (bool, error)

func (*Guard) AllowDistribution

func (g *Guard) AllowDistribution(ctx context.Context, owner *common.Account, isPublic bool) (bool, error)

func (*Guard) AllowOpenAccounts

func (g *Guard) AllowOpenAccounts(ctx context.Context, owner *common.Account, accountSet transactionpb.OpenAccountsMetadata_AccountSet) (bool, error)

func (*Guard) AllowReceivePayments

func (g *Guard) AllowReceivePayments(ctx context.Context, owner *common.Account, isPublic bool) (bool, error)

func (*Guard) AllowSendPayment

func (g *Guard) AllowSendPayment(ctx context.Context, owner, destination *common.Account, isPublic bool) (bool, error)

func (*Guard) AllowSwap

func (g *Guard) AllowSwap(ctx context.Context, fundingSource swap.FundingSource, owner, fromMint, toMint *common.Account, amount uint64, initializesMint bool) (bool, error)

Jump to

Keyboard shortcuts

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