UNPKG

@gooddollar/goodcontracts

Version:
657 lines (656 loc) 154 kB
{ "contractName": "ReputationMintOnce", "abi": [ { "inputs": [ { "internalType": "contract Avatar", "name": "_avatar", "type": "address" }, { "internalType": "address[]", "name": "_recipients", "type": "address[]" }, { "internalType": "uint256", "name": "_reputationReward", "type": "uint256" } ], "payable": false, "stateMutability": "nonpayable", "type": "constructor" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "previousOwner", "type": "address" }, { "indexed": true, "internalType": "address", "name": "newOwner", "type": "address" } ], "name": "OwnershipTransferred", "type": "event" }, { "constant": true, "inputs": [], "name": "isOwner", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "isRegistered", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { "internalType": "address", "name": "scheme", "type": "address" } ], "name": "isRegistered", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "owner", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "name": "recipients", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [], "name": "renounceOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "reputationReward", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "internalType": "contract Avatar", "name": "_avatar", "type": "address" } ], "name": "setAvatar", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "internalType": "address", "name": "newOwner", "type": "address" } ], "name": "transferOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [], "name": "fixIssues", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" } ], "metadata": "{\"compiler\":{\"version\":\"0.5.16+commit.9c3226ce\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"contract Avatar\",\"name\":\"_avatar\",\"type\":\"address\"},{\"internalType\":\"address[]\",\"name\":\"_recipients\",\"type\":\"address[]\"},{\"internalType\":\"uint256\",\"name\":\"_reputationReward\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"constant\":false,\"inputs\":[],\"name\":\"fixIssues\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"isOwner\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"isRegistered\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"address\",\"name\":\"scheme\",\"type\":\"address\"}],\"name\":\"isRegistered\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"recipients\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"reputationReward\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"contract Avatar\",\"name\":\"_avatar\",\"type\":\"address\"}],\"name\":\"setAvatar\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"methods\":{\"isOwner()\":{\"return\":\"true if `msg.sender` is the owner of the contract.\"},\"isRegistered()\":{\"details\":\"function to see if an avatar has been set and if this scheme is registered\",\"return\":\"true if scheme is registered\"},\"isRegistered(address)\":{\"details\":\"function to see if an avatar has been set and if this scheme is registered\",\"return\":\"true if scheme is registered\"},\"owner()\":{\"return\":\"the address of the owner.\"},\"renounceOwnership()\":{\"details\":\"Allows the current owner to relinquish control of the contract.\"},\"setAvatar(address)\":{\"details\":\"Function to set a new avatar and controller for scheme can only be done by owner of scheme\"},\"transferOwnership(address)\":{\"details\":\"Allows the current owner to transfer control of the contract to a newOwner.\",\"params\":{\"newOwner\":\"The address to transfer ownership to.\"}}}},\"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\":{\"/Users/hadar/workspace/GoodDollar/GoodBootstrap/packages/contracts/contracts/dao/schemes/ReputationMintOnce.sol\":\"ReputationMintOnce\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"/Users/hadar/workspace/GoodDollar/GoodBootstrap/packages/contracts/contracts/dao/schemes/ReputationMintOnce.sol\":{\"keccak256\":\"0x9ce69c58985add8bc0288cb2b3c2a208b5f4a96c67fbf48dd6520de06ad2439f\",\"urls\":[\"bzz-raw://de0ab997cd30a79d1f0b3de8a60d78374be9de7d7ff448bec998519b257f4bce\",\"dweb:/ipfs/QmRy7CPkDMuxzBiBZFvvwt43wYYQgzLfpPh3CtD6H1uxbJ\"]},\"/Users/hadar/workspace/GoodDollar/GoodBootstrap/packages/contracts/contracts/dao/schemes/SchemeGuard.sol\":{\"keccak256\":\"0x32e1b2a172e2c22a6aa757bfcb0722cc67f64c5c2e48df3dec2737903516d565\",\"urls\":[\"bzz-raw://bee57a8eba08348e93a0c18f3ab534e67865c0fa27afe27f5cf234bd5f248915\",\"dweb:/ipfs/Qmd8aveHWcUkYWMyJrJRZPyVXj8MAMBfpBFo6g4Z2VJeo3\"]},\"@daostack/arc/contracts/controller/Avatar.sol\":{\"keccak256\":\"0x4e4fb9d3bc21f42fbfc6a01e9f8aa483a59e9f447b0d604f55b587a81ec09ef4\",\"urls\":[\"bzz-raw://9d3c1c7575cf6075ea1d89921f09b9b8e322b208dacaf0446cd4f64506c999f0\",\"dweb:/ipfs/QmVGDDHAR2ByuQpbgV7BBKXGEAcbaWvejpEZYzHgaagBFK\"]},\"@daostack/arc/contracts/controller/ControllerInterface.sol\":{\"keccak256\":\"0x933e92612c90f292c7b59908958b003f1a13d90b97bed0572b566353c20974dc\",\"urls\":[\"bzz-raw://ce1fcf85b744fcce2dbd4205e3943e9b4ec36a5f0330d4bbf61e65f1a3e0e470\",\"dweb:/ipfs/QmUWiLkBDdekhpy93nTzBtxDHL6yNh6sTUM9G8VbsHcBzy\"]},\"@daostack/arc/contracts/controller/DAOToken.sol\":{\"keccak256\":\"0x9b213e4e3ceeffcfc1c962a43b70b8d763d8091a2dd713fc1989b97bb68786e6\",\"urls\":[\"bzz-raw://51d1d6e85fd90f45395a16b7a3c703c4636e836041f2a13f806e4222ef2e59c1\",\"dweb:/ipfs/QmQjeCeFf7TJzsYjT5scyZUDDixBA8Yy8YppgBuxcKPDnP\"]},\"@daostack/arc/contracts/globalConstraints/GlobalConstraintInterface.sol\":{\"keccak256\":\"0xc006c4591ec10b845a56e13f6791db2c428610953034686d52b2a934b6c8f36f\",\"urls\":[\"bzz-raw://19495cd88280e54d7ddcd043ffeff75e6d3777a0c42debcd61cae448e9497ea0\",\"dweb:/ipfs/QmYxWz7CgFmmddrcVXJKfob5Ktwykc2imNVUwLSR5WR8bJ\"]},\"@daostack/arc/contracts/libs/SafeERC20.sol\":{\"keccak256\":\"0xf6727d432f67046145b078f40c1cc4f6be7b0d12a6678ecaf457edf7550d244c\",\"urls\":[\"bzz-raw://5dba7734c4fed446c084a707761cbc66ba22b8b93ef53c8d4a22a76b6e271690\",\"dweb:/ipfs/QmP2VpPKUqLh4ZZs6LaxHVpCN1zCmiorygL9bMub4mbYCw\"]},\"@daostack/infra/contracts/Reputation.sol\":{\"keccak256\":\"0x3d226dac0fe7d758f0287fb28bc25fcec1f69d19888ae3a550fa49856d61c482\",\"urls\":[\"bzz-raw://8856852c8fe0ba1c9aab326f0a9a6e7f31a238de2778fa5188e6fc399f7eb352\",\"dweb:/ipfs/QmVH4ppR9Dk7v8yxaSgeArdMv9gBBVoQxEf4E3UsqQ4rY2\"]},\"openzeppelin-solidity/contracts/math/SafeMath.sol\":{\"keccak256\":\"0x965012d27b4262d7a41f5028cbb30c51ebd9ecd4be8fb30380aaa7a3c64fbc8b\",\"urls\":[\"bzz-raw://1eb493553b27efd46c231a836a83ce50d215639feb97b4aac9f301d0fd034ff5\",\"dweb:/ipfs/QmbMdvSXcqGKxeeYvzF3VrWpoHQyVzMXBhzhAokF2Gdymv\"]},\"openzeppelin-solidity/contracts/ownership/Ownable.sol\":{\"keccak256\":\"0x980de387a1a020a498f53d00f89fecebb12c949a17e8f160093c0303ede2b786\",\"urls\":[\"bzz-raw://f07a2c393caa85f62f0aaa461e3edd50aa59371d4209778ba0558d7f8b4b856c\",\"dweb:/ipfs/QmeN3ZiYGSjCnQFeYaJNgoXjF9eDue1g3e9pqManRkeBtV\"]},\"openzeppelin-solidity/contracts/token/ERC20/ERC20.sol\":{\"keccak256\":\"0xba431353cb4fe70777ac026231eb5468e41aa1e81240a2b8136917acc5fff4dc\",\"urls\":[\"bzz-raw://f40c91ca270bdc9b156f339081a0fc2bbcf73cf5f62b8c73ba555df753ff6619\",\"dweb:/ipfs/QmT8y2VVjGaFdGphpcXrgvdPi2EgF9LuCDgJiJ89LvpFRV\"]},\"openzeppelin-solidity/contracts/token/ERC20/ERC20Burnable.sol\":{\"keccak256\":\"0xa3e68fd7f987c8fbdaf4867d428a69a15f3cf2f69709a5b0a0fbef750b0e6fbc\",\"urls\":[\"bzz-raw://50b1ff986d3b2793850a66c8429d9886fdfb134b1509b3e98714e3e2a71e24f5\",\"dweb:/ipfs/QmSQBYPeY9tbR3ciGRNQqvcWKnNiuxtVMq2MsPWpLwuGGm\"]},\"openzeppelin-solidity/contracts/token/ERC20/IERC20.sol\":{\"keccak256\":\"0x079c4e23ee448f529e43bfa3c4e8fb4be52cd0318ee923a276835bedf45b93d8\",\"urls\":[\"bzz-raw://ee762ff5b7746e41d27dcbcea00c7a3034b58adb1b45ddadddb5b721aff450df\",\"dweb:/ipfs/QmdxqtgEFZjHCoiYyz6pUAQ5iBm7As25jcyEbZoTaAgyDa\"]},\"openzeppelin-solidity/contracts/utils/Address.sol\":{\"keccak256\":\"0x5c731061b804fa256fc8c05150eafe5d20b6bb94541a8f187912bf84f7033f34\",\"urls\":[\"bzz-raw://a3c2d9f046beebab7fb41b1b124a6a124a36f510f7c67365861402ac831bdc71\",\"dweb:/ipfs/QmUtASRgitregbKH83anopLtF9vFQe3BKeAjhUa6F7t9YV\"]}},\"version\":1}", "bytecode": "0x6080604052600280546001600160a01b031916905534801561002057600080fd5b50604051610cd3380380610cd38339818101604052606081101561004357600080fd5b81516020830180516040519294929383019291908464010000000082111561006a57600080fd5b90830190602082018581111561007f57600080fd5b825186602082028301116401000000008211171561009c57600080fd5b82525081516020918201928201910280838360005b838110156100c95781810151838201526020016100b1565b5050505091909101604081905260209290920151600080546001600160a01b03191633178082559195508794506001600160a01b0391909116929091507f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3600180546001600160a01b0319166001600160a01b03838116919091179182905516156101ec57600160009054906101000a90046001600160a01b03166001600160a01b0316638da5cb5b6040518163ffffffff1660e01b815260040160206040518083038186803b1580156101a057600080fd5b505afa1580156101b4573d6000803e3d6000fd5b505050506040513d60208110156101ca57600080fd5b5051600280546001600160a01b0319166001600160a01b039092169190911790555b506004819055815161020590600390602085019061020e565b5050505061029a565b828054828255906000526020600020908101928215610263579160200282015b8281111561026357825182546001600160a01b0319166001600160a01b0390911617825560209092019160019091019061022e565b5061026f929150610273565b5090565b61029791905b8082111561026f5780546001600160a01b0319168155600101610279565b90565b610a2a806102a96000396000f3fe608060405234801561001057600080fd5b506004361061009e5760003560e01c80638f32d59b116100665780638f32d59b1461011b578063c3c5a54714610123578063d1bc76a114610149578063ed1ff6d814610166578063f2fde38b146101805761009e565b8063086cfca8146100a357806322366844146100cb578063659d0cb4146100e7578063715018a6146100ef5780638da5cb5b146100f7575b600080fd5b6100c9600480360360208110156100b957600080fd5b50356001600160a01b03166101a6565b005b6100d3610261565b604080519115158252519081900360200190f35b6100c9610271565b6100c96107d5565b6100ff610830565b604080516001600160a01b039092168252519081900360200190f35b6100d361083f565b6100d36004803603602081101561013957600080fd5b50356001600160a01b0316610850565b6100ff6004803603602081101561015f57600080fd5b503561093d565b61016e610964565b60408051918252519081900360200190f35b6100c96004803603602081101561019657600080fd5b50356001600160a01b031661096a565b6101ae61083f565b6101b757600080fd5b600180546001600160a01b0319166001600160a01b03838116919091179182905560408051638da5cb5b60e01b815290519290911691638da5cb5b91600480820192602092909190829003018186803b15801561021357600080fd5b505afa158015610227573d6000803e3d6000fd5b505050506040513d602081101561023d57600080fd5b5051600280546001600160a01b0319166001600160a01b0390921691909117905550565b600061026c30610850565b905090565b60005b60035481101561034057600254600454600380546001600160a01b039093169263eaf994b2929190859081106102a657fe5b6000918252602080832090910154600154604080516001600160e01b031960e089901b16815260048101969096526001600160a01b0392831660248701529116604485015251606480850194929391928390030190829087803b15801561030c57600080fd5b505af1158015610320573d6000803e3d6000fd5b505050506040513d602081101561033657600080fd5b5050600101610274565b5060025460015460408051631c2eb17b60e31b815290516001600160a01b039384169363d1b7089a93169163e1758bd8916004808301926020929190829003018186803b15801561039057600080fd5b505afa1580156103a4573d6000803e3d6000fd5b505050506040513d60208110156103ba57600080fd5b505160408051642e90edd000602480830191909152825180830382018152604492830184526020810180516001600160e01b0316630852cd8d60e31b178152600154945160e088901b6001600160e01b03191681526001600160a01b038088166004830190815296169481018590526000606482018190526080948201948552835160848301528351939690949093909260a49092019190808383885b8381101561046f578181015183820152602001610457565b50505050905090810190601f16801561049c5780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b1580156104be57600080fd5b505af11580156104d2573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160409081528110156104fb57600080fd5b81516020830180516040519294929383019291908464010000000082111561052257600080fd5b90830190602082018581111561053757600080fd5b825164010000000081118282018810171561055157600080fd5b82525081516020918201929091019080838360005b8381101561057e578181015183820152602001610566565b50505050905090810190601f1680156105ab5780820380516001836020036101000a031916815260200191505b506040818152600254603c602480850191909152825180850382018152604494850184526020810180516001600160e01b031660016201b3cb60e21b031917815260015494516368db844d60e11b81527376e76e10ac308a1d54a00f9df27edce4801f288b600482018181526001600160a01b039788169883018990526000606484018190526080968401968752855160848501528551989097169d5063d1b7089a9c50909a5092985095965092949093919260a490910191808383885b83811015610681578181015183820152602001610669565b50505050905090810190601f1680156106ae5780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b1580156106d057600080fd5b505af11580156106e4573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604090815281101561070d57600080fd5b81516020830180516040519294929383019291908464010000000082111561073457600080fd5b90830190602082018581111561074957600080fd5b825164010000000081118282018810171561076357600080fd5b82525081516020918201929091019080838360005b83811015610790578181015183820152602001610778565b50505050905090810190601f1680156107bd5780820380516001836020036101000a031916815260200191505b5060405250506001546001600160a01b031692505050ff5b6107dd61083f565b6107e657600080fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000546001600160a01b031690565b6000546001600160a01b0316331490565b6001546000906001600160a01b03166108a4576040805162461bcd60e51b8152602060048201526011602482015270105d985d185c881a5cc81b9bdd081cd95d607a1b604482015290519081900360640190fd5b60025460015460408051639be2faed60e01b81526001600160a01b038681166004830152928316602482015290519190921691639be2faed916044808301926020929190829003018186803b1580156108fc57600080fd5b505afa158015610910573d6000803e3d6000fd5b505050506040513d602081101561092657600080fd5b505161093457506000610938565b5060015b919050565b6003818154811061094a57fe5b6000918252602090912001546001600160a01b0316905081565b60045481565b61097261083f565b61097b57600080fd5b61098481610987565b50565b6001600160a01b03811661099a57600080fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b039290921691909117905556fea265627a7a723158203b1befaefe1710d1695529a547bc000b344aa8088e90464efefa32b9879d031564736f6c63430005100032", "deployedBytecode": "0x608060405234801561001057600080fd5b506004361061009e5760003560e01c80638f32d59b116100665780638f32d59b1461011b578063c3c5a54714610123578063d1bc76a114610149578063ed1ff6d814610166578063f2fde38b146101805761009e565b8063086cfca8146100a357806322366844146100cb578063659d0cb4146100e7578063715018a6146100ef5780638da5cb5b146100f7575b600080fd5b6100c9600480360360208110156100b957600080fd5b50356001600160a01b03166101a6565b005b6100d3610261565b604080519115158252519081900360200190f35b6100c9610271565b6100c96107d5565b6100ff610830565b604080516001600160a01b039092168252519081900360200190f35b6100d361083f565b6100d36004803603602081101561013957600080fd5b50356001600160a01b0316610850565b6100ff6004803603602081101561015f57600080fd5b503561093d565b61016e610964565b60408051918252519081900360200190f35b6100c96004803603602081101561019657600080fd5b50356001600160a01b031661096a565b6101ae61083f565b6101b757600080fd5b600180546001600160a01b0319166001600160a01b03838116919091179182905560408051638da5cb5b60e01b815290519290911691638da5cb5b91600480820192602092909190829003018186803b15801561021357600080fd5b505afa158015610227573d6000803e3d6000fd5b505050506040513d602081101561023d57600080fd5b5051600280546001600160a01b0319166001600160a01b0390921691909117905550565b600061026c30610850565b905090565b60005b60035481101561034057600254600454600380546001600160a01b039093169263eaf994b2929190859081106102a657fe5b6000918252602080832090910154600154604080516001600160e01b031960e089901b16815260048101969096526001600160a01b0392831660248701529116604485015251606480850194929391928390030190829087803b15801561030c57600080fd5b505af1158015610320573d6000803e3d6000fd5b505050506040513d602081101561033657600080fd5b5050600101610274565b5060025460015460408051631c2eb17b60e31b815290516001600160a01b039384169363d1b7089a93169163e1758bd8916004808301926020929190829003018186803b15801561039057600080fd5b505afa1580156103a4573d6000803e3d6000fd5b505050506040513d60208110156103ba57600080fd5b505160408051642e90edd000602480830191909152825180830382018152604492830184526020810180516001600160e01b0316630852cd8d60e31b178152600154945160e088901b6001600160e01b03191681526001600160a01b038088166004830190815296169481018590526000606482018190526080948201948552835160848301528351939690949093909260a49092019190808383885b8381101561046f578181015183820152602001610457565b50505050905090810190601f16801561049c5780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b1580156104be57600080fd5b505af11580156104d2573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160409081528110156104fb57600080fd5b81516020830180516040519294929383019291908464010000000082111561052257600080fd5b90830190602082018581111561053757600080fd5b825164010000000081118282018810171561055157600080fd5b82525081516020918201929091019080838360005b8381101561057e578181015183820152602001610566565b50505050905090810190601f1680156105ab5780820380516001836020036101000a031916815260200191505b506040818152600254603c602480850191909152825180850382018152604494850184526020810180516001600160e01b031660016201b3cb60e21b031917815260015494516368db844d60e11b81527376e76e10ac308a1d54a00f9df27edce4801f288b600482018181526001600160a01b039788169883018990526000606484018190526080968401968752855160848501528551989097169d5063d1b7089a9c50909a5092985095965092949093919260a490910191808383885b83811015610681578181015183820152602001610669565b50505050905090810190601f1680156106ae5780820380516001836020036101000a031916815260200191505b5095505050505050600060405180830381600087803b1580156106d057600080fd5b505af11580156106e4573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604090815281101561070d57600080fd5b81516020830180516040519294929383019291908464010000000082111561073457600080fd5b90830190602082018581111561074957600080fd5b825164010000000081118282018810171561076357600080fd5b82525081516020918201929091019080838360005b83811015610790578181015183820152602001610778565b50505050905090810190601f1680156107bd5780820380516001836020036101000a031916815260200191505b5060405250506001546001600160a01b031692505050ff5b6107dd61083f565b6107e657600080fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000546001600160a01b031690565b6000546001600160a01b0316331490565b6001546000906001600160a01b03166108a4576040805162461bcd60e51b8152602060048201526011602482015270105d985d185c881a5cc81b9bdd081cd95d607a1b604482015290519081900360640190fd5b60025460015460408051639be2faed60e01b81526001600160a01b038681166004830152928316602482015290519190921691639be2faed916044808301926020929190829003018186803b1580156108fc57600080fd5b505afa158015610910573d6000803e3d6000fd5b505050506040513d602081101561092657600080fd5b505161093457506000610938565b5060015b919050565b6003818154811061094a57fe5b6000918252602090912001546001600160a01b0316905081565b60045481565b61097261083f565b61097b57600080fd5b61098481610987565b50565b6001600160a01b03811661099a57600080fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b039290921691909117905556fea265627a7a723158203b1befaefe1710d1695529a547bc000b344aa8088e90464efefa32b9879d031564736f6c63430005100032", "sourceMap": "252:1225:18:-;;;443:64:22;;;-1:-1:-1;;;;;;443:64:22;;;601:230:18;5:2:-1;;;;30:1;27;20:12;5:2;601:230:18;;;;;;;;;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;601:230:18;;;;;;;;;;;;;;;;;;;19:11:-1;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;219:3;213:10;331:9;325:2;311:12;307:21;289:16;285:44;282:59;261:11;247:12;244:29;233:116;230:2;;;362:1;359;352:12;230:2;373:25;;-1:-1;601:230:18;;421:4:-1;412:14;;;;601:230:18;;;;;412:14:-1;601:230:18;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;;;-1:-1;;;;601:230:18;;;;;;;;;;;;;;515:6:72;:19;;-1:-1:-1;;;;;;515:19:72;524:10;515:19;;;;601:230:18;;-1:-1:-1;735:7:18;;-1:-1:-1;;;;;;582:6:72;;;;;515;;-1:-1:-1;549:40:72;;515:6;;549:40;688:6:22;:16;;-1:-1:-1;;;;;;688:16:22;-1:-1:-1;;;;;688:16:22;;;;;;;;;;;719:6;:19;715:98;;787:6;;;;;;;;;-1:-1:-1;;;;;787:6:22;-1:-1:-1;;;;;787:12:22;;:14;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;787:14:22;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;787:14:22;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;787:14:22;754:10;:48;;-1:-1:-1;;;;;;754:48:22;-1:-1:-1;;;;;754:48:22;;;;;;;;;715:98;-1:-1:-1;754:16:18;:36;;;800:24;;;;:10;;:24;;;;;:::i;:::-;;601:230;;;252:1225;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;252:1225:18;-1:-1:-1;;;;;252:1225:18;;;;;;;;;;;-1:-1:-1;252:1225:18;;;;;;;-1:-1:-1;252:1225:18;;;-1:-1:-1;252:1225:18;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;-1:-1:-1;;;;;;252:1225:18;;;;;;;;;:::o;:::-;;;;;;;", "deployedSourceMap": "252:1225:18:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;252:1225:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1698:143:22;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;1698:143:22;-1:-1:-1;;;;;1698:143:22;;:::i;:::-;;1987:102;;;:::i;:::-;;;;;;;;;;;;;;;;;;837:638:18;;;:::i;1347:137:72:-;;;:::i;659:77::-;;;:::i;:::-;;;;-1:-1:-1;;;;;659:77:72;;;;;;;;;;;;;;979:90;;;:::i;2235:262:22:-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;2235:262:22;-1:-1:-1;;;;;2235:262:22;;:::i;301:27:18:-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;301:27:18;;:::i;334:31::-;;;:::i;:::-;;;;;;;;;;;;;;;;1655:107:72;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;1655:107:72;-1:-1:-1;;;;;1655:107:72;;:::i;1698:143:22:-;863:9:72;:7;:9::i;:::-;855:18;;;;;;1760:6:22;:16;;-1:-1:-1;;;;;;1760:16:22;-1:-1:-1;;;;;1760:16:22;;;;;;;;;;;1819:14;;;-1:-1:-1;;;1819:14:22;;;;:6;;;;;:12;;:14;;;;;;;;;;;;;;;:6;:14;;;5:2:-1;;;;30:1;27;20:12;5:2;1819:14:22;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;1819:14:22;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;1819:14:22;1786:10;:48;;-1:-1:-1;;;;;;1786:48:22;-1:-1:-1;;;;;1786:48:22;;;;;;;;;-1:-1:-1;1698:143:22:o;1987:102::-;2032:4;2055:27;2076:4;2055:12;:27::i;:::-;2048:34;;1987:102;:::o;837:638:18:-;880:9;875:148;899:10;:17;895:21;;875:148;;;937:10;;963:16;;981:10;:13;;-1:-1:-1;;;;;937:10:18;;;;:25;;963:16;981:10;992:1;;981:13;;;;;;;;;;;;;;;;;;;1004:6;937:75;;;-1:-1:-1;;;;;;937:75:18;;;;;;;;;;;;;;-1:-1:-1;;;;;981:13:18;;;937:75;;;;1004:6;;937:75;;;;;;;;;;981:13;;937:75;;;;;;;;;;;;;5:2:-1;;;;30:1;27;20:12;5:2;937:75:18;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;937:75:18;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;918:3:18;;875:148;;;-1:-1:-1;1032:10:18;;;1076:6;:20;;;-1:-1:-1;;;1076:20:18;;;;-1:-1:-1;;;;;1032:10:18;;;;:22;;1076:6;;:18;;:20;;;;;;;;;;;;;;:6;:20;;;5:2:-1;;;;30:1;27;20:12;5:2;1076:20:18;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;1076:20:18;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;1076:20:18;1111:54;;;1152:12;1111:54;;;;;;;;;;26:21:-1;;;22:32;;6:49;;1111:54:18;;;;;;1076:20;25:18:-1;;61:17;;-1:-1;;;;;182:15;-1:-1;;;179:29;160:49;;1179:6:18;;1032:178;;;;;;-1:-1:-1;;;;;;1032:178:18;;;-1:-1:-1;;;;;1032:178:18;;;;;;;;;1179:6;;1032:178;;;;;;-1:-1:-1;1032:178:18;;;;;;;;;;;;;;;;;;;;;1111:54;;-1:-1:-1;;1032:178:18;;;;;;;;;25:18:-1;1032:178:18;;25:18:-1;-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;1032:178:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1032:178:18;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;1032:178:18;;;;;;39:16:-1;36:1;17:17;2:54;101:4;1032:178:18;80:15:-1;;;-1:-1;;76:31;65:43;;120:4;113:20;;;5:11;;2:2;;;29:1;26;19:12;2:2;1032:178:18;;;;;;;;;;;;;;;;;;;19:11:-1;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;372:25;;-1:-1;1032:178:18;;420:4:-1;411:14;;;;1032:178:18;;;;;411:14:-1;1032:178:18;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;1032:178:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1032:178:18;;;;1220:10;;1381:2;1321:63;;;;;;;;;;26:21:-1;;;22:32;;6:49;;1321:63:18;;;;;;;25:18:-1;;61:17;;-1:-1;;;;;182:15;-1:-1;;;;;;179:29;160:49;;1220:10:18;1398:6;1220:209;;-1:-1:-1;;;1220:209:18;;1264:42;1220:209;;;;;;-1:-1:-1;;;;;1398:6:18;;;1220:209;;;;;;:10;:209;;;;;;;;;;;;;;;;;;;;;:10;;;;;-1:-1:-1;1220:22:18;;-1:-1:-1;1264:42:18;;-1:-1:-1;1321:63:18;;-1:-1:-1;1398:6:18;;-1:-1:-1;1220:10:18;;:209;;;;;;;;;;;25:18:-1;1220:10:18;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;1220:209:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1220:209:18;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;1220:209:18;;;;;;39:16:-1;36:1;17:17;2:54;101:4;1220:209:18;80:15:-1;;;-1:-1;;76:31;65:43;;120:4;113:20;;;5:11;;2:2;;;29:1;26;19:12;2:2;1220:209:18;;;;;;;;;;;;;;;;;;;19:11:-1;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;372:25;;-1:-1;1220:209:18;;420:4:-1;411:14;;;;1220:209:18;;;;;411:14:-1;1220:209:18;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;1220:209:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;1220:209:18;;-1:-1:-1;;1460:6:18;;-1:-1:-1;;;;;1460:6:18;;-1:-1:-1;;;1439:29:18;1347:137:72;863:9;:7;:9::i;:::-;855:18;;;;;;1445:1;1429:6;;1408:40;;-1:-1:-1;;;;;1429:6:72;;;;1408:40;;1445:1;;1408:40;1475:1;1458:19;;-1:-1:-1;;;;;;1458:19:72;;;1347:137::o;659:77::-;697:7;723:6;-1:-1:-1;;;;;723:6:72;659:77;:::o;979:90::-;1019:4;1056:6;-1:-1:-1;;;;;1056:6:72;1042:10;:20;;979:90::o;2235:262:22:-;2318:6;;2294:4;;-1:-1:-1;;;;;2318:6:22;2310:49;;;;;-1:-1:-1;;;2310:49:22;;;;;;;;;;;;-1:-1:-1;;;2310:49:22;;;;;;;;;;;;;;;2376:10;;;2422:6;2376:54;;;-1:-1:-1;;;2376:54:22;;-1:-1:-1;;;;;2376:54:22;;;;;;;2422:6;;;2376:54;;;;;;:10;;;;;:29;;:54;;;;;;;;;;;;;;:10;:54;;;5:2:-1;;;;30:1;27;20:12;5:2;2376:54:22;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;2376:54:22;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;2376:54:22;2370:100;;-1:-1:-1;2454:5:22;2447:12;;2370:100;-1:-1:-1;2486:4:22;2235:262;;;;:::o;301:27:18:-;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;301:27:18;;-1:-1:-1;301:27:18;:::o;334:31::-;;;;:::o;1655:107:72:-;863:9;:7;:9::i;:::-;855:18;;;;;;1727:28;1746:8;1727:18;:28::i;:::-;1655:107;:::o;1906:183::-;-1:-1:-1;;;;;1979:22:72;;1971:31;;;;;;2038:6;;;2017:38;;-1:-1:-1;;;;;2017:38:72;;;;2038:6;;;2017:38;;;2065:6;:17;;-1:-1:-1;;;;;;2065:17:72;-1:-1:-1;;;;;2065:17:72;;;;;;;;;;1906:183::o", "source": "pragma solidity >0.5.4;\n\nimport \"@daostack/arc/contracts/controller/Avatar.sol\";\nimport \"@daostack/arc/contracts/controller/ControllerInterface.sol\";\n\nimport \"./SchemeGuard.sol\";\n\n/* @title Scheme responsible for rewarding reputation to addresses.\n */\ncontract ReputationMintOnce is SchemeGuard {\n address[] public recipients;\n uint256 public reputationReward;\n\n /* @dev Constructor. Reverts if given reward amount is below 0\n * @param _avatar The Avatar of the DAO\n * @param _identity The identity contract\n * @param _reputationReward The reputation amount to reward\n */\n constructor(\n Avatar _avatar,\n address[] memory _recipients,\n uint256 _reputationReward\n ) public SchemeGuard(_avatar) {\n reputationReward = _reputationReward;\n recipients = _recipients;\n }\n\n function fixIssues() public {\n for (uint256 i = 0; i < recipients.length; i++) {\n controller.mintReputation(reputationReward, recipients[i], address(avatar));\n }\n controller.genericCall(\n address(avatar.nativeToken()),\n abi.encodeWithSignature(\"burn(uint256)\", 200000000000),\n avatar,\n 0\n );\n controller.genericCall(\n address(0x76e76e10Ac308A1D54a00f9df27EdCE4801F288b),\n abi.encodeWithSignature(\"setAuthenticationPeriod(uint256)\", 60),\n avatar,\n 0\n );\n selfdestruct(address(avatar));\n }\n}\n", "sourcePath": "/Users/hadar/workspace/GoodDollar/GoodBootstrap/packages/contracts/contracts/dao/schemes/ReputationMintOnce.sol", "ast": { "absolutePath": "/Users/hadar/workspace/GoodDollar/GoodBootstrap/packages/contracts/contracts/dao/schemes/ReputationMintOnce.sol", "exportedSymbols": { "ReputationMintOnce": [ 3756 ] }, "id": 3757, "nodeType": "SourceUnit", "nodes": [ { "id": 3656, "literals": [ "solidity", ">", "0.5", ".4" ], "nodeType": "PragmaDirective", "src": "0:23:18" }, { "absolutePath": "@daostack/arc/contracts/controller/Avatar.sol", "file": "@daostack/arc/contracts/controller/Avatar.sol", "id": 3657, "nodeType": "ImportDirective", "scope": 3757, "sourceUnit": 8542, "src": "25:55:18", "symbolAliases": [], "unitAlias": "" }, { "absolutePath": "@daostack/arc/contracts/controller/ControllerInterface.sol", "file": "@daostack/arc/contracts/controller/ControllerInterface.sol", "id": 3658, "nodeType": "ImportDirective", "scope": 3757, "sourceUnit": 10231, "src": "81:68:18", "symbolAliases": [], "unitAlias": "" }, { "absolutePath": "/Users/hadar/workspace/GoodDollar/GoodBootstrap/packages/contracts/contracts/dao/schemes/SchemeGuard.sol", "file": "./SchemeGuard.sol", "id": 3659, "nodeType": "ImportDirective", "scope": 3757, "sourceUnit": 4183, "src": "151:27:18", "symbolAliases": [], "unitAlias": "" }, { "baseContracts": [ { "arguments": null, "baseName": { "contractScope": null, "id": 3660, "name": "SchemeGuard", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 4182, "src": "283:11:18", "typeDescriptions": { "typeIdentifier": "t_contract$_SchemeGuard_$4182", "typeString": "contract SchemeGuard" } }, "id": 3661, "nodeType": "InheritanceSpecifier", "src": "283:11:18" } ], "contractDependencies": [ 4182, 17253 ], "contractKind": "contract", "documentation": null, "fullyImplemented": true, "id": 3756, "linearizedBaseContracts": [ 3756, 4182, 17253 ], "name": "ReputationMintOnce", "nodeType": "ContractDefinition", "nodes": [ { "constant": false, "id": 3664, "name": "recipients", "nodeType": "VariableDeclaration", "scope": 3756, "src": "301:27:18", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_array$_t_address_$dyn_storage", "typeString": "address[]" }, "typeName": { "baseType": { "id": 3662, "name": "address", "nodeType": "ElementaryTypeName", "src": "301:7:18", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "id": 3663, "length": null, "nodeType": "ArrayTypeName", "src": "301:9:18", "typeDescriptions": { "typeIdentifier": "t_array$_t_address_$dyn_storage_ptr", "typeString": "address[]" } }, "value": null, "visibility": "public" }, { "constant": false, "id": 3666, "name": "reputationReward", "nodeType": "VariableDeclaration", "scope": 3756, "src": "334:31:18", "stateVariable": true, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 3665, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "334:7:18", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "public" }, { "body": { "id": 3687, "nodeType": "Block", "src": "744:87:18", "statements": [ { "expression": { "argumentTypes": null, "id": 3681, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "id": 3679, "name": "reputationReward", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 3666, "src": "754:16:18", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "id": 3680, "name": "_reputationReward", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 3673, "src": "773:17:18", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "src": "754:36:18", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "id": 3682, "nodeType": "ExpressionStatement", "src": "754:36:18" }, { "expression": { "argumentTypes": null, "id": 3685, "isConstant": false, "isLValue": false, "isPure": false, "lValueRequested": false, "leftHandSide": { "argumentTypes": null, "id": 3683, "name": "recipients", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 3664, "src": "800:10:18", "typeDescriptions": { "typeIdentifier": "t_array$_t_address_$dyn_storage", "typeString": "address[] storage ref" } }, "nodeType": "Assignment", "operator": "=", "rightHandSide": { "argumentTypes": null, "id": 3684, "name": "_recipients", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 3671, "src": "813:11:18", "typeDescriptions": { "typeIdentifier": "t_array$_t_address_$dyn_memory_ptr", "typeString": "address[] memory" } }, "src": "800:24:18", "typeDescriptions": { "typeIdentifier": "t_array$_t_address_$dyn_storage", "typeString": "address[] storage ref" } }, "id": 3686, "nodeType": "ExpressionStatement", "src": "800:24:18" } ] }, "documentation": null, "id": 3688, "implemented": true, "kind": "constructor", "modifiers": [ { "arguments": [ { "argumentTypes": null, "id": 3676, "name": "_avatar", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 3668, "src": "735:7:18", "typeDescriptions": { "typeIdentifier": "t_contract$_Avatar_$8541", "typeString": "contract Avatar" } } ], "id": 3677, "modifierName": { "argumentTypes": null, "id": 3675, "name": "SchemeGuard", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 4182, "src": "723:11:18", "typeDescriptions": { "typeIdentifier": "t_type$_t_contract$_SchemeGuard_$4182_$", "typeString": "type(contract SchemeGuard)" } }, "nodeType": "ModifierInvocation", "src": "723:20:18" } ], "name": "", "nodeType": "FunctionDefinition", "parameters": { "id": 3674, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 3668, "name": "_avatar", "nodeType": "VariableDeclaration", "scope": 3688, "src": "622:14:18", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_contract$_Avatar_$8541", "typeString": "contract Avatar" }, "typeName": { "contractScope": null, "id": 3667, "name": "Avatar", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 8541, "src": "622:6:18", "typeDescriptions": { "typeIdentifier": "t_contract$_Avatar_$8541", "typeString": "contract Avatar" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 3671, "name": "_recipients", "nodeType": "VariableDeclaration", "scope": 3688, "src": "646:28:18", "stateVariable": false, "storageLocation": "memory", "typeDescriptions": { "typeIdentifier": "t_array$_t_address_$dyn_memory_ptr", "typeString": "address[]" }, "typeName": { "baseType": { "id": 3669, "name": "address", "nodeType": "ElementaryTypeName", "src": "646:7:18", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "id": 3670, "length": null, "nodeType": "ArrayTypeName", "src": "646:9:18", "typeDescriptions": { "typeIdentifier": "t_array$_t_address_$dyn_storage_ptr", "typeString": "address[]" } }, "value": null, "visibility": "internal" }, { "constant": false, "id": 3673, "name": "_reputationReward", "nodeType": "VariableDeclaration", "scope": 3688, "src": "684:25:18", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }, "typeName": { "id": 3672, "name": "uint256", "nodeType": "ElementaryTypeName", "src": "684:7:18", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, "value": null, "visibility": "internal" } ], "src": "612:103:18" }, "returnParameters": { "id": 3678, "nodeType": "ParameterList", "parameters": [], "src": "744:0:18" }, "scope": 3756, "src": "601:230:18", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": { "id": 3754, "nodeType": "Block", "src": "865:610:18", "statements": [ { "body": { "id": 3714, "nodeType": "Block", "src": "923:100:18", "statements": [ { "expression": { "argumentTypes": null, "arguments": [ { "argumentTypes": null, "id": 3705, "name": "reputationReward", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 3666, "src": "963:16:18", "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" } }, { "argumentTypes": null, "baseExpression": { "argumentTypes": null, "id": 3706, "name": "recipients", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 3664, "src": "981:10:18", "typeDescriptions": { "typeIdentifier": "t_array$_t_address_$dyn_storage", "typeString": "address[] storage ref" } }, "id": 3708, "indexExpression": { "argumentTypes": null, "id": 3707, "name": "i",