UNPKG

@sovryn-zero/lib-ethers

Version:
1,009 lines (1,008 loc) 25.3 kB
[ { "inputs": [ { "internalType": "uint256", "name": "_bootstrapPeriod", "type": "uint256" } ], "stateMutability": "nonpayable", "type": "constructor" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "_baseRate", "type": "uint256" } ], "name": "BaseRateUpdated", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "_L_ETH", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "_L_ZUSDDebt", "type": "uint256" } ], "name": "LTermsUpdated", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "_lastFeeOpTime", "type": "uint256" } ], "name": "LastFeeOpTimeUpdated", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "_liquidatedDebt", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "_liquidatedColl", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "_collGasCompensation", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "_ZUSDGasCompensation", "type": "uint256" } ], "name": "Liquidation", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "previousOwner", "type": "address" }, { "indexed": true, "internalType": "address", "name": "newOwner", "type": "address" } ], "name": "OwnershipTransferred", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "_attemptedZUSDAmount", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "_actualZUSDAmount", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "_ETHSent", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "_ETHFee", "type": "uint256" } ], "name": "Redemption", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "_totalStakesSnapshot", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "_totalCollateralSnapshot", "type": "uint256" } ], "name": "SystemSnapshotsUpdated", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "_newTotalStakes", "type": "uint256" } ], "name": "TotalStakesUpdated", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "address", "name": "_borrower", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "_newIndex", "type": "uint256" } ], "name": "TroveIndexUpdated", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "_borrower", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "_debt", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "_coll", "type": "uint256" }, { "indexed": false, "internalType": "enum TroveManagerBase.TroveManagerOperation", "name": "_operation", "type": "uint8" } ], "name": "TroveLiquidated", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "_L_ETH", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "_L_ZUSDDebt", "type": "uint256" } ], "name": "TroveSnapshotsUpdated", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "_borrower", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "_debt", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "_coll", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "_stake", "type": "uint256" }, { "indexed": false, "internalType": "enum TroveManagerBase.TroveManagerOperation", "name": "_operation", "type": "uint8" } ], "name": "TroveUpdated", "type": "event" }, { "inputs": [], "name": "BETA", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "BOOTSTRAP_PERIOD", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "DECIMAL_PRECISION", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "L_ETH", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "L_ZUSDDebt", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "MINUTE_DECAY_FACTOR", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "MIN_NET_DEBT", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "NAME", "outputs": [ { "internalType": "string", "name": "", "type": "string" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "SECONDS_IN_ONE_MINUTE", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "name": "TroveOwners", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "", "type": "address" } ], "name": "Troves", "outputs": [ { "internalType": "uint256", "name": "debt", "type": "uint256" }, { "internalType": "uint256", "name": "coll", "type": "uint256" }, { "internalType": "uint256", "name": "stake", "type": "uint256" }, { "internalType": "enum TroveManagerStorage.Status", "name": "status", "type": "uint8" }, { "internalType": "uint128", "name": "arrayIndex", "type": "uint128" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "ZUSD_GAS_COMPENSATION", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "_100pct", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "_borrower", "type": "address" }, { "internalType": "uint256", "name": "_price", "type": "uint256" } ], "name": "_getCurrentICR", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "_borrower", "type": "address" } ], "name": "_getPendingETHReward", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "_borrower", "type": "address" } ], "name": "_getPendingZUSDDebtReward", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "_getRedemptionRate", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "_borrower", "type": "address" } ], "name": "_hasPendingRewards", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "_stabilityPool", "outputs": [ { "internalType": "contract IStabilityPool", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "_zeroStaking", "outputs": [ { "internalType": "contract IZEROStaking", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "_zeroToken", "outputs": [ { "internalType": "contract IZEROToken", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "_zusdToken", "outputs": [ { "internalType": "contract IZUSDToken", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "activePool", "outputs": [ { "internalType": "contract IActivePool", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "baseRate", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "borrowerOperationsAddress", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "defaultPool", "outputs": [ { "internalType": "contract IDefaultPool", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "feeDistributor", "outputs": [ { "internalType": "contract IFeeDistributor", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getEntireSystemColl", "outputs": [ { "internalType": "uint256", "name": "entireSystemColl", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getEntireSystemDebt", "outputs": [ { "internalType": "uint256", "name": "entireSystemDebt", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getOwner", "outputs": [ { "internalType": "address", "name": "_owner", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "lastETHError_Redistribution", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "lastFeeOperationTime", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "lastZUSDDebtError_Redistribution", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "liquityBaseParams", "outputs": [ { "internalType": "contract ILiquityBaseParams", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "priceFeed", "outputs": [ { "internalType": "contract IPriceFeed", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_ZUSDamount", "type": "uint256" }, { "internalType": "address", "name": "_firstRedemptionHint", "type": "address" }, { "internalType": "address", "name": "_upperPartialRedemptionHint", "type": "address" }, { "internalType": "address", "name": "_lowerPartialRedemptionHint", "type": "address" }, { "internalType": "uint256", "name": "_partialRedemptionHintNICR", "type": "uint256" }, { "internalType": "uint256", "name": "_maxIterations", "type": "uint256" }, { "internalType": "uint256", "name": "_maxFeePercentage", "type": "uint256" } ], "name": "redeemCollateral", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_dllrAmount", "type": "uint256" }, { "internalType": "address", "name": "_firstRedemptionHint", "type": "address" }, { "internalType": "address", "name": "_upperPartialRedemptionHint", "type": "address" }, { "internalType": "address", "name": "_lowerPartialRedemptionHint", "type": "address" }, { "internalType": "uint256", "name": "_partialRedemptionHintNICR", "type": "uint256" }, { "internalType": "uint256", "name": "_maxIterations", "type": "uint256" }, { "internalType": "uint256", "name": "_maxFeePercentage", "type": "uint256" }, { "components": [ { "internalType": "uint256", "name": "deadline", "type": "uint256" }, { "internalType": "uint8", "name": "v", "type": "uint8" }, { "internalType": "bytes32", "name": "r", "type": "bytes32" }, { "internalType": "bytes32", "name": "s", "type": "bytes32" } ], "internalType": "struct IMassetManager.PermitParams", "name": "_permitParams", "type": "tuple" } ], "name": "redeemCollateralViaDLLR", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "", "type": "address" } ], "name": "rewardSnapshots", "outputs": [ { "internalType": "uint256", "name": "ETH", "type": "uint256" }, { "internalType": "uint256", "name": "ZUSDDebt", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "_owner", "type": "address" } ], "name": "setOwner", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "sortedTroves", "outputs": [ { "internalType": "contract ISortedTroves", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "totalCollateralSnapshot", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "totalStakes", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "totalStakesSnapshot", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "troveManagerRedeemOps", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" } ]