cethtoken

package
v1.4.319 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2023 License: GPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ERC20ABI = ERC20MetaData.ABI

ERC20ABI is the input ABI used to generate the binding from. Deprecated: Use ERC20MetaData.ABI instead.

View Source
var ERC20MetaData = &bind.MetaData{
	ABI: "[{\"constant\":true,\"inputs\":[],\"name\":\"name\",\"outputs\":[{\"name\":\"\",\"type\":\"string\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"spender\",\"type\":\"address\"},{\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"approve\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"mint\",\"outputs\":[],\"payable\":true,\"stateMutability\":\"payable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"reserveFactorMantissa\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"account\",\"type\":\"address\"}],\"name\":\"borrowBalanceCurrent\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"totalSupply\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"exchangeRateStored\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"src\",\"type\":\"address\"},{\"name\":\"dst\",\"type\":\"address\"},{\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"transferFrom\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"pendingAdmin\",\"outputs\":[{\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"decimals\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"balanceOfUnderlying\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"getCash\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"newComptroller\",\"type\":\"address\"}],\"name\":\"_setComptroller\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"totalBorrows\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"repayBorrow\",\"outputs\":[],\"payable\":true,\"stateMutability\":\"payable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"comptroller\",\"outputs\":[{\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"reduceAmount\",\"type\":\"uint256\"}],\"name\":\"_reduceReserves\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"initialExchangeRateMantissa\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"accrualBlockNumber\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"totalBorrowsCurrent\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"redeemAmount\",\"type\":\"uint256\"}],\"name\":\"redeemUnderlying\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"totalReserves\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"symbol\",\"outputs\":[{\"name\":\"\",\"type\":\"string\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"account\",\"type\":\"address\"}],\"name\":\"borrowBalanceStored\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"accrueInterest\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"dst\",\"type\":\"address\"},{\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"transfer\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"borrowIndex\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"borrower\",\"type\":\"address\"},{\"name\":\"cTokenCollateral\",\"type\":\"address\"}],\"name\":\"liquidateBorrow\",\"outputs\":[],\"payable\":true,\"stateMutability\":\"payable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"supplyRatePerBlock\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"liquidator\",\"type\":\"address\"},{\"name\":\"borrower\",\"type\":\"address\"},{\"name\":\"seizeTokens\",\"type\":\"uint256\"}],\"name\":\"seize\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"newPendingAdmin\",\"type\":\"address\"}],\"name\":\"_setPendingAdmin\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"exchangeRateCurrent\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"account\",\"type\":\"address\"}],\"name\":\"getAccountSnapshot\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"},{\"name\":\"\",\"type\":\"uint256\"},{\"name\":\"\",\"type\":\"uint256\"},{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"borrowAmount\",\"type\":\"uint256\"}],\"name\":\"borrow\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"redeemTokens\",\"type\":\"uint256\"}],\"name\":\"redeem\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"owner\",\"type\":\"address\"},{\"name\":\"spender\",\"type\":\"address\"}],\"name\":\"allowance\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"borrower\",\"type\":\"address\"}],\"name\":\"repayBorrowBehalf\",\"outputs\":[],\"payable\":true,\"stateMutability\":\"payable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"_acceptAdmin\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"newInterestRateModel\",\"type\":\"address\"}],\"name\":\"_setInterestRateModel\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"interestRateModel\",\"outputs\":[{\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"admin\",\"outputs\":[{\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"borrowRatePerBlock\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"newReserveFactorMantissa\",\"type\":\"uint256\"}],\"name\":\"_setReserveFactor\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"isCToken\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"name\":\"comptroller_\",\"type\":\"address\"},{\"name\":\"interestRateModel_\",\"type\":\"address\"},{\"name\":\"initialExchangeRateMantissa_\",\"type\":\"uint256\"},{\"name\":\"name_\",\"type\":\"string\"},{\"name\":\"symbol_\",\"type\":\"string\"},{\"name\":\"decimals_\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"payable\":true,\"stateMutability\":\"payable\",\"type\":\"fallback\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"name\":\"interestAccumulated\",\"type\":\"uint256\"},{\"indexed\":false,\"name\":\"borrowIndex\",\"type\":\"uint256\"},{\"indexed\":false,\"name\":\"totalBorrows\",\"type\":\"uint256\"}],\"name\":\"AccrueInterest\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"name\":\"minter\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"mintAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"name\":\"mintTokens\",\"type\":\"uint256\"}],\"name\":\"Mint\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"name\":\"redeemer\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"redeemAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"name\":\"redeemTokens\",\"type\":\"uint256\"}],\"name\":\"Redeem\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"name\":\"borrower\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"borrowAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"name\":\"accountBorrows\",\"type\":\"uint256\"},{\"indexed\":false,\"name\":\"totalBorrows\",\"type\":\"uint256\"}],\"name\":\"Borrow\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"name\":\"payer\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"borrower\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"repayAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"name\":\"accountBorrows\",\"type\":\"uint256\"},{\"indexed\":false,\"name\":\"totalBorrows\",\"type\":\"uint256\"}],\"name\":\"RepayBorrow\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"name\":\"liquidator\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"borrower\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"repayAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"name\":\"cTokenCollateral\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"seizeTokens\",\"type\":\"uint256\"}],\"name\":\"LiquidateBorrow\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"name\":\"oldPendingAdmin\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"newPendingAdmin\",\"type\":\"address\"}],\"name\":\"NewPendingAdmin\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"name\":\"oldAdmin\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"newAdmin\",\"type\":\"address\"}],\"name\":\"NewAdmin\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"name\":\"oldComptroller\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"newComptroller\",\"type\":\"address\"}],\"name\":\"NewComptroller\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"name\":\"oldInterestRateModel\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"newInterestRateModel\",\"type\":\"address\"}],\"name\":\"NewMarketInterestRateModel\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"name\":\"oldReserveFactorMantissa\",\"type\":\"uint256\"},{\"indexed\":false,\"name\":\"newReserveFactorMantissa\",\"type\":\"uint256\"}],\"name\":\"NewReserveFactor\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"name\":\"admin\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"reduceAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"name\":\"newTotalReserves\",\"type\":\"uint256\"}],\"name\":\"ReservesReduced\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"name\":\"error\",\"type\":\"uint256\"},{\"indexed\":false,\"name\":\"info\",\"type\":\"uint256\"},{\"indexed\":false,\"name\":\"detail\",\"type\":\"uint256\"}],\"name\":\"Failure\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"name\":\"spender\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"Approval\",\"type\":\"event\"}]",
}

ERC20MetaData contains all meta data concerning the ERC20 contract.

Functions

This section is empty.

Types

type ERC20

type ERC20 struct {
	ERC20Caller     // Read-only binding to the contract
	ERC20Transactor // Write-only binding to the contract
	ERC20Filterer   // Log filterer for contract events
}

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

func NewERC20

func NewERC20(address common.Address, backend bind.ContractBackend) (*ERC20, error)

NewERC20 creates a new instance of ERC20, bound to a specific deployed contract.

type ERC20AccrueInterest

type ERC20AccrueInterest struct {
	InterestAccumulated *big.Int
	BorrowIndex         *big.Int
	TotalBorrows        *big.Int
	Raw                 types.Log // Blockchain specific contextual infos
}

ERC20AccrueInterest represents a AccrueInterest event raised by the ERC20 contract.

type ERC20AccrueInterestIterator

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

ERC20AccrueInterestIterator is returned from FilterAccrueInterest and is used to iterate over the raw logs and unpacked data for AccrueInterest events raised by the ERC20 contract.

func (*ERC20AccrueInterestIterator) Close

func (it *ERC20AccrueInterestIterator) Close() error

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

func (*ERC20AccrueInterestIterator) Error

func (it *ERC20AccrueInterestIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ERC20AccrueInterestIterator) Next

func (it *ERC20AccrueInterestIterator) 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 ERC20Approval

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

ERC20Approval represents a Approval event raised by the ERC20 contract.

type ERC20ApprovalIterator

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

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

func (*ERC20ApprovalIterator) Close

func (it *ERC20ApprovalIterator) Close() error

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

func (*ERC20ApprovalIterator) Error

func (it *ERC20ApprovalIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ERC20ApprovalIterator) Next

func (it *ERC20ApprovalIterator) 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 ERC20Borrow

type ERC20Borrow struct {
	Borrower       common.Address
	BorrowAmount   *big.Int
	AccountBorrows *big.Int
	TotalBorrows   *big.Int
	Raw            types.Log // Blockchain specific contextual infos
}

ERC20Borrow represents a Borrow event raised by the ERC20 contract.

type ERC20BorrowIterator

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

ERC20BorrowIterator is returned from FilterBorrow and is used to iterate over the raw logs and unpacked data for Borrow events raised by the ERC20 contract.

