tokens

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2022 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApproveFixedSupplyGGP added in v0.2.3

func ApproveFixedSupplyGGP(ggp *gogopool.GoGoPool, spender common.Address, amount *big.Int, opts *bind.TransactOpts) (common.Hash, error)

Approve an fixed-supply GGP spender

func ApproveGGP added in v0.2.3

func ApproveGGP(ggp *gogopool.GoGoPool, spender common.Address, amount *big.Int, opts *bind.TransactOpts) (common.Hash, error)

Approve an GGP spender

func ApproveRETH added in v0.2.3

func ApproveRETH(ggp *gogopool.GoGoPool, spender common.Address, amount *big.Int, opts *bind.TransactOpts) (common.Hash, error)

Approve a rETH spender

func BurnRETH added in v0.2.3

func BurnRETH(ggp *gogopool.GoGoPool, amount *big.Int, opts *bind.TransactOpts) (common.Hash, error)

Burn rETH for ETH

func EstimateApproveFixedSupplyGGPGas added in v0.2.3

func EstimateApproveFixedSupplyGGPGas(ggp *gogopool.GoGoPool, spender common.Address, amount *big.Int, opts *bind.TransactOpts) (gogopool.GasInfo, error)

Estimate the gas of ApproveFixedSupplyGGP

func EstimateApproveGGPGas added in v0.2.3

func EstimateApproveGGPGas(ggp *gogopool.GoGoPool, spender common.Address, amount *big.Int, opts *bind.TransactOpts) (gogopool.GasInfo, error)

Estimate the gas of ApproveGGP

func EstimateApproveRETHGas added in v0.2.3

func EstimateApproveRETHGas(ggp *gogopool.GoGoPool, spender common.Address, amount *big.Int, opts *bind.TransactOpts) (gogopool.GasInfo, error)

Estimate the gas of ApproveRETH

func EstimateBurnRETHGas added in v0.2.3

func EstimateBurnRETHGas(ggp *gogopool.GoGoPool, amount *big.Int, opts *bind.TransactOpts) (gogopool.GasInfo, error)

Estimate the gas of BurnRETH

func EstimateMintInflationGGPGas added in v0.2.3

func EstimateMintInflationGGPGas(ggp *gogopool.GoGoPool, opts *bind.TransactOpts) (gogopool.GasInfo, error)

Estimate the gas of MintInflationGGP

func EstimateSwapFixedSupplyGGPForGGPGas added in v0.2.3

func EstimateSwapFixedSupplyGGPForGGPGas(ggp *gogopool.GoGoPool, amount *big.Int, opts *bind.TransactOpts) (gogopool.GasInfo, error)

Estimate the gas of SwapFixedSupplyGGPForGGP

func EstimateTransferFixedSupplyGGPGas added in v0.2.3

func EstimateTransferFixedSupplyGGPGas(ggp *gogopool.GoGoPool, to common.Address, amount *big.Int, opts *bind.TransactOpts) (gogopool.GasInfo, error)

Estimate the gas of TransferFixedSupplyGGP

func EstimateTransferFromFixedSupplyGGPGas added in v0.2.3

func EstimateTransferFromFixedSupplyGGPGas(ggp *gogopool.GoGoPool, from, to common.Address, amount *big.Int, opts *bind.TransactOpts) (gogopool.GasInfo, error)

Estimate the gas of TransferFromFixedSupplyGGP

func EstimateTransferFromGGPGas added in v0.2.3

func EstimateTransferFromGGPGas(ggp *gogopool.GoGoPool, from, to common.Address, amount *big.Int, opts *bind.TransactOpts) (gogopool.GasInfo, error)

Estimate the gas of TransferFromGGP

func EstimateTransferFromRETHGas added in v0.2.3

func EstimateTransferFromRETHGas(ggp *gogopool.GoGoPool, from, to common.Address, amount *big.Int, opts *bind.TransactOpts) (gogopool.GasInfo, error)

Estimate the gas of TransferFromRETH

func EstimateTransferGGPGas added in v0.2.3

func EstimateTransferGGPGas(ggp *gogopool.GoGoPool, to common.Address, amount *big.Int, opts *bind.TransactOpts) (gogopool.GasInfo, error)

Estimate the gas of TransferGGP

func EstimateTransferRETHGas added in v0.2.3

func EstimateTransferRETHGas(ggp *gogopool.GoGoPool, to common.Address, amount *big.Int, opts *bind.TransactOpts) (gogopool.GasInfo, error)

Estimate the gas of TransferRETH

func GetETHValueOfRETH added in v0.2.3

func GetETHValueOfRETH(ggp *gogopool.GoGoPool, rethAmount *big.Int, opts *bind.CallOpts) (*big.Int, error)

Get the ETH value of an amount of rETH

func GetFixedSupplyGGPAllowance added in v0.2.3

func GetFixedSupplyGGPAllowance(ggp *gogopool.GoGoPool, owner, spender common.Address, opts *bind.CallOpts) (*big.Int, error)

Get fixed-supply GGP allowance

func GetFixedSupplyGGPBalance added in v0.2.3

func GetFixedSupplyGGPBalance(ggp *gogopool.GoGoPool, address common.Address, opts *bind.CallOpts) (*big.Int, error)

Get fixed-supply GGP balance

