sparkPool

package
v0.1.23 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SparkPoolABI = SparkPoolMetaData.ABI

SparkPoolABI is the input ABI used to generate the binding from. Deprecated: Use SparkPoolMetaData.ABI instead.

View Source
var SparkPoolMetaData = &bind.MetaData{
	ABI: "[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"reserve\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"backer\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"fee\",\"type\":\"uint256\"}],\"name\":\"BackUnbacked\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"reserve\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"onBehalfOf\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"enumDataTypes.InterestRateMode\",\"name\":\"interestRateMode\",\"type\":\"uint8\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"borrowRate\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"uint16\",\"name\":\"referralCode\",\"type\":\"uint16\"}],\"name\":\"Borrow\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"initiator\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"asset\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"enumDataTypes.InterestRateMode\",\"name\":\"interestRateMode\",\"type\":\"uint8\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"premium\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"uint16\",\"name\":\"referralCode\",\"type\":\"uint16\"}],\"name\":\"FlashLoan\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"asset\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"totalDebt\",\"type\":\"uint256\"}],\"name\":\"IsolationModeTotalDebtUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"collateralAsset\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"debtAsset\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"debtToCover\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"liquidatedCollateralAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"liquidator\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"receiveAToken\",\"type\":\"bool\"}],\"name\":\"LiquidationCall\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"reserve\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"onBehalfOf\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"uint16\",\"name\":\"referralCode\",\"type\":\"uint16\"}],\"name\":\"MintUnbacked\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"reserve\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amountMinted\",\"type\":\"uint256\"}],\"name\":\"MintedToTreasury\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"reserve\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"}],\"name\":\"RebalanceStableBorrowRate\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"reserve\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"repayer\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"useATokens\",\"type\":\"bool\"}],\"name\":\"Repay\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"reserve\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"liquidityRate\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"stableBorrowRate\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"variableBorrowRate\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"liquidityIndex\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"variableBorrowIndex\",\"type\":\"uint256\"}],\"name\":\"ReserveDataUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"reserve\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"}],\"name\":\"ReserveUsedAsCollateralDisabled\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"reserve\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"}],\"name\":\"ReserveUsedAsCollateralEnabled\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"reserve\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"onBehalfOf\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"uint16\",\"name\":\"referralCode\",\"type\":\"uint16\"}],\"name\":\"Supply\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"reserve\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"enumDataTypes.InterestRateMode\",\"name\":\"interestRateMode\",\"type\":\"uint8\"}],\"name\":\"SwapBorrowRateMode\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"categoryId\",\"type\":\"uint8\"}],\"name\":\"UserEModeSet\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"reserve\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"Withdraw\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"ADDRESSES_PROVIDER\",\"outputs\":[{\"internalType\":\"contractIPoolAddressesProvider\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"BRIDGE_PROTOCOL_FEE\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"FLASHLOAN_PREMIUM_TOTAL\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"\",\"type\":\"uint128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"FLASHLOAN_PREMIUM_TO_PROTOCOL\",\"outputs\":[{\"internalType\":\"uint128\",\"name\":\"\",\"type\":\"uint128\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"MAX_NUMBER_RESERVES\",\"outputs\":[{\"internalType\":\"uint16\",\"name\":\"\",\"type\":\"uint16\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"MAX_STABLE_RATE_BORROW_SIZE_PERCENT\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"asset\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"fee\",\"type\":\"uint256\"}],\"name\":\"backUnbacked\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"asset\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"interestRateMode\",\"type\":\"uint256\"},{\"internalType\":\"uint16\",\"name\":\"referralCode\",\"type\":\"uint16\"},{\"internalType\":\"address\",\"name\":\"onBehalfOf\",\"type\":\"address\"}],\"name\":\"borrow\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint8\",\"name\":\"id\",\"type\":\"uint8\"},{\"components\":[{\"internalType\":\"uint16\",\"name\":\"ltv\",\"type\":\"uint16\"},{\"internalType\":\"uint16\",\"name\":\"liquidationThreshold\",\"type\":\"uint16\"},{\"internalType\":\"uint16\",\"name\":\"liquidationBonus\",\"type\":\"uint16\"},{\"internalType\":\"address\",\"name\":\"priceSource\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"label\",\"type\":\"string\"}],\"internalType\":\"structDataTypes.EModeCategory\",\"name\":\"config\",\"type\":\"tuple\"}],\"name\":\"configureEModeCategory\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"asset\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"onBehalfOf\",\"type\":\"address\"},{\"internalType\":\"uint16\",\"name\":\"referralCode\",\"type\":\"uint16\"}],\"name\":\"deposit\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"asset\",\"type\":\"address\"}],\"name\":\"dropReserve\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"asset\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"balanceFromBefore\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"balanceToBefore\",\"type\":\"uint256\"}],\"name\":\"finalizeTransfer\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"receiverAddress\",\"type\":\"address\"},{\"internalType\":\"address[]\",\"name\":\"assets\",\"type\":\"address[]\"},{\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256[]\",\"name\":\"interestRateModes\",\"type\":\"uint256[]\"},{\"internalType\":\"address\",\"name\":\"onBehalfOf\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"params\",\"type\":\"bytes\"},{\"internalType\":\"uint16\",\"name\":\"referralCode\",\"type\":\"uint16\"}],\"name\":\"flashLoan\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"receiverAddress\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"asset\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"params\",\"type\":\"bytes\"},{\"internalType\":\"uint16\",\"name\":\"referralCode\",\"type\":\"uint16\"}],\"name\":\"flashLoanSimple\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"asset\",\"type\":\"address\"}],\"name\":\"getConfiguration\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"data\",\"type\":\"uint256\"}],\"internalType\":\"structDataTypes.ReserveConfigurationMap\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint8\",\"name\":\"id\",\"type\":\"uint8\"}],\"name\":\"getEModeCategoryData\",\"outputs\":[{\"components\":[{\"internalType\":\"uint16\",\"name\":\"ltv\",\"type\":\"uint16\"},{\"internalType\":\"uint16\",\"name\":\"liquidationThreshold\",\"type\":\"uint16\"},{\"internalType\":\"uint16\",\"name\":\"liquidationBonus\",\"type\":\"uint16\"},{\"internalType\":\"address\",\"name\":\"priceSource\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"label\",\"type\":\"string\"}],\"internalType\":\"structDataTypes.EModeCategory\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint16\",\"name\":\"id\",\"type\":\"uint16\"}],\"name\":\"getReserveAddressById\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"asset\",\"type\":\"address\"}],\"name\":\"getReserveData\",\"outputs\":[{\"components\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"data\",\"type\":\"uint256\"}],\"internalType\":\"structDataTypes.ReserveConfigurationMap\",\"name\":\"configuration\",\"type\":\"tuple\"},{\"internalType\":\"uint128\",\"name\":\"liquidityIndex\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"currentLiquidityRate\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"variableBorrowIndex\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"currentVariableBorrowRate\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"currentStableBorrowRate\",\"type\":\"uint128\"},{\"internalType\":\"uint40\",\"name\":\"lastUpdateTimestamp\",\"type\":\"uint40\"},{\"internalType\":\"uint16\",\"name\":\"id\",\"type\":\"uint16\"},{\"internalType\":\"address\",\"name\":\"aTokenAddress\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"stableDebtTokenAddress\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"variableDebtTokenAddress\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"interestRateStrategyAddress\",\"type\":\"address\"},{\"internalType\":\"uint128\",\"name\":\"accruedToTreasury\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"unbacked\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"isolationModeTotalDebt\",\"type\":\"uint128\"}],\"internalType\":\"structDataTypes.ReserveData\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"asset\",\"type\":\"address\"}],\"name\":\"getReserveNormalizedIncome\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"asset\",\"type\":\"address\"}],\"name\":\"getReserveNormalizedVariableDebt\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getReservesList\",\"outputs\":[{\"internalType\":\"address[]\",\"name\":\"\",\"type\":\"address[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"}],\"name\":\"getUserAccountData\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"totalCollateralBase\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"totalDebtBase\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"availableBorrowsBase\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"currentLiquidationThreshold\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"ltv\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"healthFactor\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"}],\"name\":\"getUserConfiguration\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"data\",\"type\":\"uint256\"}],\"internalType\":\"structDataTypes.UserConfigurationMap\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"}],\"name\":\"getUserEMode\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"asset\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"aTokenAddress\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"stableDebtAddress\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"variableDebtAddress\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"interestRateStrategyAddress\",\"type\":\"address\"}],\"name\":\"initReserve\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"collateralAsset\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"debtAsset\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"debtToCover\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"receiveAToken\",\"type\":\"bool\"}],\"name\":\"liquidationCall\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"assets\",\"type\":\"address[]\"}],\"name\":\"mintToTreasury\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"asset\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"onBehalfOf\",\"type\":\"address\"},{\"internalType\":\"uint16\",\"name\":\"referralCode\",\"type\":\"uint16\"}],\"name\":\"mintUnbacked\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"asset\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"}],\"name\":\"rebalanceStableBorrowRate\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"asset\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"interestRateMode\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"onBehalfOf\",\"type\":\"address\"}],\"name\":\"repay\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"asset\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"interestRateMode\",\"type\":\"uint256\"}],\"name\":\"repayWithATokens\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"asset\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"interestRateMode\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"onBehalfOf\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"uint8\",\"name\":\"permitV\",\"type\":\"uint8\"},{\"internalType\":\"bytes32\",\"name\":\"permitR\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"permitS\",\"type\":\"bytes32\"}],\"name\":\"repayWithPermit\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"rescueTokens\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"asset\",\"type\":\"address\"}],\"name\":\"resetIsolationModeTotalDebt\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"asset\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"data\",\"type\":\"uint256\"}],\"internalType\":\"structDataTypes.ReserveConfigurationMap\",\"name\":\"configuration\",\"type\":\"tuple\"}],\"name\":\"setConfiguration\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"asset\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"rateStrategyAddress\",\"type\":\"address\"}],\"name\":\"setReserveInterestRateStrategyAddress\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint8\",\"name\":\"categoryId\",\"type\":\"uint8\"}],\"name\":\"setUserEMode\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"asset\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"useAsCollateral\",\"type\":\"bool\"}],\"name\":\"setUserUseReserveAsCollateral\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"asset\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"onBehalfOf\",\"type\":\"address\"},{\"internalType\":\"uint16\",\"name\":\"referralCode\",\"type\":\"uint16\"}],\"name\":\"supply\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"asset\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"onBehalfOf\",\"type\":\"address\"},{\"internalType\":\"uint16\",\"name\":\"referralCode\",\"type\":\"uint16\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"uint8\",\"name\":\"permitV\",\"type\":\"uint8\"},{\"internalType\":\"bytes32\",\"name\":\"permitR\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"permitS\",\"type\":\"bytes32\"}],\"name\":\"supplyWithPermit\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"asset\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"interestRateMode\",\"type\":\"uint256\"}],\"name\":\"swapBorrowRateMode\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"bridgeProtocolFee\",\"type\":\"uint256\"}],\"name\":\"updateBridgeProtocolFee\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint128\",\"name\":\"flashLoanPremiumTotal\",\"type\":\"uint128\"},{\"internalType\":\"uint128\",\"name\":\"flashLoanPremiumToProtocol\",\"type\":\"uint128\"}],\"name\":\"updateFlashloanPremiums\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"asset\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"}],\"name\":\"withdraw\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}

SparkPoolMetaData contains all meta data concerning the SparkPool contract.

Functions

This section is empty.

Types

type DataTypesEModeCategory

type DataTypesEModeCategory struct {
	Ltv                  uint16
	LiquidationThreshold uint16
	LiquidationBonus     uint16
	PriceSource          common.Address
	Label                string
}

DataTypesEModeCategory is an auto generated low-level Go binding around an user-defined struct.

type DataTypesReserveConfigurationMap

type DataTypesReserveConfigurationMap struct {
	Data *big.Int
}

DataTypesReserveConfigurationMap is an auto generated low-level Go binding around an user-defined struct.

type DataTypesReserveData

type DataTypesReserveData struct {
	Configuration               DataTypesReserveConfigurationMap
	LiquidityIndex              *big.Int
	CurrentLiquidityRate        *big.Int
	VariableBorrowIndex         *big.Int
	CurrentVariableBorrowRate   *big.Int
	CurrentStableBorrowRate     *big.Int
	LastUpdateTimestamp         *big.Int
	Id                          uint16
	ATokenAddress               common.Address
	StableDebtTokenAddress      common.Address
	VariableDebtTokenAddress    common.Address
	InterestRateStrategyAddress common.Address
	AccruedToTreasury           *big.Int
	Unbacked                    *big.Int
	IsolationModeTotalDebt      *big.Int
}

DataTypesReserveData is an auto generated low-level Go binding around an user-defined struct.

type DataTypesUserConfigurationMap

type DataTypesUserConfigurationMap struct {
	Data *big.Int
}

DataTypesUserConfigurationMap is an auto generated low-level Go binding around an user-defined struct.

type SparkPool

type SparkPool struct {
	SparkPoolCaller     // Read-only binding to the contract
	SparkPoolTransactor // Write-only binding to the contract
	SparkPoolFilterer   // Log filterer for contract events
}

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

func NewSparkPool

func NewSparkPool(address common.Address, backend bind.ContractBackend) (*SparkPool, error)

NewSparkPool creates a new instance of SparkPool, bound to a specific deployed contract.

type SparkPoolBackUnbacked

type SparkPoolBackUnbacked struct {
	Reserve common.Address
	Backer  common.Address
	Amount  *big.Int
	Fee     *big.Int
	Raw     types.Log // Blockchain specific contextual infos
}

SparkPoolBackUnbacked represents a BackUnbacked event raised by the SparkPool contract.

type SparkPoolBackUnbackedIterator

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