func (*ERC20BorrowIterator) Close

func (it *ERC20BorrowIterator) Close() error

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

func (*ERC20BorrowIterator) Error

func (it *ERC20BorrowIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ERC20BorrowIterator) Next

func (it *ERC20BorrowIterator) 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 ERC20Caller

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

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

func NewERC20Caller

func NewERC20Caller(address common.Address, caller bind.ContractCaller) (*ERC20Caller, error)

NewERC20Caller creates a new read-only instance of ERC20, bound to a specific deployed contract.

func (*ERC20Caller) AccrualBlockNumber

func (_ERC20 *ERC20Caller) 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 (*ERC20Caller) Admin

func (_ERC20 *ERC20Caller) 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 (*ERC20Caller) Allowance

func (_ERC20 *ERC20Caller) 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 (*ERC20Caller) BalanceOf

func (_ERC20 *ERC20Caller) 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 (*ERC20Caller) BorrowBalanceStored

func (_ERC20 *ERC20Caller) 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 (*ERC20Caller) BorrowIndex

func (_ERC20 *ERC20Caller) 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 (*ERC20Caller) BorrowRatePerBlock

func (_ERC20 *ERC20Caller) BorrowRatePerBlock(opts *bind.CallOpts) (*big.Int, error)

BorrowRatePerBlock is a free data retrieval call binding the contract method 0xf8f9da28.

Solidity: function borrowRatePerBlock() view returns(uint256)

func (*ERC20Caller) Comptroller

func (_ERC20 *ERC20Caller) Comptroller(opts *bind.CallOpts) (common.Address, error)

Comptroller is a free data retrieval call binding the contract method 0x5fe3b567.

Solidity: function comptroller() view returns(address)

func (*ERC20Caller) Decimals

func (_ERC20 *ERC20Caller) Decimals(opts *bind.CallOpts) (*big.Int, error)

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

Solidity: function decimals() view returns(uint256)

func (*ERC20Caller) ExchangeRateStored

func (_ERC20 *ERC20Caller) 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)

func (*ERC20Caller) GetAccountSnapshot

func (_ERC20 *ERC20Caller) GetAccountSnapshot(opts *bind.CallOpts, account common.Address) (*big.Int, *big.Int, *big.Int, *big.Int, error)

GetAccountSnapshot is a free data retrieval call binding the contract method 0xc37f68e2.

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

func (*ERC20Caller) GetCash

func (_ERC20 *ERC20Caller) GetCash(opts *bind.CallOpts) (*big.Int, error)

GetCash is a free data retrieval call binding the contract method 0x3b1d21a2.

Solidity: function getCash() view returns(uint256)

func (*ERC20Caller) InitialExchangeRateMantissa

func (_ERC20 *ERC20Caller) InitialExchangeRateMantissa(opts *bind.CallOpts) (*big.Int, error)

InitialExchangeRateMantissa is a free data retrieval call binding the contract method 0x675d972c.

Solidity: function initialExchangeRateMantissa() view returns(uint256)

func (*ERC20Caller) InterestRateModel

func (_ERC20 *ERC20Caller) 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 (*ERC20Caller) IsCToken

func (_ERC20 *ERC20Caller) IsCToken(opts *bind.CallOpts) (bool, error)

IsCToken is a free data retrieval call binding the contract method 0xfe9c44ae.

Solidity: function isCToken() view returns(bool)

func (*ERC20Caller) Name

func (_ERC20 *ERC20Caller) 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 (*ERC20Caller) PendingAdmin

func (_ERC20 *ERC20Caller) PendingAdmin(opts *bind.CallOpts) (common.Address, error)

PendingAdmin is a free data retrieval call binding the contract method 0x26782247.

Solidity: function pendingAdmin() view returns(address)

func (*ERC20Caller) ReserveFactorMantissa

func (_ERC20 *ERC20Caller) ReserveFactorMantissa(opts *bind.CallOpts) (*big.Int, error)

ReserveFactorMantissa is a free data retrieval call binding the contract method 0x173b9904.

Solidity: function reserveFactorMantissa() view returns(uint256)

func (*ERC20Caller) SupplyRatePerBlock

func (_ERC20 *ERC20Caller) SupplyRatePerBlock(opts *bind.CallOpts) (*big.Int, error)

SupplyRatePerBlock is a free data retrieval call binding the contract method 0xae9d70b0.

Solidity: function supplyRatePerBlock() view returns(uint256)

func (*ERC20Caller) Symbol

func (_ERC20 *ERC20Caller) 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 (*ERC20Caller) TotalBorrows

func (_ERC20 *ERC20Caller) 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 (*ERC20Caller) TotalReserves

func (_ERC20 *ERC20Caller) 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 (*ERC20Caller) TotalSupply

func (_ERC20 *ERC20Caller) 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)

type ERC20CallerRaw

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

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

func (*ERC20CallerRaw) Call

func (_ERC20 *ERC20CallerRaw) 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 ERC20CallerSession

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

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

func (*ERC20CallerSession) AccrualBlockNumber

func (_ERC20 *ERC20CallerSession) AccrualBlockNumber() (*big.Int, error)

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

Solidity: function accrualBlockNumber() view returns(uint256)

func (*ERC20CallerSession) Admin

func (_ERC20 *ERC20CallerSession) Admin() (common.Address, error)

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

Solidity: function admin() view returns(address)

func (*ERC20CallerSession) Allowance

func (_ERC20 *ERC20CallerSession) 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 (*ERC20CallerSession) BalanceOf

func (_ERC20 *ERC20CallerSession) 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 (*ERC20CallerSession) BorrowBalanceStored

func (_ERC20 *ERC20CallerSession) 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 (*ERC20CallerSession) BorrowIndex

func (_ERC20 *ERC20CallerSession) BorrowIndex() (*big.Int, error)

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

Solidity: function borrowIndex() view returns(uint256)

func (*ERC20CallerSession) BorrowRatePerBlock

func (_ERC20 *ERC20CallerSession) BorrowRatePerBlock() (*big.Int, error)

BorrowRatePerBlock is a free data retrieval call binding the contract method 0xf8f9da28.

Solidity: function borrowRatePerBlock() view returns(uint256)

func (*ERC20CallerSession) Comptroller

func (_ERC20 *ERC20CallerSession) Comptroller() (common.Address, error)

Comptroller is a free data retrieval call binding the contract method 0x5fe3b567.

Solidity: function comptroller() view returns(address)

func (*ERC20CallerSession) Decimals

func (_ERC20 *ERC20CallerSession) Decimals() (*big.Int, error)

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

Solidity: function decimals() view returns(uint256)

func (*ERC20CallerSession) ExchangeRateStored

func (_ERC20 *ERC20CallerSession) ExchangeRateStored() (*big.Int, error)

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

Solidity: function exchangeRateStored() view returns(uint256)

func (*ERC20CallerSession) GetAccountSnapshot

func (_ERC20 *ERC20CallerSession) GetAccountSnapshot(account common.Address) (*big.Int, *big.Int, *big.Int, *big.Int, error)

GetAccountSnapshot is a free data retrieval call binding the contract method 0xc37f68e2.

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

func (*ERC20CallerSession) GetCash

func (_ERC20 *ERC20CallerSession) GetCash() (*big.Int, error)

GetCash is a free data retrieval call binding the contract method 0x3b1d21a2.

Solidity: function getCash() view returns(uint256)

func (*ERC20CallerSession) InitialExchangeRateMantissa

func (_ERC20 *ERC20CallerSession) InitialExchangeRateMantissa() (*big.Int, error)

InitialExchangeRateMantissa is a free data retrieval call binding the contract method 0x675d972c.

Solidity: function initialExchangeRateMantissa() view returns(uint256)

func (*ERC20CallerSession) InterestRateModel

func (_ERC20 *ERC20CallerSession) InterestRateModel() (common.Address, error)

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

Solidity: function interestRateModel() view returns(address)

func (*ERC20CallerSession) IsCToken

func (_ERC20 *ERC20CallerSession) IsCToken() (bool, error)

IsCToken is a free data retrieval call binding the contract method 0xfe9c44ae.

Solidity: function isCToken() view returns(bool)

func (*ERC20CallerSession) Name

func (_ERC20 *ERC20CallerSession) Name() (string, error)

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

Solidity: function name() view returns(string)

func (*ERC20CallerSession) PendingAdmin

func (_ERC20 *ERC20CallerSession) PendingAdmin() (common.Address, error)

PendingAdmin is a free data retrieval call binding the contract method 0x26782247.

Solidity: function pendingAdmin() view returns(address)

func (*ERC20CallerSession) ReserveFactorMantissa

