cToken

package
v0.0.0-...-829fea1 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2022 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

View Source
const CTokenABI = "" /* 23947-byte string literal not displayed */

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

Variables

This section is empty.

Functions

This section is empty.

Types

type CToken

type CToken struct {
	CTokenCaller     // Read-only binding to the contract
	CTokenTransactor // Write-only binding to the contract
	CTokenFilterer   // Log filterer for contract events
}

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

func NewCToken

func NewCToken(address common.Address, backend bind.ContractBackend) (*CToken, error)

NewCToken creates a new instance of CToken, bound to a specific deployed contract.

type CTokenAccrueInterest

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

CTokenAccrueInterest represents a AccrueInterest event raised by the CToken contract.

type CTokenAccrueInterestIterator

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

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

func (*CTokenAccrueInterestIterator) Close

func (it *CTokenAccrueInterestIterator) Close() error

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

func (*CTokenAccrueInterestIterator) Error

func (it *CTokenAccrueInterestIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*CTokenAccrueInterestIterator) 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 CTokenApproval

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

CTokenApproval represents a Approval event raised by the CToken contract.

type CTokenApprovalIterator

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

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

func (*CTokenApprovalIterator) Close

func (it *CTokenApprovalIterator) Close() error

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

func (*CTokenApprovalIterator) Error

func (it *CTokenApprovalIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*CTokenApprovalIterator) Next

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

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

CTokenBorrow represents a Borrow event raised by the CToken contract.

type CTokenBorrowIterator

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

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

func (*CTokenBorrowIterator) Close

func (it *CTokenBorrowIterator) Close() error

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

func (*CTokenBorrowIterator) Error

func (it *CTokenBorrowIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*CTokenBorrowIterator) Next

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

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

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

func NewCTokenCaller

func NewCTokenCaller(address common.Address, caller bind.ContractCaller) (*CTokenCaller, error)

NewCTokenCaller creates a new read-only instance of CToken, bound to a specific deployed contract.

func (*CTokenCaller) AccrualBlockNumber

func (_CToken *CTokenCaller) 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 (*CTokenCaller) Admin

func (_CToken *CTokenCaller) 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 (*CTokenCaller) Allowance

func (_CToken *CTokenCaller) 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 (*CTokenCaller) BalanceOf

func (_CToken *CTokenCaller) 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 (*CTokenCaller) BorrowBalanceStored

func (_CToken *CTokenCaller) 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 (*CTokenCaller) BorrowIndex

func (_CToken *CTokenCaller) 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 (*CTokenCaller) BorrowRatePerBlock

func (_CToken *CTokenCaller) 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 (*CTokenCaller) Comptroller

func (_CToken *CTokenCaller) 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 (*CTokenCaller) Decimals

func (_CToken *CTokenCaller) Decimals(opts *bind.CallOpts) (uint8, error)

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

Solidity: function decimals() view returns(uint8)

func (*CTokenCaller) DelegateToViewImplementation

func (_CToken *CTokenCaller) DelegateToViewImplementation(opts *bind.CallOpts, data []byte) ([]byte, error)

DelegateToViewImplementation is a free data retrieval call binding the contract method 0x4487152f.

Solidity: function delegateToViewImplementation(bytes data) view returns(bytes)

func (*CTokenCaller) ExchangeRateStored

func (_CToken *CTokenCaller) 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 (*CTokenCaller) GetAccountSnapshot

func (_CToken *CTokenCaller) 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 (*CTokenCaller) GetCash

func (_CToken *CTokenCaller) 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 (*CTokenCaller) Implementation

func (_CToken *CTokenCaller) Implementation(opts *bind.CallOpts) (common.Address, error)

Implementation is a free data retrieval call binding the contract method 0x5c60da1b.

Solidity: function implementation() view returns(address)

func (*CTokenCaller) InterestRateModel

func (_CToken *CTokenCaller) 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 (*CTokenCaller) IsCToken

func (_CToken *CTokenCaller) 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 (*CTokenCaller) Name

func (_CToken *CTokenCaller) 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 (*CTokenCaller) PendingAdmin

func (_CToken *CTokenCaller) 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 (*CTokenCaller) ReserveFactorMantissa

func (_CToken *CTokenCaller) 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 (*CTokenCaller) SupplyRatePerBlock

func (_CToken *CTokenCaller) 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 (*CTokenCaller) Symbol

func (_CToken *CTokenCaller) 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 (*CTokenCaller) TotalBorrows

func (_CToken *CTokenCaller) 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 (*CTokenCaller) TotalReserves

func (_CToken *CTokenCaller) 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 (*CTokenCaller) TotalSupply

func (_CToken *CTokenCaller) TotalSupply(opts *bind.CallOpts) (*big.Int, error)

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

Solidity: function totalSupply() view returns(uint256)

func (*CTokenCaller) Underlying

func (_CToken *CTokenCaller) Underlying(opts *bind.CallOpts) (common.Address, error)

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

Solidity: function underlying() view returns(address)

type CTokenCallerRaw

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

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

func (*CTokenCallerRaw) Call

func (_CToken *CTokenCallerRaw) 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 CTokenCallerSession

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

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

func (*CTokenCallerSession) AccrualBlockNumber

func (_CToken *CTokenCallerSession) AccrualBlockNumber() (*big.Int, error)

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

Solidity: function accrualBlockNumber() view returns(uint256)

func (*CTokenCallerSession) Admin

func (_CToken *CTokenCallerSession) Admin() (common.Address, error)

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

Solidity: function admin() view returns(address)

func (*CTokenCallerSession) Allowance

func (_CToken *CTokenCallerSession) 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 (*CTokenCallerSession) BalanceOf

func (_CToken *CTokenCallerSession) 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 (*CTokenCallerSession) BorrowBalanceStored

func (_CToken *CTokenCallerSession) 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 (*CTokenCallerSession) BorrowIndex

func (_CToken *CTokenCallerSession) BorrowIndex() (*big.Int, error)

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