SparkPoolBackUnbackedIterator is returned from FilterBackUnbacked and is used to iterate over the raw logs and unpacked data for BackUnbacked events raised by the SparkPool contract.

func (*SparkPoolBackUnbackedIterator) Close

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

func (*SparkPoolBackUnbackedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*SparkPoolBackUnbackedIterator) 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 SparkPoolBorrow

type SparkPoolBorrow struct {
	Reserve          common.Address
	User             common.Address
	OnBehalfOf       common.Address
	Amount           *big.Int
	InterestRateMode uint8
	BorrowRate       *big.Int
	ReferralCode     uint16
	Raw              types.Log // Blockchain specific contextual infos
}

SparkPoolBorrow represents a Borrow event raised by the SparkPool contract.

type SparkPoolBorrowIterator

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

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

func (*SparkPoolBorrowIterator) Close

func (it *SparkPoolBorrowIterator) Close() error

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

func (*SparkPoolBorrowIterator) Error

func (it *SparkPoolBorrowIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*SparkPoolBorrowIterator) Next

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

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

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

func NewSparkPoolCaller

func NewSparkPoolCaller(address common.Address, caller bind.ContractCaller) (*SparkPoolCaller, error)

NewSparkPoolCaller creates a new read-only instance of SparkPool, bound to a specific deployed contract.

func (*SparkPoolCaller) ADDRESSESPROVIDER

func (_SparkPool *SparkPoolCaller) ADDRESSESPROVIDER(opts *bind.CallOpts) (common.Address, error)

ADDRESSESPROVIDER is a free data retrieval call binding the contract method 0x0542975c.

Solidity: function ADDRESSES_PROVIDER() view returns(address)

func (*SparkPoolCaller) BRIDGEPROTOCOLFEE

func (_SparkPool *SparkPoolCaller) BRIDGEPROTOCOLFEE(opts *bind.CallOpts) (*big.Int, error)

BRIDGEPROTOCOLFEE is a free data retrieval call binding the contract method 0x272d9072.

Solidity: function BRIDGE_PROTOCOL_FEE() view returns(uint256)

func (*SparkPoolCaller) FLASHLOANPREMIUMTOPROTOCOL

func (_SparkPool *SparkPoolCaller) FLASHLOANPREMIUMTOPROTOCOL(opts *bind.CallOpts) (*big.Int, error)

FLASHLOANPREMIUMTOPROTOCOL is a free data retrieval call binding the contract method 0x6a99c036.

Solidity: function FLASHLOAN_PREMIUM_TO_PROTOCOL() view returns(uint128)

func (*SparkPoolCaller) FLASHLOANPREMIUMTOTAL

func (_SparkPool *SparkPoolCaller) FLASHLOANPREMIUMTOTAL(opts *bind.CallOpts) (*big.Int, error)

FLASHLOANPREMIUMTOTAL is a free data retrieval call binding the contract method 0x074b2e43.

Solidity: function FLASHLOAN_PREMIUM_TOTAL() view returns(uint128)

func (*SparkPoolCaller) GetConfiguration

func (_SparkPool *SparkPoolCaller) GetConfiguration(opts *bind.CallOpts, asset common.Address) (DataTypesReserveConfigurationMap, error)

GetConfiguration is a free data retrieval call binding the contract method 0xc44b11f7.

Solidity: function getConfiguration(address asset) view returns((uint256))

func (*SparkPoolCaller) GetEModeCategoryData

func (_SparkPool *SparkPoolCaller) GetEModeCategoryData(opts *bind.CallOpts, id uint8) (DataTypesEModeCategory, error)

GetEModeCategoryData is a free data retrieval call binding the contract method 0x6c6f6ae1.

Solidity: function getEModeCategoryData(uint8 id) view returns((uint16,uint16,uint16,address,string))

func (*SparkPoolCaller) GetReserveAddressById

func (_SparkPool *SparkPoolCaller) GetReserveAddressById(opts *bind.CallOpts, id uint16) (common.Address, error)

GetReserveAddressById is a free data retrieval call binding the contract method 0x52751797.

Solidity: function getReserveAddressById(uint16 id) view returns(address)

func (*SparkPoolCaller) GetReserveData

func (_SparkPool *SparkPoolCaller) GetReserveData(opts *bind.CallOpts, asset common.Address) (DataTypesReserveData, error)

GetReserveData is a free data retrieval call binding the contract method 0x35ea6a75.

Solidity: function getReserveData(address asset) view returns(((uint256),uint128,uint128,uint128,uint128,uint128,uint40,uint16,address,address,address,address,uint128,uint128,uint128))

func (*SparkPoolCaller) GetReserveNormalizedIncome

func (_SparkPool *SparkPoolCaller) GetReserveNormalizedIncome(opts *bind.CallOpts, asset common.Address) (*big.Int, error)

GetReserveNormalizedIncome is a free data retrieval call binding the contract method 0xd15e0053.

Solidity: function getReserveNormalizedIncome(address asset) view returns(uint256)

func (*SparkPoolCaller) GetReserveNormalizedVariableDebt

func (_SparkPool *SparkPoolCaller) GetReserveNormalizedVariableDebt(opts *bind.CallOpts, asset common.Address) (*big.Int, error)

GetReserveNormalizedVariableDebt is a free data retrieval call binding the contract method 0x386497fd.

Solidity: function getReserveNormalizedVariableDebt(address asset) view returns(uint256)

func (*SparkPoolCaller) GetReservesList

func (_SparkPool *SparkPoolCaller) GetReservesList(opts *bind.CallOpts) ([]common.Address, error)

GetReservesList is a free data retrieval call binding the contract method 0xd1946dbc.

Solidity: function getReservesList() view returns(address[])

func (*SparkPoolCaller) GetUserAccountData

func (_SparkPool *SparkPoolCaller) GetUserAccountData(opts *bind.CallOpts, user common.Address) (struct {
	TotalCollateralBase         *big.Int
	TotalDebtBase               *big.Int
	AvailableBorrowsBase        *big.Int
	CurrentLiquidationThreshold *big.Int
	Ltv                         *big.Int
	HealthFactor                *big.Int
}, error)

GetUserAccountData is a free data retrieval call binding the contract method 0xbf92857c.

Solidity: function getUserAccountData(address user) view returns(uint256 totalCollateralBase, uint256 totalDebtBase, uint256 availableBorrowsBase, uint256 currentLiquidationThreshold, uint256 ltv, uint256 healthFactor)

func (*SparkPoolCaller) GetUserConfiguration

func (_SparkPool *SparkPoolCaller) GetUserConfiguration(opts *bind.CallOpts, user common.Address) (DataTypesUserConfigurationMap, error)

GetUserConfiguration is a free data retrieval call binding the contract method 0x4417a583.

Solidity: function getUserConfiguration(address user) view returns((uint256))

func (*SparkPoolCaller) GetUserEMode

func (_SparkPool *SparkPoolCaller) GetUserEMode(opts *bind.CallOpts, user common.Address) (*big.Int, error)

GetUserEMode is a free data retrieval call binding the contract method 0xeddf1b79.

Solidity: function getUserEMode(address user) view returns(uint256)

func (*SparkPoolCaller) MAXNUMBERRESERVES

func (_SparkPool *SparkPoolCaller) MAXNUMBERRESERVES(opts *bind.CallOpts) (uint16, error)

MAXNUMBERRESERVES is a free data retrieval call binding the contract method 0xf8119d51.

Solidity: function MAX_NUMBER_RESERVES() view returns(uint16)

func (*SparkPoolCaller) MAXSTABLERATEBORROWSIZEPERCENT

func (_SparkPool *SparkPoolCaller) MAXSTABLERATEBORROWSIZEPERCENT(opts *bind.CallOpts) (*big.Int, error)

MAXSTABLERATEBORROWSIZEPERCENT is a free data retrieval call binding the contract method 0xe82fec2f.

Solidity: function MAX_STABLE_RATE_BORROW_SIZE_PERCENT() view returns(uint256)

type SparkPoolCallerRaw

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

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

func (*SparkPoolCallerRaw) Call

func (_SparkPool *SparkPoolCallerRaw) 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 SparkPoolCallerSession

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

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

func (*SparkPoolCallerSession) ADDRESSESPROVIDER

func (_SparkPool *SparkPoolCallerSession) ADDRESSESPROVIDER() (common.Address, error)

ADDRESSESPROVIDER is a free data retrieval call binding the contract method 0x0542975c.

Solidity: function ADDRESSES_PROVIDER() view returns(address)

func (*SparkPoolCallerSession) BRIDGEPROTOCOLFEE

func (_SparkPool *SparkPoolCallerSession) BRIDGEPROTOCOLFEE() (*big.Int, error)

BRIDGEPROTOCOLFEE is a free data retrieval call binding the contract method 0x272d9072.

Solidity: function BRIDGE_PROTOCOL_FEE() view returns(uint256)

func (*SparkPoolCallerSession) FLASHLOANPREMIUMTOPROTOCOL

func (_SparkPool *SparkPoolCallerSession) FLASHLOANPREMIUMTOPROTOCOL() (*big.Int, error)

FLASHLOANPREMIUMTOPROTOCOL is a free data retrieval call binding the contract method 0x6a99c036.

Solidity: function FLASHLOAN_PREMIUM_TO_PROTOCOL() view returns(uint128)

func (*SparkPoolCallerSession) FLASHLOANPREMIUMTOTAL

func (_SparkPool *SparkPoolCallerSession) FLASHLOANPREMIUMTOTAL() (*big.Int, error)

FLASHLOANPREMIUMTOTAL is a free data retrieval call binding the contract method 0x074b2e43.

Solidity: function FLASHLOAN_PREMIUM_TOTAL() view returns(uint128)

func (*SparkPoolCallerSession) GetConfiguration

func (_SparkPool *SparkPoolCallerSession) GetConfiguration(asset common.Address) (DataTypesReserveConfigurationMap, error)

GetConfiguration is a free data retrieval call binding the contract method 0xc44b11f7.

Solidity: function getConfiguration(address asset) view returns((uint256))

func (*SparkPoolCallerSession) GetEModeCategoryData

func (_SparkPool *SparkPoolCallerSession) GetEModeCategoryData(id uint8) (DataTypesEModeCategory, error)

GetEModeCategoryData is a free data retrieval call binding the contract method 0x6c6f6ae1.

Solidity: function getEModeCategoryData(uint8 id) view returns((uint16,uint16,uint16,address,string))

func (*SparkPoolCallerSession) GetReserveAddressById

func (_SparkPool *SparkPoolCallerSession) GetReserveAddressById(id uint16) (common.Address, error)

GetReserveAddressById is a free data retrieval call binding the contract method 0x52751797.

Solidity: function getReserveAddressById(uint16 id) view returns(address)

func (*SparkPoolCallerSession) GetReserveData

func (_SparkPool *SparkPoolCallerSession) GetReserveData(asset common.Address) (DataTypesReserveData, error)

GetReserveData is a free data retrieval call binding the contract method 0x35ea6a75.

Solidity: function getReserveData(address asset) view returns(((uint256),uint128,uint128,uint128,uint128,uint128,uint40,uint16,address,address,address,address,uint128,uint128,uint128))

func (*SparkPoolCallerSession) GetReserveNormalizedIncome

func (_SparkPool *SparkPoolCallerSession) GetReserveNormalizedIncome(asset common.Address) (*big.Int, error)

GetReserveNormalizedIncome is a free data retrieval call binding the contract method 0xd15e0053.

Solidity: function getReserveNormalizedIncome(address asset) view returns(uint256)

func (*SparkPoolCallerSession) GetReserveNormalizedVariableDebt

func (_SparkPool *SparkPoolCallerSession) GetReserveNormalizedVariableDebt(asset common.Address) (*big.Int, error)

GetReserveNormalizedVariableDebt is a free data retrieval call binding the contract method 0x386497fd.

Solidity: function getReserveNormalizedVariableDebt(address asset) view returns(uint256)

func (*SparkPoolCallerSession) GetReservesList

func (_SparkPool *SparkPoolCallerSession) GetReservesList() ([]common.Address, error)

GetReservesList is a free data retrieval call binding the contract method 0xd1946dbc.

Solidity: function getReservesList() view returns(address[])

func (*SparkPoolCallerSession) GetUserAccountData

func (_SparkPool *SparkPoolCallerSession) GetUserAccountData(user common.Address) (struct {
	TotalCollateralBase         *big.Int
	TotalDebtBase               *big.Int
	AvailableBorrowsBase        *big.Int
	CurrentLiquidationThreshold *big.Int
	Ltv                         *big.Int
	HealthFactor                *big.Int
}, error)

GetUserAccountData is a free data retrieval call binding the contract method 0xbf92857c.

Solidity: function getUserAccountData(address user) view returns(uint256 totalCollateralBase, uint256 totalDebtBase, uint256 availableBorrowsBase, uint256 currentLiquidationThreshold, uint256 ltv, uint256 healthFactor)

func (*SparkPoolCallerSession) GetUserConfiguration

func (_SparkPool *SparkPoolCallerSession) GetUserConfiguration(user common.Address) (DataTypesUserConfigurationMap, error)

GetUserConfiguration is a free data retrieval call binding the contract method 0x4417a583.

Solidity: function getUserConfiguration(address user) view returns((uint256))

func (*SparkPoolCallerSession) GetUserEMode

func (_SparkPool *SparkPoolCallerSession) GetUserEMode(user common.Address) (*big.Int, error)

GetUserEMode is a free data retrieval call binding the contract method 0xeddf1b79.

Solidity: function getUserEMode(address user) view returns(uint256)

func (*SparkPoolCallerSession) MAXNUMBERRESERVES

func (_SparkPool *SparkPoolCallerSession) MAXNUMBERRESERVES() (uint16, error)