func (_ERC20 *ERC20CallerSession) ReserveFactorMantissa() (*big.Int, error)

ReserveFactorMantissa is a free data retrieval call binding the contract method 0x173b9904.

Solidity: function reserveFactorMantissa() view returns(uint256)

func (*ERC20CallerSession) SupplyRatePerBlock

func (_ERC20 *ERC20CallerSession) SupplyRatePerBlock() (*big.Int, error)

SupplyRatePerBlock is a free data retrieval call binding the contract method 0xae9d70b0.

Solidity: function supplyRatePerBlock() view returns(uint256)

func (*ERC20CallerSession) Symbol

func (_ERC20 *ERC20CallerSession) Symbol() (string, error)

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

Solidity: function symbol() view returns(string)

func (*ERC20CallerSession) TotalBorrows

func (_ERC20 *ERC20CallerSession) TotalBorrows() (*big.Int, error)

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

Solidity: function totalBorrows() view returns(uint256)

func (*ERC20CallerSession) TotalReserves

func (_ERC20 *ERC20CallerSession) TotalReserves() (*big.Int, error)

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

Solidity: function totalReserves() view returns(uint256)

func (*ERC20CallerSession) TotalSupply

func (_ERC20 *ERC20CallerSession) TotalSupply() (*big.Int, error)

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

Solidity: function totalSupply() view returns(uint256)

type ERC20Failure

type ERC20Failure struct {
	Error  *big.Int
	Info   *big.Int
	Detail *big.Int
	Raw    types.Log // Blockchain specific contextual infos
}

ERC20Failure represents a Failure event raised by the ERC20 contract.

type ERC20FailureIterator

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

ERC20FailureIterator is returned from FilterFailure and is used to iterate over the raw logs and unpacked data for Failure events raised by the ERC20 contract.

func (*ERC20FailureIterator) Close

func (it *ERC20FailureIterator) Close() error

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

func (*ERC20FailureIterator) Error

func (it *ERC20FailureIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ERC20FailureIterator) Next

func (it *ERC20FailureIterator) 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 ERC20Filterer

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

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

func NewERC20Filterer

func NewERC20Filterer(address common.Address, filterer bind.ContractFilterer) (*ERC20Filterer, error)

NewERC20Filterer creates a new log filterer instance of ERC20, bound to a specific deployed contract.

func (*ERC20Filterer) FilterAccrueInterest

func (_ERC20 *ERC20Filterer) FilterAccrueInterest(opts *bind.FilterOpts) (*ERC20AccrueInterestIterator, error)

FilterAccrueInterest is a free log retrieval operation binding the contract event 0x875352fb3fadeb8c0be7cbbe8ff761b308fa7033470cd0287f02f3436fd76cb9.

Solidity: event AccrueInterest(uint256 interestAccumulated, uint256 borrowIndex, uint256 totalBorrows)

func (*ERC20Filterer) FilterApproval

func (_ERC20 *ERC20Filterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*ERC20ApprovalIterator, error)

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

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

func (*ERC20Filterer) FilterBorrow

func (_ERC20 *ERC20Filterer) FilterBorrow(opts *bind.FilterOpts) (*ERC20BorrowIterator, error)

FilterBorrow is a free log retrieval operation binding the contract event 0x13ed6866d4e1ee6da46f845c46d7e54120883d75c5ea9a2dacc1c4ca8984ab80.

Solidity: event Borrow(address borrower, uint256 borrowAmount, uint256 accountBorrows, uint256 totalBorrows)

func (*ERC20Filterer) FilterFailure

func (_ERC20 *ERC20Filterer) FilterFailure(opts *bind.FilterOpts) (*ERC20FailureIterator, error)

FilterFailure is a free log retrieval operation binding the contract event 0x45b96fe442630264581b197e84bbada861235052c5a1aadfff9ea4e40a969aa0.

Solidity: event Failure(uint256 error, uint256 info, uint256 detail)

func (*ERC20Filterer) FilterLiquidateBorrow

func (_ERC20 *ERC20Filterer) FilterLiquidateBorrow(opts *bind.FilterOpts) (*ERC20LiquidateBorrowIterator, error)

FilterLiquidateBorrow is a free log retrieval operation binding the contract event 0x298637f684da70674f26509b10f07ec2fbc77a335ab1e7d6215a4b2484d8bb52.

Solidity: event LiquidateBorrow(address liquidator, address borrower, uint256 repayAmount, address cTokenCollateral, uint256 seizeTokens)

func (*ERC20Filterer) FilterMint

func (_ERC20 *ERC20Filterer) FilterMint(opts *bind.FilterOpts) (*ERC20MintIterator, error)

FilterMint is a free log retrieval operation binding the contract event 0x4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f.

Solidity: event Mint(address minter, uint256 mintAmount, uint256 mintTokens)

func (*ERC20Filterer) FilterNewAdmin

func (_ERC20 *ERC20Filterer) FilterNewAdmin(opts *bind.FilterOpts) (*ERC20NewAdminIterator, error)

FilterNewAdmin is a free log retrieval operation binding the contract event 0xf9ffabca9c8276e99321725bcb43fb076a6c66a54b7f21c4e8146d8519b417dc.

Solidity: event NewAdmin(address oldAdmin, address newAdmin)

func (*ERC20Filterer) FilterNewComptroller

func (_ERC20 *ERC20Filterer) FilterNewComptroller(opts *bind.FilterOpts) (*ERC20NewComptrollerIterator, error)

FilterNewComptroller is a free log retrieval operation binding the contract event 0x7ac369dbd14fa5ea3f473ed67cc9d598964a77501540ba6751eb0b3decf5870d.

Solidity: event NewComptroller(address oldComptroller, address newComptroller)

func (*ERC20Filterer) FilterNewMarketInterestRateModel

func (_ERC20 *ERC20Filterer) FilterNewMarketInterestRateModel(opts *bind.FilterOpts) (*ERC20NewMarketInterestRateModelIterator, error)

FilterNewMarketInterestRateModel is a free log retrieval operation binding the contract event 0xedffc32e068c7c95dfd4bdfd5c4d939a084d6b11c4199eac8436ed234d72f926.

Solidity: event NewMarketInterestRateModel(address oldInterestRateModel, address newInterestRateModel)

func (*ERC20Filterer) FilterNewPendingAdmin

func (_ERC20 *ERC20Filterer) FilterNewPendingAdmin(opts *bind.FilterOpts) (*ERC20NewPendingAdminIterator, error)

FilterNewPendingAdmin is a free log retrieval operation binding the contract event 0xca4f2f25d0898edd99413412fb94012f9e54ec8142f9b093e7720646a95b16a9.

Solidity: event NewPendingAdmin(address oldPendingAdmin, address newPendingAdmin)

func (*ERC20Filterer) FilterNewReserveFactor

func (_ERC20 *ERC20Filterer) FilterNewReserveFactor(opts *bind.FilterOpts) (*ERC20NewReserveFactorIterator, error)

FilterNewReserveFactor is a free log retrieval operation binding the contract event 0xaaa68312e2ea9d50e16af5068410ab56e1a1fd06037b1a35664812c30f821460.

Solidity: event NewReserveFactor(uint256 oldReserveFactorMantissa, uint256 newReserveFactorMantissa)

func (*ERC20Filterer) FilterRedeem

func (_ERC20 *ERC20Filterer) FilterRedeem(opts *bind.FilterOpts) (*ERC20RedeemIterator, error)

FilterRedeem is a free log retrieval operation binding the contract event 0xe5b754fb1abb7f01b499791d0b820ae3b6af3424ac1c59768edb53f4ec31a929.

Solidity: event Redeem(address redeemer, uint256 redeemAmount, uint256 redeemTokens)

func (*ERC20Filterer) FilterRepayBorrow

func (_ERC20 *ERC20Filterer) FilterRepayBorrow(opts *bind.FilterOpts) (*ERC20RepayBorrowIterator, error)

FilterRepayBorrow is a free log retrieval operation binding the contract event 0x1a2a22cb034d26d1854bdc6666a5b91fe25efbbb5dcad3b0355478d6f5c362a1.

Solidity: event RepayBorrow(address payer, address borrower, uint256 repayAmount, uint256 accountBorrows, uint256 totalBorrows)

func (*ERC20Filterer) FilterReservesReduced

func (_ERC20 *ERC20Filterer) FilterReservesReduced(opts *bind.FilterOpts) (*ERC20ReservesReducedIterator, error)

FilterReservesReduced is a free log retrieval operation binding the contract event 0x3bad0c59cf2f06e7314077049f48a93578cd16f5ef92329f1dab1420a99c177e.

Solidity: event ReservesReduced(address admin, uint256 reduceAmount, uint256 newTotalReserves)

func (*ERC20Filterer) FilterTransfer