Solidity: function borrowIndex() view returns(uint256)

func (*CTokenCallerSession) BorrowRatePerBlock

func (_CToken *CTokenCallerSession) BorrowRatePerBlock() (*big.Int, error)

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

Solidity: function borrowRatePerBlock() view returns(uint256)

func (*CTokenCallerSession) Comptroller

func (_CToken *CTokenCallerSession) Comptroller() (common.Address, error)

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

Solidity: function comptroller() view returns(address)

func (*CTokenCallerSession) Decimals

func (_CToken *CTokenCallerSession) Decimals() (uint8, error)

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

Solidity: function decimals() view returns(uint8)

func (*CTokenCallerSession) DelegateToViewImplementation

func (_CToken *CTokenCallerSession) DelegateToViewImplementation(data []byte) ([]byte, error)

DelegateToViewImplementation is a free data retrieval call binding the contract method 0x4487152f.

Solidity: function delegateToViewImplementation(bytes data) view returns(bytes)

func (*CTokenCallerSession) ExchangeRateStored

func (_CToken *CTokenCallerSession) ExchangeRateStored() (*big.Int, error)

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

Solidity: function exchangeRateStored() view returns(uint256)

func (*CTokenCallerSession) GetAccountSnapshot

func (_CToken *CTokenCallerSession) 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 (*CTokenCallerSession) GetCash

func (_CToken *CTokenCallerSession) GetCash() (*big.Int, error)

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

Solidity: function getCash() view returns(uint256)

func (*CTokenCallerSession) Implementation

func (_CToken *CTokenCallerSession) Implementation() (common.Address, error)

Implementation is a free data retrieval call binding the contract method 0x5c60da1b.

Solidity: function implementation() view returns(address)

func (*CTokenCallerSession) InterestRateModel

func (_CToken *CTokenCallerSession) InterestRateModel() (common.Address, error)

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

Solidity: function interestRateModel() view returns(address)

func (*CTokenCallerSession) IsCToken

func (_CToken *CTokenCallerSession) IsCToken() (bool, error)

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

Solidity: function isCToken() view returns(bool)

func (*CTokenCallerSession) Name

func (_CToken *CTokenCallerSession) Name() (string, error)

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

Solidity: function name() view returns(string)

func (*CTokenCallerSession) PendingAdmin

func (_CToken *CTokenCallerSession) PendingAdmin() (common.Address, error)

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

Solidity: function pendingAdmin() view returns(address)

func (*CTokenCallerSession) ReserveFactorMantissa

func (_CToken *CTokenCallerSession) ReserveFactorMantissa() (*big.Int, error)

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

Solidity: function reserveFactorMantissa() view returns(uint256)

func (*CTokenCallerSession) SupplyRatePerBlock

func (_CToken *CTokenCallerSession) SupplyRatePerBlock() (*big.Int, error)

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

Solidity: function supplyRatePerBlock() view returns(uint256)

func (*CTokenCallerSession) Symbol

func (_CToken *CTokenCallerSession) Symbol() (string, error)

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

Solidity: function symbol() view returns(string)

func (*CTokenCallerSession) TotalBorrows

func (_CToken *CTokenCallerSession) TotalBorrows() (*big.Int, error)

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

Solidity: function totalBorrows() view returns(uint256)

func (*CTokenCallerSession) TotalReserves

func (_CToken *CTokenCallerSession) TotalReserves() (*big.Int, error)

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

Solidity: function totalReserves() view returns(uint256)

func (*CTokenCallerSession) TotalSupply

func (_CToken *CTokenCallerSession) TotalSupply() (*big.Int, error)

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

Solidity: function totalSupply() view returns(uint256)

func (*CTokenCallerSession) Underlying

func (_CToken *CTokenCallerSession) Underlying() (common.Address, error)

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

Solidity: function underlying() view returns(address)

type CTokenFailure

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

CTokenFailure represents a Failure event raised by the CToken contract.

type CTokenFailureIterator

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

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

func (*CTokenFailureIterator) Close

func (it *CTokenFailureIterator) Close() error

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

func (*CTokenFailureIterator) Error

func (it *CTokenFailureIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*CTokenFailureIterator) Next

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

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

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

func NewCTokenFilterer

func NewCTokenFilterer(address common.Address, filterer bind.ContractFilterer) (*CTokenFilterer, error)

NewCTokenFilterer creates a new log filterer instance of CToken, bound to a specific deployed contract.

func (*CTokenFilterer) FilterAccrueInterest

func (_CToken *CTokenFilterer) FilterAccrueInterest(opts *bind.FilterOpts) (*CTokenAccrueInterestIterator, error)

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

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

func (*CTokenFilterer) FilterApproval

