UNPKG

@gooddollar/goodcontracts

Version:
446 lines 334 kB
{ "contractName": "Avatar", "abi": [ { "constant": true, "inputs": [], "name": "orgName", "outputs": [ { "name": "", "type": "string" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [], "name": "renounceOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "nativeReputation", "outputs": [ { "name": "", "type": "address" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "owner", "outputs": [ { "name": "", "type": "address" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "isOwner", "outputs": [ { "name": "", "type": "bool" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "nativeToken", "outputs": [ { "name": "", "type": "address" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "name": "newOwner", "type": "address" } ], "name": "transferOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "name": "_orgName", "type": "string" }, { "name": "_nativeToken", "type": "address" }, { "name": "_nativeReputation", "type": "address" } ], "payable": false, "stateMutability": "nonpayable", "type": "constructor" }, { "payable": true, "stateMutability": "payable", "type": "fallback" }, { "anonymous": false, "inputs": [ { "indexed": true, "name": "_contract", "type": "address" }, { "indexed": false, "name": "_data", "type": "bytes" }, { "indexed": false, "name": "_value", "type": "uint256" }, { "indexed": false, "name": "_success", "type": "bool" } ], "name": "GenericCall", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "name": "_amountInWei", "type": "uint256" }, { "indexed": true, "name": "_to", "type": "address" } ], "name": "SendEther", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "name": "_externalToken", "type": "address" }, { "indexed": true, "name": "_to", "type": "address" }, { "indexed": false, "name": "_value", "type": "uint256" } ], "name": "ExternalTokenTransfer", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "name": "_externalToken", "type": "address" }, { "indexed": false, "name": "_from", "type": "address" }, { "indexed": false, "name": "_to", "type": "address" }, { "indexed": false, "name": "_value", "type": "uint256" } ], "name": "ExternalTokenTransferFrom", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "name": "_externalToken", "type": "address" }, { "indexed": false, "name": "_spender", "type": "address" }, { "indexed": false, "name": "_value", "type": "uint256" } ], "name": "ExternalTokenApproval", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "name": "_sender", "type": "address" }, { "indexed": false, "name": "_value", "type": "uint256" } ], "name": "ReceiveEther", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "name": "_metaData", "type": "string" } ], "name": "MetaData", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "name": "previousOwner", "type": "address" }, { "indexed": true, "name": "newOwner", "type": "address" } ], "name": "OwnershipTransferred", "type": "event" }, { "constant": false, "inputs": [ { "name": "_contract", "type": "address" }, { "name": "_data", "type": "bytes" }, { "name": "_value", "type": "uint256" } ], "name": "genericCall", "outputs": [ { "name": "success", "type": "bool" }, { "name": "returnValue", "type": "bytes" } ], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_amountInWei", "type": "uint256" }, { "name": "_to", "type": "address" } ], "name": "sendEther", "outputs": [ { "name": "", "type": "bool" } ], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_externalToken", "type": "address" }, { "name": "_to", "type": "address" }, { "name": "_value", "type": "uint256" } ], "name": "externalTokenTransfer", "outputs": [ { "name": "", "type": "bool" } ], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_externalToken", "type": "address" }, { "name": "_from", "type": "address" }, { "name": "_to", "type": "address" }, { "name": "_value", "type": "uint256" } ], "name": "externalTokenTransferFrom", "outputs": [ { "name": "", "type": "bool" } ], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_externalToken", "type": "address" }, { "name": "_spender", "type": "address" }, { "name": "_value", "type": "uint256" } ], "name": "externalTokenApproval", "outputs": [ { "name": "", "type": "bool" } ], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "name": "_metaData", "type": "string" } ], "name": "metaData", "outputs": [ { "name": "", "type": "bool" } ], "payable": false, "stateMutability": "nonpayable", "type": "function" } ], "metadata": "{\"compiler\":{\"version\":\"0.5.4+commit.9549d8ff\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"constant\":true,\"inputs\":[],\"name\":\"orgName\",\"outputs\":[{\"name\":\"\",\"type\":\"string\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_contract\",\"type\":\"address\"},{\"name\":\"_data\",\"type\":\"bytes\"},{\"name\":\"_value\",\"type\":\"uint256\"}],\"name\":\"genericCall\",\"outputs\":[{\"name\":\"success\",\"type\":\"bool\"},{\"name\":\"returnValue\",\"type\":\"bytes\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_metaData\",\"type\":\"string\"}],\"name\":\"metaData\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"nativeReputation\",\"outputs\":[{\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"isOwner\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_externalToken\",\"type\":\"address\"},{\"name\":\"_spender\",\"type\":\"address\"},{\"name\":\"_value\",\"type\":\"uint256\"}],\"name\":\"externalTokenApproval\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_externalToken\",\"type\":\"address\"},{\"name\":\"_from\",\"type\":\"address\"},{\"name\":\"_to\",\"type\":\"address\"},{\"name\":\"_value\",\"type\":\"uint256\"}],\"name\":\"externalTokenTransferFrom\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_amountInWei\",\"type\":\"uint256\"},{\"name\":\"_to\",\"type\":\"address\"}],\"name\":\"sendEther\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_externalToken\",\"type\":\"address\"},{\"name\":\"_to\",\"type\":\"address\"},{\"name\":\"_value\",\"type\":\"uint256\"}],\"name\":\"externalTokenTransfer\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"nativeToken\",\"outputs\":[{\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"name\":\"_orgName\",\"type\":\"string\"},{\"name\":\"_nativeToken\",\"type\":\"address\"},{\"name\":\"_nativeReputation\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"payable\":true,\"stateMutability\":\"payable\",\"type\":\"fallback\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"_contract\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"_data\",\"type\":\"bytes\"},{\"indexed\":false,\"name\":\"_value\",\"type\":\"uint256\"},{\"indexed\":false,\"name\":\"_success\",\"type\":\"bool\"}],\"name\":\"GenericCall\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"name\":\"_amountInWei\",\"type\":\"uint256\"},{\"indexed\":true,\"name\":\"_to\",\"type\":\"address\"}],\"name\":\"SendEther\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"_externalToken\",\"type\":\"address\"},{\"indexed\":true,\"name\":\"_to\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"_value\",\"type\":\"uint256\"}],\"name\":\"ExternalTokenTransfer\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"_externalToken\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"_from\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"_to\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"_value\",\"type\":\"uint256\"}],\"name\":\"ExternalTokenTransferFrom\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"_externalToken\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"_spender\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"_value\",\"type\":\"uint256\"}],\"name\":\"ExternalTokenApproval\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"_sender\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"_value\",\"type\":\"uint256\"}],\"name\":\"ReceiveEther\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"name\":\"_metaData\",\"type\":\"string\"}],\"name\":\"MetaData\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"}],\"devdoc\":{\"methods\":{\"constructor\":{\"details\":\"the constructor takes organization name, native token and reputation system and creates an avatar for a controller\"},\"externalTokenApproval(address,address,uint256)\":{\"details\":\"externalTokenApproval approve the spender address to spend a specified amount of tokens on behalf of msg.sender.\",\"params\":{\"_externalToken\":\"the address of the Token Contract\",\"_spender\":\"address\",\"_value\":\"the amount of ether (in Wei) which the approval is referring to.\"},\"return\":\"bool which represents a success\"},\"externalTokenTransfer(address,address,uint256)\":{\"details\":\"external token transfer\",\"params\":{\"_externalToken\":\"the token contract\",\"_to\":\"the destination address\",\"_value\":\"the amount of tokens to transfer\"},\"return\":\"bool which represents success\"},\"externalTokenTransferFrom(address,address,address,uint256)\":{\"details\":\"external token transfer from a specific account\",\"params\":{\"_externalToken\":\"the token contract\",\"_from\":\"the account to spend token from\",\"_to\":\"the destination address\",\"_value\":\"the amount of tokens to transfer\"},\"return\":\"bool which represents success\"},\"genericCall(address,bytes,uint256)\":{\"details\":\"perform a generic call to an arbitrary contract\",\"params\":{\"_contract\":\"the contract's address to call\",\"_data\":\"ABI-encoded contract call to call `_contract` address.\",\"_value\":\"value (ETH) to transfer with the transaction\"},\"return\":\"bool success or fail bytes - the return bytes of the called contract's function.\"},\"isOwner()\":{\"return\":\"true if `msg.sender` is the owner of the contract.\"},\"metaData(string)\":{\"details\":\"metaData emits an event with a string, should contain the hash of some meta data.\",\"params\":{\"_metaData\":\"a string representing a hash of the meta data\"},\"return\":\"bool which represents a success\"},\"owner()\":{\"return\":\"the address of the owner.\"},\"renounceOwnership()\":{\"details\":\"Allows the current owner to relinquish control of the contract.\"},\"sendEther(uint256,address)\":{\"details\":\"send ethers from the avatar's wallet\",\"params\":{\"_amountInWei\":\"amount to send in Wei units\",\"_to\":\"send the ethers to this address\"},\"return\":\"bool which represents success\"},\"transferOwnership(address)\":{\"details\":\"Allows the current owner to transfer control of the contract to a newOwner.\",\"params\":{\"newOwner\":\"The address to transfer ownership to.\"}}},\"title\":\"An Avatar holds tokens, reputation and ether for a controller\"},\"userdoc\":{\"methods\":{\"renounceOwnership()\":{\"notice\":\"Renouncing to ownership will leave the contract without an owner. It will not be possible to call the functions with the `onlyOwner` modifier anymore.\"}}}},\"settings\":{\"compilationTarget\":{\"@daostack/arc/contracts/controller/Avatar.sol\":\"Avatar\"},\"evmVersion\":\"byzantium\",\"libraries\":{},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"@daostack/arc/contracts/controller/Avatar.sol\":{\"keccak256\":\"0x4e4fb9d3bc21f42fbfc6a01e9f8aa483a59e9f447b0d604f55b587a81ec09ef4\",\"urls\":[\"bzzr://b0af60e651a75274a028dc4b53d06091a46ca0efa3bfb4153879e76cf86a49dc\"]},\"@daostack/arc/contracts/controller/DAOToken.sol\":{\"keccak256\":\"0x9b213e4e3ceeffcfc1c962a43b70b8d763d8091a2dd713fc1989b97bb68786e6\",\"urls\":[\"bzzr://7ba306fdbad344e01474e3ae9c37b27b64efdc1cb17ffc0f3ec1c4427fde359d\"]},\"@daostack/arc/contracts/libs/SafeERC20.sol\":{\"keccak256\":\"0xf6727d432f67046145b078f40c1cc4f6be7b0d12a6678ecaf457edf7550d244c\",\"urls\":[\"bzzr://cd706a2dc7540d093b591a280b464256c596ddad598b68886e6db2e7958f9916\"]},\"@daostack/infra/contracts/Reputation.sol\":{\"keccak256\":\"0x3d226dac0fe7d758f0287fb28bc25fcec1f69d19888ae3a550fa49856d61c482\",\"urls\":[\"bzzr://7f219e1874d4f1aea860cc665b75015797f55f149e9bf490abab5d7ad2adfeb9\"]},\"openzeppelin-solidity/contracts/math/SafeMath.sol\":{\"keccak256\":\"0x965012d27b4262d7a41f5028cbb30c51ebd9ecd4be8fb30380aaa7a3c64fbc8b\",\"urls\":[\"bzzr://41ca38f6b0fa4b77b0feec43e422cfbec48b7eb38a41edf0b85c77e8d9a296b1\"]},\"openzeppelin-solidity/contracts/ownership/Ownable.sol\":{\"keccak256\":\"0x980de387a1a020a498f53d00f89fecebb12c949a17e8f160093c0303ede2b786\",\"urls\":[\"bzzr://08894efa2a557982070beda6a81a032407e70532d24bdafe80d39660c74904d9\"]},\"openzeppelin-solidity/contracts/token/ERC20/ERC20.sol\":{\"keccak256\":\"0xba431353cb4fe70777ac026231eb5468e41aa1e81240a2b8136917acc5fff4dc\",\"urls\":[\"bzzr://80cd02a56e6e33504318124d0d645c82e615cc8a4b5829cc9d82d17635c644c8\"]},\"openzeppelin-solidity/contracts/token/ERC20/ERC20Burnable.sol\":{\"keccak256\":\"0xa3e68fd7f987c8fbdaf4867d428a69a15f3cf2f69709a5b0a0fbef750b0e6fbc\",\"urls\":[\"bzzr://f4ebb7c5b9e429b98b07e2caca6156c13c3724e9b1191cca8423ab8427bc6265\"]},\"openzeppelin-solidity/contracts/token/ERC20/IERC20.sol\":{\"keccak256\":\"0x079c4e23ee448f529e43bfa3c4e8fb4be52cd0318ee923a276835bedf45b93d8\",\"urls\":[\"bzzr://48248e86f64407a95f241d6c5c8cfea6b4d4ebf4ebb467e5c98c8af3868fafe4\"]},\"openzeppelin-solidity/contracts/utils/Address.sol\":{\"keccak256\":\"0x5c731061b804fa256fc8c05150eafe5d20b6bb94541a8f187912bf84f7033f34\",\"urls\":[\"bzzr://63fc4af0d7a99a770925b96a6cf48f25fc00d30274266f82db05f30baa238267\"]}},\"version\":1}", "bytecode": "0x60806040523480156200001157600080fd5b506040516200135938038062001359833981018060405260608110156200003757600080fd5b8101908080516401000000008111156200005057600080fd5b820160208101848111156200006457600080fd5b81516401000000008111828201871017156200007f57600080fd5b5050602082015160409283015160008054600160a060020a0319163317808255945193965091945092600160a060020a0316917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a38251620000ec90600190602086019062000120565b5060028054600160a060020a03938416600160a060020a0319918216179091556003805492909316911617905550620001c5565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106200016357805160ff191683800117855562000193565b8280016001018555821562000193579182015b828111156200019357825182559160200191906001019062000176565b50620001a1929150620001a5565b5090565b620001c291905b80821115620001a15760008155600101620001ac565b90565b61118480620001d56000396000f3fe6080604052600436106100df576000357c0100000000000000000000000000000000000000000000000000000000900480638f32d59b1161009c578063cb16d4a211610076578063cb16d4a2146104ae578063dab0efff146104e7578063e1758bd81461052a578063f2fde38b1461053f576100df565b80638f32d59b1461040d578063ab751f7114610422578063b756d5a214610465576100df565b80631386dc2d146101175780632bf16458146101a1578063715018a6146102e9578063890ac46c1461030057806389ae1c90146103c75780638da5cb5b146103f8575b60408051348152905133917ff32a9f77675fd5917534c7746608fd3e309eac68fbdcbf5925e24ca97a704396919081900360200190a2005b34801561012357600080fd5b5061012c610572565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561016657818101518382015260200161014e565b50505050905090810190601f1680156101935780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156101ad57600080fd5b50610266600480360360608110156101c457600080fd5b600160a060020a0382351691908101906040810160208201356401000000008111156101ef57600080fd5b82018360208201111561020157600080fd5b8035906020019184600183028401116401000000008311171561022357600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955050913592506105ff915050565b604051808315151515815260200180602001828103825283818151815260200191508051906020019080838360005b838110156102ad578181015183820152602001610295565b50505050905090810190601f1680156102da5780820380516001836020036101000a031916815260200191505b50935050505060405180910390f35b3480156102f557600080fd5b506102fe610780565b005b34801561030c57600080fd5b506103b36004803603602081101561032357600080fd5b81019060208101813564010000000081111561033e57600080fd5b82018360208201111561035057600080fd5b8035906020019184600183028401116401000000008311171561037257600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506107ea945050505050565b604080519115158252519081900360200190f35b3480156103d357600080fd5b506103dc6108a0565b60408051600160a060020a039092168252519081900360200190f35b34801561040457600080fd5b506103dc6108af565b34801561041957600080fd5b506103b36108be565b34801561042e57600080fd5b506103b36004803603606081101561044557600080fd5b50600160a060020a038135811691602081013590911690604001356108cf565b34801561047157600080fd5b506103b36004803603608081101561048857600080fd5b50600160a060020a0381358116916020810135821691604082013516906060013561094e565b3480156104ba57600080fd5b506103b3600480360360408110156104d157600080fd5b5080359060200135600160a060020a03166109d8565b3480156104f357600080fd5b506103b36004803603606081101561050a57600080fd5b50600160a060020a03813581169160208101359091169060400135610a6c565b34801561053657600080fd5b506103dc610af0565b34801561054b57600080fd5b506102fe6004803603602081101561056257600080fd5b5035600160a060020a0316610aff565b60018054604080516020600284861615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156105f75780601f106105cc576101008083540402835291602001916105f7565b820191906000526020600020905b8154815290600101906020018083116105da57829003601f168201915b505050505081565b6000606061060b6108be565b151561061657600080fd5b84600160a060020a031683856040518082805190602001908083835b602083106106515780518252601f199092019160209182019101610632565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146106b3576040519150601f19603f3d011682016040523d82523d6000602084013e6106b8565b606091505b50809250819350505084600160a060020a03167f534b52c783549f909f9e743120524d0b7154058e4a54cdc895c2c0b587a1c7e0858585604051808060200184815260200183151515158152602001828103825285818151815260200191508051906020019080838360005b8381101561073c578181015183820152602001610724565b50505050905090810190601f1680156107695780820380516001836020036101000a031916815260200191505b5094505050505060405180910390a2935093915050565b6107886108be565b151561079357600080fd5b60008054604051600160a060020a03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a36000805473ffffffffffffffffffffffffffffffffffffffff19169055565b60006107f46108be565b15156107ff57600080fd5b7ff9deba4938ba20070ec5a45ddf59bccba49cf83124215228ec1232182ef0ba2b826040518080602001828103825283818151815260200191508051906020019080838360005b8381101561085e578181015183820152602001610846565b50505050905090810190601f16801561088b5780820380516001836020036101000a031916815260200191505b509250505060405180910390a1506001919050565b600354600160a060020a031681565b600054600160a060020a031690565b600054600160a060020a0316331490565b60006108d96108be565b15156108e457600080fd5b6108fe600160a060020a038516848463ffffffff610b1e16565b60408051600160a060020a038581168252602082018590528251908716927f3a48a4d6253b30fd10e57a347c1f9bcb0604946481fae0b2fdad6e74f2a9cbb3928290030190a25060019392505050565b60006109586108be565b151561096357600080fd5b61097e600160a060020a03861685858563ffffffff610dbf16565b60408051600160a060020a03868116825285811660208301528183018590529151918716917f179c15de44aa7ab84896301974328eb40b5b40fe01cfe0fee2924ea712c3e8439181900360600190a2506001949350505050565b60006109e26108be565b15156109ed57600080fd5b604051600160a060020a0383169084156108fc029085906000818181858888f19350505050158015610a23573d6000803e3d6000fd5b50604080518481529051600160a060020a038416917f22fca66666089f39bc900dd6605b489df4aae6260cc8ea8257594cfb8c84926c919081900360200190a250600192915050565b6000610a766108be565b1515610a8157600080fd5b610a9b600160a060020a038516848463ffffffff610fb716565b82600160a060020a031684600160a060020a03167f49dc2a60d2599a7b6932d78fb694c30dfc596fe4e0282b5d0fd184b52472c04d846040518082815260200191505060405180910390a35060019392505050565b600254600160a060020a031681565b610b076108be565b1515610b1257600080fd5b610b1b816110ae565b50565b610b3083600160a060020a031661112b565b1515610b3b57600080fd5b801580610bda5750604080517fdd62ed3e000000000000000000000000000000000000000000000000000000008152306004820152600160a060020a03848116602483015291519185169163dd62ed3e91604480820192602092909190829003018186803b158015610bac57600080fd5b505afa158015610bc0573d6000803e3d6000fd5b505050506040513d6020811015610bd657600080fd5b5051155b1515610be557600080fd5b604080518082018252601881527f617070726f766528616464726573732c75696e743235362900000000000000006020918201528151600160a060020a0385811660248301526044808301869052845180840390910181526064909201845291810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f095ea7b3000000000000000000000000000000000000000000000000000000001781529251815160009460609489169392918291908083835b60208310610cc05780518252601f199092019160209182019101610ca1565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114610d22576040519150601f19603f3d011682016040523d82523d6000602084013e610d27565b606091505b5091509150811515610d3857600080fd5b80511580610dad575080516020148015610dad575080601f815181101515610d5c57fe5b6020910101517f010000000000000000000000000000000000000000000000000000000000000090819004027fff000000000000000000000000000000000000000000000000000000000000001615155b1515610db857600080fd5b5050505050565b610dd184600160a060020a031661112b565b1515610ddc57600080fd5b6000606085600160a060020a03166060604051908101604052806025815260200161113460259139805160209182012060408051600160a060020a03808b166024830152891660448201526064808201899052825180830390910181526084909101825292830180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000909316929092178252518251909182918083835b60208310610eb75780518252601f199092019160209182019101610e98565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114610f19576040519150601f19603f3d011682016040523d82523d6000602084013e610f1e565b606091505b5091509150811515610f2f57600080fd5b80511580610fa4575080516020148015610fa4575080601f815181101515610f5357fe5b6020910101517f010000000000000000000000000000000000000000000000000000000000000090819004027fff000000000000000000000000000000000000000000000000000000000000001615155b1515610faf57600080fd5b505050505050565b610fc983600160a060020a031661112b565b1515610fd457600080fd5b604080518082018252601981527f7472616e7366657228616464726573732c75696e7432353629000000000000006020918201528151600160a060020a0385811660248301526044808301869052845180840390910181526064909201845291810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb0000000000000000000000000000000000000000000000000000000017815292518151600094606094891693929182919080838360208310610cc05780518252601f199092019160209182019101610ca1565b600160a060020a03811615156110c357600080fd5b60008054604051600160a060020a03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a36000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b6000903b119056fe7472616e7366657246726f6d28616464726573732c616464726573732c75696e7432353629a165627a7a72305820cdf6dc6e12529d68c1fa404ee4463c20ef7d3c761ed57fd0f20032f64ad1ae550029", "deployedBytecode": "0x6080604052600436106100df576000357c0100000000000000000000000000000000000000000000000000000000900480638f32d59b1161009c578063cb16d4a211610076578063cb16d4a2146104ae578063dab0efff146104e7578063e1758bd81461052a578063f2fde38b1461053f576100df565b80638f32d59b1461040d578063ab751f7114610422578063b756d5a214610465576100df565b80631386dc2d146101175780632bf16458146101a1578063715018a6146102e9578063890ac46c1461030057806389ae1c90146103c75780638da5cb5b146103f8575b60408051348152905133917ff32a9f77675fd5917534c7746608fd3e309eac68fbdcbf5925e24ca97a704396919081900360200190a2005b34801561012357600080fd5b5061012c610572565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561016657818101518382015260200161014e565b50505050905090810190601f1680156101935780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156101ad57600080fd5b50610266600480360360608110156101c457600080fd5b600160a060020a0382351691908101906040810160208201356401000000008111156101ef57600080fd5b82018360208201111561020157600080fd5b8035906020019184600183028401116401000000008311171561022357600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092955050913592506105ff915050565b604051808315151515815260200180602001828103825283818151815260200191508051906020019080838360005b838110156102ad578181015183820152602001610295565b50505050905090810190601f1680156102da5780820380516001836020036101000a031916815260200191505b50935050505060405180910390f35b3480156102f557600080fd5b506102fe610780565b005b34801561030c57600080fd5b506103b36004803603602081101561032357600080fd5b81019060208101813564010000000081111561033e57600080fd5b82018360208201111561035057600080fd5b8035906020019184600183028401116401000000008311171561037257600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506107ea945050505050565b604080519115158252519081900360200190f35b3480156103d357600080fd5b506103dc6108a0565b60408051600160a060020a039092168252519081900360200190f35b34801561040457600080fd5b506103dc6108af565b34801561041957600080fd5b506103b36108be565b34801561042e57600080fd5b506103b36004803603606081101561044557600080fd5b50600160a060020a038135811691602081013590911690604001356108cf565b34801561047157600080fd5b506103b36004803603608081101561048857600080fd5b50600160a060020a0381358116916020810135821691604082013516906060013561094e565b3480156104ba57600080fd5b506103b3600480360360408110156104d157600080fd5b5080359060200135600160a060020a03166109d8565b3480156104f357600080fd5b506103b36004803603606081101561050a57600080fd5b50600160a060020a03813581169160208101359091169060400135610a6c565b34801561053657600080fd5b506103dc610af0565b34801561054b57600080fd5b506102fe6004803603602081101561056257600080fd5b5035600160a060020a0316610aff565b60018054604080516020600284861615610100026000190190941693909304601f810184900484028201840190925281815292918301828280156105f75780601f106105cc576101008083540402835291602001916105f7565b820191906000526020600020905b8154815290600101906020018083116105da57829003601f168201915b505050505081565b6000606061060b6108be565b151561061657600080fd5b84600160a060020a031683856040518082805190602001908083835b602083106106515780518252601f199092019160209182019101610632565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146106b3576040519150601f19603f3d011682016040523d82523d6000602084013e6106b8565b606091505b50809250819350505084600160a060020a03167f534b52c783549f909f9e743120524d0b7154058e4a54cdc895c2c0b587a1c7e0858585604051808060200184815260200183151515158152602001828103825285818151815260200191508051906020019080838360005b8381101561073c578181015183820152602001610724565b50505050905090810190601f1680156107695780820380516001836020036101000a031916815260200191505b5094505050505060405180910390a2935093915050565b6107886108be565b151561079357600080fd5b60008054604051600160a060020a03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a36000805473ffffffffffffffffffffffffffffffffffffffff19169055565b60006107f46108be565b15156107ff57600080fd5b7ff9deba4938ba20070ec5a45ddf59bccba49cf83124215228ec1232182ef0ba2b826040518080602001828103825283818151815260200191508051906020019080838360005b8381101561085e578181015183820152602001610846565b50505050905090810190601f16801561088b5780820380516001836020036101000a031916815260200191505b509250505060405180910390a1506001919050565b600354600160a060020a031681565b600054600160a060020a031690565b600054600160a060020a0316331490565b60006108d96108be565b15156108e457600080fd5b6108fe600160a060020a038516848463ffffffff610b1e16565b60408051600160a060020a038581168252602082018590528251908716927f3a48a4d6253b30fd10e57a347c1f9bcb0604946481fae0b2fdad6e74f2a9cbb3928290030190a25060019392505050565b60006109586108be565b151561096357600080fd5b61097e600160a060020a03861685858563ffffffff610dbf16565b60408051600160a060020a03868116825285811660208301528183018590529151918716917f179c15de44aa7ab84896301974328eb40b5b40fe01cfe0fee2924ea712c3e8439181900360600190a2506001949350505050565b60006109e26108be565b15156109ed57600080fd5b604051600160a060020a0383169084156108fc029085906000818181858888f19350505050158015610a23573d6000803e3d6000fd5b50604080518481529051600160a060020a038416917f22fca66666089f39bc900dd6605b489df4aae6260cc8ea8257594cfb8c84926c919081900360200190a250600192915050565b6000610a766108be565b1515610a8157600080fd5b610a9b600160a060020a038516848463ffffffff610fb716565b82600160a060020a031684600160a060020a03167f49dc2a60d2599a7b6932d78fb694c30dfc596fe4e0282b5d0fd184b52472c04d846040518082815260200191505060405180910390a35060019392505050565b600254600160a060020a031681565b610b076108be565b1515610b1257600080fd5b610b1b816110ae565b50565b610b3083600160a060020a031661112b565b1515610b3b57600080fd5b801580610bda5750604080517fdd62ed3e000000000000000000000000000000000000000000000000000000008152306004820152600160a060020a03848116602483015291519185169163dd62ed3e91604480820192602092909190829003018186803b158015610bac57600080fd5b505afa158015610bc0573d6000803e3d6000fd5b505050506040513d6020811015610bd657600080fd5b5051155b1515610be557600080fd5b604080518082018252601881527f617070726f766528616464726573732c75696e743235362900000000000000006020918201528151600160a060020a0385811660248301526044808301869052845180840390910181526064909201845291810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f095ea7b3000000000000000000000000000000000000000000000000000000001781529251815160009460609489169392918291908083835b60208310610cc05780518252601f199092019160209182019101610ca1565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114610d22576040519150601f19603f3d011682016040523d82523d6000602084013e610d27565b606091505b5091509150811515610d3857600080fd5b80511580610dad575080516020148015610dad575080601f815181101515610d5c57fe5b6020910101517f010000000000000000000000000000000000000000000000000000000000000090819004027fff000000000000000000000000000000000000000000000000000000000000001615155b1515610db857600080fd5b5050505050565b610dd184600160a060020a031661112b565b1515610ddc57600080fd5b6000606085600160a060020a03166060604051908101604052806025815260200161113460259139805160209182012060408051600160a060020a03808b166024830152891660448201526064808201899052825180830390910181526084909101825292830180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000909316929092178252518251909182918083835b60208310610eb75780518252601f199092019160209182019101610e98565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d8060008114610f19576040519150601f19603f3d011682016040523d82523d6000602084013e610f1e565b606091505b5091509150811515610f2f57600080fd5b80511580610fa4575080516020148015610fa4575080601f815181101515610f5357fe5b6020910101517f010000000000000000000000000000000000000000000000000000000000000090819004027fff000000000000000000000000000000000000000000000000000000000000001615155b1515610faf57600080fd5b505050505050565b610fc983600160a060020a031661112b565b1515610fd457600080fd5b604080518082018252601981527f7472616e7366657228616464726573732c75696e7432353629000000000000006020918201528151600160a060020a0385811660248301526044808301869052845180840390910181526064909201845291810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb0000000000000000000000000000000000000000000000000000000017815292518151600094606094891693929182919080838360208310610cc05780518252601f199092019160209182019101610ca1565b600160a060020a03811615156110c357600080fd5b60008054604051600160a060020a03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a36000805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b6000903b119056fe7472616e7366657246726f6d28616464726573732c616464726573732c75696e7432353629a165627a7a72305820cdf6dc6e12529d68c1fa404ee4463c20ef7d3c761ed57fd0f20032f64ad1ae550029", "sourceMap": "344:4644:42:-;;;1230:213;8:9:-1;5:2;;;30:1;27;20:12;5:2;1230:213:42;;;;;;;;;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;1230:213:42;;;;;;19:11:-1;14:3;11:20;8:2;;;44:1;41;34:12;8:2;62:21;;123:4;114:14;;138:31;;;135:2;;;182:1;179;172:12;135:2;213:10;;261:11;244:29;;285:43;;;282:58;-1:-1;233:115;230:2;;;361:1;358;351:12;230:2;-1:-1;;1230:213:42;;;;;;;;;515:6:68;:19;;-1:-1:-1;;515:19:68;524:10;515:19;;;;549:40;;1230:213:42;;-1:-1:-1;1230:213:42;;-1:-1:-1;1230:213:42;-1:-1:-1;582:6:68;;549:40;;515:6;;549:40;1336:18:42;;;;:7;;:18;;;;;:::i;:::-;-1:-1:-1;1364:11:42;:26;;-1:-1:-1;1364:26:42;;;-1:-1:-1;;1364:26:42;;;;;;;1400:16;:36;;;;;;;;;;;-1:-1:-1;344:4644:42;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;344:4644:42;;;-1:-1:-1;344:4644:42;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;", "deployedSourceMap": "344:4644:42:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1554:35;;;1579:9;1554:35;;;;1567:10;;1554:35;;;;;;;;;;344:4644;411:21;;8:9:-1;5:2;;;30:1;27;20:12;5:2;411:21:42;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:100:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;411:21:42;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1982:343;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1982:343:42;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;1982:343:42;;-1:-1:-1;;;;;1982:343:42;;;;;;;;;;;;;21:11:-1;5:28;;2:2;;;46:1;43;36:12;2:2;1982:343:42;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;1982:343:42;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;39:11;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;1982:343:42;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;1982:343:42;;-1:-1:-1;;1982:343:42;;;-1:-1:-1;1982:343:42;;-1:-1:-1;;1982:343:42:i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;1982:343:42;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1347:137:68;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1347:137:68;;;:::i;:::-;;4848:136:42;;8:9:-1;5:2;;;30:1;27;20:12;5:2;4848:136:42;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;4848:136:42;;;;;;;;21:11:-1;5:28;;2:2;;;46:1;43;36:12;2:2;4848:136:42;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;4848:136:42;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;39:11;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;4848:136:42;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;4848:136:42;;-1:-1:-1;4848:136:42;;-1:-1:-1;;;;;4848:136:42:i;:::-;;;;;;;;;;;;;;;;;;471:34;;8:9:-1;5:2;;;30:1;27;20:12;5:2;471:34:42;;;:::i;:::-;;;;-1:-1:-1;;;;;471:34:42;;;;;;;;;;;;;;659:77:68;;8:9:-1;5:2;;;30:1;27;20:12;5:2;659:77:68;;;:::i;979:90::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;979:90:68;;;:::i;4322:297:42:-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;4322:297:42;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;4322:297:42;;;;;;;;;;;;;;;;;:::i;3581:362::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;3581:362:42;;;;;;13:3:-1;8;5:12;2:2;;;30:1;27;20:12;2:2;-1:-1;;;;;;3581:362:42;;;;;;;;;;;;;;;;;;;;;;:::i;2541:200::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2541:200:42;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;2541:200:42;;;;;;-1:-1:-1;;;;;2541:200:42;;:::i;2982:283::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2982:283:42;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;2982:283:42;;;;;;;;;;;;;;;;;:::i;438:27::-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;438:27:42;;;:::i;1655:107:68:-;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1655:107:68;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;1655:107:68;-1:-1:-1;;;;;1655:107:68;;:::i;411:21:42:-;;;;;;;;;;;;;;;-1:-1:-1;;411:21:42;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;1982:343::-;2095:12;2109:24;863:9:68;:7;:9::i;:::-;855:18;;;;;;;;2222:9:42;-1:-1:-1;;;;;2222:14:42;2243:6;2251:5;2222:35;;;;;;;;;;;;;36:153:-1;66:2;58:11;;36:153;;176:10;;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;2222:35:42;;;;;;;;;;;;;;;;;;;;;;;;;14:1:-1;21;16:31;;;;75:4;69:11;64:16;;144:4;140:9;133:4;115:16;111:27;107:43;104:1;100:51;94:4;87:65;169:16;166:1;159:27;225:16;222:1;215:4;212:1;208:12;193:49;7:242;;16:31;36:4;31:9;;7:242;;2197:60:42;;;;;;;;2284:9;-1:-1:-1;;;;;2272:46:42;;2295:5;2302:6;2310:7;2272:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;2272:46:42;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1982:343;;;;;;:::o;1347:137:68:-;863:9;:7;:9::i;:::-;855:18;;;;;;;;1445:1;1429:6;;1408:40;;-1:-1:-1;;;;;1429:6:68;;;;1408:40;;1445:1;;1408:40;1475:1;1458:19;;-1:-1:-1;;1458:19:68;;;1347:137::o;4848:136:42:-;4916:4;863:9:68;:7;:9::i;:::-;855:18;;;;;;;;4937:19:42;4946:9;4937:19;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;4937:19:42;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;4973:4:42;4848:136;;;:::o;471:34::-;;;-1:-1:-1;;;;;471:34:42;;:::o;659:77:68:-;697:7;723:6;-1:-1:-1;;;;;723:6:68;;659:77::o;979:90::-;1019:4;1056:6;-1:-1:-1;;;;;1056:6:68;1042:10;:20;;979:90::o;4322:297:42:-;4439:4;863:9:68;:7;:9::i;:::-;855:18;;;;;;;;4459:53:42;-1:-1:-1;;;;;4459:35:42;;4495:8;4505:6;4459:35;:53::i;:::-;4527:64;;;-1:-1:-1;;;;;4527:64:42;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;4608:4:42;4322:297;;;;;:::o;3581:362::-;3750:4;863:9:68;:7;:9::i;:::-;855:18;;;;;;;;3770:60:42;-1:-1:-1;;;;;3770:40:42;;3811:5;3818:3;3823:6;3770:40;:60::i;:::-;3845:70;;;-1:-1:-1;;;;;3845:70:42;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;3932:4:42;3581:362;;;;;;:::o;2541:200::-;2628:4;863:9:68;:7;:9::i;:::-;855:18;;;;;;;;2644:26:42;;-1:-1:-1;;;;;2644:12:42;;;:26;;;;;;;;;;;;:12;:26;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;2685:28:42;;;;;;;;-1:-1:-1;;;;;2685:28:42;;;;;;;;;;;;;-1:-1:-1;2730:4:42;2541:200;;;;:::o;2982:283::-;3094:4;863:9:68;:7;:9::i;:::-;855:18;;;;;;;;3114:49:42;-1:-1:-1;;;;;3114:36:42;;3151:3;3156:6;3114:36;:49::i;:::-;3178:59;;;;;;;;-1:-1:-1;;;;;3178:59:42;;;;;;;;;;;;;;;;;-1:-1:-1;3254:4:42;2982:283;;;;;:::o;438:27::-;;;-1:-1:-1;;;;;438:27:42;;:::o;1655:107:68:-;863:9;:7;:9::i;:::-;855:18;;;;;;;;1727:28;1746:8;1727:18;:28::i;:::-;1655:107;:::o;2169:793:47:-;2314:23;-1:-1:-1;;;;;2314:21:47;;;:23::i;:::-;2306:32;;;;;;;;2479:11;;;2478:77;;-1:-1:-1;2496:53:47;;;;;;2533:4;2496:53;;;;-1:-1:-1;;;;;2496:53:47;;;;;;;;;:28;;;;;;:53;;;;;;;;;;;;;;;:28;:53;;;5:2:-1;;;;30:1;27;20:12;5:2;2496:53:47;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;2496:53:47;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;2496:53:47;:58;2478:77;2470:86;;;;;;;;951:33;;;;;;;;;;;;;;;;;2693:58;;-1:-1:-1;;;;;2693:58:47;;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;2693:58:47;;;;;;25:18:-1;;;61:17;;2693:58:47;182:15:-1;2693:58:47;179:29:-1;160:49;;2677:75:47;;;;-1:-1:-1;;2582:24:47;;2677:15;;;2693:58;2677:75;;;25:18:-1;2677:75:47;;25:18:-1;36:153;66:2;58:11;;36:153;;176:10;;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;2677:75:47;;;;;;;;;;;;;;;;;;;;;;;;14:1:-1;21;16:31;;;;75:4;69:11;64:16;;144:4;140:9;133:4;115:16;111:27;107:43;104:1;100:51;94:4;87:65;169:16;166:1;159:27;225:16;222:1;215:4;212:1;208:12;193:49;7:242;;16:31;36:4;31:9;;7:242;;2567:185:47;;;;2820:7;2812:16;;;;;;;;2875:18;;:23;;:79;;;2903:11;:18;2925:2;2903:24;:50;;;;;2932:11;2944:2;2932:15;;;;;;;;;;;;;;;;;;;;;:20;;;;2903:50;2867:88;;;;;;;;2169:793;;;;;:::o;1566:597::-;1726:23;-1:-1:-1;;;;;1726:21:47;;;:23::i;:::-;1718:32;;;;;;;;837:46;;;1776:24;837:46;;;;;;;;;;1762:12;;1776:24;-1:-1:-1;;;;;1871:15:47;;;837:46;;;;;827:57;;;;;;;1887:65;;;-1:-1:-1;;;;;1887:65:47;;;;;;;;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;1887:65:47;;;;;;25:18:-1;;;61:17;;1887:65:47;182:15:-1;1887:65:47;;;;179:29:-1;;;;160:49;;1871:82:47;;;;;;;;;25:18:-1;36:153;66:2;58:11;;36:153;;176:10;;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;1871:82:47;;;;;;;;;;;;;;;;;;;;;;;;14:1:-1;21;16:31;;;;75:4;69:11;64:16;;144:4;140:9;133:4;115:16;111:27;107:43;104:1;100:51;94:4;87:65;169:16;166:1;159:27;225:16;222:1;215:4;212:1;208:12;193:49;7:242;;16:31;36:4;31:9;;7:242;;1761:192:47;;;;2021:7;2013:16;;;;;;;;2076:18;;:23;;:79;;;2104:11;:18;2126:2;2104:24;:50;;;;;2133:11;2145:2;2133:15;;;;;;;;;;;;;;;;;;;;;:20;;;;2104:50;2068:88;;;;;;;;1566:597;;;;;;:::o;993:567::-;1134:23;-1:-1:-1;;;;;1134:21:47;;;:23::i;:::-;1126:32;;;;;;;;730:34;;;;;;;;;;;;;;;;;1295:54;;-1:-1:-1;;;;;1295:54:47;;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;1295:54:47;;;;;;25:18:-1;;;61:17;;1295:54:47;182:15:-1;1295:54:47;179:29:-1;160:49;;1279:71:47;;;;1170:12;;1184:24;;1279:15;;;1295:54;1279:71;;;25:18:-1;1279:71:47;;25:18:-1;66:2;58:11;;36:153;;176:10;;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;1906:183:68;-1:-1:-1;;;;;1979:22:68;;;;1971:31;;;;;;2038:6;;;2017:38;;-1:-1:-1;;;;;2017:38:68;;;;2038:6;;;2017:38;;;2065:6;:17;;-1:-1:-1;;2065:17:68;-1:-1:-1;;;;;2065:17:68;;;;;;;;;;1906:183::o;463:616:75:-;523:4;1026:20;;1064:8;;463:616::o", "source": "pragma solidity ^0.5.4;\n\nimport \"@daostack/infra/contracts/Reputation.sol\";\nimport \"./DAOToken.sol\";\nimport \"openzeppelin-solidity/contracts/ownership/Ownable.sol\";\nimport \"openzeppelin-solidity/contracts/token/ERC20/IERC20.sol\";\nimport \"../libs/SafeERC20.sol\";\n\n\n/**\n * @title An Avatar holds tokens, reputation and ether for a controller\n */\ncontract Avatar is Ownable {\n using SafeERC20 for address;\n\n string public orgName;\n DAOToken public nativeToken;\n Reputation public nativeReputation;\n\n event GenericCall(address indexed _contract, bytes _data, uint _value, bool _success);\n event SendEther(uint256 _amountInWei, address indexed _to);\n event ExternalTokenTransfer(address indexed _externalToken, address indexed _to, uint256 _value);\n event ExternalTokenTransferFrom(address indexed _externalToken, address _from, address _to, uint256 _value);\n event ExternalTokenApproval(address indexed _externalToken, address _spender, uint256 _value);\n event ReceiveEther(address indexed _sender, uint256 _value);\n event MetaData(string _metaData);\n\n /**\n * @dev the constructor takes organization name, native token and reputation system\n and creates an avatar for a controller\n */\n constructor(string memory _orgName, DAOToken _nativeToken, Reputation _nativeReputation) public {\n orgName = _orgName;\n nativeToken = _nativeToken;\n nativeReputation = _nativeReputation;\n }\n\n /**\n * @dev enables an avatar to receive ethers\n */\n function() external payable {\n emit ReceiveEther(msg.sender, msg.value);\n }\n\n /**\n * @dev perform a generic call to an arbitrary contract\n * @param _contract the contract's address to call\n * @param _data ABI-encoded contract call to call `_contract` address.\n * @param _value value (ETH) to transfer with the transaction\n * @return bool success or fail\n * bytes - the return bytes of the called contract's function.\n */\n function genericCall(address _contract, bytes memory _data, uint256 _value)\n public\n onlyOwner\n returns(bool success, bytes memory returnValue) {\n // solhint-disable-next