contracts

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Uint8Type, _   = abi.NewType("uint8", "", nil)
	Uint16Type, _  = abi.NewType("uint16", "", nil)
	Uint32Type, _  = abi.NewType("uint32", "", nil)
	Uint64Type, _  = abi.NewType("uint64", "", nil)
	AddressType, _ = abi.NewType("address", "", nil)
	BoolType, _    = abi.NewType("bool", "", nil)
)
View Source
var (
	//go:embed compiled/CrocPolicy.json
	CrocPolicyJSON []byte // nolint: golint

	// CrocPolicyContract is the compiled contract
	CrocPolicyContract evmtypes.CompiledContract
)
View Source
var (
	//go:embed compiled/ERC20MinterBurnerDecimals.json
	ERC20MinterBurnerDecimalsJSON []byte // nolint: golint

	// ERC20MinterBurnerDecimalsContract is the compiled erc20 contract
	ERC20MinterBurnerDecimalsContract evmtypes.CompiledContract

	// ERC20MinterBurnerDecimalsAddress is the erc20 module address
	ERC20MinterBurnerDecimalsAddress common.Address
)
View Source
var (
	//go:embed compiled/ERC20DirectBalanceManipulation.json
	ERC20DirectBalanceManipulationJSON []byte // nolint: golint

	// ERC20DirectBalanceManipulationContract is the compiled erc20 contract
	ERC20DirectBalanceManipulationContract evmtypes.CompiledContract

	// ERC20DirectBalanceManipulationAddress is the erc20 module address
	ERC20DirectBalanceManipulationAddress common.Address
)

This is an evil token. Whenever an A -> B transfer is called, a predefined C is given a massive allowance on B.

View Source
var (
	//go:embed compiled/ERC20MaliciousDelayed.json
	ERC20MaliciousDelayedJSON []byte // nolint: golint

	// ERC20MaliciousDelayedContract is the compiled erc20 contract
	ERC20MaliciousDelayedContract evmtypes.CompiledContract

	// ERC20MaliciousDelayedAddress is the erc20 module address
	ERC20MaliciousDelayedAddress common.Address
)

This is an evil token. Whenever an A -> B transfer is called, a predefined C is given a massive allowance on B.

View Source
var (
	//go:embed compiled/LiquidInfrastructureNFT.json
	LiquidInfrastructureNFTJSON []byte // nolint: golint

	// LiquidInfrastructureNFTContract is the compiled erc20 contract
	LiquidInfrastructureNFTContract evmtypes.CompiledContract
)
View Source
var (

	// ERC20BurnableContract is the compiled ERC20Burnable contract
	ERC20BurnableContract evmtypes.CompiledContract
)

Functions

func EncodeArguments

func EncodeArguments(args []abi.Argument, values []interface{}) ([]byte, error)

func EncodeTypes

func EncodeTypes(names []string, values []interface{}) ([]byte, error)

func GetType

func GetType(name string) (abi.Type, error)

func GetTypeArguments

func GetTypeArguments(names []string) ([]abi.Argument, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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