Address Details
contract
0x28905e7fC007F1638d61AB488EaB71C4b33Ab53e
- Contract Name
- GasPriceMinimum
- Creator
- 0xf3eb91–a79239 at 0x1dbfba–02f814
- Balance
- 0 CELO ( )
- Locked CELO Balance
- 0.00 CELO
- Voting CELO Balance
- 0.00 CELO
- Pending Unlocked Gold
- 0.00 CELO
- Tokens
-
Fetching tokens...
- Transactions
- 0 Transactions
- Transfers
- 0 Transfers
- Gas Used
- Fetching gas used...
- Last Balance Update
- 21565480
This contract has been verified via Sourcify.
View contract in Sourcify repository
- Contract name:
- GasPriceMinimum
- Optimization enabled
- false
- Compiler version
- v0.8.19+commit.7dd6d404
- EVM Version
- paris
- Verified at
- 2023-09-27T13:15:34.671078Z
project:/contracts-0.8/common/GasPriceMinimum.sol
// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.8.7 <0.8.20; import "@openzeppelin/contracts8/access/Ownable.sol"; import "../../contracts/common/CalledByVm.sol"; import "../../contracts/common/Initializable.sol"; import "../../contracts/common/interfaces/ICeloVersionedContract.sol"; import "../../contracts/common/FixidityLib.sol"; import "./UsingRegistry.sol"; import "../../contracts/stability/interfaces/ISortedOracles.sol"; /** * @title Stores and provides gas price minimum for various currencies. */ contract GasPriceMinimum is ICeloVersionedContract, Ownable, Initializable, UsingRegistry, CalledByVm { using FixidityLib for FixidityLib.Fraction; event TargetDensitySet(uint256 targetDensity); event GasPriceMinimumFloorSet(uint256 gasPriceMinimumFloor); event AdjustmentSpeedSet(uint256 adjustmentSpeed); event GasPriceMinimumUpdated(uint256 gasPriceMinimum); event BaseFeeOpCodeActivationBlockSet(uint256 baseFeeOpCodeActivationBlock); uint256 public deprecated_gasPriceMinimum; uint256 public gasPriceMinimumFloor; // Block congestion level targeted by the gas price minimum calculation. FixidityLib.Fraction public targetDensity; // Speed of gas price minimum adjustment due to congestion. FixidityLib.Fraction public adjustmentSpeed; uint256 public baseFeeOpCodeActivationBlock; /** * @notice Sets initialized == true on implementation contracts * @param test Set to true to skip implementation initialization */ constructor(bool test) public Initializable(test) {} /** * @notice Returns the storage, major, minor, and patch version of the contract. * @return Storage version of the contract. * @return Major version of the contract. * @return Minor version of the contract. * @return Patch version of the contract. */ function getVersionNumber() external pure returns (uint256, uint256, uint256, uint256) { return (1, 2, 0, 0); } /** * @notice Used in place of the constructor to allow the contract to be upgradable via proxy. * @param _registryAddress The address of the registry core smart contract. * @param _gasPriceMinimumFloor The lowest value the gas price minimum can be. * @param _targetDensity The target gas fullness of blocks, expressed as a fixidity fraction. * @param _adjustmentSpeed How quickly the minimum changes, expressed as a fixidity fraction. * @param _baseFeeOpCodeActivationBlock Block number where the baseFee opCode is activated */ function initialize( address _registryAddress, uint256 _gasPriceMinimumFloor, uint256 _targetDensity, uint256 _adjustmentSpeed, uint256 _baseFeeOpCodeActivationBlock ) external initializer { _transferOwnership(msg.sender); setRegistry(_registryAddress); deprecated_gasPriceMinimum = _gasPriceMinimumFloor; setGasPriceMinimumFloor(_gasPriceMinimumFloor); setTargetDensity(_targetDensity); setAdjustmentSpeed(_adjustmentSpeed); _setBaseFeeOpCodeActivationBlock(_baseFeeOpCodeActivationBlock, true); } /** * @notice Set a multiplier that impacts how quickly gas price minimum is adjusted. * @param _adjustmentSpeed How quickly the minimum changes, expressed as a fixidity fraction. * @dev Value is expected to be < 1. */ function setAdjustmentSpeed(uint256 _adjustmentSpeed) public onlyOwner { adjustmentSpeed = FixidityLib.wrap(_adjustmentSpeed); require(adjustmentSpeed.lt(FixidityLib.fixed1()), "adjustment speed must be smaller than 1"); emit AdjustmentSpeedSet(_adjustmentSpeed); } /** * @notice Set the block density targeted by the gas price minimum algorithm. * @param _targetDensity The target gas fullness of blocks, expressed as a fixidity fraction. * @dev Value is expected to be < 1. */ function setTargetDensity(uint256 _targetDensity) public onlyOwner { targetDensity = FixidityLib.wrap(_targetDensity); require(targetDensity.lt(FixidityLib.fixed1()), "target density must be smaller than 1"); emit TargetDensitySet(_targetDensity); } /** * @notice Set the minimum gas price treshold. * @param _gasPriceMinimumFloor The lowest value the gas price minimum can be. * @dev Value is expected to be > 0. */ function setGasPriceMinimumFloor(uint256 _gasPriceMinimumFloor) public onlyOwner { require(_gasPriceMinimumFloor > 0, "gas price minimum floor must be greater than zero"); gasPriceMinimumFloor = _gasPriceMinimumFloor; emit GasPriceMinimumFloorSet(_gasPriceMinimumFloor); } /** * @notice Set the activation block of the baseFee opCode. * @param _baseFeeOpCodeActivationBlock Block number where the baseFee opCode is activated * @dev Value is expected to be > 0. */ function setBaseFeeOpCodeActivationBlock(uint256 _baseFeeOpCodeActivationBlock) external onlyOwner { _setBaseFeeOpCodeActivationBlock(_baseFeeOpCodeActivationBlock, false); } /** * @notice Set the activation block of the baseFee opCode. * @param _baseFeeOpCodeActivationBlock Block number where the baseFee opCode is activated * @dev Value is expected to be > 0. */ function _setBaseFeeOpCodeActivationBlock(uint256 _baseFeeOpCodeActivationBlock, bool allowZero) private onlyOwner { require( allowZero || _baseFeeOpCodeActivationBlock > 0, "baseFee opCode activation block must be greater than zero" ); baseFeeOpCodeActivationBlock = _baseFeeOpCodeActivationBlock; emit BaseFeeOpCodeActivationBlockSet(_baseFeeOpCodeActivationBlock); } function gasPriceMinimum() public view returns (uint256) { if (baseFeeOpCodeActivationBlock > 0 && block.number >= baseFeeOpCodeActivationBlock) { return block.basefee; } else { return deprecated_gasPriceMinimum; } } /** * @notice Retrieve the current gas price minimum for a currency. * @param tokenAddress The currency the gas price should be in (defaults to gold). * @return current gas price minimum in the requested currency */ function getGasPriceMinimum(address tokenAddress) external view returns (uint256) { if ( tokenAddress == address(0) || tokenAddress == registry.getAddressForOrDie(GOLD_TOKEN_REGISTRY_ID) ) { return gasPriceMinimum(); } else { ISortedOracles sortedOracles = ISortedOracles( registry.getAddressForOrDie(SORTED_ORACLES_REGISTRY_ID) ); uint256 rateNumerator; uint256 rateDenominator; (rateNumerator, rateDenominator) = sortedOracles.medianRate(tokenAddress); return ((gasPriceMinimum() * rateNumerator) / rateDenominator); } } /** * @notice Adjust the gas price minimum based on governable parameters * and block congestion. * @param blockGasTotal The amount of gas in the most recent block. * @param blockGasLimit The maxBlockGasLimit of the past block. * @return result of the calculation (new gas price minimum) */ function updateGasPriceMinimum(uint256 blockGasTotal, uint256 blockGasLimit) external onlyVm returns (uint256) { deprecated_gasPriceMinimum = getUpdatedGasPriceMinimum(blockGasTotal, blockGasLimit); emit GasPriceMinimumUpdated(deprecated_gasPriceMinimum); return deprecated_gasPriceMinimum; } /** * @notice Calculates the gas price minimum based on governable parameters * and block congestion. * @param blockGasTotal The amount of gas in the most recent block. * @param blockGasLimit The maxBlockGasLimit of the past block. * @return result of the calculation (new gas price minimum) * @dev Calculate using the following formula: * oldGasPriceMinimum * (1 + (adjustmentSpeed * (blockDensity - targetDensity))) + 1. */ function getUpdatedGasPriceMinimum(uint256 blockGasTotal, uint256 blockGasLimit) public view returns (uint256) { FixidityLib.Fraction memory blockDensity = FixidityLib.newFixedFraction( blockGasTotal, blockGasLimit ); bool densityGreaterThanTarget = blockDensity.gt(targetDensity); FixidityLib.Fraction memory densityDelta = densityGreaterThanTarget ? blockDensity.subtract(targetDensity) : targetDensity.subtract(blockDensity); FixidityLib.Fraction memory adjustment = densityGreaterThanTarget ? FixidityLib.fixed1().add(adjustmentSpeed.multiply(densityDelta)) : FixidityLib.fixed1().subtract(adjustmentSpeed.multiply(densityDelta)); uint256 newGasPriceMinimum = adjustment .multiply(FixidityLib.newFixed(gasPriceMinimum())) .add(FixidityLib.fixed1()) .fromFixed(); return newGasPriceMinimum >= gasPriceMinimumFloor ? newGasPriceMinimum : gasPriceMinimumFloor; } }
/contracts8/access/Ownable.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
/contracts8/token/ERC20/IERC20.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 amount) external returns (bool); }
/contracts8/utils/Context.sol
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
/contracts/common/CalledByVm.sol
// SPDX-License-Identifier: LGPL-3.0-only pragma solidity >=0.5.13 <0.9.0; contract CalledByVm { modifier onlyVm() { require(msg.sender == address(0), "Only VM can call"); _; } }
/contracts/common/FixidityLib.sol
// SPDX-License-Identifier: LGPL-3.0-only pragma solidity >=0.5.13 <0.9.0; /** * @title FixidityLib * @author Gadi Guy, Alberto Cuesta Canada * @notice This library provides fixed point arithmetic with protection against * overflow. * All operations are done with uint256 and the operands must have been created * with any of the newFrom* functions, which shift the comma digits() to the * right and check for limits, or with wrap() which expects a number already * in the internal representation of a fraction. * When using this library be sure to use maxNewFixed() as the upper limit for * creation of fixed point numbers. * @dev All contained functions are pure and thus marked internal to be inlined * on consuming contracts at compile time for gas efficiency. */ library FixidityLib { struct Fraction { uint256 value; } /** * @notice Number of positions that the comma is shifted to the right. */ function digits() internal pure returns (uint8) { return 24; } uint256 private constant FIXED1_UINT = 1000000000000000000000000; /** * @notice This is 1 in the fixed point units used in this library. * @dev Test fixed1() equals 10^digits() * Hardcoded to 24 digits. */ function fixed1() internal pure returns (Fraction memory) { return Fraction(FIXED1_UINT); } /** * @notice Wrap a uint256 that represents a 24-decimal fraction in a Fraction * struct. * @param x Number that already represents a 24-decimal fraction. * @return A Fraction struct with contents x. */ function wrap(uint256 x) internal pure returns (Fraction memory) { return Fraction(x); } /** * @notice Unwraps the uint256 inside of a Fraction struct. */ function unwrap(Fraction memory x) internal pure returns (uint256) { return x.value; } /** * @notice The amount of decimals lost on each multiplication operand. * @dev Test mulPrecision() equals sqrt(fixed1) */ function mulPrecision() internal pure returns (uint256) { return 1000000000000; } /** * @notice Maximum value that can be converted to fixed point. Optimize for deployment. * @dev * Test maxNewFixed() equals maxUint256() / fixed1() */ function maxNewFixed() internal pure returns (uint256) { return 115792089237316195423570985008687907853269984665640564; } /** * @notice Converts a uint256 to fixed point Fraction * @dev Test newFixed(0) returns 0 * Test newFixed(1) returns fixed1() * Test newFixed(maxNewFixed()) returns maxNewFixed() * fixed1() * Test newFixed(maxNewFixed()+1) fails */ function newFixed(uint256 x) internal pure returns (Fraction memory) { require(x <= maxNewFixed(), "can't create fixidity number larger than maxNewFixed()"); return Fraction(x * FIXED1_UINT); } /** * @notice Converts a uint256 in the fixed point representation of this * library to a non decimal. All decimal digits will be truncated. */ function fromFixed(Fraction memory x) internal pure returns (uint256) { return x.value / FIXED1_UINT; } /** * @notice Converts two uint256 representing a fraction to fixed point units, * equivalent to multiplying dividend and divisor by 10^digits(). * @param numerator numerator must be <= maxNewFixed() * @param denominator denominator must be <= maxNewFixed() and denominator can't be 0 * @dev * Test newFixedFraction(1,0) fails * Test newFixedFraction(0,1) returns 0 * Test newFixedFraction(1,1) returns fixed1() * Test newFixedFraction(1,fixed1()) returns 1 */ function newFixedFraction(uint256 numerator, uint256 denominator) internal pure returns (Fraction memory) { Fraction memory convertedNumerator = newFixed(numerator); Fraction memory convertedDenominator = newFixed(denominator); return divide(convertedNumerator, convertedDenominator); } /** * @notice Returns the integer part of a fixed point number. * @dev * Test integer(0) returns 0 * Test integer(fixed1()) returns fixed1() * Test integer(newFixed(maxNewFixed())) returns maxNewFixed()*fixed1() */ function integer(Fraction memory x) internal pure returns (Fraction memory) { return Fraction((x.value / FIXED1_UINT) * FIXED1_UINT); // Can't overflow } /** * @notice Returns the fractional part of a fixed point number. * In the case of a negative number the fractional is also negative. * @dev * Test fractional(0) returns 0 * Test fractional(fixed1()) returns 0 * Test fractional(fixed1()-1) returns 10^24-1 */ function fractional(Fraction memory x) internal pure returns (Fraction memory) { return Fraction(x.value - (x.value / FIXED1_UINT) * FIXED1_UINT); // Can't overflow } /** * @notice x+y. * @dev The maximum value that can be safely used as an addition operator is defined as * maxFixedAdd = maxUint256()-1 / 2, or * 57896044618658097711785492504343953926634992332820282019728792003956564819967. * Test add(maxFixedAdd,maxFixedAdd) equals maxFixedAdd + maxFixedAdd * Test add(maxFixedAdd+1,maxFixedAdd+1) throws */ function add(Fraction memory x, Fraction memory y) internal pure returns (Fraction memory) { uint256 z = x.value + y.value; require(z >= x.value, "add overflow detected"); return Fraction(z); } /** * @notice x-y. * @dev * Test subtract(6, 10) fails */ function subtract(Fraction memory x, Fraction memory y) internal pure returns (Fraction memory) { require(x.value >= y.value, "substraction underflow detected"); return Fraction(x.value - y.value); } /** * @notice x*y. If any of the operators is higher than the max multiplier value it * might overflow. * @dev The maximum value that can be safely used as a multiplication operator * (maxFixedMul) is calculated as sqrt(maxUint256()*fixed1()), * or 340282366920938463463374607431768211455999999999999 * Test multiply(0,0) returns 0 * Test multiply(maxFixedMul,0) returns 0 * Test multiply(0,maxFixedMul) returns 0 * Test multiply(fixed1()/mulPrecision(),fixed1()*mulPrecision()) returns fixed1() * Test multiply(maxFixedMul,maxFixedMul) is around maxUint256() * Test multiply(maxFixedMul+1,maxFixedMul+1) fails */ function multiply(Fraction memory x, Fraction memory y) internal pure returns (Fraction memory) { if (x.value == 0 || y.value == 0) return Fraction(0); if (y.value == FIXED1_UINT) return x; if (x.value == FIXED1_UINT) return y; // Separate into integer and fractional parts // x = x1 + x2, y = y1 + y2 uint256 x1 = integer(x).value / FIXED1_UINT; uint256 x2 = fractional(x).value; uint256 y1 = integer(y).value / FIXED1_UINT; uint256 y2 = fractional(y).value; // (x1 + x2) * (y1 + y2) = (x1 * y1) + (x1 * y2) + (x2 * y1) + (x2 * y2) uint256 x1y1 = x1 * y1; if (x1 != 0) require(x1y1 / x1 == y1, "overflow x1y1 detected"); // x1y1 needs to be multiplied back by fixed1 // solium-disable-next-line mixedcase uint256 fixed_x1y1 = x1y1 * FIXED1_UINT; if (x1y1 != 0) require(fixed_x1y1 / x1y1 == FIXED1_UINT, "overflow x1y1 * fixed1 detected"); x1y1 = fixed_x1y1; uint256 x2y1 = x2 * y1; if (x2 != 0) require(x2y1 / x2 == y1, "overflow x2y1 detected"); uint256 x1y2 = x1 * y2; if (x1 != 0) require(x1y2 / x1 == y2, "overflow x1y2 detected"); x2 = x2 / mulPrecision(); y2 = y2 / mulPrecision(); uint256 x2y2 = x2 * y2; if (x2 != 0) require(x2y2 / x2 == y2, "overflow x2y2 detected"); // result = fixed1() * x1 * y1 + x1 * y2 + x2 * y1 + x2 * y2 / fixed1(); Fraction memory result = Fraction(x1y1); result = add(result, Fraction(x2y1)); // Add checks for overflow result = add(result, Fraction(x1y2)); // Add checks for overflow result = add(result, Fraction(x2y2)); // Add checks for overflow return result; } /** * @notice 1/x * @dev * Test reciprocal(0) fails * Test reciprocal(fixed1()) returns fixed1() * Test reciprocal(fixed1()*fixed1()) returns 1 // Testing how the fractional is truncated * Test reciprocal(1+fixed1()*fixed1()) returns 0 // Testing how the fractional is truncated * Test reciprocal(newFixedFraction(1, 1e24)) returns newFixed(1e24) */ function reciprocal(Fraction memory x) internal pure returns (Fraction memory) { require(x.value != 0, "can't call reciprocal(0)"); return Fraction((FIXED1_UINT * FIXED1_UINT) / x.value); // Can't overflow } /** * @notice x/y. If the dividend is higher than the max dividend value, it * might overflow. You can use multiply(x,reciprocal(y)) instead. * @dev The maximum value that can be safely used as a dividend (maxNewFixed) is defined as * divide(maxNewFixed,newFixedFraction(1,fixed1())) is around maxUint256(). * This yields the value 115792089237316195423570985008687907853269984665640564. * Test maxNewFixed equals maxUint256()/fixed1() * Test divide(maxNewFixed,1) equals maxNewFixed*(fixed1) * Test divide(maxNewFixed+1,multiply(mulPrecision(),mulPrecision())) throws * Test divide(fixed1(),0) fails * Test divide(maxNewFixed,1) = maxNewFixed*(10^digits()) * Test divide(maxNewFixed+1,1) throws */ function divide(Fraction memory x, Fraction memory y) internal pure returns (Fraction memory) { require(y.value != 0, "can't divide by 0"); uint256 X = x.value * FIXED1_UINT; require(X / FIXED1_UINT == x.value, "overflow at divide"); return Fraction(X / y.value); } /** * @notice x > y */ function gt(Fraction memory x, Fraction memory y) internal pure returns (bool) { return x.value > y.value; } /** * @notice x >= y */ function gte(Fraction memory x, Fraction memory y) internal pure returns (bool) { return x.value >= y.value; } /** * @notice x < y */ function lt(Fraction memory x, Fraction memory y) internal pure returns (bool) { return x.value < y.value; } /** * @notice x <= y */ function lte(Fraction memory x, Fraction memory y) internal pure returns (bool) { return x.value <= y.value; } /** * @notice x == y */ function equals(Fraction memory x, Fraction memory y) internal pure returns (bool) { return x.value == y.value; } /** * @notice x <= 1 */ function isProperFraction(Fraction memory x) internal pure returns (bool) { return lte(x, fixed1()); } }
/contracts/common/Initializable.sol
// SPDX-License-Identifier: LGPL-3.0-only pragma solidity >=0.5.13 <0.9.0; contract Initializable { bool public initialized; constructor(bool testingDeployment) public { if (!testingDeployment) { initialized = true; } } modifier initializer() { require(!initialized, "contract already initialized"); initialized = true; _; } }
/contracts/common/interfaces/ICeloVersionedContract.sol
// SPDX-License-Identifier: LGPL-3.0-only pragma solidity >=0.5.13 <0.9.0; interface ICeloVersionedContract { /** * @notice Returns the storage, major, minor, and patch version of the contract. * @return Storage version of the contract. * @return Major version of the contract. * @return Minor version of the contract. * @return Patch version of the contract. */ function getVersionNumber() external pure returns (uint256, uint256, uint256, uint256); }
/contracts/common/interfaces/IRegistry.sol
// SPDX-License-Identifier: LGPL-3.0-only pragma solidity >=0.5.13 <0.9.0; interface IRegistry { function setAddressFor(string calldata, address) external; function getAddressForOrDie(bytes32) external view returns (address); function getAddressFor(bytes32) external view returns (address); function getAddressForStringOrDie(string calldata identifier) external view returns (address); function getAddressForString(string calldata identifier) external view returns (address); function isOneOf(bytes32[] calldata, address) external view returns (bool); }
/contracts/stability/interfaces/ISortedOracles.sol
// SPDX-License-Identifier: LGPL-3.0-only pragma solidity >=0.5.13 <0.9.0; interface ISortedOracles { function addOracle(address, address) external; function removeOracle(address, address, uint256) external; function report(address, uint256, address, address) external; function removeExpiredReports(address, uint256) external; function isOldestReportExpired(address token) external view returns (bool, address); function numRates(address) external view returns (uint256); function medianRate(address) external view returns (uint256, uint256); function numTimestamps(address) external view returns (uint256); function medianTimestamp(address) external view returns (uint256); }
/contracts-0.8/common/UsingRegistry.sol
// SPDX-License-Identifier: LGPL-3.0-only pragma solidity >=0.8.0 <0.8.20; // Note: This is not an exact copy of UsingRegistry or UsingRegistryV2 in the contract's folder // because Mento's interfaces still don't support Solidity 0.8 import "@openzeppelin/contracts8/access/Ownable.sol"; import "@openzeppelin/contracts8/token/ERC20/IERC20.sol"; import "../../contracts/common/interfaces/IRegistry.sol"; contract UsingRegistry is Ownable { event RegistrySet(address indexed registryAddress); // solhint-disable state-visibility bytes32 constant ACCOUNTS_REGISTRY_ID = keccak256(abi.encodePacked("Accounts")); bytes32 constant ATTESTATIONS_REGISTRY_ID = keccak256(abi.encodePacked("Attestations")); bytes32 constant DOWNTIME_SLASHER_REGISTRY_ID = keccak256(abi.encodePacked("DowntimeSlasher")); bytes32 constant DOUBLE_SIGNING_SLASHER_REGISTRY_ID = keccak256( abi.encodePacked("DoubleSigningSlasher") ); bytes32 constant ELECTION_REGISTRY_ID = keccak256(abi.encodePacked("Election")); bytes32 constant EXCHANGE_REGISTRY_ID = keccak256(abi.encodePacked("Exchange")); bytes32 constant FEE_CURRENCY_WHITELIST_REGISTRY_ID = keccak256( abi.encodePacked("FeeCurrencyWhitelist") ); bytes32 constant FREEZER_REGISTRY_ID = keccak256(abi.encodePacked("Freezer")); bytes32 constant GOLD_TOKEN_REGISTRY_ID = keccak256(abi.encodePacked("GoldToken")); bytes32 constant GOVERNANCE_REGISTRY_ID = keccak256(abi.encodePacked("Governance")); bytes32 constant GOVERNANCE_SLASHER_REGISTRY_ID = keccak256( abi.encodePacked("GovernanceSlasher") ); bytes32 constant LOCKED_GOLD_REGISTRY_ID = keccak256(abi.encodePacked("LockedGold")); bytes32 constant RESERVE_REGISTRY_ID = keccak256(abi.encodePacked("Reserve")); bytes32 constant RANDOM_REGISTRY_ID = keccak256(abi.encodePacked("Random")); bytes32 constant SORTED_ORACLES_REGISTRY_ID = keccak256(abi.encodePacked("SortedOracles")); bytes32 constant STABLE_TOKEN_REGISTRY_ID = keccak256(abi.encodePacked("StableToken")); bytes32 constant VALIDATORS_REGISTRY_ID = keccak256(abi.encodePacked("Validators")); // solhint-enable state-visibility IRegistry public registry; modifier onlyRegisteredContract(bytes32 identifierHash) { require(registry.getAddressForOrDie(identifierHash) == msg.sender, "only registered contract"); _; } modifier onlyRegisteredContracts(bytes32[] memory identifierHashes) { require(registry.isOneOf(identifierHashes, msg.sender), "only registered contracts"); _; } /** * @notice Updates the address pointing to a Registry contract. * @param registryAddress The address of a registry contract for routing to other contracts. */ function setRegistry(address registryAddress) public onlyOwner { require(registryAddress != address(0), "Cannot register the null address"); registry = IRegistry(registryAddress); emit RegistrySet(registryAddress); } function getGoldToken() internal view returns (IERC20) { return IERC20(registry.getAddressForOrDie(GOLD_TOKEN_REGISTRY_ID)); } }
Compiler Settings
{"remappings":[],"optimizer":{"runs":200,"enabled":false},"metadata":{"useLiteralContent":true,"bytecodeHash":"ipfs"},"libraries":{},"evmVersion":"paris","compilationTarget":{"project:/contracts-0.8/common/GasPriceMinimum.sol":"GasPriceMinimum"}}
Contract ABI
[{"type":"constructor","stateMutability":"nonpayable","inputs":[{"type":"bool","name":"test","internalType":"bool"}]},{"type":"event","name":"AdjustmentSpeedSet","inputs":[{"type":"uint256","name":"adjustmentSpeed","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"BaseFeeOpCodeActivationBlockSet","inputs":[{"type":"uint256","name":"baseFeeOpCodeActivationBlock","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"GasPriceMinimumFloorSet","inputs":[{"type":"uint256","name":"gasPriceMinimumFloor","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"GasPriceMinimumUpdated","inputs":[{"type":"uint256","name":"gasPriceMinimum","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"OwnershipTransferred","inputs":[{"type":"address","name":"previousOwner","internalType":"address","indexed":true},{"type":"address","name":"newOwner","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"RegistrySet","inputs":[{"type":"address","name":"registryAddress","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"TargetDensitySet","inputs":[{"type":"uint256","name":"targetDensity","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"value","internalType":"uint256"}],"name":"adjustmentSpeed","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"baseFeeOpCodeActivationBlock","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"deprecated_gasPriceMinimum","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"gasPriceMinimum","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"gasPriceMinimumFloor","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"getGasPriceMinimum","inputs":[{"type":"address","name":"tokenAddress","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"getUpdatedGasPriceMinimum","inputs":[{"type":"uint256","name":"blockGasTotal","internalType":"uint256"},{"type":"uint256","name":"blockGasLimit","internalType":"uint256"}]},{"type":"function","stateMutability":"pure","outputs":[{"type":"uint256","name":"","internalType":"uint256"},{"type":"uint256","name":"","internalType":"uint256"},{"type":"uint256","name":"","internalType":"uint256"},{"type":"uint256","name":"","internalType":"uint256"}],"name":"getVersionNumber","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"initialize","inputs":[{"type":"address","name":"_registryAddress","internalType":"address"},{"type":"uint256","name":"_gasPriceMinimumFloor","internalType":"uint256"},{"type":"uint256","name":"_targetDensity","internalType":"uint256"},{"type":"uint256","name":"_adjustmentSpeed","internalType":"uint256"},{"type":"uint256","name":"_baseFeeOpCodeActivationBlock","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"initialized","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"owner","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"contract IRegistry"}],"name":"registry","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"renounceOwnership","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setAdjustmentSpeed","inputs":[{"type":"uint256","name":"_adjustmentSpeed","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setBaseFeeOpCodeActivationBlock","inputs":[{"type":"uint256","name":"_baseFeeOpCodeActivationBlock","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setGasPriceMinimumFloor","inputs":[{"type":"uint256","name":"_gasPriceMinimumFloor","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setRegistry","inputs":[{"type":"address","name":"registryAddress","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setTargetDensity","inputs":[{"type":"uint256","name":"_targetDensity","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"value","internalType":"uint256"}],"name":"targetDensity","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"transferOwnership","inputs":[{"type":"address","name":"newOwner","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"updateGasPriceMinimum","inputs":[{"type":"uint256","name":"blockGasTotal","internalType":"uint256"},{"type":"uint256","name":"blockGasLimit","internalType":"uint256"}]}]
Contract Creation Code
0x60806040523480156200001157600080fd5b506040516200285c3803806200285c833981810160405281019062000037919062000190565b80620000586200004c6200008260201b60201c565b6200008a60201b60201c565b806200007a576001600060146101000a81548160ff0219169083151502179055505b5050620001c2565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600080fd5b60008115159050919050565b6200016a8162000153565b81146200017657600080fd5b50565b6000815190506200018a816200015f565b92915050565b600060208284031215620001a957620001a86200014e565b5b6000620001b98482850162000179565b91505092915050565b61268a80620001d26000396000f3fe608060405234801561001057600080fd5b50600436106101375760003560e01c806393ca6fc4116100b8578063c12398b41161007c578063c12398b4146102f5578063ceff0bd614610325578063ef712c5b14610343578063f2fde38b14610373578063f8e2b0621461038f578063f92ad219146103ad57610137565b806393ca6fc414610253578063a54b7fc01461026f578063a68f548e1461029f578063a91ee0dc146102bd578063b830f4a4146102d957610137565b806354255be0116100ff57806354255be0146101ce578063715018a6146101ef5780637b103999146101f95780638da5cb5b146102175780638efd92ca1461023557610137565b8063158ef93e1461013c57806330f726b91461015a57806336945c2d146101765780634a3d5fe2146101945780634b930e5a146101b2575b600080fd5b6101446103c9565b60405161015191906117ae565b60405180910390f35b610174600480360381019061016f9190611804565b6103dc565b005b61017e6104a5565b60405161018b9190611840565b60405180910390f35b61019c6104d0565b6040516101a99190611840565b60405180910390f35b6101cc60048036038101906101c79190611804565b6104dc565b005b6101d66104f2565b6040516101e6949392919061185b565b60405180910390f35b6101f761050d565b005b610201610521565b60405161020e919061191f565b60405180910390f35b61021f610547565b60405161022c919061195b565b60405180910390f35b61023d610570565b60405161024a9190611840565b60405180910390f35b61026d60048036038101906102689190611804565b610576565b005b610289600480360381019061028491906119a2565b61063f565b6040516102969190611840565b60405180910390f35b6102a76108ea565b6040516102b49190611840565b60405180910390f35b6102d760048036038101906102d291906119a2565b6108f6565b005b6102f360048036038101906102ee9190611804565b6109f4565b005b61030f600480360381019061030a91906119cf565b610a80565b60405161031c9190611840565b60405180910390f35b61032d610b44565b60405161033a9190611840565b60405180910390f35b61035d600480360381019061035891906119cf565b610b4a565b60405161036a9190611840565b60405180910390f35b61038d600480360381019061038891906119a2565b610ce2565b005b610397610d65565b6040516103a49190611840565b60405180910390f35b6103c760048036038101906103c29190611a0f565b610d6b565b005b600060149054906101000a900460ff1681565b6103e4610e1c565b6103ed81610e9a565b60056000820151816000015590505061042c610407610eb8565b6005604051806020016040529081600082015481525050610ede90919063ffffffff16565b61046b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161046290611b0d565b60405180910390fd5b7fd2e71cd7012df1df07d4908ff75ae4b2bfbb6c49d39144404661f1fd472532838160405161049a9190611840565b60405180910390a150565b6000806006541180156104ba57506006544310155b156104c7574890506104cd565b60025490505b90565b60048060000154905081565b6104e4610e1c565b6104ef816000610ef3565b50565b60008060008060016002600080935093509350935090919293565b610515610e1c565b61051f6000610f88565b565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60065481565b61057e610e1c565b61058781610e9a565b6004600082015181600001559050506105c66105a1610eb8565b6004604051806020016040529081600082015481525050610ede90919063ffffffff16565b610605576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105fc90611b9f565b60405180910390fd5b7f2a109bad06121312708ed2a3e9b3556ea85ef8eadd4d10d8181f50d114eb4fab816040516106349190611840565b60405180910390a150565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614806107655750600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663dcf0aaed6040516020016106c390611c16565b604051602081830303815290604052805190602001206040518263ffffffff1660e01b81526004016106f59190611c44565b602060405180830381865afa158015610712573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107369190611c74565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16145b15610779576107726104a5565b90506108e5565b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663dcf0aaed6040516020016107c890611ced565b604051602081830303815290604052805190602001206040518263ffffffff1660e01b81526004016107fa9190611c44565b602060405180830381865afa158015610817573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061083b9190611c74565b90506000808273ffffffffffffffffffffffffffffffffffffffff1663ef90e1b0866040518263ffffffff1660e01b8152600401610879919061195b565b6040805180830381865afa158015610895573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108b99190611d17565b809250819350505080826108cb6104a5565b6108d59190611d86565b6108df9190611df7565b93505050505b919050565b60058060000154905081565b6108fe610e1c565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361096d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161096490611e74565b60405180910390fd5b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff167f27fe5f0c1c3b1ed427cc63d0f05759ffdecf9aec9e18d31ef366fc8a6cb5dc3b60405160405180910390a250565b6109fc610e1c565b60008111610a3f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a3690611f06565b60405180910390fd5b806003819055507f5548a13ccc1d9e4e2860461edda5ad49ba8a4fda485f67d954f9d7da8d2aff2781604051610a759190611840565b60405180910390a150565b60008073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610af0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ae790611f72565b60405180910390fd5b610afa8383610b4a565b6002819055507f6e53b2f8b69496c2a175588ad1326dbabe2f66df4d82f817aeca52e3474807fb600254604051610b319190611840565b60405180910390a1600254905092915050565b60035481565b600080610b57848461104c565b90506000610b8460046040518060200160405290816000820154815250508361108290919063ffffffff16565b9050600081610bbb57610bb683600460405180602001604052908160008201548152505061109790919063ffffffff16565b610be5565b610be460046040518060200160405290816000820154815250508461109790919063ffffffff16565b5b9050600082610c3557610c30610c1a83600560405180602001604052908160008201548152505061111490919063ffffffff16565b610c22610eb8565b61109790919063ffffffff16565b610c78565b610c77610c6183600560405180602001604052908160008201548152505061111490919063ffffffff16565b610c69610eb8565b6114ab90919063ffffffff16565b5b90506000610cbf610cba610c8a610eb8565b610cac610c9d610c986104a5565b61152a565b8661111490919063ffffffff16565b6114ab90919063ffffffff16565b6115a7565b9050600354811015610cd357600354610cd5565b805b9550505050505092915050565b610cea610e1c565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610d59576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d5090612004565b60405180910390fd5b610d6281610f88565b50565b60025481565b600060149054906101000a900460ff1615610dbb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610db290612070565b60405180910390fd5b6001600060146101000a81548160ff021916908315150217905550610ddf33610f88565b610de8856108f6565b83600281905550610df8846109f4565b610e0183610576565b610e0a826103dc565b610e15816001610ef3565b5050505050565b610e246115ca565b73ffffffffffffffffffffffffffffffffffffffff16610e42610547565b73ffffffffffffffffffffffffffffffffffffffff1614610e98576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e8f906120dc565b60405180910390fd5b565b610ea2611780565b6040518060200160405280838152509050919050565b610ec0611780565b604051806020016040528069d3c21bcecceda1000000815250905090565b60008160000151836000015110905092915050565b610efb610e1c565b8080610f075750600082115b610f46576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f3d9061216e565b60405180910390fd5b816006819055507fc74fe30765574b78669fcec5cea6b0dcaacd907890a49fc756a40235d01b09fc82604051610f7c9190611840565b60405180910390a15050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b611054611780565b600061105f8461152a565b9050600061106c8461152a565b905061107882826115d2565b9250505092915050565b60008160000151836000015111905092915050565b61109f611780565b8160000151836000015110156110ea576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110e1906121da565b60405180910390fd5b60405180602001604052808360000151856000015161110991906121fa565b815250905092915050565b61111c611780565b600083600001511480611133575060008260000151145b1561114f576040518060200160405280600081525090506114a5565b69d3c21bcecceda100000082600001510361116c578290506114a5565b69d3c21bcecceda1000000836000015103611189578190506114a5565b600069d3c21bcecceda100000061119f856116c1565b600001516111ad9190611df7565b905060006111ba85611703565b600001519050600069d3c21bcecceda10000006111d6866116c1565b600001516111e49190611df7565b905060006111f186611703565b600001519050600082856112059190611d86565b90506000851461125d5782858261121c9190611df7565b1461125c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112539061227a565b60405180910390fd5b5b600069d3c21bcecceda1000000826112759190611d86565b9050600082146112d75769d3c21bcecceda100000082826112969190611df7565b146112d6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112cd906122e6565b60405180910390fd5b5b809150600084866112e89190611d86565b905060008614611340578486826112ff9190611df7565b1461133f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161133690612352565b60405180910390fd5b5b6000848861134e9190611d86565b9050600088146113a6578488826113659190611df7565b146113a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161139c906123be565b60405180910390fd5b5b6113ae611754565b876113b99190611df7565b96506113c3611754565b856113ce9190611df7565b9450600085886113de9190611d86565b905060008814611436578588826113f59190611df7565b14611435576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161142c9061242a565b60405180910390fd5b5b60006040518060200160405280878152509050611461816040518060200160405280878152506114ab565b905061147b816040518060200160405280868152506114ab565b9050611495816040518060200160405280858152506114ab565b9050809a50505050505050505050505b92915050565b6114b3611780565b6000826000015184600001516114c9919061244a565b90508360000151811015611512576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611509906124ca565b60405180910390fd5b60405180602001604052808281525091505092915050565b611532611780565b61153a611761565b82111561157c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115739061255c565b60405180910390fd5b604051806020016040528069d3c21bcecceda10000008461159d9190611d86565b8152509050919050565b600069d3c21bcecceda100000082600001516115c39190611df7565b9050919050565b600033905090565b6115da611780565b6000826000015103611621576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611618906125c8565b60405180910390fd5b600069d3c21bcecceda1000000846000015161163d9190611d86565b9050836000015169d3c21bcecceda10000008261165a9190611df7565b1461169a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161169190612634565b60405180910390fd5b60405180602001604052808460000151836116b59190611df7565b81525091505092915050565b6116c9611780565b604051806020016040528069d3c21bcecceda10000008085600001516116ef9190611df7565b6116f99190611d86565b8152509050919050565b61170b611780565b604051806020016040528069d3c21bcecceda10000008085600001516117319190611df7565b61173b9190611d86565b846000015161174a91906121fa565b8152509050919050565b600064e8d4a51000905090565b60007601357c299a88ea76a58924d52ce4f26a85af186c2b9e74905090565b6040518060200160405280600081525090565b60008115159050919050565b6117a881611793565b82525050565b60006020820190506117c3600083018461179f565b92915050565b600080fd5b6000819050919050565b6117e1816117ce565b81146117ec57600080fd5b50565b6000813590506117fe816117d8565b92915050565b60006020828403121561181a576118196117c9565b5b6000611828848285016117ef565b91505092915050565b61183a816117ce565b82525050565b60006020820190506118556000830184611831565b92915050565b60006080820190506118706000830187611831565b61187d6020830186611831565b61188a6040830185611831565b6118976060830184611831565b95945050505050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60006118e56118e06118db846118a0565b6118c0565b6118a0565b9050919050565b60006118f7826118ca565b9050919050565b6000611909826118ec565b9050919050565b611919816118fe565b82525050565b60006020820190506119346000830184611910565b92915050565b6000611945826118a0565b9050919050565b6119558161193a565b82525050565b6000602082019050611970600083018461194c565b92915050565b61197f8161193a565b811461198a57600080fd5b50565b60008135905061199c81611976565b92915050565b6000602082840312156119b8576119b76117c9565b5b60006119c68482850161198d565b91505092915050565b600080604083850312156119e6576119e56117c9565b5b60006119f4858286016117ef565b9250506020611a05858286016117ef565b9150509250929050565b600080600080600060a08688031215611a2b57611a2a6117c9565b5b6000611a398882890161198d565b9550506020611a4a888289016117ef565b9450506040611a5b888289016117ef565b9350506060611a6c888289016117ef565b9250506080611a7d888289016117ef565b9150509295509295909350565b600082825260208201905092915050565b7f61646a7573746d656e74207370656564206d75737420626520736d616c6c657260008201527f207468616e203100000000000000000000000000000000000000000000000000602082015250565b6000611af7602783611a8a565b9150611b0282611a9b565b604082019050919050565b60006020820190508181036000830152611b2681611aea565b9050919050565b7f7461726765742064656e73697479206d75737420626520736d616c6c6572207460008201527f68616e2031000000000000000000000000000000000000000000000000000000602082015250565b6000611b89602583611a8a565b9150611b9482611b2d565b604082019050919050565b60006020820190508181036000830152611bb881611b7c565b9050919050565b600081905092915050565b7f476f6c64546f6b656e0000000000000000000000000000000000000000000000600082015250565b6000611c00600983611bbf565b9150611c0b82611bca565b600982019050919050565b6000611c2182611bf3565b9150819050919050565b6000819050919050565b611c3e81611c2b565b82525050565b6000602082019050611c596000830184611c35565b92915050565b600081519050611c6e81611976565b92915050565b600060208284031215611c8a57611c896117c9565b5b6000611c9884828501611c5f565b91505092915050565b7f536f727465644f7261636c657300000000000000000000000000000000000000600082015250565b6000611cd7600d83611bbf565b9150611ce282611ca1565b600d82019050919050565b6000611cf882611cca565b9150819050919050565b600081519050611d11816117d8565b92915050565b60008060408385031215611d2e57611d2d6117c9565b5b6000611d3c85828601611d02565b9250506020611d4d85828601611d02565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000611d91826117ce565b9150611d9c836117ce565b9250828202611daa816117ce565b91508282048414831517611dc157611dc0611d57565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000611e02826117ce565b9150611e0d836117ce565b925082611e1d57611e1c611dc8565b5b828204905092915050565b7f43616e6e6f7420726567697374657220746865206e756c6c2061646472657373600082015250565b6000611e5e602083611a8a565b9150611e6982611e28565b602082019050919050565b60006020820190508181036000830152611e8d81611e51565b9050919050565b7f676173207072696365206d696e696d756d20666c6f6f72206d7573742062652060008201527f67726561746572207468616e207a65726f000000000000000000000000000000602082015250565b6000611ef0603183611a8a565b9150611efb82611e94565b604082019050919050565b60006020820190508181036000830152611f1f81611ee3565b9050919050565b7f4f6e6c7920564d2063616e2063616c6c00000000000000000000000000000000600082015250565b6000611f5c601083611a8a565b9150611f6782611f26565b602082019050919050565b60006020820190508181036000830152611f8b81611f4f565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000611fee602683611a8a565b9150611ff982611f92565b604082019050919050565b6000602082019050818103600083015261201d81611fe1565b9050919050565b7f636f6e747261637420616c726561647920696e697469616c697a656400000000600082015250565b600061205a601c83611a8a565b915061206582612024565b602082019050919050565b600060208201905081810360008301526120898161204d565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006120c6602083611a8a565b91506120d182612090565b602082019050919050565b600060208201905081810360008301526120f5816120b9565b9050919050565b7f62617365466565206f70436f64652061637469766174696f6e20626c6f636b2060008201527f6d7573742062652067726561746572207468616e207a65726f00000000000000602082015250565b6000612158603983611a8a565b9150612163826120fc565b604082019050919050565b600060208201905081810360008301526121878161214b565b9050919050565b7f737562737472616374696f6e20756e646572666c6f7720646574656374656400600082015250565b60006121c4601f83611a8a565b91506121cf8261218e565b602082019050919050565b600060208201905081810360008301526121f3816121b7565b9050919050565b6000612205826117ce565b9150612210836117ce565b925082820390508181111561222857612227611d57565b5b92915050565b7f6f766572666c6f77207831793120646574656374656400000000000000000000600082015250565b6000612264601683611a8a565b915061226f8261222e565b602082019050919050565b6000602082019050818103600083015261229381612257565b9050919050565b7f6f766572666c6f772078317931202a2066697865643120646574656374656400600082015250565b60006122d0601f83611a8a565b91506122db8261229a565b602082019050919050565b600060208201905081810360008301526122ff816122c3565b9050919050565b7f6f766572666c6f77207832793120646574656374656400000000000000000000600082015250565b600061233c601683611a8a565b915061234782612306565b602082019050919050565b6000602082019050818103600083015261236b8161232f565b9050919050565b7f6f766572666c6f77207831793220646574656374656400000000000000000000600082015250565b60006123a8601683611a8a565b91506123b382612372565b602082019050919050565b600060208201905081810360008301526123d78161239b565b9050919050565b7f6f766572666c6f77207832793220646574656374656400000000000000000000600082015250565b6000612414601683611a8a565b915061241f826123de565b602082019050919050565b6000602082019050818103600083015261244381612407565b9050919050565b6000612455826117ce565b9150612460836117ce565b925082820190508082111561247857612477611d57565b5b92915050565b7f616464206f766572666c6f772064657465637465640000000000000000000000600082015250565b60006124b4601583611a8a565b91506124bf8261247e565b602082019050919050565b600060208201905081810360008301526124e3816124a7565b9050919050565b7f63616e277420637265617465206669786964697479206e756d626572206c617260008201527f676572207468616e206d61784e65774669786564282900000000000000000000602082015250565b6000612546603683611a8a565b9150612551826124ea565b604082019050919050565b6000602082019050818103600083015261257581612539565b9050919050565b7f63616e2774206469766964652062792030000000000000000000000000000000600082015250565b60006125b2601183611a8a565b91506125bd8261257c565b602082019050919050565b600060208201905081810360008301526125e1816125a5565b9050919050565b7f6f766572666c6f77206174206469766964650000000000000000000000000000600082015250565b600061261e601283611a8a565b9150612629826125e8565b602082019050919050565b6000602082019050818103600083015261264d81612611565b905091905056fea264697066735822122044f8a4f1edd0483df811812d09bbb02f140f48c7aa0f03e3b305b7d2515bcab364736f6c634300081300330000000000000000000000000000000000000000000000000000000000000000
Deployed ByteCode
0x608060405234801561001057600080fd5b50600436106101375760003560e01c806393ca6fc4116100b8578063c12398b41161007c578063c12398b4146102f5578063ceff0bd614610325578063ef712c5b14610343578063f2fde38b14610373578063f8e2b0621461038f578063f92ad219146103ad57610137565b806393ca6fc414610253578063a54b7fc01461026f578063a68f548e1461029f578063a91ee0dc146102bd578063b830f4a4146102d957610137565b806354255be0116100ff57806354255be0146101ce578063715018a6146101ef5780637b103999146101f95780638da5cb5b146102175780638efd92ca1461023557610137565b8063158ef93e1461013c57806330f726b91461015a57806336945c2d146101765780634a3d5fe2146101945780634b930e5a146101b2575b600080fd5b6101446103c9565b60405161015191906117ae565b60405180910390f35b610174600480360381019061016f9190611804565b6103dc565b005b61017e6104a5565b60405161018b9190611840565b60405180910390f35b61019c6104d0565b6040516101a99190611840565b60405180910390f35b6101cc60048036038101906101c79190611804565b6104dc565b005b6101d66104f2565b6040516101e6949392919061185b565b60405180910390f35b6101f761050d565b005b610201610521565b60405161020e919061191f565b60405180910390f35b61021f610547565b60405161022c919061195b565b60405180910390f35b61023d610570565b60405161024a9190611840565b60405180910390f35b61026d60048036038101906102689190611804565b610576565b005b610289600480360381019061028491906119a2565b61063f565b6040516102969190611840565b60405180910390f35b6102a76108ea565b6040516102b49190611840565b60405180910390f35b6102d760048036038101906102d291906119a2565b6108f6565b005b6102f360048036038101906102ee9190611804565b6109f4565b005b61030f600480360381019061030a91906119cf565b610a80565b60405161031c9190611840565b60405180910390f35b61032d610b44565b60405161033a9190611840565b60405180910390f35b61035d600480360381019061035891906119cf565b610b4a565b60405161036a9190611840565b60405180910390f35b61038d600480360381019061038891906119a2565b610ce2565b005b610397610d65565b6040516103a49190611840565b60405180910390f35b6103c760048036038101906103c29190611a0f565b610d6b565b005b600060149054906101000a900460ff1681565b6103e4610e1c565b6103ed81610e9a565b60056000820151816000015590505061042c610407610eb8565b6005604051806020016040529081600082015481525050610ede90919063ffffffff16565b61046b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161046290611b0d565b60405180910390fd5b7fd2e71cd7012df1df07d4908ff75ae4b2bfbb6c49d39144404661f1fd472532838160405161049a9190611840565b60405180910390a150565b6000806006541180156104ba57506006544310155b156104c7574890506104cd565b60025490505b90565b60048060000154905081565b6104e4610e1c565b6104ef816000610ef3565b50565b60008060008060016002600080935093509350935090919293565b610515610e1c565b61051f6000610f88565b565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60065481565b61057e610e1c565b61058781610e9a565b6004600082015181600001559050506105c66105a1610eb8565b6004604051806020016040529081600082015481525050610ede90919063ffffffff16565b610605576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105fc90611b9f565b60405180910390fd5b7f2a109bad06121312708ed2a3e9b3556ea85ef8eadd4d10d8181f50d114eb4fab816040516106349190611840565b60405180910390a150565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614806107655750600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663dcf0aaed6040516020016106c390611c16565b604051602081830303815290604052805190602001206040518263ffffffff1660e01b81526004016106f59190611c44565b602060405180830381865afa158015610712573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107369190611c74565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16145b15610779576107726104a5565b90506108e5565b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663dcf0aaed6040516020016107c890611ced565b604051602081830303815290604052805190602001206040518263ffffffff1660e01b81526004016107fa9190611c44565b602060405180830381865afa158015610817573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061083b9190611c74565b90506000808273ffffffffffffffffffffffffffffffffffffffff1663ef90e1b0866040518263ffffffff1660e01b8152600401610879919061195b565b6040805180830381865afa158015610895573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108b99190611d17565b809250819350505080826108cb6104a5565b6108d59190611d86565b6108df9190611df7565b93505050505b919050565b60058060000154905081565b6108fe610e1c565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361096d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161096490611e74565b60405180910390fd5b80600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff167f27fe5f0c1c3b1ed427cc63d0f05759ffdecf9aec9e18d31ef366fc8a6cb5dc3b60405160405180910390a250565b6109fc610e1c565b60008111610a3f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a3690611f06565b60405180910390fd5b806003819055507f5548a13ccc1d9e4e2860461edda5ad49ba8a4fda485f67d954f9d7da8d2aff2781604051610a759190611840565b60405180910390a150565b60008073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610af0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ae790611f72565b60405180910390fd5b610afa8383610b4a565b6002819055507f6e53b2f8b69496c2a175588ad1326dbabe2f66df4d82f817aeca52e3474807fb600254604051610b319190611840565b60405180910390a1600254905092915050565b60035481565b600080610b57848461104c565b90506000610b8460046040518060200160405290816000820154815250508361108290919063ffffffff16565b9050600081610bbb57610bb683600460405180602001604052908160008201548152505061109790919063ffffffff16565b610be5565b610be460046040518060200160405290816000820154815250508461109790919063ffffffff16565b5b9050600082610c3557610c30610c1a83600560405180602001604052908160008201548152505061111490919063ffffffff16565b610c22610eb8565b61109790919063ffffffff16565b610c78565b610c77610c6183600560405180602001604052908160008201548152505061111490919063ffffffff16565b610c69610eb8565b6114ab90919063ffffffff16565b5b90506000610cbf610cba610c8a610eb8565b610cac610c9d610c986104a5565b61152a565b8661111490919063ffffffff16565b6114ab90919063ffffffff16565b6115a7565b9050600354811015610cd357600354610cd5565b805b9550505050505092915050565b610cea610e1c565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610d59576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d5090612004565b60405180910390fd5b610d6281610f88565b50565b60025481565b600060149054906101000a900460ff1615610dbb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610db290612070565b60405180910390fd5b6001600060146101000a81548160ff021916908315150217905550610ddf33610f88565b610de8856108f6565b83600281905550610df8846109f4565b610e0183610576565b610e0a826103dc565b610e15816001610ef3565b5050505050565b610e246115ca565b73ffffffffffffffffffffffffffffffffffffffff16610e42610547565b73ffffffffffffffffffffffffffffffffffffffff1614610e98576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e8f906120dc565b60405180910390fd5b565b610ea2611780565b6040518060200160405280838152509050919050565b610ec0611780565b604051806020016040528069d3c21bcecceda1000000815250905090565b60008160000151836000015110905092915050565b610efb610e1c565b8080610f075750600082115b610f46576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f3d9061216e565b60405180910390fd5b816006819055507fc74fe30765574b78669fcec5cea6b0dcaacd907890a49fc756a40235d01b09fc82604051610f7c9190611840565b60405180910390a15050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b611054611780565b600061105f8461152a565b9050600061106c8461152a565b905061107882826115d2565b9250505092915050565b60008160000151836000015111905092915050565b61109f611780565b8160000151836000015110156110ea576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110e1906121da565b60405180910390fd5b60405180602001604052808360000151856000015161110991906121fa565b815250905092915050565b61111c611780565b600083600001511480611133575060008260000151145b1561114f576040518060200160405280600081525090506114a5565b69d3c21bcecceda100000082600001510361116c578290506114a5565b69d3c21bcecceda1000000836000015103611189578190506114a5565b600069d3c21bcecceda100000061119f856116c1565b600001516111ad9190611df7565b905060006111ba85611703565b600001519050600069d3c21bcecceda10000006111d6866116c1565b600001516111e49190611df7565b905060006111f186611703565b600001519050600082856112059190611d86565b90506000851461125d5782858261121c9190611df7565b1461125c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112539061227a565b60405180910390fd5b5b600069d3c21bcecceda1000000826112759190611d86565b9050600082146112d75769d3c21bcecceda100000082826112969190611df7565b146112d6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112cd906122e6565b60405180910390fd5b5b809150600084866112e89190611d86565b905060008614611340578486826112ff9190611df7565b1461133f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161133690612352565b60405180910390fd5b5b6000848861134e9190611d86565b9050600088146113a6578488826113659190611df7565b146113a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161139c906123be565b60405180910390fd5b5b6113ae611754565b876113b99190611df7565b96506113c3611754565b856113ce9190611df7565b9450600085886113de9190611d86565b905060008814611436578588826113f59190611df7565b14611435576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161142c9061242a565b60405180910390fd5b5b60006040518060200160405280878152509050611461816040518060200160405280878152506114ab565b905061147b816040518060200160405280868152506114ab565b9050611495816040518060200160405280858152506114ab565b9050809a50505050505050505050505b92915050565b6114b3611780565b6000826000015184600001516114c9919061244a565b90508360000151811015611512576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611509906124ca565b60405180910390fd5b60405180602001604052808281525091505092915050565b611532611780565b61153a611761565b82111561157c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115739061255c565b60405180910390fd5b604051806020016040528069d3c21bcecceda10000008461159d9190611d86565b8152509050919050565b600069d3c21bcecceda100000082600001516115c39190611df7565b9050919050565b600033905090565b6115da611780565b6000826000015103611621576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611618906125c8565b60405180910390fd5b600069d3c21bcecceda1000000846000015161163d9190611d86565b9050836000015169d3c21bcecceda10000008261165a9190611df7565b1461169a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161169190612634565b60405180910390fd5b60405180602001604052808460000151836116b59190611df7565b81525091505092915050565b6116c9611780565b604051806020016040528069d3c21bcecceda10000008085600001516116ef9190611df7565b6116f99190611d86565b8152509050919050565b61170b611780565b604051806020016040528069d3c21bcecceda10000008085600001516117319190611df7565b61173b9190611d86565b846000015161174a91906121fa565b8152509050919050565b600064e8d4a51000905090565b60007601357c299a88ea76a58924d52ce4f26a85af186c2b9e74905090565b6040518060200160405280600081525090565b60008115159050919050565b6117a881611793565b82525050565b60006020820190506117c3600083018461179f565b92915050565b600080fd5b6000819050919050565b6117e1816117ce565b81146117ec57600080fd5b50565b6000813590506117fe816117d8565b92915050565b60006020828403121561181a576118196117c9565b5b6000611828848285016117ef565b91505092915050565b61183a816117ce565b82525050565b60006020820190506118556000830184611831565b92915050565b60006080820190506118706000830187611831565b61187d6020830186611831565b61188a6040830185611831565b6118976060830184611831565b95945050505050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60006118e56118e06118db846118a0565b6118c0565b6118a0565b9050919050565b60006118f7826118ca565b9050919050565b6000611909826118ec565b9050919050565b611919816118fe565b82525050565b60006020820190506119346000830184611910565b92915050565b6000611945826118a0565b9050919050565b6119558161193a565b82525050565b6000602082019050611970600083018461194c565b92915050565b61197f8161193a565b811461198a57600080fd5b50565b60008135905061199c81611976565b92915050565b6000602082840312156119b8576119b76117c9565b5b60006119c68482850161198d565b91505092915050565b600080604083850312156119e6576119e56117c9565b5b60006119f4858286016117ef565b9250506020611a05858286016117ef565b9150509250929050565b600080600080600060a08688031215611a2b57611a2a6117c9565b5b6000611a398882890161198d565b9550506020611a4a888289016117ef565b9450506040611a5b888289016117ef565b9350506060611a6c888289016117ef565b9250506080611a7d888289016117ef565b9150509295509295909350565b600082825260208201905092915050565b7f61646a7573746d656e74207370656564206d75737420626520736d616c6c657260008201527f207468616e203100000000000000000000000000000000000000000000000000602082015250565b6000611af7602783611a8a565b9150611b0282611a9b565b604082019050919050565b60006020820190508181036000830152611b2681611aea565b9050919050565b7f7461726765742064656e73697479206d75737420626520736d616c6c6572207460008201527f68616e2031000000000000000000000000000000000000000000000000000000602082015250565b6000611b89602583611a8a565b9150611b9482611b2d565b604082019050919050565b60006020820190508181036000830152611bb881611b7c565b9050919050565b600081905092915050565b7f476f6c64546f6b656e0000000000000000000000000000000000000000000000600082015250565b6000611c00600983611bbf565b9150611c0b82611bca565b600982019050919050565b6000611c2182611bf3565b9150819050919050565b6000819050919050565b611c3e81611c2b565b82525050565b6000602082019050611c596000830184611c35565b92915050565b600081519050611c6e81611976565b92915050565b600060208284031215611c8a57611c896117c9565b5b6000611c9884828501611c5f565b91505092915050565b7f536f727465644f7261636c657300000000000000000000000000000000000000600082015250565b6000611cd7600d83611bbf565b9150611ce282611ca1565b600d82019050919050565b6000611cf882611cca565b9150819050919050565b600081519050611d11816117d8565b92915050565b60008060408385031215611d2e57611d2d6117c9565b5b6000611d3c85828601611d02565b9250506020611d4d85828601611d02565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000611d91826117ce565b9150611d9c836117ce565b9250828202611daa816117ce565b91508282048414831517611dc157611dc0611d57565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000611e02826117ce565b9150611e0d836117ce565b925082611e1d57611e1c611dc8565b5b828204905092915050565b7f43616e6e6f7420726567697374657220746865206e756c6c2061646472657373600082015250565b6000611e5e602083611a8a565b9150611e6982611e28565b602082019050919050565b60006020820190508181036000830152611e8d81611e51565b9050919050565b7f676173207072696365206d696e696d756d20666c6f6f72206d7573742062652060008201527f67726561746572207468616e207a65726f000000000000000000000000000000602082015250565b6000611ef0603183611a8a565b9150611efb82611e94565b604082019050919050565b60006020820190508181036000830152611f1f81611ee3565b9050919050565b7f4f6e6c7920564d2063616e2063616c6c00000000000000000000000000000000600082015250565b6000611f5c601083611a8a565b9150611f6782611f26565b602082019050919050565b60006020820190508181036000830152611f8b81611f4f565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000611fee602683611a8a565b9150611ff982611f92565b604082019050919050565b6000602082019050818103600083015261201d81611fe1565b9050919050565b7f636f6e747261637420616c726561647920696e697469616c697a656400000000600082015250565b600061205a601c83611a8a565b915061206582612024565b602082019050919050565b600060208201905081810360008301526120898161204d565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006120c6602083611a8a565b91506120d182612090565b602082019050919050565b600060208201905081810360008301526120f5816120b9565b9050919050565b7f62617365466565206f70436f64652061637469766174696f6e20626c6f636b2060008201527f6d7573742062652067726561746572207468616e207a65726f00000000000000602082015250565b6000612158603983611a8a565b9150612163826120fc565b604082019050919050565b600060208201905081810360008301526121878161214b565b9050919050565b7f737562737472616374696f6e20756e646572666c6f7720646574656374656400600082015250565b60006121c4601f83611a8a565b91506121cf8261218e565b602082019050919050565b600060208201905081810360008301526121f3816121b7565b9050919050565b6000612205826117ce565b9150612210836117ce565b925082820390508181111561222857612227611d57565b5b92915050565b7f6f766572666c6f77207831793120646574656374656400000000000000000000600082015250565b6000612264601683611a8a565b915061226f8261222e565b602082019050919050565b6000602082019050818103600083015261229381612257565b9050919050565b7f6f766572666c6f772078317931202a2066697865643120646574656374656400600082015250565b60006122d0601f83611a8a565b91506122db8261229a565b602082019050919050565b600060208201905081810360008301526122ff816122c3565b9050919050565b7f6f766572666c6f77207832793120646574656374656400000000000000000000600082015250565b600061233c601683611a8a565b915061234782612306565b602082019050919050565b6000602082019050818103600083015261236b8161232f565b9050919050565b7f6f766572666c6f77207831793220646574656374656400000000000000000000600082015250565b60006123a8601683611a8a565b91506123b382612372565b602082019050919050565b600060208201905081810360008301526123d78161239b565b9050919050565b7f6f766572666c6f77207832793220646574656374656400000000000000000000600082015250565b6000612414601683611a8a565b915061241f826123de565b602082019050919050565b6000602082019050818103600083015261244381612407565b9050919050565b6000612455826117ce565b9150612460836117ce565b925082820190508082111561247857612477611d57565b5b92915050565b7f616464206f766572666c6f772064657465637465640000000000000000000000600082015250565b60006124b4601583611a8a565b91506124bf8261247e565b602082019050919050565b600060208201905081810360008301526124e3816124a7565b9050919050565b7f63616e277420637265617465206669786964697479206e756d626572206c617260008201527f676572207468616e206d61784e65774669786564282900000000000000000000602082015250565b6000612546603683611a8a565b9150612551826124ea565b604082019050919050565b6000602082019050818103600083015261257581612539565b9050919050565b7f63616e2774206469766964652062792030000000000000000000000000000000600082015250565b60006125b2601183611a8a565b91506125bd8261257c565b602082019050919050565b600060208201905081810360008301526125e1816125a5565b9050919050565b7f6f766572666c6f77206174206469766964650000000000000000000000000000600082015250565b600061261e601283611a8a565b9150612629826125e8565b602082019050919050565b6000602082019050818103600083015261264d81612611565b905091905056fea264697066735822122044f8a4f1edd0483df811812d09bbb02f140f48c7aa0f03e3b305b7d2515bcab364736f6c63430008130033