staking

package
v0.0.0-...-c9321c3 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2022 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidStaking = errors.New("not a valid staking contract")
)

Functions

func LookupERC20Address

func LookupERC20Address(ctx context.Context, transactionService transaction.Service, stakingContractAddress common.Address) (common.Address, error)

func VerifyBytecode

func VerifyBytecode(ctx context.Context, backend transaction.Backend, stakingContract common.Address) error

func VerifyStakingAdmin

func VerifyStakingAdmin(ctx context.Context, transactionService transaction.Service, stakingContractAddress common.Address) (bool, error)

Types

type Interface

type Interface interface {
	QueryStaking(ctx context.Context) (bool, error)
	QueryAllowance(ctx context.Context) (*big.Int, error)
	Staking(ctx context.Context) (bool, error)
}

func New

func New(
	owner common.Address,
	penguinNode penguin.Address,
	stakingContractAddress common.Address,
	penTokenAddress common.Address,
	transactionService transaction.Service,
) Interface

Jump to

Keyboard shortcuts

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