func (_ERC20 *ERC20Filterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*ERC20TransferIterator, error)

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

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

func (*ERC20Filterer) ParseAccrueInterest

func (_ERC20 *ERC20Filterer) ParseAccrueInterest(log types.Log) (*ERC20AccrueInterest, error)

ParseAccrueInterest is a log parse operation binding the contract event 0x875352fb3fadeb8c0be7cbbe8ff761b308fa7033470cd0287f02f3436fd76cb9.

Solidity: event AccrueInterest(uint256 interestAccumulated, uint256 borrowIndex, uint256 totalBorrows)

func (*ERC20Filterer) ParseApproval

func (_ERC20 *ERC20Filterer) ParseApproval(log types.Log) (*ERC20Approval, error)

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

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

func (*ERC20Filterer) ParseBorrow

func (_ERC20 *ERC20Filterer) ParseBorrow(log types.Log) (*ERC20Borrow, error)

ParseBorrow is a log parse operation binding the contract event 0x13ed6866d4e1ee6da46f845c46d7e54120883d75c5ea9a2dacc1c4ca8984ab80.

Solidity: event Borrow(address borrower, uint256 borrowAmount, uint256 accountBorrows, uint256 totalBorrows)

func (*ERC20Filterer) ParseFailure

func (_ERC20 *ERC20Filterer) ParseFailure(log types.Log) (*ERC20Failure, error)

ParseFailure is a log parse operation binding the contract event 0x45b96fe442630264581b197e84bbada861235052c5a1aadfff9ea4e40a969aa0.

Solidity: event Failure(uint256 error, uint256 info, uint256 detail)

func (*ERC20Filterer) ParseLiquidateBorrow

func (_ERC20 *ERC20Filterer) ParseLiquidateBorrow(log types.Log) (*ERC20LiquidateBorrow, error)

ParseLiquidateBorrow is a log parse operation binding the contract event 0x298637f684da70674f26509b10f07ec2fbc77a335ab1e7d6215a4b2484d8bb52.

Solidity: event LiquidateBorrow(address liquidator, address borrower, uint256 repayAmount, address cTokenCollateral, uint256 seizeTokens)

func (*ERC20Filterer) ParseMint

func (_ERC20 *ERC20Filterer) ParseMint(log types.Log) (*ERC20Mint, error)

ParseMint is a log parse operation binding the contract event 0x4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f.

Solidity: event Mint(address minter, uint256 mintAmount, uint256 mintTokens)

func (*ERC20Filterer) ParseNewAdmin

func (_ERC20 *ERC20Filterer) ParseNewAdmin(log types.Log) (*ERC20NewAdmin, error)

ParseNewAdmin is a log parse operation binding the contract event 0xf9ffabca9c8276e99321725bcb43fb076a6c66a54b7f21c4e8146d8519b417dc.

Solidity: event NewAdmin(address oldAdmin, address newAdmin)

func (*ERC20Filterer) ParseNewComptroller

func (_ERC20 *ERC20Filterer) ParseNewComptroller(log types.Log) (*ERC20NewComptroller, error)

ParseNewComptroller is a log parse operation binding the contract event 0x7ac369dbd14fa5ea3f473ed67cc9d598964a77501540ba6751eb0b3decf5870d.

Solidity: event NewComptroller(address oldComptroller, address newComptroller)

func (*ERC20Filterer) ParseNewMarketInterestRateModel

func (_ERC20 *ERC20Filterer) ParseNewMarketInterestRateModel(log types.Log) (*ERC20NewMarketInterestRateModel, error)

ParseNewMarketInterestRateModel is a log parse operation binding the contract event 0xedffc32e068c7c95dfd4bdfd5c4d939a084d6b11c4199eac8436ed234d72f926.

Solidity: event NewMarketInterestRateModel(address oldInterestRateModel, address newInterestRateModel)

func (*ERC20Filterer) ParseNewPendingAdmin

func (_ERC20 *ERC20Filterer) ParseNewPendingAdmin(log types.Log) (*ERC20NewPendingAdmin, error)

ParseNewPendingAdmin is a log parse operation binding the contract event 0xca4f2f25d0898edd99413412fb94012f9e54ec8142f9b093e7720646a95b16a9.

Solidity: event NewPendingAdmin(address oldPendingAdmin, address newPendingAdmin)

func (*ERC20Filterer) ParseNewReserveFactor

func (_ERC20 *ERC20Filterer) ParseNewReserveFactor(log types.Log) (*ERC20NewReserveFactor, error)

ParseNewReserveFactor is a log parse operation binding the contract event 0xaaa68312e2ea9d50e16af5068410ab56e1a1fd06037b1a35664812c30f821460.

Solidity: event NewReserveFactor(uint256 oldReserveFactorMantissa, uint256 newReserveFactorMantissa)

func (*ERC20Filterer) ParseRedeem

func (_ERC20 *ERC20Filterer) ParseRedeem(log types.Log) (*ERC20Redeem, error)

ParseRedeem is a log parse operation binding the contract event 0xe5b754fb1abb7f01b499791d0b820ae3b6af3424ac1c59768edb53f4ec31a929.

Solidity: event Redeem(address redeemer, uint256 redeemAmount, uint256 redeemTokens)

func (*ERC20Filterer) ParseRepayBorrow

func (_ERC20 *ERC20Filterer) ParseRepayBorrow(log types.Log) (*ERC20RepayBorrow, error)

ParseRepayBorrow is a log parse operation binding the contract event 0x1a2a22cb034d26d1854bdc6666a5b91fe25efbbb5dcad3b0355478d6f5c362a1.

Solidity: event RepayBorrow(address payer, address borrower, uint256 repayAmount, uint256 accountBorrows, uint256 totalBorrows)

func (*ERC20Filterer) ParseReservesReduced

func (_ERC20 *ERC20Filterer) ParseReservesReduced(log types.Log) (*ERC20ReservesReduced, error)

ParseReservesReduced is a log parse operation binding the contract event 0x3bad0c59cf2f06e7314077049f48a93578cd16f5ef92329f1dab1420a99c177e.

Solidity: event ReservesReduced(address admin, uint256 reduceAmount, uint256 newTotalReserves)

func (*ERC20Filterer) ParseTransfer

func (_ERC20 *ERC20Filterer) ParseTransfer(log types.Log) (*ERC20Transfer, error)

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

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

func (*ERC20Filterer) WatchAccrueInterest

func (_ERC20 *ERC20Filterer) WatchAccrueInterest(opts *bind.WatchOpts, sink chan<- *ERC20AccrueInterest) (event.Subscription, error)

WatchAccrueInterest is a free log subscription operation binding the contract event 0x875352fb3fadeb8c0be7cbbe8ff761b308fa7033470cd0287f02f3436fd76cb9.

Solidity: event AccrueInterest(uint256 interestAccumulated, uint256 borrowIndex, uint256 totalBorrows)

func (*ERC20Filterer) WatchApproval

func (_ERC20 *ERC20Filterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *ERC20Approval, 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 amount)

func (*ERC20Filterer) WatchBorrow

func (_ERC20 *ERC20Filterer) WatchBorrow(opts *bind.WatchOpts, sink chan<- *ERC20Borrow) (event.Subscription, error)

WatchBorrow is a free log subscription operation binding the contract event 0x13ed6866d4e1ee6da46f845c46d7e54120883d75c5ea9a2dacc1c4ca8984ab80.

Solidity: event Borrow(address borrower, uint256 borrowAmount, uint256 accountBorrows, uint256 totalBorrows)

func (*ERC20Filterer) WatchFailure

func (_ERC20 *ERC20Filterer) WatchFailure(opts *bind.WatchOpts, sink chan<- *ERC20Failure) (event.Subscription, error)

WatchFailure is a free log subscription operation binding the contract event 0x45b96fe442630264581b197e84bbada861235052c5a1aadfff9ea4e40a969aa0.

Solidity: event Failure(uint256 error, uint256 info, uint256 detail)

func (*ERC20Filterer) WatchLiquidateBorrow

func (_ERC20 *ERC20Filterer) WatchLiquidateBorrow(opts *bind.WatchOpts, sink chan<- *ERC20LiquidateBorrow) (event.Subscription, error)

WatchLiquidateBorrow is a free log subscription operation binding the contract event 0x298637f684da70674f26509b10f07ec2fbc77a335ab1e7d6215a4b2484d8bb52.

Solidity: event LiquidateBorrow(address liquidator, address borrower, uint256 repayAmount, address cTokenCollateral, uint256 seizeTokens)

func (*ERC20Filterer) WatchMint

func (_ERC20 *ERC20Filterer) WatchMint(opts *bind.WatchOpts, sink chan<- *ERC20Mint) (event.Subscription, error)

