iitoken

package
v0.0.0-...-09f7846 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IIToken

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

func NewIIToken

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

func (*IIToken) AcceptAdmin

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

func (*IIToken) Admin

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

func (*IIToken) Allowance

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

func (*IIToken) Approve

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

func (*IIToken) BalanceOf

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

func (*IIToken) BalanceOfUnderlying

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

func (*IIToken) Comptroller

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

func (*IIToken) Decimals

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

func (*IIToken) ExchangeRate

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

func (*IIToken) GetAddr

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

func (*IIToken) Init

func (this *IIToken) Init(marketName string, initExchangeRate *big.Int, admin, comptroller,
	underlying, borrowPool, globalParam common.Address) (string, error)

func (*IIToken) InitialExchangeRateMantissa

func (this *IIToken) InitialExchangeRateMantissa() (*big.Int, error)

func (*IIToken) IsInsurance

func (this *IIToken) IsInsurance() (bool, error)

func (*IIToken) Mint

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

func (*IIToken) Name

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

func (*IIToken) NeoVMApprove

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

func (*IIToken) NeoVMBalanceOf

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

func (*IIToken) PendingAdmin

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

func (*IIToken) Redeem

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

func (*IIToken) RedeemUnderlying

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

func (*IIToken) SetBorrow

func (this *IIToken) SetBorrow(borrow common.Address) (string, error)

func (*IIToken) SetComptroller

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

func (*IIToken) SetPendingAdmin

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

func (*IIToken) SetUnderlying

func (this *IIToken) SetUnderlying(underlying common.Address) (string, error)

func (*IIToken) Symbol

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

func (*IIToken) TotalCash

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

func (*IIToken) TotalSupply

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

func (*IIToken) Transfer

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

func (*IIToken) TransferFrom

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

func (*IIToken) Underlying

func (this *IIToken) Underlying() (common.Address, error)

func (*IIToken) UpdateSigner

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

Jump to

Keyboard shortcuts

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