Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 67 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Execute | 17004024 | 671 days ago | IN | 0 ETH | 0.00378907 | ||||
Execute | 16906731 | 684 days ago | IN | 0 ETH | 0.00354938 | ||||
Propose Calls | 16872808 | 689 days ago | IN | 0 ETH | 0.00914692 | ||||
Execute | 16864516 | 690 days ago | IN | 0 ETH | 0.00389672 | ||||
Execute | 16841696 | 693 days ago | IN | 0 ETH | 0.00064985 | ||||
Execute | 16841404 | 693 days ago | IN | 0 ETH | 0.0052024 | ||||
Propose Calls | 16821107 | 696 days ago | IN | 0 ETH | 0.02064309 | ||||
Execute | 16799494 | 699 days ago | IN | 0 ETH | 0.0057981 | ||||
Propose Calls | 16784413 | 702 days ago | IN | 0 ETH | 0.02069468 | ||||
Execute | 16756216 | 705 days ago | IN | 0 ETH | 0.00520967 | ||||
Propose Calls | 16748831 | 707 days ago | IN | 0 ETH | 0.01919631 | ||||
Propose Calls | 16748722 | 707 days ago | IN | 0 ETH | 0.01831585 | ||||
Propose Calls | 16721976 | 710 days ago | IN | 0 ETH | 0.01660833 | ||||
Propose Calls | 16681749 | 716 days ago | IN | 0 ETH | 0.01739978 | ||||
Propose Calls | 16681656 | 716 days ago | IN | 0 ETH | 0.0178895 | ||||
Execute | 16677463 | 717 days ago | IN | 0 ETH | 0.00901526 | ||||
Propose Calls | 16632641 | 723 days ago | IN | 0 ETH | 0.01379914 | ||||
Execute | 16605887 | 727 days ago | IN | 0 ETH | 0.0025534 | ||||
Propose Calls | 16554424 | 734 days ago | IN | 0 ETH | 0.01312661 | ||||
Execute | 16504898 | 741 days ago | IN | 0 ETH | 0.00038297 | ||||
Execute | 16504898 | 741 days ago | IN | 0 ETH | 0.00307787 | ||||
Execute | 16503589 | 741 days ago | IN | 0 ETH | 0.00225245 | ||||
Propose Calls | 16490607 | 743 days ago | IN | 0 ETH | 0.00987553 | ||||
Execute | 16471365 | 745 days ago | IN | 0 ETH | 0.00660944 | ||||
Execute | 16419423 | 753 days ago | IN | 0 ETH | 0.00295595 |
Latest 1 internal transaction
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
12343801 | 1378 days ago | Contract Creation | 0 ETH |
Loading...
Loading
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0x224DA8a8...7c7644761 The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
GenericSchemeMultiCall
Compiler Version
v0.5.17+commit.d19bba13
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2021-04-30 */ /** *Submitted for verification at Etherscan.io on 2020-12-31 */ // File: @daostack/infra/contracts/votingMachines/IntVoteInterface.sol pragma solidity 0.5.17; interface IntVoteInterface { //When implementing this interface please do not only override function and modifier, //but also to keep the modifiers on the overridden functions. modifier votable(bytes32 _proposalId) {revert("proposal is not votable"); _;} event NewProposal( bytes32 indexed _proposalId, address indexed _organization, uint256 _numOfChoices, address _proposer, bytes32 _paramsHash ); event ExecuteProposal(bytes32 indexed _proposalId, address indexed _organization, uint256 _decision, uint256 _totalReputation ); event VoteProposal( bytes32 indexed _proposalId, address indexed _organization, address indexed _voter, uint256 _vote, uint256 _reputation ); event CancelProposal(bytes32 indexed _proposalId, address indexed _organization ); event CancelVoting(bytes32 indexed _proposalId, address indexed _organization, address indexed _voter); /** * @dev register a new proposal with the given parameters. Every proposal has a unique ID which is being * generated by calculating keccak256 of a incremented counter. * @param _numOfChoices number of voting choices * @param _proposalParameters defines the parameters of the voting machine used for this proposal * @param _proposer address * @param _organization address - if this address is zero the msg.sender will be used as the organization address. * @return proposal's id. */ function propose( uint256 _numOfChoices, bytes32 _proposalParameters, address _proposer, address _organization ) external returns(bytes32); function vote( bytes32 _proposalId, uint256 _vote, uint256 _rep, address _voter ) external returns(bool); function cancelVote(bytes32 _proposalId) external; function getNumberOfChoices(bytes32 _proposalId) external view returns(uint256); function isVotable(bytes32 _proposalId) external view returns(bool); /** * @dev voteStatus returns the reputation voted for a proposal for a specific voting choice. * @param _proposalId the ID of the proposal * @param _choice the index in the * @return voted reputation for the given choice */ function voteStatus(bytes32 _proposalId, uint256 _choice) external view returns(uint256); /** * @dev isAbstainAllow returns if the voting machine allow abstain (0) * @return bool true or false */ function isAbstainAllow() external pure returns(bool); /** * @dev getAllowedRangeOfChoices returns the allowed range of choices for a voting machine. * @return min - minimum number of choices max - maximum number of choices */ function getAllowedRangeOfChoices() external pure returns(uint256 min, uint256 max); } // File: @daostack/infra/contracts/votingMachines/ProposalExecuteInterface.sol pragma solidity 0.5.17; interface ProposalExecuteInterface { function executeProposal(bytes32 _proposalId, int _decision) external returns(bool); } // File: openzeppelin-solidity/contracts/GSN/Context.sol pragma solidity ^0.5.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 GSN 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. */ contract Context { // Empty internal constructor, to prevent people from mistakenly deploying // an instance of this contract, which should be used via inheritance. constructor () internal { } // solhint-disable-previous-line no-empty-blocks function _msgSender() internal view returns (address payable) { return msg.sender; } function _msgData() internal view returns (bytes memory) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } } // File: openzeppelin-solidity/contracts/ownership/Ownable.sol pragma solidity ^0.5.0; /** * @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. * * 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. */ 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 () internal { _owner = _msgSender(); emit OwnershipTransferred(address(0), _owner); } /** * @dev Returns the address of the current owner. */ function owner() public view returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(isOwner(), "Ownable: caller is not the owner"); _; } /** * @dev Returns true if the caller is the current owner. */ function isOwner() public view returns (bool) { return _msgSender() == _owner; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public onlyOwner { emit OwnershipTransferred(_owner, address(0)); _owner = 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 onlyOwner { _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). */ function _transferOwnership(address newOwner) internal { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } } // File: @daostack/infra/contracts/Reputation.sol pragma solidity 0.5.17; /** * @title Reputation system * @dev A DAO has Reputation System which allows peers to rate other peers in order to build trust . * A reputation is use to assign influence measure to a DAO'S peers. * Reputation is similar to regular tokens but with one crucial difference: It is non-transferable. * The Reputation contract maintain a map of address to reputation value. * It provides an onlyOwner functions to mint and burn reputation _to (or _from) a specific address. */ contract Reputation is Ownable { uint8 public decimals = 18; //Number of decimals of the smallest unit // Event indicating minting of reputation to an address. event Mint(address indexed _to, uint256 _amount); // Event indicating burning of reputation for an address. event Burn(address indexed _from, uint256 _amount); /// @dev `Checkpoint` is the structure that attaches a block number to a /// given value, the block number attached is the one that last changed the /// value struct Checkpoint { // `fromBlock` is the block number that the value was generated from uint128 fromBlock; // `value` is the amount of reputation at a specific block number uint128 value; } // `balances` is the map that tracks the balance of each address, in this // contract when the balance changes the block number that the change // occurred is also included in the map mapping (address => Checkpoint[]) private balances; // Tracks the history of the `totalSupply` of the reputation Checkpoint[] private totalSupplyHistory; /// @notice Generates `_amount` reputation that are assigned to `_owner` /// @param _user The address that will be assigned the new reputation /// @param _amount The quantity of reputation generated /// @return True if the reputation are generated correctly function mint(address _user, uint256 _amount) public onlyOwner returns (bool) { uint256 curTotalSupply = totalSupply(); require(curTotalSupply + _amount >= curTotalSupply, "total supply overflow"); // Check for overflow uint256 previousBalanceTo = balanceOf(_user); require(previousBalanceTo + _amount >= previousBalanceTo, "balace overflow"); // Check for overflow updateValueAtNow(totalSupplyHistory, curTotalSupply + _amount); updateValueAtNow(balances[_user], previousBalanceTo + _amount); emit Mint(_user, _amount); return true; } /// @notice Burns `_amount` reputation from `_owner` /// @param _user The address that will lose the reputation /// @param _amount The quantity of reputation to burn /// @return True if the reputation are burned correctly function burn(address _user, uint256 _amount) public onlyOwner returns (bool) { uint256 curTotalSupply = totalSupply(); uint256 amountBurned = _amount; uint256 previousBalanceFrom = balanceOf(_user); if (previousBalanceFrom < amountBurned) { amountBurned = previousBalanceFrom; } updateValueAtNow(totalSupplyHistory, curTotalSupply - amountBurned); updateValueAtNow(balances[_user], previousBalanceFrom - amountBurned); emit Burn(_user, amountBurned); return true; } /// @dev This function makes it easy to get the total number of reputation /// @return The total number of reputation function totalSupply() public view returns (uint256) { return totalSupplyAt(block.number); } //////////////// // Query balance and totalSupply in History //////////////// /** * @dev return the reputation amount of a given owner * @param _owner an address of the owner which we want to get his reputation */ function balanceOf(address _owner) public view returns (uint256 balance) { return balanceOfAt(_owner, block.number); } /// @notice Total amount of reputation at a specific `_blockNumber`. /// @param _blockNumber The block number when the totalSupply is queried /// @return The total amount of reputation at `_blockNumber` function totalSupplyAt(uint256 _blockNumber) public view returns(uint256) { if ((totalSupplyHistory.length == 0) || (totalSupplyHistory[0].fromBlock > _blockNumber)) { return 0; // This will return the expected totalSupply during normal situations } else { return getValueAt(totalSupplyHistory, _blockNumber); } } /// @dev Queries the balance of `_owner` at a specific `_blockNumber` /// @param _owner The address from which the balance will be retrieved /// @param _blockNumber The block number when the balance is queried /// @return The balance at `_blockNumber` function balanceOfAt(address _owner, uint256 _blockNumber) public view returns (uint256) { if ((balances[_owner].length == 0) || (balances[_owner][0].fromBlock > _blockNumber)) { return 0; // This will return the expected balance during normal situations } else { return getValueAt(balances[_owner], _blockNumber); } } //////////////// // Internal helper functions to query and set a value in a snapshot array //////////////// /// @dev `getValueAt` retrieves the number of reputation at a given block number /// @param checkpoints The history of values being queried /// @param _block The block number to retrieve the value at /// @return The number of reputation being queried function getValueAt(Checkpoint[] storage checkpoints, uint256 _block) internal view returns (uint256) { if (checkpoints.length == 0) { return 0; } // Shortcut for the actual value if (_block >= checkpoints[checkpoints.length-1].fromBlock) { return checkpoints[checkpoints.length-1].value; } if (_block < checkpoints[0].fromBlock) { return 0; } // Binary search of the value in the array uint256 min = 0; uint256 max = checkpoints.length-1; while (max > min) { uint256 mid = (max + min + 1) / 2; if (checkpoints[mid].fromBlock <= _block) { min = mid; } else { max = mid-1; } } return checkpoints[min].value; } /// @dev `updateValueAtNow` used to update the `balances` map and the /// `totalSupplyHistory` /// @param checkpoints The history of data being updated /// @param _value The new number of reputation function updateValueAtNow(Checkpoint[] storage checkpoints, uint256 _value) internal { require(uint128(_value) == _value, "reputation overflow"); //check value is in the 128 bits bounderies if ((checkpoints.length == 0) || (checkpoints[checkpoints.length - 1].fromBlock < block.number)) { Checkpoint storage newCheckPoint = checkpoints[checkpoints.length++]; newCheckPoint.fromBlock = uint128(block.number); newCheckPoint.value = uint128(_value); } else { Checkpoint storage oldCheckPoint = checkpoints[checkpoints.length-1]; oldCheckPoint.value = uint128(_value); } } } // File: openzeppelin-solidity/contracts/token/ERC20/IERC20.sol pragma solidity ^0.5.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. Does not include * the optional functions; to access them see {ERC20Detailed}. */ interface IERC20 { /** * @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 `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, 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 `sender` to `recipient` 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 sender, address recipient, uint256 amount) external returns (bool); /** * @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); } // File: openzeppelin-solidity/contracts/math/SafeMath.sol pragma solidity ^0.5.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return sub(a, b, "SafeMath: subtraction overflow"); } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * - Subtraction cannot overflow. * * _Available since v2.4.0._ */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); uint256 c = a - b; return c; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) { return 0; } uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers. Reverts on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return div(a, b, "SafeMath: division by zero"); } /** * @dev Returns the integer division of two unsigned integers. Reverts with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. * * _Available since v2.4.0._ */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { // Solidity only automatically asserts when dividing by 0 require(b > 0, errorMessage); uint256 c = a / b; // assert(a == b * c + a % b); // There is no case in which this doesn't hold return c; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return mod(a, b, "SafeMath: modulo by zero"); } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * Reverts with custom message when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * - The divisor cannot be zero. * * _Available since v2.4.0._ */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; } } // File: openzeppelin-solidity/contracts/token/ERC20/ERC20.sol pragma solidity ^0.5.0; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20Mintable}. * * TIP: For a detailed writeup see our guide * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin guidelines: functions revert instead * of returning `false` on failure. This behavior is nonetheless conventional * and does not conflict with the expectations of ERC20 applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20 { using SafeMath for uint256; mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address recipient, uint256 amount) public returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public returns (bool) { _approve(_msgSender(), spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}; * * Requirements: * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. * - the caller must have allowance for `sender`'s tokens of at least * `amount`. */ function transferFrom(address sender, address recipient, uint256 amount) public returns (bool) { _transfer(sender, recipient, amount); _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance")); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue)); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero")); return true; } /** * @dev Moves tokens `amount` from `sender` to `recipient`. * * This is internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `sender` cannot be the zero address. * - `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. */ function _transfer(address sender, address recipient, uint256 amount) internal { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance"); _balances[recipient] = _balances[recipient].add(amount); emit Transfer(sender, recipient, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements * * - `to` cannot be the zero address. */ function _mint(address account, uint256 amount) internal { require(account != address(0), "ERC20: mint to the zero address"); _totalSupply = _totalSupply.add(amount); _balances[account] = _balances[account].add(amount); emit Transfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal { require(account != address(0), "ERC20: burn from the zero address"); _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance"); _totalSupply = _totalSupply.sub(amount); emit Transfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner`s tokens. * * This is internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve(address owner, address spender, uint256 amount) internal { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Destroys `amount` tokens from `account`.`amount` is then deducted * from the caller's allowance. * * See {_burn} and {_approve}. */ function _burnFrom(address account, uint256 amount) internal { _burn(account, amount); _approve(account, _msgSender(), _allowances[account][_msgSender()].sub(amount, "ERC20: burn amount exceeds allowance")); } } // File: openzeppelin-solidity/contracts/token/ERC20/ERC20Burnable.sol pragma solidity ^0.5.0; /** * @dev Extension of {ERC20} that allows token holders to destroy both their own * tokens and those that they have an allowance for, in a way that can be * recognized off-chain (via event analysis). */ contract ERC20Burnable is Context, ERC20 { /** * @dev Destroys `amount` tokens from the caller. * * See {ERC20-_burn}. */ function burn(uint256 amount) public { _burn(_msgSender(), amount); } /** * @dev See {ERC20-_burnFrom}. */ function burnFrom(address account, uint256 amount) public { _burnFrom(account, amount); } } // File: contracts/controller/DAOToken.sol pragma solidity 0.5.17; /** * @title DAOToken, base on zeppelin contract. * @dev ERC20 compatible token. It is a mintable, burnable token. */ contract DAOToken is ERC20, ERC20Burnable, Ownable { string public name; string public symbol; // solhint-disable-next-line const-name-snakecase uint8 public constant decimals = 18; uint256 public cap; /** * @dev Constructor * @param _name - token name * @param _symbol - token symbol * @param _cap - token cap - 0 value means no cap */ constructor(string memory _name, string memory _symbol, uint256 _cap) public { name = _name; symbol = _symbol; cap = _cap; } /** * @dev Function to mint tokens * @param _to The address that will receive the minted tokens. * @param _amount The amount of tokens to mint. */ function mint(address _to, uint256 _amount) public onlyOwner returns (bool) { if (cap > 0) require(totalSupply().add(_amount) <= cap); _mint(_to, _amount); return true; } } // File: openzeppelin-solidity/contracts/utils/Address.sol pragma solidity ^0.5.5; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * This test is non-exhaustive, and there may be false-negatives: during the * execution of a contract's constructor, its address will be reported as * not containing a contract. * * IMPORTANT: It is unsafe to assume that an address for which this * function returns false is an externally-owned account (EOA) and not a * contract. */ function isContract(address account) internal view returns (bool) { // This method relies in extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. // According to EIP-1052, 0x0 is the value returned for not-yet created accounts // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned // for accounts without code, i.e. `keccak256('')` bytes32 codehash; bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470; // solhint-disable-next-line no-inline-assembly assembly { codehash := extcodehash(account) } return (codehash != 0x0 && codehash != accountHash); } /** * @dev Converts an `address` into `address payable`. Note that this is * simply a type cast: the actual underlying value is not changed. * * _Available since v2.4.0._ */ function toPayable(address account) internal pure returns (address payable) { return address(uint160(account)); } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. * * _Available since v2.4.0._ */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-call-value (bool success, ) = recipient.call.value(amount)(""); require(success, "Address: unable to send value, recipient may have reverted"); } } // File: contracts/libs/SafeERC20.sol /* SafeERC20 by daostack. The code is based on a fix by SECBIT Team. USE WITH CAUTION & NO WARRANTY REFERENCE & RELATED READING - https://github.com/ethereum/solidity/issues/4116 - https://medium.com/@chris_77367/explaining-unexpected-reverts-starting-with-solidity-0-4-22-3ada6e82308c - https://medium.com/coinmonks/missing-return-value-bug-at-least-130-tokens-affected-d67bf08521ca - https://gist.github.com/BrendanChou/88a2eeb80947ff00bcf58ffdafeaeb61 */ pragma solidity 0.5.17; library SafeERC20 { using Address for address; bytes4 constant private TRANSFER_SELECTOR = bytes4(keccak256(bytes("transfer(address,uint256)"))); bytes4 constant private TRANSFERFROM_SELECTOR = bytes4(keccak256(bytes("transferFrom(address,address,uint256)"))); bytes4 constant private APPROVE_SELECTOR = bytes4(keccak256(bytes("approve(address,uint256)"))); function safeTransfer(address _erc20Addr, address _to, uint256 _value) internal { // Must be a contract addr first! require(_erc20Addr.isContract()); (bool success, bytes memory returnValue) = // solhint-disable-next-line avoid-low-level-calls _erc20Addr.call(abi.encodeWithSelector(TRANSFER_SELECTOR, _to, _value)); // call return false when something wrong require(success); //check return value require(returnValue.length == 0 || (returnValue.length == 32 && (returnValue[31] != 0))); } function safeTransferFrom(address _erc20Addr, address _from, address _to, uint256 _value) internal { // Must be a contract addr first! require(_erc20Addr.isContract()); (bool success, bytes memory returnValue) = // solhint-disable-next-line avoid-low-level-calls _erc20Addr.call(abi.encodeWithSelector(TRANSFERFROM_SELECTOR, _from, _to, _value)); // call return false when something wrong require(success); //check return value require(returnValue.length == 0 || (returnValue.length == 32 && (returnValue[31] != 0))); } function safeApprove(address _erc20Addr, address _spender, uint256 _value) internal { // Must be a contract addr first! require(_erc20Addr.isContract()); // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. require((_value == 0) || (IERC20(_erc20Addr).allowance(address(this), _spender) == 0)); (bool success, bytes memory returnValue) = // solhint-disable-next-line avoid-low-level-calls _erc20Addr.call(abi.encodeWithSelector(APPROVE_SELECTOR, _spender, _value)); // call return false when something wrong require(success); //check return value require(returnValue.length == 0 || (returnValue.length == 32 && (returnValue[31] != 0))); } } // File: contracts/controller/Avatar.sol pragma solidity 0.5.17; /** * @title An Avatar holds tokens, reputation and ether for a controller */ contract Avatar is Ownable { using SafeERC20 for address; string public orgName; DAOToken public nativeToken; Reputation public nativeReputation; event GenericCall(address indexed _contract, bytes _data, uint _value, bool _success); event SendEther(uint256 _amountInWei, address indexed _to); event ExternalTokenTransfer(address indexed _externalToken, address indexed _to, uint256 _value); event ExternalTokenTransferFrom(address indexed _externalToken, address _from, address _to, uint256 _value); event ExternalTokenApproval(address indexed _externalToken, address _spender, uint256 _value); event ReceiveEther(address indexed _sender, uint256 _value); event MetaData(string _metaData); /** * @dev the constructor takes organization name, native token and reputation system and creates an avatar for a controller */ constructor(string memory _orgName, DAOToken _nativeToken, Reputation _nativeReputation) public { orgName = _orgName; nativeToken = _nativeToken; nativeReputation = _nativeReputation; } /** * @dev enables an avatar to receive ethers */ function() external payable { emit ReceiveEther(msg.sender, msg.value); } /** * @dev perform a generic call to an arbitrary contract * @param _contract the contract's address to call * @param _data ABI-encoded contract call to call `_contract` address. * @param _value value (ETH) to transfer with the transaction * @return bool success or fail * bytes - the return bytes of the called contract's function. */ function genericCall(address _contract, bytes memory _data, uint256 _value) public onlyOwner returns(bool success, bytes memory returnValue) { // solhint-disable-next-line avoid-call-value (success, returnValue) = _contract.call.value(_value)(_data); emit GenericCall(_contract, _data, _value, success); } /** * @dev send ethers from the avatar's wallet * @param _amountInWei amount to send in Wei units * @param _to send the ethers to this address * @return bool which represents success */ function sendEther(uint256 _amountInWei, address payable _to) public onlyOwner returns(bool) { _to.transfer(_amountInWei); emit SendEther(_amountInWei, _to); return true; } /** * @dev external token transfer * @param _externalToken the token contract * @param _to the destination address * @param _value the amount of tokens to transfer * @return bool which represents success */ function externalTokenTransfer(IERC20 _externalToken, address _to, uint256 _value) public onlyOwner returns(bool) { address(_externalToken).safeTransfer(_to, _value); emit ExternalTokenTransfer(address(_externalToken), _to, _value); return true; } /** * @dev external token transfer from a specific account * @param _externalToken the token contract * @param _from the account to spend token from * @param _to the destination address * @param _value the amount of tokens to transfer * @return bool which represents success */ function externalTokenTransferFrom( IERC20 _externalToken, address _from, address _to, uint256 _value ) public onlyOwner returns(bool) { address(_externalToken).safeTransferFrom(_from, _to, _value); emit ExternalTokenTransferFrom(address(_externalToken), _from, _to, _value); return true; } /** * @dev externalTokenApproval approve the spender address to spend a specified amount of tokens * on behalf of msg.sender. * @param _externalToken the address of the Token Contract * @param _spender address * @param _value the amount of ether (in Wei) which the approval is referring to. * @return bool which represents a success */ function externalTokenApproval(IERC20 _externalToken, address _spender, uint256 _value) public onlyOwner returns(bool) { address(_externalToken).safeApprove(_spender, _value); emit ExternalTokenApproval(address(_externalToken), _spender, _value); return true; } /** * @dev metaData emits an event with a string, should contain the hash of some meta data. * @param _metaData a string representing a hash of the meta data * @return bool which represents a success */ function metaData(string memory _metaData) public onlyOwner returns(bool) { emit MetaData(_metaData); return true; } } // File: contracts/universalSchemes/UniversalSchemeInterface.sol pragma solidity 0.5.17; contract UniversalSchemeInterface { function getParametersFromController(Avatar _avatar) internal view returns(bytes32); } // File: contracts/globalConstraints/GlobalConstraintInterface.sol pragma solidity 0.5.17; contract GlobalConstraintInterface { enum CallPhase { Pre, Post, PreAndPost } function pre( address _scheme, bytes32 _params, bytes32 _method ) public returns(bool); function post( address _scheme, bytes32 _params, bytes32 _method ) public returns(bool); /** * @dev when return if this globalConstraints is pre, post or both. * @return CallPhase enum indication Pre, Post or PreAndPost. */ function when() public returns(CallPhase); } // File: contracts/controller/Controller.sol pragma solidity 0.5.17; /** * @title Controller contract * @dev A controller controls the organizations tokens, reputation and avatar. * It is subject to a set of schemes and constraints that determine its behavior. * Each scheme has it own parameters and operation permissions. */ contract Controller { struct Scheme { bytes32 paramsHash; // a hash "configuration" of the scheme bytes4 permissions; // A bitwise flags of permissions, // All 0: Not registered, // 1st bit: Flag if the scheme is registered, // 2nd bit: Scheme can register other schemes // 3rd bit: Scheme can add/remove global constraints // 4th bit: Scheme can upgrade the controller // 5th bit: Scheme can call genericCall on behalf of // the organization avatar } struct GlobalConstraint { address gcAddress; bytes32 params; } struct GlobalConstraintRegister { bool isRegistered; //is registered uint256 index; //index at globalConstraints } mapping(address=>Scheme) public schemes; Avatar public avatar; DAOToken public nativeToken; Reputation public nativeReputation; // newController will point to the new controller after the present controller is upgraded address public newController; // globalConstraintsPre that determine pre conditions for all actions on the controller GlobalConstraint[] public globalConstraintsPre; // globalConstraintsPost that determine post conditions for all actions on the controller GlobalConstraint[] public globalConstraintsPost; // globalConstraintsRegisterPre indicate if a globalConstraints is registered as a pre global constraint mapping(address=>GlobalConstraintRegister) public globalConstraintsRegisterPre; // globalConstraintsRegisterPost indicate if a globalConstraints is registered as a post global constraint mapping(address=>GlobalConstraintRegister) public globalConstraintsRegisterPost; event MintReputation (address indexed _sender, address indexed _to, uint256 _amount); event BurnReputation (address indexed _sender, address indexed _from, uint256 _amount); event MintTokens (address indexed _sender, address indexed _beneficiary, uint256 _amount); event RegisterScheme (address indexed _sender, address indexed _scheme); event UnregisterScheme (address indexed _sender, address indexed _scheme); event UpgradeController(address indexed _oldController, address _newController); event AddGlobalConstraint( address indexed _globalConstraint, bytes32 _params, GlobalConstraintInterface.CallPhase _when); event RemoveGlobalConstraint(address indexed _globalConstraint, uint256 _index, bool _isPre); constructor( Avatar _avatar) public { avatar = _avatar; nativeToken = avatar.nativeToken(); nativeReputation = avatar.nativeReputation(); schemes[msg.sender] = Scheme({paramsHash: bytes32(0), permissions: bytes4(0x0000001F)}); emit RegisterScheme (msg.sender, msg.sender); } // Do not allow mistaken calls: // solhint-disable-next-line payable-fallback function() external { revert(); } // Modifiers: modifier onlyRegisteredScheme() { require(schemes[msg.sender].permissions&bytes4(0x00000001) == bytes4(0x00000001)); _; } modifier onlyRegisteringSchemes() { require(schemes[msg.sender].permissions&bytes4(0x00000002) == bytes4(0x00000002)); _; } modifier onlyGlobalConstraintsScheme() { require(schemes[msg.sender].permissions&bytes4(0x00000004) == bytes4(0x00000004)); _; } modifier onlyUpgradingScheme() { require(schemes[msg.sender].permissions&bytes4(0x00000008) == bytes4(0x00000008)); _; } modifier onlyGenericCallScheme() { require(schemes[msg.sender].permissions&bytes4(0x00000010) == bytes4(0x00000010)); _; } modifier onlyMetaDataScheme() { require(schemes[msg.sender].permissions&bytes4(0x00000010) == bytes4(0x00000010)); _; } modifier onlySubjectToConstraint(bytes32 func) { uint256 idx; for (idx = 0; idx < globalConstraintsPre.length; idx++) { require( (GlobalConstraintInterface(globalConstraintsPre[idx].gcAddress)) .pre(msg.sender, globalConstraintsPre[idx].params, func)); } _; for (idx = 0; idx < globalConstraintsPost.length; idx++) { require( (GlobalConstraintInterface(globalConstraintsPost[idx].gcAddress)) .post(msg.sender, globalConstraintsPost[idx].params, func)); } } modifier isAvatarValid(address _avatar) { require(_avatar == address(avatar)); _; } /** * @dev Mint `_amount` of reputation that are assigned to `_to` . * @param _amount amount of reputation to mint * @param _to beneficiary address * @return bool which represents a success */ function mintReputation(uint256 _amount, address _to, address _avatar) external onlyRegisteredScheme onlySubjectToConstraint("mintReputation") isAvatarValid(_avatar) returns(bool) { emit MintReputation(msg.sender, _to, _amount); return nativeReputation.mint(_to, _amount); } /** * @dev Burns `_amount` of reputation from `_from` * @param _amount amount of reputation to burn * @param _from The address that will lose the reputation * @return bool which represents a success */ function burnReputation(uint256 _amount, address _from, address _avatar) external onlyRegisteredScheme onlySubjectToConstraint("burnReputation") isAvatarValid(_avatar) returns(bool) { emit BurnReputation(msg.sender, _from, _amount); return nativeReputation.burn(_from, _amount); } /** * @dev mint tokens . * @param _amount amount of token to mint * @param _beneficiary beneficiary address * @return bool which represents a success */ function mintTokens(uint256 _amount, address _beneficiary, address _avatar) external onlyRegisteredScheme onlySubjectToConstraint("mintTokens") isAvatarValid(_avatar) returns(bool) { emit MintTokens(msg.sender, _beneficiary, _amount); return nativeToken.mint(_beneficiary, _amount); } /** * @dev register a scheme * @param _scheme the address of the scheme * @param _paramsHash a hashed configuration of the usage of the scheme * @param _permissions the permissions the new scheme will have * @return bool which represents a success */ function registerScheme(address _scheme, bytes32 _paramsHash, bytes4 _permissions, address _avatar) external onlyRegisteringSchemes onlySubjectToConstraint("registerScheme") isAvatarValid(_avatar) returns(bool) { Scheme memory scheme = schemes[_scheme]; // Check scheme has at least the permissions it is changing, and at least the current permissions: // Implementation is a bit messy. One must recall logic-circuits ^^ // produces non-zero if sender does not have all of the perms that are changing between old and new require(bytes4(0x0000001f)&(_permissions^scheme.permissions)&(~schemes[msg.sender].permissions) == bytes4(0)); // produces non-zero if sender does not have all of the perms in the old scheme require(bytes4(0x0000001f)&(scheme.permissions&(~schemes[msg.sender].permissions)) == bytes4(0)); // Add or change the scheme: schemes[_scheme].paramsHash = _paramsHash; schemes[_scheme].permissions = _permissions|bytes4(0x00000001); emit RegisterScheme(msg.sender, _scheme); return true; } /** * @dev unregister a scheme * @param _scheme the address of the scheme * @return bool which represents a success */ function unregisterScheme( address _scheme, address _avatar) external onlyRegisteringSchemes onlySubjectToConstraint("unregisterScheme") isAvatarValid(_avatar) returns(bool) { //check if the scheme is registered if (_isSchemeRegistered(_scheme) == false) { return false; } // Check the unregistering scheme has enough permissions: require(bytes4(0x0000001f)&(schemes[_scheme].permissions&(~schemes[msg.sender].permissions)) == bytes4(0)); // Unregister: emit UnregisterScheme(msg.sender, _scheme); delete schemes[_scheme]; return true; } /** * @dev unregister the caller's scheme * @return bool which represents a success */ function unregisterSelf(address _avatar) external isAvatarValid(_avatar) returns(bool) { if (_isSchemeRegistered(msg.sender) == false) { return false; } delete schemes[msg.sender]; emit UnregisterScheme(msg.sender, msg.sender); return true; } /** * @dev add or update Global Constraint * @param _globalConstraint the address of the global constraint to be added. * @param _params the constraint parameters hash. * @return bool which represents a success */ function addGlobalConstraint(address _globalConstraint, bytes32 _params, address _avatar) external onlyGlobalConstraintsScheme isAvatarValid(_avatar) returns(bool) { GlobalConstraintInterface.CallPhase when = GlobalConstraintInterface(_globalConstraint).when(); if ((when == GlobalConstraintInterface.CallPhase.Pre)|| (when == GlobalConstraintInterface.CallPhase.PreAndPost)) { if (!globalConstraintsRegisterPre[_globalConstraint].isRegistered) { globalConstraintsPre.push(GlobalConstraint(_globalConstraint, _params)); globalConstraintsRegisterPre[_globalConstraint] = GlobalConstraintRegister(true, globalConstraintsPre.length-1); }else { globalConstraintsPre[globalConstraintsRegisterPre[_globalConstraint].index].params = _params; } } if ((when == GlobalConstraintInterface.CallPhase.Post)|| (when == GlobalConstraintInterface.CallPhase.PreAndPost)) { if (!globalConstraintsRegisterPost[_globalConstraint].isRegistered) { globalConstraintsPost.push(GlobalConstraint(_globalConstraint, _params)); globalConstraintsRegisterPost[_globalConstraint] = GlobalConstraintRegister(true, globalConstraintsPost.length-1); }else { globalConstraintsPost[globalConstraintsRegisterPost[_globalConstraint].index].params = _params; } } emit AddGlobalConstraint(_globalConstraint, _params, when); return true; } /** * @dev remove Global Constraint * @param _globalConstraint the address of the global constraint to be remove. * @return bool which represents a success */ // solhint-disable-next-line code-complexity function removeGlobalConstraint (address _globalConstraint, address _avatar) external onlyGlobalConstraintsScheme isAvatarValid(_avatar) returns(bool) { GlobalConstraintRegister memory globalConstraintRegister; GlobalConstraint memory globalConstraint; GlobalConstraintInterface.CallPhase when = GlobalConstraintInterface(_globalConstraint).when(); bool retVal = false; if ((when == GlobalConstraintInterface.CallPhase.Pre)|| (when == GlobalConstraintInterface.CallPhase.PreAndPost)) { globalConstraintRegister = globalConstraintsRegisterPre[_globalConstraint]; if (globalConstraintRegister.isRegistered) { if (globalConstraintRegister.index < globalConstraintsPre.length-1) { globalConstraint = globalConstraintsPre[globalConstraintsPre.length-1]; globalConstraintsPre[globalConstraintRegister.index] = globalConstraint; globalConstraintsRegisterPre[globalConstraint.gcAddress].index = globalConstraintRegister.index; } globalConstraintsPre.length--; delete globalConstraintsRegisterPre[_globalConstraint]; retVal = true; } } if ((when == GlobalConstraintInterface.CallPhase.Post)|| (when == GlobalConstraintInterface.CallPhase.PreAndPost)) { globalConstraintRegister = globalConstraintsRegisterPost[_globalConstraint]; if (globalConstraintRegister.isRegistered) { if (globalConstraintRegister.index < globalConstraintsPost.length-1) { globalConstraint = globalConstraintsPost[globalConstraintsPost.length-1]; globalConstraintsPost[globalConstraintRegister.index] = globalConstraint; globalConstraintsRegisterPost[globalConstraint.gcAddress].index = globalConstraintRegister.index; } globalConstraintsPost.length--; delete globalConstraintsRegisterPost[_globalConstraint]; retVal = true; } } if (retVal) { emit RemoveGlobalConstraint( _globalConstraint, globalConstraintRegister.index, when == GlobalConstraintInterface.CallPhase.Pre ); } return retVal; } /** * @dev upgrade the Controller * The function will trigger an event 'UpgradeController'. * @param _newController the address of the new controller. * @return bool which represents a success */ function upgradeController(address _newController, Avatar _avatar) external onlyUpgradingScheme isAvatarValid(address(_avatar)) returns(bool) { require(newController == address(0)); // so the upgrade could be done once for a contract. require(_newController != address(0)); newController = _newController; avatar.transferOwnership(_newController); require(avatar.owner() == _newController); if (nativeToken.owner() == address(this)) { nativeToken.transferOwnership(_newController); require(nativeToken.owner() == _newController); } if (nativeReputation.owner() == address(this)) { nativeReputation.transferOwnership(_newController); require(nativeReputation.owner() == _newController); } emit UpgradeController(address(this), newController); return true; } /** * @dev perform a generic call to an arbitrary contract * @param _contract the contract's address to call * @param _data ABI-encoded contract call to call `_contract` address. * @param _avatar the controller's avatar address * @param _value value (ETH) to transfer with the transaction * @return bool -success * bytes - the return value of the called _contract's function. */ function genericCall(address _contract, bytes calldata _data, Avatar _avatar, uint256 _value) external onlyGenericCallScheme onlySubjectToConstraint("genericCall") isAvatarValid(address(_avatar)) returns (bool, bytes memory) { return avatar.genericCall(_contract, _data, _value); } /** * @dev send some ether * @param _amountInWei the amount of ether (in Wei) to send * @param _to address of the beneficiary * @return bool which represents a success */ function sendEther(uint256 _amountInWei, address payable _to, Avatar _avatar) external onlyRegisteredScheme onlySubjectToConstraint("sendEther") isAvatarValid(address(_avatar)) returns(bool) { return avatar.sendEther(_amountInWei, _to); } /** * @dev send some amount of arbitrary ERC20 Tokens * @param _externalToken the address of the Token Contract * @param _to address of the beneficiary * @param _value the amount of ether (in Wei) to send * @return bool which represents a success */ function externalTokenTransfer(IERC20 _externalToken, address _to, uint256 _value, Avatar _avatar) external onlyRegisteredScheme onlySubjectToConstraint("externalTokenTransfer") isAvatarValid(address(_avatar)) returns(bool) { return avatar.externalTokenTransfer(_externalToken, _to, _value); } /** * @dev transfer token "from" address "to" address * One must to approve the amount of tokens which can be spend from the * "from" account.This can be done using externalTokenApprove. * @param _externalToken the address of the Token Contract * @param _from address of the account to send from * @param _to address of the beneficiary * @param _value the amount of ether (in Wei) to send * @return bool which represents a success */ function externalTokenTransferFrom( IERC20 _externalToken, address _from, address _to, uint256 _value, Avatar _avatar) external onlyRegisteredScheme onlySubjectToConstraint("externalTokenTransferFrom") isAvatarValid(address(_avatar)) returns(bool) { return avatar.externalTokenTransferFrom(_externalToken, _from, _to, _value); } /** * @dev externalTokenApproval approve the spender address to spend a specified amount of tokens * on behalf of msg.sender. * @param _externalToken the address of the Token Contract * @param _spender address * @param _value the amount of ether (in Wei) which the approval is referring to. * @return bool which represents a success */ function externalTokenApproval(IERC20 _externalToken, address _spender, uint256 _value, Avatar _avatar) external onlyRegisteredScheme onlySubjectToConstraint("externalTokenIncreaseApproval") isAvatarValid(address(_avatar)) returns(bool) { return avatar.externalTokenApproval(_externalToken, _spender, _value); } /** * @dev metaData emits an event with a string, should contain the hash of some meta data. * @param _metaData a string representing a hash of the meta data * @param _avatar Avatar * @return bool which represents a success */ function metaData(string calldata _metaData, Avatar _avatar) external onlyMetaDataScheme isAvatarValid(address(_avatar)) returns(bool) { return avatar.metaData(_metaData); } /** * @dev getNativeReputation * @param _avatar the organization avatar. * @return organization native reputation */ function getNativeReputation(address _avatar) external isAvatarValid(_avatar) view returns(address) { return address(nativeReputation); } function isSchemeRegistered(address _scheme, address _avatar) external isAvatarValid(_avatar) view returns(bool) { return _isSchemeRegistered(_scheme); } function getSchemeParameters(address _scheme, address _avatar) external isAvatarValid(_avatar) view returns(bytes32) { return schemes[_scheme].paramsHash; } function getSchemePermissions(address _scheme, address _avatar) external isAvatarValid(_avatar) view returns(bytes4) { return schemes[_scheme].permissions; } function getGlobalConstraintParameters(address _globalConstraint, address) external view returns(bytes32) { GlobalConstraintRegister memory register = globalConstraintsRegisterPre[_globalConstraint]; if (register.isRegistered) { return globalConstraintsPre[register.index].params; } register = globalConstraintsRegisterPost[_globalConstraint]; if (register.isRegistered) { return globalConstraintsPost[register.index].params; } } /** * @dev globalConstraintsCount return the global constraint pre and post count * @return uint256 globalConstraintsPre count. * @return uint256 globalConstraintsPost count. */ function globalConstraintsCount(address _avatar) external isAvatarValid(_avatar) view returns(uint, uint) { return (globalConstraintsPre.length, globalConstraintsPost.length); } function isGlobalConstraintRegistered(address _globalConstraint, address _avatar) external isAvatarValid(_avatar) view returns(bool) { return (globalConstraintsRegisterPre[_globalConstraint].isRegistered || globalConstraintsRegisterPost[_globalConstraint].isRegistered); } function _isSchemeRegistered(address _scheme) private view returns(bool) { return (schemes[_scheme].permissions&bytes4(0x00000001) != bytes4(0)); } } // File: contracts/universalSchemes/UniversalScheme.sol pragma solidity 0.5.17; contract UniversalScheme is UniversalSchemeInterface { /** * @dev get the parameters for the current scheme from the controller */ function getParametersFromController(Avatar _avatar) internal view returns(bytes32) { require(Controller(_avatar.owner()).isSchemeRegistered(address(this), address(_avatar)), "scheme is not registered"); return Controller(_avatar.owner()).getSchemeParameters(address(this), address(_avatar)); } } // File: @daostack/infra/contracts/votingMachines/VotingMachineCallbacksInterface.sol pragma solidity 0.5.17; interface VotingMachineCallbacksInterface { function mintReputation(uint256 _amount, address _beneficiary, bytes32 _proposalId) external returns(bool); function burnReputation(uint256 _amount, address _owner, bytes32 _proposalId) external returns(bool); function stakingTokenTransfer(IERC20 _stakingToken, address _beneficiary, uint256 _amount, bytes32 _proposalId) external returns(bool); function getTotalReputationSupply(bytes32 _proposalId) external view returns(uint256); function reputationOf(address _owner, bytes32 _proposalId) external view returns(uint256); function balanceOfStakingToken(IERC20 _stakingToken, bytes32 _proposalId) external view returns(uint256); } // File: contracts/votingMachines/VotingMachineCallbacks.sol pragma solidity 0.5.17; contract VotingMachineCallbacks is VotingMachineCallbacksInterface { struct ProposalInfo { uint256 blockNumber; // the proposal's block number Avatar avatar; // the proposal's avatar } modifier onlyVotingMachine(bytes32 _proposalId) { require(proposalsInfo[msg.sender][_proposalId].avatar != Avatar(address(0)), "only VotingMachine"); _; } modifier onlyRegisteredScheme(bytes32 _proposalId) { Avatar avatar = proposalsInfo[msg.sender][_proposalId].avatar; require(Controller(avatar.owner()).isSchemeRegistered(address(this), address(avatar)), "scheme is not registered" ); _; } // VotingMaching -> proposalId -> ProposalInfo mapping(address => mapping(bytes32 => ProposalInfo)) public proposalsInfo; function mintReputation(uint256 _amount, address _beneficiary, bytes32 _proposalId) external onlyVotingMachine(_proposalId) returns(bool) { Avatar avatar = proposalsInfo[msg.sender][_proposalId].avatar; if (avatar == Avatar(0)) { return false; } return Controller(avatar.owner()).mintReputation(_amount, _beneficiary, address(avatar)); } function burnReputation(uint256 _amount, address _beneficiary, bytes32 _proposalId) external onlyVotingMachine(_proposalId) returns(bool) { Avatar avatar = proposalsInfo[msg.sender][_proposalId].avatar; if (avatar == Avatar(0)) { return false; } return Controller(avatar.owner()).burnReputation(_amount, _beneficiary, address(avatar)); } function stakingTokenTransfer( IERC20 _stakingToken, address _beneficiary, uint256 _amount, bytes32 _proposalId) external onlyVotingMachine(_proposalId) returns(bool) { Avatar avatar = proposalsInfo[msg.sender][_proposalId].avatar; if (avatar == Avatar(0)) { return false; } return Controller(avatar.owner()).externalTokenTransfer(_stakingToken, _beneficiary, _amount, avatar); } function balanceOfStakingToken(IERC20 _stakingToken, bytes32 _proposalId) external view returns(uint256) { Avatar avatar = proposalsInfo[msg.sender][_proposalId].avatar; if (proposalsInfo[msg.sender][_proposalId].avatar == Avatar(0)) { return 0; } return _stakingToken.balanceOf(address(avatar)); } function getTotalReputationSupply(bytes32 _proposalId) external view onlyRegisteredScheme(_proposalId) returns(uint256) { ProposalInfo memory proposal = proposalsInfo[msg.sender][_proposalId]; if (proposal.avatar == Avatar(0)) { return 0; } return proposal.avatar.nativeReputation().totalSupplyAt(proposal.blockNumber); } function reputationOf(address _owner, bytes32 _proposalId) external view onlyRegisteredScheme(_proposalId) returns(uint256) { ProposalInfo memory proposal = proposalsInfo[msg.sender][_proposalId]; if (proposal.avatar == Avatar(0)) { return 0; } return proposal.avatar.nativeReputation().balanceOfAt(_owner, proposal.blockNumber); } } // File: contracts/schemes/SchemeConstraints.sol pragma solidity 0.5.17; pragma experimental ABIEncoderV2; contract SchemeConstraints { address[] public contractsWhiteList; //descriptionHash can be used to add detalis description of the constraints. //e.g it can be ipfs hash of the contractsWhiteList abis +names. string public descriptionHash; /* * @dev isAllowedToCall should be called upon a proposal execution. * @param _contractsToCall the contracts to be called * @param _callsData - The abi encode data for the calls * @param _values value(ETH) to transfer with the calls * @param _avatar avatar * @return bool value true-allowed false not allowed */ function isAllowedToCall( address[] calldata _contractsToCall, bytes[] calldata _callsData, uint256[] calldata _values, Avatar _avatar) external returns(bool); /* * @dev isAllowedToPropose should be called upon a proposal submition. * @param _contractsToCall the contracts to be called * @param _callsData - The abi encode data for the calls * @param _values value(ETH) to transfer with the calls * @param _avatar avatar * @return bool value true-allowed false not allowed */ function isAllowedToPropose( address[] calldata _contractsToCall, bytes[] calldata _callsData, uint256[] calldata _values, Avatar _avatar) external returns(bool); function getContractsWhiteList() external view returns(address[] memory) { return contractsWhiteList; } } // File: contracts/schemes/GenericSchemeMultiCall.sol pragma solidity 0.5.17; /** * @title GenericSchemeMultiCall. * @dev A scheme for proposing and executing calls to multiple arbitrary function * on one or multiple contracts on behalf of the organization avatar. */ contract GenericSchemeMultiCall is VotingMachineCallbacks, ProposalExecuteInterface { using SafeMath for uint256; // Details of a voting proposal: struct MultiCallProposal { address[] contractsToCall; bytes[] callsData; uint256[] values; bool exist; bool passed; } mapping(bytes32=>MultiCallProposal) public proposals; IntVoteInterface public votingMachine; bytes32 public voteParams; Avatar public avatar; SchemeConstraints public schemeConstraints; event NewMultiCallProposal( address indexed _avatar, bytes32 indexed _proposalId, bytes[] _callsData, uint256[] _values, string _descriptionHash, address[] _contractsToCall ); event ProposalExecuted( address indexed _avatar, bytes32 indexed _proposalId ); event ProposalCallExecuted( address indexed _avatar, bytes32 indexed _proposalId, address _contractToCall, bytes _callData, bytes _callDataReturnValue ); event ProposalExecutedByVotingMachine( address indexed _avatar, bytes32 indexed _proposalId, int256 _param ); event ProposalDeleted(address indexed _avatar, bytes32 indexed _proposalId); /* @dev initialize * @param _avatar the avatar to mint reputation from * @param _votingMachine the voting machines address to * @param _voteParams voting machine parameters. * @param _schemeConstraints the schemeConstraints contracts. */ function initialize( Avatar _avatar, IntVoteInterface _votingMachine, bytes32 _voteParams, SchemeConstraints _schemeConstraints ) external { require(avatar == Avatar(0), "can be called only one time"); require(_avatar != Avatar(0), "avatar cannot be zero"); avatar = _avatar; votingMachine = _votingMachine; voteParams = _voteParams; schemeConstraints = _schemeConstraints; } /** * @dev execution of proposals, can only be called by the voting machine in which the vote is held. * @param _proposalId the ID of the voting in the voting machine * @param _decision a parameter of the voting result, 1 yes and 2 is no. * @return bool success */ function executeProposal(bytes32 _proposalId, int256 _decision) external onlyVotingMachine(_proposalId) returns(bool) { MultiCallProposal storage proposal = proposals[_proposalId]; require(proposal.exist, "must be a live proposal"); require(!proposal.passed, "cannot execute twice"); if (_decision == 1) { proposal.passed = true; } else { delete proposals[_proposalId]; emit ProposalDeleted(address(avatar), _proposalId); } emit ProposalExecutedByVotingMachine(address(avatar), _proposalId, _decision); return true; } /** * @dev execution of proposals after it has been decided by the voting machine * @param _proposalId the ID of the voting in the voting machine */ function execute(bytes32 _proposalId) external { MultiCallProposal storage proposal = proposals[_proposalId]; require(proposal.exist, "must be a live proposal"); require(proposal.passed, "proposal must passed by voting machine"); if (schemeConstraints != SchemeConstraints(0)) { require( schemeConstraints.isAllowedToCall( proposal.contractsToCall, proposal.callsData, proposal.values, avatar), "call is not allowed"); } proposal.exist = false; bytes memory genericCallReturnValue; bool success; Controller controller = Controller(avatar.owner()); for (uint i = 0; i < proposal.contractsToCall.length; i++) { bytes memory callData = proposal.callsData[i]; (success, genericCallReturnValue) = controller.genericCall(proposal.contractsToCall[i], callData, avatar, proposal.values[i]); /* Whole transaction will be reverted if at least one call fails*/ require(success, "Proposal call failed"); emit ProposalCallExecuted( address(avatar), _proposalId, proposal.contractsToCall[i], callData, genericCallReturnValue ); } delete proposals[_proposalId]; emit ProposalDeleted(address(avatar), _proposalId); emit ProposalExecuted(address(avatar), _proposalId); } /** * @dev propose to call one or multiple contracts on behalf of the _avatar * The function trigger NewMultiCallProposal event * @param _contractsToCall the contracts to be called * @param _callsData - The abi encode data for the calls * @param _values value(ETH) to transfer with the calls * @param _descriptionHash proposal description hash * @return an id which represents the proposal * Note: The reasone this function is public(and not 'external') is due to * known compiler issue handling calldata bytes[] still not solved in 0.5.17 * see : https://github.com/ethereum/solidity/issues/6835#issuecomment-549895381 */ function proposeCalls( address[] memory _contractsToCall, bytes[] memory _callsData, uint256[] memory _values, string memory _descriptionHash ) public returns(bytes32 proposalId) { require( (_contractsToCall.length == _callsData.length) && (_contractsToCall.length == _values.length), "Wrong length of _contractsToCall, _callsDataLens or _values arrays" ); if (schemeConstraints != SchemeConstraints(0)) { require( schemeConstraints.isAllowedToPropose( _contractsToCall, _callsData, _values, avatar), "propose is not allowed"); } proposalId = votingMachine.propose(2, voteParams, msg.sender, address(avatar)); proposals[proposalId] = MultiCallProposal({ contractsToCall: _contractsToCall, callsData: _callsData, values: _values, exist: true, passed: false }); proposalsInfo[address(votingMachine)][proposalId] = ProposalInfo({ blockNumber:block.number, avatar:avatar }); emit NewMultiCallProposal(address(avatar), proposalId, _callsData, _values, _descriptionHash, _contractsToCall); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_avatar","type":"address"},{"indexed":true,"internalType":"bytes32","name":"_proposalId","type":"bytes32"},{"indexed":false,"internalType":"bytes[]","name":"_callsData","type":"bytes[]"},{"indexed":false,"internalType":"uint256[]","name":"_values","type":"uint256[]"},{"indexed":false,"internalType":"string","name":"_descriptionHash","type":"string"},{"indexed":false,"internalType":"address[]","name":"_contractsToCall","type":"address[]"}],"name":"NewMultiCallProposal","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_avatar","type":"address"},{"indexed":true,"internalType":"bytes32","name":"_proposalId","type":"bytes32"},{"indexed":false,"internalType":"address","name":"_contractToCall","type":"address"},{"indexed":false,"internalType":"bytes","name":"_callData","type":"bytes"},{"indexed":false,"internalType":"bytes","name":"_callDataReturnValue","type":"bytes"}],"name":"ProposalCallExecuted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_avatar","type":"address"},{"indexed":true,"internalType":"bytes32","name":"_proposalId","type":"bytes32"}],"name":"ProposalDeleted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_avatar","type":"address"},{"indexed":true,"internalType":"bytes32","name":"_proposalId","type":"bytes32"}],"name":"ProposalExecuted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_avatar","type":"address"},{"indexed":true,"internalType":"bytes32","name":"_proposalId","type":"bytes32"},{"indexed":false,"internalType":"int256","name":"_param","type":"int256"}],"name":"ProposalExecutedByVotingMachine","type":"event"},{"constant":true,"inputs":[],"name":"avatar","outputs":[{"internalType":"contract Avatar","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"contract IERC20","name":"_stakingToken","type":"address"},{"internalType":"bytes32","name":"_proposalId","type":"bytes32"}],"name":"balanceOfStakingToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"address","name":"_beneficiary","type":"address"},{"internalType":"bytes32","name":"_proposalId","type":"bytes32"}],"name":"burnReputation","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"bytes32","name":"_proposalId","type":"bytes32"}],"name":"execute","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"bytes32","name":"_proposalId","type":"bytes32"},{"internalType":"int256","name":"_decision","type":"int256"}],"name":"executeProposal","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"bytes32","name":"_proposalId","type":"bytes32"}],"name":"getTotalReputationSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"contract Avatar","name":"_avatar","type":"address"},{"internalType":"contract IntVoteInterface","name":"_votingMachine","type":"address"},{"internalType":"bytes32","name":"_voteParams","type":"bytes32"},{"internalType":"contract SchemeConstraints","name":"_schemeConstraints","type":"address"}],"name":"initialize","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"address","name":"_beneficiary","type":"address"},{"internalType":"bytes32","name":"_proposalId","type":"bytes32"}],"name":"mintReputation","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"proposals","outputs":[{"internalType":"bool","name":"exist","type":"bool"},{"internalType":"bool","name":"passed","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"proposalsInfo","outputs":[{"internalType":"uint256","name":"blockNumber","type":"uint256"},{"internalType":"contract Avatar","name":"avatar","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address[]","name":"_contractsToCall","type":"address[]"},{"internalType":"bytes[]","name":"_callsData","type":"bytes[]"},{"internalType":"uint256[]","name":"_values","type":"uint256[]"},{"internalType":"string","name":"_descriptionHash","type":"string"}],"name":"proposeCalls","outputs":[{"internalType":"bytes32","name":"proposalId","type":"bytes32"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"bytes32","name":"_proposalId","type":"bytes32"}],"name":"reputationOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"schemeConstraints","outputs":[{"internalType":"contract SchemeConstraints","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"contract IERC20","name":"_stakingToken","type":"address"},{"internalType":"address","name":"_beneficiary","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"bytes32","name":"_proposalId","type":"bytes32"}],"name":"stakingTokenTransfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"voteParams","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"votingMachine","outputs":[{"internalType":"contract IntVoteInterface","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"}]
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101005760003560e01c80639d4c162d11610097578063d29b5d2f11610066578063d29b5d2f14610216578063e5e2116414610229578063e751f27114610231578063f81f8bf61461024457610100565b80639d4c162d146101bb578063a31ee5b0146101db578063b551c373146101f0578063bea75f281461020357610100565b80635aef7de6116100d35780635aef7de61461016c57806360bdbb3f146101745780636b8eb403146101955780639588378e146101a857610100565b806322499a65146101055780632d3525491461012e57806332ed5b12146101435780633edf7ca114610164575b600080fd5b610118610113366004611afb565b610257565b6040516101259190612545565b60405180910390f35b61013661053b565b6040516101259190612553565b610156610151366004611c21565b61054a565b60405161012592919061252a565b61013661056b565b61013661057a565b610187610182366004611ac1565b610589565b6040516101259291906126ab565b6101186101a3366004611d26565b6105b3565b6101186101b6366004611ac1565b61066d565b6101ce6101c9366004611c5d565b6108e9565b604051610125919061251c565b6101ee6101e9366004611c7c565b610a74565b005b6101186101fe366004611c21565b610b08565b6101ce610211366004611cd1565b610d80565b6101ce610224366004611d63565b610ef8565b61011861106d565b6101ee61023f366004611c21565b611073565b6101ce610252366004611d63565b6114ee565b60008351855114801561026b575082518551145b6102905760405162461bcd60e51b8152600401610287906125fb565b60405180910390fd5b6005546001600160a01b031615610348576005546004805460405163da6f0d9b60e01b81526001600160a01b039384169363da6f0d9b936102da938b938b938b9392169101612444565b602060405180830381600087803b1580156102f457600080fd5b505af1158015610308573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525061032c9190810190611bbb565b6103485760405162461bcd60e51b8152600401610287906125cb565b6002805460035460048054604051634439bdaf60e11b81526001600160a01b03948516956388737b5e956103859591949193339391169101612596565b602060405180830381600087803b15801561039f57600080fd5b505af11580156103b3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052506103d79190810190611c3f565b6040805160a0810182528781526020808201889052818301879052600160608301819052600060808401819052858152908252929092208151805194955091939092610427928492910190611605565b506020828101518051610440926001850192019061166a565b506040820151805161045c9160028401916020909101906116c3565b5060608201516003909101805460809093015115156101000261ff001992151560ff199094169390931791909116919091179055604080518082018252438152600480546001600160a01b03908116602080850191825260025483166000908152808252868120888252909152859020935184555160019390930180549382166001600160a01b0319909416939093179092555491518392909116907ff5a0655bd7247f3a6fa97e71b57c61314566afb5aa8be8eea2c48f4d1b9bf1909061052b908890889088908c906124c5565b60405180910390a3949350505050565b6005546001600160a01b031681565b60016020526000908152604090206003015460ff8082169161010090041682565b6002546001600160a01b031681565b6004546001600160a01b031681565b6000602081815292815260408082209093529081522080546001909101546001600160a01b031682565b336000908152602081815260408083208484529091528120600101546001600160a01b0316806105e7576000915050610667565b6040516370a0823160e01b81526001600160a01b038516906370a0823190610613908490600401612387565b60206040518083038186803b15801561062b57600080fd5b505afa15801561063f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052506106639190810190611c3f565b9150505b92915050565b336000908152602081815260408083208484528252808320600101548151638da5cb5b60e01b8152915185936001600160a01b03909216928392638da5cb5b92600480840193829003018186803b1580156106c757600080fd5b505afa1580156106db573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052506106ff9190810190611aa3565b6001600160a01b0316639be2faed30836040518363ffffffff1660e01b815260040161072c929190612395565b60206040518083038186803b15801561074457600080fd5b505afa158015610758573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525061077c9190810190611bbb565b6107985760405162461bcd60e51b81526004016102879061266b565b6107a061170a565b5033600090815260208181526040808320878452825291829020825180840190935280548352600101546001600160a01b03169082018190526107e75760009350506108e1565b80602001516001600160a01b03166389ae1c906040518163ffffffff1660e01b815260040160206040518083038186803b15801561082457600080fd5b505afa158015610838573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525061085c9190810190611d45565b815160405163277166bf60e11b81526001600160a01b039290921691634ee2cd7e9161088d918a9190600401612429565b60206040518083038186803b1580156108a557600080fd5b505afa1580156108b9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052506108dd9190810190611c3f565b9350505b505092915050565b3360009081526020818152604080832085845290915281206001015483906001600160a01b031661092c5760405162461bcd60e51b81526004016102879061264b565b6000848152600160205260409020600381015460ff1661095e5760405162461bcd60e51b81526004016102879061262b565b6003810154610100900460ff16156109885760405162461bcd60e51b81526004016102879061261b565b83600114156109a75760038101805461ff001916610100179055610a22565b6000858152600160205260408120906109c08282611721565b6109ce600183016000611742565b6109dc600283016000611721565b50600301805461ffff1916905560045460405186916001600160a01b0316907f6bc0cb9e9967b59a69ace442598e1df4368d38661bd5c0800fbcbc9fe855fbbe90600090a35b60045460405186916001600160a01b0316907f25d4c89430c1f10c60c292556941e3e624ec1ec04972a5da46cee1b352429cbe90610a61908890612545565b60405180910390a3506001949350505050565b6004546001600160a01b031615610a9d5760405162461bcd60e51b81526004016102879061260b565b6001600160a01b038416610ac35760405162461bcd60e51b8152600401610287906125eb565b600480546001600160a01b039586166001600160a01b031991821617909155600280549486169482169490941790935560039190915560058054919093169116179055565b336000908152602081815260408083208484528252808320600101548151638da5cb5b60e01b8152915185936001600160a01b03909216928392638da5cb5b92600480840193829003018186803b158015610b6257600080fd5b505afa158015610b76573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250610b9a9190810190611aa3565b6001600160a01b0316639be2faed30836040518363ffffffff1660e01b8152600401610bc7929190612395565b60206040518083038186803b158015610bdf57600080fd5b505afa158015610bf3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250610c179190810190611bbb565b610c335760405162461bcd60e51b81526004016102879061266b565b610c3b61170a565b5033600090815260208181526040808320878452825291829020825180840190935280548352600101546001600160a01b0316908201819052610c82576000935050610d79565b80602001516001600160a01b03166389ae1c906040518163ffffffff1660e01b815260040160206040518083038186803b158015610cbf57600080fd5b505afa158015610cd3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250610cf79190810190611d45565b8151604051630981b24d60e41b81526001600160a01b03929092169163981b24d091610d2591600401612545565b60206040518083038186803b158015610d3d57600080fd5b505afa158015610d51573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250610d759190810190611c3f565b9350505b5050919050565b3360009081526020818152604080832084845290915281206001015482906001600160a01b0316610dc35760405162461bcd60e51b81526004016102879061264b565b336000908152602081815260408083208684529091529020600101546001600160a01b031680610df7576000925050610eef565b806001600160a01b0316638da5cb5b6040518163ffffffff1660e01b815260040160206040518083038186803b158015610e3057600080fd5b505afa158015610e44573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250610e689190810190611aa3565b6001600160a01b031663b9a04cdd888888856040518563ffffffff1660e01b8152600401610e999493929190612561565b602060405180830381600087803b158015610eb357600080fd5b505af1158015610ec7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250610eeb9190810190611bbb565b9250505b50949350505050565b3360009081526020818152604080832084845290915281206001015482906001600160a01b0316610f3b5760405162461bcd60e51b81526004016102879061264b565b336000908152602081815260408083208684529091529020600101546001600160a01b031680610f6f576000925050611065565b806001600160a01b0316638da5cb5b6040518163ffffffff1660e01b815260040160206040518083038186803b158015610fa857600080fd5b505afa158015610fbc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250610fe09190810190611aa3565b6001600160a01b031663eaf994b28787846040518463ffffffff1660e01b815260040161100f9392919061267b565b602060405180830381600087803b15801561102957600080fd5b505af115801561103d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052506110619190810190611bbb565b9250505b509392505050565b60035481565b6000818152600160205260409020600381015460ff166110a55760405162461bcd60e51b81526004016102879061262b565b6003810154610100900460ff166110ce5760405162461bcd60e51b81526004016102879061263b565b6005546001600160a01b03161561118c57600554600480546040516364ab2de960e01b81526001600160a01b03938416936364ab2de99361111e938793600185019360028601939216910161248c565b602060405180830381600087803b15801561113857600080fd5b505af115801561114c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052506111709190810190611bbb565b61118c5760405162461bcd60e51b8152600401610287906125db565b60038101805460ff191690556004805460408051638da5cb5b60e01b8152905160609360009384936001600160a01b0390911692638da5cb5b92828101926020929190829003018186803b1580156111e357600080fd5b505afa1580156111f7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525061121b9190810190611aa3565b905060005b845481101561143457606085600101828154811061123a57fe5b600091825260209182902001805460408051601f60026000196101006001871615020190941693909304928301859004850281018501909152818152928301828280156112c85780601f1061129d576101008083540402835291602001916112c8565b820191906000526020600020905b8154815290600101906020018083116112ab57829003601f168201915b50505050509050826001600160a01b031663d1b7089a8760000184815481106112ed57fe5b60009182526020909120015460045460028a0180546001600160a01b039384169387931691908890811061131d57fe5b90600052602060002001546040518563ffffffff1660e01b815260040161134794939291906123ed565b600060405180830381600087803b15801561136157600080fd5b505af1158015611375573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261139d9190810190611bd9565b95509350836113be5760405162461bcd60e51b81526004016102879061265b565b600454865488916001600160a01b0316907fcb8058ffa6730183a4e6158708b3f64da7110160c23a40db51ef20718c790ec5908990869081106113fd57fe5b600091825260209091200154604051611423916001600160a01b03169086908b906123b0565b60405180910390a350600101611220565b5060008581526001602052604081209061144e8282611721565b61145c600183016000611742565b61146a600283016000611721565b50600301805461ffff1916905560045460405186916001600160a01b0316907f6bc0cb9e9967b59a69ace442598e1df4368d38661bd5c0800fbcbc9fe855fbbe90600090a360045460405186916001600160a01b0316907f253ad9614c337848bbe7dc3b18b439d139ef5787282b5a517ba7296513d1f53390600090a35050505050565b3360009081526020818152604080832084845290915281206001015482906001600160a01b03166115315760405162461bcd60e51b81526004016102879061264b565b336000908152602081815260408083208684529091529020600101546001600160a01b031680611565576000925050611065565b806001600160a01b0316638da5cb5b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561159e57600080fd5b505afa1580156115b2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052506115d69190810190611aa3565b6001600160a01b0316636e94d2788787846040518463ffffffff1660e01b815260040161100f9392919061267b565b82805482825590600052602060002090810192821561165a579160200282015b8281111561165a57825182546001600160a01b0319166001600160a01b03909116178255602090920191600190910190611625565b50611666929150611760565b5090565b8280548282559060005260206000209081019282156116b7579160200282015b828111156116b757825180516116a7918491602090910190611787565b509160200191906001019061168a565b506116669291506117f4565b8280548282559060005260206000209081019282156116fe579160200282015b828111156116fe5782518255916020019190600101906116e3565b50611666929150611817565b604080518082019091526000808252602082015290565b508054600082559060005260206000209081019061173f9190611817565b50565b508054600082559060005260206000209081019061173f91906117f4565b61178491905b808211156116665780546001600160a01b0319168155600101611766565b90565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106117c857805160ff19168380011785556116fe565b828001600101855582156116fe57918201828111156116fe5782518255916020019190600101906116e3565b61178491905b8082111561166657600061180e8282611831565b506001016117fa565b61178491905b80821115611666576000815560010161181d565b50805460018160011615610100020316600290046000825580601f10611857575061173f565b601f01602090049060005260206000209081019061173f9190611817565b803561066781612820565b805161066781612820565b600082601f83011261189c57600080fd5b81356118af6118aa826126ed565b6126c6565b915081818352602084019350602081019050838560208402820111156118d457600080fd5b60005b8381101561190057816118ea8882611875565b84525060209283019291909101906001016118d7565b5050505092915050565b600082601f83011261191b57600080fd5b81356119296118aa826126ed565b81815260209384019390925082018360005b83811015611900578135860161195188826119f8565b845250602092830192919091019060010161193b565b600082601f83011261197857600080fd5b81356119866118aa826126ed565b915081818352602084019350602081019050838560208402820111156119ab57600080fd5b60005b8381101561190057816119c188826119e2565b84525060209283019291909101906001016119ae565b805161066781612834565b80356106678161283d565b80516106678161283d565b600082601f830112611a0957600080fd5b8135611a176118aa8261270e565b91508082526020830160208301858383011115611a3357600080fd5b611a3e83828461279c565b50505092915050565b600082601f830112611a5857600080fd5b8151611a666118aa8261270e565b91508082526020830160208301858383011115611a8257600080fd5b611a3e8382846127a8565b803561066781612846565b805161066781612846565b600060208284031215611ab557600080fd5b60006106638484611880565b60008060408385031215611ad457600080fd5b6000611ae08585611875565b9250506020611af1858286016119e2565b9150509250929050565b60008060008060808587031215611b1157600080fd5b843567ffffffffffffffff811115611b2857600080fd5b611b348782880161188b565b945050602085013567ffffffffffffffff811115611b5157600080fd5b611b5d8782880161190a565b935050604085013567ffffffffffffffff811115611b7a57600080fd5b611b8687828801611967565b925050606085013567ffffffffffffffff811115611ba357600080fd5b611baf878288016119f8565b91505092959194509250565b600060208284031215611bcd57600080fd5b600061066384846119d7565b60008060408385031215611bec57600080fd5b6000611bf885856119d7565b925050602083015167ffffffffffffffff811115611c1557600080fd5b611af185828601611a47565b600060208284031215611c3357600080fd5b600061066384846119e2565b600060208284031215611c5157600080fd5b600061066384846119ed565b60008060408385031215611c7057600080fd5b6000611ae085856119e2565b60008060008060808587031215611c9257600080fd5b6000611c9e8787611a8d565b9450506020611caf87828801611a8d565b9350506040611cc0878288016119e2565b9250506060611baf87828801611a8d565b60008060008060808587031215611ce757600080fd5b6000611cf38787611a8d565b9450506020611d0487828801611875565b9350506040611d15878288016119e2565b9250506060611baf878288016119e2565b60008060408385031215611d3957600080fd5b6000611ae08585611a8d565b600060208284031215611d5757600080fd5b60006106638484611a98565b600080600060608486031215611d7857600080fd5b6000611d8486866119e2565b9350506020611d9586828701611875565b9250506040611da6868287016119e2565b9150509250925092565b6000611dbc8383611dfe565b505060200190565b6000611dd08383612038565b9392505050565b6000611dd08383612070565b6000611dbc838361202f565b611df881612786565b82525050565b611df88161276b565b6000611e1282612748565b611e1c8185612756565b9350611e2783612736565b8060005b83811015611e55578151611e3f8882611db0565b9750611e4a83612736565b925050600101611e2b565b509495945050505050565b6000611e6b8261274c565b611e758185612756565b9350611e808361273c565b8060005b83811015611e5557611e95826127fe565b611e9f8882611db0565b9750611eaa83612750565b925050600101611e84565b6000611ec082612748565b611eca8185612756565b935083602082028501611edc85612736565b8060005b85811015611f165784840389528151611ef98582611dc4565b9450611f0483612736565b60209a909a0199925050600101611ee0565b5091979650505050505050565b6000611f2e8261274c565b611f388185612756565b935083602082028501611f4a8561273c565b8060005b85811015611f1657848403895281611f668582611dd7565b9450611f7183612750565b60209a909a0199925050600101611f4e565b6000611f8e82612748565b611f988185612756565b9350611fa383612736565b8060005b83811015611e55578151611fbb8882611de3565b9750611fc683612736565b925050600101611fa7565b6000611fdc8261274c565b611fe68185612756565b9350611ff18361273c565b8060005b83811015611e55576120068261280a565b6120108882611de3565b975061201b83612750565b925050600101611ff5565b611df881612776565b611df881611784565b600061204382612748565b61204d8185612756565b935061205d8185602086016127a8565b61206681612816565b9093019392505050565b60008154600181166000811461208d57600181146120b3576108e1565b607f600283041661209e8187612756565b60ff19841681529550506020850192506108e1565b600282046120c18187612756565b95506120cc8561273c565b60005b828110156120eb578154888201526001909101906020016120cf565b9096019695505050505050565b611df88161277b565b611df881612791565b6000612117601683612756565b751c1c9bdc1bdcd9481a5cc81b9bdd08185b1b1bddd95960521b815260200192915050565b6000612149601383612756565b7218d85b1b081a5cc81b9bdd08185b1b1bddd959606a1b815260200192915050565b6000612178601583612756565b746176617461722063616e6e6f74206265207a65726f60581b815260200192915050565b60006121a9604283612756565b7f57726f6e67206c656e677468206f66205f636f6e747261637473546f43616c6c81527f2c205f63616c6c73446174614c656e73206f72205f76616c7565732061727261602082015261797360f01b604082015260600192915050565b6000612213601b83612756565b7f63616e2062652063616c6c6564206f6e6c79206f6e652074696d650000000000815260200192915050565b600061224c601483612756565b7363616e6e6f74206578656375746520747769636560601b815260200192915050565b600061227c601783612756565b7f6d7573742062652061206c6976652070726f706f73616c000000000000000000815260200192915050565b60006122b5602683612756565b7f70726f706f73616c206d7573742070617373656420627920766f74696e67206d815265616368696e6560d01b602082015260400192915050565b60006122fd601283612756565b716f6e6c7920566f74696e674d616368696e6560701b815260200192915050565b600061232b601483612756565b73141c9bdc1bdcd85b0818d85b1b0819985a5b195960621b815260200192915050565b600061235b601883612756565b7f736368656d65206973206e6f7420726567697374657265640000000000000000815260200192915050565b602081016106678284611def565b604081016123a38285611dfe565b611dd06020830184611def565b606081016123be8286611dfe565b81810360208301526123d08185612038565b905081810360408301526123e48184612038565b95945050505050565b608081016123fb8287611dfe565b818103602083015261240d8186612038565b905061241c60408301856120f8565b6123e4606083018461202f565b604081016124378285611dfe565b611dd0602083018461202f565b608080825281016124558187611e07565b905081810360208301526124698186611eb5565b9050818103604083015261247d8185611f83565b90506123e460608301846120f8565b6080808252810161249d8187611e60565b905081810360208301526124b18186611f23565b9050818103604083015261247d8185611fd1565b608080825281016124d68187611eb5565b905081810360208301526124ea8186611f83565b905081810360408301526124fe8185612038565b905081810360608301526125128184611e07565b9695505050505050565b602081016106678284612026565b604081016125388285612026565b611dd06020830184612026565b60208101610667828461202f565b6020810161066782846120f8565b6080810161256f82876120f8565b61257c6020830186611dfe565b612589604083018561202f565b6123e460608301846120f8565b608081016125a48287612101565b6125b1602083018661202f565b6125be6040830185611def565b6123e46060830184611def565b602080825281016106678161210a565b602080825281016106678161213c565b602080825281016106678161216b565b602080825281016106678161219c565b6020808252810161066781612206565b602080825281016106678161223f565b602080825281016106678161226f565b60208082528101610667816122a8565b60208082528101610667816122f0565b602080825281016106678161231e565b602080825281016106678161234e565b60608101612689828661202f565b6126966020830185611dfe565b6126a36040830184611def565b949350505050565b604081016126b9828561202f565b611dd060208301846120f8565b60405181810167ffffffffffffffff811182821017156126e557600080fd5b604052919050565b600067ffffffffffffffff82111561270457600080fd5b5060209081020190565b600067ffffffffffffffff82111561272557600080fd5b506020601f91909101601f19160190565b60200190565b60009081526020902090565b5190565b5490565b60010190565b90815260200190565b6001600160a01b031690565b60006106678261275f565b151590565b60006106678261276b565b60006106678261277b565b600061066782611784565b82818337506000910152565b60005b838110156127c35781810151838201526020016127ab565b838111156127d2576000848401525b50505050565b60006106676127e683611784565b61275f565b60006106676127f983611784565b611784565b600061066782546127d8565b600061066782546127eb565b601f01601f191690565b6128298161276b565b811461173f57600080fd5b61282981612776565b61282981611784565b6128298161277b56fea365627a7a723158202359724d1b60e32f4f4090b0127a5d84e0e61a9abed3774b68a03141c92fdd5c6c6578706572696d656e74616cf564736f6c63430005110040
Deployed Bytecode Sourcemap
73621:6855:0:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;73621:6855:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;79123:1350;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;74122:42;;;:::i;:::-;;;;;;;;73960:52;;;;;;;;;:::i;:::-;;;;;;;;;74019:37;;;:::i;74095:20::-;;;:::i;69091:73::-;;;;;;;;;:::i;:::-;;;;;;;;;70508:352;;;;;;;;;:::i;71271:405::-;;;;;;;;;:::i;76033:652::-;;;;;;;;;:::i;:::-;;;;;;;;75245:485;;;;;;;;;:::i;:::-;;70868:395;;;;;;;;;:::i;70011:489::-;;;;;;;;;:::i;69173:411::-;;;;;;;;;:::i;74063:25::-;;;:::i;76862:1553::-;;;;;;;;;:::i;69592:411::-;;;;;;;;;:::i;79123:1350::-;79333:18;79419:10;:17;79392:16;:23;:44;79391:93;;;;;79469:7;:14;79442:16;:23;:41;79391:93;79369:209;;;;-1:-1:-1;;;79369:209:0;;;;;;;;;;;;;;;;;79593:17;;-1:-1:-1;;;;;79593:17:0;:41;79589:272;;79673:17;;79802:6;;;79673:136;;-1:-1:-1;;;79673:136:0;;-1:-1:-1;;;;;79673:17:0;;;;:36;;:136;;79724:16;;79755:10;;79780:7;;79802:6;;;79673:136;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;79673:136:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;79673:136:0;;;;;;;101:4:-1;97:9;90:4;84;80:15;76:31;69:5;65:43;126:6;120:4;113:20;0:138;79673:136:0;;;;;;;;;79651:198;;;;-1:-1:-1;;;79651:198:0;;;;;;;;;79886:13;;;79911:10;;79943:6;;;79886:65;;-1:-1:-1;;;79886:65:0;;-1:-1:-1;;;;;79886:13:0;;;;:21;;:65;;:13;;79911:10;;79923;;79943:6;;;79886:65;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;79886:65:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;79886:65:0;;;;;;;101:4:-1;97:9;90:4;84;80:15;76:31;69:5;65:43;126:6;120:4;113:20;0:138;79886:65:0;;;;;;;;;79988:198;;;;;;;;;;;;;;;;;;;;;;;;80142:4;79988:198;;;;;;-1:-1:-1;79988:198:0;;;;;;79964:21;;;;;;;;;;:222;;;;79873:78;;-1:-1:-1;79988:198:0;;79964:21;;:222;;:21;;:222;;;;:::i;:::-;-1:-1:-1;79964:222:0;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;79964:222:0;;;;;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1;79964:222:0;;;;;;;;;;;;;;;;;;;-1:-1:-1;;79964:222:0;;;-1:-1:-1;;79964:222:0;;;;;;;;;;;;;;;;;80249:92;;;;;;;;80289:12;80249:92;;80323:6;;;-1:-1:-1;;;;;80323:6:0;;;-1:-1:-1;80249:92:0;;;;;;80219:13;;;;79964:222;80197:37;;;;;;;;;:49;;;;;;;;;:144;;;;;79964:222;80197:144;;;;;;;;;-1:-1:-1;;;;;;80197:144:0;;;;;;;;;;80388:6;80359:106;;80235:10;;80388:6;;;;80359:106;;;;80409:10;;80421:7;;80430:16;;80448;;80359:106;;;;;;;;;;79123:1350;;;;;;:::o;74122:42::-;;;-1:-1:-1;;;;;74122:42:0;;:::o;73960:52::-;;;;;;;;;;;;;;;;;;;;;;;;:::o;74019:37::-;;;-1:-1:-1;;;;;74019:37:0;;:::o;74095:20::-;;;-1:-1:-1;;;;;74095:20:0;;:::o;69091:73::-;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;69091:73:0;;:::o;70508:352::-;70654:10;70604:7;70640:25;;;;;;;;;;;:38;;;;;;;;:45;;;-1:-1:-1;;;;;70640:45:0;;70696:99;;70782:1;70775:8;;;;;70696:99;70812:40;;-1:-1:-1;;;70812:40:0;;-1:-1:-1;;;;;70812:23:0;;;;;:40;;70844:6;;70812:40;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;70812:40:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;70812:40:0;;;;;;;101:4:-1;97:9;90:4;84;80:15;76:31;69:5;65:43;126:6;120:4;113:20;0:138;70812:40:0;;;;;;;;;70805:47;;;70508:352;;;;;:::o;71271:405::-;68828:10;71406:7;68814:25;;;;;;;;;;;:38;;;;;;;;:45;;;68889:14;;-1:-1:-1;;;68889:14:0;;;;68814:38;;-1:-1:-1;;;;;68814:45:0;;;;;;68889:12;;:14;;;;;;;;;;68814:45;68889:14;;;5:2:-1;;;;30:1;27;20:12;5:2;68889:14:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;68889:14:0;;;;;;;101:4:-1;97:9;90:4;84;80:15;76:31;69:5;65:43;126:6;120:4;113:20;0:138;68889:14:0;;;;;;;;;-1:-1:-1;;;;;68878:45:0;;68932:4;68947:6;68878:77;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;68878:77:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;68878:77:0;;;;;;;101:4:-1;97:9;90:4;84;80:15;76:31;69:5;65:43;126:6;120:4;113:20;0:138;68878:77:0;;;;;;;;;68870:137;;;;-1:-1:-1;;;68870:137:0;;;;;;;;;71426:28;;:::i;:::-;-1:-1:-1;71471:10:0;71457:13;:25;;;;;;;;;;;:38;;;;;;;;;71426:69;;;;;;;;;;;;;;;-1:-1:-1;;;;;71426:69:0;;;;;;;71506;;71562:1;71555:8;;;;;71506:69;71592:8;:15;;;-1:-1:-1;;;;;71592:32:0;;:34;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;71592:34:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;71592:34:0;;;;;;;101:4:-1;97:9;90:4;84;80:15;76:31;69:5;65:43;126:6;120:4;113:20;0:138;71592:34:0;;;;;;;;;71647:20;;71592:76;;-1:-1:-1;;;71592:76:0;;-1:-1:-1;;;;;71592:46:0;;;;;;;:76;;71639:6;;71647:20;71592:76;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;71592:76:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;71592:76:0;;;;;;;101:4:-1;97:9;90:4;84;80:15;76:31;69:5;65:43;126:6;120:4;113:20;0:138;71592:76:0;;;;;;;;;71585:83;;;69018:1;71271:405;;;;;;:::o;76033:652::-;68632:10;76160:4;68618:25;;;;;;;;;;;:38;;;;;;;;:45;;;76134:11;;-1:-1:-1;;;;;68618:45:0;68610:98;;;;-1:-1:-1;;;68610:98:0;;;;;;;;;76177:34;76214:22;;;:9;:22;;;;;76255:14;;;;;;76247:50;;;;-1:-1:-1;;;76247:50:0;;;;;;;;;76317:15;;;;;;;;;76316:16;76308:49;;;;-1:-1:-1;;;76308:49:0;;;;;;;;;76374:9;76387:1;76374:14;76370:196;;;76405:15;;;:22;;-1:-1:-1;;76405:22:0;;;;;76370:196;;;76467:22;;;;:9;:22;;;;;;76460:29;76467:22;;76460:29;:::i;:::-;;;;;;;:::i;:::-;;;;;;;:::i;:::-;-1:-1:-1;76460:29:0;;;;-1:-1:-1;;76460:29:0;;;76533:6;;76509:45;;76542:11;;-1:-1:-1;;;;;76533:6:0;;76509:45;;76460:29;;76509:45;76370:196;76623:6;;76583:72;;76632:11;;-1:-1:-1;;;;;76623:6:0;;76583:72;;;;76645:9;;76583:72;;;;;;;;;;-1:-1:-1;76673:4:0;;76033:652;-1:-1:-1;;;;76033:652:0:o;75245:485::-;75454:6;;-1:-1:-1;;;;;75454:6:0;:19;75446:59;;;;-1:-1:-1;;;75446:59:0;;;;;;;;;-1:-1:-1;;;;;75524:20:0;;75516:54;;;;-1:-1:-1;;;75516:54:0;;;;;;;;;75581:6;:16;;-1:-1:-1;;;;;75581:16:0;;;-1:-1:-1;;;;;;75581:16:0;;;;;;;75608:13;:30;;;;;;;;;;;;;;;75649:10;:24;;;;75684:17;:38;;;;;;;;;;;75245:485::o;70868:395::-;68828:10;70999:7;68814:25;;;;;;;;;;;:38;;;;;;;;:45;;;68889:14;;-1:-1:-1;;;68889:14:0;;;;68814:38;;-1:-1:-1;;;;;68814:45:0;;;;;;68889:12;;:14;;;;;;;;;;68814:45;68889:14;;;5:2:-1;;;;30:1;27;20:12;5:2;68889:14:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;68889:14:0;;;;;;;101:4:-1;97:9;90:4;84;80:15;76:31;69:5;65:43;126:6;120:4;113:20;0:138;68889:14:0;;;;;;;;;-1:-1:-1;;;;;68878:45:0;;68932:4;68947:6;68878:77;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;68878:77:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;68878:77:0;;;;;;;101:4:-1;97:9;90:4;84;80:15;76:31;69:5;65:43;126:6;120:4;113:20;0:138;68878:77:0;;;;;;;;;68870:137;;;;-1:-1:-1;;;68870:137:0;;;;;;;;;71019:28;;:::i;:::-;-1:-1:-1;71064:10:0;71050:13;:25;;;;;;;;;;;:38;;;;;;;;;71019:69;;;;;;;;;;;;;;;-1:-1:-1;;;;;71019:69:0;;;;;;;71099;;71155:1;71148:8;;;;;71099:69;71185:8;:15;;;-1:-1:-1;;;;;71185:32:0;;:34;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;71185:34:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;71185:34:0;;;;;;;101:4:-1;97:9;90:4;84;80:15;76:31;69:5;65:43;126:6;120:4;113:20;0:138;71185:34:0;;;;;;;;;71234:20;;71185:70;;-1:-1:-1;;;71185:70:0;;-1:-1:-1;;;;;71185:48:0;;;;;;;:70;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;71185:70:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;71185:70:0;;;;;;;101:4:-1;97:9;90:4;84;80:15;76:31;69:5;65:43;126:6;120:4;113:20;0:138;71185:70:0;;;;;;;;;71178:77;;;69018:1;70868:395;;;;;:::o;70011:489::-;68632:10;70223:4;68618:25;;;;;;;;;;;:38;;;;;;;;:45;;;70197:11;;-1:-1:-1;;;;;68618:45:0;68610:98;;;;-1:-1:-1;;;68610:98:0;;;;;;;;;70275:10;70245:13;70261:25;;;;;;;;;;;:38;;;;;;;;:45;;;-1:-1:-1;;;;;70261:45:0;70321:19;70317:64;;70364:5;70357:12;;;;;70317:64;70409:6;-1:-1:-1;;;;;70409:12:0;;:14;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;70409:14:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;70409:14:0;;;;;;;101:4:-1;97:9;90:4;84;80:15;76:31;69:5;65:43;126:6;120:4;113:20;0:138;70409:14:0;;;;;;;;;-1:-1:-1;;;;;70398:48:0;;70447:13;70462:12;70476:7;70485:6;70398:94;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;70398:94:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;70398:94:0;;;;;;;101:4:-1;97:9;90:4;84;80:15;76:31;69:5;65:43;126:6;120:4;113:20;0:138;70398:94:0;;;;;;;;;70391:101;;;68719:1;70011:489;;;;;;;:::o;69173:411::-;68632:10;69320:4;68618:25;;;;;;;;;;;:38;;;;;;;;:45;;;69294:11;;-1:-1:-1;;;;;68618:45:0;68610:98;;;;-1:-1:-1;;;68610:98:0;;;;;;;;;69372:10;69342:13;69358:25;;;;;;;;;;;:38;;;;;;;;:45;;;-1:-1:-1;;;;;69358:45:0;69418:19;69414:64;;69461:5;69454:12;;;;;69414:64;69506:6;-1:-1:-1;;;;;69506:12:0;;:14;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;69506:14:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;69506:14:0;;;;;;;101:4:-1;97:9;90:4;84;80:15;76:31;69:5;65:43;126:6;120:4;113:20;0:138;69506:14:0;;;;;;;;;-1:-1:-1;;;;;69495:41:0;;69537:7;69546:12;69568:6;69495:81;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;69495:81:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;69495:81:0;;;;;;;101:4:-1;97:9;90:4;84;80:15;76:31;69:5;65:43;126:6;120:4;113:20;0:138;69495:81:0;;;;;;;;;69488:88;;;68719:1;69173:411;;;;;;:::o;74063:25::-;;;;:::o;76862:1553::-;76920:34;76957:22;;;:9;:22;;;;;76998:14;;;;;;76990:50;;;;-1:-1:-1;;;76990:50:0;;;;;;;;;77059:15;;;;;;;;;77051:66;;;;-1:-1:-1;;;77051:66:0;;;;;;;;;77132:17;;-1:-1:-1;;;;;77132:17:0;:41;77128:290;;77212:17;;77362:6;;;77212:157;;-1:-1:-1;;;77212:157:0;;-1:-1:-1;;;;;77212:17:0;;;;:33;;:157;;77260:8;;77212:17;77299:18;;;77332:15;;;;77362:6;;;77212:157;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;77212:157:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;77212:157:0;;;;;;;101:4:-1;97:9;90:4;84;80:15;76:31;69:5;65:43;126:6;120:4;113:20;0:138;77212:157:0;;;;;;;;;77190:216;;;;-1:-1:-1;;;77190:216:0;;;;;;;;;77428:14;;;:22;;-1:-1:-1;;77428:22:0;;;77565:6;;;:14;;;-1:-1:-1;;;77565:14:0;;;;77461:35;;77445:5;;;;-1:-1:-1;;;;;77565:6:0;;;;:12;;:14;;;;;;;;;;;;;:6;:14;;;5:2:-1;;;;30:1;27;20:12;5:2;77565:14:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;77565:14:0;;;;;;;101:4:-1;97:9;90:4;84;80:15;76:31;69:5;65:43;126:6;120:4;113:20;0:138;77565:14:0;;;;;;;;;77530:50;-1:-1:-1;77596:6:0;77591:652;77612:31;;77608:35;;77591:652;;;77665:21;77689:8;:18;;77708:1;77689:21;;;;;;;;;;;;;;;;;;77665:45;;;;;;;-1:-1:-1;;77665:45:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;77689:21;77665:45;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;77774:10;-1:-1:-1;;;;;77774:22:0;;77797:8;:24;;77822:1;77797:27;;;;;;;;;;;;;;;;;;77836:6;;77844:15;;;:18;;-1:-1:-1;;;;;77797:27:0;;;;77826:8;;77836:6;;77844:15;77860:1;;77844:18;;;;;;;;;;;;;;77774:89;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;77774:89:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;77774:89:0;;;;;;39:16:-1;36:1;17:17;2:54;101:4;77774:89:0;80:15:-1;;;-1:-1;;76:31;65:43;;120:4;113:20;77774:89:0;;;;;;;;;77725:138;-1:-1:-1;77725:138:0;-1:-1:-1;77725:138:0;77958:40;;;;-1:-1:-1;;;77958:40:0;;;;;;;;;78065:6;;78121:27;;78091:11;;-1:-1:-1;;;;;78065:6:0;;78018:213;;78121:8;;78146:1;;78121:27;;;;;;;;;;;;;;;;78018:213;;;;-1:-1:-1;;;;;78121:27:0;;78167:8;;78194:22;;78018:213;;;;;;;;;;-1:-1:-1;77645:3:0;;77591:652;;;-1:-1:-1;78262:22:0;;;;:9;:22;;;;;;78255:29;78262:22;;78255:29;:::i;:::-;;;;;;;:::i;:::-;;;;;;;:::i;:::-;-1:-1:-1;78255:29:0;;;;-1:-1:-1;;78255:29:0;;;78324:6;;78300:45;;78333:11;;-1:-1:-1;;;;;78324:6:0;;78300:45;;78255:29;;78300:45;78386:6;;78361:46;;78395:11;;-1:-1:-1;;;;;78386:6:0;;78361:46;;78386:6;;78361:46;76862:1553;;;;;:::o;69592:411::-;68632:10;69739:4;68618:25;;;;;;;;;;;:38;;;;;;;;:45;;;69713:11;;-1:-1:-1;;;;;68618:45:0;68610:98;;;;-1:-1:-1;;;68610:98:0;;;;;;;;;69791:10;69761:13;69777:25;;;;;;;;;;;:38;;;;;;;;:45;;;-1:-1:-1;;;;;69777:45:0;69837:19;69833:64;;69880:5;69873:12;;;;;69833:64;69925:6;-1:-1:-1;;;;;69925:12:0;;:14;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;69925:14:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;69925:14:0;;;;;;;101:4:-1;97:9;90:4;84;80:15;76:31;69:5;65:43;126:6;120:4;113:20;0:138;69925:14:0;;;;;;;;;-1:-1:-1;;;;;69914:41:0;;69956:7;69965:12;69987:6;69914:81;;;;;;;;;;;;;;;;;;73621:6855;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;73621:6855:0;-1:-1:-1;;;;;73621:6855:0;;;;;;;;;;;-1:-1:-1;73621:6855:0;;;;;;;-1:-1:-1;73621:6855:0;;;-1:-1:-1;73621:6855:0;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;-1:-1:-1;73621:6855:0;;;-1:-1:-1;73621:6855:0;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;73621:6855:0;;;-1:-1:-1;73621:6855:0;:::i;:::-;;;;;;;;;;-1:-1:-1;73621:6855:0;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;-1:-1:-1;;;;;;73621:6855:0;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;5:130:-1:-;72:20;;97:33;72:20;97:33;;142:134;220:13;;238:33;220:13;238:33;;301:707;;418:3;411:4;403:6;399:17;395:27;385:2;;436:1;433;426:12;385:2;473:6;460:20;495:80;510:64;567:6;510:64;;;495:80;;;486:89;;592:5;617:6;610:5;603:21;647:4;639:6;635:17;625:27;;669:4;664:3;660:14;653:21;;722:6;769:3;761:4;753:6;749:17;744:3;740:27;737:36;734:2;;;786:1;783;776:12;734:2;811:1;796:206;821:6;818:1;815:13;796:206;;;879:3;901:37;934:3;922:10;901:37;;;889:50;;-1:-1;962:4;953:14;;;;981;;;;;843:1;836:9;796:206;;;800:14;378:630;;;;;;;;1032:693;;1154:3;1147:4;1139:6;1135:17;1131:27;1121:2;;1172:1;1169;1162:12;1121:2;1209:6;1196:20;1231:85;1246:69;1308:6;1246:69;;1231:85;1344:21;;;1388:4;1376:17;;;;1222:94;;-1:-1;1401:14;;1376:17;1496:1;1481:238;1506:6;1503:1;1500:13;1481:238;;;1589:3;1576:17;1568:6;1564:30;1613:42;1651:3;1639:10;1613:42;;;1601:55;;-1:-1;1679:4;1670:14;;;;1698;;;;;1528:1;1521:9;1481:238;;1751:707;;1868:3;1861:4;1853:6;1849:17;1845:27;1835:2;;1886:1;1883;1876:12;1835:2;1923:6;1910:20;1945:80;1960:64;2017:6;1960:64;;1945:80;1936:89;;2042:5;2067:6;2060:5;2053:21;2097:4;2089:6;2085:17;2075:27;;2119:4;2114:3;2110:14;2103:21;;2172:6;2219:3;2211:4;2203:6;2199:17;2194:3;2190:27;2187:36;2184:2;;;2236:1;2233;2226:12;2184:2;2261:1;2246:206;2271:6;2268:1;2265:13;2246:206;;;2329:3;2351:37;2384:3;2372:10;2351:37;;;2339:50;;-1:-1;2412:4;2403:14;;;;2431;;;;;2293:1;2286:9;2246:206;;2466:128;2541:13;;2559:30;2541:13;2559:30;;2601:130;2668:20;;2693:33;2668:20;2693:33;;2738:134;2816:13;;2834:33;2816:13;2834:33;;2880:432;;2977:3;2970:4;2962:6;2958:17;2954:27;2944:2;;2995:1;2992;2985:12;2944:2;3032:6;3019:20;3054:60;3069:44;3106:6;3069:44;;3054:60;3045:69;;3134:6;3127:5;3120:21;3170:4;3162:6;3158:17;3203:4;3196:5;3192:16;3238:3;3229:6;3224:3;3220:16;3217:25;3214:2;;;3255:1;3252;3245:12;3214:2;3265:41;3299:6;3294:3;3289;3265:41;;;2937:375;;;;;;;;3321:442;;3433:3;3426:4;3418:6;3414:17;3410:27;3400:2;;3451:1;3448;3441:12;3400:2;3481:6;3475:13;3503:64;3518:48;3559:6;3518:48;;3503:64;3494:73;;3587:6;3580:5;3573:21;3623:4;3615:6;3611:17;3656:4;3649:5;3645:16;3691:3;3682:6;3677:3;3673:16;3670:25;3667:2;;;3708:1;3705;3698:12;3667:2;3718:39;3750:6;3745:3;3740;3718:39;;3771:160;3853:20;;3878:48;3853:20;3878:48;;4288:170;4384:13;;4402:51;4384:13;4402:51;;5518:263;;5633:2;5621:9;5612:7;5608:23;5604:32;5601:2;;;5649:1;5646;5639:12;5601:2;5684:1;5701:64;5757:7;5737:9;5701:64;;5788:366;;;5909:2;5897:9;5888:7;5884:23;5880:32;5877:2;;;5925:1;5922;5915:12;5877:2;5960:1;5977:53;6022:7;6002:9;5977:53;;;5967:63;;5939:97;6067:2;6085:53;6130:7;6121:6;6110:9;6106:22;6085:53;;;6075:63;;6046:98;5871:283;;;;;;6161:1141;;;;;6406:3;6394:9;6385:7;6381:23;6377:33;6374:2;;;6423:1;6420;6413:12;6374:2;6458:31;;6509:18;6498:30;;6495:2;;;6541:1;6538;6531:12;6495:2;6561:78;6631:7;6622:6;6611:9;6607:22;6561:78;;;6551:88;;6437:208;6704:2;6693:9;6689:18;6676:32;6728:18;6720:6;6717:30;6714:2;;;6760:1;6757;6750:12;6714:2;6780:83;6855:7;6846:6;6835:9;6831:22;6780:83;;;6770:93;;6655:214;6928:2;6917:9;6913:18;6900:32;6952:18;6944:6;6941:30;6938:2;;;6984:1;6981;6974:12;6938:2;7004:78;7074:7;7065:6;7054:9;7050:22;7004:78;;;6994:88;;6879:209;7147:2;7136:9;7132:18;7119:32;7171:18;7163:6;7160:30;7157:2;;;7203:1;7200;7193:12;7157:2;7223:63;7278:7;7269:6;7258:9;7254:22;7223:63;;;7213:73;;7098:194;6368:934;;;;;;;;7309:257;;7421:2;7409:9;7400:7;7396:23;7392:32;7389:2;;;7437:1;7434;7427:12;7389:2;7472:1;7489:61;7542:7;7522:9;7489:61;;7573:490;;;7711:2;7699:9;7690:7;7686:23;7682:32;7679:2;;;7727:1;7724;7717:12;7679:2;7762:1;7779:61;7832:7;7812:9;7779:61;;;7769:71;;7741:105;7898:2;7887:9;7883:18;7877:25;7922:18;7914:6;7911:30;7908:2;;;7954:1;7951;7944:12;7908:2;7974:73;8039:7;8030:6;8019:9;8015:22;7974:73;;8070:241;;8174:2;8162:9;8153:7;8149:23;8145:32;8142:2;;;8190:1;8187;8180:12;8142:2;8225:1;8242:53;8287:7;8267:9;8242:53;;8318:263;;8433:2;8421:9;8412:7;8408:23;8404:32;8401:2;;;8449:1;8446;8439:12;8401:2;8484:1;8501:64;8557:7;8537:9;8501:64;;8588:364;;;8708:2;8696:9;8687:7;8683:23;8679:32;8676:2;;;8724:1;8721;8714:12;8676:2;8759:1;8776:53;8821:7;8801:9;8776:53;;8959:747;;;;;9179:3;9167:9;9158:7;9154:23;9150:33;9147:2;;;9196:1;9193;9186:12;9147:2;9231:1;9248:68;9308:7;9288:9;9248:68;;;9238:78;;9210:112;9353:2;9371:77;9440:7;9431:6;9420:9;9416:22;9371:77;;;9361:87;;9332:122;9485:2;9503:53;9548:7;9539:6;9528:9;9524:22;9503:53;;;9493:63;;9464:98;9593:2;9611:79;9682:7;9673:6;9662:9;9658:22;9611:79;;9713:645;;;;;9882:3;9870:9;9861:7;9857:23;9853:33;9850:2;;;9899:1;9896;9889:12;9850:2;9934:1;9951:67;10010:7;9990:9;9951:67;;;9941:77;;9913:111;10055:2;10073:53;10118:7;10109:6;10098:9;10094:22;10073:53;;;10063:63;;10034:98;10163:2;10181:53;10226:7;10217:6;10206:9;10202:22;10181:53;;;10171:63;;10142:98;10271:2;10289:53;10334:7;10325:6;10314:9;10310:22;10289:53;;10365:394;;;10500:2;10488:9;10479:7;10475:23;10471:32;10468:2;;;10516:1;10513;10506:12;10468:2;10551:1;10568:67;10627:7;10607:9;10568:67;;10766:299;;10899:2;10887:9;10878:7;10874:23;10870:32;10867:2;;;10915:1;10912;10905:12;10867:2;10950:1;10967:82;11041:7;11021:9;10967:82;;11342:491;;;;11480:2;11468:9;11459:7;11455:23;11451:32;11448:2;;;11496:1;11493;11486:12;11448:2;11531:1;11548:53;11593:7;11573:9;11548:53;;;11538:63;;11510:97;11638:2;11656:53;11701:7;11692:6;11681:9;11677:22;11656:53;;;11646:63;;11617:98;11746:2;11764:53;11809:7;11800:6;11789:9;11785:22;11764:53;;;11754:63;;11725:98;11442:391;;;;;;11841:173;;11928:46;11970:3;11962:6;11928:46;;;-1:-1;;12003:4;11994:14;;11921:93;12023:177;;12134:60;12190:3;12182:6;12134:60;;;12120:74;12113:87;-1:-1;;;12113:87;12209:179;;12321:61;12378:3;12370:6;12321:61;;12397:173;;12484:46;12526:3;12518:6;12484:46;;12578:142;12669:45;12708:5;12669:45;;;12664:3;12657:58;12651:69;;;12727:103;12800:24;12818:5;12800:24;;12988:690;;13133:54;13181:5;13133:54;;;13200:86;13279:6;13274:3;13200:86;;;13193:93;;13307:56;13357:5;13307:56;;;13383:7;13411:1;13396:260;13421:6;13418:1;13415:13;13396:260;;;13488:6;13482:13;13509:63;13568:3;13553:13;13509:63;;;13502:70;;13589:60;13642:6;13589:60;;;13579:70;-1:-1;;13443:1;13436:9;13396:260;;;-1:-1;13669:3;;13112:566;-1:-1;;;;;13112:566;13717:709;;13859:51;13904:5;13859:51;;;13923:86;14002:6;13997:3;13923:86;;;13916:93;;14030:53;14077:5;14030:53;;;14103:7;14131:1;14116:288;14141:6;14138:1;14135:13;14116:288;;;14202:44;14239:6;14202:44;;;14260:63;14319:3;14304:13;14260:63;;;14253:70;;14340:57;14390:6;14340:57;;;14330:67;-1:-1;;14163:1;14156:9;14116:288;;14461:888;;14616:59;14669:5;14616:59;;;14688:91;14772:6;14767:3;14688:91;;;14681:98;;14802:3;14844:4;14836:6;14832:17;14827:3;14823:27;14871:61;14926:5;14871:61;;;14952:7;14980:1;14965:345;14990:6;14987:1;14984:13;14965:345;;;15052:9;15046:4;15042:20;15037:3;15030:33;15097:6;15091:13;15119:74;15188:4;15173:13;15119:74;;;15111:82;;15210:65;15268:6;15210:65;;;15298:4;15289:14;;;;;15200:75;-1:-1;;15012:1;15005:9;14965:345;;;-1:-1;15323:4;;14595:754;-1:-1;;;;;;;14595:754;15384:874;;15537:57;15588:5;15537:57;;;15607:91;15691:6;15686:3;15607:91;;;15600:98;;15721:3;15763:4;15755:6;15751:17;15746:3;15742:27;15790:59;15843:5;15790:59;;;15869:7;15897:1;15882:337;15907:6;15904:1;15901:13;15882:337;;;15969:9;15963:4;15959:20;15954:3;15947:33;16008:6;16029:75;16099:4;16084:13;16029:75;;;16021:83;;16121:63;16177:6;16121:63;;;16207:4;16198:14;;;;;16111:73;-1:-1;;15929:1;15922:9;15882:337;;16297:690;;16442:54;16490:5;16442:54;;;16509:86;16588:6;16583:3;16509:86;;;16502:93;;16616:56;16666:5;16616:56;;;16692:7;16720:1;16705:260;16730:6;16727:1;16724:13;16705:260;;;16797:6;16791:13;16818:63;16877:3;16862:13;16818:63;;;16811:70;;16898:60;16951:6;16898:60;;;16888:70;-1:-1;;16752:1;16745:9;16705:260;;17026:709;;17168:51;17213:5;17168:51;;;17232:86;17311:6;17306:3;17232:86;;;17225:93;;17339:53;17386:5;17339:53;;;17412:7;17440:1;17425:288;17450:6;17447:1;17444:13;17425:288;;;17511:44;17548:6;17511:44;;;17569:63;17628:3;17613:13;17569:63;;;17562:70;;17649:57;17699:6;17649:57;;;17639:67;-1:-1;;17472:1;17465:9;17425:288;;17743:104;17820:21;17835:5;17820:21;;17854:113;17937:24;17955:5;17937:24;;17974:343;;18084:38;18116:5;18084:38;;;18134:70;18197:6;18192:3;18134:70;;;18127:77;;18209:52;18254:6;18249:3;18242:4;18235:5;18231:16;18209:52;;;18282:29;18304:6;18282:29;;;18273:39;;;;18064:253;-1:-1;;;18064:253;18669:788;;18776:5;18770:12;18810:1;18799:9;18795:17;18823:1;18818:237;;;;19066:1;19061:390;;;;18788:663;;18818:237;18896:4;18892:1;18881:9;18877:17;18873:28;18915:60;18968:6;18963:3;18915:60;;;-1:-1;;18994:25;;18982:38;;18908:67;-1:-1;;19043:4;19034:14;;;-1:-1;18818:237;;19061:390;19130:1;19119:9;19115:17;19146:60;19199:6;19194:3;19146:60;;;19139:67;;19228:37;19259:5;19228:37;;;19281:1;19289:130;19303:6;19300:1;19297:13;19289:130;;;19362:14;;19349:11;;;19342:35;19409:1;19396:15;;;;19325:4;19318:12;19289:130;;;19433:11;;;;18746:711;-1:-1;;;;;;18746:711;19465:172;19571:60;19625:5;19571:60;;20288:142;20379:45;20418:5;20379:45;;20792:322;;20952:67;21016:2;21011:3;20952:67;;;-1:-1;;;21032:45;;21105:2;21096:12;;20938:176;-1:-1;;20938:176;21123:319;;21283:67;21347:2;21342:3;21283:67;;;-1:-1;;;21363:42;;21433:2;21424:12;;21269:173;-1:-1;;21269:173;21451:321;;21611:67;21675:2;21670:3;21611:67;;;-1:-1;;;21691:44;;21763:2;21754:12;;21597:175;-1:-1;;21597:175;21781:440;;21941:67;22005:2;22000:3;21941:67;;;22041:34;22021:55;;22110:34;22105:2;22096:12;;22089:56;-1:-1;;;22174:2;22165:12;;22158:26;22212:2;22203:12;;21927:294;-1:-1;;21927:294;22230:327;;22390:67;22454:2;22449:3;22390:67;;;22490:29;22470:50;;22548:2;22539:12;;22376:181;-1:-1;;22376:181;22566:320;;22726:67;22790:2;22785:3;22726:67;;;-1:-1;;;22806:43;;22877:2;22868:12;;22712:174;-1:-1;;22712:174;22895:323;;23055:67;23119:2;23114:3;23055:67;;;23155:25;23135:46;;23209:2;23200:12;;23041:177;-1:-1;;23041:177;23227:375;;23387:67;23451:2;23446:3;23387:67;;;23487:34;23467:55;;-1:-1;;;23551:2;23542:12;;23535:30;23593:2;23584:12;;23373:229;-1:-1;;23373:229;23611:318;;23771:67;23835:2;23830:3;23771:67;;;-1:-1;;;23851:41;;23920:2;23911:12;;23757:172;-1:-1;;23757:172;23938:320;;24098:67;24162:2;24157:3;24098:67;;;-1:-1;;;24178:43;;24249:2;24240:12;;24084:174;-1:-1;;24084:174;24267:324;;24427:67;24491:2;24486:3;24427:67;;;24527:26;24507:47;;24582:2;24573:12;;24413:178;-1:-1;;24413:178;24829:229;24955:2;24940:18;;24969:79;24944:9;25021:6;24969:79;;25065:340;25219:2;25204:18;;25233:71;25208:9;25277:6;25233:71;;;25315:80;25391:2;25380:9;25376:18;25367:6;25315:80;;25412:603;25622:2;25607:18;;25636:71;25611:9;25680:6;25636:71;;;25755:9;25749:4;25745:20;25740:2;25729:9;25725:18;25718:48;25780:76;25851:4;25842:6;25780:76;;;25772:84;;25904:9;25898:4;25894:20;25889:2;25878:9;25874:18;25867:48;25929:76;26000:4;25991:6;25929:76;;;25921:84;25593:422;-1:-1;;;;;25593:422;26022:677;26265:3;26250:19;;26280:71;26254:9;26324:6;26280:71;;;26399:9;26393:4;26389:20;26384:2;26373:9;26369:18;26362:48;26424:76;26495:4;26486:6;26424:76;;;26416:84;;26511:95;26602:2;26591:9;26587:18;26578:6;26511:95;;;26617:72;26685:2;26674:9;26670:18;26661:6;26617:72;;26706:324;26852:2;26837:18;;26866:71;26841:9;26910:6;26866:71;;;26948:72;27016:2;27005:9;27001:18;26992:6;26948:72;;27037:1057;27422:3;27437:47;;;27407:19;;27498:108;27407:19;27592:6;27498:108;;;27490:116;;27654:9;27648:4;27644:20;27639:2;27628:9;27624:18;27617:48;27679:118;27792:4;27783:6;27679:118;;;27671:126;;27845:9;27839:4;27835:20;27830:2;27819:9;27815:18;27808:48;27870:108;27973:4;27964:6;27870:108;;;27862:116;;27989:95;28080:2;28069:9;28065:18;28056:6;27989:95;;28101:1041;28478:3;28493:47;;;28463:19;;28554:105;28463:19;28645:6;28554:105;;;28546:113;;28707:9;28701:4;28697:20;28692:2;28681:9;28677:18;28670:48;28732:116;28843:4;28834:6;28732:116;;;28724:124;;28896:9;28890:4;28886:20;28881:2;28870:9;28866:18;28859:48;28921:105;29021:4;29012:6;28921:105;;29149:1099;29531:3;29546:47;;;29516:19;;29607:118;29516:19;29711:6;29607:118;;;29599:126;;29773:9;29767:4;29763:20;29758:2;29747:9;29743:18;29736:48;29798:108;29901:4;29892:6;29798:108;;;29790:116;;29954:9;29948:4;29944:20;29939:2;29928:9;29924:18;29917:48;29979:78;30052:4;30043:6;29979:78;;;29971:86;;30105:9;30099:4;30095:20;30090:2;30079:9;30075:18;30068:48;30130:108;30233:4;30224:6;30130:108;;;30122:116;29502:746;-1:-1;;;;;;29502:746;30255:201;30367:2;30352:18;;30381:65;30356:9;30419:6;30381:65;;30463:300;30597:2;30582:18;;30611:65;30586:9;30649:6;30611:65;;;30687:66;30749:2;30738:9;30734:18;30725:6;30687:66;;30770:213;30888:2;30873:18;;30902:71;30877:9;30946:6;30902:71;;30990:259;31131:2;31116:18;;31145:94;31120:9;31212:6;31145:94;;31256:621;31495:3;31480:19;;31510:85;31484:9;31568:6;31510:85;;;31606:72;31674:2;31663:9;31659:18;31650:6;31606:72;;;31689;31757:2;31746:9;31742:18;31733:6;31689:72;;;31772:95;31863:2;31852:9;31848:18;31839:6;31772:95;;32640:595;32866:3;32851:19;;32881:79;32855:9;32933:6;32881:79;;;32971:72;33039:2;33028:9;33024:18;33015:6;32971:72;;;33054:80;33130:2;33119:9;33115:18;33106:6;33054:80;;;33145;33221:2;33210:9;33206:18;33197:6;33145:80;;33242:407;33433:2;33447:47;;;33418:18;;33508:131;33418:18;33508:131;;33656:407;33847:2;33861:47;;;33832:18;;33922:131;33832:18;33922:131;;34070:407;34261:2;34275:47;;;34246:18;;34336:131;34246:18;34336:131;;34484:407;34675:2;34689:47;;;34660:18;;34750:131;34660:18;34750:131;;34898:407;35089:2;35103:47;;;35074:18;;35164:131;35074:18;35164:131;;35312:407;35503:2;35517:47;;;35488:18;;35578:131;35488:18;35578:131;;35726:407;35917:2;35931:47;;;35902:18;;35992:131;35902:18;35992:131;;36140:407;36331:2;36345:47;;;36316:18;;36406:131;36316:18;36406:131;;36554:407;36745:2;36759:47;;;36730:18;;36820:131;36730:18;36820:131;;36968:407;37159:2;37173:47;;;37144:18;;37234:131;37144:18;37234:131;;37382:407;37573:2;37587:47;;;37558:18;;37648:131;37558:18;37648:131;;38016:451;38198:2;38183:18;;38212:71;38187:9;38256:6;38212:71;;;38294:72;38362:2;38351:9;38347:18;38338:6;38294:72;;;38377:80;38453:2;38442:9;38438:18;38429:6;38377:80;;;38169:298;;;;;;;38474:370;38643:2;38628:18;;38657:71;38632:9;38701:6;38657:71;;;38739:95;38830:2;38819:9;38815:18;38806:6;38739:95;;38851:256;38913:2;38907:9;38939:17;;;39014:18;38999:34;;39035:22;;;38996:62;38993:2;;;39071:1;39068;39061:12;38993:2;39087;39080:22;38891:216;;-1:-1;38891:216;39114:304;;39273:18;39265:6;39262:30;39259:2;;;39305:1;39302;39295:12;39259:2;-1:-1;39340:4;39328:17;;;39393:15;;39196:222;40052:317;;40191:18;40183:6;40180:30;40177:2;;;40223:1;40220;40213:12;40177:2;-1:-1;40354:4;40290;40267:17;;;;-1:-1;;40263:33;40344:15;;40114:255;41033:151;41157:4;41148:14;;41105:79;41191:173;;41301:14;;;41343:4;41330:18;;;41260:104;42222:137;42325:12;;42296:63;42366:141;42472:12;;42437:70;43605:105;43700:4;43691:14;;43677:33;44183:178;44301:19;;;44350:4;44341:14;;44294:67;45252:134;-1:-1;;;;;45327:54;;45310:76;45485:91;;45547:24;45565:5;45547:24;;45689:85;45755:13;45748:21;;45731:43;45860:114;;45937:32;45963:5;45937:32;;46740:129;;46827:37;46858:5;46827:37;;48093:116;;48180:24;48198:5;48180:24;;48460:145;48541:6;48536:3;48531;48518:30;-1:-1;48597:1;48579:16;;48572:27;48511:94;48614:268;48679:1;48686:101;48700:6;48697:1;48694:13;48686:101;;;48767:11;;;48761:18;48748:11;;;48741:39;48722:2;48715:10;48686:101;;;48802:6;48799:1;48796:13;48793:2;;;48867:1;48858:6;48853:3;48849:16;48842:27;48793:2;48663:219;;;;;48890:161;;48980:66;49011:34;49034:10;49011:34;;;48980:66;;49058:161;;49148:66;49179:34;49202:10;49179:34;;;49148:66;;49226:138;;49302:57;49353:4;49347:11;49302:57;;49371:138;;49447:57;49498:4;49492:11;49447:57;;49516:97;49604:2;49584:14;-1:-1;;49580:28;;49564:49;49731:117;49800:24;49818:5;49800:24;;;49793:5;49790:35;49780:2;;49839:1;49836;49829:12;49855:111;49921:21;49936:5;49921:21;;49973:117;50042:24;50060:5;50042:24;;50097:147;50181:39;50214:5;50181:39;
Swarm Source
bzzr://2359724d1b60e32f4f4090b0127a5d84e0e61a9abed3774b68a03141c92fdd5c
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.