MAXNUMBERRESERVES is a free data retrieval call binding the contract method 0xf8119d51.

Solidity: function MAX_NUMBER_RESERVES() view returns(uint16)

func (*SparkPoolCallerSession) MAXSTABLERATEBORROWSIZEPERCENT

func (_SparkPool *SparkPoolCallerSession) MAXSTABLERATEBORROWSIZEPERCENT() (*big.Int, error)

MAXSTABLERATEBORROWSIZEPERCENT is a free data retrieval call binding the contract method 0xe82fec2f.

Solidity: function MAX_STABLE_RATE_BORROW_SIZE_PERCENT() view returns(uint256)

type SparkPoolFilterer

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

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

func NewSparkPoolFilterer

func NewSparkPoolFilterer(address common.Address, filterer bind.ContractFilterer) (*SparkPoolFilterer, error)

NewSparkPoolFilterer creates a new log filterer instance of SparkPool, bound to a specific deployed contract.

func (*SparkPoolFilterer) FilterBackUnbacked

func (_SparkPool *SparkPoolFilterer) FilterBackUnbacked(opts *bind.FilterOpts, reserve []common.Address, backer []common.Address) (*SparkPoolBackUnbackedIterator, error)

FilterBackUnbacked is a free log retrieval operation binding the contract event 0x281596e92b2d974beb7d4f124df30a0b39067b096893e95011ce4bdad798b759.

Solidity: event BackUnbacked(address indexed reserve, address indexed backer, uint256 amount, uint256 fee)

func (*SparkPoolFilterer) FilterBorrow

func (_SparkPool *SparkPoolFilterer) FilterBorrow(opts *bind.FilterOpts, reserve []common.Address, onBehalfOf []common.Address, referralCode []uint16) (*SparkPoolBorrowIterator, error)

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

Solidity: event Borrow(address indexed reserve, address user, address indexed onBehalfOf, uint256 amount, uint8 interestRateMode, uint256 borrowRate, uint16 indexed referralCode)

func (*SparkPoolFilterer) FilterFlashLoan

func (_SparkPool *SparkPoolFilterer) FilterFlashLoan(opts *bind.FilterOpts, target []common.Address, asset []common.Address, referralCode []uint16) (*SparkPoolFlashLoanIterator, error)

FilterFlashLoan is a free log retrieval operation binding the contract event 0xefefaba5e921573100900a3ad9cf29f222d995fb3b6045797eaea7521bd8d6f0.

Solidity: event FlashLoan(address indexed target, address initiator, address indexed asset, uint256 amount, uint8 interestRateMode, uint256 premium, uint16 indexed referralCode)

func (*SparkPoolFilterer) FilterIsolationModeTotalDebtUpdated

func (_SparkPool *SparkPoolFilterer) FilterIsolationModeTotalDebtUpdated(opts *bind.FilterOpts, asset []common.Address) (*SparkPoolIsolationModeTotalDebtUpdatedIterator, error)

FilterIsolationModeTotalDebtUpdated is a free log retrieval operation binding the contract event 0xaef84d3b40895fd58c561f3998000f0583abb992a52fbdc99ace8e8de4d676a5.

Solidity: event IsolationModeTotalDebtUpdated(address indexed asset, uint256 totalDebt)

func (*SparkPoolFilterer) FilterLiquidationCall

func (_SparkPool *SparkPoolFilterer) FilterLiquidationCall(opts *bind.FilterOpts, collateralAsset []common.Address, debtAsset []common.Address, user []common.Address) (*SparkPoolLiquidationCallIterator, error)

FilterLiquidationCall is a free log retrieval operation binding the contract event 0xe413a321e8681d831f4dbccbca790d2952b56f977908e45be37335533e005286.

Solidity: event LiquidationCall(address indexed collateralAsset, address indexed debtAsset, address indexed user, uint256 debtToCover, uint256 liquidatedCollateralAmount, address liquidator, bool receiveAToken)

func (*SparkPoolFilterer) FilterMintUnbacked

func (_SparkPool *SparkPoolFilterer) FilterMintUnbacked(opts *bind.FilterOpts, reserve []common.Address, onBehalfOf []common.Address, referralCode []uint16) (*SparkPoolMintUnbackedIterator, error)

FilterMintUnbacked is a free log retrieval operation binding the contract event 0xf25af37b3d3ec226063dc9bdc103ece7eb110a50f340fe854bb7bc1b0676d7d0.

Solidity: event MintUnbacked(address indexed reserve, address user, address indexed onBehalfOf, uint256 amount, uint16 indexed referralCode)

func (*SparkPoolFilterer) FilterMintedToTreasury

func (_SparkPool *SparkPoolFilterer) FilterMintedToTreasury(opts *bind.FilterOpts, reserve []common.Address) (*SparkPoolMintedToTreasuryIterator, error)

FilterMintedToTreasury is a free log retrieval operation binding the contract event 0xbfa21aa5d5f9a1f0120a95e7c0749f389863cbdbfff531aa7339077a5bc919de.

Solidity: event MintedToTreasury(address indexed reserve, uint256 amountMinted)

func (*SparkPoolFilterer) FilterRebalanceStableBorrowRate

func (_SparkPool *SparkPoolFilterer) FilterRebalanceStableBorrowRate(opts *bind.FilterOpts, reserve []common.Address, user []common.Address) (*SparkPoolRebalanceStableBorrowRateIterator, error)

FilterRebalanceStableBorrowRate is a free log retrieval operation binding the contract event 0x9f439ae0c81e41a04d3fdfe07aed54e6a179fb0db15be7702eb66fa8ef6f5300.

Solidity: event RebalanceStableBorrowRate(address indexed reserve, address indexed user)

func (*SparkPoolFilterer) FilterRepay

func (_SparkPool *SparkPoolFilterer) FilterRepay(opts *bind.FilterOpts, reserve []common.Address, user []common.Address, repayer []common.Address) (*SparkPoolRepayIterator, error)

FilterRepay is a free log retrieval operation binding the contract event 0xa534c8dbe71f871f9f3530e97a74601fea17b426cae02e1c5aee42c96c784051.

Solidity: event Repay(address indexed reserve, address indexed user, address indexed repayer, uint256 amount, bool useATokens)

func (*SparkPoolFilterer) FilterReserveDataUpdated

func (_SparkPool *SparkPoolFilterer) FilterReserveDataUpdated(opts *bind.FilterOpts, reserve []common.Address) (*SparkPoolReserveDataUpdatedIterator, error)

FilterReserveDataUpdated is a free log retrieval operation binding the contract event 0x804c9b842b2748a22bb64b345453a3de7ca54a6ca45ce00d415894979e22897a.

Solidity: event ReserveDataUpdated(address indexed reserve, uint256 liquidityRate, uint256 stableBorrowRate, uint256 variableBorrowRate, uint256 liquidityIndex, uint256 variableBorrowIndex)

func (*SparkPoolFilterer) FilterReserveUsedAsCollateralDisabled

func (_SparkPool *SparkPoolFilterer) FilterReserveUsedAsCollateralDisabled(opts *bind.FilterOpts, reserve []common.Address, user []common.Address) (*SparkPoolReserveUsedAsCollateralDisabledIterator, error)

FilterReserveUsedAsCollateralDisabled is a free log retrieval operation binding the contract event 0x44c58d81365b66dd4b1a7f36c25aa97b8c71c361ee4937adc1a00000227db5dd.

Solidity: event ReserveUsedAsCollateralDisabled(address indexed reserve, address indexed user)

func (*SparkPoolFilterer) FilterReserveUsedAsCollateralEnabled

func (_SparkPool *SparkPoolFilterer) FilterReserveUsedAsCollateralEnabled(opts *bind.FilterOpts, reserve []common.Address, user []common.Address) (*SparkPoolReserveUsedAsCollateralEnabledIterator, error)

FilterReserveUsedAsCollateralEnabled is a free log retrieval operation binding the contract event 0x00058a56ea94653cdf4f152d227ace22d4c00ad99e2a43f58cb7d9e3feb295f2.

Solidity: event ReserveUsedAsCollateralEnabled(address indexed reserve, address indexed user)

func (*SparkPoolFilterer) FilterSupply

func (_SparkPool *SparkPoolFilterer) FilterSupply(opts *bind.FilterOpts, reserve []common.Address, onBehalfOf []common.Address, referralCode []uint16) (*SparkPoolSupplyIterator, error)

FilterSupply is a free log retrieval operation binding the contract event 0x2b627736bca15cd5381dcf80b0bf11fd197d01a037c52b927a881a10fb73ba61.

Solidity: event Supply(address indexed reserve, address user, address indexed onBehalfOf, uint256 amount, uint16 indexed referralCode)

func (*SparkPoolFilterer) FilterSwapBorrowRateMode

func (_SparkPool *SparkPoolFilterer) FilterSwapBorrowRateMode(opts *bind.FilterOpts, reserve []common.Address, user []common.Address) (*SparkPoolSwapBorrowRateModeIterator, error)

FilterSwapBorrowRateMode is a free log retrieval operation binding the contract event 0x7962b394d85a534033ba2efcf43cd36de57b7ebeb3de0ca4428965d9b3ddc481.

Solidity: event SwapBorrowRateMode(address indexed reserve, address indexed user, uint8 interestRateMode)

func (*SparkPoolFilterer) FilterUserEModeSet

func (_SparkPool *SparkPoolFilterer) FilterUserEModeSet(opts *bind.FilterOpts, user []common.Address) (*SparkPoolUserEModeSetIterator, error)

FilterUserEModeSet is a free log retrieval operation binding the contract event 0xd728da875fc88944cbf17638bcbe4af0eedaef63becd1d1c57cc097eb4608d84.

Solidity: event UserEModeSet(address indexed user, uint8 categoryId)

func (*SparkPoolFilterer) FilterWithdraw

func (_SparkPool *SparkPoolFilterer) FilterWithdraw(opts *bind.FilterOpts, reserve []common.Address, user []common.Address, to []common.Address) (*SparkPoolWithdrawIterator, error)

FilterWithdraw is a free log retrieval operation binding the contract event 0x3115d1449a7b732c986cba18244e897a450f61e1bb8d589cd2e69e6c8924f9f7.

Solidity: event Withdraw(address indexed reserve, address indexed user, address indexed to, uint256 amount)

func (*SparkPoolFilterer) ParseBackUnbacked

func (_SparkPool *SparkPoolFilterer) ParseBackUnbacked(log types.Log) (*SparkPoolBackUnbacked, error)

ParseBackUnbacked is a log parse operation binding the contract event 0x281596e92b2d974beb7d4f124df30a0b39067b096893e95011ce4bdad798b759.

Solidity: event BackUnbacked(address indexed reserve, address indexed backer, uint256 amount, uint256 fee)

func (*SparkPoolFilterer) ParseBorrow

func (_SparkPool *SparkPoolFilterer) ParseBorrow(log types.Log) (*SparkPoolBorrow, error)

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

Solidity: event Borrow(address indexed reserve, address user, address indexed onBehalfOf, uint256 amount, uint8 interestRateMode, uint256 borrowRate, uint16 indexed referralCode)

func (*SparkPoolFilterer) ParseFlashLoan

func (_SparkPool *SparkPoolFilterer) ParseFlashLoan(log types.Log) (*SparkPoolFlashLoan, error)

ParseFlashLoan is a log parse operation binding the contract event 0xefefaba5e921573100900a3ad9cf29f222d995fb3b6045797eaea7521bd8d6f0.

Solidity: event FlashLoan(address indexed target, address initiator, address indexed asset, uint256 amount, uint8 interestRateMode, uint256 premium, uint16 indexed referralCode)

func (*SparkPoolFilterer) ParseIsolationModeTotalDebtUpdated

func (_SparkPool *SparkPoolFilterer) ParseIsolationModeTotalDebtUpdated(log types.Log) (*SparkPoolIsolationModeTotalDebtUpdated, error)

ParseIsolationModeTotalDebtUpdated is a log parse operation binding the contract event 0xaef84d3b40895fd58c561f3998000f0583abb992a52fbdc99ace8e8de4d676a5.

Solidity: event IsolationModeTotalDebtUpdated(address indexed asset, uint256 totalDebt)

func (*SparkPoolFilterer) ParseLiquidationCall

func (_SparkPool *SparkPoolFilterer) ParseLiquidationCall(log types.Log) (*SparkPoolLiquidationCall, error)

ParseLiquidationCall is a log parse operation binding the contract event 0xe413a321e8681d831f4dbccbca790d2952b56f977908e45be37335533e005286.

Solidity: event LiquidationCall(address indexed collateralAsset, address indexed debtAsset, address indexed user, uint256 debtToCover, uint256 liquidatedCollateralAmount, address liquidator, bool receiveAToken)

func (*SparkPoolFilterer) ParseMintUnbacked

func (_SparkPool *SparkPoolFilterer) ParseMintUnbacked(log types.Log) (*SparkPoolMintUnbacked, error)

ParseMintUnbacked is a log parse operation binding the contract event 0xf25af37b3d3ec226063dc9bdc103ece7eb110a50f340fe854bb7bc1b0676d7d0.

Solidity: event MintUnbacked(address indexed reserve, address user, address indexed onBehalfOf, uint256 amount, uint16 indexed referralCode)

func (*SparkPoolFilterer) ParseMintedToTreasury

func (_SparkPool *SparkPoolFilterer) ParseMintedToTreasury(log types.Log) (*SparkPoolMintedToTreasury, error)

ParseMintedToTreasury is a log parse operation binding the contract event 0xbfa21aa5d5f9a1f0120a95e7c0749f389863cbdbfff531aa7339077a5bc919de.

Solidity: event MintedToTreasury(address indexed reserve, uint256 amountMinted)

func (*SparkPoolFilterer) ParseRebalanceStableBorrowRate

