Documentation ¶
Index ¶
- Variables
- type BenqiCToken
- type BenqiCTokenCaller
- func (_BenqiCToken *BenqiCTokenCaller) AccrualBlockTimestamp(opts *bind.CallOpts) (*big.Int, error)
- func (_BenqiCToken *BenqiCTokenCaller) Admin(opts *bind.CallOpts) (common.Address, error)
- func (_BenqiCToken *BenqiCTokenCaller) Allowance(opts *bind.CallOpts, owner common.Address, spender common.Address) (*big.Int, error)
- func (_BenqiCToken *BenqiCTokenCaller) BalanceOf(opts *bind.CallOpts, owner common.Address) (*big.Int, error)
- func (_BenqiCToken *BenqiCTokenCaller) BorrowBalanceStored(opts *bind.CallOpts, account common.Address) (*big.Int, error)
- func (_BenqiCToken *BenqiCTokenCaller) BorrowIndex(opts *bind.CallOpts) (*big.Int, error)
- func (_BenqiCToken *BenqiCTokenCaller) BorrowRatePerTimestamp(opts *bind.CallOpts) (*big.Int, error)
- func (_BenqiCToken *BenqiCTokenCaller) Comptroller(opts *bind.CallOpts) (common.Address, error)
- func (_BenqiCToken *BenqiCTokenCaller) Decimals(opts *bind.CallOpts) (uint8, error)
- func (_BenqiCToken *BenqiCTokenCaller) DelegateToViewImplementation(opts *bind.CallOpts, data []byte) ([]byte, error)
- func (_BenqiCToken *BenqiCTokenCaller) ExchangeRateStored(opts *bind.CallOpts) (*big.Int, error)
- func (_BenqiCToken *BenqiCTokenCaller) GetAccountSnapshot(opts *bind.CallOpts, account common.Address) (*big.Int, *big.Int, *big.Int, *big.Int, error)
- func (_BenqiCToken *BenqiCTokenCaller) GetCash(opts *bind.CallOpts) (*big.Int, error)
- func (_BenqiCToken *BenqiCTokenCaller) Implementation(opts *bind.CallOpts) (common.Address, error)
- func (_BenqiCToken *BenqiCTokenCaller) InterestRateModel(opts *bind.CallOpts) (common.Address, error)
- func (_BenqiCToken *BenqiCTokenCaller) IsQiToken(opts *bind.CallOpts) (bool, error)
- func (_BenqiCToken *BenqiCTokenCaller) Name(opts *bind.CallOpts) (string, error)
- func (_BenqiCToken *BenqiCTokenCaller) PendingAdmin(opts *bind.CallOpts) (common.Address, error)
- func (_BenqiCToken *BenqiCTokenCaller) ProtocolSeizeShareMantissa(opts *bind.CallOpts) (*big.Int, error)
- func (_BenqiCToken *BenqiCTokenCaller) ReserveFactorMantissa(opts *bind.CallOpts) (*big.Int, error)
- func (_BenqiCToken *BenqiCTokenCaller) SupplyRatePerTimestamp(opts *bind.CallOpts) (*big.Int, error)
- func (_BenqiCToken *BenqiCTokenCaller) Symbol(opts *bind.CallOpts) (string, error)
- func (_BenqiCToken *BenqiCTokenCaller) TotalBorrows(opts *bind.CallOpts) (*big.Int, error)
- func (_BenqiCToken *BenqiCTokenCaller) TotalReserves(opts *bind.CallOpts) (*big.Int, error)
- func (_BenqiCToken *BenqiCTokenCaller) TotalSupply(opts *bind.CallOpts) (*big.Int, error)
- func (_BenqiCToken *BenqiCTokenCaller) Underlying(opts *bind.CallOpts) (common.Address, error)
- type BenqiCTokenCallerRaw
- type BenqiCTokenCallerSession
- func (_BenqiCToken *BenqiCTokenCallerSession) AccrualBlockTimestamp() (*big.Int, error)
- func (_BenqiCToken *BenqiCTokenCallerSession) Admin() (common.Address, error)
- func (_BenqiCToken *BenqiCTokenCallerSession) Allowance(owner common.Address, spender common.Address) (*big.Int, error)
- func (_BenqiCToken *BenqiCTokenCallerSession) BalanceOf(owner common.Address) (*big.Int, error)
- func (_BenqiCToken *BenqiCTokenCallerSession) BorrowBalanceStored(account common.Address) (*big.Int, error)
- func (_BenqiCToken *BenqiCTokenCallerSession) BorrowIndex() (*big.Int, error)
- func (_BenqiCToken *BenqiCTokenCallerSession) BorrowRatePerTimestamp() (*big.Int, error)
- func (_BenqiCToken *BenqiCTokenCallerSession) Comptroller() (common.Address, error)
- func (_BenqiCToken *BenqiCTokenCallerSession) Decimals() (uint8, error)
- func (_BenqiCToken *BenqiCTokenCallerSession) DelegateToViewImplementation(data []byte) ([]byte, error)
- func (_BenqiCToken *BenqiCTokenCallerSession) ExchangeRateStored() (*big.Int, error)
- func (_BenqiCToken *BenqiCTokenCallerSession) GetAccountSnapshot(account common.Address) (*big.Int, *big.Int, *big.Int, *big.Int, error)
- func (_BenqiCToken *BenqiCTokenCallerSession) GetCash() (*big.Int, error)
- func (_BenqiCToken *BenqiCTokenCallerSession) Implementation() (common.Address, error)
- func (_BenqiCToken *BenqiCTokenCallerSession) InterestRateModel() (common.Address, error)
- func (_BenqiCToken *BenqiCTokenCallerSession) IsQiToken() (bool, error)
- func (_BenqiCToken *BenqiCTokenCallerSession) Name() (string, error)
- func (_BenqiCToken *BenqiCTokenCallerSession) PendingAdmin() (common.Address, error)
- func (_BenqiCToken *BenqiCTokenCallerSession) ProtocolSeizeShareMantissa() (*big.Int, error)
- func (_BenqiCToken *BenqiCTokenCallerSession) ReserveFactorMantissa() (*big.Int, error)
- func (_BenqiCToken *BenqiCTokenCallerSession) SupplyRatePerTimestamp() (*big.Int, error)
- func (_BenqiCToken *BenqiCTokenCallerSession) Symbol() (string, error)
- func (_BenqiCToken *BenqiCTokenCallerSession) TotalBorrows() (*big.Int, error)
- func (_BenqiCToken *BenqiCTokenCallerSession) TotalReserves() (*big.Int, error)
- func (_BenqiCToken *BenqiCTokenCallerSession) TotalSupply() (*big.Int, error)
- func (_BenqiCToken *BenqiCTokenCallerSession) Underlying() (common.Address, error)
- type BenqiCTokenFilterer
- type BenqiCTokenRaw
- func (_BenqiCToken *BenqiCTokenRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_BenqiCToken *BenqiCTokenRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_BenqiCToken *BenqiCTokenRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type BenqiCTokenSession
- func (_BenqiCToken *BenqiCTokenSession) AcceptAdmin() (*types.Transaction, error)
- func (_BenqiCToken *BenqiCTokenSession) AccrualBlockTimestamp() (*big.Int, error)
- func (_BenqiCToken *BenqiCTokenSession) AccrueInterest() (*types.Transaction, error)
- func (_BenqiCToken *BenqiCTokenSession) AddReserves(addAmount *big.Int) (*types.Transaction, error)
- func (_BenqiCToken *BenqiCTokenSession) Admin() (common.Address, error)
- func (_BenqiCToken *BenqiCTokenSession) Allowance(owner common.Address, spender common.Address) (*big.Int, error)
- func (_BenqiCToken *BenqiCTokenSession) Approve(spender common.Address, amount *big.Int) (*types.Transaction, error)
- func (_BenqiCToken *BenqiCTokenSession) BalanceOf(owner common.Address) (*big.Int, error)
- func (_BenqiCToken *BenqiCTokenSession) BalanceOfUnderlying(owner common.Address) (*types.Transaction, error)
- func (_BenqiCToken *BenqiCTokenSession) Borrow(borrowAmount *big.Int) (*types.Transaction, error)
- func (_BenqiCToken *BenqiCTokenSession) BorrowBalanceCurrent(account common.Address) (*types.Transaction, error)
- func (_BenqiCToken *BenqiCTokenSession) BorrowBalanceStored(account common.Address) (*big.Int, error)
- func (_BenqiCToken *BenqiCTokenSession) BorrowIndex() (*big.Int, error)
- func (_BenqiCToken *BenqiCTokenSession) BorrowRatePerTimestamp() (*big.Int, error)
- func (_BenqiCToken *BenqiCTokenSession) Comptroller() (common.Address, error)
- func (_BenqiCToken *BenqiCTokenSession) Decimals() (uint8, error)
- func (_BenqiCToken *BenqiCTokenSession) DelegateToImplementation(data []byte) (*types.Transaction, error)
- func (_BenqiCToken *BenqiCTokenSession) DelegateToViewImplementation(data []byte) ([]byte, error)
- func (_BenqiCToken *BenqiCTokenSession) ExchangeRateCurrent() (*types.Transaction, error)
- func (_BenqiCToken *BenqiCTokenSession) ExchangeRateStored() (*big.Int, error)
- func (_BenqiCToken *BenqiCTokenSession) GetAccountSnapshot(account common.Address) (*big.Int, *big.Int, *big.Int, *big.Int, error)
- func (_BenqiCToken *BenqiCTokenSession) GetCash() (*big.Int, error)
- func (_BenqiCToken *BenqiCTokenSession) Implementation() (common.Address, error)
- func (_BenqiCToken *BenqiCTokenSession) InterestRateModel() (common.Address, error)
- func (_BenqiCToken *BenqiCTokenSession) IsQiToken() (bool, error)
- func (_BenqiCToken *BenqiCTokenSession) LiquidateBorrow(borrower common.Address, repayAmount *big.Int, ...) (*types.Transaction, error)
- func (_BenqiCToken *BenqiCTokenSession) Mint(mintAmount *big.Int) (*types.Transaction, error)
- func (_BenqiCToken *BenqiCTokenSession) Name() (string, error)
- func (_BenqiCToken *BenqiCTokenSession) PendingAdmin() (common.Address, error)
- func (_BenqiCToken *BenqiCTokenSession) ProtocolSeizeShareMantissa() (*big.Int, error)
- func (_BenqiCToken *BenqiCTokenSession) Redeem(redeemTokens *big.Int) (*types.Transaction, error)
- func (_BenqiCToken *BenqiCTokenSession) RedeemUnderlying(redeemAmount *big.Int) (*types.Transaction, error)
- func (_BenqiCToken *BenqiCTokenSession) ReduceReserves(reduceAmount *big.Int) (*types.Transaction, error)
- func (_BenqiCToken *BenqiCTokenSession) RepayBorrow(repayAmount *big.Int) (*types.Transaction, error)
- func (_BenqiCToken *BenqiCTokenSession) RepayBorrowBehalf(borrower common.Address, repayAmount *big.Int) (*types.Transaction, error)
- func (_BenqiCToken *BenqiCTokenSession) ReserveFactorMantissa() (*big.Int, error)
- func (_BenqiCToken *BenqiCTokenSession) Seize(liquidator common.Address, borrower common.Address, seizeTokens *big.Int) (*types.Transaction, error)
- func (_BenqiCToken *BenqiCTokenSession) SetComptroller(newComptroller common.Address) (*types.Transaction, error)
- func (_BenqiCToken *BenqiCTokenSession) SetImplementation(implementation_ common.Address, allowResign bool, ...) (*types.Transaction, error)
- func (_BenqiCToken *BenqiCTokenSession) SetInterestRateModel(newInterestRateModel common.Address) (*types.Transaction, error)
- func (_BenqiCToken *BenqiCTokenSession) SetPendingAdmin(newPendingAdmin common.Address) (*types.Transaction, error)
- func (_BenqiCToken *BenqiCTokenSession) SetProtocolSeizeShare(newProtocolSeizeShareMantissa *big.Int) (*types.Transaction, error)
- func (_BenqiCToken *BenqiCTokenSession) SetReserveFactor(newReserveFactorMantissa *big.Int) (*types.Transaction, error)
- func (_BenqiCToken *BenqiCTokenSession) SupplyRatePerTimestamp() (*big.Int, error)
- func (_BenqiCToken *BenqiCTokenSession) SweepToken(token common.Address) (*types.Transaction, error)
- func (_BenqiCToken *BenqiCTokenSession) Symbol() (string, error)
- func (_BenqiCToken *BenqiCTokenSession) TotalBorrows() (*big.Int, error)
- func (_BenqiCToken *BenqiCTokenSession) TotalBorrowsCurrent() (*types.Transaction, error)
- func (_BenqiCToken *BenqiCTokenSession) TotalReserves() (*big.Int, error)
- func (_BenqiCToken *BenqiCTokenSession) TotalSupply() (*big.Int, error)
- func (_BenqiCToken *BenqiCTokenSession) Transfer(dst common.Address, amount *big.Int) (*types.Transaction, error)
- func (_BenqiCToken *BenqiCTokenSession) TransferFrom(src common.Address, dst common.Address, amount *big.Int) (*types.Transaction, error)
- func (_BenqiCToken *BenqiCTokenSession) Underlying() (common.Address, error)
- type BenqiCTokenTransactor
- func (_BenqiCToken *BenqiCTokenTransactor) AcceptAdmin(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_BenqiCToken *BenqiCTokenTransactor) AccrueInterest(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_BenqiCToken *BenqiCTokenTransactor) AddReserves(opts *bind.TransactOpts, addAmount *big.Int) (*types.Transaction, error)
- func (_BenqiCToken *BenqiCTokenTransactor) Approve(opts *bind.TransactOpts, spender common.Address, amount *big.Int) (*types.Transaction, error)
- func (_BenqiCToken *BenqiCTokenTransactor) BalanceOfUnderlying(opts *bind.TransactOpts, owner common.Address) (*types.Transaction, error)
- func (_BenqiCToken *BenqiCTokenTransactor) Borrow(opts *bind.TransactOpts, borrowAmount *big.Int) (*types.Transaction, error)
- func (_BenqiCToken *BenqiCTokenTransactor) BorrowBalanceCurrent(opts *bind.TransactOpts, account common.Address) (*types.Transaction, error)
- func (_BenqiCToken *BenqiCTokenTransactor) DelegateToImplementation(opts *bind.TransactOpts, data []byte) (*types.Transaction, error)
- func (_BenqiCToken *BenqiCTokenTransactor) ExchangeRateCurrent(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_BenqiCToken *BenqiCTokenTransactor) LiquidateBorrow(opts *bind.TransactOpts, borrower common.Address, repayAmount *big.Int, ...) (*types.Transaction, error)
- func (_BenqiCToken *BenqiCTokenTransactor) Mint(opts *bind.TransactOpts, mintAmount *big.Int) (*types.Transaction, error)
- func (_BenqiCToken *BenqiCTokenTransactor) Redeem(opts *bind.TransactOpts, redeemTokens *big.Int) (*types.Transaction, error)
- func (_BenqiCToken *BenqiCTokenTransactor) RedeemUnderlying(opts *bind.TransactOpts, redeemAmount *big.Int) (*types.Transaction, error)
- func (_BenqiCToken *BenqiCTokenTransactor) ReduceReserves(opts *bind.TransactOpts, reduceAmount *big.Int) (*types.Transaction, error)
- func (_BenqiCToken *BenqiCTokenTransactor) RepayBorrow(opts *bind.TransactOpts, repayAmount *big.Int) (*types.Transaction, error)
- func (_BenqiCToken *BenqiCTokenTransactor) RepayBorrowBehalf(opts *bind.TransactOpts, borrower common.Address, repayAmount *big.Int) (*types.Transaction, error)
- func (_BenqiCToken *BenqiCTokenTransactor) Seize(opts *bind.TransactOpts, liquidator common.Address, borrower common.Address, ...) (*types.Transaction, error)
- func (_BenqiCToken *BenqiCTokenTransactor) SetComptroller(opts *bind.TransactOpts, newComptroller common.Address) (*types.Transaction, error)
- func (_BenqiCToken *BenqiCTokenTransactor) SetImplementation(opts *bind.TransactOpts, implementation_ common.Address, allowResign bool, ...) (*types.Transaction, error)
- func (_BenqiCToken *BenqiCTokenTransactor) SetInterestRateModel(opts *bind.TransactOpts, newInterestRateModel common.Address) (*types.Transaction, error)
- func (_BenqiCToken *BenqiCTokenTransactor) SetPendingAdmin(opts *bind.TransactOpts, newPendingAdmin common.Address) (*types.Transaction, error)
- func (_BenqiCToken *BenqiCTokenTransactor) SetProtocolSeizeShare(opts *bind.TransactOpts, newProtocolSeizeShareMantissa *big.Int) (*types.Transaction, error)
- func (_BenqiCToken *BenqiCTokenTransactor) SetReserveFactor(opts *bind.TransactOpts, newReserveFactorMantissa *big.Int) (*types.Transaction, error)
- func (_BenqiCToken *BenqiCTokenTransactor) SweepToken(opts *bind.TransactOpts, token common.Address) (*types.Transaction, error)
- func (_BenqiCToken *BenqiCTokenTransactor) TotalBorrowsCurrent(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_BenqiCToken *BenqiCTokenTransactor) Transfer(opts *bind.TransactOpts, dst common.Address, amount *big.Int) (*types.Transaction, error)
- func (_BenqiCToken *BenqiCTokenTransactor) TransferFrom(opts *bind.TransactOpts, src common.Address, dst common.Address, ...) (*types.Transaction, error)
- type BenqiCTokenTransactorRaw
- type BenqiCTokenTransactorSession
- func (_BenqiCToken *BenqiCTokenTransactorSession) AcceptAdmin() (*types.Transaction, error)
- func (_BenqiCToken *BenqiCTokenTransactorSession) AccrueInterest() (*types.Transaction, error)
- func (_BenqiCToken *BenqiCTokenTransactorSession) AddReserves(addAmount *big.Int) (*types.Transaction, error)
- func (_BenqiCToken *BenqiCTokenTransactorSession) Approve(spender common.Address, amount *big.Int) (*types.Transaction, error)
- func (_BenqiCToken *BenqiCTokenTransactorSession) BalanceOfUnderlying(owner common.Address) (*types.Transaction, error)
- func (_BenqiCToken *BenqiCTokenTransactorSession) Borrow(borrowAmount *big.Int) (*types.Transaction, error)
- func (_BenqiCToken *BenqiCTokenTransactorSession) BorrowBalanceCurrent(account common.Address) (*types.Transaction, error)
- func (_BenqiCToken *BenqiCTokenTransactorSession) DelegateToImplementation(data []byte) (*types.Transaction, error)
- func (_BenqiCToken *BenqiCTokenTransactorSession) ExchangeRateCurrent() (*types.Transaction, error)
- func (_BenqiCToken *BenqiCTokenTransactorSession) LiquidateBorrow(borrower common.Address, repayAmount *big.Int, ...) (*types.Transaction, error)
- func (_BenqiCToken *BenqiCTokenTransactorSession) Mint(mintAmount *big.Int) (*types.Transaction, error)
- func (_BenqiCToken *BenqiCTokenTransactorSession) Redeem(redeemTokens *big.Int) (*types.Transaction, error)
- func (_BenqiCToken *BenqiCTokenTransactorSession) RedeemUnderlying(redeemAmount *big.Int) (*types.Transaction, error)
- func (_BenqiCToken *BenqiCTokenTransactorSession) ReduceReserves(reduceAmount *big.Int) (*types.Transaction, error)
- func (_BenqiCToken *BenqiCTokenTransactorSession) RepayBorrow(repayAmount *big.Int) (*types.Transaction, error)
- func (_BenqiCToken *BenqiCTokenTransactorSession) RepayBorrowBehalf(borrower common.Address, repayAmount *big.Int) (*types.Transaction, error)
- func (_BenqiCToken *BenqiCTokenTransactorSession) Seize(liquidator common.Address, borrower common.Address, seizeTokens *big.Int) (*types.Transaction, error)
- func (_BenqiCToken *BenqiCTokenTransactorSession) SetComptroller(newComptroller common.Address) (*types.Transaction, error)
- func (_BenqiCToken *BenqiCTokenTransactorSession) SetImplementation(implementation_ common.Address, allowResign bool, ...) (*types.Transaction, error)
- func (_BenqiCToken *BenqiCTokenTransactorSession) SetInterestRateModel(newInterestRateModel common.Address) (*types.Transaction, error)
- func (_BenqiCToken *BenqiCTokenTransactorSession) SetPendingAdmin(newPendingAdmin common.Address) (*types.Transaction, error)
- func (_BenqiCToken *BenqiCTokenTransactorSession) SetProtocolSeizeShare(newProtocolSeizeShareMantissa *big.Int) (*types.Transaction, error)
- func (_BenqiCToken *BenqiCTokenTransactorSession) SetReserveFactor(newReserveFactorMantissa *big.Int) (*types.Transaction, error)
- func (_BenqiCToken *BenqiCTokenTransactorSession) SweepToken(token common.Address) (*types.Transaction, error)
- func (_BenqiCToken *BenqiCTokenTransactorSession) TotalBorrowsCurrent() (*types.Transaction, error)
- func (_BenqiCToken *BenqiCTokenTransactorSession) Transfer(dst common.Address, amount *big.Int) (*types.Transaction, error)
- func (_BenqiCToken *BenqiCTokenTransactorSession) TransferFrom(src common.Address, dst common.Address, amount *big.Int) (*types.Transaction, error)
Constants ¶
This section is empty.
Variables ¶
var BenqiCTokenABI = BenqiCTokenMetaData.ABI
BenqiCTokenABI is the input ABI used to generate the binding from. Deprecated: Use BenqiCTokenMetaData.ABI instead.
var BenqiCTokenMetaData = &bind.MetaData{
ABI: "[{\"inputs\":[],\"name\":\"_acceptAdmin\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"addAmount\",\"type\":\"uint256\"}],\"name\":\"_addReserves\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"reduceAmount\",\"type\":\"uint256\"}],\"name\":\"_reduceReserves\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newComptroller\",\"type\":\"address\"}],\"name\":\"_setComptroller\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"implementation_\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"allowResign\",\"type\":\"bool\"},{\"internalType\":\"bytes\",\"name\":\"becomeImplementationData\",\"type\":\"bytes\"}],\"name\":\"_setImplementation\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newInterestRateModel\",\"type\":\"address\"}],\"name\":\"_setInterestRateModel\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newPendingAdmin\",\"type\":\"address\"}],\"name\":\"_setPendingAdmin\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"newProtocolSeizeShareMantissa\",\"type\":\"uint256\"}],\"name\":\"_setProtocolSeizeShare\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"newReserveFactorMantissa\",\"type\":\"uint256\"}],\"name\":\"_setReserveFactor\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"accrualBlockTimestamp\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"accrueInterest\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"admin\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"}],\"name\":\"allowance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"approve\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"balanceOfUnderlying\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"borrowAmount\",\"type\":\"uint256\"}],\"name\":\"borrow\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"borrowBalanceCurrent\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"borrowBalanceStored\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"borrowIndex\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"borrowRatePerTimestamp\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"comptroller\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"decimals\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"delegateToImplementation\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"delegateToViewImplementation\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"exchangeRateCurrent\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"exchangeRateStored\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"getAccountSnapshot\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getCash\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"implementation\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"interestRateModel\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"isQiToken\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"borrower\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"repayAmount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"qiTokenCollateral\",\"type\":\"address\"}],\"name\":\"liquidateBorrow\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"mintAmount\",\"type\":\"uint256\"}],\"name\":\"mint\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"name\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pendingAdmin\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"protocolSeizeShareMantissa\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"redeemTokens\",\"type\":\"uint256\"}],\"name\":\"redeem\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"redeemAmount\",\"type\":\"uint256\"}],\"name\":\"redeemUnderlying\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"repayAmount\",\"type\":\"uint256\"}],\"name\":\"repayBorrow\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"borrower\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"repayAmount\",\"type\":\"uint256\"}],\"name\":\"repayBorrowBehalf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"reserveFactorMantissa\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"liquidator\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"borrower\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"seizeTokens\",\"type\":\"uint256\"}],\"name\":\"seize\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"supplyRatePerTimestamp\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"}],\"name\":\"sweepToken\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"symbol\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalBorrows\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalBorrowsCurrent\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalReserves\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalSupply\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"dst\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"transfer\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"src\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"dst\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"transferFrom\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"underlying\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
}
BenqiCTokenMetaData contains all meta data concerning the BenqiCToken contract.
Functions ¶
This section is empty.
Types ¶
type BenqiCToken ¶
type BenqiCToken struct { BenqiCTokenCaller // Read-only binding to the contract BenqiCTokenTransactor // Write-only binding to the contract BenqiCTokenFilterer // Log filterer for contract events }
BenqiCToken is an auto generated Go binding around an Ethereum contract.
func NewBenqiCToken ¶
func NewBenqiCToken(address common.Address, backend bind.ContractBackend) (*BenqiCToken, error)
NewBenqiCToken creates a new instance of BenqiCToken, bound to a specific deployed contract.
type BenqiCTokenCaller ¶
type BenqiCTokenCaller struct {
// contains filtered or unexported fields
}
BenqiCTokenCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewBenqiCTokenCaller ¶
func NewBenqiCTokenCaller(address common.Address, caller bind.ContractCaller) (*BenqiCTokenCaller, error)
NewBenqiCTokenCaller creates a new read-only instance of BenqiCToken, bound to a specific deployed contract.
func (*BenqiCTokenCaller) AccrualBlockTimestamp ¶
AccrualBlockTimestamp is a free data retrieval call binding the contract method 0xcfa99201.
Solidity: function accrualBlockTimestamp() view returns(uint256)
func (*BenqiCTokenCaller) Admin ¶
Admin is a free data retrieval call binding the contract method 0xf851a440.
Solidity: function admin() view returns(address)
func (*BenqiCTokenCaller) Allowance ¶
func (_BenqiCToken *BenqiCTokenCaller) 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 (*BenqiCTokenCaller) BalanceOf ¶
func (_BenqiCToken *BenqiCTokenCaller) 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 (*BenqiCTokenCaller) BorrowBalanceStored ¶
func (_BenqiCToken *BenqiCTokenCaller) 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 (*BenqiCTokenCaller) BorrowIndex ¶
BorrowIndex is a free data retrieval call binding the contract method 0xaa5af0fd.
Solidity: function borrowIndex() view returns(uint256)
func (*BenqiCTokenCaller) BorrowRatePerTimestamp ¶
func (_BenqiCToken *BenqiCTokenCaller) BorrowRatePerTimestamp(opts *bind.CallOpts) (*big.Int, error)
BorrowRatePerTimestamp is a free data retrieval call binding the contract method 0xcd91801c.
Solidity: function borrowRatePerTimestamp() view returns(uint256)
func (*BenqiCTokenCaller) Comptroller ¶
Comptroller is a free data retrieval call binding the contract method 0x5fe3b567.
Solidity: function comptroller() view returns(address)
func (*BenqiCTokenCaller) Decimals ¶
func (_BenqiCToken *BenqiCTokenCaller) 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 (*BenqiCTokenCaller) DelegateToViewImplementation ¶
func (_BenqiCToken *BenqiCTokenCaller) 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 (*BenqiCTokenCaller) ExchangeRateStored ¶
ExchangeRateStored is a free data retrieval call binding the contract method 0x182df0f5.
Solidity: function exchangeRateStored() view returns(uint256)
func (*BenqiCTokenCaller) GetAccountSnapshot ¶
func (_BenqiCToken *BenqiCTokenCaller) 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 (*BenqiCTokenCaller) GetCash ¶
GetCash is a free data retrieval call binding the contract method 0x3b1d21a2.
Solidity: function getCash() view returns(uint256)
func (*BenqiCTokenCaller) Implementation ¶
Implementation is a free data retrieval call binding the contract method 0x5c60da1b.
Solidity: function implementation() view returns(address)
func (*BenqiCTokenCaller) InterestRateModel ¶
func (_BenqiCToken *BenqiCTokenCaller) 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 (*BenqiCTokenCaller) IsQiToken ¶
func (_BenqiCToken *BenqiCTokenCaller) IsQiToken(opts *bind.CallOpts) (bool, error)
IsQiToken is a free data retrieval call binding the contract method 0x840bbeac.
Solidity: function isQiToken() view returns(bool)
func (*BenqiCTokenCaller) Name ¶
func (_BenqiCToken *BenqiCTokenCaller) 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 (*BenqiCTokenCaller) PendingAdmin ¶
PendingAdmin is a free data retrieval call binding the contract method 0x26782247.
Solidity: function pendingAdmin() view returns(address)
func (*BenqiCTokenCaller) ProtocolSeizeShareMantissa ¶
func (_BenqiCToken *BenqiCTokenCaller) ProtocolSeizeShareMantissa(opts *bind.CallOpts) (*big.Int, error)
ProtocolSeizeShareMantissa is a free data retrieval call binding the contract method 0x6752e702.
Solidity: function protocolSeizeShareMantissa() view returns(uint256)
func (*BenqiCTokenCaller) ReserveFactorMantissa ¶
ReserveFactorMantissa is a free data retrieval call binding the contract method 0x173b9904.
Solidity: function reserveFactorMantissa() view returns(uint256)
func (*BenqiCTokenCaller) SupplyRatePerTimestamp ¶
func (_BenqiCToken *BenqiCTokenCaller) SupplyRatePerTimestamp(opts *bind.CallOpts) (*big.Int, error)
SupplyRatePerTimestamp is a free data retrieval call binding the contract method 0xd3bd2c72.
Solidity: function supplyRatePerTimestamp() view returns(uint256)
func (*BenqiCTokenCaller) Symbol ¶
func (_BenqiCToken *BenqiCTokenCaller) 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 (*BenqiCTokenCaller) TotalBorrows ¶
TotalBorrows is a free data retrieval call binding the contract method 0x47bd3718.
Solidity: function totalBorrows() view returns(uint256)
func (*BenqiCTokenCaller) TotalReserves ¶
TotalReserves is a free data retrieval call binding the contract method 0x8f840ddd.
Solidity: function totalReserves() view returns(uint256)
func (*BenqiCTokenCaller) TotalSupply ¶
TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.
Solidity: function totalSupply() view returns(uint256)
func (*BenqiCTokenCaller) Underlying ¶
Underlying is a free data retrieval call binding the contract method 0x6f307dc3.
Solidity: function underlying() view returns(address)
type BenqiCTokenCallerRaw ¶
type BenqiCTokenCallerRaw struct {
Contract *BenqiCTokenCaller // Generic read-only contract binding to access the raw methods on
}
BenqiCTokenCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*BenqiCTokenCallerRaw) Call ¶
func (_BenqiCToken *BenqiCTokenCallerRaw) 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 BenqiCTokenCallerSession ¶
type BenqiCTokenCallerSession struct { Contract *BenqiCTokenCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
BenqiCTokenCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*BenqiCTokenCallerSession) AccrualBlockTimestamp ¶
func (_BenqiCToken *BenqiCTokenCallerSession) AccrualBlockTimestamp() (*big.Int, error)
AccrualBlockTimestamp is a free data retrieval call binding the contract method 0xcfa99201.
Solidity: function accrualBlockTimestamp() view returns(uint256)
func (*BenqiCTokenCallerSession) Admin ¶
func (_BenqiCToken *BenqiCTokenCallerSession) Admin() (common.Address, error)
Admin is a free data retrieval call binding the contract method 0xf851a440.
Solidity: function admin() view returns(address)
func (*BenqiCTokenCallerSession) Allowance ¶
func (_BenqiCToken *BenqiCTokenCallerSession) 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 (*BenqiCTokenCallerSession) BalanceOf ¶
BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
Solidity: function balanceOf(address owner) view returns(uint256)
func (*BenqiCTokenCallerSession) BorrowBalanceStored ¶
func (_BenqiCToken *BenqiCTokenCallerSession) 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 (*BenqiCTokenCallerSession) BorrowIndex ¶
func (_BenqiCToken *BenqiCTokenCallerSession) BorrowIndex() (*big.Int, error)
BorrowIndex is a free data retrieval call binding the contract method 0xaa5af0fd.
Solidity: function borrowIndex() view returns(uint256)
func (*BenqiCTokenCallerSession) BorrowRatePerTimestamp ¶
func (_BenqiCToken *BenqiCTokenCallerSession) BorrowRatePerTimestamp() (*big.Int, error)
BorrowRatePerTimestamp is a free data retrieval call binding the contract method 0xcd91801c.
Solidity: function borrowRatePerTimestamp() view returns(uint256)
func (*BenqiCTokenCallerSession) Comptroller ¶
func (_BenqiCToken *BenqiCTokenCallerSession) Comptroller() (common.Address, error)
Comptroller is a free data retrieval call binding the contract method 0x5fe3b567.
Solidity: function comptroller() view returns(address)
func (*BenqiCTokenCallerSession) Decimals ¶
func (_BenqiCToken *BenqiCTokenCallerSession) Decimals() (uint8, error)
Decimals is a free data retrieval call binding the contract method 0x313ce567.
Solidity: function decimals() view returns(uint8)
func (*BenqiCTokenCallerSession) DelegateToViewImplementation ¶
func (_BenqiCToken *BenqiCTokenCallerSession) 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 (*BenqiCTokenCallerSession) ExchangeRateStored ¶
func (_BenqiCToken *BenqiCTokenCallerSession) ExchangeRateStored() (*big.Int, error)
ExchangeRateStored is a free data retrieval call binding the contract method 0x182df0f5.
Solidity: function exchangeRateStored() view returns(uint256)
func (*BenqiCTokenCallerSession) GetAccountSnapshot ¶
func (_BenqiCToken *BenqiCTokenCallerSession) 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 (*BenqiCTokenCallerSession) GetCash ¶
func (_BenqiCToken *BenqiCTokenCallerSession) GetCash() (*big.Int, error)
GetCash is a free data retrieval call binding the contract method 0x3b1d21a2.
Solidity: function getCash() view returns(uint256)
func (*BenqiCTokenCallerSession) Implementation ¶
func (_BenqiCToken *BenqiCTokenCallerSession) Implementation() (common.Address, error)
Implementation is a free data retrieval call binding the contract method 0x5c60da1b.
Solidity: function implementation() view returns(address)
func (*BenqiCTokenCallerSession) InterestRateModel ¶
func (_BenqiCToken *BenqiCTokenCallerSession) InterestRateModel() (common.Address, error)
InterestRateModel is a free data retrieval call binding the contract method 0xf3fdb15a.
Solidity: function interestRateModel() view returns(address)
func (*BenqiCTokenCallerSession) IsQiToken ¶
func (_BenqiCToken *BenqiCTokenCallerSession) IsQiToken() (bool, error)
IsQiToken is a free data retrieval call binding the contract method 0x840bbeac.
Solidity: function isQiToken() view returns(bool)
func (*BenqiCTokenCallerSession) Name ¶
func (_BenqiCToken *BenqiCTokenCallerSession) Name() (string, error)
Name is a free data retrieval call binding the contract method 0x06fdde03.
Solidity: function name() view returns(string)
func (*BenqiCTokenCallerSession) PendingAdmin ¶
func (_BenqiCToken *BenqiCTokenCallerSession) PendingAdmin() (common.Address, error)
PendingAdmin is a free data retrieval call binding the contract method 0x26782247.
Solidity: function pendingAdmin() view returns(address)
func (*BenqiCTokenCallerSession) ProtocolSeizeShareMantissa ¶
func (_BenqiCToken *BenqiCTokenCallerSession) ProtocolSeizeShareMantissa() (*big.Int, error)
ProtocolSeizeShareMantissa is a free data retrieval call binding the contract method 0x6752e702.
Solidity: function protocolSeizeShareMantissa() view returns(uint256)
func (*BenqiCTokenCallerSession) ReserveFactorMantissa ¶
func (_BenqiCToken *BenqiCTokenCallerSession) ReserveFactorMantissa() (*big.Int, error)
ReserveFactorMantissa is a free data retrieval call binding the contract method 0x173b9904.
Solidity: function reserveFactorMantissa() view returns(uint256)
func (*BenqiCTokenCallerSession) SupplyRatePerTimestamp ¶
func (_BenqiCToken *BenqiCTokenCallerSession) SupplyRatePerTimestamp() (*big.Int, error)
SupplyRatePerTimestamp is a free data retrieval call binding the contract method 0xd3bd2c72.
Solidity: function supplyRatePerTimestamp() view returns(uint256)
func (*BenqiCTokenCallerSession) Symbol ¶
func (_BenqiCToken *BenqiCTokenCallerSession) Symbol() (string, error)
Symbol is a free data retrieval call binding the contract method 0x95d89b41.
Solidity: function symbol() view returns(string)
func (*BenqiCTokenCallerSession) TotalBorrows ¶
func (_BenqiCToken *BenqiCTokenCallerSession) TotalBorrows() (*big.Int, error)
TotalBorrows is a free data retrieval call binding the contract method 0x47bd3718.
Solidity: function totalBorrows() view returns(uint256)
func (*BenqiCTokenCallerSession) TotalReserves ¶
func (_BenqiCToken *BenqiCTokenCallerSession) TotalReserves() (*big.Int, error)
TotalReserves is a free data retrieval call binding the contract method 0x8f840ddd.
Solidity: function totalReserves() view returns(uint256)
func (*BenqiCTokenCallerSession) TotalSupply ¶
func (_BenqiCToken *BenqiCTokenCallerSession) TotalSupply() (*big.Int, error)
TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.
Solidity: function totalSupply() view returns(uint256)
func (*BenqiCTokenCallerSession) Underlying ¶
func (_BenqiCToken *BenqiCTokenCallerSession) Underlying() (common.Address, error)
Underlying is a free data retrieval call binding the contract method 0x6f307dc3.
Solidity: function underlying() view returns(address)
type BenqiCTokenFilterer ¶
type BenqiCTokenFilterer struct {
// contains filtered or unexported fields
}
BenqiCTokenFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewBenqiCTokenFilterer ¶
func NewBenqiCTokenFilterer(address common.Address, filterer bind.ContractFilterer) (*BenqiCTokenFilterer, error)
NewBenqiCTokenFilterer creates a new log filterer instance of BenqiCToken, bound to a specific deployed contract.
type BenqiCTokenRaw ¶
type BenqiCTokenRaw struct {
Contract *BenqiCToken // Generic contract binding to access the raw methods on
}
BenqiCTokenRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*BenqiCTokenRaw) Call ¶
func (_BenqiCToken *BenqiCTokenRaw) 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 (*BenqiCTokenRaw) Transact ¶
func (_BenqiCToken *BenqiCTokenRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*BenqiCTokenRaw) Transfer ¶
func (_BenqiCToken *BenqiCTokenRaw) 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 BenqiCTokenSession ¶
type BenqiCTokenSession struct { Contract *BenqiCToken // 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 }
BenqiCTokenSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*BenqiCTokenSession) AcceptAdmin ¶
func (_BenqiCToken *BenqiCTokenSession) AcceptAdmin() (*types.Transaction, error)
AcceptAdmin is a paid mutator transaction binding the contract method 0xe9c714f2.
Solidity: function _acceptAdmin() returns(uint256)
func (*BenqiCTokenSession) AccrualBlockTimestamp ¶
func (_BenqiCToken *BenqiCTokenSession) AccrualBlockTimestamp() (*big.Int, error)
AccrualBlockTimestamp is a free data retrieval call binding the contract method 0xcfa99201.
Solidity: function accrualBlockTimestamp() view returns(uint256)
func (*BenqiCTokenSession) AccrueInterest ¶
func (_BenqiCToken *BenqiCTokenSession) AccrueInterest() (*types.Transaction, error)
AccrueInterest is a paid mutator transaction binding the contract method 0xa6afed95.
Solidity: function accrueInterest() returns(uint256)
func (*BenqiCTokenSession) AddReserves ¶
func (_BenqiCToken *BenqiCTokenSession) 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 (*BenqiCTokenSession) Admin ¶
func (_BenqiCToken *BenqiCTokenSession) Admin() (common.Address, error)
Admin is a free data retrieval call binding the contract method 0xf851a440.
Solidity: function admin() view returns(address)
func (*BenqiCTokenSession) Allowance ¶
func (_BenqiCToken *BenqiCTokenSession) 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 (*BenqiCTokenSession) Approve ¶
func (_BenqiCToken *BenqiCTokenSession) 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 (*BenqiCTokenSession) BalanceOf ¶
BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
Solidity: function balanceOf(address owner) view returns(uint256)
func (*BenqiCTokenSession) BalanceOfUnderlying ¶
func (_BenqiCToken *BenqiCTokenSession) 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 (*BenqiCTokenSession) Borrow ¶
func (_BenqiCToken *BenqiCTokenSession) 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 (*BenqiCTokenSession) BorrowBalanceCurrent ¶
func (_BenqiCToken *BenqiCTokenSession) 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 (*BenqiCTokenSession) BorrowBalanceStored ¶
func (_BenqiCToken *BenqiCTokenSession) 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 (*BenqiCTokenSession) BorrowIndex ¶
func (_BenqiCToken *BenqiCTokenSession) BorrowIndex() (*big.Int, error)
BorrowIndex is a free data retrieval call binding the contract method 0xaa5af0fd.
Solidity: function borrowIndex() view returns(uint256)
func (*BenqiCTokenSession) BorrowRatePerTimestamp ¶
func (_BenqiCToken *BenqiCTokenSession) BorrowRatePerTimestamp() (*big.Int, error)
BorrowRatePerTimestamp is a free data retrieval call binding the contract method 0xcd91801c.
Solidity: function borrowRatePerTimestamp() view returns(uint256)
func (*BenqiCTokenSession) Comptroller ¶
func (_BenqiCToken *BenqiCTokenSession) Comptroller() (common.Address, error)
Comptroller is a free data retrieval call binding the contract method 0x5fe3b567.
Solidity: function comptroller() view returns(address)
func (*BenqiCTokenSession) Decimals ¶
func (_BenqiCToken *BenqiCTokenSession) Decimals() (uint8, error)
Decimals is a free data retrieval call binding the contract method 0x313ce567.
Solidity: function decimals() view returns(uint8)
func (*BenqiCTokenSession) DelegateToImplementation ¶
func (_BenqiCToken *BenqiCTokenSession) 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 (*BenqiCTokenSession) DelegateToViewImplementation ¶
func (_BenqiCToken *BenqiCTokenSession) 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 (*BenqiCTokenSession) ExchangeRateCurrent ¶
func (_BenqiCToken *BenqiCTokenSession) ExchangeRateCurrent() (*types.Transaction, error)
ExchangeRateCurrent is a paid mutator transaction binding the contract method 0xbd6d894d.
Solidity: function exchangeRateCurrent() returns(uint256)
func (*BenqiCTokenSession) ExchangeRateStored ¶
func (_BenqiCToken *BenqiCTokenSession) ExchangeRateStored() (*big.Int, error)
ExchangeRateStored is a free data retrieval call binding the contract method 0x182df0f5.
Solidity: function exchangeRateStored() view returns(uint256)
func (*BenqiCTokenSession) GetAccountSnapshot ¶
func (_BenqiCToken *BenqiCTokenSession) 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 (*BenqiCTokenSession) GetCash ¶
func (_BenqiCToken *BenqiCTokenSession) GetCash() (*big.Int, error)
GetCash is a free data retrieval call binding the contract method 0x3b1d21a2.
Solidity: function getCash() view returns(uint256)
func (*BenqiCTokenSession) Implementation ¶
func (_BenqiCToken *BenqiCTokenSession) Implementation() (common.Address, error)
Implementation is a free data retrieval call binding the contract method 0x5c60da1b.
Solidity: function implementation() view returns(address)
func (*BenqiCTokenSession) InterestRateModel ¶
func (_BenqiCToken *BenqiCTokenSession) InterestRateModel() (common.Address, error)
InterestRateModel is a free data retrieval call binding the contract method 0xf3fdb15a.
Solidity: function interestRateModel() view returns(address)
func (*BenqiCTokenSession) IsQiToken ¶
func (_BenqiCToken *BenqiCTokenSession) IsQiToken() (bool, error)
IsQiToken is a free data retrieval call binding the contract method 0x840bbeac.
Solidity: function isQiToken() view returns(bool)
func (*BenqiCTokenSession) LiquidateBorrow ¶
func (_BenqiCToken *BenqiCTokenSession) LiquidateBorrow(borrower common.Address, repayAmount *big.Int, qiTokenCollateral common.Address) (*types.Transaction, error)
LiquidateBorrow is a paid mutator transaction binding the contract method 0xf5e3c462.
Solidity: function liquidateBorrow(address borrower, uint256 repayAmount, address qiTokenCollateral) returns(uint256)
func (*BenqiCTokenSession) Mint ¶
func (_BenqiCToken *BenqiCTokenSession) 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 (*BenqiCTokenSession) Name ¶
func (_BenqiCToken *BenqiCTokenSession) Name() (string, error)
Name is a free data retrieval call binding the contract method 0x06fdde03.
Solidity: function name() view returns(string)
func (*BenqiCTokenSession) PendingAdmin ¶
func (_BenqiCToken *BenqiCTokenSession) PendingAdmin() (common.Address, error)
PendingAdmin is a free data retrieval call binding the contract method 0x26782247.
Solidity: function pendingAdmin() view returns(address)
func (*BenqiCTokenSession) ProtocolSeizeShareMantissa ¶
func (_BenqiCToken *BenqiCTokenSession) ProtocolSeizeShareMantissa() (*big.Int, error)
ProtocolSeizeShareMantissa is a free data retrieval call binding the contract method 0x6752e702.
Solidity: function protocolSeizeShareMantissa() view returns(uint256)
func (*BenqiCTokenSession) Redeem ¶
func (_BenqiCToken *BenqiCTokenSession) 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 (*BenqiCTokenSession) RedeemUnderlying ¶
func (_BenqiCToken *BenqiCTokenSession) 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 (*BenqiCTokenSession) ReduceReserves ¶
func (_BenqiCToken *BenqiCTokenSession) 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 (*BenqiCTokenSession) RepayBorrow ¶
func (_BenqiCToken *BenqiCTokenSession) 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 (*BenqiCTokenSession) RepayBorrowBehalf ¶
func (_BenqiCToken *BenqiCTokenSession) 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 (*BenqiCTokenSession) ReserveFactorMantissa ¶
func (_BenqiCToken *BenqiCTokenSession) ReserveFactorMantissa() (*big.Int, error)
ReserveFactorMantissa is a free data retrieval call binding the contract method 0x173b9904.
Solidity: function reserveFactorMantissa() view returns(uint256)
func (*BenqiCTokenSession) Seize ¶
func (_BenqiCToken *BenqiCTokenSession) 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 (*BenqiCTokenSession) SetComptroller ¶
func (_BenqiCToken *BenqiCTokenSession) 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 (*BenqiCTokenSession) SetImplementation ¶
func (_BenqiCToken *BenqiCTokenSession) 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 (*BenqiCTokenSession) SetInterestRateModel ¶
func (_BenqiCToken *BenqiCTokenSession) 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 (*BenqiCTokenSession) SetPendingAdmin ¶
func (_BenqiCToken *BenqiCTokenSession) 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 (*BenqiCTokenSession) SetProtocolSeizeShare ¶
func (_BenqiCToken *BenqiCTokenSession) SetProtocolSeizeShare(newProtocolSeizeShareMantissa *big.Int) (*types.Transaction, error)
SetProtocolSeizeShare is a paid mutator transaction binding the contract method 0x83030846.
Solidity: function _setProtocolSeizeShare(uint256 newProtocolSeizeShareMantissa) returns(uint256)
func (*BenqiCTokenSession) SetReserveFactor ¶
func (_BenqiCToken *BenqiCTokenSession) 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 (*BenqiCTokenSession) SupplyRatePerTimestamp ¶
func (_BenqiCToken *BenqiCTokenSession) SupplyRatePerTimestamp() (*big.Int, error)
SupplyRatePerTimestamp is a free data retrieval call binding the contract method 0xd3bd2c72.
Solidity: function supplyRatePerTimestamp() view returns(uint256)
func (*BenqiCTokenSession) SweepToken ¶
func (_BenqiCToken *BenqiCTokenSession) SweepToken(token common.Address) (*types.Transaction, error)
SweepToken is a paid mutator transaction binding the contract method 0x1be19560.
Solidity: function sweepToken(address token) returns()
func (*BenqiCTokenSession) Symbol ¶
func (_BenqiCToken *BenqiCTokenSession) Symbol() (string, error)
Symbol is a free data retrieval call binding the contract method 0x95d89b41.
Solidity: function symbol() view returns(string)
func (*BenqiCTokenSession) TotalBorrows ¶
func (_BenqiCToken *BenqiCTokenSession) TotalBorrows() (*big.Int, error)
TotalBorrows is a free data retrieval call binding the contract method 0x47bd3718.
Solidity: function totalBorrows() view returns(uint256)
func (*BenqiCTokenSession) TotalBorrowsCurrent ¶
func (_BenqiCToken *BenqiCTokenSession) TotalBorrowsCurrent() (*types.Transaction, error)
TotalBorrowsCurrent is a paid mutator transaction binding the contract method 0x73acee98.
Solidity: function totalBorrowsCurrent() returns(uint256)
func (*BenqiCTokenSession) TotalReserves ¶
func (_BenqiCToken *BenqiCTokenSession) TotalReserves() (*big.Int, error)
TotalReserves is a free data retrieval call binding the contract method 0x8f840ddd.
Solidity: function totalReserves() view returns(uint256)
func (*BenqiCTokenSession) TotalSupply ¶
func (_BenqiCToken *BenqiCTokenSession) TotalSupply() (*big.Int, error)
TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.
Solidity: function totalSupply() view returns(uint256)
func (*BenqiCTokenSession) Transfer ¶
func (_BenqiCToken *BenqiCTokenSession) 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 (*BenqiCTokenSession) TransferFrom ¶
func (_BenqiCToken *BenqiCTokenSession) 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 (*BenqiCTokenSession) Underlying ¶
func (_BenqiCToken *BenqiCTokenSession) Underlying() (common.Address, error)
Underlying is a free data retrieval call binding the contract method 0x6f307dc3.
Solidity: function underlying() view returns(address)
type BenqiCTokenTransactor ¶
type BenqiCTokenTransactor struct {
// contains filtered or unexported fields
}
BenqiCTokenTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewBenqiCTokenTransactor ¶
func NewBenqiCTokenTransactor(address common.Address, transactor bind.ContractTransactor) (*BenqiCTokenTransactor, error)
NewBenqiCTokenTransactor creates a new write-only instance of BenqiCToken, bound to a specific deployed contract.
func (*BenqiCTokenTransactor) AcceptAdmin ¶
func (_BenqiCToken *BenqiCTokenTransactor) AcceptAdmin(opts *bind.TransactOpts) (*types.Transaction, error)
AcceptAdmin is a paid mutator transaction binding the contract method 0xe9c714f2.
Solidity: function _acceptAdmin() returns(uint256)
func (*BenqiCTokenTransactor) AccrueInterest ¶
func (_BenqiCToken *BenqiCTokenTransactor) AccrueInterest(opts *bind.TransactOpts) (*types.Transaction, error)
AccrueInterest is a paid mutator transaction binding the contract method 0xa6afed95.
Solidity: function accrueInterest() returns(uint256)
func (*BenqiCTokenTransactor) AddReserves ¶
func (_BenqiCToken *BenqiCTokenTransactor) 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 (*BenqiCTokenTransactor) Approve ¶
func (_BenqiCToken *BenqiCTokenTransactor) 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 (*BenqiCTokenTransactor) BalanceOfUnderlying ¶
func (_BenqiCToken *BenqiCTokenTransactor) 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 (*BenqiCTokenTransactor) Borrow ¶
func (_BenqiCToken *BenqiCTokenTransactor) 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 (*BenqiCTokenTransactor) BorrowBalanceCurrent ¶
func (_BenqiCToken *BenqiCTokenTransactor) 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 (*BenqiCTokenTransactor) DelegateToImplementation ¶
func (_BenqiCToken *BenqiCTokenTransactor) 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 (*BenqiCTokenTransactor) ExchangeRateCurrent ¶
func (_BenqiCToken *BenqiCTokenTransactor) ExchangeRateCurrent(opts *bind.TransactOpts) (*types.Transaction, error)
ExchangeRateCurrent is a paid mutator transaction binding the contract method 0xbd6d894d.
Solidity: function exchangeRateCurrent() returns(uint256)
func (*BenqiCTokenTransactor) LiquidateBorrow ¶
func (_BenqiCToken *BenqiCTokenTransactor) LiquidateBorrow(opts *bind.TransactOpts, borrower common.Address, repayAmount *big.Int, qiTokenCollateral common.Address) (*types.Transaction, error)
LiquidateBorrow is a paid mutator transaction binding the contract method 0xf5e3c462.
Solidity: function liquidateBorrow(address borrower, uint256 repayAmount, address qiTokenCollateral) returns(uint256)
func (*BenqiCTokenTransactor) Mint ¶
func (_BenqiCToken *BenqiCTokenTransactor) 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 (*BenqiCTokenTransactor) Redeem ¶
func (_BenqiCToken *BenqiCTokenTransactor) 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 (*BenqiCTokenTransactor) RedeemUnderlying ¶
func (_BenqiCToken *BenqiCTokenTransactor) 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 (*BenqiCTokenTransactor) ReduceReserves ¶
func (_BenqiCToken *BenqiCTokenTransactor) 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 (*BenqiCTokenTransactor) RepayBorrow ¶
func (_BenqiCToken *BenqiCTokenTransactor) 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 (*BenqiCTokenTransactor) RepayBorrowBehalf ¶
func (_BenqiCToken *BenqiCTokenTransactor) 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 (*BenqiCTokenTransactor) Seize ¶
func (_BenqiCToken *BenqiCTokenTransactor) 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 (*BenqiCTokenTransactor) SetComptroller ¶
func (_BenqiCToken *BenqiCTokenTransactor) 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 (*BenqiCTokenTransactor) SetImplementation ¶
func (_BenqiCToken *BenqiCTokenTransactor) 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 (*BenqiCTokenTransactor) SetInterestRateModel ¶
func (_BenqiCToken *BenqiCTokenTransactor) 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 (*BenqiCTokenTransactor) SetPendingAdmin ¶
func (_BenqiCToken *BenqiCTokenTransactor) 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 (*BenqiCTokenTransactor) SetProtocolSeizeShare ¶
func (_BenqiCToken *BenqiCTokenTransactor) SetProtocolSeizeShare(opts *bind.TransactOpts, newProtocolSeizeShareMantissa *big.Int) (*types.Transaction, error)
SetProtocolSeizeShare is a paid mutator transaction binding the contract method 0x83030846.
Solidity: function _setProtocolSeizeShare(uint256 newProtocolSeizeShareMantissa) returns(uint256)
func (*BenqiCTokenTransactor) SetReserveFactor ¶
func (_BenqiCToken *BenqiCTokenTransactor) 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 (*BenqiCTokenTransactor) SweepToken ¶
func (_BenqiCToken *BenqiCTokenTransactor) SweepToken(opts *bind.TransactOpts, token common.Address) (*types.Transaction, error)
SweepToken is a paid mutator transaction binding the contract method 0x1be19560.
Solidity: function sweepToken(address token) returns()
func (*BenqiCTokenTransactor) TotalBorrowsCurrent ¶
func (_BenqiCToken *BenqiCTokenTransactor) TotalBorrowsCurrent(opts *bind.TransactOpts) (*types.Transaction, error)
TotalBorrowsCurrent is a paid mutator transaction binding the contract method 0x73acee98.
Solidity: function totalBorrowsCurrent() returns(uint256)
func (*BenqiCTokenTransactor) Transfer ¶
func (_BenqiCToken *BenqiCTokenTransactor) 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 (*BenqiCTokenTransactor) TransferFrom ¶
func (_BenqiCToken *BenqiCTokenTransactor) 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 BenqiCTokenTransactorRaw ¶
type BenqiCTokenTransactorRaw struct {
Contract *BenqiCTokenTransactor // Generic write-only contract binding to access the raw methods on
}
BenqiCTokenTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*BenqiCTokenTransactorRaw) Transact ¶
func (_BenqiCToken *BenqiCTokenTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*BenqiCTokenTransactorRaw) Transfer ¶
func (_BenqiCToken *BenqiCTokenTransactorRaw) 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 BenqiCTokenTransactorSession ¶
type BenqiCTokenTransactorSession struct { Contract *BenqiCTokenTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
BenqiCTokenTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*BenqiCTokenTransactorSession) AcceptAdmin ¶
func (_BenqiCToken *BenqiCTokenTransactorSession) AcceptAdmin() (*types.Transaction, error)
AcceptAdmin is a paid mutator transaction binding the contract method 0xe9c714f2.
Solidity: function _acceptAdmin() returns(uint256)
func (*BenqiCTokenTransactorSession) AccrueInterest ¶
func (_BenqiCToken *BenqiCTokenTransactorSession) AccrueInterest() (*types.Transaction, error)
AccrueInterest is a paid mutator transaction binding the contract method 0xa6afed95.
Solidity: function accrueInterest() returns(uint256)
func (*BenqiCTokenTransactorSession) AddReserves ¶
func (_BenqiCToken *BenqiCTokenTransactorSession) 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 (*BenqiCTokenTransactorSession) Approve ¶
func (_BenqiCToken *BenqiCTokenTransactorSession) 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 (*BenqiCTokenTransactorSession) BalanceOfUnderlying ¶
func (_BenqiCToken *BenqiCTokenTransactorSession) 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 (*BenqiCTokenTransactorSession) Borrow ¶
func (_BenqiCToken *BenqiCTokenTransactorSession) 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 (*BenqiCTokenTransactorSession) BorrowBalanceCurrent ¶
func (_BenqiCToken *BenqiCTokenTransactorSession) 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 (*BenqiCTokenTransactorSession) DelegateToImplementation ¶
func (_BenqiCToken *BenqiCTokenTransactorSession) 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 (*BenqiCTokenTransactorSession) ExchangeRateCurrent ¶
func (_BenqiCToken *BenqiCTokenTransactorSession) ExchangeRateCurrent() (*types.Transaction, error)
ExchangeRateCurrent is a paid mutator transaction binding the contract method 0xbd6d894d.
Solidity: function exchangeRateCurrent() returns(uint256)
func (*BenqiCTokenTransactorSession) LiquidateBorrow ¶
func (_BenqiCToken *BenqiCTokenTransactorSession) LiquidateBorrow(borrower common.Address, repayAmount *big.Int, qiTokenCollateral common.Address) (*types.Transaction, error)
LiquidateBorrow is a paid mutator transaction binding the contract method 0xf5e3c462.
Solidity: function liquidateBorrow(address borrower, uint256 repayAmount, address qiTokenCollateral) returns(uint256)
func (*BenqiCTokenTransactorSession) Mint ¶
func (_BenqiCToken *BenqiCTokenTransactorSession) 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 (*BenqiCTokenTransactorSession) Redeem ¶
func (_BenqiCToken *BenqiCTokenTransactorSession) 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 (*BenqiCTokenTransactorSession) RedeemUnderlying ¶
func (_BenqiCToken *BenqiCTokenTransactorSession) 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 (*BenqiCTokenTransactorSession) ReduceReserves ¶
func (_BenqiCToken *BenqiCTokenTransactorSession) 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 (*BenqiCTokenTransactorSession) RepayBorrow ¶
func (_BenqiCToken *BenqiCTokenTransactorSession) 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 (*BenqiCTokenTransactorSession) RepayBorrowBehalf ¶
func (_BenqiCToken *BenqiCTokenTransactorSession) 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 (*BenqiCTokenTransactorSession) Seize ¶
func (_BenqiCToken *BenqiCTokenTransactorSession) 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 (*BenqiCTokenTransactorSession) SetComptroller ¶
func (_BenqiCToken *BenqiCTokenTransactorSession) 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 (*BenqiCTokenTransactorSession) SetImplementation ¶
func (_BenqiCToken *BenqiCTokenTransactorSession) 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 (*BenqiCTokenTransactorSession) SetInterestRateModel ¶
func (_BenqiCToken *BenqiCTokenTransactorSession) 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 (*BenqiCTokenTransactorSession) SetPendingAdmin ¶
func (_BenqiCToken *BenqiCTokenTransactorSession) 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 (*BenqiCTokenTransactorSession) SetProtocolSeizeShare ¶
func (_BenqiCToken *BenqiCTokenTransactorSession) SetProtocolSeizeShare(newProtocolSeizeShareMantissa *big.Int) (*types.Transaction, error)
SetProtocolSeizeShare is a paid mutator transaction binding the contract method 0x83030846.
Solidity: function _setProtocolSeizeShare(uint256 newProtocolSeizeShareMantissa) returns(uint256)
func (*BenqiCTokenTransactorSession) SetReserveFactor ¶
func (_BenqiCToken *BenqiCTokenTransactorSession) 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 (*BenqiCTokenTransactorSession) SweepToken ¶
func (_BenqiCToken *BenqiCTokenTransactorSession) SweepToken(token common.Address) (*types.Transaction, error)
SweepToken is a paid mutator transaction binding the contract method 0x1be19560.
Solidity: function sweepToken(address token) returns()
func (*BenqiCTokenTransactorSession) TotalBorrowsCurrent ¶
func (_BenqiCToken *BenqiCTokenTransactorSession) TotalBorrowsCurrent() (*types.Transaction, error)
TotalBorrowsCurrent is a paid mutator transaction binding the contract method 0x73acee98.
Solidity: function totalBorrowsCurrent() returns(uint256)
func (*BenqiCTokenTransactorSession) Transfer ¶
func (_BenqiCToken *BenqiCTokenTransactorSession) 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 (*BenqiCTokenTransactorSession) TransferFrom ¶
func (_BenqiCToken *BenqiCTokenTransactorSession) 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)