declare const _default: [ { "type": "function", "name": "DOMAIN_SEPARATOR", "inputs": [], "outputs": [ { "name": "", "type": "bytes32", "internalType": "bytes32" } ], "stateMutability": "view" }, { "type": "function", "name": "ORACLE", "inputs": [], "outputs": [ { "name": "", "type": "address", "internalType": "address" } ], "stateMutability": "view" }, { "type": "function", "name": "SET_USER_POSITION_MANAGER_TYPEHASH", "inputs": [], "outputs": [ { "name": "", "type": "bytes32", "internalType": "bytes32" } ], "stateMutability": "view" }, { "type": "function", "name": "addDynamicReserveConfig", "inputs": [ { "name": "reserveId", "type": "uint256", "internalType": "uint256" }, { "name": "dynamicConfig", "type": "tuple", "internalType": "struct ITBVAaveSpoke.DynamicReserveConfig", "components": [ { "name": "collateralFactor", "type": "uint16", "internalType": "uint16" }, { "name": "maxLiquidationBonus", "type": "uint32", "internalType": "uint32" }, { "name": "liquidationFee", "type": "uint16", "internalType": "uint16" } ] } ], "outputs": [ { "name": "dynamicConfigKey", "type": "uint32", "internalType": "uint32" } ], "stateMutability": "nonpayable" }, { "type": "function", "name": "addReserve", "inputs": [ { "name": "hub", "type": "address", "internalType": "address" }, { "name": "assetId", "type": "uint256", "internalType": "uint256" }, { "name": "priceSource", "type": "address", "internalType": "address" }, { "name": "config", "type": "tuple", "internalType": "struct ITBVAaveSpoke.ReserveConfig", "components": [ { "name": "collateralRisk", "type": "uint24", "internalType": "uint24" }, { "name": "paused", "type": "bool", "internalType": "bool" }, { "name": "frozen", "type": "bool", "internalType": "bool" }, { "name": "borrowable", "type": "bool", "internalType": "bool" }, { "name": "receiveSharesEnabled", "type": "bool", "internalType": "bool" } ] }, { "name": "dynamicConfig", "type": "tuple", "internalType": "struct ITBVAaveSpoke.DynamicReserveConfig", "components": [ { "name": "collateralFactor", "type": "uint16", "internalType": "uint16" }, { "name": "maxLiquidationBonus", "type": "uint32", "internalType": "uint32" }, { "name": "liquidationFee", "type": "uint16", "internalType": "uint16" } ] } ], "outputs": [ { "name": "", "type": "uint256", "internalType": "uint256" } ], "stateMutability": "nonpayable" }, { "type": "function", "name": "borrow", "inputs": [ { "name": "reserveId", "type": "uint256", "internalType": "uint256" }, { "name": "amount", "type": "uint256", "internalType": "uint256" }, { "name": "onBehalfOf", "type": "address", "internalType": "address" } ], "outputs": [ { "name": "", "type": "uint256", "internalType": "uint256" }, { "name": "", "type": "uint256", "internalType": "uint256" } ], "stateMutability": "nonpayable" }, { "type": "function", "name": "getDynamicReserveConfig", "inputs": [ { "name": "reserveId", "type": "uint256", "internalType": "uint256" }, { "name": "dynamicConfigKey", "type": "uint32", "internalType": "uint32" } ], "outputs": [ { "name": "", "type": "tuple", "internalType": "struct ITBVAaveSpoke.DynamicReserveConfig", "components": [ { "name": "collateralFactor", "type": "uint16", "internalType": "uint16" }, { "name": "maxLiquidationBonus", "type": "uint32", "internalType": "uint32" }, { "name": "liquidationFee", "type": "uint16", "internalType": "uint16" } ] } ], "stateMutability": "view" }, { "type": "function", "name": "getLiquidationBonus", "inputs": [ { "name": "reserveId", "type": "uint256", "internalType": "uint256" }, { "name": "user", "type": "address", "internalType": "address" }, { "name": "healthFactor", "type": "uint256", "internalType": "uint256" } ], "outputs": [ { "name": "", "type": "uint256", "internalType": "uint256" } ], "stateMutability": "view" }, { "type": "function", "name": "getLiquidationConfig", "inputs": [], "outputs": [ { "name": "", "type": "tuple", "internalType": "struct ITBVAaveSpoke.LiquidationConfig", "components": [ { "name": "targetHealthFactor", "type": "uint128", "internalType": "uint128" }, { "name": "healthFactorForMaxBonus", "type": "uint64", "internalType": "uint64" }, { "name": "liquidationBonusFactor", "type": "uint16", "internalType": "uint16" } ] } ], "stateMutability": "view" }, { "type": "function", "name": "getLiquidationLogic", "inputs": [], "outputs": [ { "name": "", "type": "address", "internalType": "address" } ], "stateMutability": "pure" }, { "type": "function", "name": "getReserve", "inputs": [ { "name": "reserveId", "type": "uint256", "internalType": "uint256" } ], "outputs": [ { "name": "", "type": "tuple", "internalType": "struct ITBVAaveSpoke.Reserve", "components": [ { "name": "underlying", "type": "address", "internalType": "address" }, { "name": "hub", "type": "address", "internalType": "address" }, { "name": "assetId", "type": "uint16", "internalType": "uint16" }, { "name": "decimals", "type": "uint8", "internalType": "uint8" }, { "name": "collateralRisk", "type": "uint24", "internalType": "uint24" }, { "name": "flags", "type": "uint8", "internalType": "ReserveFlags" }, { "name": "dynamicConfigKey", "type": "uint32", "internalType": "uint32" } ] } ], "stateMutability": "view" }, { "type": "function", "name": "getReserveConfig", "inputs": [ { "name": "reserveId", "type": "uint256", "internalType": "uint256" } ], "outputs": [ { "name": "", "type": "tuple", "internalType": "struct ITBVAaveSpoke.ReserveConfig", "components": [ { "name": "collateralRisk", "type": "uint24", "internalType": "uint24" }, { "name": "paused", "type": "bool", "internalType": "bool" }, { "name": "frozen", "type": "bool", "internalType": "bool" }, { "name": "borrowable", "type": "bool", "internalType": "bool" }, { "name": "receiveSharesEnabled", "type": "bool", "internalType": "bool" } ] } ], "stateMutability": "view" }, { "type": "function", "name": "getReserveCount", "inputs": [], "outputs": [ { "name": "", "type": "uint256", "internalType": "uint256" } ], "stateMutability": "view" }, { "type": "function", "name": "getReserveDebt", "inputs": [ { "name": "reserveId", "type": "uint256", "internalType": "uint256" } ], "outputs": [ { "name": "", "type": "uint256", "internalType": "uint256" }, { "name": "", "type": "uint256", "internalType": "uint256" } ], "stateMutability": "view" }, { "type": "function", "name": "getReserveSuppliedAssets", "inputs": [ { "name": "reserveId", "type": "uint256", "internalType": "uint256" } ], "outputs": [ { "name": "", "type": "uint256", "internalType": "uint256" } ], "stateMutability": "view" }, { "type": "function", "name": "getReserveSuppliedShares", "inputs": [ { "name": "reserveId", "type": "uint256", "internalType": "uint256" } ], "outputs": [ { "name": "", "type": "uint256", "internalType": "uint256" } ], "stateMutability": "view" }, { "type": "function", "name": "getReserveTotalDebt", "inputs": [ { "name": "reserveId", "type": "uint256", "internalType": "uint256" } ], "outputs": [ { "name": "", "type": "uint256", "internalType": "uint256" } ], "stateMutability": "view" }, { "type": "function", "name": "getUserAccountData", "inputs": [ { "name": "user", "type": "address", "internalType": "address" } ], "outputs": [ { "name": "", "type": "tuple", "internalType": "struct ITBVAaveSpoke.UserAccountData", "components": [ { "name": "riskPremium", "type": "uint256", "internalType": "uint256" }, { "name": "avgCollateralFactor", "type": "uint256", "internalType": "uint256" }, { "name": "healthFactor", "type": "uint256", "internalType": "uint256" }, { "name": "totalCollateralValue", "type": "uint256", "internalType": "uint256" }, { "name": "totalDebtValueRay", "type": "uint256", "internalType": "uint256" }, { "name": "activeCollateralCount", "type": "uint256", "internalType": "uint256" }, { "name": "borrowCount", "type": "uint256", "internalType": "uint256" } ] } ], "stateMutability": "view" }, { "type": "function", "name": "getUserDebt", "inputs": [ { "name": "reserveId", "type": "uint256", "internalType": "uint256" }, { "name": "user", "type": "address", "internalType": "address" } ], "outputs": [ { "name": "", "type": "uint256", "internalType": "uint256" }, { "name": "", "type": "uint256", "internalType": "uint256" } ], "stateMutability": "view" }, { "type": "function", "name": "getUserPosition", "inputs": [ { "name": "reserveId", "type": "uint256", "internalType": "uint256" }, { "name": "user", "type": "address", "internalType": "address" } ], "outputs": [ { "name": "", "type": "tuple", "internalType": "struct ITBVAaveSpoke.UserPosition", "components": [ { "name": "drawnShares", "type": "uint120", "internalType": "uint120" }, { "name": "premiumShares", "type": "uint120", "internalType": "uint120" }, { "name": "premiumOffsetRay", "type": "int200", "internalType": "int200" }, { "name": "suppliedShares", "type": "uint120", "internalType": "uint120" }, { "name": "dynamicConfigKey", "type": "uint32", "internalType": "uint32" } ] } ], "stateMutability": "view" }, { "type": "function", "name": "getUserPremiumDebtRay", "inputs": [ { "name": "reserveId", "type": "uint256", "internalType": "uint256" }, { "name": "user", "type": "address", "internalType": "address" } ], "outputs": [ { "name": "", "type": "uint256", "internalType": "uint256" } ], "stateMutability": "view" }, { "type": "function", "name": "getUserReserveStatus", "inputs": [ { "name": "reserveId", "type": "uint256", "internalType": "uint256" }, { "name": "user", "type": "address", "internalType": "address" } ], "outputs": [ { "name": "", "type": "bool", "internalType": "bool" }, { "name": "", "type": "bool", "internalType": "bool" } ], "stateMutability": "view" }, { "type": "function", "name": "getUserSuppliedAssets", "inputs": [ { "name": "reserveId", "type": "uint256", "internalType": "uint256" }, { "name": "user", "type": "address", "internalType": "address" } ], "outputs": [ { "name": "", "type": "uint256", "internalType": "uint256" } ], "stateMutability": "view" }, { "type": "function", "name": "getUserSuppliedShares", "inputs": [ { "name": "reserveId", "type": "uint256", "internalType": "uint256" }, { "name": "user", "type": "address", "internalType": "address" } ], "outputs": [ { "name": "", "type": "uint256", "internalType": "uint256" } ], "stateMutability": "view" }, { "type": "function", "name": "getUserTotalDebt", "inputs": [ { "name": "reserveId", "type": "uint256", "internalType": "uint256" }, { "name": "user", "type": "address", "internalType": "address" } ], "outputs": [ { "name": "", "type": "uint256", "internalType": "uint256" } ], "stateMutability": "view" }, { "type": "function", "name": "isPositionManager", "inputs": [ { "name": "user", "type": "address", "internalType": "address" }, { "name": "positionManager", "type": "address", "internalType": "address" } ], "outputs": [ { "name": "", "type": "bool", "internalType": "bool" } ], "stateMutability": "view" }, { "type": "function", "name": "isPositionManagerActive", "inputs": [ { "name": "positionManager", "type": "address", "internalType": "address" } ], "outputs": [ { "name": "", "type": "bool", "internalType": "bool" } ], "stateMutability": "view" }, { "type": "function", "name": "liquidationCall", "inputs": [ { "name": "collateralReserveId", "type": "uint256", "internalType": "uint256" }, { "name": "debtReserveId", "type": "uint256", "internalType": "uint256" }, { "name": "user", "type": "address", "internalType": "address" }, { "name": "debtToCover", "type": "uint256", "internalType": "uint256" }, { "name": "receiveShares", "type": "bool", "internalType": "bool" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "permitReserve", "inputs": [ { "name": "reserveId", "type": "uint256", "internalType": "uint256" }, { "name": "onBehalfOf", "type": "address", "internalType": "address" }, { "name": "value", "type": "uint256", "internalType": "uint256" }, { "name": "deadline", "type": "uint256", "internalType": "uint256" }, { "name": "permitV", "type": "uint8", "internalType": "uint8" }, { "name": "permitR", "type": "bytes32", "internalType": "bytes32" }, { "name": "permitS", "type": "bytes32", "internalType": "bytes32" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "renouncePositionManagerRole", "inputs": [ { "name": "user", "type": "address", "internalType": "address" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "repay", "inputs": [ { "name": "reserveId", "type": "uint256", "internalType": "uint256" }, { "name": "amount", "type": "uint256", "internalType": "uint256" }, { "name": "onBehalfOf", "type": "address", "internalType": "address" } ], "outputs": [ { "name": "", "type": "uint256", "internalType": "uint256" }, { "name": "", "type": "uint256", "internalType": "uint256" } ], "stateMutability": "nonpayable" }, { "type": "function", "name": "setUserPositionManager", "inputs": [ { "name": "positionManager", "type": "address", "internalType": "address" }, { "name": "approve", "type": "bool", "internalType": "bool" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "setUserPositionManagerWithSig", "inputs": [ { "name": "positionManager", "type": "address", "internalType": "address" }, { "name": "user", "type": "address", "internalType": "address" }, { "name": "approve", "type": "bool", "internalType": "bool" }, { "name": "nonce", "type": "uint256", "internalType": "uint256" }, { "name": "deadline", "type": "uint256", "internalType": "uint256" }, { "name": "signature", "type": "bytes", "internalType": "bytes" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "setUsingAsCollateral", "inputs": [ { "name": "reserveId", "type": "uint256", "internalType": "uint256" }, { "name": "usingAsCollateral", "type": "bool", "internalType": "bool" }, { "name": "onBehalfOf", "type": "address", "internalType": "address" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "supply", "inputs": [ { "name": "reserveId", "type": "uint256", "internalType": "uint256" }, { "name": "amount", "type": "uint256", "internalType": "uint256" }, { "name": "onBehalfOf", "type": "address", "internalType": "address" } ], "outputs": [ { "name": "", "type": "uint256", "internalType": "uint256" }, { "name": "", "type": "uint256", "internalType": "uint256" } ], "stateMutability": "nonpayable" }, { "type": "function", "name": "updateDynamicReserveConfig", "inputs": [ { "name": "reserveId", "type": "uint256", "internalType": "uint256" }, { "name": "dynamicConfigKey", "type": "uint32", "internalType": "uint32" }, { "name": "dynamicConfig", "type": "tuple", "internalType": "struct ITBVAaveSpoke.DynamicReserveConfig", "components": [ { "name": "collateralFactor", "type": "uint16", "internalType": "uint16" }, { "name": "maxLiquidationBonus", "type": "uint32", "internalType": "uint32" }, { "name": "liquidationFee", "type": "uint16", "internalType": "uint16" } ] } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "updateLiquidationConfig", "inputs": [ { "name": "config", "type": "tuple", "internalType": "struct ITBVAaveSpoke.LiquidationConfig", "components": [ { "name": "targetHealthFactor", "type": "uint128", "internalType": "uint128" }, { "name": "healthFactorForMaxBonus", "type": "uint64", "internalType": "uint64" }, { "name": "liquidationBonusFactor", "type": "uint16", "internalType": "uint16" } ] } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "updatePositionManager", "inputs": [ { "name": "positionManager", "type": "address", "internalType": "address" }, { "name": "active", "type": "bool", "internalType": "bool" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "updateReserveConfig", "inputs": [ { "name": "reserveId", "type": "uint256", "internalType": "uint256" }, { "name": "params", "type": "tuple", "internalType": "struct ITBVAaveSpoke.ReserveConfig", "components": [ { "name": "collateralRisk", "type": "uint24", "internalType": "uint24" }, { "name": "paused", "type": "bool", "internalType": "bool" }, { "name": "frozen", "type": "bool", "internalType": "bool" }, { "name": "borrowable", "type": "bool", "internalType": "bool" }, { "name": "receiveSharesEnabled", "type": "bool", "internalType": "bool" } ] } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "updateReservePriceSource", "inputs": [ { "name": "reserveId", "type": "uint256", "internalType": "uint256" }, { "name": "priceSource", "type": "address", "internalType": "address" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "updateUserDynamicConfig", "inputs": [ { "name": "onBehalfOf", "type": "address", "internalType": "address" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "updateUserRiskPremium", "inputs": [ { "name": "onBehalfOf", "type": "address", "internalType": "address" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "withdraw", "inputs": [ { "name": "reserveId", "type": "uint256", "internalType": "uint256" }, { "name": "amount", "type": "uint256", "internalType": "uint256" }, { "name": "onBehalfOf", "type": "address", "internalType": "address" } ], "outputs": [ { "name": "", "type": "uint256", "internalType": "uint256" }, { "name": "", "type": "uint256", "internalType": "uint256" } ], "stateMutability": "nonpayable" }, { "type": "error", "name": "AssetNotListed", "inputs": [] }, { "type": "error", "name": "ReserveExists", "inputs": [] }, { "type": "error", "name": "InvalidAssetId", "inputs": [] }, { "type": "error", "name": "ReserveNotListed", "inputs": [] }, { "type": "error", "name": "ReserveNotBorrowable", "inputs": [] }, { "type": "error", "name": "ReservePaused", "inputs": [] }, { "type": "error", "name": "ReserveFrozen", "inputs": [] }, { "type": "error", "name": "HealthFactorBelowThreshold", "inputs": [] }, { "type": "error", "name": "CollateralCannotBeLiquidated", "inputs": [] }, { "type": "error", "name": "ReserveNotSupplied", "inputs": [] }, { "type": "error", "name": "ReserveNotBorrowed", "inputs": [] }, { "type": "error", "name": "Unauthorized", "inputs": [] }, { "type": "error", "name": "ConfigKeyUninitialized", "inputs": [] }, { "type": "error", "name": "InactivePositionManager", "inputs": [] }, { "type": "error", "name": "InvalidSignature", "inputs": [] }, { "type": "error", "name": "InvalidAddress", "inputs": [] }, { "type": "error", "name": "InvalidOracleDecimals", "inputs": [] }, { "type": "error", "name": "InvalidCollateralRisk", "inputs": [] }, { "type": "error", "name": "InvalidLiquidationConfig", "inputs": [] }, { "type": "error", "name": "InvalidLiquidationFee", "inputs": [] }, { "type": "error", "name": "InvalidCollateralFactorAndMaxLiquidationBonus", "inputs": [] }, { "type": "error", "name": "InvalidCollateralFactor", "inputs": [] }, { "type": "error", "name": "SelfLiquidation", "inputs": [] }, { "type": "error", "name": "HealthFactorNotBelowThreshold", "inputs": [] }, { "type": "error", "name": "MustNotLeaveDust", "inputs": [] }, { "type": "error", "name": "InvalidDebtToCover", "inputs": [] }, { "type": "error", "name": "CannotReceiveShares", "inputs": [] }, { "type": "error", "name": "MaximumDynamicConfigKeyReached", "inputs": [] } ] ; export default _default;