func GetFixedSupplyGGPTotalSupply added in v0.2.3

func GetFixedSupplyGGPTotalSupply(ggp *gogopool.GoGoPool, opts *bind.CallOpts) (*big.Int, error)

Get fixed-supply GGP total supply

func GetGGPAllowance added in v0.2.3

func GetGGPAllowance(ggp *gogopool.GoGoPool, owner, spender common.Address, opts *bind.CallOpts) (*big.Int, error)

Get GGP allowance

func GetGGPBalance added in v0.2.3

func GetGGPBalance(ggp *gogopool.GoGoPool, address common.Address, opts *bind.CallOpts) (*big.Int, error)

Get GGP balance

func GetGGPInflationIntervalRate added in v0.2.3

func GetGGPInflationIntervalRate(ggp *gogopool.GoGoPool, opts *bind.CallOpts) (*big.Int, error)

Get the GGP inflation interval rate

func GetGGPTotalSupply added in v0.2.3

func GetGGPTotalSupply(ggp *gogopool.GoGoPool, opts *bind.CallOpts) (*big.Int, error)

Get GGP total supply

func GetRETHAllowance added in v0.2.3

func GetRETHAllowance(ggp *gogopool.GoGoPool, owner, spender common.Address, opts *bind.CallOpts) (*big.Int, error)

Get rETH allowance

func GetRETHBalance added in v0.2.3

func GetRETHBalance(ggp *gogopool.GoGoPool, address common.Address, opts *bind.CallOpts) (*big.Int, error)

Get rETH balance

func GetRETHCollateralRate added in v0.2.3

func GetRETHCollateralRate(ggp *gogopool.GoGoPool, opts *bind.CallOpts) (float64, error)

Get the rETH collateralization rate

func GetRETHContractETHBalance added in v0.2.3

func GetRETHContractETHBalance(ggp *gogopool.GoGoPool, opts *bind.CallOpts) (*big.Int, error)

Get the rETH contract ETH balance

func GetRETHExchangeRate added in v0.2.3

func GetRETHExchangeRate(ggp *gogopool.GoGoPool, opts *bind.CallOpts) (float64, error)

Get the current ETH : rETH exchange rate

func GetRETHTotalCollateral added in v0.2.3

func GetRETHTotalCollateral(ggp *gogopool.GoGoPool, opts *bind.CallOpts) (*big.Int, error)

Get the total amount of ETH collateral available for rETH trades

func GetRETHTotalSupply added in v0.2.3

func GetRETHTotalSupply(ggp *gogopool.GoGoPool, opts *bind.CallOpts) (*big.Int, error)

Get rETH total supply

func GetRETHValueOfETH added in v0.2.3

func GetRETHValueOfETH(ggp *gogopool.GoGoPool, ethAmount *big.Int, opts *bind.CallOpts) (*big.Int, error)

Get the rETH value of an amount of ETH

func MintInflationGGP added in v0.2.3

func MintInflationGGP(ggp *gogopool.GoGoPool, opts *bind.TransactOpts) (common.Hash, error)

Mint new GGP tokens from inflation

func SwapFixedSupplyGGPForGGP added in v0.2.3

func SwapFixedSupplyGGPForGGP(ggp *gogopool.GoGoPool, amount *big.Int, opts *bind.TransactOpts) (common.Hash, error)

Swap fixed-supply GGP for new GGP tokens

func TransferFixedSupplyGGP added in v0.2.3

func TransferFixedSupplyGGP(ggp *gogopool.GoGoPool, to common.Address, amount *big.Int, opts *bind.TransactOpts) (common.Hash, error)

Transfer fixed-supply GGP

func TransferFromFixedSupplyGGP added in v0.2.3

func TransferFromFixedSupplyGGP(ggp *gogopool.GoGoPool, from, to common.Address, amount *big.Int, opts *bind.TransactOpts) (common.Hash, error)

Transfer fixed-supply GGP from a sender

func TransferFromGGP added in v0.2.3

func TransferFromGGP(ggp *gogopool.GoGoPool, from, to common.Address, amount *big.Int, opts *bind.TransactOpts) (common.Hash, error)

Transfer GGP from a sender

func TransferFromRETH added in v0.2.3

func TransferFromRETH(ggp *gogopool.GoGoPool, from, to common.Address, amount *big.Int, opts *bind.TransactOpts) (common.Hash, error)

Transfer rETH from a sender

func TransferGGP added in v0.2.3

func TransferGGP(ggp *gogopool.GoGoPool, to common.Address, amount *big.Int, opts *bind.TransactOpts) (common.Hash, error)

Transfer GGP

func TransferRETH added in v0.2.3

func TransferRETH(ggp *gogopool.GoGoPool, to common.Address, amount *big.Int, opts *bind.TransactOpts) (common.Hash, error)

Transfer rETH

Types

type Balances

type Balances struct {
	AVAX           *big.Int `json:"eth"`
	GAVAX          *big.Int `json:"reth"`
	GGP            *big.Int `json:"ggp"`
	FixedSupplyGGP *big.Int `json:"fixedSupplyGgp"`
}

Token balances

func GetBalances added in v0.2.3

func GetBalances(ggp *gogopool.GoGoPool, address common.Address, opts *bind.CallOpts) (Balances, error)

Get token balances of an address

Jump to

Keyboard shortcuts

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