WatchMint is a free log subscription operation binding the contract event 0x4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f.

Solidity: event Mint(address minter, uint256 mintAmount, uint256 mintTokens)

func (*ERC20Filterer) WatchNewAdmin

func (_ERC20 *ERC20Filterer) WatchNewAdmin(opts *bind.WatchOpts, sink chan<- *ERC20NewAdmin) (event.Subscription, error)

WatchNewAdmin is a free log subscription operation binding the contract event 0xf9ffabca9c8276e99321725bcb43fb076a6c66a54b7f21c4e8146d8519b417dc.

Solidity: event NewAdmin(address oldAdmin, address newAdmin)

func (*ERC20Filterer) WatchNewComptroller

func (_ERC20 *ERC20Filterer) WatchNewComptroller(opts *bind.WatchOpts, sink chan<- *ERC20NewComptroller) (event.Subscription, error)

WatchNewComptroller is a free log subscription operation binding the contract event 0x7ac369dbd14fa5ea3f473ed67cc9d598964a77501540ba6751eb0b3decf5870d.

Solidity: event NewComptroller(address oldComptroller, address newComptroller)

func (*ERC20Filterer) WatchNewMarketInterestRateModel

func (_ERC20 *ERC20Filterer) WatchNewMarketInterestRateModel(opts *bind.WatchOpts, sink chan<- *ERC20NewMarketInterestRateModel) (event.Subscription, error)

WatchNewMarketInterestRateModel is a free log subscription operation binding the contract event 0xedffc32e068c7c95dfd4bdfd5c4d939a084d6b11c4199eac8436ed234d72f926.

Solidity: event NewMarketInterestRateModel(address oldInterestRateModel, address newInterestRateModel)

func (*ERC20Filterer) WatchNewPendingAdmin

func (_ERC20 *ERC20Filterer) WatchNewPendingAdmin(opts *bind.WatchOpts, sink chan<- *ERC20NewPendingAdmin) (event.Subscription, error)

WatchNewPendingAdmin is a free log subscription operation binding the contract event 0xca4f2f25d0898edd99413412fb94012f9e54ec8142f9b093e7720646a95b16a9.

Solidity: event NewPendingAdmin(address oldPendingAdmin, address newPendingAdmin)

func (*ERC20Filterer) WatchNewReserveFactor

func (_ERC20 *ERC20Filterer) WatchNewReserveFactor(opts *bind.WatchOpts, sink chan<- *ERC20NewReserveFactor) (event.Subscription, error)

WatchNewReserveFactor is a free log subscription operation binding the contract event 0xaaa68312e2ea9d50e16af5068410ab56e1a1fd06037b1a35664812c30f821460.

Solidity: event NewReserveFactor(uint256 oldReserveFactorMantissa, uint256 newReserveFactorMantissa)

func (*ERC20Filterer) WatchRedeem

func (_ERC20 *ERC20Filterer) WatchRedeem(opts *bind.WatchOpts, sink chan<- *ERC20Redeem) (event.Subscription, error)

WatchRedeem is a free log subscription operation binding the contract event 0xe5b754fb1abb7f01b499791d0b820ae3b6af3424ac1c59768edb53f4ec31a929.

Solidity: event Redeem(address redeemer, uint256 redeemAmount, uint256 redeemTokens)

func (*ERC20Filterer) WatchRepayBorrow

func (_ERC20 *ERC20Filterer) WatchRepayBorrow(opts *bind.WatchOpts, sink chan<- *ERC20RepayBorrow) (event.Subscription, error)

WatchRepayBorrow is a free log subscription operation binding the contract event 0x1a2a22cb034d26d1854bdc6666a5b91fe25efbbb5dcad3b0355478d6f5c362a1.

Solidity: event RepayBorrow(address payer, address borrower, uint256 repayAmount, uint256 accountBorrows, uint256 totalBorrows)

func (*ERC20Filterer) WatchReservesReduced

func (_ERC20 *ERC20Filterer) WatchReservesReduced(opts *bind.WatchOpts, sink chan<- *ERC20ReservesReduced) (event.Subscription, error)

WatchReservesReduced is a free log subscription operation binding the contract event 0x3bad0c59cf2f06e7314077049f48a93578cd16f5ef92329f1dab1420a99c177e.

Solidity: event ReservesReduced(address admin, uint256 reduceAmount, uint256 newTotalReserves)

func (*ERC20Filterer) WatchTransfer

func (_ERC20 *ERC20Filterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *ERC20Transfer, 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 amount)

type ERC20LiquidateBorrow

type ERC20LiquidateBorrow struct {
	Liquidator       common.Address
	Borrower         common.Address
	RepayAmount      *big.Int
	CTokenCollateral common.Address
	SeizeTokens      *big.Int
	Raw              types.Log // Blockchain specific contextual infos
}

ERC20LiquidateBorrow represents a LiquidateBorrow event raised by the ERC20 contract.

type ERC20LiquidateBorrowIterator

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

ERC20LiquidateBorrowIterator is returned from FilterLiquidateBorrow and is used to iterate over the raw logs and unpacked data for LiquidateBorrow events raised by the ERC20 contract.

func (*ERC20LiquidateBorrowIterator) Close

func (it *ERC20LiquidateBorrowIterator) Close() error

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

func (*ERC20LiquidateBorrowIterator) Error

func (it *ERC20LiquidateBorrowIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ERC20LiquidateBorrowIterator) Next

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 ERC20Mint

type ERC20Mint struct {
	Minter     common.Address
	MintAmount *big.Int
	MintTokens *big.Int
	Raw        types.Log // Blockchain specific contextual infos
}

ERC20Mint represents a Mint event raised by the ERC20 contract.

type ERC20MintIterator

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

ERC20MintIterator is returned from FilterMint and is used to iterate over the raw logs and unpacked data for Mint events raised by the ERC20 contract.

func (*ERC20MintIterator) Close

func (it *ERC20MintIterator) Close() error

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

func (*ERC20MintIterator) Error

func (it *ERC20MintIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ERC20MintIterator) Next

func (it *ERC20MintIterator) 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 ERC20NewAdmin

type ERC20NewAdmin struct {
	OldAdmin common.Address
	NewAdmin common.Address
	Raw      types.Log // Blockchain specific contextual infos
}

ERC20NewAdmin represents a NewAdmin event raised by the ERC20 contract.

type ERC20NewAdminIterator

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

ERC20NewAdminIterator is returned from FilterNewAdmin and is used to iterate over the raw logs and unpacked data for NewAdmin events raised by the ERC20 contract.

func (*ERC20NewAdminIterator) Close

func (it *ERC20NewAdminIterator) Close() error

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

func (*ERC20NewAdminIterator) Error

func (it *ERC20NewAdminIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ERC20NewAdminIterator) Next

func (it *ERC20NewAdminIterator) 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 ERC20NewComptroller

type ERC20NewComptroller struct {
	OldComptroller common.Address
	NewComptroller common.Address
	Raw            types.Log // Blockchain specific contextual infos
}

ERC20NewComptroller represents a NewComptroller event raised by the ERC20 contract.

type ERC20NewComptrollerIterator

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

ERC20NewComptrollerIterator is returned from FilterNewComptroller and is used to iterate over the raw logs and unpacked data for NewComptroller events raised by the ERC20 contract.

func (*ERC20NewComptrollerIterator) Close

func (it *ERC20NewComptrollerIterator) Close() error

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

func (*ERC20NewComptrollerIterator) Error

func (it *ERC20NewComptrollerIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ERC20NewComptrollerIterator) Next

func (it *ERC20NewComptrollerIterator) 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 ERC20NewMarketInterestRateModel

type ERC20NewMarketInterestRateModel struct {
	OldInterestRateModel common.Address
	NewInterestRateModel common.Address
	Raw                  types.Log // Blockchain specific contextual infos
}

ERC20NewMarketInterestRateModel represents a NewMarketInterestRateModel event raised by the ERC20 contract.

type ERC20NewMarketInterestRateModelIterator

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

ERC20NewMarketInterestRateModelIterator is returned from FilterNewMarketInterestRateModel and is used to iterate over the raw logs and unpacked data for NewMarketInterestRateModel events raised by the ERC20 contract.

func (*ERC20NewMarketInterestRateModelIterator) Close

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

func (*ERC20NewMarketInterestRateModelIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ERC20NewMarketInterestRateModelIterator) Next

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 ERC20NewPendingAdmin

type ERC20NewPendingAdmin struct {
	OldPendingAdmin common.Address
	NewPendingAdmin common.Address
	Raw             types.Log // Blockchain specific contextual infos
}

ERC20NewPendingAdmin represents a NewPendingAdmin event raised by the ERC20 contract.

type ERC20NewPendingAdminIterator

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

