contract

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2025 License: LGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitDefaultValidator

func InitDefaultValidator(c *contract.Call)

func Validate

func Validate(relay bool, dstChain, dstMinAmount *big.Int, dstToken, dstReceiver, swapData []byte) (bool, error)

Types

type SwapDataValidator

type SwapDataValidator struct {
	Relay        bool
	DstChain     *big.Int
	DstToken     []byte
	DstReceiver  []byte
	DstMinAmount *big.Int
	SwapData     []byte
}

type Validator

type Validator interface {
	Validate(param *SwapDataValidator) (bool, error)
}

func NewValidator

func NewValidator(c *contract.Call) Validator

Jump to

Keyboard shortcuts

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