tokens

package
v0.0.0-...-a5a7577 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApproveFixedSupplyRPL

func ApproveFixedSupplyRPL(rp *stader.PermissionlessNodeRegistryContractManager, spender common.Address, amount *big.Int, opts *bind.TransactOpts) (common.Hash, error)

Approve an fixed-supply RPL spender

func ApproveRPL

Approve an RPL spender

func EstimateApproveFixedSupplyRPLGas

func EstimateApproveFixedSupplyRPLGas(rp *stader.PermissionlessNodeRegistryContractManager, spender common.Address, amount *big.Int, opts *bind.TransactOpts) (stader.GasInfo, error)

Estimate the gas of ApproveFixedSupplyRPL

func EstimateApproveRPLGas

func EstimateApproveRPLGas(rp *stader.PermissionlessNodeRegistryContractManager, spender common.Address, amount *big.Int, opts *bind.TransactOpts) (stader.GasInfo, error)

Estimate the gas of ApproveRPL

func EstimateMintInflationRPLGas

func EstimateMintInflationRPLGas(rp *stader.PermissionlessNodeRegistryContractManager, opts *bind.TransactOpts) (stader.GasInfo, error)

Estimate the gas of MintInflationRPL

func EstimateSwapFixedSupplyRPLForRPLGas

func EstimateSwapFixedSupplyRPLForRPLGas(rp *stader.PermissionlessNodeRegistryContractManager, amount *big.Int, opts *bind.TransactOpts) (stader.GasInfo, error)

Estimate the gas of SwapFixedSupplyRPLForRPL

func EstimateTransferFixedSupplyRPLGas

func EstimateTransferFixedSupplyRPLGas(rp *stader.PermissionlessNodeRegistryContractManager, to common.Address, amount *big.Int, opts *bind.TransactOpts) (stader.GasInfo, error)

Estimate the gas of TransferFixedSupplyRPL

func EstimateTransferFromFixedSupplyRPLGas

func EstimateTransferFromFixedSupplyRPLGas(rp *stader.PermissionlessNodeRegistryContractManager, from, to common.Address, amount *big.Int, opts *bind.TransactOpts) (stader.GasInfo, error)

Estimate the gas of TransferFromFixedSupplyRPL

func EstimateTransferFromRPLGas

func EstimateTransferFromRPLGas(rp *stader.PermissionlessNodeRegistryContractManager, from, to common.Address, amount *big.Int, opts *bind.TransactOpts) (stader.GasInfo, error)

Estimate the gas of TransferFromRPL

func EstimateTransferRPLGas

func EstimateTransferRPLGas(rp *stader.PermissionlessNodeRegistryContractManager, to common.Address, amount *big.Int, opts *bind.TransactOpts) (stader.GasInfo, error)

Estimate the gas of TransferRPL

func GetAccountEthBalance

func GetAccountEthBalance(rp *stader.Contract, address common.Address, opts *bind.CallOpts) (*big.Int, error)

func GetEthBalance

func GetEthBalance(client stader.ExecutionClient, address common.Address, opts *bind.CallOpts) (*big.Int, error)

func GetFixedSupplyRPLAllowance

func GetFixedSupplyRPLAllowance(rp *stader.PermissionlessNodeRegistryContractManager, owner, spender common.Address, opts *bind.CallOpts) (*big.Int, error)

Get fixed-supply RPL allowance

func GetFixedSupplyRPLBalance

func GetFixedSupplyRPLBalance(rp *stader.PermissionlessNodeRegistryContractManager, address common.Address, opts *bind.CallOpts) (*big.Int, error)

Get fixed-supply RPL balance

func GetFixedSupplyRPLTotalSupply

func GetFixedSupplyRPLTotalSupply(rp *stader.PermissionlessNodeRegistryContractManager, opts *bind.CallOpts) (*big.Int, error)

Get fixed-supply RPL total supply

func GetRPLAllowance

func GetRPLAllowance(rp *stader.PermissionlessNodeRegistryContractManager, owner, spender common.Address, opts *bind.CallOpts) (*big.Int, error)

Get RPL allowance

func GetRPLBalance

Get RPL balance

func GetRPLInflationIntervalRate

func GetRPLInflationIntervalRate(rp *stader.PermissionlessNodeRegistryContractManager, opts *bind.CallOpts) (*big.Int, error)

Get the RPL inflation interval rate

func GetRPLTotalSupply

func GetRPLTotalSupply(rp *stader.PermissionlessNodeRegistryContractManager, opts *bind.CallOpts) (*big.Int, error)

Get RPL total supply

func MintInflationRPL

Mint new RPL tokens from inflation

func SwapFixedSupplyRPLForRPL

func SwapFixedSupplyRPLForRPL(rp *stader.PermissionlessNodeRegistryContractManager, amount *big.Int, opts *bind.TransactOpts) (common.Hash, error)

Swap fixed-supply RPL for new RPL tokens

func TransferFixedSupplyRPL

func TransferFixedSupplyRPL(rp *stader.PermissionlessNodeRegistryContractManager, to common.Address, amount *big.Int, opts *bind.TransactOpts) (common.Hash, error)

Transfer fixed-supply RPL

func TransferFromFixedSupplyRPL

func TransferFromFixedSupplyRPL(rp *stader.PermissionlessNodeRegistryContractManager, from, to common.Address, amount *big.Int, opts *bind.TransactOpts) (common.Hash, error)

Transfer fixed-supply RPL from a sender

func TransferFromRPL

func TransferFromRPL(rp *stader.PermissionlessNodeRegistryContractManager, from, to common.Address, amount *big.Int, opts *bind.TransactOpts) (common.Hash, error)

Transfer RPL from a sender

func TransferRPL

Transfer RPL

Types

type Balances

type Balances struct {
	ETH            *big.Int `json:"eth"`
	RETH           *big.Int `json:"reth"`
	RPL            *big.Int `json:"rpl"`
	FixedSupplyRPL *big.Int `json:"fixedSupplyRpl"`
}

Token balances

func GetBalances

Get token balances of an address

Jump to

Keyboard shortcuts

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