UNPKG

@gooddollar/goodcontracts

Version:
949 lines (948 loc) 58 kB
{ "contractName": "IdentityGuardMock", "abi": [ { "inputs": [ { "internalType": "contract Identity", "name": "_identity", "type": "address" } ], "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": "identity", "outputs": [ { "internalType": "contract Identity", "name": "", "type": "address" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "isOwner", "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": false, "inputs": [], "name": "renounceOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "internalType": "contract Identity", "name": "_identity", "type": "address" } ], "name": "setIdentity", "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": [ { "internalType": "address", "name": "to", "type": "address" } ], "name": "blacklistMock", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "internalType": "address", "name": "to", "type": "address" } ], "name": "checkWhitelisted", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "payable": false, "stateMutability": "nonpayable", "type": "function" } ], "metadata": "{\"compiler\":{\"version\":\"0.5.16+commit.9c3226ce\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"contract Identity\",\"name\":\"_identity\",\"type\":\"address\"}],\"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\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"}],\"name\":\"blacklistMock\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"}],\"name\":\"checkWhitelisted\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"identity\",\"outputs\":[{\"internalType\":\"contract Identity\",\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"isOwner\",\"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\":false,\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"contract Identity\",\"name\":\"_identity\",\"type\":\"address\"}],\"name\":\"setIdentity\",\"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.\"},\"owner()\":{\"return\":\"the address of the owner.\"},\"renounceOwnership()\":{\"details\":\"Allows the current owner to relinquish control of the contract.\"},\"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/mocks/IdentityGuardMock.sol\":\"IdentityGuardMock\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"/Users/hadar/workspace/GoodDollar/GoodBootstrap/packages/contracts/contracts/dao/schemes/SchemeGuard.sol\":{\"keccak256\":\"0x32e1b2a172e2c22a6aa757bfcb0722cc67f64c5c2e48df3dec2737903516d565\",\"urls\":[\"bzz-raw://bee57a8eba08348e93a0c18f3ab534e67865c0fa27afe27f5cf234bd5f248915\",\"dweb:/ipfs/Qmd8aveHWcUkYWMyJrJRZPyVXj8MAMBfpBFo6g4Z2VJeo3\"]},\"/Users/hadar/workspace/GoodDollar/GoodBootstrap/packages/contracts/contracts/identity/Identity.sol\":{\"keccak256\":\"0x282184478f1d618d3523b28a84a7f7003dfdc99cad120e5e358d2cce1f5fb491\",\"urls\":[\"bzz-raw://67e17ecb57b24c4fb801abc2c52c3148af3b967e28da4fb7e074d18efb7a57c1\",\"dweb:/ipfs/QmfZ8jXhdTHtxr3gfByRj4HnXnGynX7SLZWWGR8k768aGB\"]},\"/Users/hadar/workspace/GoodDollar/GoodBootstrap/packages/contracts/contracts/identity/IdentityAdminRole.sol\":{\"keccak256\":\"0x8e82c45eefe0da77d017144dfad12602c68124297035937901cdd08ce48c57ff\",\"urls\":[\"bzz-raw://e20e606342b3b35f41a081294cf3f716fe7e27e81d3090daa37c5208f4ef4bc3\",\"dweb:/ipfs/QmVEhHpiwVsksnPyHkfNa5LpTBLxoP9kj5NRZUBv456ewK\"]},\"/Users/hadar/workspace/GoodDollar/GoodBootstrap/packages/contracts/contracts/identity/IdentityGuard.sol\":{\"keccak256\":\"0xcc395c0e8f812201b5ed1f45e7272120ee5ffe73bfe13e325dfd872aef235b22\",\"urls\":[\"bzz-raw://58f93e4b9f48ec31ac151208e4f9e6b356cc23dfc9585d846bc09bf35d6ff7be\",\"dweb:/ipfs/QmdxJHUCaFx8N66kkDhYdA4k6d2V91yBRG6sombuPxBq7X\"]},\"/Users/hadar/workspace/GoodDollar/GoodBootstrap/packages/contracts/contracts/mocks/IdentityGuardMock.sol\":{\"keccak256\":\"0x33befc393ae21dc4286b7d18464c8800159688c3b3f7b32bdba200b22287498b\",\"urls\":[\"bzz-raw://95b54931187af92b6a9a26ed84c168354c6957219c6da17ef396568410e1b902\",\"dweb:/ipfs/QmU7dSR7EAp2PWKsUTLXBDA1avqnjrCVvja7qdDYuZL7Mf\"]},\"@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/access/Roles.sol\":{\"keccak256\":\"0x659ba0f9a3392cd50a8a5fafaf5dfd8c6a0878f6a4613bceff4e90dceddcd865\",\"urls\":[\"bzz-raw://4ca6617349a9b36fd82e9442a8e445ce9021a174e4399d1457ddc894ee3f5df3\",\"dweb:/ipfs/QmcmyB4cNazZ1sw963Afaijt67M9bDgwmGXCgQajGTD4tm\"]},\"openzeppelin-solidity/contracts/access/roles/PauserRole.sol\":{\"keccak256\":\"0x6506133e295a7199df2ac5dfc52853d9d767f68450b6d0193e9d8056b164ce86\",\"urls\":[\"bzz-raw://9c03592a9e6b1377e401b74eccf175a250232b5a341347d3fc5cb50e9bc86ba2\",\"dweb:/ipfs/QmYAr1yXT89hNUMJ37aiBpD9HtYfBDqmueVCzphRuuU7oZ\"]},\"openzeppelin-solidity/contracts/lifecycle/Pausable.sol\":{\"keccak256\":\"0x3b0ed31deeba7e3c6cfbbe8092a6b427084ee390800a06acdea5c17c8185d606\",\"urls\":[\"bzz-raw://bbdbf9d3754fcdcc85aec0432fabcec914317b1c2081b43753442ed53853a34a\",\"dweb:/ipfs/QmVHWQBn5xQkQEHhyGNEeS5gjjALZEk5ZfcjFt7kL6MoLy\"]},\"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": "0x608060405234801561001057600080fd5b5060405161070e38038061070e8339818101604052602081101561003357600080fd5b5051600080546001600160a01b031916331780825560405183926001600160a01b039290921691907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a36001600160a01b0381166100db576040805162461bcd60e51b815260206004820152601960248201527f537570706c696564206964656e74697479206973206e756c6c00000000000000604482015290519081900360640190fd5b600180546001600160a01b0319166001600160a01b0392909216919091179055506106038061010b6000396000f3fe608060405234801561001057600080fd5b50600436106100885760003560e01c80638da5cb5b1161005b5780638da5cb5b1461011b5780638f32d59b14610123578063b62305321461012b578063f2fde38b1461015157610088565b806320d8dad01461008d5780632c159a1a146100c75780635d5bf178146100eb578063715018a614610113575b600080fd5b6100b3600480360360208110156100a357600080fd5b50356001600160a01b0316610177565b604080519115158252519081900360200190f35b6100cf610241565b604080516001600160a01b039092168252519081900360200190f35b6101116004803603602081101561010157600080fd5b50356001600160a01b0316610250565b005b610111610339565b6100cf610394565b6100b36103a3565b6100b36004803603602081101561014157600080fd5b50356001600160a01b03166103b4565b6101116004803603602081101561016757600080fd5b50356001600160a01b0316610543565b60015460408051633af32abf60e01b81526001600160a01b038085166004830152915160009385931691633af32abf916024808301926020929190829003018186803b1580156101c657600080fd5b505afa1580156101da573d6000803e3d6000fd5b505050506040513d60208110156101f057600080fd5b5051610238576040805162461bcd60e51b81526020600482015260126024820152711a5cc81b9bdd081dda1a5d195b1a5cdd195960721b604482015290519081900360640190fd5b50600192915050565b6001546001600160a01b031681565b6102586103a3565b61026157600080fd5b806001600160a01b031663223668446040518163ffffffff1660e01b815260040160206040518083038186803b15801561029a57600080fd5b505afa1580156102ae573d6000803e3d6000fd5b505050506040513d60208110156102c457600080fd5b5051610317576040805162461bcd60e51b815260206004820152601a60248201527f4964656e74697479206973206e6f742072656769737465726564000000000000604482015290519081900360640190fd5b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6103416103a3565b61034a57600080fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000546001600160a01b031690565b6000546001600160a01b0316331490565b6001546040805163fe575a8760e01b815233600482015290516000926001600160a01b03169163fe575a87916024808301926020929190829003018186803b1580156103ff57600080fd5b505afa158015610413573d6000803e3d6000fd5b505050506040513d602081101561042957600080fd5b505115610475576040805162461bcd60e51b815260206004820152601560248201527410d85b1b195c881a5cc8189b1858dadb1a5cdd1959605a1b604482015290519081900360640190fd5b6001546040805163fe575a8760e01b81526001600160a01b03808616600483015291518593929092169163fe575a8791602480820192602092909190829003018186803b1580156104c557600080fd5b505afa1580156104d9573d6000803e3d6000fd5b505050506040513d60208110156104ef57600080fd5b505115610238576040805162461bcd60e51b815260206004820152601760248201527f526563656976657220697320626c61636b6c6973746564000000000000000000604482015290519081900360640190fd5b61054b6103a3565b61055457600080fd5b61055d81610560565b50565b6001600160a01b03811661057357600080fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b039290921691909117905556fea265627a7a723158205b692145512e7e97cd26606732d4fb90b267997da7f1ae802176d4a3f290850064736f6c63430005100032", "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100885760003560e01c80638da5cb5b1161005b5780638da5cb5b1461011b5780638f32d59b14610123578063b62305321461012b578063f2fde38b1461015157610088565b806320d8dad01461008d5780632c159a1a146100c75780635d5bf178146100eb578063715018a614610113575b600080fd5b6100b3600480360360208110156100a357600080fd5b50356001600160a01b0316610177565b604080519115158252519081900360200190f35b6100cf610241565b604080516001600160a01b039092168252519081900360200190f35b6101116004803603602081101561010157600080fd5b50356001600160a01b0316610250565b005b610111610339565b6100cf610394565b6100b36103a3565b6100b36004803603602081101561014157600080fd5b50356001600160a01b03166103b4565b6101116004803603602081101561016757600080fd5b50356001600160a01b0316610543565b60015460408051633af32abf60e01b81526001600160a01b038085166004830152915160009385931691633af32abf916024808301926020929190829003018186803b1580156101c657600080fd5b505afa1580156101da573d6000803e3d6000fd5b505050506040513d60208110156101f057600080fd5b5051610238576040805162461bcd60e51b81526020600482015260126024820152711a5cc81b9bdd081dda1a5d195b1a5cdd195960721b604482015290519081900360640190fd5b50600192915050565b6001546001600160a01b031681565b6102586103a3565b61026157600080fd5b806001600160a01b031663223668446040518163ffffffff1660e01b815260040160206040518083038186803b15801561029a57600080fd5b505afa1580156102ae573d6000803e3d6000fd5b505050506040513d60208110156102c457600080fd5b5051610317576040805162461bcd60e51b815260206004820152601a60248201527f4964656e74697479206973206e6f742072656769737465726564000000000000604482015290519081900360640190fd5b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6103416103a3565b61034a57600080fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000546001600160a01b031690565b6000546001600160a01b0316331490565b6001546040805163fe575a8760e01b815233600482015290516000926001600160a01b03169163fe575a87916024808301926020929190829003018186803b1580156103ff57600080fd5b505afa158015610413573d6000803e3d6000fd5b505050506040513d602081101561042957600080fd5b505115610475576040805162461bcd60e51b815260206004820152601560248201527410d85b1b195c881a5cc8189b1858dadb1a5cdd1959605a1b604482015290519081900360640190fd5b6001546040805163fe575a8760e01b81526001600160a01b03808616600483015291518593929092169163fe575a8791602480820192602092909190829003018186803b1580156104c557600080fd5b505afa1580156104d9573d6000803e3d6000fd5b505050506040513d60208110156104ef57600080fd5b505115610238576040805162461bcd60e51b815260206004820152601760248201527f526563656976657220697320626c61636b6c6973746564000000000000000000604482015290519081900360640190fd5b61054b6103a3565b61055457600080fd5b61055d81610560565b50565b6001600160a01b03811661057357600080fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b039290921691909117905556fea265627a7a723158205b692145512e7e97cd26606732d4fb90b267997da7f1ae802176d4a3f290850064736f6c63430005100032", "sourceMap": "101:407:35:-;;;151:66;8:9:-1;5:2;;;30:1;27;20:12;5:2;151:66:35;;;;;;;;;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;151:66:35;515:6:72;:19;;-1:-1:-1;;;;;;515:19:72;524:10;515:19;;;;549:40;;151:66:35;;-1:-1:-1;;;;;582:6:72;;;;;515;549:40;;515:6;;549:40;-1:-1:-1;;;;;483:24:28;;475:62;;;;;-1:-1:-1;;;475:62:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;547:8;:20;;-1:-1:-1;;;;;;547:20:28;-1:-1:-1;;;;;547:20:28;;;;;;;;;;-1:-1:-1;101:407:35;;;-1:-1:-1;101:407:35;;", "deployedSourceMap": "101:407:35:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;101:407:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;395:111;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;395:111:35;-1:-1:-1;;;;;395:111:35;;:::i;:::-;;;;;;;;;;;;;;;;;;278:24:28;;;:::i;:::-;;;;-1:-1:-1;;;;;278:24:28;;;;;;;;;;;;;;2735:168;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;2735:168:28;-1:-1:-1;;;;;2735:168:28;;:::i;:::-;;1347:137:72;;;:::i;659:77::-;;;:::i;979:90::-;;;:::i;223:166:35:-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;223:166:35;-1:-1:-1;;;;;223:166:35;;:::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;395:111:35:-;1455:8:28;;:32;;;-1:-1:-1;;;1455:32:28;;-1:-1:-1;;;;;1455:32:28;;;;;;;;;472:4:35;;459:2;;1455:8:28;;:22;;:32;;;;;;;;;;;;;;:8;:32;;;5:2:-1;;;;30:1;27;20:12;5:2;1455:32:28;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;1455:32:28;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;1455:32:28;1447:63;;;;;-1:-1:-1;;;1447:63:28;;;;;;;;;;;;-1:-1:-1;;;1447:63:28;;;;;;;;;;;;;;;-1:-1:-1;495:4:35;;395:111;-1:-1:-1;;395:111:35:o;278:24:28:-;;;-1:-1:-1;;;;;278:24:28;;:::o;2735:168::-;863:9:72;:7;:9::i;:::-;855:18;;;;;;2811:9:28;-1:-1:-1;;;;;2811:22:28;;:24;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2811:24:28;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;2811:24:28;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;2811:24:28;2803:63;;;;;-1:-1:-1;;;2803:63:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;2876:8;:20;;-1:-1:-1;;;;;;2876:20:28;-1:-1:-1;;;;;2876:20:28;;;;;;;;;;2735:168::o;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;223:166:35:-;705:8:28;;:34;;;-1:-1:-1;;;705:34:28;;728:10;705:34;;;;;;351:4:35;;-1:-1:-1;;;;;705:8:28;;:22;;:34;;;;;;;;;;;;;;:8;:34;;;5:2:-1;;;;30:1;27;20:12;5:2;705:34:28;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;705:34:28;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;705:34:28;704:35;696:69;;;;;-1:-1:-1;;;696:69:28;;;;;;;;;;;;-1:-1:-1;;;696:69:28;;;;;;;;;;;;;;;989:8;;:32;;;-1:-1:-1;;;989:32:28;;-1:-1:-1;;;;;989:32:28;;;;;;;;;330:2:35;;989:8:28;;;;;:22;;:32;;;;;;;;;;;;;;;:8;:32;;;5:2:-1;;;;30:1;27;20:12;5:2;989:32:28;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;989:32:28;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;989:32:28;988:33;980:69;;;;;-1:-1:-1;;;980:69:28;;;;;;;;;;;;;;;;;;;;;;;;;;;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 \"../identity/IdentityGuard.sol\";\nimport \"../identity/Identity.sol\";\n\ncontract IdentityGuardMock is IdentityGuard {\n constructor(Identity _identity) public IdentityGuard(_identity) {}\n\n function blacklistMock(address to)\n public\n onlyNotBlacklisted\n requireNotBlacklisted(to)\n returns (bool)\n {\n return true;\n }\n\n function checkWhitelisted(address to) public requireWhitelisted(to) returns (bool) {\n return true;\n }\n}\n", "sourcePath": "/Users/hadar/workspace/GoodDollar/GoodBootstrap/packages/contracts/contracts/mocks/IdentityGuardMock.sol", "ast": { "absolutePath": "/Users/hadar/workspace/GoodDollar/GoodBootstrap/packages/contracts/contracts/mocks/IdentityGuardMock.sol", "exportedSymbols": { "IdentityGuardMock": [ 6689 ] }, "id": 6690, "nodeType": "SourceUnit", "nodes": [ { "id": 6647, "literals": [ "solidity", ">", "0.5", ".4" ], "nodeType": "PragmaDirective", "src": "0:23:35" }, { "absolutePath": "/Users/hadar/workspace/GoodDollar/GoodBootstrap/packages/contracts/contracts/identity/IdentityGuard.sol", "file": "../identity/IdentityGuard.sol", "id": 6648, "nodeType": "ImportDirective", "scope": 6690, "sourceUnit": 5735, "src": "25:39:35", "symbolAliases": [], "unitAlias": "" }, { "absolutePath": "/Users/hadar/workspace/GoodDollar/GoodBootstrap/packages/contracts/contracts/identity/Identity.sol", "file": "../identity/Identity.sol", "id": 6649, "nodeType": "ImportDirective", "scope": 6690, "sourceUnit": 5448, "src": "65:34:35", "symbolAliases": [], "unitAlias": "" }, { "baseContracts": [ { "arguments": null, "baseName": { "contractScope": null, "id": 6650, "name": "IdentityGuard", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 5734, "src": "131:13:35", "typeDescriptions": { "typeIdentifier": "t_contract$_IdentityGuard_$5734", "typeString": "contract IdentityGuard" } }, "id": 6651, "nodeType": "InheritanceSpecifier", "src": "131:13:35" } ], "contractDependencies": [ 5734, 17253 ], "contractKind": "contract", "documentation": null, "fullyImplemented": true, "id": 6689, "linearizedBaseContracts": [ 6689, 5734, 17253 ], "name": "IdentityGuardMock", "nodeType": "ContractDefinition", "nodes": [ { "body": { "id": 6659, "nodeType": "Block", "src": "215:2:35", "statements": [] }, "documentation": null, "id": 6660, "implemented": true, "kind": "constructor", "modifiers": [ { "arguments": [ { "argumentTypes": null, "id": 6656, "name": "_identity", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6653, "src": "204:9:35", "typeDescriptions": { "typeIdentifier": "t_contract$_Identity_$5447", "typeString": "contract Identity" } } ], "id": 6657, "modifierName": { "argumentTypes": null, "id": 6655, "name": "IdentityGuard", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5734, "src": "190:13:35", "typeDescriptions": { "typeIdentifier": "t_type$_t_contract$_IdentityGuard_$5734_$", "typeString": "type(contract IdentityGuard)" } }, "nodeType": "ModifierInvocation", "src": "190:24:35" } ], "name": "", "nodeType": "FunctionDefinition", "parameters": { "id": 6654, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 6653, "name": "_identity", "nodeType": "VariableDeclaration", "scope": 6660, "src": "163:18:35", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_contract$_Identity_$5447", "typeString": "contract Identity" }, "typeName": { "contractScope": null, "id": 6652, "name": "Identity", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 5447, "src": "163:8:35", "typeDescriptions": { "typeIdentifier": "t_contract$_Identity_$5447", "typeString": "contract Identity" } }, "value": null, "visibility": "internal" } ], "src": "162:20:35" }, "returnParameters": { "id": 6658, "nodeType": "ParameterList", "parameters": [], "src": "215:0:35" }, "scope": 6689, "src": "151:66:35", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": { "id": 6674, "nodeType": "Block", "src": "361:28:35", "statements": [ { "expression": { "argumentTypes": null, "hexValue": "74727565", "id": 6672, "isConstant": false, "isLValue": false, "isPure": true, "kind": "bool", "lValueRequested": false, "nodeType": "Literal", "src": "378:4:35", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "value": "true" }, "functionReturnParameters": 6671, "id": 6673, "nodeType": "Return", "src": "371:11:35" } ] }, "documentation": null, "id": 6675, "implemented": true, "kind": "function", "modifiers": [ { "arguments": null, "id": 6665, "modifierName": { "argumentTypes": null, "id": 6664, "name": "onlyNotBlacklisted", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5615, "src": "281:18:35", "typeDescriptions": { "typeIdentifier": "t_modifier$__$", "typeString": "modifier ()" } }, "nodeType": "ModifierInvocation", "src": "281:18:35" }, { "arguments": [ { "argumentTypes": null, "id": 6667, "name": "to", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6662, "src": "330:2:35", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } } ], "id": 6668, "modifierName": { "argumentTypes": null, "id": 6666, "name": "requireNotBlacklisted", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5630, "src": "308:21:35", "typeDescriptions": { "typeIdentifier": "t_modifier$_t_address_$", "typeString": "modifier (address)" } }, "nodeType": "ModifierInvocation", "src": "308:25:35" } ], "name": "blacklistMock", "nodeType": "FunctionDefinition", "parameters": { "id": 6663, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 6662, "name": "to", "nodeType": "VariableDeclaration", "scope": 6675, "src": "246:10:35", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 6661, "name": "address", "nodeType": "ElementaryTypeName", "src": "246:7:35", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "245:12:35" }, "returnParameters": { "id": 6671, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 6670, "name": "", "nodeType": "VariableDeclaration", "scope": 6675, "src": "351:4:35", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 6669, "name": "bool", "nodeType": "ElementaryTypeName", "src": "351:4:35", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "350:6:35" }, "scope": 6689, "src": "223:166:35", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": { "id": 6687, "nodeType": "Block", "src": "478:28:35", "statements": [ { "expression": { "argumentTypes": null, "hexValue": "74727565", "id": 6685, "isConstant": false, "isLValue": false, "isPure": true, "kind": "bool", "lValueRequested": false, "nodeType": "Literal", "src": "495:4:35", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "value": "true" }, "functionReturnParameters": 6684, "id": 6686, "nodeType": "Return", "src": "488:11:35" } ] }, "documentation": null, "id": 6688, "implemented": true, "kind": "function", "modifiers": [ { "arguments": [ { "argumentTypes": null, "id": 6680, "name": "to", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6677, "src": "459:2:35", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } } ], "id": 6681, "modifierName": { "argumentTypes": null, "id": 6679, "name": "requireWhitelisted", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5657, "src": "440:18:35", "typeDescriptions": { "typeIdentifier": "t_modifier$_t_address_$", "typeString": "modifier (address)" } }, "nodeType": "ModifierInvocation", "src": "440:22:35" } ], "name": "checkWhitelisted", "nodeType": "FunctionDefinition", "parameters": { "id": 6678, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 6677, "name": "to", "nodeType": "VariableDeclaration", "scope": 6688, "src": "421:10:35", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 6676, "name": "address", "nodeType": "ElementaryTypeName", "src": "421:7:35", "stateMutability": "nonpayable", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } }, "value": null, "visibility": "internal" } ], "src": "420:12:35" }, "returnParameters": { "id": 6684, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 6683, "name": "", "nodeType": "VariableDeclaration", "scope": 6688, "src": "472:4:35", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "typeName": { "id": 6682, "name": "bool", "nodeType": "ElementaryTypeName", "src": "472:4:35", "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" } }, "value": null, "visibility": "internal" } ], "src": "471:6:35" }, "scope": 6689, "src": "395:111:35", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" } ], "scope": 6690, "src": "101:407:35" } ], "src": "0:509:35" }, "legacyAST": { "absolutePath": "/Users/hadar/workspace/GoodDollar/GoodBootstrap/packages/contracts/contracts/mocks/IdentityGuardMock.sol", "exportedSymbols": { "IdentityGuardMock": [ 6689 ] }, "id": 6690, "nodeType": "SourceUnit", "nodes": [ { "id": 6647, "literals": [ "solidity", ">", "0.5", ".4" ], "nodeType": "PragmaDirective", "src": "0:23:35" }, { "absolutePath": "/Users/hadar/workspace/GoodDollar/GoodBootstrap/packages/contracts/contracts/identity/IdentityGuard.sol", "file": "../identity/IdentityGuard.sol", "id": 6648, "nodeType": "ImportDirective", "scope": 6690, "sourceUnit": 5735, "src": "25:39:35", "symbolAliases": [], "unitAlias": "" }, { "absolutePath": "/Users/hadar/workspace/GoodDollar/GoodBootstrap/packages/contracts/contracts/identity/Identity.sol", "file": "../identity/Identity.sol", "id": 6649, "nodeType": "ImportDirective", "scope": 6690, "sourceUnit": 5448, "src": "65:34:35", "symbolAliases": [], "unitAlias": "" }, { "baseContracts": [ { "arguments": null, "baseName": { "contractScope": null, "id": 6650, "name": "IdentityGuard", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 5734, "src": "131:13:35", "typeDescriptions": { "typeIdentifier": "t_contract$_IdentityGuard_$5734", "typeString": "contract IdentityGuard" } }, "id": 6651, "nodeType": "InheritanceSpecifier", "src": "131:13:35" } ], "contractDependencies": [ 5734, 17253 ], "contractKind": "contract", "documentation": null, "fullyImplemented": true, "id": 6689, "linearizedBaseContracts": [ 6689, 5734, 17253 ], "name": "IdentityGuardMock", "nodeType": "ContractDefinition", "nodes": [ { "body": { "id": 6659, "nodeType": "Block", "src": "215:2:35", "statements": [] }, "documentation": null, "id": 6660, "implemented": true, "kind": "constructor", "modifiers": [ { "arguments": [ { "argumentTypes": null, "id": 6656, "name": "_identity", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6653, "src": "204:9:35", "typeDescriptions": { "typeIdentifier": "t_contract$_Identity_$5447", "typeString": "contract Identity" } } ], "id": 6657, "modifierName": { "argumentTypes": null, "id": 6655, "name": "IdentityGuard", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5734, "src": "190:13:35", "typeDescriptions": { "typeIdentifier": "t_type$_t_contract$_IdentityGuard_$5734_$", "typeString": "type(contract IdentityGuard)" } }, "nodeType": "ModifierInvocation", "src": "190:24:35" } ], "name": "", "nodeType": "FunctionDefinition", "parameters": { "id": 6654, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 6653, "name": "_identity", "nodeType": "VariableDeclaration", "scope": 6660, "src": "163:18:35", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_contract$_Identity_$5447", "typeString": "contract Identity" }, "typeName": { "contractScope": null, "id": 6652, "name": "Identity", "nodeType": "UserDefinedTypeName", "referencedDeclaration": 5447, "src": "163:8:35", "typeDescriptions": { "typeIdentifier": "t_contract$_Identity_$5447", "typeString": "contract Identity" } }, "value": null, "visibility": "internal" } ], "src": "162:20:35" }, "returnParameters": { "id": 6658, "nodeType": "ParameterList", "parameters": [], "src": "215:0:35" }, "scope": 6689, "src": "151:66:35", "stateMutability": "nonpayable", "superFunction": null, "visibility": "public" }, { "body": { "id": 6674, "nodeType": "Block", "src": "361:28:35", "statements": [ { "expression": { "argumentTypes": null, "hexValue": "74727565", "id": 6672, "isConstant": false, "isLValue": false, "isPure": true, "kind": "bool", "lValueRequested": false, "nodeType": "Literal", "src": "378:4:35", "subdenomination": null, "typeDescriptions": { "typeIdentifier": "t_bool", "typeString": "bool" }, "value": "true" }, "functionReturnParameters": 6671, "id": 6673, "nodeType": "Return", "src": "371:11:35" } ] }, "documentation": null, "id": 6675, "implemented": true, "kind": "function", "modifiers": [ { "arguments": null, "id": 6665, "modifierName": { "argumentTypes": null, "id": 6664, "name": "onlyNotBlacklisted", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5615, "src": "281:18:35", "typeDescriptions": { "typeIdentifier": "t_modifier$__$", "typeString": "modifier ()" } }, "nodeType": "ModifierInvocation", "src": "281:18:35" }, { "arguments": [ { "argumentTypes": null, "id": 6667, "name": "to", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 6662, "src": "330:2:35", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" } } ], "id": 6668, "modifierName": { "argumentTypes": null, "id": 6666, "name": "requireNotBlacklisted", "nodeType": "Identifier", "overloadedDeclarations": [], "referencedDeclaration": 5630, "src": "308:21:35", "typeDescriptions": { "typeIdentifier": "t_modifier$_t_address_$", "typeString": "modifier (address)" } }, "nodeType": "ModifierInvocation", "src": "308:25:35" } ], "name": "blacklistMock", "nodeType": "FunctionDefinition", "parameters": { "id": 6663, "nodeType": "ParameterList", "parameters": [ { "constant": false, "id": 6662, "name": "to", "nodeType": "VariableDeclaration", "scope": 6675, "src": "246:10:35", "stateVariable": false, "storageLocation": "default", "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }, "typeName": { "id": 6661, "name": "address",