core

package
v0.0.0-...-c9547fa Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetKeeperGasMultiplier

func GetKeeperGasMultiplier(blockNumber *big.Int) uint64

Define maximums that can change by block height

func GetMaximumMintRequest

func GetMaximumMintRequest(blockNumber *big.Int) *big.Int

func GetPrioritisedFTSOContract

func GetPrioritisedFTSOContract(blockTime *big.Int) string

func GetSystemTriggerContractAddr

func GetSystemTriggerContractAddr(blockNumber *big.Int) string

func GetSystemTriggerSelector

func GetSystemTriggerSelector(blockNumber *big.Int) []byte

Types

type EVMCaller

type EVMCaller interface {
	Call(caller vm.ContractRef, addr common.Address, input []byte, gas uint64, value *big.Int) (ret []byte, leftOverGas uint64, err error)
	GetBlockNumber() *big.Int
	GetGasLimit() uint64
	AddBalance(addr common.Address, amount *big.Int)
}

Define interface for dependencies

type ErrInvalidKeeperData

type ErrInvalidKeeperData struct{}

Define errors

func (*ErrInvalidKeeperData) Error

func (e *ErrInvalidKeeperData) Error() string

type ErrKeeperDataEmpty

type ErrKeeperDataEmpty struct{}

func (*ErrKeeperDataEmpty) Error

func (e *ErrKeeperDataEmpty) Error() string

type ErrMaxMintExceeded

type ErrMaxMintExceeded struct {
	// contains filtered or unexported fields
}

func (*ErrMaxMintExceeded) Error

func (e *ErrMaxMintExceeded) Error() string

type ErrMintNegative

type ErrMintNegative struct{}

func (*ErrMintNegative) Error

func (e *ErrMintNegative) Error() string

Jump to

Keyboard shortcuts

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