ERC20NewPendingAdminIterator is returned from FilterNewPendingAdmin and is used to iterate over the raw logs and unpacked data for NewPendingAdmin events raised by the ERC20 contract.

func (*ERC20NewPendingAdminIterator) Close

func (it *ERC20NewPendingAdminIterator) Close() error

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

func (*ERC20NewPendingAdminIterator) Error

func (it *ERC20NewPendingAdminIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ERC20NewPendingAdminIterator) Next

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 ERC20NewReserveFactor

type ERC20NewReserveFactor struct {
	OldReserveFactorMantissa *big.Int
	NewReserveFactorMantissa *big.Int
	Raw                      types.Log // Blockchain specific contextual infos
}

ERC20NewReserveFactor represents a NewReserveFactor event raised by the ERC20 contract.

type ERC20NewReserveFactorIterator

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

ERC20NewReserveFactorIterator is returned from FilterNewReserveFactor and is used to iterate over the raw logs and unpacked data for NewReserveFactor events raised by the ERC20 contract.

func (*ERC20NewReserveFactorIterator) Close

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

func (*ERC20NewReserveFactorIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ERC20NewReserveFactorIterator) Next

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 ERC20Raw

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

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

func (*ERC20Raw) Call

func (_ERC20 *ERC20Raw) 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 (*ERC20Raw) Transact

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

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

func (*ERC20Raw) Transfer

func (_ERC20 *ERC20Raw) 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 ERC20Redeem

type ERC20Redeem struct {
	Redeemer     common.Address
	RedeemAmount *big.Int
	RedeemTokens *big.Int
	Raw          types.Log // Blockchain specific contextual infos
}

ERC20Redeem represents a Redeem event raised by the ERC20 contract.

type ERC20RedeemIterator

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

ERC20RedeemIterator is returned from FilterRedeem and is used to iterate over the raw logs and unpacked data for Redeem events raised by the ERC20 contract.

func (*ERC20RedeemIterator) Close

func (it *ERC20RedeemIterator) Close() error

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

func (*ERC20RedeemIterator) Error

func (it *ERC20RedeemIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ERC20RedeemIterator) Next

func (it *ERC20RedeemIterator) 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 ERC20RepayBorrow

type ERC20RepayBorrow struct {
	Payer          common.Address
	Borrower       common.Address
	RepayAmount    *big.Int
	AccountBorrows *big.Int
	TotalBorrows   *big.Int
	Raw            types.Log // Blockchain specific contextual infos
}

ERC20RepayBorrow represents a RepayBorrow event raised by the ERC20 contract.

type ERC20RepayBorrowIterator

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

ERC20RepayBorrowIterator is returned from FilterRepayBorrow and is used to iterate over the raw logs and unpacked data for RepayBorrow events raised by the ERC20 contract.

func (*ERC20RepayBorrowIterator) Close

func (it *ERC20RepayBorrowIterator) Close() error

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

func (*ERC20RepayBorrowIterator) Error

func (it *ERC20RepayBorrowIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ERC20RepayBorrowIterator) Next

func (it *ERC20RepayBorrowIterator) 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 ERC20ReservesReduced

type ERC20ReservesReduced struct {
	Admin            common.Address
	ReduceAmount     *big.Int
	NewTotalReserves *big.Int
	Raw              types.Log // Blockchain specific contextual infos
}

ERC20ReservesReduced represents a ReservesReduced event raised by the ERC20 contract.

type ERC20ReservesReducedIterator

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

ERC20ReservesReducedIterator is returned from FilterReservesReduced and is used to iterate over the raw logs and unpacked data for ReservesReduced events raised by the ERC20 contract.

func (*ERC20ReservesReducedIterator) Close

func (it *ERC20ReservesReducedIterator) Close() error

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

func (*ERC20ReservesReducedIterator) Error

func (it *ERC20ReservesReducedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ERC20ReservesReducedIterator) Next

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 ERC20Session

type ERC20Session struct {
	Contract     *ERC20            // 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
}

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

func (*ERC20Session) AcceptAdmin

func (_ERC20 *ERC20Session) AcceptAdmin() (*types.Transaction, error)

AcceptAdmin is a paid mutator transaction binding the contract method 0xe9c714f2.

Solidity: function _acceptAdmin() returns(uint256)

func (*ERC20Session) AccrualBlockNumber

func (_ERC20 *ERC20Session) AccrualBlockNumber() (*big.Int, error)

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

Solidity: function accrualBlockNumber() view returns(uint256)

func (*ERC20Session) AccrueInterest

func (_ERC20 *ERC20Session) AccrueInterest() (*types.Transaction, error)

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

Solidity: function accrueInterest() returns(uint256)

func (*ERC20Session) Admin

func (_ERC20 *ERC20Session) Admin() (common.Address, error)

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

Solidity: function admin() view returns(address)

func (*ERC20Session) Allowance

func (_ERC20 *ERC20Session) 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 (*ERC20Session) Approve

func (_ERC20 *ERC20Session) 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 (*ERC20Session) BalanceOf

func (_ERC20 *ERC20Session) 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 (*ERC20Session) BalanceOfUnderlying

func (_ERC20 *ERC20Session) 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 (*ERC20Session) Borrow

func (_ERC20 *ERC20Session) Borrow(borrowAmount *big.Int) (*types.Transaction, error)

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

Solidity: function borrow(uint256 borrowAmount) returns(uint256)

func (*ERC20Session) BorrowBalanceCurrent

func (_ERC20 *ERC20Session) 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 (*ERC20Session) BorrowBalanceStored

func (_ERC20 *ERC20Session) 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 (*ERC20Session) BorrowIndex

func (_ERC20 *ERC20Session) BorrowIndex() (*big.Int, error)

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

Solidity: function borrowIndex() view returns(uint256)

func (*ERC20Session) BorrowRatePerBlock

func (_ERC20 *ERC20Session) BorrowRatePerBlock() (*big.Int, error)

BorrowRatePerBlock is a free data retrieval call binding the contract method 0xf8f9da28.

Solidity: function borrowRatePerBlock() view returns(uint256)

func (*ERC20Session) Comptroller

func (_ERC20 *ERC20Session) Comptroller() (common.Address, error)

Comptroller is a free data retrieval call binding the contract method 0x5fe3b567.

Solidity: function comptroller() view returns(address)

func (*ERC20Session) Decimals

func (_ERC20 *ERC20Session) Decimals() (*big.Int, error)

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

Solidity: function decimals() view returns(uint256)

func (*ERC20Session) ExchangeRateCurrent

func (_ERC20 *ERC20Session) ExchangeRateCurrent() (*types.Transaction, error)

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

Solidity: function exchangeRateCurrent() returns(uint256)

func (*ERC20Session) ExchangeRateStored

func (_ERC20 *ERC20Session) ExchangeRateStored() (*big.Int, error)

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

Solidity: function exchangeRateStored() view returns(uint256)

func (*ERC20Session) Fallback

func (_ERC20 *ERC20Session) Fallback(calldata []byte) (*types.Transaction, error)

Fallback is a paid mutator transaction binding the contract fallback function.

Solidity: fallback() payable returns()

func (*ERC20Session) GetAccountSnapshot

func (_ERC20 *ERC20Session) GetAccountSnapshot(account common.Address) (*big.Int, *big.Int, *big.Int, *big.Int, error)

GetAccountSnapshot is a free data retrieval call binding the contract method 0xc37f68e2.

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

func (*ERC20Session) GetCash

func (_ERC20 *ERC20Session) GetCash() (*big.Int, error)

GetCash is a free data retrieval call binding the contract method 0x3b1d21a2.

Solidity: function getCash() view returns(uint256)

func (*ERC20Session) InitialExchangeRateMantissa

func (_ERC20 *ERC20Session) InitialExchangeRateMantissa() (*big.Int, error)

InitialExchangeRateMantissa is a free data retrieval call binding the contract method 0x675d972c.

Solidity: function initialExchangeRateMantissa() view returns(uint256)

func (*ERC20Session) InterestRateModel

func (_ERC20 *ERC20Session) InterestRateModel() (common.Address, error)

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

Solidity: function interestRateModel() view returns(address)

func (*ERC20Session) IsCToken

func (_ERC20 *ERC20Session) IsCToken() (bool, error)

IsCToken is a free data retrieval call binding the contract method 0xfe9c44ae.

Solidity: function isCToken() view returns(bool)

func (*ERC20Session) LiquidateBorrow

func (_ERC20 *ERC20Session) LiquidateBorrow(borrower common.Address, cTokenCollateral common.Address) (*types.Transaction, error)

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

Solidity: function liquidateBorrow(address borrower, address cTokenCollateral) payable returns()

func (*ERC20Session) Mint

