sendtype

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2024 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SendType

type SendType int
const (
	Transfer SendType = iota
	ENSRegister
	ENSRelease
	ENSSetPubKey
	StickersBuy
	Bridge
	ERC721Transfer
	ERC1155Transfer
	Swap
)

func (SendType) CanUseProcessor

func (s SendType) CanUseProcessor(p pathprocessor.PathProcessor) bool

canUseProcessor is used to check if certain SendType can be used with a given path processor

func (SendType) FetchPrices

func (s SendType) FetchPrices(marketManager *market.Manager, tokenIDs []string) (map[string]float64, error)

func (SendType) FindToken

func (s SendType) FindToken(tokenManager *token.Manager, collectibles *collectibles.Service, account common.Address, network *params.Network, tokenID string) *token.Token

func (SendType) IsAvailableBetween

func (s SendType) IsAvailableBetween(from, to *params.Network) bool

func (SendType) IsAvailableFor

func (s SendType) IsAvailableFor(network *params.Network) bool

func (SendType) IsCollectiblesTransfer

func (s SendType) IsCollectiblesTransfer() bool

func (SendType) IsEnsTransfer

func (s SendType) IsEnsTransfer() bool

func (SendType) IsStickersTransfer

func (s SendType) IsStickersTransfer() bool

func (SendType) ProcessZeroAmountInProcessor

func (s SendType) ProcessZeroAmountInProcessor(amountIn *big.Int, amountOut *big.Int, processorName string) bool

Jump to

Keyboard shortcuts

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