func (_SparkPool *SparkPoolFilterer) ParseRebalanceStableBorrowRate(log types.Log) (*SparkPoolRebalanceStableBorrowRate, error)

ParseRebalanceStableBorrowRate is a log parse operation binding the contract event 0x9f439ae0c81e41a04d3fdfe07aed54e6a179fb0db15be7702eb66fa8ef6f5300.

Solidity: event RebalanceStableBorrowRate(address indexed reserve, address indexed user)

func (*SparkPoolFilterer) ParseRepay

func (_SparkPool *SparkPoolFilterer) ParseRepay(log types.Log) (*SparkPoolRepay, error)

ParseRepay is a log parse operation binding the contract event 0xa534c8dbe71f871f9f3530e97a74601fea17b426cae02e1c5aee42c96c784051.

Solidity: event Repay(address indexed reserve, address indexed user, address indexed repayer, uint256 amount, bool useATokens)

func (*SparkPoolFilterer) ParseReserveDataUpdated

func (_SparkPool *SparkPoolFilterer) ParseReserveDataUpdated(log types.Log) (*SparkPoolReserveDataUpdated, error)

ParseReserveDataUpdated is a log parse operation binding the contract event 0x804c9b842b2748a22bb64b345453a3de7ca54a6ca45ce00d415894979e22897a.

Solidity: event ReserveDataUpdated(address indexed reserve, uint256 liquidityRate, uint256 stableBorrowRate, uint256 variableBorrowRate, uint256 liquidityIndex, uint256 variableBorrowIndex)

func (*SparkPoolFilterer) ParseReserveUsedAsCollateralDisabled

func (_SparkPool *SparkPoolFilterer) ParseReserveUsedAsCollateralDisabled(log types.Log) (*SparkPoolReserveUsedAsCollateralDisabled, error)

ParseReserveUsedAsCollateralDisabled is a log parse operation binding the contract event 0x44c58d81365b66dd4b1a7f36c25aa97b8c71c361ee4937adc1a00000227db5dd.

Solidity: event ReserveUsedAsCollateralDisabled(address indexed reserve, address indexed user)

func (*SparkPoolFilterer) ParseReserveUsedAsCollateralEnabled

func (_SparkPool *SparkPoolFilterer) ParseReserveUsedAsCollateralEnabled(log types.Log) (*SparkPoolReserveUsedAsCollateralEnabled, error)

ParseReserveUsedAsCollateralEnabled is a log parse operation binding the contract event 0x00058a56ea94653cdf4f152d227ace22d4c00ad99e2a43f58cb7d9e3feb295f2.

Solidity: event ReserveUsedAsCollateralEnabled(address indexed reserve, address indexed user)

func (*SparkPoolFilterer) ParseSupply

func (_SparkPool *SparkPoolFilterer) ParseSupply(log types.Log) (*SparkPoolSupply, error)

ParseSupply is a log parse operation binding the contract event 0x2b627736bca15cd5381dcf80b0bf11fd197d01a037c52b927a881a10fb73ba61.

Solidity: event Supply(address indexed reserve, address user, address indexed onBehalfOf, uint256 amount, uint16 indexed referralCode)

func (*SparkPoolFilterer) ParseSwapBorrowRateMode

func (_SparkPool *SparkPoolFilterer) ParseSwapBorrowRateMode(log types.Log) (*SparkPoolSwapBorrowRateMode, error)

ParseSwapBorrowRateMode is a log parse operation binding the contract event 0x7962b394d85a534033ba2efcf43cd36de57b7ebeb3de0ca4428965d9b3ddc481.

Solidity: event SwapBorrowRateMode(address indexed reserve, address indexed user, uint8 interestRateMode)

func (*SparkPoolFilterer) ParseUserEModeSet

func (_SparkPool *SparkPoolFilterer) ParseUserEModeSet(log types.Log) (*SparkPoolUserEModeSet, error)

ParseUserEModeSet is a log parse operation binding the contract event 0xd728da875fc88944cbf17638bcbe4af0eedaef63becd1d1c57cc097eb4608d84.

Solidity: event UserEModeSet(address indexed user, uint8 categoryId)

func (*SparkPoolFilterer) ParseWithdraw

func (_SparkPool *SparkPoolFilterer) ParseWithdraw(log types.Log) (*SparkPoolWithdraw, error)

ParseWithdraw is a log parse operation binding the contract event 0x3115d1449a7b732c986cba18244e897a450f61e1bb8d589cd2e69e6c8924f9f7.

Solidity: event Withdraw(address indexed reserve, address indexed user, address indexed to, uint256 amount)

func (*SparkPoolFilterer) WatchBackUnbacked

func (_SparkPool *SparkPoolFilterer) WatchBackUnbacked(opts *bind.WatchOpts, sink chan<- *SparkPoolBackUnbacked, reserve []common.Address, backer []common.Address) (event.Subscription, error)

WatchBackUnbacked is a free log subscription operation binding the contract event 0x281596e92b2d974beb7d4f124df30a0b39067b096893e95011ce4bdad798b759.

Solidity: event BackUnbacked(address indexed reserve, address indexed backer, uint256 amount, uint256 fee)

func (*SparkPoolFilterer) WatchBorrow

func (_SparkPool *SparkPoolFilterer) WatchBorrow(opts *bind.WatchOpts, sink chan<- *SparkPoolBorrow, reserve []common.Address, onBehalfOf []common.Address, referralCode []uint16) (event.Subscription, error)

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

Solidity: event Borrow(address indexed reserve, address user, address indexed onBehalfOf, uint256 amount, uint8 interestRateMode, uint256 borrowRate, uint16 indexed referralCode)

func (*SparkPoolFilterer) WatchFlashLoan

func (_SparkPool *SparkPoolFilterer) WatchFlashLoan(opts *bind.WatchOpts, sink chan<- *SparkPoolFlashLoan, target []common.Address, asset []common.Address, referralCode []uint16) (event.Subscription, error)

WatchFlashLoan is a free log subscription operation binding the contract event 0xefefaba5e921573100900a3ad9cf29f222d995fb3b6045797eaea7521bd8d6f0.

Solidity: event FlashLoan(address indexed target, address initiator, address indexed asset, uint256 amount, uint8 interestRateMode, uint256 premium, uint16 indexed referralCode)

func (*SparkPoolFilterer) WatchIsolationModeTotalDebtUpdated

func (_SparkPool *SparkPoolFilterer) WatchIsolationModeTotalDebtUpdated(opts *bind.WatchOpts, sink chan<- *SparkPoolIsolationModeTotalDebtUpdated, asset []common.Address) (event.Subscription, error)

WatchIsolationModeTotalDebtUpdated is a free log subscription operation binding the contract event 0xaef84d3b40895fd58c561f3998000f0583abb992a52fbdc99ace8e8de4d676a5.

Solidity: event IsolationModeTotalDebtUpdated(address indexed asset, uint256 totalDebt)

func (*SparkPoolFilterer) WatchLiquidationCall

func (_SparkPool *SparkPoolFilterer) WatchLiquidationCall(opts *bind.WatchOpts, sink chan<- *SparkPoolLiquidationCall, collateralAsset []common.Address, debtAsset []common.Address, user []common.Address) (event.Subscription, error)

WatchLiquidationCall is a free log subscription operation binding the contract event 0xe413a321e8681d831f4dbccbca790d2952b56f977908e45be37335533e005286.

Solidity: event LiquidationCall(address indexed collateralAsset, address indexed debtAsset, address indexed user, uint256 debtToCover, uint256 liquidatedCollateralAmount, address liquidator, bool receiveAToken)

func (*SparkPoolFilterer) WatchMintUnbacked

func (_SparkPool *SparkPoolFilterer) WatchMintUnbacked(opts *bind.WatchOpts, sink chan<- *SparkPoolMintUnbacked, reserve []common.Address, onBehalfOf []common.Address, referralCode []uint16) (event.Subscription, error)

WatchMintUnbacked is a free log subscription operation binding the contract event 0xf25af37b3d3ec226063dc9bdc103ece7eb110a50f340fe854bb7bc1b0676d7d0.

Solidity: event MintUnbacked(address indexed reserve, address user, address indexed onBehalfOf, uint256 amount, uint16 indexed referralCode)

func (*SparkPoolFilterer) WatchMintedToTreasury

func (_SparkPool *SparkPoolFilterer) WatchMintedToTreasury(opts *bind.WatchOpts, sink chan<- *SparkPoolMintedToTreasury, reserve []common.Address) (event.Subscription, error)

WatchMintedToTreasury is a free log subscription operation binding the contract event 0xbfa21aa5d5f9a1f0120a95e7c0749f389863cbdbfff531aa7339077a5bc919de.

Solidity: event MintedToTreasury(address indexed reserve, uint256 amountMinted)

func (*SparkPoolFilterer) WatchRebalanceStableBorrowRate

func (_SparkPool *SparkPoolFilterer) WatchRebalanceStableBorrowRate(opts *bind.WatchOpts, sink chan<- *SparkPoolRebalanceStableBorrowRate, reserve []common.Address, user []common.Address) (event.Subscription, error)

WatchRebalanceStableBorrowRate is a free log subscription operation binding the contract event 0x9f439ae0c81e41a04d3fdfe07aed54e6a179fb0db15be7702eb66fa8ef6f5300.

Solidity: event RebalanceStableBorrowRate(address indexed reserve, address indexed user)

func (*SparkPoolFilterer) WatchRepay

func (_SparkPool *SparkPoolFilterer) WatchRepay(opts *bind.WatchOpts, sink chan<- *SparkPoolRepay, reserve []common.Address, user []common.Address, repayer []common.Address) (event.Subscription, error)

WatchRepay is a free log subscription operation binding the contract event 0xa534c8dbe71f871f9f3530e97a74601fea17b426cae02e1c5aee42c96c784051.

Solidity: event Repay(address indexed reserve, address indexed user, address indexed repayer, uint256 amount, bool useATokens)

func (*SparkPoolFilterer) WatchReserveDataUpdated

func (_SparkPool *SparkPoolFilterer) WatchReserveDataUpdated(opts *bind.WatchOpts, sink chan<- *SparkPoolReserveDataUpdated, reserve []common.Address) (event.Subscription, error)

WatchReserveDataUpdated is a free log subscription operation binding the contract event 0x804c9b842b2748a22bb64b345453a3de7ca54a6ca45ce00d415894979e22897a.

Solidity: event ReserveDataUpdated(address indexed reserve, uint256 liquidityRate, uint256 stableBorrowRate, uint256 variableBorrowRate, uint256 liquidityIndex, uint256 variableBorrowIndex)

func (*SparkPoolFilterer) WatchReserveUsedAsCollateralDisabled

func (_SparkPool *SparkPoolFilterer) WatchReserveUsedAsCollateralDisabled(opts *bind.WatchOpts, sink chan<- *SparkPoolReserveUsedAsCollateralDisabled, reserve []common.Address, user []common.Address) (event.Subscription, error)

WatchReserveUsedAsCollateralDisabled is a free log subscription operation binding the contract event 0x44c58d81365b66dd4b1a7f36c25aa97b8c71c361ee4937adc1a00000227db5dd.

Solidity: event ReserveUsedAsCollateralDisabled(address indexed reserve, address indexed user)

func (*SparkPoolFilterer) WatchReserveUsedAsCollateralEnabled

func (_SparkPool *SparkPoolFilterer) WatchReserveUsedAsCollateralEnabled(opts *bind.WatchOpts, sink chan<- *SparkPoolReserveUsedAsCollateralEnabled, reserve []common.Address, user []common.Address) (event.Subscription, error)

WatchReserveUsedAsCollateralEnabled is a free log subscription operation binding the contract event 0x00058a56ea94653cdf4f152d227ace22d4c00ad99e2a43f58cb7d9e3feb295f2.

Solidity: event ReserveUsedAsCollateralEnabled(address indexed reserve, address indexed user)

func (*SparkPoolFilterer) WatchSupply

func (_SparkPool *SparkPoolFilterer) WatchSupply(opts *bind.WatchOpts, sink chan<- *SparkPoolSupply, reserve []common.Address, onBehalfOf []common.Address, referralCode []uint16) (event.Subscription, error)

WatchSupply is a free log subscription operation binding the contract event 0x2b627736bca15cd5381dcf80b0bf11fd197d01a037c52b927a881a10fb73ba61.

Solidity: event Supply(address indexed reserve, address user, address indexed onBehalfOf, uint256 amount, uint16 indexed referralCode)

func (*SparkPoolFilterer) WatchSwapBorrowRateMode

func (_SparkPool *SparkPoolFilterer) WatchSwapBorrowRateMode(opts *bind.WatchOpts, sink chan<- *SparkPoolSwapBorrowRateMode, reserve []common.Address, user []common.Address) (event.Subscription, error)

WatchSwapBorrowRateMode is a free log subscription operation binding the contract event 0x7962b394d85a534033ba2efcf43cd36de57b7ebeb3de0ca4428965d9b3ddc481.

Solidity: event SwapBorrowRateMode(address indexed reserve, address indexed user, uint8 interestRateMode)

func (*SparkPoolFilterer) WatchUserEModeSet

func (_SparkPool *SparkPoolFilterer) WatchUserEModeSet(opts *bind.WatchOpts, sink chan<- *SparkPoolUserEModeSet, user []common.Address) (event.Subscription, error)

WatchUserEModeSet is a free log subscription operation binding the contract event 0xd728da875fc88944cbf17638bcbe4af0eedaef63becd1d1c57cc097eb4608d84.

Solidity: event UserEModeSet(address indexed user, uint8 categoryId)

func (*SparkPoolFilterer) WatchWithdraw