func (_ERC20 *ERC20Session) Mint() (*types.Transaction, error)

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

Solidity: function mint() payable returns()

func (*ERC20Session) Name

func (_ERC20 *ERC20Session) Name() (string, error)

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

Solidity: function name() view returns(string)

func (*ERC20Session) PendingAdmin

func (_ERC20 *ERC20Session) PendingAdmin() (common.Address, error)

PendingAdmin is a free data retrieval call binding the contract method 0x26782247.

Solidity: function pendingAdmin() view returns(address)

func (*ERC20Session) Redeem

func (_ERC20 *ERC20Session) Redeem(redeemTokens *big.Int) (*types.Transaction, error)

Redeem is a paid mutator transaction binding the contract method 0xdb006a75.

Solidity: function redeem(uint256 redeemTokens) returns(uint256)

func (*ERC20Session) RedeemUnderlying

func (_ERC20 *ERC20Session) RedeemUnderlying(redeemAmount *big.Int) (*types.Transaction, error)

RedeemUnderlying is a paid mutator transaction binding the contract method 0x852a12e3.

Solidity: function redeemUnderlying(uint256 redeemAmount) returns(uint256)

func (*ERC20Session) ReduceReserves

func (_ERC20 *ERC20Session) ReduceReserves(reduceAmount *big.Int) (*types.Transaction, error)

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

Solidity: function _reduceReserves(uint256 reduceAmount) returns(uint256)

func (*ERC20Session) RepayBorrow

func (_ERC20 *ERC20Session) RepayBorrow() (*types.Transaction, error)

RepayBorrow is a paid mutator transaction binding the contract method 0x4e4d9fea.

Solidity: function repayBorrow() payable returns()

func (*ERC20Session) RepayBorrowBehalf

func (_ERC20 *ERC20Session) RepayBorrowBehalf(borrower common.Address) (*types.Transaction, error)

RepayBorrowBehalf is a paid mutator transaction binding the contract method 0xe5974619.

Solidity: function repayBorrowBehalf(address borrower) payable returns()

func (*ERC20Session) ReserveFactorMantissa

func (_ERC20 *ERC20Session) ReserveFactorMantissa() (*big.Int, error)

ReserveFactorMantissa is a free data retrieval call binding the contract method 0x173b9904.

Solidity: function reserveFactorMantissa() view returns(uint256)

func (*ERC20Session) Seize

func (_ERC20 *ERC20Session) 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(uint256)

func (*ERC20Session) SetComptroller

func (_ERC20 *ERC20Session) SetComptroller(newComptroller common.Address) (*types.Transaction, error)

SetComptroller is a paid mutator transaction binding the contract method 0x4576b5db.

Solidity: function _setComptroller(address newComptroller) returns(uint256)

func (*ERC20Session) SetInterestRateModel

func (_ERC20 *ERC20Session) SetInterestRateModel(newInterestRateModel common.Address) (*types.Transaction, error)

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

Solidity: function _setInterestRateModel(address newInterestRateModel) returns(uint256)

func (*ERC20Session) SetPendingAdmin

func (_ERC20 *ERC20Session) SetPendingAdmin(newPendingAdmin common.Address) (*types.Transaction, error)

SetPendingAdmin is a paid mutator transaction binding the contract method 0xb71d1a0c.

Solidity: function _setPendingAdmin(address newPendingAdmin) returns(uint256)

func (*ERC20Session) SetReserveFactor

func (_ERC20 *ERC20Session) SetReserveFactor(newReserveFactorMantissa *big.Int) (*types.Transaction, error)

SetReserveFactor is a paid mutator transaction binding the contract method 0xfca7820b.

Solidity: function _setReserveFactor(uint256 newReserveFactorMantissa) returns(uint256)

func (*ERC20Session) SupplyRatePerBlock

func (_ERC20 *ERC20Session) SupplyRatePerBlock() (*big.Int, error)

SupplyRatePerBlock is a free data retrieval call binding the contract method 0xae9d70b0.

Solidity: function supplyRatePerBlock() view returns(uint256)

func (*ERC20Session) Symbol

func (_ERC20 *ERC20Session) Symbol() (string, error)

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

Solidity: function symbol() view returns(string)

func (*ERC20Session) TotalBorrows

func (_ERC20 *ERC20Session) TotalBorrows() (*big.Int, error)

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

Solidity: function totalBorrows() view returns(uint256)

func (*ERC20Session) TotalBorrowsCurrent

func (_ERC20 *ERC20Session) TotalBorrowsCurrent() (*types.Transaction, error)

TotalBorrowsCurrent is a paid mutator transaction binding the contract method 0x73acee98.

Solidity: function totalBorrowsCurrent() returns(uint256)

func (*ERC20Session) TotalReserves

func (_ERC20 *ERC20Session) TotalReserves() (*big.Int, error)

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

Solidity: function totalReserves() view returns(uint256)

func (*ERC20Session) TotalSupply

func (_ERC20 *ERC20Session) TotalSupply() (*big.Int, error)

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

Solidity: function totalSupply() view returns(uint256)

func (*ERC20Session) Transfer

func (_ERC20 *ERC20Session) 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 (*ERC20Session) TransferFrom

func (_ERC20 *ERC20Session) 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)

type ERC20Transactor

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

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

func NewERC20Transactor

func NewERC20Transactor(address common.Address, transactor bind.ContractTransactor) (*ERC20Transactor, error)

NewERC20Transactor creates a new write-only instance of ERC20, bound to a specific deployed contract.

func (*ERC20Transactor) AcceptAdmin

func (_ERC20 *ERC20Transactor) AcceptAdmin(opts *bind.TransactOpts) (*types.Transaction, error)

AcceptAdmin is a paid mutator transaction binding the contract method 0xe9c714f2.

Solidity: function _acceptAdmin() returns(uint256)

func (*ERC20Transactor) AccrueInterest

func (_ERC20 *ERC20Transactor) AccrueInterest(opts *bind.TransactOpts) (*types.Transaction, error)

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

Solidity: function accrueInterest() returns(uint256)

func (*ERC20Transactor) Approve

func (_ERC20 *ERC20Transactor) 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 (*ERC20Transactor) BalanceOfUnderlying

func (_ERC20 *ERC20Transactor) 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 (*ERC20Transactor) Borrow

func (_ERC20 *ERC20Transactor) Borrow(opts *bind.TransactOpts, borrowAmount *big.Int) (*types.Transaction, error)

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

Solidity: function borrow(uint256 borrowAmount) returns(uint256)

func (*ERC20Transactor) BorrowBalanceCurrent

func (_ERC20 *ERC20Transactor) 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 (*ERC20Transactor) ExchangeRateCurrent

func (_ERC20 *ERC20Transactor) ExchangeRateCurrent(opts *bind.TransactOpts) (*types.Transaction, error)

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

Solidity: function exchangeRateCurrent() returns(uint256)

func (*ERC20Transactor) Fallback

func (_ERC20 *ERC20Transactor) Fallback(opts *bind.TransactOpts, calldata []byte) (*types.Transaction, error)

Fallback is a paid mutator transaction binding the contract fallback function.

Solidity: fallback() payable returns()

func (*ERC20Transactor) LiquidateBorrow

func (_ERC20 *ERC20Transactor) LiquidateBorrow(opts *bind.TransactOpts, borrower common.Address, cTokenCollateral common.Address) (*types.Transaction, error)

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

Solidity: function liquidateBorrow(address borrower, address cTokenCollateral) payable returns()

func (*ERC20Transactor) Mint

func (_ERC20 *ERC20Transactor) Mint(opts *bind.TransactOpts) (*types.Transaction, error)

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

Solidity: function mint() payable returns()

func (*ERC20Transactor) Redeem

func (_ERC20 *ERC20Transactor) Redeem(opts *bind.TransactOpts, redeemTokens *big.Int) (*types.Transaction, error)

Redeem is a paid mutator transaction binding the contract method 0xdb006a75.

Solidity: function redeem(uint256 redeemTokens) returns(uint256)

func (*ERC20Transactor) RedeemUnderlying

func (_ERC20 *ERC20Transactor) RedeemUnderlying(opts *bind.TransactOpts, redeemAmount *big.Int) (*types.Transaction, error)

RedeemUnderlying is a paid mutator transaction binding the contract method 0x852a12e3.

Solidity: function redeemUnderlying(uint256 redeemAmount) returns(uint256)

func (*ERC20Transactor) ReduceReserves

func (_ERC20 *ERC20Transactor) 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(uint256)

func (*ERC20Transactor) RepayBorrow

func (_ERC20 *ERC20Transactor) RepayBorrow(opts *bind.TransactOpts) (*types.Transaction, error)

RepayBorrow is a paid mutator transaction binding the contract method 0x4e4d9fea.

