spam

package
v2.8.3 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Filter

type Filter struct {
	Rules rules.Rules
}

func NewSpamFilter

func NewSpamFilter() *Filter

func (Filter) AccountTrust

func (f Filter) AccountTrust(address tongo.AccountID) core.TrustType

func (*Filter) GetEventsScamData

func (f *Filter) GetEventsScamData(ctx context.Context, ids []string) (map[string]bool, error)

func (*Filter) GetNftsScamData

func (f *Filter) GetNftsScamData(ctx context.Context, addresses []ton.AccountID) (map[ton.AccountID]core.TrustType, error)

func (Filter) IsScamEvent

func (f Filter) IsScamEvent(actions []oas.Action, viewer *ton.AccountID, initiator ton.AccountID) bool

func (Filter) JettonTrust

func (f Filter) JettonTrust(address tongo.AccountID, symbol, name, image string) core.TrustType

func (Filter) NftTrust

func (f Filter) NftTrust(address tongo.AccountID, collection *ton.AccountID, description, image string) core.TrustType

Jump to

Keyboard shortcuts

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