func (_SparkPool *SparkPoolFilterer) WatchWithdraw(opts *bind.WatchOpts, sink chan<- *SparkPoolWithdraw, reserve []common.Address, user []common.Address, to []common.Address) (event.Subscription, error)

WatchWithdraw is a free log subscription operation binding the contract event 0x3115d1449a7b732c986cba18244e897a450f61e1bb8d589cd2e69e6c8924f9f7.

Solidity: event Withdraw(address indexed reserve, address indexed user, address indexed to, uint256 amount)

type SparkPoolFlashLoan

type SparkPoolFlashLoan struct {
	Target           common.Address
	Initiator        common.Address
	Asset            common.Address
	Amount           *big.Int
	InterestRateMode uint8
	Premium          *big.Int
	ReferralCode     uint16
	Raw              types.Log // Blockchain specific contextual infos
}

SparkPoolFlashLoan represents a FlashLoan event raised by the SparkPool contract.

type SparkPoolFlashLoanIterator

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

SparkPoolFlashLoanIterator is returned from FilterFlashLoan and is used to iterate over the raw logs and unpacked data for FlashLoan events raised by the SparkPool contract.

func (*SparkPoolFlashLoanIterator) Close

func (it *SparkPoolFlashLoanIterator) Close() error

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

func (*SparkPoolFlashLoanIterator) Error

func (it *SparkPoolFlashLoanIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*SparkPoolFlashLoanIterator) Next

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

type SparkPoolIsolationModeTotalDebtUpdated struct {
	Asset     common.Address
	TotalDebt *big.Int
	Raw       types.Log // Blockchain specific contextual infos
}

SparkPoolIsolationModeTotalDebtUpdated represents a IsolationModeTotalDebtUpdated event raised by the SparkPool contract.

type SparkPoolIsolationModeTotalDebtUpdatedIterator

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

SparkPoolIsolationModeTotalDebtUpdatedIterator is returned from FilterIsolationModeTotalDebtUpdated and is used to iterate over the raw logs and unpacked data for IsolationModeTotalDebtUpdated events raised by the SparkPool contract.

func (*SparkPoolIsolationModeTotalDebtUpdatedIterator) Close

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

func (*SparkPoolIsolationModeTotalDebtUpdatedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*SparkPoolIsolationModeTotalDebtUpdatedIterator) 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 SparkPoolLiquidationCall

type SparkPoolLiquidationCall struct {
	CollateralAsset            common.Address
	DebtAsset                  common.Address
	User                       common.Address
	DebtToCover                *big.Int
	LiquidatedCollateralAmount *big.Int
	Liquidator                 common.Address
	ReceiveAToken              bool
	Raw                        types.Log // Blockchain specific contextual infos
}

SparkPoolLiquidationCall represents a LiquidationCall event raised by the SparkPool contract.

type SparkPoolLiquidationCallIterator

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

SparkPoolLiquidationCallIterator is returned from FilterLiquidationCall and is used to iterate over the raw logs and unpacked data for LiquidationCall events raised by the SparkPool contract.

func (*SparkPoolLiquidationCallIterator) Close

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

func (*SparkPoolLiquidationCallIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*SparkPoolLiquidationCallIterator) 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 SparkPoolMintUnbacked

type SparkPoolMintUnbacked struct {
	Reserve      common.Address
	User         common.Address
	OnBehalfOf   common.Address
	Amount       *big.Int
	ReferralCode uint16
	Raw          types.Log // Blockchain specific contextual infos
}

SparkPoolMintUnbacked represents a MintUnbacked event raised by the SparkPool contract.

type SparkPoolMintUnbackedIterator

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

SparkPoolMintUnbackedIterator is returned from FilterMintUnbacked and is used to iterate over the raw logs and unpacked data for MintUnbacked events raised by the SparkPool contract.

func (*SparkPoolMintUnbackedIterator) Close

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

func (*SparkPoolMintUnbackedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*SparkPoolMintUnbackedIterator) 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 SparkPoolMintedToTreasury

type SparkPoolMintedToTreasury struct {
	Reserve      common.Address
	AmountMinted *big.Int
	Raw          types.Log // Blockchain specific contextual infos
}

SparkPoolMintedToTreasury represents a MintedToTreasury event raised by the SparkPool contract.

type SparkPoolMintedToTreasuryIterator

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

SparkPoolMintedToTreasuryIterator is returned from FilterMintedToTreasury and is used to iterate over the raw logs and unpacked data for MintedToTreasury events raised by the SparkPool contract.

func (*SparkPoolMintedToTreasuryIterator) Close

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

func (*SparkPoolMintedToTreasuryIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*SparkPoolMintedToTreasuryIterator) 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 SparkPoolRaw

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

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

func (*SparkPoolRaw) Call

func (_SparkPool *SparkPoolRaw) 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 (*SparkPoolRaw) Transact

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

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

func (*SparkPoolRaw) Transfer

func (_SparkPool *SparkPoolRaw) 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 SparkPoolRebalanceStableBorrowRate

