spam

package
v1.13.13 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2025 License: MIT Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Filter added in v1.3.0

type Filter struct {
	Rules rules.Rules
}

func NewSpamFilter

func NewSpamFilter() *Filter

func (Filter) AccountTrust added in v1.3.0

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

func (*Filter) GetEventsScamData added in v1.3.0

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

func (*Filter) GetNftsScamData added in v1.3.0

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

func (Filter) IsScamEvent added in v1.3.0

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

func (Filter) JettonTrust added in v1.3.0

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

func (Filter) NftTrust added in v1.3.0

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