Solidity: function repayBorrow() payable returns()

func (*ERC20Transactor) RepayBorrowBehalf

func (_ERC20 *ERC20Transactor) RepayBorrowBehalf(opts *bind.TransactOpts, borrower common.Address) (*types.Transaction, error)

RepayBorrowBehalf is a paid mutator transaction binding the contract method 0xe5974619.

Solidity: function repayBorrowBehalf(address borrower) payable returns()

func (*ERC20Transactor) Seize

func (_ERC20 *ERC20Transactor) 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(uint256)

func (*ERC20Transactor) SetComptroller

func (_ERC20 *ERC20Transactor) SetComptroller(opts *bind.TransactOpts, newComptroller common.Address) (*types.Transaction, error)

SetComptroller is a paid mutator transaction binding the contract method 0x4576b5db.

Solidity: function _setComptroller(address newComptroller) returns(uint256)

func (*ERC20Transactor) SetInterestRateModel

func (_ERC20 *ERC20Transactor) 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(uint256)

func (*ERC20Transactor) SetPendingAdmin

func (_ERC20 *ERC20Transactor) SetPendingAdmin(opts *bind.TransactOpts, newPendingAdmin common.Address) (*types.Transaction, error)

SetPendingAdmin is a paid mutator transaction binding the contract method 0xb71d1a0c.

Solidity: function _setPendingAdmin(address newPendingAdmin) returns(uint256)

func (*ERC20Transactor) SetReserveFactor

func (_ERC20 *ERC20Transactor) SetReserveFactor(opts *bind.TransactOpts, newReserveFactorMantissa *big.Int) (*types.Transaction, error)

SetReserveFactor is a paid mutator transaction binding the contract method 0xfca7820b.

Solidity: function _setReserveFactor(uint256 newReserveFactorMantissa) returns(uint256)

func (*ERC20Transactor) TotalBorrowsCurrent

func (_ERC20 *ERC20Transactor) TotalBorrowsCurrent(opts *bind.TransactOpts) (*types.Transaction, error)

TotalBorrowsCurrent is a paid mutator transaction binding the contract method 0x73acee98.

Solidity: function totalBorrowsCurrent() returns(uint256)

func (*ERC20Transactor) Transfer

func (_ERC20 *ERC20Transactor) 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 (*ERC20Transactor) TransferFrom

func (_ERC20 *ERC20Transactor) 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)

type ERC20TransactorRaw

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

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

func (*ERC20TransactorRaw) Transact

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

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

func (*ERC20TransactorRaw) Transfer

func (_ERC20 *ERC20TransactorRaw) 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 ERC20TransactorSession

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

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

func (*ERC20TransactorSession) AcceptAdmin

func (_ERC20 *ERC20TransactorSession) AcceptAdmin() (*types.Transaction, error)

AcceptAdmin is a paid mutator transaction binding the contract method 0xe9c714f2.

Solidity: function _acceptAdmin() returns(uint256)

func (*ERC20TransactorSession) AccrueInterest

func (_ERC20 *ERC20TransactorSession) AccrueInterest() (*types.Transaction, error)

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

Solidity: function accrueInterest() returns(uint256)

func (*ERC20TransactorSession) Approve

func (_ERC20 *ERC20TransactorSession) 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 (*ERC20TransactorSession) BalanceOfUnderlying

func (_ERC20 *ERC20TransactorSession) 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 (*ERC20TransactorSession) Borrow

func (_ERC20 *ERC20TransactorSession) Borrow(borrowAmount *big.Int) (*types.Transaction, error)

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

Solidity: function borrow(uint256 borrowAmount) returns(uint256)

func (*ERC20TransactorSession) BorrowBalanceCurrent

func (_ERC20 *ERC20TransactorSession) 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 (*ERC20TransactorSession) ExchangeRateCurrent

func (_ERC20 *ERC20TransactorSession) ExchangeRateCurrent() (*types.Transaction, error)

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

Solidity: function exchangeRateCurrent() returns(uint256)

func (*ERC20TransactorSession) Fallback

func (_ERC20 *ERC20TransactorSession) Fallback(calldata []byte) (*types.Transaction, error)

Fallback is a paid mutator transaction binding the contract fallback function.

Solidity: fallback() payable returns()

func (*ERC20TransactorSession) LiquidateBorrow

func (_ERC20 *ERC20TransactorSession) LiquidateBorrow(borrower common.Address, cTokenCollateral common.Address) (*types.Transaction, error)

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

Solidity: function liquidateBorrow(address borrower, address cTokenCollateral) payable returns()

func (*ERC20TransactorSession) Mint

func (_ERC20 *ERC20TransactorSession) Mint() (*types.Transaction, error)

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

Solidity: function mint() payable returns()

func (*ERC20TransactorSession) Redeem

func (_ERC20 *ERC20TransactorSession) Redeem(redeemTokens *big.Int) (*types.Transaction, error)

Redeem is a paid mutator transaction binding the contract method 0xdb006a75.

Solidity: function redeem(uint256 redeemTokens) returns(uint256)

func (*ERC20TransactorSession) RedeemUnderlying

func (_ERC20 *ERC20TransactorSession) RedeemUnderlying(redeemAmount *big.Int) (*types.Transaction, error)

RedeemUnderlying is a paid mutator transaction binding the contract method 0x852a12e3.

Solidity: function redeemUnderlying(uint256 redeemAmount) returns(uint256)

func (*ERC20TransactorSession) ReduceReserves

func (_ERC20 *ERC20TransactorSession) ReduceReserves(reduceAmount *big.Int) (*types.Transaction, error)

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

Solidity: function _reduceReserves(uint256 reduceAmount) returns(uint256)

func (*ERC20TransactorSession) RepayBorrow

func (_ERC20 *ERC20TransactorSession) RepayBorrow() (*types.Transaction, error)

RepayBorrow is a paid mutator transaction binding the contract method 0x4e4d9fea.

Solidity: function repayBorrow() payable returns()

func (*ERC20TransactorSession) RepayBorrowBehalf

func (_ERC20 *ERC20TransactorSession) RepayBorrowBehalf(borrower common.Address) (*types.Transaction, error)

RepayBorrowBehalf is a paid mutator transaction binding the contract method 0xe5974619.

Solidity: function repayBorrowBehalf(address borrower) payable returns()

func (*ERC20TransactorSession) Seize

func (_ERC20 *ERC20TransactorSession) 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(uint256)

func (*ERC20TransactorSession) SetComptroller

func (_ERC20 *ERC20TransactorSession) SetComptroller(newComptroller common.Address) (*types.Transaction, error)

SetComptroller is a paid mutator transaction binding the contract method 0x4576b5db.

Solidity: function _setComptroller(address newComptroller) returns(uint256)

func (*ERC20TransactorSession) SetInterestRateModel

func (_ERC20 *ERC20TransactorSession) SetInterestRateModel(newInterestRateModel common.Address) (*types.Transaction, error)

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

Solidity: function _setInterestRateModel(address newInterestRateModel) returns(uint256)

func (*ERC20TransactorSession) SetPendingAdmin

func (_ERC20 *ERC20TransactorSession) SetPendingAdmin(newPendingAdmin common.Address) (*types.Transaction, error)

SetPendingAdmin is a paid mutator transaction binding the contract method 0xb71d1a0c.

Solidity: function _setPendingAdmin(address newPendingAdmin) returns(uint256)

func (*ERC20TransactorSession) SetReserveFactor

func (_ERC20 *ERC20TransactorSession) SetReserveFactor(newReserveFactorMantissa *big.Int) (*types.Transaction, error)

SetReserveFactor is a paid mutator transaction binding the contract method 0xfca7820b.

Solidity: function _setReserveFactor(uint256 newReserveFactorMantissa) returns(uint256)

func (*ERC20TransactorSession) TotalBorrowsCurrent

func (_ERC20 *ERC20TransactorSession) TotalBorrowsCurrent() (*types.Transaction, error)

TotalBorrowsCurrent is a paid mutator transaction binding the contract method 0x73acee98.

Solidity: function totalBorrowsCurrent() returns(uint256)

func (*ERC20TransactorSession) Transfer

func (_ERC20 *ERC20TransactorSession) 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 (*ERC20TransactorSession) TransferFrom

func (_ERC20 *ERC20TransactorSession) 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)

type ERC20Transfer

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

ERC20Transfer represents a Transfer event raised by the ERC20 contract.

type ERC20TransferIterator

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

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

func (*ERC20TransferIterator) Close

func (it *ERC20TransferIterator) Close() error

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

func (*ERC20TransferIterator) Error

func (it *ERC20TransferIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ERC20TransferIterator) Next

func (it *ERC20TransferIterator) 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