staking

package
v0.0.0-...-fa704fd Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2022 License: BSD-3-Clause Imports: 14 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 *xwcclient.Client, 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)
	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