type SparkPoolRebalanceStableBorrowRate struct {
	Reserve common.Address
	User    common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

SparkPoolRebalanceStableBorrowRate represents a RebalanceStableBorrowRate event raised by the SparkPool contract.

type SparkPoolRebalanceStableBorrowRateIterator

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

SparkPoolRebalanceStableBorrowRateIterator is returned from FilterRebalanceStableBorrowRate and is used to iterate over the raw logs and unpacked data for RebalanceStableBorrowRate events raised by the SparkPool contract.

func (*SparkPoolRebalanceStableBorrowRateIterator) Close

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

func (*SparkPoolRebalanceStableBorrowRateIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*SparkPoolRebalanceStableBorrowRateIterator) 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 SparkPoolRepay

type SparkPoolRepay struct {
	Reserve    common.Address
	User       common.Address
	Repayer    common.Address
	Amount     *big.Int
	UseATokens bool
	Raw        types.Log // Blockchain specific contextual infos
}

SparkPoolRepay represents a Repay event raised by the SparkPool contract.

type SparkPoolRepayIterator

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

SparkPoolRepayIterator is returned from FilterRepay and is used to iterate over the raw logs and unpacked data for Repay events raised by the SparkPool contract.

func (*SparkPoolRepayIterator) Close

func (it *SparkPoolRepayIterator) Close() error

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

func (*SparkPoolRepayIterator) Error

func (it *SparkPoolRepayIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*SparkPoolRepayIterator) Next

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

type SparkPoolReserveDataUpdated struct {
	Reserve             common.Address
	LiquidityRate       *big.Int
	StableBorrowRate    *big.Int
	VariableBorrowRate  *big.Int
	LiquidityIndex      *big.Int
	VariableBorrowIndex *big.Int
	Raw                 types.Log // Blockchain specific contextual infos
}

SparkPoolReserveDataUpdated represents a ReserveDataUpdated event raised by the SparkPool contract.

type SparkPoolReserveDataUpdatedIterator

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

SparkPoolReserveDataUpdatedIterator is returned from FilterReserveDataUpdated and is used to iterate over the raw logs and unpacked data for ReserveDataUpdated events raised by the SparkPool contract.

func (*SparkPoolReserveDataUpdatedIterator) Close

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

func (*SparkPoolReserveDataUpdatedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*SparkPoolReserveDataUpdatedIterator) 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 SparkPoolReserveUsedAsCollateralDisabled

type SparkPoolReserveUsedAsCollateralDisabled struct {
	Reserve common.Address
	User    common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

SparkPoolReserveUsedAsCollateralDisabled represents a ReserveUsedAsCollateralDisabled event raised by the SparkPool contract.

type SparkPoolReserveUsedAsCollateralDisabledIterator

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

SparkPoolReserveUsedAsCollateralDisabledIterator is returned from FilterReserveUsedAsCollateralDisabled and is used to iterate over the raw logs and unpacked data for ReserveUsedAsCollateralDisabled events raised by the SparkPool contract.

func (*SparkPoolReserveUsedAsCollateralDisabledIterator) Close

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

func (*SparkPoolReserveUsedAsCollateralDisabledIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*SparkPoolReserveUsedAsCollateralDisabledIterator) 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 SparkPoolReserveUsedAsCollateralEnabled

type SparkPoolReserveUsedAsCollateralEnabled struct {
	Reserve common.Address
	User    common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

SparkPoolReserveUsedAsCollateralEnabled represents a ReserveUsedAsCollateralEnabled event raised by the SparkPool contract.

type SparkPoolReserveUsedAsCollateralEnabledIterator

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

SparkPoolReserveUsedAsCollateralEnabledIterator is returned from FilterReserveUsedAsCollateralEnabled and is used to iterate over the raw logs and unpacked data for ReserveUsedAsCollateralEnabled events raised by the SparkPool contract.

func (*SparkPoolReserveUsedAsCollateralEnabledIterator) Close

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

func (*SparkPoolReserveUsedAsCollateralEnabledIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*SparkPoolReserveUsedAsCollateralEnabledIterator) 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 SparkPoolSession

type SparkPoolSession struct {
	Contract     *SparkPool        // 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
}

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

func (*SparkPoolSession) ADDRESSESPROVIDER

func (_SparkPool *SparkPoolSession) ADDRESSESPROVIDER() (common.Address, error)

ADDRESSESPROVIDER is a free data retrieval call binding the contract method 0x0542975c.

Solidity: function ADDRESSES_PROVIDER() view returns(address)

func (*SparkPoolSession) BRIDGEPROTOCOLFEE

func (_SparkPool *SparkPoolSession) BRIDGEPROTOCOLFEE() (*big.Int, error)

BRIDGEPROTOCOLFEE is a free data retrieval call binding the contract method 0x272d9072.

Solidity: function BRIDGE_PROTOCOL_FEE() view returns(uint256)

func (*SparkPoolSession) BackUnbacked

func (_SparkPool *SparkPoolSession) BackUnbacked(asset common.Address, amount *big.Int, fee *big.Int) (*types.Transaction, error)

BackUnbacked is a paid mutator transaction binding the contract method 0xd65dc7a1.

Solidity: function backUnbacked(address asset, uint256 amount, uint256 fee) returns(uint256)

func (*SparkPoolSession) Borrow

func (_SparkPool *SparkPoolSession) Borrow(asset common.Address, amount *big.Int, interestRateMode *big.Int, referralCode uint16, onBehalfOf common.Address) (*types.Transaction, error)

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

Solidity: function borrow(address asset, uint256 amount, uint256 interestRateMode, uint16 referralCode, address onBehalfOf) returns()

func (*SparkPoolSession) ConfigureEModeCategory

func (_SparkPool *SparkPoolSession) ConfigureEModeCategory(id uint8, config DataTypesEModeCategory) (*types.Transaction, error)

ConfigureEModeCategory is a paid mutator transaction binding the contract method 0xd579ea7d.

Solidity: function configureEModeCategory(uint8 id, (uint16,uint16,uint16,address,string) config) returns()

func (*SparkPoolSession) Deposit

func (_SparkPool *SparkPoolSession) Deposit(asset common.Address, amount *big.Int, onBehalfOf common.Address, referralCode uint16) (*types.Transaction, error)

Deposit is a paid mutator transaction binding the contract method 0xe8eda9df.

Solidity: function deposit(address asset, uint256 amount, address onBehalfOf, uint16 referralCode) returns()

func (*SparkPoolSession) DropReserve

func (_SparkPool *SparkPoolSession) DropReserve(asset common.Address) (*types.Transaction, error)

DropReserve is a paid mutator transaction binding the contract method 0x63c9b860.

Solidity: function dropReserve(address asset) returns()

func (*SparkPoolSession) FLASHLOANPREMIUMTOPROTOCOL

func (_SparkPool *SparkPoolSession) FLASHLOANPREMIUMTOPROTOCOL() (*big.Int, error)

FLASHLOANPREMIUMTOPROTOCOL is a free data retrieval call binding the contract method 0x6a99c036.

Solidity: function FLASHLOAN_PREMIUM_TO_PROTOCOL() view returns(uint128)

func (*SparkPoolSession) FLASHLOANPREMIUMTOTAL

func (_SparkPool *SparkPoolSession) FLASHLOANPREMIUMTOTAL() (*big.Int, error)

FLASHLOANPREMIUMTOTAL is a free data retrieval call binding the contract method 0x074b2e43.

Solidity: function FLASHLOAN_PREMIUM_TOTAL() view returns(uint128)

func (*SparkPoolSession) FinalizeTransfer

func (_SparkPool *SparkPoolSession) FinalizeTransfer(asset common.Address, from common.Address, to common.Address, amount *big.Int, balanceFromBefore *big.Int, balanceToBefore *big.Int) (*types.Transaction, error)

FinalizeTransfer is a paid mutator transaction binding the contract method 0xd5ed3933.

Solidity: function finalizeTransfer(address asset, address from, address to, uint256 amount, uint256 balanceFromBefore, uint256 balanceToBefore) returns()

func (*SparkPoolSession) FlashLoan

func (_SparkPool *SparkPoolSession) FlashLoan(receiverAddress common.Address, assets []common.Address, amounts []*big.Int, interestRateModes []*big.Int, onBehalfOf common.Address, params []byte, referralCode uint16) (*types.Transaction, error)

FlashLoan is a paid mutator transaction binding the contract method 0xab9c4b5d.

Solidity: function flashLoan(address receiverAddress, address[] assets, uint256[] amounts, uint256[] interestRateModes, address onBehalfOf, bytes params, uint16 referralCode) returns()

func (*SparkPoolSession) FlashLoanSimple

func (_SparkPool *SparkPoolSession) FlashLoanSimple(receiverAddress common.Address, asset common.Address, amount *big.Int, params []byte, referralCode uint16) (*types.Transaction, error)

FlashLoanSimple is a paid mutator transaction binding the contract method 0x42b0b77c.

Solidity: function flashLoanSimple(address receiverAddress, address asset, uint256 amount, bytes params, uint16 referralCode) returns()

func (*SparkPoolSession) GetConfiguration

func (_SparkPool *SparkPoolSession) GetConfiguration(asset common.Address) (DataTypesReserveConfigurationMap, error)

GetConfiguration is a free data retrieval call binding the contract method 0xc44b11f7.

Solidity: function getConfiguration(address asset) view returns((uint256))

func (*SparkPoolSession) GetEModeCategoryData

func (_SparkPool *SparkPoolSession) GetEModeCategoryData(id uint8) (DataTypesEModeCategory, error)

GetEModeCategoryData is a free data retrieval call binding the contract method 0x6c6f6ae1.

Solidity: function getEModeCategoryData(uint8 id) view returns((uint16,uint16,uint16,address,string))

func (*SparkPoolSession) GetReserveAddressById

func (_SparkPool *SparkPoolSession) GetReserveAddressById(id uint16) (common.Address, error)

GetReserveAddressById is a free data retrieval call binding the contract method 0x52751797.

Solidity: function getReserveAddressById(uint16 id) view returns(address)

func (*SparkPoolSession) GetReserveData

func (_SparkPool *SparkPoolSession) GetReserveData(asset common.Address) (DataTypesReserveData, error)

GetReserveData is a free data retrieval call binding the contract method 0x35ea6a75.

Solidity: function getReserveData(address asset) view returns(((uint256),uint128,uint128,uint128,uint128,uint128,uint40,uint16,address,address,address,address,uint128,uint128,uint128))

func (*SparkPoolSession) GetReserveNormalizedIncome

func (_SparkPool *SparkPoolSession) GetReserveNormalizedIncome(asset common.Address) (*big.Int, error)

GetReserveNormalizedIncome is a free data retrieval call binding the contract method 0xd15e0053.

Solidity: function getReserveNormalizedIncome(address asset) view returns(uint256)

func (*SparkPoolSession) GetReserveNormalizedVariableDebt

func (_SparkPool *SparkPoolSession) GetReserveNormalizedVariableDebt(asset common.Address) (*big.Int, error)

GetReserveNormalizedVariableDebt is a free data retrieval call binding the contract method 0x386497fd.

Solidity: function getReserveNormalizedVariableDebt(address asset) view returns(uint256)

func (*SparkPoolSession) GetReservesList

func (_SparkPool *SparkPoolSession) GetReservesList() ([]common.Address, error)

GetReservesList is a free data retrieval call binding the contract method 0xd1946dbc.

Solidity: function getReservesList() view returns(address[])

func (*SparkPoolSession) GetUserAccountData

func (_SparkPool *SparkPoolSession) GetUserAccountData(user common.Address) (struct {
	TotalCollateralBase         *big.Int
	TotalDebtBase               *big.Int
	AvailableBorrowsBase        *big.Int
	CurrentLiquidationThreshold *big.Int
	Ltv                         *big.Int
	HealthFactor                *big.Int
}, error)

GetUserAccountData is a free data retrieval call binding the contract method 0xbf92857c.

Solidity: function getUserAccountData(address user) view returns(uint256 totalCollateralBase, uint256 totalDebtBase, uint256 availableBorrowsBase, uint256 currentLiquidationThreshold, uint256 ltv, uint256 healthFactor)

func (*SparkPoolSession) GetUserConfiguration

func (_SparkPool *SparkPoolSession) GetUserConfiguration(user common.Address) (DataTypesUserConfigurationMap, error)

GetUserConfiguration is a free data retrieval call binding the contract method 0x4417a583.

Solidity: function getUserConfiguration(address user) view returns((uint256))

func (*SparkPoolSession) GetUserEMode

func (_SparkPool *SparkPoolSession) GetUserEMode(user common.Address) (*big.Int, error)

GetUserEMode is a free data retrieval call binding the contract method 0xeddf1b79.

Solidity: function getUserEMode(address user) view returns(uint256)

func (*SparkPoolSession) InitReserve

func (_SparkPool *SparkPoolSession) InitReserve(asset common.Address, aTokenAddress common.Address, stableDebtAddress common.Address, variableDebtAddress common.Address, interestRateStrategyAddress common.Address) (*types.Transaction, error)

InitReserve is a paid mutator transaction binding the contract method 0x7a708e92.

Solidity: function initReserve(address asset, address aTokenAddress, address stableDebtAddress, address variableDebtAddress, address interestRateStrategyAddress) returns()

func (*SparkPoolSession) LiquidationCall

func (_SparkPool *SparkPoolSession) LiquidationCall(collateralAsset common.Address, debtAsset common.Address, user common.Address, debtToCover *big.Int, receiveAToken bool) (*types.Transaction, error)

LiquidationCall is a paid mutator transaction binding the contract method 0x00a718a9.

Solidity: function liquidationCall(address collateralAsset, address debtAsset, address user, uint256 debtToCover, bool receiveAToken) returns()

func (*SparkPoolSession) MAXNUMBERRESERVES

func (_SparkPool *SparkPoolSession) MAXNUMBERRESERVES() (uint16, error)

MAXNUMBERRESERVES is a free data retrieval call binding the contract method 0xf8119d51.

Solidity: function MAX_NUMBER_RESERVES() view returns(uint16)

func (*SparkPoolSession) MAXSTABLERATEBORROWSIZEPERCENT

func (_SparkPool *SparkPoolSession) MAXSTABLERATEBORROWSIZEPERCENT() (*big.Int, error)

MAXSTABLERATEBORROWSIZEPERCENT is a free data retrieval call binding the contract method 0xe82fec2f.

Solidity: function MAX_STABLE_RATE_BORROW_SIZE_PERCENT() view returns(uint256)

func (*SparkPoolSession) MintToTreasury

func (_SparkPool *SparkPoolSession) MintToTreasury(assets []common.Address) (*types.Transaction, error)

MintToTreasury is a paid mutator transaction binding the contract method 0x9cd19996.

Solidity: function mintToTreasury(address[] assets) returns()

func (*SparkPoolSession) MintUnbacked

func (_SparkPool *SparkPoolSession) MintUnbacked(asset common.Address, amount *big.Int, onBehalfOf common.Address, referralCode uint16) (*types.Transaction, error)

MintUnbacked is a paid mutator transaction binding the contract method 0x69a933a5.

Solidity: function mintUnbacked(address asset, uint256 amount, address onBehalfOf, uint16 referralCode) returns()

func (*SparkPoolSession) RebalanceStableBorrowRate

func (_SparkPool *SparkPoolSession) RebalanceStableBorrowRate(asset common.Address, user common.Address) (*types.Transaction, error)

RebalanceStableBorrowRate is a paid mutator transaction binding the contract method 0xcd112382.

Solidity: function rebalanceStableBorrowRate(address asset, address user) returns()

func (*SparkPoolSession) Repay

func (_SparkPool *SparkPoolSession) Repay(asset common.Address, amount *big.Int, interestRateMode *big.Int, onBehalfOf common.Address) (*types.Transaction, error)

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

Solidity: function repay(address asset, uint256 amount, uint256 interestRateMode, address onBehalfOf) returns(uint256)

func (*SparkPoolSession) RepayWithATokens

func (_SparkPool *SparkPoolSession) RepayWithATokens(asset common.Address, amount *big.Int, interestRateMode *big.Int) (*types.Transaction, error)

RepayWithATokens is a paid mutator transaction binding the contract method 0x2dad97d4.

Solidity: function repayWithATokens(address asset, uint256 amount, uint256 interestRateMode) returns(uint256)

func (*SparkPoolSession) RepayWithPermit

func (_SparkPool *SparkPoolSession) RepayWithPermit(asset common.Address, amount *big.Int, interestRateMode *big.Int, onBehalfOf common.Address, deadline *big.Int, permitV uint8, permitR [32]byte, permitS [32]byte) (*types.Transaction, error)

RepayWithPermit is a paid mutator transaction binding the contract method 0xee3e210b.

Solidity: function repayWithPermit(address asset, uint256 amount, uint256 interestRateMode, address onBehalfOf, uint256 deadline, uint8 permitV, bytes32 permitR, bytes32 permitS) returns(uint256)

func (*SparkPoolSession) RescueTokens

func (_SparkPool *SparkPoolSession) RescueTokens(token common.Address, to common.Address, amount *big.Int) (*types.Transaction, error)

RescueTokens is a paid mutator transaction binding the contract method 0xcea9d26f.

Solidity: function rescueTokens(address token, address to, uint256 amount) returns()

func (*SparkPoolSession) ResetIsolationModeTotalDebt

func (_SparkPool *SparkPoolSession) ResetIsolationModeTotalDebt(asset common.Address) (*types.Transaction, error)

ResetIsolationModeTotalDebt is a paid mutator transaction binding the contract method 0xe43e88a1.

Solidity: function resetIsolationModeTotalDebt(address asset) returns()

func (*SparkPoolSession) SetConfiguration

func (_SparkPool *SparkPoolSession) SetConfiguration(asset common.Address, configuration DataTypesReserveConfigurationMap) (*types.Transaction, error)

SetConfiguration is a paid mutator transaction binding the contract method 0xf51e435b.

Solidity: function setConfiguration(address asset, (uint256) configuration) returns()

func (*SparkPoolSession) SetReserveInterestRateStrategyAddress

func (_SparkPool *SparkPoolSession) SetReserveInterestRateStrategyAddress(asset common.Address, rateStrategyAddress common.Address) (*types.Transaction, error)

SetReserveInterestRateStrategyAddress is a paid mutator transaction binding the contract method 0x1d2118f9.

Solidity: function setReserveInterestRateStrategyAddress(address asset, address rateStrategyAddress) returns()

func (*SparkPoolSession) SetUserEMode

func (_SparkPool *SparkPoolSession) SetUserEMode(categoryId uint8) (*types.Transaction, error)

SetUserEMode is a paid mutator transaction binding the contract method 0x28530a47.

Solidity: function setUserEMode(uint8 categoryId) returns()

func (*SparkPoolSession) SetUserUseReserveAsCollateral

func (_SparkPool *SparkPoolSession) SetUserUseReserveAsCollateral(asset common.Address, useAsCollateral bool) (*types.Transaction, error)

SetUserUseReserveAsCollateral is a paid mutator transaction binding the contract method 0x5a3b74b9.

Solidity: function setUserUseReserveAsCollateral(address asset, bool useAsCollateral) returns()

func (*SparkPoolSession) Supply

func (_SparkPool *SparkPoolSession) Supply(asset common.Address, amount *big.Int, onBehalfOf common.Address, referralCode uint16) (*types.Transaction, error)

Supply is a paid mutator transaction binding the contract method 0x617ba037.

Solidity: function supply(address asset, uint256 amount, address onBehalfOf, uint16 referralCode) returns()

func (*SparkPoolSession) SupplyWithPermit

func (_SparkPool *SparkPoolSession) SupplyWithPermit(asset common.Address, amount *big.Int, onBehalfOf common.Address, referralCode uint16, deadline *big.Int, permitV uint8, permitR [32]byte, permitS [32]byte) (*types.Transaction, error)

SupplyWithPermit is a paid mutator transaction binding the contract method 0x02c205f0.

Solidity: function supplyWithPermit(address asset, uint256 amount, address onBehalfOf, uint16 referralCode, uint256 deadline, uint8 permitV, bytes32 permitR, bytes32 permitS) returns()

func (*SparkPoolSession) SwapBorrowRateMode

func (_SparkPool *SparkPoolSession) SwapBorrowRateMode(asset common.Address, interestRateMode *big.Int) (*types.Transaction, error)

SwapBorrowRateMode is a paid mutator transaction binding the contract method 0x94ba89a2.

Solidity: function swapBorrowRateMode(address asset, uint256 interestRateMode) returns()

func (*SparkPoolSession) UpdateBridgeProtocolFee

func (_SparkPool *SparkPoolSession) UpdateBridgeProtocolFee(bridgeProtocolFee *big.Int) (*types.Transaction, error)

UpdateBridgeProtocolFee is a paid mutator transaction binding the contract method 0x3036b439.

Solidity: function updateBridgeProtocolFee(uint256 bridgeProtocolFee) returns()

func (*SparkPoolSession) UpdateFlashloanPremiums

func (_SparkPool *SparkPoolSession) UpdateFlashloanPremiums(flashLoanPremiumTotal *big.Int, flashLoanPremiumToProtocol *big.Int) (*types.Transaction, error)

UpdateFlashloanPremiums is a paid mutator transaction binding the contract method 0xbcb6e522.

Solidity: function updateFlashloanPremiums(uint128 flashLoanPremiumTotal, uint128 flashLoanPremiumToProtocol) returns()

func (*SparkPoolSession) Withdraw

func (_SparkPool *SparkPoolSession) Withdraw(asset common.Address, amount *big.Int, to common.Address) (*types.Transaction, error)

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

Solidity: function withdraw(address asset, uint256 amount, address to) returns(uint256)

type SparkPoolSupply

type SparkPoolSupply struct {
	Reserve      common.Address
	User         common.Address
	OnBehalfOf   common.Address
	Amount       *big.Int
	ReferralCode uint16
	Raw          types.Log // Blockchain specific contextual infos
}

SparkPoolSupply represents a Supply event raised by the SparkPool contract.

type SparkPoolSupplyIterator

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

SparkPoolSupplyIterator is returned from FilterSupply and is used to iterate over the raw logs and unpacked data for Supply events raised by the SparkPool contract.

func (*SparkPoolSupplyIterator) Close

func (it *SparkPoolSupplyIterator) Close() error

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

func (*SparkPoolSupplyIterator) Error

func (it *SparkPoolSupplyIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*SparkPoolSupplyIterator) Next

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

type SparkPoolSwapBorrowRateMode struct {
	Reserve          common.Address
	User             common.Address
	InterestRateMode uint8
	Raw              types.Log // Blockchain specific contextual infos
}

SparkPoolSwapBorrowRateMode represents a SwapBorrowRateMode event raised by the SparkPool contract.

type SparkPoolSwapBorrowRateModeIterator

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

SparkPoolSwapBorrowRateModeIterator is returned from FilterSwapBorrowRateMode and is used to iterate over the raw logs and unpacked data for SwapBorrowRateMode events raised by the SparkPool contract.

func (*SparkPoolSwapBorrowRateModeIterator) Close

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

func (*SparkPoolSwapBorrowRateModeIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*SparkPoolSwapBorrowRateModeIterator) 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 SparkPoolTransactor

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

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

func NewSparkPoolTransactor

func NewSparkPoolTransactor(address common.Address, transactor bind.ContractTransactor) (*SparkPoolTransactor, error)

NewSparkPoolTransactor creates a new write-only instance of SparkPool, bound to a specific deployed contract.

func (*SparkPoolTransactor) BackUnbacked

func (_SparkPool *SparkPoolTransactor) BackUnbacked(opts *bind.TransactOpts, asset common.Address, amount *big.Int, fee *big.Int) (*types.Transaction, error)

BackUnbacked is a paid mutator transaction binding the contract method 0xd65dc7a1.

Solidity: function backUnbacked(address asset, uint256 amount, uint256 fee) returns(uint256)

func (*SparkPoolTransactor) Borrow

func (_SparkPool *SparkPoolTransactor) Borrow(opts *bind.TransactOpts, asset common.Address, amount *big.Int, interestRateMode *big.Int, referralCode uint16, onBehalfOf common.Address) (*types.Transaction, error)

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

Solidity: function borrow(address asset, uint256 amount, uint256 interestRateMode, uint16 referralCode, address onBehalfOf) returns()

func (*SparkPoolTransactor) ConfigureEModeCategory

func (_SparkPool *SparkPoolTransactor) ConfigureEModeCategory(opts *bind.TransactOpts, id uint8, config DataTypesEModeCategory) (*types.Transaction, error)

ConfigureEModeCategory is a paid mutator transaction binding the contract method 0xd579ea7d.

Solidity: function configureEModeCategory(uint8 id, (uint16,uint16,uint16,address,string) config) returns()

func (*SparkPoolTransactor) Deposit

func (_SparkPool *SparkPoolTransactor) Deposit(opts *bind.TransactOpts, asset common.Address, amount *big.Int, onBehalfOf common.Address, referralCode uint16) (*types.Transaction, error)

Deposit is a paid mutator transaction binding the contract method 0xe8eda9df.

Solidity: function deposit(address asset, uint256 amount, address onBehalfOf, uint16 referralCode) returns()

func (*SparkPoolTransactor) DropReserve

func (_SparkPool *SparkPoolTransactor) DropReserve(opts *bind.TransactOpts, asset common.Address) (*types.Transaction, error)

DropReserve is a paid mutator transaction binding the contract method 0x63c9b860.

Solidity: function dropReserve(address asset) returns()

func (*SparkPoolTransactor) FinalizeTransfer

func (_SparkPool *SparkPoolTransactor) FinalizeTransfer(opts *bind.TransactOpts, asset common.Address, from common.Address, to common.Address, amount *big.Int, balanceFromBefore *big.Int, balanceToBefore *big.Int) (*types.Transaction, error)

FinalizeTransfer is a paid mutator transaction binding the contract method 0xd5ed3933.

Solidity: function finalizeTransfer(address asset, address from, address to, uint256 amount, uint256 balanceFromBefore, uint256 balanceToBefore) returns()

func (*SparkPoolTransactor) FlashLoan

func (_SparkPool *SparkPoolTransactor) FlashLoan(opts *bind.TransactOpts, receiverAddress common.Address, assets []common.Address, amounts []*big.Int, interestRateModes []*big.Int, onBehalfOf common.Address, params []byte, referralCode uint16) (*types.Transaction, error)

FlashLoan is a paid mutator transaction binding the contract method 0xab9c4b5d.

Solidity: function flashLoan(address receiverAddress, address[] assets, uint256[] amounts, uint256[] interestRateModes, address onBehalfOf, bytes params, uint16 referralCode) returns()

func (*SparkPoolTransactor) FlashLoanSimple

func (_SparkPool *SparkPoolTransactor) FlashLoanSimple(opts *bind.TransactOpts, receiverAddress common.Address, asset common.Address, amount *big.Int, params []byte, referralCode uint16) (*types.Transaction, error)

FlashLoanSimple is a paid mutator transaction binding the contract method 0x42b0b77c.

Solidity: function flashLoanSimple(address receiverAddress, address asset, uint256 amount, bytes params, uint16 referralCode) returns()

func (*SparkPoolTransactor) InitReserve

func (_SparkPool *SparkPoolTransactor) InitReserve(opts *bind.TransactOpts, asset common.Address, aTokenAddress common.Address, stableDebtAddress common.Address, variableDebtAddress common.Address, interestRateStrategyAddress common.Address) (*types.Transaction, error)

InitReserve is a paid mutator transaction binding the contract method 0x7a708e92.

Solidity: function initReserve(address asset, address aTokenAddress, address stableDebtAddress, address variableDebtAddress, address interestRateStrategyAddress) returns()

func (*SparkPoolTransactor) LiquidationCall

func (_SparkPool *SparkPoolTransactor) LiquidationCall(opts *bind.TransactOpts, collateralAsset common.Address, debtAsset common.Address, user common.Address, debtToCover *big.Int, receiveAToken bool) (*types.Transaction, error)

LiquidationCall is a paid mutator transaction binding the contract method 0x00a718a9.

Solidity: function liquidationCall(address collateralAsset, address debtAsset, address user, uint256 debtToCover, bool receiveAToken) returns()

func (*SparkPoolTransactor) MintToTreasury

func (_SparkPool *SparkPoolTransactor) MintToTreasury(opts *bind.TransactOpts, assets []common.Address) (*types.Transaction, error)

MintToTreasury is a paid mutator transaction binding the contract method 0x9cd19996.

Solidity: function mintToTreasury(address[] assets) returns()

func (*SparkPoolTransactor) MintUnbacked

func (_SparkPool *SparkPoolTransactor) MintUnbacked(opts *bind.TransactOpts, asset common.Address, amount *big.Int, onBehalfOf common.Address, referralCode uint16) (*types.Transaction, error)

MintUnbacked is a paid mutator transaction binding the contract method 0x69a933a5.

Solidity: function mintUnbacked(address asset, uint256 amount, address onBehalfOf, uint16 referralCode) returns()

func (*SparkPoolTransactor) RebalanceStableBorrowRate

func (_SparkPool *SparkPoolTransactor) RebalanceStableBorrowRate(opts *bind.TransactOpts, asset common.Address, user common.Address) (*types.Transaction, error)

RebalanceStableBorrowRate is a paid mutator transaction binding the contract method 0xcd112382.

Solidity: function rebalanceStableBorrowRate(address asset, address user) returns()

func (*SparkPoolTransactor) Repay

func (_SparkPool *SparkPoolTransactor) Repay(opts *bind.TransactOpts, asset common.Address, amount *big.Int, interestRateMode *big.Int, onBehalfOf common.Address) (*types.Transaction, error)

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

Solidity: function repay(address asset, uint256 amount, uint256 interestRateMode, address onBehalfOf) returns(uint256)

func (*SparkPoolTransactor) RepayWithATokens

func (_SparkPool *SparkPoolTransactor) RepayWithATokens(opts *bind.TransactOpts, asset common.Address, amount *big.Int, interestRateMode *big.Int) (*types.Transaction, error)

RepayWithATokens is a paid mutator transaction binding the contract method 0x2dad97d4.

Solidity: function repayWithATokens(address asset, uint256 amount, uint256 interestRateMode) returns(uint256)

func (*SparkPoolTransactor) RepayWithPermit

func (_SparkPool *SparkPoolTransactor) RepayWithPermit(opts *bind.TransactOpts, asset common.Address, amount *big.Int, interestRateMode *big.Int, onBehalfOf common.Address, deadline *big.Int, permitV uint8, permitR [32]byte, permitS [32]byte) (*types.Transaction, error)

RepayWithPermit is a paid mutator transaction binding the contract method 0xee3e210b.

Solidity: function repayWithPermit(address asset, uint256 amount, uint256 interestRateMode, address onBehalfOf, uint256 deadline, uint8 permitV, bytes32 permitR, bytes32 permitS) returns(uint256)

func (*SparkPoolTransactor) RescueTokens

func (_SparkPool *SparkPoolTransactor) RescueTokens(opts *bind.TransactOpts, token common.Address, to common.Address, amount *big.Int) (*types.Transaction, error)

RescueTokens is a paid mutator transaction binding the contract method 0xcea9d26f.

Solidity: function rescueTokens(address token, address to, uint256 amount) returns()

func (*SparkPoolTransactor) ResetIsolationModeTotalDebt

func (_SparkPool *SparkPoolTransactor) ResetIsolationModeTotalDebt(opts *bind.TransactOpts, asset common.Address) (*types.Transaction, error)

ResetIsolationModeTotalDebt is a paid mutator transaction binding the contract method 0xe43e88a1.

Solidity: function resetIsolationModeTotalDebt(address asset) returns()

func (*SparkPoolTransactor) SetConfiguration

func (_SparkPool *SparkPoolTransactor) SetConfiguration(opts *bind.TransactOpts, asset common.Address, configuration DataTypesReserveConfigurationMap) (*types.Transaction, error)

SetConfiguration is a paid mutator transaction binding the contract method 0xf51e435b.

Solidity: function setConfiguration(address asset, (uint256) configuration) returns()

func (*SparkPoolTransactor) SetReserveInterestRateStrategyAddress

func (_SparkPool *SparkPoolTransactor) SetReserveInterestRateStrategyAddress(opts *bind.TransactOpts, asset common.Address, rateStrategyAddress common.Address) (*types.Transaction, error)

SetReserveInterestRateStrategyAddress is a paid mutator transaction binding the contract method 0x1d2118f9.

Solidity: function setReserveInterestRateStrategyAddress(address asset, address rateStrategyAddress) returns()

func (*SparkPoolTransactor) SetUserEMode

func (_SparkPool *SparkPoolTransactor) SetUserEMode(opts *bind.TransactOpts, categoryId uint8) (*types.Transaction, error)

SetUserEMode is a paid mutator transaction binding the contract method 0x28530a47.

Solidity: function setUserEMode(uint8 categoryId) returns()

func (*SparkPoolTransactor) SetUserUseReserveAsCollateral

func (_SparkPool *SparkPoolTransactor) SetUserUseReserveAsCollateral(opts *bind.TransactOpts, asset common.Address, useAsCollateral bool) (*types.Transaction, error)

SetUserUseReserveAsCollateral is a paid mutator transaction binding the contract method 0x5a3b74b9.

Solidity: function setUserUseReserveAsCollateral(address asset, bool useAsCollateral) returns()

func (*SparkPoolTransactor) Supply

func (_SparkPool *SparkPoolTransactor) Supply(opts *bind.TransactOpts, asset common.Address, amount *big.Int, onBehalfOf common.Address, referralCode uint16) (*types.Transaction, error)

Supply is a paid mutator transaction binding the contract method 0x617ba037.

Solidity: function supply(address asset, uint256 amount, address onBehalfOf, uint16 referralCode) returns()

func (*SparkPoolTransactor) SupplyWithPermit

func (_SparkPool *SparkPoolTransactor) SupplyWithPermit(opts *bind.TransactOpts, asset common.Address, amount *big.Int, onBehalfOf common.Address, referralCode uint16, deadline *big.Int, permitV uint8, permitR [32]byte, permitS [32]byte) (*types.Transaction, error)

SupplyWithPermit is a paid mutator transaction binding the contract method 0x02c205f0.

Solidity: function supplyWithPermit(address asset, uint256 amount, address onBehalfOf, uint16 referralCode, uint256 deadline, uint8 permitV, bytes32 permitR, bytes32 permitS) returns()

func (*SparkPoolTransactor) SwapBorrowRateMode

func (_SparkPool *SparkPoolTransactor) SwapBorrowRateMode(opts *bind.TransactOpts, asset common.Address, interestRateMode *big.Int) (*types.Transaction, error)

SwapBorrowRateMode is a paid mutator transaction binding the contract method 0x94ba89a2.

Solidity: function swapBorrowRateMode(address asset, uint256 interestRateMode) returns()

func (*SparkPoolTransactor) UpdateBridgeProtocolFee

func (_SparkPool *SparkPoolTransactor) UpdateBridgeProtocolFee(opts *bind.TransactOpts, bridgeProtocolFee *big.Int) (*types.Transaction, error)

UpdateBridgeProtocolFee is a paid mutator transaction binding the contract method 0x3036b439.

Solidity: function updateBridgeProtocolFee(uint256 bridgeProtocolFee) returns()

func (*SparkPoolTransactor) UpdateFlashloanPremiums

func (_SparkPool *SparkPoolTransactor) UpdateFlashloanPremiums(opts *bind.TransactOpts, flashLoanPremiumTotal *big.Int, flashLoanPremiumToProtocol *big.Int) (*types.Transaction, error)

UpdateFlashloanPremiums is a paid mutator transaction binding the contract method 0xbcb6e522.

Solidity: function updateFlashloanPremiums(uint128 flashLoanPremiumTotal, uint128 flashLoanPremiumToProtocol) returns()

func (*SparkPoolTransactor) Withdraw

func (_SparkPool *SparkPoolTransactor) Withdraw(opts *bind.TransactOpts, asset common.Address, amount *big.Int, to common.Address) (*types.Transaction, error)

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

Solidity: function withdraw(address asset, uint256 amount, address to) returns(uint256)

type SparkPoolTransactorRaw

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

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

func (*SparkPoolTransactorRaw) Transact

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

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

func (*SparkPoolTransactorRaw) Transfer

func (_SparkPool *SparkPoolTransactorRaw) 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 SparkPoolTransactorSession

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

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

func (*SparkPoolTransactorSession) BackUnbacked

func (_SparkPool *SparkPoolTransactorSession) BackUnbacked(asset common.Address, amount *big.Int, fee *big.Int) (*types.Transaction, error)

BackUnbacked is a paid mutator transaction binding the contract method 0xd65dc7a1.

Solidity: function backUnbacked(address asset, uint256 amount, uint256 fee) returns(uint256)

func (*SparkPoolTransactorSession) Borrow

func (_SparkPool *SparkPoolTransactorSession) Borrow(asset common.Address, amount *big.Int, interestRateMode *big.Int, referralCode uint16, onBehalfOf common.Address) (*types.Transaction, error)

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

Solidity: function borrow(address asset, uint256 amount, uint256 interestRateMode, uint16 referralCode, address onBehalfOf) returns()

func (*SparkPoolTransactorSession) ConfigureEModeCategory

func (_SparkPool *SparkPoolTransactorSession) ConfigureEModeCategory(id uint8, config DataTypesEModeCategory) (*types.Transaction, error)

ConfigureEModeCategory is a paid mutator transaction binding the contract method 0xd579ea7d.

Solidity: function configureEModeCategory(uint8 id, (uint16,uint16,uint16,address,string) config) returns()

func (*SparkPoolTransactorSession) Deposit

func (_SparkPool *SparkPoolTransactorSession) Deposit(asset common.Address, amount *big.Int, onBehalfOf common.Address, referralCode uint16) (*types.Transaction, error)

Deposit is a paid mutator transaction binding the contract method 0xe8eda9df.

Solidity: function deposit(address asset, uint256 amount, address onBehalfOf, uint16 referralCode) returns()

func (*SparkPoolTransactorSession) DropReserve

func (_SparkPool *SparkPoolTransactorSession) DropReserve(asset common.Address) (*types.Transaction, error)

DropReserve is a paid mutator transaction binding the contract method 0x63c9b860.

Solidity: function dropReserve(address asset) returns()

func (*SparkPoolTransactorSession) FinalizeTransfer

func (_SparkPool *SparkPoolTransactorSession) FinalizeTransfer(asset common.Address, from common.Address, to common.Address, amount *big.Int, balanceFromBefore *big.Int, balanceToBefore *big.Int) (*types.Transaction, error)

FinalizeTransfer is a paid mutator transaction binding the contract method 0xd5ed3933.

Solidity: function finalizeTransfer(address asset, address from, address to, uint256 amount, uint256 balanceFromBefore, uint256 balanceToBefore) returns()

func (*SparkPoolTransactorSession) FlashLoan

func (_SparkPool *SparkPoolTransactorSession) FlashLoan(receiverAddress common.Address, assets []common.Address, amounts []*big.Int, interestRateModes []*big.Int, onBehalfOf common.Address, params []byte, referralCode uint16) (*types.Transaction, error)

FlashLoan is a paid mutator transaction binding the contract method 0xab9c4b5d.

Solidity: function flashLoan(address receiverAddress, address[] assets, uint256[] amounts, uint256[] interestRateModes, address onBehalfOf, bytes params, uint16 referralCode) returns()

func (*SparkPoolTransactorSession) FlashLoanSimple

func (_SparkPool *SparkPoolTransactorSession) FlashLoanSimple(receiverAddress common.Address, asset common.Address, amount *big.Int, params []byte, referralCode uint16) (*types.Transaction, error)

FlashLoanSimple is a paid mutator transaction binding the contract method 0x42b0b77c.

Solidity: function flashLoanSimple(address receiverAddress, address asset, uint256 amount, bytes params, uint16 referralCode) returns()

func (*SparkPoolTransactorSession) InitReserve

func (_SparkPool *SparkPoolTransactorSession) InitReserve(asset common.Address, aTokenAddress common.Address, stableDebtAddress common.Address, variableDebtAddress common.Address, interestRateStrategyAddress common.Address) (*types.Transaction, error)

InitReserve is a paid mutator transaction binding the contract method 0x7a708e92.

Solidity: function initReserve(address asset, address aTokenAddress, address stableDebtAddress, address variableDebtAddress, address interestRateStrategyAddress) returns()

func (*SparkPoolTransactorSession) LiquidationCall

func (_SparkPool *SparkPoolTransactorSession) LiquidationCall(collateralAsset common.Address, debtAsset common.Address, user common.Address, debtToCover *big.Int, receiveAToken bool) (*types.Transaction, error)

LiquidationCall is a paid mutator transaction binding the contract method 0x00a718a9.

Solidity: function liquidationCall(address collateralAsset, address debtAsset, address user, uint256 debtToCover, bool receiveAToken) returns()

func (*SparkPoolTransactorSession) MintToTreasury

func (_SparkPool *SparkPoolTransactorSession) MintToTreasury(assets []common.Address) (*types.Transaction, error)

MintToTreasury is a paid mutator transaction binding the contract method 0x9cd19996.

Solidity: function mintToTreasury(address[] assets) returns()

func (*SparkPoolTransactorSession) MintUnbacked

func (_SparkPool *SparkPoolTransactorSession) MintUnbacked(asset common.Address, amount *big.Int, onBehalfOf common.Address, referralCode uint16) (*types.Transaction, error)

MintUnbacked is a paid mutator transaction binding the contract method 0x69a933a5.

Solidity: function mintUnbacked(address asset, uint256 amount, address onBehalfOf, uint16 referralCode) returns()

func (*SparkPoolTransactorSession) RebalanceStableBorrowRate

func (_SparkPool *SparkPoolTransactorSession) RebalanceStableBorrowRate(asset common.Address, user common.Address) (*types.Transaction, error)

RebalanceStableBorrowRate is a paid mutator transaction binding the contract method 0xcd112382.

Solidity: function rebalanceStableBorrowRate(address asset, address user) returns()

func (*SparkPoolTransactorSession) Repay

func (_SparkPool *SparkPoolTransactorSession) Repay(asset common.Address, amount *big.Int, interestRateMode *big.Int, onBehalfOf common.Address) (*types.Transaction, error)

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

Solidity: function repay(address asset, uint256 amount, uint256 interestRateMode, address onBehalfOf) returns(uint256)

func (*SparkPoolTransactorSession) RepayWithATokens

func (_SparkPool *SparkPoolTransactorSession) RepayWithATokens(asset common.Address, amount *big.Int, interestRateMode *big.Int) (*types.Transaction, error)

RepayWithATokens is a paid mutator transaction binding the contract method 0x2dad97d4.

Solidity: function repayWithATokens(address asset, uint256 amount, uint256 interestRateMode) returns(uint256)

func (*SparkPoolTransactorSession) RepayWithPermit

func (_SparkPool *SparkPoolTransactorSession) RepayWithPermit(asset common.Address, amount *big.Int, interestRateMode *big.Int, onBehalfOf common.Address, deadline *big.Int, permitV uint8, permitR [32]byte, permitS [32]byte) (*types.Transaction, error)

RepayWithPermit is a paid mutator transaction binding the contract method 0xee3e210b.

Solidity: function repayWithPermit(address asset, uint256 amount, uint256 interestRateMode, address onBehalfOf, uint256 deadline, uint8 permitV, bytes32 permitR, bytes32 permitS) returns(uint256)

func (*SparkPoolTransactorSession) RescueTokens

func (_SparkPool *SparkPoolTransactorSession) RescueTokens(token common.Address, to common.Address, amount *big.Int) (*types.Transaction, error)

RescueTokens is a paid mutator transaction binding the contract method 0xcea9d26f.

Solidity: function rescueTokens(address token, address to, uint256 amount) returns()

func (*SparkPoolTransactorSession) ResetIsolationModeTotalDebt

func (_SparkPool *SparkPoolTransactorSession) ResetIsolationModeTotalDebt(asset common.Address) (*types.Transaction, error)

ResetIsolationModeTotalDebt is a paid mutator transaction binding the contract method 0xe43e88a1.

Solidity: function resetIsolationModeTotalDebt(address asset) returns()

func (*SparkPoolTransactorSession) SetConfiguration

func (_SparkPool *SparkPoolTransactorSession) SetConfiguration(asset common.Address, configuration DataTypesReserveConfigurationMap) (*types.Transaction, error)

SetConfiguration is a paid mutator transaction binding the contract method 0xf51e435b.

Solidity: function setConfiguration(address asset, (uint256) configuration) returns()

func (*SparkPoolTransactorSession) SetReserveInterestRateStrategyAddress

func (_SparkPool *SparkPoolTransactorSession) SetReserveInterestRateStrategyAddress(asset common.Address, rateStrategyAddress common.Address) (*types.Transaction, error)

SetReserveInterestRateStrategyAddress is a paid mutator transaction binding the contract method 0x1d2118f9.

Solidity: function setReserveInterestRateStrategyAddress(address asset, address rateStrategyAddress) returns()

func (*SparkPoolTransactorSession) SetUserEMode

func (_SparkPool *SparkPoolTransactorSession) SetUserEMode(categoryId uint8) (*types.Transaction, error)

SetUserEMode is a paid mutator transaction binding the contract method 0x28530a47.

Solidity: function setUserEMode(uint8 categoryId) returns()

func (*SparkPoolTransactorSession) SetUserUseReserveAsCollateral

func (_SparkPool *SparkPoolTransactorSession) SetUserUseReserveAsCollateral(asset common.Address, useAsCollateral bool) (*types.Transaction, error)

SetUserUseReserveAsCollateral is a paid mutator transaction binding the contract method 0x5a3b74b9.

Solidity: function setUserUseReserveAsCollateral(address asset, bool useAsCollateral) returns()

func (*SparkPoolTransactorSession) Supply

func (_SparkPool *SparkPoolTransactorSession) Supply(asset common.Address, amount *big.Int, onBehalfOf common.Address, referralCode uint16) (*types.Transaction, error)

Supply is a paid mutator transaction binding the contract method 0x617ba037.

Solidity: function supply(address asset, uint256 amount, address onBehalfOf, uint16 referralCode) returns()

func (*SparkPoolTransactorSession) SupplyWithPermit

func (_SparkPool *SparkPoolTransactorSession) SupplyWithPermit(asset common.Address, amount *big.Int, onBehalfOf common.Address, referralCode uint16, deadline *big.Int, permitV uint8, permitR [32]byte, permitS [32]byte) (*types.Transaction, error)

SupplyWithPermit is a paid mutator transaction binding the contract method 0x02c205f0.

Solidity: function supplyWithPermit(address asset, uint256 amount, address onBehalfOf, uint16 referralCode, uint256 deadline, uint8 permitV, bytes32 permitR, bytes32 permitS) returns()

func (*SparkPoolTransactorSession) SwapBorrowRateMode

func (_SparkPool *SparkPoolTransactorSession) SwapBorrowRateMode(asset common.Address, interestRateMode *big.Int) (*types.Transaction, error)

SwapBorrowRateMode is a paid mutator transaction binding the contract method 0x94ba89a2.

Solidity: function swapBorrowRateMode(address asset, uint256 interestRateMode) returns()

func (*SparkPoolTransactorSession) UpdateBridgeProtocolFee

func (_SparkPool *SparkPoolTransactorSession) UpdateBridgeProtocolFee(bridgeProtocolFee *big.Int) (*types.Transaction, error)

UpdateBridgeProtocolFee is a paid mutator transaction binding the contract method 0x3036b439.

Solidity: function updateBridgeProtocolFee(uint256 bridgeProtocolFee) returns()

func (*SparkPoolTransactorSession) UpdateFlashloanPremiums

func (_SparkPool *SparkPoolTransactorSession) UpdateFlashloanPremiums(flashLoanPremiumTotal *big.Int, flashLoanPremiumToProtocol *big.Int) (*types.Transaction, error)

UpdateFlashloanPremiums is a paid mutator transaction binding the contract method 0xbcb6e522.

Solidity: function updateFlashloanPremiums(uint128 flashLoanPremiumTotal, uint128 flashLoanPremiumToProtocol) returns()

func (*SparkPoolTransactorSession) Withdraw

func (_SparkPool *SparkPoolTransactorSession) Withdraw(asset common.Address, amount *big.Int, to common.Address) (*types.Transaction, error)

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

Solidity: function withdraw(address asset, uint256 amount, address to) returns(uint256)

type SparkPoolUserEModeSet

type SparkPoolUserEModeSet struct {
	User       common.Address
	CategoryId uint8
	Raw        types.Log // Blockchain specific contextual infos
}

SparkPoolUserEModeSet represents a UserEModeSet event raised by the SparkPool contract.

type SparkPoolUserEModeSetIterator

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

SparkPoolUserEModeSetIterator is returned from FilterUserEModeSet and is used to iterate over the raw logs and unpacked data for UserEModeSet events raised by the SparkPool contract.

func (*SparkPoolUserEModeSetIterator) Close

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

func (*SparkPoolUserEModeSetIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*SparkPoolUserEModeSetIterator) 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 SparkPoolWithdraw

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

SparkPoolWithdraw represents a Withdraw event raised by the SparkPool contract.

type SparkPoolWithdrawIterator

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

SparkPoolWithdrawIterator is returned from FilterWithdraw and is used to iterate over the raw logs and unpacked data for Withdraw events raised by the SparkPool contract.

func (*SparkPoolWithdrawIterator) Close

func (it *SparkPoolWithdrawIterator) Close() error

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

func (*SparkPoolWithdrawIterator) Error

func (it *SparkPoolWithdrawIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*SparkPoolWithdrawIterator) Next

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