{ "language": "Solidity", "sources": { "contracts/UFragmentsPolicy.sol": { "content": "// SPDX-License-Identifier: GPL-3.0-or-later\npragma solidity 0.8.4;\n\nimport \"./_external/SafeMath.sol\";\nimport \"./_external/Ownable.sol\";\n\nimport \"./lib/SafeMathInt.sol\";\nimport \"./lib/UInt256Lib.sol\";\n\ninterface IUFragments {\n function totalSupply() external view returns (uint256);\n\n function rebase(uint256 epoch, int256 supplyDelta) external returns (uint256);\n}\n\ninterface IOracle {\n function getData() external returns (uint256, bool);\n}\n\n/**\n * @title uFragments Monetary Supply Policy\n * @dev This is an implementation of the uFragments Ideal Money protocol.\n *\n * This component regulates the token supply of the uFragments ERC20 token in response to\n * market oracles.\n */\ncontract UFragmentsPolicy is Ownable {\n using SafeMath for uint256;\n using SafeMathInt for int256;\n using UInt256Lib for uint256;\n\n event LogRebase(\n uint256 indexed epoch,\n uint256 exchangeRate,\n uint256 cpi,\n int256 requestedSupplyAdjustment,\n uint256 timestampSec\n );\n\n IUFragments public uFrags;\n\n // Provides the current CPI, as an 18 decimal fixed point number.\n IOracle public cpiOracle;\n\n // Market oracle provides the token/USD exchange rate as an 18 decimal fixed point number.\n // (eg) An oracle value of 1.5e18 it would mean 1 Ample is trading for $1.50.\n IOracle public marketOracle;\n\n // CPI value at the time of launch, as an 18 decimal fixed point number.\n uint256 private baseCpi;\n\n // If the current exchange rate is within this fractional distance from the target, no supply\n // update is performed. Fixed point number--same format as the rate.\n // (ie) abs(rate - targetRate) / targetRate < deviationThreshold, then no supply change.\n // DECIMALS Fixed point number.\n uint256 public deviationThreshold;\n\n uint256 private rebaseLagDeprecated;\n\n // More than this much time must pass between rebase operations.\n uint256 public minRebaseTimeIntervalSec;\n\n // Block timestamp of last rebase operation\n uint256 public lastRebaseTimestampSec;\n\n // The rebase window begins this many seconds into the minRebaseTimeInterval period.\n // For example if minRebaseTimeInterval is 24hrs, it represents the time of day in seconds.\n uint256 public rebaseWindowOffsetSec;\n\n // The length of the time window where a rebase operation is allowed to execute, in seconds.\n uint256 public rebaseWindowLengthSec;\n\n // The number of rebase cycles since inception\n uint256 public epoch;\n\n uint256 private constant DECIMALS = 18;\n\n // Due to the expression in computeSupplyDelta(), MAX_RATE * MAX_SUPPLY must fit into an int256.\n // Both are 18 decimals fixed point numbers.\n uint256 private constant MAX_RATE = 10**6 * 10**DECIMALS;\n // MAX_SUPPLY = MAX_INT256 / MAX_RATE\n uint256 private constant MAX_SUPPLY = uint256(type(int256).max) / MAX_RATE;\n\n // This module orchestrates the rebase execution and downstream notification.\n address public orchestrator;\n\n // DECIMALS decimal fixed point numbers.\n // Used in computation of (Upper-Lower)/(1-(Upper/Lower)/2^(Growth*delta))) + Lower\n int256 public rebaseFunctionLowerPercentage;\n int256 public rebaseFunctionUpperPercentage;\n int256 public rebaseFunctionGrowth;\n\n int256 private constant ONE = int256(10**DECIMALS);\n\n modifier onlyOrchestrator() {\n require(msg.sender == orchestrator);\n _;\n }\n\n /**\n * @notice Initiates a new rebase operation, provided the minimum time period has elapsed.\n * @dev Changes supply with percentage of:\n * (Upper-Lower)/(1-(Upper/Lower)/2^(Growth*NormalizedPriceDelta))) + Lower\n */\n function rebase() external onlyOrchestrator {\n require(inRebaseWindow());\n\n // This comparison also ensures there is no reentrancy.\n require(lastRebaseTimestampSec.add(minRebaseTimeIntervalSec) < block.timestamp);\n\n // Snap the rebase time to the start of this window.\n lastRebaseTimestampSec = block\n .timestamp\n .sub(block.timestamp.mod(minRebaseTimeIntervalSec))\n .add(rebaseWindowOffsetSec);\n\n epoch = epoch.add(1);\n\n uint256 cpi;\n bool cpiValid;\n (cpi, cpiValid) = cpiOracle.getData();\n require(cpiValid);\n\n uint256 targetRate = cpi.mul(10**DECIMALS).div(baseCpi);\n\n uint256 exchangeRate;\n bool rateValid;\n (exchangeRate, rateValid) = marketOracle.getData();\n require(rateValid);\n\n if (exchangeRate > MAX_RATE) {\n exchangeRate = MAX_RATE;\n }\n\n int256 supplyDelta = computeSupplyDelta(exchangeRate, targetRate);\n\n if (supplyDelta > 0 && uFrags.totalSupply().add(uint256(supplyDelta)) > MAX_SUPPLY) {\n supplyDelta = (MAX_SUPPLY.sub(uFrags.totalSupply())).toInt256Safe();\n }\n\n uint256 supplyAfterRebase = uFrags.rebase(epoch, supplyDelta);\n assert(supplyAfterRebase <= MAX_SUPPLY);\n emit LogRebase(epoch, exchangeRate, cpi, supplyDelta, block.timestamp);\n }\n\n /**\n * @notice Sets the reference to the CPI oracle.\n * @param cpiOracle_ The address of the cpi oracle contract.\n */\n function setCpiOracle(IOracle cpiOracle_) external onlyOwner {\n cpiOracle = cpiOracle_;\n }\n\n /**\n * @notice Sets the reference to the market oracle.\n * @param marketOracle_ The address of the market oracle contract.\n */\n function setMarketOracle(IOracle marketOracle_) external onlyOwner {\n marketOracle = marketOracle_;\n }\n\n /**\n * @notice Sets the reference to the orchestrator.\n * @param orchestrator_ The address of the orchestrator contract.\n */\n function setOrchestrator(address orchestrator_) external onlyOwner {\n orchestrator = orchestrator_;\n }\n\n function setRebaseFunctionGrowth(int256 rebaseFunctionGrowth_) external onlyOwner {\n require(rebaseFunctionGrowth_ >= 0);\n rebaseFunctionGrowth = rebaseFunctionGrowth_;\n }\n\n function setRebaseFunctionLowerPercentage(int256 rebaseFunctionLowerPercentage_)\n external\n onlyOwner\n {\n require(rebaseFunctionLowerPercentage_ <= 0);\n rebaseFunctionLowerPercentage = rebaseFunctionLowerPercentage_;\n }\n\n function setRebaseFunctionUpperPercentage(int256 rebaseFunctionUpperPercentage_)\n external\n onlyOwner\n {\n require(rebaseFunctionUpperPercentage_ >= 0);\n rebaseFunctionUpperPercentage = rebaseFunctionUpperPercentage_;\n }\n\n /**\n * @notice Sets the deviation threshold fraction. If the exchange rate given by the market\n * oracle is within this fractional distance from the targetRate, then no supply\n * modifications are made. DECIMALS fixed point number.\n * @param deviationThreshold_ The new exchange rate threshold fraction.\n */\n function setDeviationThreshold(uint256 deviationThreshold_) external onlyOwner {\n deviationThreshold = deviationThreshold_;\n }\n\n /**\n * @notice Sets the parameters which control the timing and frequency of\n * rebase operations.\n * a) the minimum time period that must elapse between rebase cycles.\n * b) the rebase window offset parameter.\n * c) the rebase window length parameter.\n * @param minRebaseTimeIntervalSec_ More than this much time must pass between rebase\n * operations, in seconds.\n * @param rebaseWindowOffsetSec_ The number of seconds from the beginning of\n the rebase interval, where the rebase window begins.\n * @param rebaseWindowLengthSec_ The length of the rebase window in seconds.\n */\n function setRebaseTimingParameters(\n uint256 minRebaseTimeIntervalSec_,\n uint256 rebaseWindowOffsetSec_,\n uint256 rebaseWindowLengthSec_\n ) external onlyOwner {\n require(minRebaseTimeIntervalSec_ > 0);\n require(rebaseWindowOffsetSec_ < minRebaseTimeIntervalSec_);\n\n minRebaseTimeIntervalSec = minRebaseTimeIntervalSec_;\n rebaseWindowOffsetSec = rebaseWindowOffsetSec_;\n rebaseWindowLengthSec = rebaseWindowLengthSec_;\n }\n\n /**\n * @notice A multi-chain AMPL interface method. The Ampleforth monetary policy contract\n * on the base-chain and XC-AmpleController contracts on the satellite-chains\n * implement this method. It atomically returns two values:\n * what the current contract believes to be,\n * the globalAmpleforthEpoch and globalAMPLSupply.\n * @return globalAmpleforthEpoch The current epoch number.\n * @return globalAMPLSupply The total supply at the current epoch.\n */\n function globalAmpleforthEpochAndAMPLSupply() external view returns (uint256, uint256) {\n return (epoch, uFrags.totalSupply());\n }\n\n /**\n * @dev ZOS upgradable contract initialization method.\n * It is called at the time of contract creation to invoke parent class initializers and\n * initialize the contract's state variables.\n */\n function initialize(\n address owner_,\n IUFragments uFrags_,\n uint256 baseCpi_\n ) public initializer {\n Ownable.initialize(owner_);\n\n // deviationThreshold = 0.05e18 = 5e16\n deviationThreshold = 5 * 10**(DECIMALS - 2);\n\n rebaseFunctionGrowth = int256(3 * (10**DECIMALS));\n rebaseFunctionUpperPercentage = int256(10 * (10**(DECIMALS - 2))); // 0.1\n rebaseFunctionLowerPercentage = int256((-10) * int256(10**(DECIMALS - 2))); // -0.1\n\n minRebaseTimeIntervalSec = 1 days;\n rebaseWindowOffsetSec = 7200; // 2AM UTC\n rebaseWindowLengthSec = 20 minutes;\n\n lastRebaseTimestampSec = 0;\n epoch = 0;\n\n uFrags = uFrags_;\n baseCpi = baseCpi_;\n }\n\n /**\n * @return If the latest block timestamp is within the rebase time window it, returns true.\n * Otherwise, returns false.\n */\n function inRebaseWindow() public view returns (bool) {\n return (block.timestamp.mod(minRebaseTimeIntervalSec) >= rebaseWindowOffsetSec &&\n block.timestamp.mod(minRebaseTimeIntervalSec) <\n (rebaseWindowOffsetSec.add(rebaseWindowLengthSec)));\n }\n\n /**\n * Computes the percentage of supply to be added or removed:\n * Using the function in https://github.com/ampleforth/AIPs/blob/master/AIPs/aip-5.md\n * @param normalizedRate value of rate/targetRate in DECIMALS decimal fixed point number\n * @return The percentage of supply to be added or removed.\n */\n function computeRebasePercentage(\n int256 normalizedRate,\n int256 lower,\n int256 upper,\n int256 growth\n ) public pure returns (int256) {\n int256 delta;\n\n delta = (normalizedRate.sub(ONE));\n\n // Compute: (Upper-Lower)/(1-(Upper/Lower)/2^(Growth*delta))) + Lower\n\n int256 exponent = growth.mul(delta).div(ONE);\n // Cap exponent to guarantee it is not too big for twoPower\n if (exponent > ONE.mul(100)) {\n exponent = ONE.mul(100);\n }\n if (exponent < ONE.mul(-100)) {\n exponent = ONE.mul(-100);\n }\n\n int256 pow = SafeMathInt.twoPower(exponent, ONE); // 2^(Growth*Delta)\n if (pow == 0) {\n return lower;\n }\n int256 numerator = upper.sub(lower); //(Upper-Lower)\n int256 intermediate = upper.mul(ONE).div(lower);\n intermediate = intermediate.mul(ONE).div(pow);\n int256 denominator = ONE.sub(intermediate); // (1-(Upper/Lower)/2^(Growth*delta)))\n\n int256 rebasePercentage = (numerator.mul(ONE).div(denominator)).add(lower);\n return rebasePercentage;\n }\n\n /**\n * @return Computes the total supply adjustment in response to the exchange rate\n * and the targetRate.\n */\n function computeSupplyDelta(uint256 rate, uint256 targetRate) internal view returns (int256) {\n if (withinDeviationThreshold(rate, targetRate)) {\n return 0;\n }\n int256 targetRateSigned = targetRate.toInt256Safe();\n int256 normalizedRate = rate.toInt256Safe().mul(ONE).div(targetRateSigned);\n int256 rebasePercentage = computeRebasePercentage(\n normalizedRate,\n rebaseFunctionLowerPercentage,\n rebaseFunctionUpperPercentage,\n rebaseFunctionGrowth\n );\n\n return uFrags.totalSupply().toInt256Safe().mul(rebasePercentage).div(ONE);\n }\n\n /**\n * @param rate The current exchange rate, an 18 decimal fixed point number.\n * @param targetRate The target exchange rate, an 18 decimal fixed point number.\n * @return If the rate is within the deviation threshold from the target rate, returns true.\n * Otherwise, returns false.\n */\n function withinDeviationThreshold(uint256 rate, uint256 targetRate)\n internal\n view\n returns (bool)\n {\n uint256 absoluteDeviationThreshold = targetRate.mul(deviationThreshold).div(10**DECIMALS);\n\n return\n (rate >= targetRate && rate.sub(targetRate) < absoluteDeviationThreshold) ||\n (rate < targetRate && targetRate.sub(rate) < absoluteDeviationThreshold);\n }\n\n /**\n * To maintain abi backward compatibility\n */\n function rebaseLag() public pure returns (uint256) {\n return 1;\n }\n}\n" }, "contracts/lib/UInt256Lib.sol": { "content": "// SPDX-License-Identifier: GPL-3.0-or-later\npragma solidity 0.8.4;\n\n/**\n * @title Various utilities useful for uint256.\n */\nlibrary UInt256Lib {\n uint256 private constant MAX_INT256 = ~(uint256(1) << 255);\n\n /**\n * @dev Safely converts a uint256 to an int256.\n */\n function toInt256Safe(uint256 a) internal pure returns (int256) {\n require(a <= MAX_INT256);\n return int256(a);\n }\n}\n" }, "contracts/lib/SafeMathInt.sol": { "content": "/*\nMIT License\n\nCopyright (c) 2018 requestnetwork\nCopyright (c) 2018 Fragments, Inc.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n*/\n\n// SPDX-License-Identifier: GPL-3.0-or-later\npragma solidity 0.8.4;\n\n/**\n * @title SafeMathInt\n * @dev Math operations for int256 with overflow safety checks.\n */\nlibrary SafeMathInt {\n int256 private constant MIN_INT256 = int256(1) << 255;\n int256 private constant MAX_INT256 = ~(int256(1) << 255);\n\n /**\n * @dev Multiplies two int256 variables and fails on overflow.\n */\n function mul(int256 a, int256 b) internal pure returns (int256) {\n int256 c = a * b;\n\n // Detect overflow when multiplying MIN_INT256 with -1\n require(c != MIN_INT256 || (a & MIN_INT256) != (b & MIN_INT256));\n require((b == 0) || (c / b == a));\n return c;\n }\n\n /**\n * @dev Division of two int256 variables and fails on overflow.\n */\n function div(int256 a, int256 b) internal pure returns (int256) {\n // Prevent overflow when dividing MIN_INT256 by -1\n require(b != -1 || a != MIN_INT256);\n\n // Solidity already throws when dividing by 0.\n return a / b;\n }\n\n /**\n * @dev Subtracts two int256 variables and fails on overflow.\n */\n function sub(int256 a, int256 b) internal pure returns (int256) {\n int256 c = a - b;\n require((b >= 0 && c <= a) || (b < 0 && c > a));\n return c;\n }\n\n /**\n * @dev Adds two int256 variables and fails on overflow.\n */\n function add(int256 a, int256 b) internal pure returns (int256) {\n int256 c = a + b;\n require((b >= 0 && c >= a) || (b < 0 && c < a));\n return c;\n }\n\n /**\n * @dev Converts to absolute value, and fails on overflow.\n */\n function abs(int256 a) internal pure returns (int256) {\n require(a != MIN_INT256);\n return a < 0 ? -a : a;\n }\n\n /**\n * @dev Computes 2^exp with limited precision where -100 <= exp <= 100 * one\n * @param one 1.0 represented in the same fixed point number format as exp\n * @param exp The power to raise 2 to -100 <= exp <= 100 * one\n * @return 2^exp represented with same number of decimals after the point as one\n */\n function twoPower(int256 exp, int256 one) internal pure returns (int256) {\n bool reciprocal = false;\n if (exp < 0) {\n reciprocal = true;\n exp = abs(exp);\n }\n\n // Precomputed values for 2^(1/2^i) in 18 decimals fixed point numbers\n int256[5] memory ks = [\n int256(1414213562373095049),\n 1189207115002721067,\n 1090507732665257659,\n 1044273782427413840,\n 1021897148654116678\n ];\n int256 whole = div(exp, one);\n require(whole <= 100);\n int256 result = mul(int256(uint256(1) << uint256(whole)), one);\n int256 remaining = sub(exp, mul(whole, one));\n\n int256 current = div(one, 2);\n for (uint256 i = 0; i < 5; i++) {\n if (remaining >= current) {\n remaining = sub(remaining, current);\n result = div(mul(result, ks[i]), 10**18); // 10**18 to match hardcoded ks values\n }\n current = div(current, 2);\n }\n if (reciprocal) {\n result = div(mul(one, one), result);\n }\n return result;\n }\n}\n" }, "contracts/_external/SafeMath.sol": { "content": "pragma solidity 0.8.4;\n\n/**\n * @title SafeMath\n * @dev Math operations with safety checks that revert on error\n */\nlibrary SafeMath {\n /**\n * @dev Multiplies two numbers, reverts on overflow.\n */\n function mul(uint256 a, uint256 b) internal pure returns (uint256) {\n // Gas optimization: this is cheaper than requiring 'a' not being zero, but the\n // benefit is lost if 'b' is also tested.\n // See: https://github.com/OpenZeppelin/openzeppelin-solidity/pull/522\n if (a == 0) {\n return 0;\n }\n\n uint256 c = a * b;\n require(c / a == b);\n\n return c;\n }\n\n /**\n * @dev Integer division of two numbers truncating the quotient, reverts on division by zero.\n */\n function div(uint256 a, uint256 b) internal pure returns (uint256) {\n require(b > 0); // Solidity only automatically asserts when dividing by 0\n uint256 c = a / b;\n // assert(a == b * c + a % b); // There is no case in which this doesn't hold\n\n return c;\n }\n\n /**\n * @dev Subtracts two numbers, reverts on overflow (i.e. if subtrahend is greater than minuend).\n */\n function sub(uint256 a, uint256 b) internal pure returns (uint256) {\n require(b <= a);\n uint256 c = a - b;\n\n return c;\n }\n\n /**\n * @dev Adds two numbers, reverts on overflow.\n */\n function add(uint256 a, uint256 b) internal pure returns (uint256) {\n uint256 c = a + b;\n require(c >= a);\n\n return c;\n }\n\n /**\n * @dev Divides two numbers and returns the remainder (unsigned integer modulo),\n * reverts when dividing by zero.\n */\n function mod(uint256 a, uint256 b) internal pure returns (uint256) {\n require(b != 0);\n return a % b;\n }\n}\n" }, "contracts/_external/Ownable.sol": { "content": "pragma solidity 0.8.4;\n\nimport \"./Initializable.sol\";\n\n/**\n * @title Ownable\n * @dev The Ownable contract has an owner address, and provides basic authorization control\n * functions, this simplifies the implementation of \"user permissions\".\n */\ncontract Ownable is Initializable {\n address private _owner;\n\n event OwnershipRenounced(address indexed previousOwner);\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\n\n /**\n * @dev The Ownable constructor sets the original `owner` of the contract to the sender\n * account.\n */\n function initialize(address sender) public virtual initializer {\n _owner = sender;\n }\n\n /**\n * @return the address of the owner.\n */\n function owner() public view returns (address) {\n return _owner;\n }\n\n /**\n * @dev Throws if called by any account other than the owner.\n */\n modifier onlyOwner() {\n require(isOwner());\n _;\n }\n\n /**\n * @return true if `msg.sender` is the owner of the contract.\n */\n function isOwner() public view returns (bool) {\n return msg.sender == _owner;\n }\n\n /**\n * @dev Allows the current owner to relinquish control of the contract.\n * @notice Renouncing to ownership will leave the contract without an owner.\n * It will not be possible to call the functions with the `onlyOwner`\n * modifier anymore.\n */\n function renounceOwnership() public onlyOwner {\n emit OwnershipRenounced(_owner);\n _owner = address(0);\n }\n\n /**\n * @dev Allows the current owner to transfer control of the contract to a newOwner.\n * @param newOwner The address to transfer ownership to.\n */\n function transferOwnership(address newOwner) public onlyOwner {\n _transferOwnership(newOwner);\n }\n\n /**\n * @dev Transfers control of the contract to a newOwner.\n * @param newOwner The address to transfer ownership to.\n */\n function _transferOwnership(address newOwner) internal {\n require(newOwner != address(0));\n emit OwnershipTransferred(_owner, newOwner);\n _owner = newOwner;\n }\n\n uint256[50] private ______gap;\n}\n" }, "contracts/_external/Initializable.sol": { "content": "pragma solidity 0.8.4;\n\n/**\n * @title Initializable\n *\n * @dev Helper contract to support initializer functions. To use it, replace\n * the constructor with a function that has the `initializer` modifier.\n * WARNING: Unlike constructors, initializer functions must be manually\n * invoked. This applies both to deploying an Initializable contract, as well\n * as extending an Initializable contract via inheritance.\n * WARNING: When used with inheritance, manual care must be taken to not invoke\n * a parent initializer twice, or ensure that all initializers are idempotent,\n * because this is not dealt with automatically as with constructors.\n */\ncontract Initializable {\n /**\n * @dev Indicates that the contract has been initialized.\n */\n bool private initialized;\n\n /**\n * @dev Indicates that the contract is in the process of being initialized.\n */\n bool private initializing;\n\n /**\n * @dev Modifier to use in the initializer function of a contract.\n */\n modifier initializer() {\n require(\n initializing || isConstructor() || !initialized,\n \"Contract instance has already been initialized\"\n );\n\n bool wasInitializing = initializing;\n initializing = true;\n initialized = true;\n\n _;\n\n initializing = wasInitializing;\n }\n\n /// @dev Returns true if and only if the function is running in the constructor\n function isConstructor() private view returns (bool) {\n // extcodesize checks the size of the code stored in an address, and\n // address returns the current address. Since the code is still not\n // deployed when running a constructor, any checks on its code size will\n // yield zero, making it an effective way to detect if a contract is\n // under construction or not.\n\n // MINOR CHANGE HERE:\n\n // previous code\n // uint256 cs;\n // assembly { cs := extcodesize(address) }\n // return cs == 0;\n\n // current code\n address _self = address(this);\n uint256 cs;\n assembly {\n cs := extcodesize(_self)\n }\n return cs == 0;\n }\n\n // Reserved storage space to allow for layout changes in the future.\n uint256[50] private ______gap;\n}\n" } }, "settings": { "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} } }