func (_CToken *CTokenFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*CTokenApprovalIterator, 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 (*CTokenFilterer) FilterBorrow

func (_CToken *CTokenFilterer) FilterBorrow(opts *bind.FilterOpts) (*CTokenBorrowIterator, 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 (*CTokenFilterer) FilterFailure

func (_CToken *CTokenFilterer) FilterFailure(opts *bind.FilterOpts) (*CTokenFailureIterator, error)

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

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

func (*CTokenFilterer) FilterLiquidateBorrow

func (_CToken *CTokenFilterer) FilterLiquidateBorrow(opts *bind.FilterOpts) (*CTokenLiquidateBorrowIterator, 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 (*CTokenFilterer) FilterMint

func (_CToken *CTokenFilterer) FilterMint(opts *bind.FilterOpts) (*CTokenMintIterator, error)

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

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

func (*CTokenFilterer) FilterNewAdmin

func (_CToken *CTokenFilterer) FilterNewAdmin(opts *bind.FilterOpts) (*CTokenNewAdminIterator, error)

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

Solidity: event NewAdmin(address oldAdmin, address newAdmin)

func (*CTokenFilterer) FilterNewComptroller

func (_CToken *CTokenFilterer) FilterNewComptroller(opts *bind.FilterOpts) (*CTokenNewComptrollerIterator, error)

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

Solidity: event NewComptroller(address oldComptroller, address newComptroller)

func (*CTokenFilterer) FilterNewImplementation

func (_CToken *CTokenFilterer) FilterNewImplementation(opts *bind.FilterOpts) (*CTokenNewImplementationIterator, error)

FilterNewImplementation is a free log retrieval operation binding the contract event 0xd604de94d45953f9138079ec1b82d533cb2160c906d1076d1f7ed54befbca97a.

Solidity: event NewImplementation(address oldImplementation, address newImplementation)

func (*CTokenFilterer) FilterNewMarketInterestRateModel

func (_CToken *CTokenFilterer) FilterNewMarketInterestRateModel(opts *bind.FilterOpts) (*CTokenNewMarketInterestRateModelIterator, error)

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

Solidity: event NewMarketInterestRateModel(address oldInterestRateModel, address newInterestRateModel)

func (*CTokenFilterer) FilterNewPendingAdmin

func (_CToken *CTokenFilterer) FilterNewPendingAdmin(opts *bind.FilterOpts) (*CTokenNewPendingAdminIterator, error)

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

Solidity: event NewPendingAdmin(address oldPendingAdmin, address newPendingAdmin)

func (*CTokenFilterer) FilterNewReserveFactor

func (_CToken *CTokenFilterer) FilterNewReserveFactor(opts *bind.FilterOpts) (*CTokenNewReserveFactorIterator, error)

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

Solidity: event NewReserveFactor(uint256 oldReserveFactorMantissa, uint256 newReserveFactorMantissa)

func (*CTokenFilterer) FilterRedeem

func (_CToken *CTokenFilterer) FilterRedeem(opts *bind.FilterOpts) (*CTokenRedeemIterator, error)

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

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

func (*CTokenFilterer) FilterRepayBorrow

func (_CToken *CTokenFilterer) FilterRepayBorrow(opts *bind.FilterOpts) (*CTokenRepayBorrowIterator, 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 (*CTokenFilterer) FilterReservesAdded

func (_CToken *CTokenFilterer) FilterReservesAdded(opts *bind.FilterOpts) (*CTokenReservesAddedIterator, error)

FilterReservesAdded is a free log retrieval operation binding the contract event 0xa91e67c5ea634cd43a12c5a482724b03de01e85ca68702a53d0c2f45cb7c1dc5.

Solidity: event ReservesAdded(address benefactor, uint256 addAmount, uint256 newTotalReserves)

func (*CTokenFilterer) FilterReservesReduced

func (_CToken *CTokenFilterer) FilterReservesReduced(opts *bind.FilterOpts) (*CTokenReservesReducedIterator, error)

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

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

func (*CTokenFilterer) FilterTransfer

func (_CToken *CTokenFilterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*CTokenTransferIterator, 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 (*CTokenFilterer) ParseAccrueInterest

func (_CToken *CTokenFilterer) ParseAccrueInterest(log types.Log) (*CTokenAccrueInterest, error)

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

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

func (*CTokenFilterer) ParseApproval

func (_CToken *CTokenFilterer) ParseApproval(log types.Log) (*CTokenApproval, error)

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

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

func (*CTokenFilterer) ParseBorrow

func (_CToken *CTokenFilterer) ParseBorrow(log types.Log) (*CTokenBorrow, error)

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

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

func (*CTokenFilterer) ParseFailure

func (_CToken *CTokenFilterer) ParseFailure(log types.Log) (*CTokenFailure, error)

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

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

func (*CTokenFilterer) ParseLiquidateBorrow

func (_CToken *CTokenFilterer) ParseLiquidateBorrow(log types.Log) (*CTokenLiquidateBorrow, 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 (*CTokenFilterer) ParseMint

func (_CToken *CTokenFilterer) ParseMint(log types.Log) (*CTokenMint, error)

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

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

func (*CTokenFilterer) ParseNewAdmin

func (_CToken *CTokenFilterer) ParseNewAdmin(log types.Log) (*CTokenNewAdmin, error)

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

Solidity: event NewAdmin(address oldAdmin, address newAdmin)

func (*CTokenFilterer) ParseNewComptroller

func (_CToken *CTokenFilterer) ParseNewComptroller(log types.Log) (*CTokenNewComptroller, error)

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

Solidity: event NewComptroller(address oldComptroller, address newComptroller)

func (*CTokenFilterer) ParseNewImplementation

func (_CToken *CTokenFilterer) ParseNewImplementation(log types.Log) (*CTokenNewImplementation, error)

ParseNewImplementation is a log parse operation binding the contract event 0xd604de94d45953f9138079ec1b82d533cb2160c906d1076d1f7ed54befbca97a.

Solidity: event NewImplementation(address oldImplementation, address newImplementation)

func (*CTokenFilterer) ParseNewMarketInterestRateModel

func (_CToken *CTokenFilterer) ParseNewMarketInterestRateModel(log types.Log) (*CTokenNewMarketInterestRateModel, error)

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

Solidity: event NewMarketInterestRateModel(address oldInterestRateModel, address newInterestRateModel)

func (*CTokenFilterer) ParseNewPendingAdmin

func (_CToken *CTokenFilterer) ParseNewPendingAdmin(log types.Log) (*CTokenNewPendingAdmin, error)

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

Solidity: event NewPendingAdmin(address oldPendingAdmin, address newPendingAdmin)

func (*CTokenFilterer) ParseNewReserveFactor

func (_CToken *CTokenFilterer) ParseNewReserveFactor(log types.Log) (*CTokenNewReserveFactor, error)

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

Solidity: event NewReserveFactor(uint256 oldReserveFactorMantissa, uint256 newReserveFactorMantissa)

func (*CTokenFilterer) ParseRedeem

func (_CToken *CTokenFilterer) ParseRedeem(log types.Log) (*CTokenRedeem, error)

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

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

func (*CTokenFilterer) ParseRepayBorrow

func (_CToken *CTokenFilterer) ParseRepayBorrow(log types.Log) (*CTokenRepayBorrow, 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 (*CTokenFilterer) ParseReservesAdded

func (_CToken *CTokenFilterer) ParseReservesAdded(log types.Log) (*CTokenReservesAdded, error)

ParseReservesAdded is a log parse operation binding the contract event 0xa91e67c5ea634cd43a12c5a482724b03de01e85ca68702a53d0c2f45cb7c1dc5.

Solidity: event ReservesAdded(address benefactor, uint256 addAmount, uint256 newTotalReserves)

func (*CTokenFilterer) ParseReservesReduced

func (_CToken *CTokenFilterer) ParseReservesReduced(log types.Log) (*CTokenReservesReduced, error)

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

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

func (*CTokenFilterer) ParseTransfer

func (_CToken *CTokenFilterer) ParseTransfer(log types.Log) (*CTokenTransfer, error)

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

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

func (*CTokenFilterer) WatchAccrueInterest

func (_CToken *CTokenFilterer) WatchAccrueInterest(opts *bind.WatchOpts, sink chan<- *CTokenAccrueInterest) (event.Subscription, error)

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

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

func (*CTokenFilterer) WatchApproval

func (_CToken *CTokenFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *CTokenApproval, 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 (*CTokenFilterer) WatchBorrow

func (_CToken *CTokenFilterer) WatchBorrow(opts *bind.WatchOpts, sink chan<- *CTokenBorrow) (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 (*CTokenFilterer) WatchFailure

func (_CToken *CTokenFilterer) WatchFailure(opts *bind.WatchOpts, sink chan<- *CTokenFailure) (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 (*CTokenFilterer) WatchLiquidateBorrow

func (_CToken *CTokenFilterer) WatchLiquidateBorrow(opts *bind.WatchOpts, sink chan<- *CTokenLiquidateBorrow) (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 (*CTokenFilterer) WatchMint

func (_CToken *CTokenFilterer) WatchMint(opts *bind.WatchOpts, sink chan<- *CTokenMint) (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 (*CTokenFilterer) WatchNewAdmin

func (_CToken *CTokenFilterer) WatchNewAdmin(opts *bind.WatchOpts, sink chan<- *CTokenNewAdmin) (event.Subscription, error)

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

Solidity: event NewAdmin(address oldAdmin, address newAdmin)

func (*CTokenFilterer) WatchNewComptroller

func (_CToken *CTokenFilterer) WatchNewComptroller(opts *bind.WatchOpts, sink chan<- *CTokenNewComptroller) (event.Subscription, error)

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

Solidity: event NewComptroller(address oldComptroller, address newComptroller)

func (*CTokenFilterer) WatchNewImplementation

func (_CToken *CTokenFilterer) WatchNewImplementation(opts *bind.WatchOpts, sink chan<- *CTokenNewImplementation) (event.Subscription, error)

WatchNewImplementation is a free log subscription operation binding the contract event 0xd604de94d45953f9138079ec1b82d533cb2160c906d1076d1f7ed54befbca97a.

Solidity: event NewImplementation(address oldImplementation, address newImplementation)

func (*CTokenFilterer) WatchNewMarketInterestRateModel

func (_CToken *CTokenFilterer) WatchNewMarketInterestRateModel(opts *bind.WatchOpts, sink chan<- *CTokenNewMarketInterestRateModel) (event.Subscription, error)

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

Solidity: event NewMarketInterestRateModel(address oldInterestRateModel, address newInterestRateModel)

func (*CTokenFilterer) WatchNewPendingAdmin

func (_CToken *CTokenFilterer) WatchNewPendingAdmin(opts *bind.WatchOpts, sink chan<- *CTokenNewPendingAdmin) (event.Subscription, error)

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

Solidity: event NewPendingAdmin(address oldPendingAdmin, address newPendingAdmin)

func (*CTokenFilterer) WatchNewReserveFactor

func (_CToken *CTokenFilterer) WatchNewReserveFactor(opts *bind.WatchOpts, sink chan<- *CTokenNewReserveFactor) (event.Subscription, error)

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

Solidity: event NewReserveFactor(uint256 oldReserveFactorMantissa, uint256 newReserveFactorMantissa)

func (*CTokenFilterer) WatchRedeem

func (_CToken *CTokenFilterer) WatchRedeem(opts *bind.WatchOpts, sink chan<- *CTokenRedeem) (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 (*CTokenFilterer) WatchRepayBorrow

func (_CToken *CTokenFilterer) WatchRepayBorrow(opts *bind.WatchOpts, sink chan<- *CTokenRepayBorrow) (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 (*CTokenFilterer) WatchReservesAdded

func (_CToken *CTokenFilterer) WatchReservesAdded(opts *bind.WatchOpts, sink chan<- *CTokenReservesAdded) (event.Subscription, error)

WatchReservesAdded is a free log subscription operation binding the contract event 0xa91e67c5ea634cd43a12c5a482724b03de01e85ca68702a53d0c2f45cb7c1dc5.

Solidity: event ReservesAdded(address benefactor, uint256 addAmount, uint256 newTotalReserves)

func (*CTokenFilterer) WatchReservesReduced

func (_CToken *CTokenFilterer) WatchReservesReduced(opts *bind.WatchOpts, sink chan<- *CTokenReservesReduced) (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 (*CTokenFilterer) WatchTransfer

func (_CToken *CTokenFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *CTokenTransfer, 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 CTokenLiquidateBorrow

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

CTokenLiquidateBorrow represents a LiquidateBorrow event raised by the CToken contract.

type CTokenLiquidateBorrowIterator

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

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

func (*CTokenLiquidateBorrowIterator) Close

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

func (*CTokenLiquidateBorrowIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*CTokenLiquidateBorrowIterator) 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 CTokenMint

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

CTokenMint represents a Mint event raised by the CToken contract.

type CTokenMintIterator

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

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

func (*CTokenMintIterator) Close

func (it *CTokenMintIterator) Close() error

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

func (*CTokenMintIterator) Error

func (it *CTokenMintIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*CTokenMintIterator) Next

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

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

CTokenNewAdmin represents a NewAdmin event raised by the CToken contract.

type CTokenNewAdminIterator

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

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

func (*CTokenNewAdminIterator) Close

func (it *CTokenNewAdminIterator) Close() error

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

func (*CTokenNewAdminIterator) Error

func (it *CTokenNewAdminIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*CTokenNewAdminIterator) Next

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

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

CTokenNewComptroller represents a NewComptroller event raised by the CToken contract.

type CTokenNewComptrollerIterator

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

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

func (*CTokenNewComptrollerIterator) Close

func (it *CTokenNewComptrollerIterator) Close() error

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

func (*CTokenNewComptrollerIterator) Error

func (it *CTokenNewComptrollerIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*CTokenNewComptrollerIterator) 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 CTokenNewImplementation

type CTokenNewImplementation struct {
	OldImplementation common.Address
	NewImplementation common.Address
	Raw               types.Log // Blockchain specific contextual infos
}

CTokenNewImplementation represents a NewImplementation event raised by the CToken contract.

type CTokenNewImplementationIterator

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

CTokenNewImplementationIterator is returned from FilterNewImplementation and is used to iterate over the raw logs and unpacked data for NewImplementation events raised by the CToken contract.

func (*CTokenNewImplementationIterator) Close

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

func (*CTokenNewImplementationIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*CTokenNewImplementationIterator) 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 CTokenNewMarketInterestRateModel

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

CTokenNewMarketInterestRateModel represents a NewMarketInterestRateModel event raised by the CToken contract.

type CTokenNewMarketInterestRateModelIterator

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

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

func (*CTokenNewMarketInterestRateModelIterator) Close

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

func (*CTokenNewMarketInterestRateModelIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*CTokenNewMarketInterestRateModelIterator) 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 CTokenNewPendingAdmin

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

CTokenNewPendingAdmin represents a NewPendingAdmin event raised by the CToken contract.

type CTokenNewPendingAdminIterator

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

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

func (*CTokenNewPendingAdminIterator) Close

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

func (*CTokenNewPendingAdminIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*CTokenNewPendingAdminIterator) 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 CTokenNewReserveFactor

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

CTokenNewReserveFactor represents a NewReserveFactor event raised by the CToken contract.

type CTokenNewReserveFactorIterator

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

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

func (*CTokenNewReserveFactorIterator) Close

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

func (*CTokenNewReserveFactorIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*CTokenNewReserveFactorIterator) 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 CTokenRaw

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

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

func (*CTokenRaw) Call

func (_CToken *CTokenRaw) 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 (*CTokenRaw) Transact

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

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

func (*CTokenRaw) Transfer

func (_CToken *CTokenRaw) 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 CTokenRedeem

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

CTokenRedeem represents a Redeem event raised by the CToken contract.

type CTokenRedeemIterator

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

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

func (*CTokenRedeemIterator) Close

func (it *CTokenRedeemIterator) Close() error

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

func (*CTokenRedeemIterator) Error

func (it *CTokenRedeemIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*CTokenRedeemIterator) Next

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

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

CTokenRepayBorrow represents a RepayBorrow event raised by the CToken contract.

type CTokenRepayBorrowIterator

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

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

func (*CTokenRepayBorrowIterator) Close

func (it *CTokenRepayBorrowIterator) Close() error

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

func (*CTokenRepayBorrowIterator) Error

func (it *CTokenRepayBorrowIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*CTokenRepayBorrowIterator) Next

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

type CTokenReservesAdded struct {
	Benefactor       common.Address
	AddAmount        *big.Int
	NewTotalReserves *big.Int
	Raw              types.Log // Blockchain specific contextual infos
}

CTokenReservesAdded represents a ReservesAdded event raised by the CToken contract.

type CTokenReservesAddedIterator

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

CTokenReservesAddedIterator is returned from FilterReservesAdded and is used to iterate over the raw logs and unpacked data for ReservesAdded events raised by the CToken contract.

func (*CTokenReservesAddedIterator) Close

func (it *CTokenReservesAddedIterator) Close() error

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

func (*CTokenReservesAddedIterator) Error

func (it *CTokenReservesAddedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*CTokenReservesAddedIterator) Next

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

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

CTokenReservesReduced represents a ReservesReduced event raised by the CToken contract.

type CTokenReservesReducedIterator

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

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

func (*CTokenReservesReducedIterator) Close

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

func (*CTokenReservesReducedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*CTokenReservesReducedIterator) 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 CTokenSession

type CTokenSession struct {
	Contract     *CToken           // 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
}

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

func (*CTokenSession) AcceptAdmin

func (_CToken *CTokenSession) AcceptAdmin() (*types.Transaction, error)

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

Solidity: function _acceptAdmin() returns(uint256)

func (*CTokenSession) AccrualBlockNumber

func (_CToken *CTokenSession) AccrualBlockNumber() (*big.Int, error)

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

Solidity: function accrualBlockNumber() view returns(uint256)

func (*CTokenSession) AccrueInterest

func (_CToken *CTokenSession) AccrueInterest() (*types.Transaction, error)

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

Solidity: function accrueInterest() returns(uint256)

func (*CTokenSession) AddReserves

func (_CToken *CTokenSession) AddReserves(addAmount *big.Int) (*types.Transaction, error)

AddReserves is a paid mutator transaction binding the contract method 0x3e941010.

Solidity: function _addReserves(uint256 addAmount) returns(uint256)

func (*CTokenSession) Admin

func (_CToken *CTokenSession) Admin() (common.Address, error)

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

Solidity: function admin() view returns(address)

func (*CTokenSession) Allowance

func (_CToken *CTokenSession) 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 (*CTokenSession) Approve

func (_CToken *CTokenSession) 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 (*CTokenSession) BalanceOf

func (_CToken *CTokenSession) 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 (*CTokenSession) BalanceOfUnderlying

func (_CToken *CTokenSession) 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 (*CTokenSession) Borrow

func (_CToken *CTokenSession) 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 (*CTokenSession) BorrowBalanceCurrent

func (_CToken *CTokenSession) 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 (*CTokenSession) BorrowBalanceStored

func (_CToken *CTokenSession) 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 (*CTokenSession) BorrowIndex

func (_CToken *CTokenSession) BorrowIndex() (*big.Int, error)

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

Solidity: function borrowIndex() view returns(uint256)

func (*CTokenSession) BorrowRatePerBlock

func (_CToken *CTokenSession) BorrowRatePerBlock() (*big.Int, error)

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

Solidity: function borrowRatePerBlock() view returns(uint256)

func (*CTokenSession) Comptroller

func (_CToken *CTokenSession) Comptroller() (common.Address, error)

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

Solidity: function comptroller() view returns(address)

func (*CTokenSession) Decimals

func (_CToken *CTokenSession) Decimals() (uint8, error)

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

Solidity: function decimals() view returns(uint8)

func (*CTokenSession) DelegateToImplementation

func (_CToken *CTokenSession) DelegateToImplementation(data []byte) (*types.Transaction, error)

DelegateToImplementation is a paid mutator transaction binding the contract method 0x0933c1ed.

Solidity: function delegateToImplementation(bytes data) returns(bytes)

func (*CTokenSession) DelegateToViewImplementation

func (_CToken *CTokenSession) DelegateToViewImplementation(data []byte) ([]byte, error)

DelegateToViewImplementation is a free data retrieval call binding the contract method 0x4487152f.

Solidity: function delegateToViewImplementation(bytes data) view returns(bytes)

func (*CTokenSession) ExchangeRateCurrent

func (_CToken *CTokenSession) ExchangeRateCurrent() (*types.Transaction, error)

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

Solidity: function exchangeRateCurrent() returns(uint256)

func (*CTokenSession) ExchangeRateStored

func (_CToken *CTokenSession) ExchangeRateStored() (*big.Int, error)

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

Solidity: function exchangeRateStored() view returns(uint256)

func (*CTokenSession) Fallback

func (_CToken *CTokenSession) Fallback(calldata []byte) (*types.Transaction, error)

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

Solidity: fallback() payable returns()

func (*CTokenSession) GetAccountSnapshot

func (_CToken *CTokenSession) 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 (*CTokenSession) GetCash

func (_CToken *CTokenSession) GetCash() (*big.Int, error)

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

Solidity: function getCash() view returns(uint256)

func (*CTokenSession) Implementation

func (_CToken *CTokenSession) Implementation() (common.Address, error)

Implementation is a free data retrieval call binding the contract method 0x5c60da1b.

Solidity: function implementation() view returns(address)

func (*CTokenSession) InterestRateModel

func (_CToken *CTokenSession) InterestRateModel() (common.Address, error)

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

Solidity: function interestRateModel() view returns(address)

func (*CTokenSession) IsCToken

func (_CToken *CTokenSession) IsCToken() (bool, error)

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

Solidity: function isCToken() view returns(bool)

func (*CTokenSession) LiquidateBorrow

func (_CToken *CTokenSession) LiquidateBorrow(borrower common.Address, repayAmount *big.Int, cTokenCollateral common.Address) (*types.Transaction, error)

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

Solidity: function liquidateBorrow(address borrower, uint256 repayAmount, address cTokenCollateral) returns(uint256)

func (*CTokenSession) Mint

func (_CToken *CTokenSession) Mint(mintAmount *big.Int) (*types.Transaction, error)

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

Solidity: function mint(uint256 mintAmount) returns(uint256)

func (*CTokenSession) Name

func (_CToken *CTokenSession) Name() (string, error)

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

Solidity: function name() view returns(string)

func (*CTokenSession) PendingAdmin

func (_CToken *CTokenSession) PendingAdmin() (common.Address, error)

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

Solidity: function pendingAdmin() view returns(address)

func (*CTokenSession) Redeem

func (_CToken *CTokenSession) 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 (*CTokenSession) RedeemUnderlying

func (_CToken *CTokenSession) 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 (*CTokenSession) ReduceReserves

func (_CToken *CTokenSession) 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 (*CTokenSession) RepayBorrow

func (_CToken *CTokenSession) RepayBorrow(repayAmount *big.Int) (*types.Transaction, error)

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

Solidity: function repayBorrow(uint256 repayAmount) returns(uint256)

func (*CTokenSession) RepayBorrowBehalf

func (_CToken *CTokenSession) RepayBorrowBehalf(borrower common.Address, repayAmount *big.Int) (*types.Transaction, error)

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

Solidity: function repayBorrowBehalf(address borrower, uint256 repayAmount) returns(uint256)

func (*CTokenSession) ReserveFactorMantissa

func (_CToken *CTokenSession) ReserveFactorMantissa() (*big.Int, error)

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

Solidity: function reserveFactorMantissa() view returns(uint256)

func (*CTokenSession) Seize

func (_CToken *CTokenSession) 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 (*CTokenSession) SetComptroller

func (_CToken *CTokenSession) 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 (*CTokenSession) SetImplementation

func (_CToken *CTokenSession) SetImplementation(implementation_ common.Address, allowResign bool, becomeImplementationData []byte) (*types.Transaction, error)

SetImplementation is a paid mutator transaction binding the contract method 0x555bcc40.

Solidity: function _setImplementation(address implementation_, bool allowResign, bytes becomeImplementationData) returns()

func (*CTokenSession) SetInterestRateModel

func (_CToken *CTokenSession) 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 (*CTokenSession) SetPendingAdmin

func (_CToken *CTokenSession) 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 (*CTokenSession) SetReserveFactor

func (_CToken *CTokenSession) 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 (*CTokenSession) SupplyRatePerBlock

func (_CToken *CTokenSession) SupplyRatePerBlock() (*big.Int, error)

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

Solidity: function supplyRatePerBlock() view returns(uint256)

func (*CTokenSession) Symbol

func (_CToken *CTokenSession) Symbol() (string, error)

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

Solidity: function symbol() view returns(string)

func (*CTokenSession) TotalBorrows

func (_CToken *CTokenSession) TotalBorrows() (*big.Int, error)

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

Solidity: function totalBorrows() view returns(uint256)

func (*CTokenSession) TotalBorrowsCurrent

func (_CToken *CTokenSession) TotalBorrowsCurrent() (*types.Transaction, error)

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

Solidity: function totalBorrowsCurrent() returns(uint256)

func (*CTokenSession) TotalReserves

func (_CToken *CTokenSession) TotalReserves() (*big.Int, error)

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

Solidity: function totalReserves() view returns(uint256)

func (*CTokenSession) TotalSupply

func (_CToken *CTokenSession) TotalSupply() (*big.Int, error)

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

Solidity: function totalSupply() view returns(uint256)

func (*CTokenSession) Transfer

func (_CToken *CTokenSession) 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 (*CTokenSession) TransferFrom

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

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

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

func (*CTokenSession) Underlying

func (_CToken *CTokenSession) Underlying() (common.Address, error)

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

Solidity: function underlying() view returns(address)

type CTokenTransactor

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

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

func NewCTokenTransactor

func NewCTokenTransactor(address common.Address, transactor bind.ContractTransactor) (*CTokenTransactor, error)

NewCTokenTransactor creates a new write-only instance of CToken, bound to a specific deployed contract.

func (*CTokenTransactor) AcceptAdmin

func (_CToken *CTokenTransactor) AcceptAdmin(opts *bind.TransactOpts) (*types.Transaction, error)

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

Solidity: function _acceptAdmin() returns(uint256)

func (*CTokenTransactor) AccrueInterest

func (_CToken *CTokenTransactor) AccrueInterest(opts *bind.TransactOpts) (*types.Transaction, error)

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

Solidity: function accrueInterest() returns(uint256)

func (*CTokenTransactor) AddReserves

func (_CToken *CTokenTransactor) AddReserves(opts *bind.TransactOpts, addAmount *big.Int) (*types.Transaction, error)

AddReserves is a paid mutator transaction binding the contract method 0x3e941010.

Solidity: function _addReserves(uint256 addAmount) returns(uint256)

func (*CTokenTransactor) Approve

func (_CToken *CTokenTransactor) 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 (*CTokenTransactor) BalanceOfUnderlying

func (_CToken *CTokenTransactor) 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 (*CTokenTransactor) Borrow

func (_CToken *CTokenTransactor) 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 (*CTokenTransactor) BorrowBalanceCurrent

func (_CToken *CTokenTransactor) 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 (*CTokenTransactor) DelegateToImplementation

func (_CToken *CTokenTransactor) DelegateToImplementation(opts *bind.TransactOpts, data []byte) (*types.Transaction, error)

DelegateToImplementation is a paid mutator transaction binding the contract method 0x0933c1ed.

Solidity: function delegateToImplementation(bytes data) returns(bytes)

func (*CTokenTransactor) ExchangeRateCurrent

func (_CToken *CTokenTransactor) ExchangeRateCurrent(opts *bind.TransactOpts) (*types.Transaction, error)

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

Solidity: function exchangeRateCurrent() returns(uint256)

func (*CTokenTransactor) Fallback

func (_CToken *CTokenTransactor) 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 (*CTokenTransactor) LiquidateBorrow

func (_CToken *CTokenTransactor) LiquidateBorrow(opts *bind.TransactOpts, borrower common.Address, repayAmount *big.Int, cTokenCollateral common.Address) (*types.Transaction, error)

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

Solidity: function liquidateBorrow(address borrower, uint256 repayAmount, address cTokenCollateral) returns(uint256)

func (*CTokenTransactor) Mint

func (_CToken *CTokenTransactor) Mint(opts *bind.TransactOpts, mintAmount *big.Int) (*types.Transaction, error)

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

Solidity: function mint(uint256 mintAmount) returns(uint256)

func (*CTokenTransactor) Redeem

func (_CToken *CTokenTransactor) 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 (*CTokenTransactor) RedeemUnderlying

func (_CToken *CTokenTransactor) 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 (*CTokenTransactor) ReduceReserves

func (_CToken *CTokenTransactor) 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 (*CTokenTransactor) RepayBorrow

func (_CToken *CTokenTransactor) RepayBorrow(opts *bind.TransactOpts, repayAmount *big.Int) (*types.Transaction, error)

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

Solidity: function repayBorrow(uint256 repayAmount) returns(uint256)

func (*CTokenTransactor) RepayBorrowBehalf

func (_CToken *CTokenTransactor) RepayBorrowBehalf(opts *bind.TransactOpts, borrower common.Address, repayAmount *big.Int) (*types.Transaction, error)

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

Solidity: function repayBorrowBehalf(address borrower, uint256 repayAmount) returns(uint256)

func (*CTokenTransactor) Seize

func (_CToken *CTokenTransactor) 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 (*CTokenTransactor) SetComptroller

func (_CToken *CTokenTransactor) 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 (*CTokenTransactor) SetImplementation

func (_CToken *CTokenTransactor) SetImplementation(opts *bind.TransactOpts, implementation_ common.Address, allowResign bool, becomeImplementationData []byte) (*types.Transaction, error)

SetImplementation is a paid mutator transaction binding the contract method 0x555bcc40.

Solidity: function _setImplementation(address implementation_, bool allowResign, bytes becomeImplementationData) returns()

func (*CTokenTransactor) SetInterestRateModel

func (_CToken *CTokenTransactor) 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 (*CTokenTransactor) SetPendingAdmin

func (_CToken *CTokenTransactor) 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 (*CTokenTransactor) SetReserveFactor

func (_CToken *CTokenTransactor) 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 (*CTokenTransactor) TotalBorrowsCurrent

func (_CToken *CTokenTransactor) TotalBorrowsCurrent(opts *bind.TransactOpts) (*types.Transaction, error)

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

Solidity: function totalBorrowsCurrent() returns(uint256)

func (*CTokenTransactor) Transfer

func (_CToken *CTokenTransactor) 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 (*CTokenTransactor) TransferFrom

func (_CToken *CTokenTransactor) 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 CTokenTransactorRaw

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

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

func (*CTokenTransactorRaw) Transact

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

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

func (*CTokenTransactorRaw) Transfer

func (_CToken *CTokenTransactorRaw) 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 CTokenTransactorSession

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

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

func (*CTokenTransactorSession) AcceptAdmin

func (_CToken *CTokenTransactorSession) AcceptAdmin() (*types.Transaction, error)

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

Solidity: function _acceptAdmin() returns(uint256)

func (*CTokenTransactorSession) AccrueInterest

func (_CToken *CTokenTransactorSession) AccrueInterest() (*types.Transaction, error)

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

Solidity: function accrueInterest() returns(uint256)

func (*CTokenTransactorSession) AddReserves

func (_CToken *CTokenTransactorSession) AddReserves(addAmount *big.Int) (*types.Transaction, error)

AddReserves is a paid mutator transaction binding the contract method 0x3e941010.

Solidity: function _addReserves(uint256 addAmount) returns(uint256)

func (*CTokenTransactorSession) Approve

func (_CToken *CTokenTransactorSession) 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 (*CTokenTransactorSession) BalanceOfUnderlying

func (_CToken *CTokenTransactorSession) 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 (*CTokenTransactorSession) Borrow

func (_CToken *CTokenTransactorSession) 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 (*CTokenTransactorSession) BorrowBalanceCurrent

func (_CToken *CTokenTransactorSession) 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 (*CTokenTransactorSession) DelegateToImplementation

func (_CToken *CTokenTransactorSession) DelegateToImplementation(data []byte) (*types.Transaction, error)

DelegateToImplementation is a paid mutator transaction binding the contract method 0x0933c1ed.

Solidity: function delegateToImplementation(bytes data) returns(bytes)

func (*CTokenTransactorSession) ExchangeRateCurrent

func (_CToken *CTokenTransactorSession) ExchangeRateCurrent() (*types.Transaction, error)

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

Solidity: function exchangeRateCurrent() returns(uint256)

func (*CTokenTransactorSession) Fallback

func (_CToken *CTokenTransactorSession) Fallback(calldata []byte) (*types.Transaction, error)

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

Solidity: fallback() payable returns()

func (*CTokenTransactorSession) LiquidateBorrow

func (_CToken *CTokenTransactorSession) LiquidateBorrow(borrower common.Address, repayAmount *big.Int, cTokenCollateral common.Address) (*types.Transaction, error)

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

Solidity: function liquidateBorrow(address borrower, uint256 repayAmount, address cTokenCollateral) returns(uint256)

func (*CTokenTransactorSession) Mint

func (_CToken *CTokenTransactorSession) Mint(mintAmount *big.Int) (*types.Transaction, error)

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

Solidity: function mint(uint256 mintAmount) returns(uint256)

func (*CTokenTransactorSession) Redeem

func (_CToken *CTokenTransactorSession) 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 (*CTokenTransactorSession) RedeemUnderlying

func (_CToken *CTokenTransactorSession) 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 (*CTokenTransactorSession) ReduceReserves

func (_CToken *CTokenTransactorSession) 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 (*CTokenTransactorSession) RepayBorrow

func (_CToken *CTokenTransactorSession) RepayBorrow(repayAmount *big.Int) (*types.Transaction, error)

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

Solidity: function repayBorrow(uint256 repayAmount) returns(uint256)

func (*CTokenTransactorSession) RepayBorrowBehalf

func (_CToken *CTokenTransactorSession) RepayBorrowBehalf(borrower common.Address, repayAmount *big.Int) (*types.Transaction, error)

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

Solidity: function repayBorrowBehalf(address borrower, uint256 repayAmount) returns(uint256)

func (*CTokenTransactorSession) Seize

func (_CToken *CTokenTransactorSession) 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 (*CTokenTransactorSession) SetComptroller

func (_CToken *CTokenTransactorSession) 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 (*CTokenTransactorSession) SetImplementation

func (_CToken *CTokenTransactorSession) SetImplementation(implementation_ common.Address, allowResign bool, becomeImplementationData []byte) (*types.Transaction, error)

SetImplementation is a paid mutator transaction binding the contract method 0x555bcc40.

Solidity: function _setImplementation(address implementation_, bool allowResign, bytes becomeImplementationData) returns()

func (*CTokenTransactorSession) SetInterestRateModel

func (_CToken *CTokenTransactorSession) 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 (*CTokenTransactorSession) SetPendingAdmin

func (_CToken *CTokenTransactorSession) 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 (*CTokenTransactorSession) SetReserveFactor

func (_CToken *CTokenTransactorSession) 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 (*CTokenTransactorSession) TotalBorrowsCurrent

func (_CToken *CTokenTransactorSession) TotalBorrowsCurrent() (*types.Transaction, error)

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

Solidity: function totalBorrowsCurrent() returns(uint256)

func (*CTokenTransactorSession) Transfer

func (_CToken *CTokenTransactorSession) 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 (*CTokenTransactorSession) TransferFrom

func (_CToken *CTokenTransactorSession) 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 CTokenTransfer

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

CTokenTransfer represents a Transfer event raised by the CToken contract.

type CTokenTransferIterator

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

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

func (*CTokenTransferIterator) Close

func (it *CTokenTransferIterator) Close() error

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

func (*CTokenTransferIterator) Error

func (it *CTokenTransferIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*CTokenTransferIterator) Next

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