crypto

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientService

type ClientService struct{}

func NewClientService

func NewClientService() *ClientService

func (*ClientService) GetClient

func (c *ClientService) GetClient(networkUrl string) (*ethclient.Client, error)

type PancakeSwapService

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

func NewPancakeSwapService

func NewPancakeSwapService(client *ethclient.Client, chainId uint64, gasLimit uint64, gasPriceThreshold uint64) (*PancakeSwapService, error)

func (*PancakeSwapService) GetEarningCakeSinceLastActionFromCakePool

func (p *PancakeSwapService) GetEarningCakeSinceLastActionFromCakePool(address common.Address) (*big.Int, error)

func (*PancakeSwapService) GetUserInfoFromCakePool

func (p *PancakeSwapService) GetUserInfoFromCakePool(address common.Address) (*UserInfo, error)

type TestContractService

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

func NewTestContractService

func NewTestContractService(client *ethclient.Client, chainId uint64, gasLimit uint64, gasPriceThreshold uint64) (*TestContractService, error)

func (*TestContractService) Increase

func (t *TestContractService) Increase(privateKey string) (*types.Transaction, error)

type UserInfo

type UserInfo struct {
	Shares               *big.Int
	LastDepositedTime    *big.Int
	CakeAtLastUserAction *big.Int
	LastUserActionTime   *big.Int
	LockStartTime        *big.Int
	LockEndTime          *big.Int
	UserBoostedShare     *big.Int
	Locked               bool
	LockedAmount         *big.Int
}

Jump to

Keyboard shortcuts

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