iftoken

package
v0.0.0-...-29f768c Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2020 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IFToken

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

func NewIFToken

func NewIFToken(nodeRPCAddr string, contractAddr string, signer *ontSDK.Account, gasPrice,
	gasLimit uint64) (*IFToken, error)

func (*IFToken) AcceptAdmin

func (this *IFToken) AcceptAdmin() (string, error)

func (*IFToken) Admin

func (this *IFToken) Admin() (common.Address, error)

func (*IFToken) Allowance

func (this *IFToken) Allowance(owner, spender common.Address) (*big.Int, error)

func (*IFToken) Approve

func (this *IFToken) Approve(owner, spender common.Address, amount *big.Int) (string, error)

func (*IFToken) BalanceOf

func (this *IFToken) BalanceOf(owner common.Address) (*big.Int, error)

func (*IFToken) BalanceOfUnderlying

func (this *IFToken) BalanceOfUnderlying(owner common.Address) (*big.Int, error)

func (*IFToken) Comptroller

func (this *IFToken) Comptroller() (common.Address, error)

func (*IFToken) Decimals

func (this *IFToken) Decimals() (string, error)

func (*IFToken) ExchangeRate

func (this *IFToken) ExchangeRate() (*big.Int, error)

func (*IFToken) GetAddr

func (this *IFToken) GetAddr() common.Address

func (*IFToken) Init

func (this *IFToken) Init(marketName string, initExchangeRate *big.Int, admin,
	comptroller common.Address, debtLimit *big.Int) (string, error)

func (*IFToken) IsSupply

func (this *IFToken) IsSupply() (bool, error)

func (*IFToken) Mint

func (this *IFToken) Mint(minter common.Address, mintAmount *big.Int) (string, error)

func (*IFToken) Name

func (this *IFToken) Name() (string, error)

func (*IFToken) NeoVMApprove

func (this *IFToken) NeoVMApprove(owner, spender common.Address, amount *big.Int) (string, error)

func (*IFToken) NeoVMBalanceOf

func (this *IFToken) NeoVMBalanceOf(owner common.Address) (*big.Int, error)

func (*IFToken) PendingAdmin

func (this *IFToken) PendingAdmin() (common.Address, error)

func (*IFToken) Redeem

func (this *IFToken) Redeem(redeemer common.Address, redeemTokens *big.Int) (string, error)

func (*IFToken) RedeemUnderlying

func (this *IFToken) RedeemUnderlying(redeemer common.Address, redeemAmount *big.Int) (string, error)

func (*IFToken) SetComptroller

func (this *IFToken) SetComptroller(comptroller common.Address) (string, error)

func (*IFToken) SetPendingAdmin

func (this *IFToken) SetPendingAdmin(pendingAdmin common.Address) (string, error)

func (*IFToken) Symbol

func (this *IFToken) Symbol() (string, error)

func (*IFToken) TotalCash

func (this *IFToken) TotalCash() (*big.Int, error)

func (*IFToken) TotalDebt

func (this *IFToken) TotalDebt() (*big.Int, error)

func (*IFToken) TotalSupply

func (this *IFToken) TotalSupply() (*big.Int, error)

func (*IFToken) Transfer

func (this *IFToken) Transfer(from, to common.Address, amount *big.Int) (string, error)

func (*IFToken) TransferFrom

func (this *IFToken) TransferFrom(from, src, to common.Address, amount *big.Int) (string, error)

func (*IFToken) UpdateSigner

func (this *IFToken) UpdateSigner(newSigner *ontSDK.Account)

Jump to

Keyboard shortcuts

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