token

package
v0.0.0-...-3beb7e2 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2022 License: GPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const TokenABI = "" /* 19320-byte string literal not displayed */

TokenABI is the input ABI used to generate the binding from.

Variables

This section is empty.

Functions

This section is empty.

Types

type Token

type Token struct {
	TokenCaller     // Read-only binding to the contract
	TokenTransactor // Write-only binding to the contract
	TokenFilterer   // Log filterer for contract events
}

Token is an auto generated Go binding around an Ethereum contract.

func NewToken

func NewToken(address common.Address, backend bind.ContractBackend) (*Token, error)

NewToken creates a new instance of Token, bound to a specific deployed contract.

type TokenApproval

type TokenApproval struct {
	Owner   common.Address
	Spender common.Address
	Value   *big.Int
	Raw     types.Log // Blockchain specific contextual infos
}

TokenApproval represents a Approval event raised by the Token contract.

type TokenApprovalIterator

type TokenApprovalIterator struct {
	Event *TokenApproval // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

TokenApprovalIterator is returned from FilterApproval and is used to iterate over the raw logs and unpacked data for Approval events raised by the Token contract.

func (*TokenApprovalIterator) Close

func (it *TokenApprovalIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*TokenApprovalIterator) Error

func (it *TokenApprovalIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*TokenApprovalIterator) Next

func (it *TokenApprovalIterator) Next() bool

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type TokenCaller

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

TokenCaller is an auto generated read-only Go binding around an Ethereum contract.

func NewTokenCaller

func NewTokenCaller(address common.Address, caller bind.ContractCaller) (*TokenCaller, error)

NewTokenCaller creates a new read-only instance of Token, bound to a specific deployed contract.

func (*TokenCaller) APR

func (_Token *TokenCaller) APR(opts *bind.CallOpts) (*big.Int, error)

APR is a free data retrieval call binding the contract method 0xbd30558e.

Solidity: function APR() view returns(uint256)

func (*TokenCaller) APY

func (_Token *TokenCaller) APY(opts *bind.CallOpts) (*big.Int, error)

APY is a free data retrieval call binding the contract method 0xef8bd305.

Solidity: function APY() view returns(uint256)

func (*TokenCaller) AccountBorrows

func (_Token *TokenCaller) AccountBorrows(opts *bind.CallOpts, arg0 common.Address) (struct {
	Principal     *big.Int
	InterestIndex *big.Int
}, error)

AccountBorrows is a free data retrieval call binding the contract method 0xd40e8f4a.

Solidity: function accountBorrows(address ) view returns(uint256 principal, uint256 interestIndex)

func (*TokenCaller) AccountTokens

func (_Token *TokenCaller) AccountTokens(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)

AccountTokens is a free data retrieval call binding the contract method 0xa19d1460.

Solidity: function accountTokens(address ) view returns(uint256)

func (*TokenCaller) AccrualBlockNumber

func (_Token *TokenCaller) AccrualBlockNumber(opts *bind.CallOpts) (*big.Int, error)

AccrualBlockNumber is a free data retrieval call binding the contract method 0x6c540baf.

Solidity: function accrualBlockNumber() view returns(uint256)

func (*TokenCaller) AddExp

func (_Token *TokenCaller) AddExp(opts *bind.CallOpts, a *big.Int, b *big.Int) (*big.Int, error)

AddExp is a free data retrieval call binding the contract method 0x4147da13.

Solidity: function addExp(uint256 a, uint256 b) pure returns(uint256 result)

func (*TokenCaller) Admin

func (_Token *TokenCaller) Admin(opts *bind.CallOpts) (common.Address, error)

Admin is a free data retrieval call binding the contract method 0xf851a440.

Solidity: function admin() view returns(address)

func (*TokenCaller) Allowance

func (_Token *TokenCaller) Allowance(opts *bind.CallOpts, owner common.Address, spender common.Address) (*big.Int, error)

Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.

Solidity: function allowance(address owner, address spender) view returns(uint256)

func (*TokenCaller) BalanceOf

func (_Token *TokenCaller) BalanceOf(opts *bind.CallOpts, owner common.Address) (*big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0x70a08231.

Solidity: function balanceOf(address owner) view returns(uint256)

func (*TokenCaller) Bank

func (_Token *TokenCaller) Bank(opts *bind.CallOpts) (common.Address, error)

Bank is a free data retrieval call binding the contract method 0x76cdb03b.

Solidity: function bank() view returns(address)

func (*TokenCaller) BorrowBalanceStored

func (_Token *TokenCaller) BorrowBalanceStored(opts *bind.CallOpts, account common.Address) (*big.Int, error)

BorrowBalanceStored is a free data retrieval call binding the contract method 0x95dd9193.

Solidity: function borrowBalanceStored(address account) view returns(uint256)

func (*TokenCaller) BorrowIndex

func (_Token *TokenCaller) BorrowIndex(opts *bind.CallOpts) (*big.Int, error)

BorrowIndex is a free data retrieval call binding the contract method 0xaa5af0fd.

Solidity: function borrowIndex() view returns(uint256)

func (*TokenCaller) BorrowSafeRatio

func (_Token *TokenCaller) BorrowSafeRatio(opts *bind.CallOpts) (*big.Int, error)

BorrowSafeRatio is a free data retrieval call binding the contract method 0x85cc1486.

Solidity: function borrowSafeRatio() view returns(uint256)

func (*TokenCaller) CalcBalanceOfUnderlying

func (_Token *TokenCaller) CalcBalanceOfUnderlying(opts *bind.CallOpts, owner common.Address) (*big.Int, error)

CalcBalanceOfUnderlying is a free data retrieval call binding the contract method 0xe61de305.

Solidity: function calcBalanceOfUnderlying(address owner) view returns(uint256)

func (*TokenCaller) CalcExchangeRate

func (_Token *TokenCaller) CalcExchangeRate(opts *bind.CallOpts, _totalBorrows *big.Int, _totalReserves *big.Int) (*big.Int, error)

CalcExchangeRate is a free data retrieval call binding the contract method 0xc5e9cadc.

Solidity: function calcExchangeRate(uint256 _totalBorrows, uint256 _totalReserves) view returns(uint256 exchangeRate)

func (*TokenCaller) Controller

func (_Token *TokenCaller) Controller(opts *bind.CallOpts) (common.Address, error)

Controller is a free data retrieval call binding the contract method 0xf77c4791.

Solidity: function controller() view returns(address)

func (*TokenCaller) Decimals

func (_Token *TokenCaller) Decimals(opts *bind.CallOpts) (uint8, error)

Decimals is a free data retrieval call binding the contract method 0x313ce567.

Solidity: function decimals() view returns(uint8)

func (*TokenCaller) DivExp

func (_Token *TokenCaller) DivExp(opts *bind.CallOpts, a *big.Int, b *big.Int) (*big.Int, error)

DivExp is a free data retrieval call binding the contract method 0xb507f9f9.

Solidity: function divExp(uint256 a, uint256 b) pure returns(uint256)

func (*TokenCaller) DivScalar

func (_Token *TokenCaller) DivScalar(opts *bind.CallOpts, a *big.Int, scalar *big.Int) (*big.Int, error)

DivScalar is a free data retrieval call binding the contract method 0x4751b79c.

Solidity: function divScalar(uint256 a, uint256 scalar) pure returns(uint256)

func (*TokenCaller) DivScalarByExp

func (_Token *TokenCaller) DivScalarByExp(opts *bind.CallOpts, scalar *big.Int, divisor *big.Int) (*big.Int, error)

DivScalarByExp is a free data retrieval call binding the contract method 0xce603aad.

Solidity: function divScalarByExp(uint256 scalar, uint256 divisor) pure returns(uint256)

func (*TokenCaller) DivScalarByExpTruncate

func (_Token *TokenCaller) DivScalarByExpTruncate(opts *bind.CallOpts, scalar *big.Int, divisor *big.Int) (*big.Int, error)

DivScalarByExpTruncate is a free data retrieval call binding the contract method 0xd6079cc6.

Solidity: function divScalarByExpTruncate(uint256 scalar, uint256 divisor) pure returns(uint256)

func (*TokenCaller) ExchangeRateAfter

func (_Token *TokenCaller) ExchangeRateAfter(opts *bind.CallOpts, transferInAmout *big.Int) (*big.Int, error)

ExchangeRateAfter is a free data retrieval call binding the contract method 0x08186ecf.

Solidity: function exchangeRateAfter(uint256 transferInAmout) view returns(uint256 exchangeRate)

func (*TokenCaller) ExchangeRateStored

func (_Token *TokenCaller) ExchangeRateStored(opts *bind.CallOpts) (*big.Int, error)

ExchangeRateStored is a free data retrieval call binding the contract method 0x182df0f5.

Solidity: function exchangeRateStored() view returns(uint256 exchangeRate)

func (*TokenCaller) GetAccountState

func (_Token *TokenCaller) GetAccountState(opts *bind.CallOpts, account common.Address) (*big.Int, *big.Int, *big.Int, error)

GetAccountState is a free data retrieval call binding the contract method 0x9ee2735b.

Solidity: function getAccountState(address account) view returns(uint256, uint256, uint256)

func (*TokenCaller) GetBorrowRate

func (_Token *TokenCaller) GetBorrowRate(opts *bind.CallOpts) (*big.Int, error)

GetBorrowRate is a free data retrieval call binding the contract method 0xba1c5e80.

Solidity: function getBorrowRate() view returns(uint256)

func (*TokenCaller) GetDiv

func (_Token *TokenCaller) GetDiv(opts *bind.CallOpts, num *big.Int, denom *big.Int) (*big.Int, error)

GetDiv is a free data retrieval call binding the contract method 0x5293ff31.

Solidity: function getDiv(uint256 num, uint256 denom) pure returns(uint256 rational)

func (*TokenCaller) GetExp

func (_Token *TokenCaller) GetExp(opts *bind.CallOpts, num *big.Int, denom *big.Int) (*big.Int, error)

GetExp is a free data retrieval call binding the contract method 0xba9316b7.

Solidity: function getExp(uint256 num, uint256 denom) pure returns(uint256 rational)

func (*TokenCaller) GetSupplyRate

func (_Token *TokenCaller) GetSupplyRate(opts *bind.CallOpts) (*big.Int, error)

GetSupplyRate is a free data retrieval call binding the contract method 0x84bdc9a8.

Solidity: function getSupplyRate() view returns(uint256)

func (*TokenCaller) InitialExchangeRate

func (_Token *TokenCaller) InitialExchangeRate(opts *bind.CallOpts) (*big.Int, error)

InitialExchangeRate is a free data retrieval call binding the contract method 0x6d019f35.

Solidity: function initialExchangeRate() view returns(uint256)

func (*TokenCaller) InterestRateModel

func (_Token *TokenCaller) InterestRateModel(opts *bind.CallOpts) (common.Address, error)

InterestRateModel is a free data retrieval call binding the contract method 0xf3fdb15a.

Solidity: function interestRateModel() view returns(address)

func (*TokenCaller) MulExp

func (_Token *TokenCaller) MulExp(opts *bind.CallOpts, a *big.Int, b *big.Int) (*big.Int, error)

MulExp is a free data retrieval call binding the contract method 0xde32abd1.

Solidity: function mulExp(uint256 a, uint256 b) pure returns(uint256)

func (*TokenCaller) MulExp3

func (_Token *TokenCaller) MulExp3(opts *bind.CallOpts, a *big.Int, b *big.Int, c *big.Int) (*big.Int, error)

MulExp3 is a free data retrieval call binding the contract method 0x8de46362.

Solidity: function mulExp3(uint256 a, uint256 b, uint256 c) pure returns(uint256)

func (*TokenCaller) MulScalar

func (_Token *TokenCaller) MulScalar(opts *bind.CallOpts, a *big.Int, scalar *big.Int) (*big.Int, error)

MulScalar is a free data retrieval call binding the contract method 0x2985fa31.

Solidity: function mulScalar(uint256 a, uint256 scalar) pure returns(uint256 scaled)

func (*TokenCaller) MulScalarTruncate

func (_Token *TokenCaller) MulScalarTruncate(opts *bind.CallOpts, a *big.Int, scalar *big.Int) (*big.Int, error)

MulScalarTruncate is a free data retrieval call binding the contract method 0xb4ab15e7.

Solidity: function mulScalarTruncate(uint256 a, uint256 scalar) pure returns(uint256)

func (*TokenCaller) MulScalarTruncateAddUInt

func (_Token *TokenCaller) MulScalarTruncateAddUInt(opts *bind.CallOpts, a *big.Int, scalar *big.Int, addend *big.Int) (*big.Int, error)

MulScalarTruncateAddUInt is a free data retrieval call binding the contract method 0x6208fc41.

Solidity: function mulScalarTruncateAddUInt(uint256 a, uint256 scalar, uint256 addend) pure returns(uint256)

func (*TokenCaller) Name

func (_Token *TokenCaller) Name(opts *bind.CallOpts) (string, error)

Name is a free data retrieval call binding the contract method 0x06fdde03.

Solidity: function name() view returns(string)

func (*TokenCaller) ONE

func (_Token *TokenCaller) ONE(opts *bind.CallOpts) (*big.Int, error)

ONE is a free data retrieval call binding the contract method 0xc2ee3a08.

Solidity: function ONE() view returns(uint256)

func (*TokenCaller) PeekInterest

func (_Token *TokenCaller) PeekInterest(opts *bind.CallOpts) (struct {
	AccrualBlockNumber *big.Int
	BorrowIndex        *big.Int
	TotalBorrows       *big.Int
	TotalReserves      *big.Int
}, error)

PeekInterest is a free data retrieval call binding the contract method 0x0873f150.

Solidity: function peekInterest() view returns(uint256 _accrualBlockNumber, uint256 _borrowIndex, uint256 _totalBorrows, uint256 _totalReserves)

func (*TokenCaller) ReserveFactor

func (_Token *TokenCaller) ReserveFactor(opts *bind.CallOpts) (*big.Int, error)

ReserveFactor is a free data retrieval call binding the contract method 0x4322b714.

Solidity: function reserveFactor() view returns(uint256)

func (*TokenCaller) SubExp

func (_Token *TokenCaller) SubExp(opts *bind.CallOpts, a *big.Int, b *big.Int) (*big.Int, error)

SubExp is a free data retrieval call binding the contract method 0x396a98cf.

Solidity: function subExp(uint256 a, uint256 b) pure returns(uint256 result)

func (*TokenCaller) Symbol

func (_Token *TokenCaller) Symbol(opts *bind.CallOpts) (string, error)

Symbol is a free data retrieval call binding the contract method 0x95d89b41.

Solidity: function symbol() view returns(string)

func (*TokenCaller) TokenCash

func (_Token *TokenCaller) TokenCash(opts *bind.CallOpts, token common.Address, account common.Address) (*big.Int, error)

TokenCash is a free data retrieval call binding the contract method 0x93508164.

Solidity: function tokenCash(address token, address account) view returns(uint256)

func (*TokenCaller) TotalBorrows

func (_Token *TokenCaller) TotalBorrows(opts *bind.CallOpts) (*big.Int, error)

TotalBorrows is a free data retrieval call binding the contract method 0x47bd3718.

Solidity: function totalBorrows() view returns(uint256)

func (*TokenCaller) TotalCash

func (_Token *TokenCaller) TotalCash(opts *bind.CallOpts) (*big.Int, error)

TotalCash is a free data retrieval call binding the contract method 0xbee12d53.

Solidity: function totalCash() view returns(uint256)

func (*TokenCaller) TotalReserves

func (_Token *TokenCaller) TotalReserves(opts *bind.CallOpts) (*big.Int, error)

TotalReserves is a free data retrieval call binding the contract method 0x8f840ddd.

Solidity: function totalReserves() view returns(uint256)

func (*TokenCaller) TotalSupply

func (_Token *TokenCaller) TotalSupply(opts *bind.CallOpts) (*big.Int, error)

TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.

Solidity: function totalSupply() view returns(uint256)

func (*TokenCaller) Truncate

func (_Token *TokenCaller) Truncate(opts *bind.CallOpts, exp *big.Int) (*big.Int, error)

Truncate is a free data retrieval call binding the contract method 0x7b94aaac.

Solidity: function truncate(uint256 exp) pure returns(uint256)

func (*TokenCaller) Underlying

func (_Token *TokenCaller) Underlying(opts *bind.CallOpts) (common.Address, error)

Underlying is a free data retrieval call binding the contract method 0x6f307dc3.

Solidity: function underlying() view returns(address)

type TokenCallerRaw

type TokenCallerRaw struct {
	Contract *TokenCaller // Generic read-only contract binding to access the raw methods on
}

TokenCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.

func (*TokenCallerRaw) Call

func (_Token *TokenCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

type TokenCallerSession

type TokenCallerSession struct {
	Contract *TokenCaller  // Generic contract caller binding to set the session for
	CallOpts bind.CallOpts // Call options to use throughout this session
}

TokenCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.

func (*TokenCallerSession) APR

func (_Token *TokenCallerSession) APR() (*big.Int, error)

APR is a free data retrieval call binding the contract method 0xbd30558e.

Solidity: function APR() view returns(uint256)

func (*TokenCallerSession) APY

func (_Token *TokenCallerSession) APY() (*big.Int, error)

APY is a free data retrieval call binding the contract method 0xef8bd305.

Solidity: function APY() view returns(uint256)

func (*TokenCallerSession) AccountBorrows

func (_Token *TokenCallerSession) AccountBorrows(arg0 common.Address) (struct {
	Principal     *big.Int
	InterestIndex *big.Int
}, error)

AccountBorrows is a free data retrieval call binding the contract method 0xd40e8f4a.

Solidity: function accountBorrows(address ) view returns(uint256 principal, uint256 interestIndex)

func (*TokenCallerSession) AccountTokens

func (_Token *TokenCallerSession) AccountTokens(arg0 common.Address) (*big.Int, error)

AccountTokens is a free data retrieval call binding the contract method 0xa19d1460.

Solidity: function accountTokens(address ) view returns(uint256)

func (*TokenCallerSession) AccrualBlockNumber

func (_Token *TokenCallerSession) AccrualBlockNumber() (*big.Int, error)

AccrualBlockNumber is a free data retrieval call binding the contract method 0x6c540baf.

Solidity: function accrualBlockNumber() view returns(uint256)

func (*TokenCallerSession) AddExp

func (_Token *TokenCallerSession) AddExp(a *big.Int, b *big.Int) (*big.Int, error)

AddExp is a free data retrieval call binding the contract method 0x4147da13.

Solidity: function addExp(uint256 a, uint256 b) pure returns(uint256 result)

func (*TokenCallerSession) Admin

func (_Token *TokenCallerSession) Admin() (common.Address, error)

Admin is a free data retrieval call binding the contract method 0xf851a440.

Solidity: function admin() view returns(address)

func (*TokenCallerSession) Allowance

func (_Token *TokenCallerSession) Allowance(owner common.Address, spender common.Address) (*big.Int, error)

Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.

Solidity: function allowance(address owner, address spender) view returns(uint256)

func (*TokenCallerSession) BalanceOf

func (_Token *TokenCallerSession) BalanceOf(owner common.Address) (*big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0x70a08231.

Solidity: function balanceOf(address owner) view returns(uint256)

func (*TokenCallerSession) Bank

func (_Token *TokenCallerSession) Bank() (common.Address, error)

Bank is a free data retrieval call binding the contract method 0x76cdb03b.

Solidity: function bank() view returns(address)

func (*TokenCallerSession) BorrowBalanceStored

func (_Token *TokenCallerSession) BorrowBalanceStored(account common.Address) (*big.Int, error)

BorrowBalanceStored is a free data retrieval call binding the contract method 0x95dd9193.

Solidity: function borrowBalanceStored(address account) view returns(uint256)

func (*TokenCallerSession) BorrowIndex

func (_Token *TokenCallerSession) BorrowIndex() (*big.Int, error)

BorrowIndex is a free data retrieval call binding the contract method 0xaa5af0fd.

Solidity: function borrowIndex() view returns(uint256)

func (*TokenCallerSession) BorrowSafeRatio

func (_Token *TokenCallerSession) BorrowSafeRatio() (*big.Int, error)

BorrowSafeRatio is a free data retrieval call binding the contract method 0x85cc1486.

Solidity: function borrowSafeRatio() view returns(uint256)

func (*TokenCallerSession) CalcBalanceOfUnderlying

func (_Token *TokenCallerSession) CalcBalanceOfUnderlying(owner common.Address) (*big.Int, error)

CalcBalanceOfUnderlying is a free data retrieval call binding the contract method 0xe61de305.

Solidity: function calcBalanceOfUnderlying(address owner) view returns(uint256)

func (*TokenCallerSession) CalcExchangeRate

func (_Token *TokenCallerSession) CalcExchangeRate(_totalBorrows *big.Int, _totalReserves *big.Int) (*big.Int, error)

CalcExchangeRate is a free data retrieval call binding the contract method 0xc5e9cadc.

Solidity: function calcExchangeRate(uint256 _totalBorrows, uint256 _totalReserves) view returns(uint256 exchangeRate)

func (*TokenCallerSession) Controller

func (_Token *TokenCallerSession) Controller() (common.Address, error)

Controller is a free data retrieval call binding the contract method 0xf77c4791.

Solidity: function controller() view returns(address)

func (*TokenCallerSession) Decimals

func (_Token *TokenCallerSession) Decimals() (uint8, error)

Decimals is a free data retrieval call binding the contract method 0x313ce567.

Solidity: function decimals() view returns(uint8)

func (*TokenCallerSession) DivExp

func (_Token *TokenCallerSession) DivExp(a *big.Int, b *big.Int) (*big.Int, error)

DivExp is a free data retrieval call binding the contract method 0xb507f9f9.

Solidity: function divExp(uint256 a, uint256 b) pure returns(uint256)

func (*TokenCallerSession) DivScalar

func (_Token *TokenCallerSession) DivScalar(a *big.Int, scalar *big.Int) (*big.Int, error)

DivScalar is a free data retrieval call binding the contract method 0x4751b79c.

Solidity: function divScalar(uint256 a, uint256 scalar) pure returns(uint256)

func (*TokenCallerSession) DivScalarByExp

func (_Token *TokenCallerSession) DivScalarByExp(scalar *big.Int, divisor *big.Int) (*big.Int, error)

DivScalarByExp is a free data retrieval call binding the contract method 0xce603aad.

Solidity: function divScalarByExp(uint256 scalar, uint256 divisor) pure returns(uint256)

func (*TokenCallerSession) DivScalarByExpTruncate

func (_Token *TokenCallerSession) DivScalarByExpTruncate(scalar *big.Int, divisor *big.Int) (*big.Int, error)

DivScalarByExpTruncate is a free data retrieval call binding the contract method 0xd6079cc6.

Solidity: function divScalarByExpTruncate(uint256 scalar, uint256 divisor) pure returns(uint256)

func (*TokenCallerSession) ExchangeRateAfter

func (_Token *TokenCallerSession) ExchangeRateAfter(transferInAmout *big.Int) (*big.Int, error)

ExchangeRateAfter is a free data retrieval call binding the contract method 0x08186ecf.

Solidity: function exchangeRateAfter(uint256 transferInAmout) view returns(uint256 exchangeRate)

func (*TokenCallerSession) ExchangeRateStored

func (_Token *TokenCallerSession) ExchangeRateStored() (*big.Int, error)

ExchangeRateStored is a free data retrieval call binding the contract method 0x182df0f5.

Solidity: function exchangeRateStored() view returns(uint256 exchangeRate)

func (*TokenCallerSession) GetAccountState

func (_Token *TokenCallerSession) GetAccountState(account common.Address) (*big.Int, *big.Int, *big.Int, error)

GetAccountState is a free data retrieval call binding the contract method 0x9ee2735b.

Solidity: function getAccountState(address account) view returns(uint256, uint256, uint256)

func (*TokenCallerSession) GetBorrowRate

func (_Token *TokenCallerSession) GetBorrowRate() (*big.Int, error)

GetBorrowRate is a free data retrieval call binding the contract method 0xba1c5e80.

Solidity: function getBorrowRate() view returns(uint256)

func (*TokenCallerSession) GetDiv

func (_Token *TokenCallerSession) GetDiv(num *big.Int, denom *big.Int) (*big.Int, error)

GetDiv is a free data retrieval call binding the contract method 0x5293ff31.

Solidity: function getDiv(uint256 num, uint256 denom) pure returns(uint256 rational)

func (*TokenCallerSession) GetExp

func (_Token *TokenCallerSession) GetExp(num *big.Int, denom *big.Int) (*big.Int, error)

GetExp is a free data retrieval call binding the contract method 0xba9316b7.

Solidity: function getExp(uint256 num, uint256 denom) pure returns(uint256 rational)

func (*TokenCallerSession) GetSupplyRate

func (_Token *TokenCallerSession) GetSupplyRate() (*big.Int, error)

GetSupplyRate is a free data retrieval call binding the contract method 0x84bdc9a8.

Solidity: function getSupplyRate() view returns(uint256)

func (*TokenCallerSession) InitialExchangeRate

func (_Token *TokenCallerSession) InitialExchangeRate() (*big.Int, error)

InitialExchangeRate is a free data retrieval call binding the contract method 0x6d019f35.

Solidity: function initialExchangeRate() view returns(uint256)

func (*TokenCallerSession) InterestRateModel

func (_Token *TokenCallerSession) InterestRateModel() (common.Address, error)

InterestRateModel is a free data retrieval call binding the contract method 0xf3fdb15a.

Solidity: function interestRateModel() view returns(address)

func (*TokenCallerSession) MulExp

func (_Token *TokenCallerSession) MulExp(a *big.Int, b *big.Int) (*big.Int, error)

MulExp is a free data retrieval call binding the contract method 0xde32abd1.

Solidity: function mulExp(uint256 a, uint256 b) pure returns(uint256)

func (*TokenCallerSession) MulExp3

func (_Token *TokenCallerSession) MulExp3(a *big.Int, b *big.Int, c *big.Int) (*big.Int, error)

MulExp3 is a free data retrieval call binding the contract method 0x8de46362.

Solidity: function mulExp3(uint256 a, uint256 b, uint256 c) pure returns(uint256)

func (*TokenCallerSession) MulScalar

func (_Token *TokenCallerSession) MulScalar(a *big.Int, scalar *big.Int) (*big.Int, error)

MulScalar is a free data retrieval call binding the contract method 0x2985fa31.

Solidity: function mulScalar(uint256 a, uint256 scalar) pure returns(uint256 scaled)

func (*TokenCallerSession) MulScalarTruncate

func (_Token *TokenCallerSession) MulScalarTruncate(a *big.Int, scalar *big.Int) (*big.Int, error)

MulScalarTruncate is a free data retrieval call binding the contract method 0xb4ab15e7.

Solidity: function mulScalarTruncate(uint256 a, uint256 scalar) pure returns(uint256)

func (*TokenCallerSession) MulScalarTruncateAddUInt

func (_Token *TokenCallerSession) MulScalarTruncateAddUInt(a *big.Int, scalar *big.Int, addend *big.Int) (*big.Int, error)

MulScalarTruncateAddUInt is a free data retrieval call binding the contract method 0x6208fc41.

Solidity: function mulScalarTruncateAddUInt(uint256 a, uint256 scalar, uint256 addend) pure returns(uint256)

func (*TokenCallerSession) Name

func (_Token *TokenCallerSession) Name() (string, error)

Name is a free data retrieval call binding the contract method 0x06fdde03.

Solidity: function name() view returns(string)

func (*TokenCallerSession) ONE

func (_Token *TokenCallerSession) ONE() (*big.Int, error)

ONE is a free data retrieval call binding the contract method 0xc2ee3a08.

Solidity: function ONE() view returns(uint256)

func (*TokenCallerSession) PeekInterest

func (_Token *TokenCallerSession) PeekInterest() (struct {
	AccrualBlockNumber *big.Int
	BorrowIndex        *big.Int
	TotalBorrows       *big.Int
	TotalReserves      *big.Int
}, error)

PeekInterest is a free data retrieval call binding the contract method 0x0873f150.

Solidity: function peekInterest() view returns(uint256 _accrualBlockNumber, uint256 _borrowIndex, uint256 _totalBorrows, uint256 _totalReserves)

func (*TokenCallerSession) ReserveFactor

func (_Token *TokenCallerSession) ReserveFactor() (*big.Int, error)

ReserveFactor is a free data retrieval call binding the contract method 0x4322b714.

Solidity: function reserveFactor() view returns(uint256)

func (*TokenCallerSession) SubExp

func (_Token *TokenCallerSession) SubExp(a *big.Int, b *big.Int) (*big.Int, error)

SubExp is a free data retrieval call binding the contract method 0x396a98cf.

Solidity: function subExp(uint256 a, uint256 b) pure returns(uint256 result)

func (*TokenCallerSession) Symbol

func (_Token *TokenCallerSession) Symbol() (string, error)

Symbol is a free data retrieval call binding the contract method 0x95d89b41.

Solidity: function symbol() view returns(string)

func (*TokenCallerSession) TokenCash

func (_Token *TokenCallerSession) TokenCash(token common.Address, account common.Address) (*big.Int, error)

TokenCash is a free data retrieval call binding the contract method 0x93508164.

Solidity: function tokenCash(address token, address account) view returns(uint256)

func (*TokenCallerSession) TotalBorrows

func (_Token *TokenCallerSession) TotalBorrows() (*big.Int, error)

TotalBorrows is a free data retrieval call binding the contract method 0x47bd3718.

Solidity: function totalBorrows() view returns(uint256)

func (*TokenCallerSession) TotalCash

func (_Token *TokenCallerSession) TotalCash() (*big.Int, error)

TotalCash is a free data retrieval call binding the contract method 0xbee12d53.

Solidity: function totalCash() view returns(uint256)

func (*TokenCallerSession) TotalReserves

func (_Token *TokenCallerSession) TotalReserves() (*big.Int, error)

TotalReserves is a free data retrieval call binding the contract method 0x8f840ddd.

Solidity: function totalReserves() view returns(uint256)

func (*TokenCallerSession) TotalSupply

func (_Token *TokenCallerSession) TotalSupply() (*big.Int, error)

TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.

Solidity: function totalSupply() view returns(uint256)

func (*TokenCallerSession) Truncate

func (_Token *TokenCallerSession) Truncate(exp *big.Int) (*big.Int, error)

Truncate is a free data retrieval call binding the contract method 0x7b94aaac.

Solidity: function truncate(uint256 exp) pure returns(uint256)

func (*TokenCallerSession) Underlying

func (_Token *TokenCallerSession) Underlying() (common.Address, error)

Underlying is a free data retrieval call binding the contract method 0x6f307dc3.

Solidity: function underlying() view returns(address)

type TokenFilterer

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

TokenFilterer is an auto generated log filtering Go binding around an Ethereum contract events.

func NewTokenFilterer

func NewTokenFilterer(address common.Address, filterer bind.ContractFilterer) (*TokenFilterer, error)

NewTokenFilterer creates a new log filterer instance of Token, bound to a specific deployed contract.

func (*TokenFilterer) FilterApproval

func (_Token *TokenFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*TokenApprovalIterator, error)

FilterApproval is a free log retrieval operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.

Solidity: event Approval(address indexed owner, address indexed spender, uint256 value)

func (*TokenFilterer) FilterTransfer

func (_Token *TokenFilterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*TokenTransferIterator, error)

FilterTransfer is a free log retrieval operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.

Solidity: event Transfer(address indexed from, address indexed to, uint256 value)

func (*TokenFilterer) ParseApproval

func (_Token *TokenFilterer) ParseApproval(log types.Log) (*TokenApproval, error)

ParseApproval is a log parse operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.

Solidity: event Approval(address indexed owner, address indexed spender, uint256 value)

func (*TokenFilterer) ParseTransfer

func (_Token *TokenFilterer) ParseTransfer(log types.Log) (*TokenTransfer, error)

ParseTransfer is a log parse operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.

Solidity: event Transfer(address indexed from, address indexed to, uint256 value)

func (*TokenFilterer) WatchApproval

func (_Token *TokenFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *TokenApproval, owner []common.Address, spender []common.Address) (event.Subscription, error)

WatchApproval is a free log subscription operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.

Solidity: event Approval(address indexed owner, address indexed spender, uint256 value)

func (*TokenFilterer) WatchTransfer

func (_Token *TokenFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *TokenTransfer, from []common.Address, to []common.Address) (event.Subscription, error)

WatchTransfer is a free log subscription operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.

Solidity: event Transfer(address indexed from, address indexed to, uint256 value)

type TokenRaw

type TokenRaw struct {
	Contract *Token // Generic contract binding to access the raw methods on
}

TokenRaw is an auto generated low-level Go binding around an Ethereum contract.

func (*TokenRaw) Call

func (_Token *TokenRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

func (*TokenRaw) Transact

func (_Token *TokenRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*TokenRaw) Transfer

func (_Token *TokenRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type TokenSession

type TokenSession struct {
	Contract     *Token            // Generic contract binding to set the session for
	CallOpts     bind.CallOpts     // Call options to use throughout this session
	TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}

TokenSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.

func (*TokenSession) APR

func (_Token *TokenSession) APR() (*big.Int, error)

APR is a free data retrieval call binding the contract method 0xbd30558e.

Solidity: function APR() view returns(uint256)

func (*TokenSession) APY

func (_Token *TokenSession) APY() (*big.Int, error)

APY is a free data retrieval call binding the contract method 0xef8bd305.

Solidity: function APY() view returns(uint256)

func (*TokenSession) AccountBorrows

func (_Token *TokenSession) AccountBorrows(arg0 common.Address) (struct {
	Principal     *big.Int
	InterestIndex *big.Int
}, error)

AccountBorrows is a free data retrieval call binding the contract method 0xd40e8f4a.

Solidity: function accountBorrows(address ) view returns(uint256 principal, uint256 interestIndex)

func (*TokenSession) AccountTokens

func (_Token *TokenSession) AccountTokens(arg0 common.Address) (*big.Int, error)

AccountTokens is a free data retrieval call binding the contract method 0xa19d1460.

Solidity: function accountTokens(address ) view returns(uint256)

func (*TokenSession) AccrualBlockNumber

func (_Token *TokenSession) AccrualBlockNumber() (*big.Int, error)

AccrualBlockNumber is a free data retrieval call binding the contract method 0x6c540baf.

Solidity: function accrualBlockNumber() view returns(uint256)

func (*TokenSession) AccrueInterest

func (_Token *TokenSession) AccrueInterest() (*types.Transaction, error)

AccrueInterest is a paid mutator transaction binding the contract method 0xa6afed95.

Solidity: function accrueInterest() returns()

func (*TokenSession) AddExp

func (_Token *TokenSession) AddExp(a *big.Int, b *big.Int) (*big.Int, error)

AddExp is a free data retrieval call binding the contract method 0x4147da13.

Solidity: function addExp(uint256 a, uint256 b) pure returns(uint256 result)

func (*TokenSession) AddReservesFresh

func (_Token *TokenSession) AddReservesFresh(addAmount *big.Int) (*types.Transaction, error)

AddReservesFresh is a paid mutator transaction binding the contract method 0x9c92779c.

Solidity: function _addReservesFresh(uint256 addAmount) returns()

func (*TokenSession) AddTotalCash

func (_Token *TokenSession) AddTotalCash(_addAmount *big.Int) (*types.Transaction, error)

AddTotalCash is a paid mutator transaction binding the contract method 0x95bd6a4c.

Solidity: function addTotalCash(uint256 _addAmount) returns()

func (*TokenSession) Admin

func (_Token *TokenSession) Admin() (common.Address, error)

Admin is a free data retrieval call binding the contract method 0xf851a440.

Solidity: function admin() view returns(address)

func (*TokenSession) Allowance

func (_Token *TokenSession) Allowance(owner common.Address, spender common.Address) (*big.Int, error)

Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.

Solidity: function allowance(address owner, address spender) view returns(uint256)

func (*TokenSession) Approve

func (_Token *TokenSession) Approve(spender common.Address, amount *big.Int) (*types.Transaction, error)

Approve is a paid mutator transaction binding the contract method 0x095ea7b3.

Solidity: function approve(address spender, uint256 amount) returns(bool)

func (*TokenSession) BalanceOf

func (_Token *TokenSession) BalanceOf(owner common.Address) (*big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0x70a08231.

Solidity: function balanceOf(address owner) view returns(uint256)

func (*TokenSession) BalanceOfUnderlying

func (_Token *TokenSession) BalanceOfUnderlying(owner common.Address) (*types.Transaction, error)

BalanceOfUnderlying is a paid mutator transaction binding the contract method 0x3af9e669.

Solidity: function balanceOfUnderlying(address owner) returns(uint256)

func (*TokenSession) Bank

func (_Token *TokenSession) Bank() (common.Address, error)

Bank is a free data retrieval call binding the contract method 0x76cdb03b.

Solidity: function bank() view returns(address)

func (*TokenSession) Borrow

func (_Token *TokenSession) Borrow(borrower common.Address, borrowAmount *big.Int) (*types.Transaction, error)

Borrow is a paid mutator transaction binding the contract method 0x4b8a3529.

Solidity: function borrow(address borrower, uint256 borrowAmount) returns(bytes)

func (*TokenSession) BorrowBalanceCurrent

func (_Token *TokenSession) BorrowBalanceCurrent(account common.Address) (*types.Transaction, error)

BorrowBalanceCurrent is a paid mutator transaction binding the contract method 0x17bfdfbc.

Solidity: function borrowBalanceCurrent(address account) returns(uint256)

func (*TokenSession) BorrowBalanceStored

func (_Token *TokenSession) BorrowBalanceStored(account common.Address) (*big.Int, error)

BorrowBalanceStored is a free data retrieval call binding the contract method 0x95dd9193.

Solidity: function borrowBalanceStored(address account) view returns(uint256)

func (*TokenSession) BorrowIndex

func (_Token *TokenSession) BorrowIndex() (*big.Int, error)

BorrowIndex is a free data retrieval call binding the contract method 0xaa5af0fd.

Solidity: function borrowIndex() view returns(uint256)

func (*TokenSession) BorrowSafeRatio

func (_Token *TokenSession) BorrowSafeRatio() (*big.Int, error)

BorrowSafeRatio is a free data retrieval call binding the contract method 0x85cc1486.

Solidity: function borrowSafeRatio() view returns(uint256)

func (*TokenSession) CalcBalanceOfUnderlying

func (_Token *TokenSession) CalcBalanceOfUnderlying(owner common.Address) (*big.Int, error)

CalcBalanceOfUnderlying is a free data retrieval call binding the contract method 0xe61de305.

Solidity: function calcBalanceOfUnderlying(address owner) view returns(uint256)

func (*TokenSession) CalcExchangeRate

func (_Token *TokenSession) CalcExchangeRate(_totalBorrows *big.Int, _totalReserves *big.Int) (*big.Int, error)

CalcExchangeRate is a free data retrieval call binding the contract method 0xc5e9cadc.

Solidity: function calcExchangeRate(uint256 _totalBorrows, uint256 _totalReserves) view returns(uint256 exchangeRate)

func (*TokenSession) CancellingOut

func (_Token *TokenSession) CancellingOut(striker common.Address) (*types.Transaction, error)

CancellingOut is a paid mutator transaction binding the contract method 0x15f14eaa.

Solidity: function cancellingOut(address striker) returns(bool strikeOk, bytes strikeLog)

func (*TokenSession) Controller

func (_Token *TokenSession) Controller() (common.Address, error)

Controller is a free data retrieval call binding the contract method 0xf77c4791.

Solidity: function controller() view returns(address)

func (*TokenSession) Decimals

func (_Token *TokenSession) Decimals() (uint8, error)

Decimals is a free data retrieval call binding the contract method 0x313ce567.

Solidity: function decimals() view returns(uint8)

func (*TokenSession) DivExp

func (_Token *TokenSession) DivExp(a *big.Int, b *big.Int) (*big.Int, error)

DivExp is a free data retrieval call binding the contract method 0xb507f9f9.

Solidity: function divExp(uint256 a, uint256 b) pure returns(uint256)

func (*TokenSession) DivScalar

func (_Token *TokenSession) DivScalar(a *big.Int, scalar *big.Int) (*big.Int, error)

DivScalar is a free data retrieval call binding the contract method 0x4751b79c.

Solidity: function divScalar(uint256 a, uint256 scalar) pure returns(uint256)

func (*TokenSession) DivScalarByExp

func (_Token *TokenSession) DivScalarByExp(scalar *big.Int, divisor *big.Int) (*big.Int, error)

DivScalarByExp is a free data retrieval call binding the contract method 0xce603aad.

Solidity: function divScalarByExp(uint256 scalar, uint256 divisor) pure returns(uint256)

func (*TokenSession) DivScalarByExpTruncate

func (_Token *TokenSession) DivScalarByExpTruncate(scalar *big.Int, divisor *big.Int) (*big.Int, error)

DivScalarByExpTruncate is a free data retrieval call binding the contract method 0xd6079cc6.

Solidity: function divScalarByExpTruncate(uint256 scalar, uint256 divisor) pure returns(uint256)

func (*TokenSession) ExchangeRateAfter

func (_Token *TokenSession) ExchangeRateAfter(transferInAmout *big.Int) (*big.Int, error)

ExchangeRateAfter is a free data retrieval call binding the contract method 0x08186ecf.

Solidity: function exchangeRateAfter(uint256 transferInAmout) view returns(uint256 exchangeRate)

func (*TokenSession) ExchangeRateCurrent

func (_Token *TokenSession) ExchangeRateCurrent() (*types.Transaction, error)

ExchangeRateCurrent is a paid mutator transaction binding the contract method 0xbd6d894d.

Solidity: function exchangeRateCurrent() returns(uint256)

func (*TokenSession) ExchangeRateStored

func (_Token *TokenSession) ExchangeRateStored() (*big.Int, error)

ExchangeRateStored is a free data retrieval call binding the contract method 0x182df0f5.

Solidity: function exchangeRateStored() view returns(uint256 exchangeRate)

func (*TokenSession) GetAccountState

func (_Token *TokenSession) GetAccountState(account common.Address) (*big.Int, *big.Int, *big.Int, error)

GetAccountState is a free data retrieval call binding the contract method 0x9ee2735b.

Solidity: function getAccountState(address account) view returns(uint256, uint256, uint256)

func (*TokenSession) GetBorrowRate

func (_Token *TokenSession) GetBorrowRate() (*big.Int, error)

GetBorrowRate is a free data retrieval call binding the contract method 0xba1c5e80.

Solidity: function getBorrowRate() view returns(uint256)

func (*TokenSession) GetDiv

func (_Token *TokenSession) GetDiv(num *big.Int, denom *big.Int) (*big.Int, error)

GetDiv is a free data retrieval call binding the contract method 0x5293ff31.

Solidity: function getDiv(uint256 num, uint256 denom) pure returns(uint256 rational)

func (*TokenSession) GetExp

func (_Token *TokenSession) GetExp(num *big.Int, denom *big.Int) (*big.Int, error)

GetExp is a free data retrieval call binding the contract method 0xba9316b7.

Solidity: function getExp(uint256 num, uint256 denom) pure returns(uint256 rational)

func (*TokenSession) GetSupplyRate

func (_Token *TokenSession) GetSupplyRate() (*big.Int, error)

GetSupplyRate is a free data retrieval call binding the contract method 0x84bdc9a8.

Solidity: function getSupplyRate() view returns(uint256)

func (*TokenSession) InitialExchangeRate

func (_Token *TokenSession) InitialExchangeRate() (*big.Int, error)

InitialExchangeRate is a free data retrieval call binding the contract method 0x6d019f35.

Solidity: function initialExchangeRate() view returns(uint256)

func (*TokenSession) Initialize

func (_Token *TokenSession) Initialize(_initialExchangeRate *big.Int, _controller common.Address, _initialInterestRateModel common.Address, _underlying common.Address, _bank common.Address, _borrowSafeRatio *big.Int, _name string, _symbol string, _decimals uint8) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0x6f4a3de9.

Solidity: function initialize(uint256 _initialExchangeRate, address _controller, address _initialInterestRateModel, address _underlying, address _bank, uint256 _borrowSafeRatio, string _name, string _symbol, uint8 _decimals) returns()

func (*TokenSession) InterestRateModel

func (_Token *TokenSession) InterestRateModel() (common.Address, error)

InterestRateModel is a free data retrieval call binding the contract method 0xf3fdb15a.

Solidity: function interestRateModel() view returns(address)

func (*TokenSession) LiquidateBorrow

func (_Token *TokenSession) LiquidateBorrow(liquidator common.Address, borrower common.Address, repayAmount *big.Int, fTokenCollateral common.Address) (*types.Transaction, error)

LiquidateBorrow is a paid mutator transaction binding the contract method 0x64fd7078.

Solidity: function liquidateBorrow(address liquidator, address borrower, uint256 repayAmount, address fTokenCollateral) returns(bytes)

func (*TokenSession) Mint

func (_Token *TokenSession) Mint(user common.Address, amount *big.Int) (*types.Transaction, error)

Mint is a paid mutator transaction binding the contract method 0x40c10f19.

Solidity: function mint(address user, uint256 amount) returns(bytes)

func (*TokenSession) MulExp

func (_Token *TokenSession) MulExp(a *big.Int, b *big.Int) (*big.Int, error)

MulExp is a free data retrieval call binding the contract method 0xde32abd1.

Solidity: function mulExp(uint256 a, uint256 b) pure returns(uint256)

func (*TokenSession) MulExp3

func (_Token *TokenSession) MulExp3(a *big.Int, b *big.Int, c *big.Int) (*big.Int, error)

MulExp3 is a free data retrieval call binding the contract method 0x8de46362.

Solidity: function mulExp3(uint256 a, uint256 b, uint256 c) pure returns(uint256)

func (*TokenSession) MulScalar

func (_Token *TokenSession) MulScalar(a *big.Int, scalar *big.Int) (*big.Int, error)

MulScalar is a free data retrieval call binding the contract method 0x2985fa31.

Solidity: function mulScalar(uint256 a, uint256 scalar) pure returns(uint256 scaled)

func (*TokenSession) MulScalarTruncate

func (_Token *TokenSession) MulScalarTruncate(a *big.Int, scalar *big.Int) (*big.Int, error)

MulScalarTruncate is a free data retrieval call binding the contract method 0xb4ab15e7.

Solidity: function mulScalarTruncate(uint256 a, uint256 scalar) pure returns(uint256)

func (*TokenSession) MulScalarTruncateAddUInt

func (_Token *TokenSession) MulScalarTruncateAddUInt(a *big.Int, scalar *big.Int, addend *big.Int) (*big.Int, error)

MulScalarTruncateAddUInt is a free data retrieval call binding the contract method 0x6208fc41.

Solidity: function mulScalarTruncateAddUInt(uint256 a, uint256 scalar, uint256 addend) pure returns(uint256)

func (*TokenSession) Name

func (_Token *TokenSession) Name() (string, error)

Name is a free data retrieval call binding the contract method 0x06fdde03.

Solidity: function name() view returns(string)

func (*TokenSession) ONE

func (_Token *TokenSession) ONE() (*big.Int, error)

ONE is a free data retrieval call binding the contract method 0xc2ee3a08.

Solidity: function ONE() view returns(uint256)

func (*TokenSession) PeekInterest

func (_Token *TokenSession) PeekInterest() (struct {
	AccrualBlockNumber *big.Int
	BorrowIndex        *big.Int
	TotalBorrows       *big.Int
	TotalReserves      *big.Int
}, error)

PeekInterest is a free data retrieval call binding the contract method 0x0873f150.

Solidity: function peekInterest() view returns(uint256 _accrualBlockNumber, uint256 _borrowIndex, uint256 _totalBorrows, uint256 _totalReserves)

func (*TokenSession) ReduceReserves

func (_Token *TokenSession) ReduceReserves(reduceAmount *big.Int) (*types.Transaction, error)

ReduceReserves is a paid mutator transaction binding the contract method 0x601a0bf1.

Solidity: function _reduceReserves(uint256 reduceAmount) returns()

func (*TokenSession) Repay

func (_Token *TokenSession) Repay(borrower common.Address, repayAmount *big.Int) (*types.Transaction, error)

Repay is a paid mutator transaction binding the contract method 0x22867d78.

Solidity: function repay(address borrower, uint256 repayAmount) returns(uint256, bytes)

func (*TokenSession) ReserveFactor

func (_Token *TokenSession) ReserveFactor() (*big.Int, error)

ReserveFactor is a free data retrieval call binding the contract method 0x4322b714.

Solidity: function reserveFactor() view returns(uint256)

func (*TokenSession) Seize

func (_Token *TokenSession) Seize(liquidator common.Address, borrower common.Address, seizeTokens *big.Int) (*types.Transaction, error)

Seize is a paid mutator transaction binding the contract method 0xb2a02ff1.

Solidity: function seize(address liquidator, address borrower, uint256 seizeTokens) returns()

func (*TokenSession) SetBorrowSafeRatio

func (_Token *TokenSession) SetBorrowSafeRatio(_borrowSafeRatio *big.Int) (*types.Transaction, error)

SetBorrowSafeRatio is a paid mutator transaction binding the contract method 0x474a5e05.

Solidity: function _setBorrowSafeRatio(uint256 _borrowSafeRatio) returns()

func (*TokenSession) SetController

func (_Token *TokenSession) SetController(_controller common.Address) (*types.Transaction, error)

SetController is a paid mutator transaction binding the contract method 0x83de424e.

Solidity: function _setController(address _controller) returns()

func (*TokenSession) SetInterestRateModel

func (_Token *TokenSession) SetInterestRateModel(newInterestRateModel common.Address) (*types.Transaction, error)

SetInterestRateModel is a paid mutator transaction binding the contract method 0xf2b3abbd.

Solidity: function _setInterestRateModel(address newInterestRateModel) returns()

func (*TokenSession) SetReserveFactorFresh

func (_Token *TokenSession) SetReserveFactorFresh(newReserveFactor *big.Int) (*types.Transaction, error)

SetReserveFactorFresh is a paid mutator transaction binding the contract method 0xae8a473d.

Solidity: function _setReserveFactorFresh(uint256 newReserveFactor) returns()

func (*TokenSession) SubExp

func (_Token *TokenSession) SubExp(a *big.Int, b *big.Int) (*big.Int, error)

SubExp is a free data retrieval call binding the contract method 0x396a98cf.

Solidity: function subExp(uint256 a, uint256 b) pure returns(uint256 result)

func (*TokenSession) SubTotalCash

func (_Token *TokenSession) SubTotalCash(_subAmount *big.Int) (*types.Transaction, error)

SubTotalCash is a paid mutator transaction binding the contract method 0xc319f866.

Solidity: function subTotalCash(uint256 _subAmount) returns()

func (*TokenSession) Symbol

func (_Token *TokenSession) Symbol() (string, error)

Symbol is a free data retrieval call binding the contract method 0x95d89b41.

Solidity: function symbol() view returns(string)

func (*TokenSession) TokenCash

func (_Token *TokenSession) TokenCash(token common.Address, account common.Address) (*big.Int, error)

TokenCash is a free data retrieval call binding the contract method 0x93508164.

Solidity: function tokenCash(address token, address account) view returns(uint256)

func (*TokenSession) TotalBorrows

func (_Token *TokenSession) TotalBorrows() (*big.Int, error)

TotalBorrows is a free data retrieval call binding the contract method 0x47bd3718.

Solidity: function totalBorrows() view returns(uint256)

func (*TokenSession) TotalCash

func (_Token *TokenSession) TotalCash() (*big.Int, error)

TotalCash is a free data retrieval call binding the contract method 0xbee12d53.

Solidity: function totalCash() view returns(uint256)

func (*TokenSession) TotalReserves

func (_Token *TokenSession) TotalReserves() (*big.Int, error)

TotalReserves is a free data retrieval call binding the contract method 0x8f840ddd.

Solidity: function totalReserves() view returns(uint256)

func (*TokenSession) TotalSupply

func (_Token *TokenSession) TotalSupply() (*big.Int, error)

TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.

Solidity: function totalSupply() view returns(uint256)

func (*TokenSession) Transfer

func (_Token *TokenSession) Transfer(dst common.Address, amount *big.Int) (*types.Transaction, error)

Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.

Solidity: function transfer(address dst, uint256 amount) returns(bool)

func (*TokenSession) TransferFrom

func (_Token *TokenSession) TransferFrom(src common.Address, dst common.Address, amount *big.Int) (*types.Transaction, error)

TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.

Solidity: function transferFrom(address src, address dst, uint256 amount) returns(bool)

func (*TokenSession) Truncate

func (_Token *TokenSession) Truncate(exp *big.Int) (*big.Int, error)

Truncate is a free data retrieval call binding the contract method 0x7b94aaac.

Solidity: function truncate(uint256 exp) pure returns(uint256)

func (*TokenSession) Underlying

func (_Token *TokenSession) Underlying() (common.Address, error)

Underlying is a free data retrieval call binding the contract method 0x6f307dc3.

Solidity: function underlying() view returns(address)

func (*TokenSession) Withdraw

func (_Token *TokenSession) Withdraw(withdrawer common.Address, withdrawTokensIn *big.Int, withdrawAmountIn *big.Int) (*types.Transaction, error)

Withdraw is a paid mutator transaction binding the contract method 0xb5c5f672.

Solidity: function withdraw(address withdrawer, uint256 withdrawTokensIn, uint256 withdrawAmountIn) returns(uint256, bytes)

type TokenTransactor

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

TokenTransactor is an auto generated write-only Go binding around an Ethereum contract.

func NewTokenTransactor

func NewTokenTransactor(address common.Address, transactor bind.ContractTransactor) (*TokenTransactor, error)

NewTokenTransactor creates a new write-only instance of Token, bound to a specific deployed contract.

func (*TokenTransactor) AccrueInterest

func (_Token *TokenTransactor) AccrueInterest(opts *bind.TransactOpts) (*types.Transaction, error)

AccrueInterest is a paid mutator transaction binding the contract method 0xa6afed95.

Solidity: function accrueInterest() returns()

func (*TokenTransactor) AddReservesFresh

func (_Token *TokenTransactor) AddReservesFresh(opts *bind.TransactOpts, addAmount *big.Int) (*types.Transaction, error)

AddReservesFresh is a paid mutator transaction binding the contract method 0x9c92779c.

Solidity: function _addReservesFresh(uint256 addAmount) returns()

func (*TokenTransactor) AddTotalCash

func (_Token *TokenTransactor) AddTotalCash(opts *bind.TransactOpts, _addAmount *big.Int) (*types.Transaction, error)

AddTotalCash is a paid mutator transaction binding the contract method 0x95bd6a4c.

Solidity: function addTotalCash(uint256 _addAmount) returns()

func (*TokenTransactor) Approve

func (_Token *TokenTransactor) Approve(opts *bind.TransactOpts, spender common.Address, amount *big.Int) (*types.Transaction, error)

Approve is a paid mutator transaction binding the contract method 0x095ea7b3.

Solidity: function approve(address spender, uint256 amount) returns(bool)

func (*TokenTransactor) BalanceOfUnderlying

func (_Token *TokenTransactor) BalanceOfUnderlying(opts *bind.TransactOpts, owner common.Address) (*types.Transaction, error)

BalanceOfUnderlying is a paid mutator transaction binding the contract method 0x3af9e669.

Solidity: function balanceOfUnderlying(address owner) returns(uint256)

func (*TokenTransactor) Borrow

func (_Token *TokenTransactor) Borrow(opts *bind.TransactOpts, borrower common.Address, borrowAmount *big.Int) (*types.Transaction, error)

Borrow is a paid mutator transaction binding the contract method 0x4b8a3529.

Solidity: function borrow(address borrower, uint256 borrowAmount) returns(bytes)

func (*TokenTransactor) BorrowBalanceCurrent

func (_Token *TokenTransactor) BorrowBalanceCurrent(opts *bind.TransactOpts, account common.Address) (*types.Transaction, error)

BorrowBalanceCurrent is a paid mutator transaction binding the contract method 0x17bfdfbc.

Solidity: function borrowBalanceCurrent(address account) returns(uint256)

func (*TokenTransactor) CancellingOut

func (_Token *TokenTransactor) CancellingOut(opts *bind.TransactOpts, striker common.Address) (*types.Transaction, error)

CancellingOut is a paid mutator transaction binding the contract method 0x15f14eaa.

Solidity: function cancellingOut(address striker) returns(bool strikeOk, bytes strikeLog)

func (*TokenTransactor) ExchangeRateCurrent

func (_Token *TokenTransactor) ExchangeRateCurrent(opts *bind.TransactOpts) (*types.Transaction, error)

ExchangeRateCurrent is a paid mutator transaction binding the contract method 0xbd6d894d.

Solidity: function exchangeRateCurrent() returns(uint256)

func (*TokenTransactor) Initialize

func (_Token *TokenTransactor) Initialize(opts *bind.TransactOpts, _initialExchangeRate *big.Int, _controller common.Address, _initialInterestRateModel common.Address, _underlying common.Address, _bank common.Address, _borrowSafeRatio *big.Int, _name string, _symbol string, _decimals uint8) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0x6f4a3de9.

Solidity: function initialize(uint256 _initialExchangeRate, address _controller, address _initialInterestRateModel, address _underlying, address _bank, uint256 _borrowSafeRatio, string _name, string _symbol, uint8 _decimals) returns()

func (*TokenTransactor) LiquidateBorrow

func (_Token *TokenTransactor) LiquidateBorrow(opts *bind.TransactOpts, liquidator common.Address, borrower common.Address, repayAmount *big.Int, fTokenCollateral common.Address) (*types.Transaction, error)

LiquidateBorrow is a paid mutator transaction binding the contract method 0x64fd7078.

Solidity: function liquidateBorrow(address liquidator, address borrower, uint256 repayAmount, address fTokenCollateral) returns(bytes)

func (*TokenTransactor) Mint

func (_Token *TokenTransactor) Mint(opts *bind.TransactOpts, user common.Address, amount *big.Int) (*types.Transaction, error)

Mint is a paid mutator transaction binding the contract method 0x40c10f19.

Solidity: function mint(address user, uint256 amount) returns(bytes)

func (*TokenTransactor) ReduceReserves

func (_Token *TokenTransactor) ReduceReserves(opts *bind.TransactOpts, reduceAmount *big.Int) (*types.Transaction, error)

ReduceReserves is a paid mutator transaction binding the contract method 0x601a0bf1.

Solidity: function _reduceReserves(uint256 reduceAmount) returns()

func (*TokenTransactor) Repay

func (_Token *TokenTransactor) Repay(opts *bind.TransactOpts, borrower common.Address, repayAmount *big.Int) (*types.Transaction, error)

Repay is a paid mutator transaction binding the contract method 0x22867d78.

Solidity: function repay(address borrower, uint256 repayAmount) returns(uint256, bytes)

func (*TokenTransactor) Seize

func (_Token *TokenTransactor) Seize(opts *bind.TransactOpts, liquidator common.Address, borrower common.Address, seizeTokens *big.Int) (*types.Transaction, error)

Seize is a paid mutator transaction binding the contract method 0xb2a02ff1.

Solidity: function seize(address liquidator, address borrower, uint256 seizeTokens) returns()

func (*TokenTransactor) SetBorrowSafeRatio

func (_Token *TokenTransactor) SetBorrowSafeRatio(opts *bind.TransactOpts, _borrowSafeRatio *big.Int) (*types.Transaction, error)

SetBorrowSafeRatio is a paid mutator transaction binding the contract method 0x474a5e05.

Solidity: function _setBorrowSafeRatio(uint256 _borrowSafeRatio) returns()

func (*TokenTransactor) SetController

func (_Token *TokenTransactor) SetController(opts *bind.TransactOpts, _controller common.Address) (*types.Transaction, error)

SetController is a paid mutator transaction binding the contract method 0x83de424e.

Solidity: function _setController(address _controller) returns()

func (*TokenTransactor) SetInterestRateModel

func (_Token *TokenTransactor) SetInterestRateModel(opts *bind.TransactOpts, newInterestRateModel common.Address) (*types.Transaction, error)

SetInterestRateModel is a paid mutator transaction binding the contract method 0xf2b3abbd.

Solidity: function _setInterestRateModel(address newInterestRateModel) returns()

func (*TokenTransactor) SetReserveFactorFresh

func (_Token *TokenTransactor) SetReserveFactorFresh(opts *bind.TransactOpts, newReserveFactor *big.Int) (*types.Transaction, error)

SetReserveFactorFresh is a paid mutator transaction binding the contract method 0xae8a473d.

Solidity: function _setReserveFactorFresh(uint256 newReserveFactor) returns()

func (*TokenTransactor) SubTotalCash

func (_Token *TokenTransactor) SubTotalCash(opts *bind.TransactOpts, _subAmount *big.Int) (*types.Transaction, error)

SubTotalCash is a paid mutator transaction binding the contract method 0xc319f866.

Solidity: function subTotalCash(uint256 _subAmount) returns()

func (*TokenTransactor) Transfer

func (_Token *TokenTransactor) Transfer(opts *bind.TransactOpts, dst common.Address, amount *big.Int) (*types.Transaction, error)

Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.

Solidity: function transfer(address dst, uint256 amount) returns(bool)

func (*TokenTransactor) TransferFrom

func (_Token *TokenTransactor) TransferFrom(opts *bind.TransactOpts, src common.Address, dst common.Address, amount *big.Int) (*types.Transaction, error)

TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.

Solidity: function transferFrom(address src, address dst, uint256 amount) returns(bool)

func (*TokenTransactor) Withdraw

func (_Token *TokenTransactor) Withdraw(opts *bind.TransactOpts, withdrawer common.Address, withdrawTokensIn *big.Int, withdrawAmountIn *big.Int) (*types.Transaction, error)

Withdraw is a paid mutator transaction binding the contract method 0xb5c5f672.

Solidity: function withdraw(address withdrawer, uint256 withdrawTokensIn, uint256 withdrawAmountIn) returns(uint256, bytes)

type TokenTransactorRaw

type TokenTransactorRaw struct {
	Contract *TokenTransactor // Generic write-only contract binding to access the raw methods on
}

TokenTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.

func (*TokenTransactorRaw) Transact

func (_Token *TokenTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*TokenTransactorRaw) Transfer

func (_Token *TokenTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type TokenTransactorSession

type TokenTransactorSession struct {
	Contract     *TokenTransactor  // Generic contract transactor binding to set the session for
	TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}

TokenTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.

func (*TokenTransactorSession) AccrueInterest

func (_Token *TokenTransactorSession) AccrueInterest() (*types.Transaction, error)

AccrueInterest is a paid mutator transaction binding the contract method 0xa6afed95.

Solidity: function accrueInterest() returns()

func (*TokenTransactorSession) AddReservesFresh

func (_Token *TokenTransactorSession) AddReservesFresh(addAmount *big.Int) (*types.Transaction, error)

AddReservesFresh is a paid mutator transaction binding the contract method 0x9c92779c.

Solidity: function _addReservesFresh(uint256 addAmount) returns()

func (*TokenTransactorSession) AddTotalCash

func (_Token *TokenTransactorSession) AddTotalCash(_addAmount *big.Int) (*types.Transaction, error)

AddTotalCash is a paid mutator transaction binding the contract method 0x95bd6a4c.

Solidity: function addTotalCash(uint256 _addAmount) returns()

func (*TokenTransactorSession) Approve

func (_Token *TokenTransactorSession) Approve(spender common.Address, amount *big.Int) (*types.Transaction, error)

Approve is a paid mutator transaction binding the contract method 0x095ea7b3.

Solidity: function approve(address spender, uint256 amount) returns(bool)

func (*TokenTransactorSession) BalanceOfUnderlying

func (_Token *TokenTransactorSession) BalanceOfUnderlying(owner common.Address) (*types.Transaction, error)

BalanceOfUnderlying is a paid mutator transaction binding the contract method 0x3af9e669.

Solidity: function balanceOfUnderlying(address owner) returns(uint256)

func (*TokenTransactorSession) Borrow

func (_Token *TokenTransactorSession) Borrow(borrower common.Address, borrowAmount *big.Int) (*types.Transaction, error)

Borrow is a paid mutator transaction binding the contract method 0x4b8a3529.

Solidity: function borrow(address borrower, uint256 borrowAmount) returns(bytes)

func (*TokenTransactorSession) BorrowBalanceCurrent

func (_Token *TokenTransactorSession) BorrowBalanceCurrent(account common.Address) (*types.Transaction, error)

BorrowBalanceCurrent is a paid mutator transaction binding the contract method 0x17bfdfbc.

Solidity: function borrowBalanceCurrent(address account) returns(uint256)

func (*TokenTransactorSession) CancellingOut

func (_Token *TokenTransactorSession) CancellingOut(striker common.Address) (*types.Transaction, error)

CancellingOut is a paid mutator transaction binding the contract method 0x15f14eaa.

Solidity: function cancellingOut(address striker) returns(bool strikeOk, bytes strikeLog)

func (*TokenTransactorSession) ExchangeRateCurrent

func (_Token *TokenTransactorSession) ExchangeRateCurrent() (*types.Transaction, error)

ExchangeRateCurrent is a paid mutator transaction binding the contract method 0xbd6d894d.

Solidity: function exchangeRateCurrent() returns(uint256)

func (*TokenTransactorSession) Initialize

func (_Token *TokenTransactorSession) Initialize(_initialExchangeRate *big.Int, _controller common.Address, _initialInterestRateModel common.Address, _underlying common.Address, _bank common.Address, _borrowSafeRatio *big.Int, _name string, _symbol string, _decimals uint8) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0x6f4a3de9.

Solidity: function initialize(uint256 _initialExchangeRate, address _controller, address _initialInterestRateModel, address _underlying, address _bank, uint256 _borrowSafeRatio, string _name, string _symbol, uint8 _decimals) returns()

func (*TokenTransactorSession) LiquidateBorrow

func (_Token *TokenTransactorSession) LiquidateBorrow(liquidator common.Address, borrower common.Address, repayAmount *big.Int, fTokenCollateral common.Address) (*types.Transaction, error)

LiquidateBorrow is a paid mutator transaction binding the contract method 0x64fd7078.

Solidity: function liquidateBorrow(address liquidator, address borrower, uint256 repayAmount, address fTokenCollateral) returns(bytes)

func (*TokenTransactorSession) Mint

func (_Token *TokenTransactorSession) Mint(user common.Address, amount *big.Int) (*types.Transaction, error)

Mint is a paid mutator transaction binding the contract method 0x40c10f19.

Solidity: function mint(address user, uint256 amount) returns(bytes)

func (*TokenTransactorSession) ReduceReserves

func (_Token *TokenTransactorSession) ReduceReserves(reduceAmount *big.Int) (*types.Transaction, error)

ReduceReserves is a paid mutator transaction binding the contract method 0x601a0bf1.

Solidity: function _reduceReserves(uint256 reduceAmount) returns()

func (*TokenTransactorSession) Repay

func (_Token *TokenTransactorSession) Repay(borrower common.Address, repayAmount *big.Int) (*types.Transaction, error)

Repay is a paid mutator transaction binding the contract method 0x22867d78.

Solidity: function repay(address borrower, uint256 repayAmount) returns(uint256, bytes)

func (*TokenTransactorSession) Seize

func (_Token *TokenTransactorSession) Seize(liquidator common.Address, borrower common.Address, seizeTokens *big.Int) (*types.Transaction, error)

Seize is a paid mutator transaction binding the contract method 0xb2a02ff1.

Solidity: function seize(address liquidator, address borrower, uint256 seizeTokens) returns()

func (*TokenTransactorSession) SetBorrowSafeRatio

func (_Token *TokenTransactorSession) SetBorrowSafeRatio(_borrowSafeRatio *big.Int) (*types.Transaction, error)

SetBorrowSafeRatio is a paid mutator transaction binding the contract method 0x474a5e05.

Solidity: function _setBorrowSafeRatio(uint256 _borrowSafeRatio) returns()

func (*TokenTransactorSession) SetController

func (_Token *TokenTransactorSession) SetController(_controller common.Address) (*types.Transaction, error)

SetController is a paid mutator transaction binding the contract method 0x83de424e.

Solidity: function _setController(address _controller) returns()

func (*TokenTransactorSession) SetInterestRateModel

func (_Token *TokenTransactorSession) SetInterestRateModel(newInterestRateModel common.Address) (*types.Transaction, error)

SetInterestRateModel is a paid mutator transaction binding the contract method 0xf2b3abbd.

Solidity: function _setInterestRateModel(address newInterestRateModel) returns()

func (*TokenTransactorSession) SetReserveFactorFresh

func (_Token *TokenTransactorSession) SetReserveFactorFresh(newReserveFactor *big.Int) (*types.Transaction, error)

SetReserveFactorFresh is a paid mutator transaction binding the contract method 0xae8a473d.

Solidity: function _setReserveFactorFresh(uint256 newReserveFactor) returns()

func (*TokenTransactorSession) SubTotalCash

func (_Token *TokenTransactorSession) SubTotalCash(_subAmount *big.Int) (*types.Transaction, error)

SubTotalCash is a paid mutator transaction binding the contract method 0xc319f866.

Solidity: function subTotalCash(uint256 _subAmount) returns()

func (*TokenTransactorSession) Transfer

func (_Token *TokenTransactorSession) Transfer(dst common.Address, amount *big.Int) (*types.Transaction, error)

Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.

Solidity: function transfer(address dst, uint256 amount) returns(bool)

func (*TokenTransactorSession) TransferFrom

func (_Token *TokenTransactorSession) TransferFrom(src common.Address, dst common.Address, amount *big.Int) (*types.Transaction, error)

TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.

Solidity: function transferFrom(address src, address dst, uint256 amount) returns(bool)

func (*TokenTransactorSession) Withdraw

func (_Token *TokenTransactorSession) Withdraw(withdrawer common.Address, withdrawTokensIn *big.Int, withdrawAmountIn *big.Int) (*types.Transaction, error)

Withdraw is a paid mutator transaction binding the contract method 0xb5c5f672.

Solidity: function withdraw(address withdrawer, uint256 withdrawTokensIn, uint256 withdrawAmountIn) returns(uint256, bytes)

type TokenTransfer

type TokenTransfer struct {
	From  common.Address
	To    common.Address
	Value *big.Int
	Raw   types.Log // Blockchain specific contextual infos
}

TokenTransfer represents a Transfer event raised by the Token contract.

type TokenTransferIterator

type TokenTransferIterator struct {
	Event *TokenTransfer // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

TokenTransferIterator is returned from FilterTransfer and is used to iterate over the raw logs and unpacked data for Transfer events raised by the Token contract.

func (*TokenTransferIterator) Close

func (it *TokenTransferIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*TokenTransferIterator) Error

func (it *TokenTransferIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*TokenTransferIterator) Next

func (it *TokenTransferIterator) Next() bool

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

Jump to

Keyboard shortcuts

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