@onchain-id/solidity
Advanced tools
Comparing version 0.3.2 to 0.4.0-beta1
@@ -5,20 +5,5 @@ { | ||
{ | ||
"constant": true, | ||
"inputs": [], | ||
"name": "issuedClaimCount", | ||
"outputs": [ | ||
{ | ||
"name": "", | ||
"type": "uint256" | ||
} | ||
], | ||
"payable": false, | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"anonymous": false, | ||
"inputs": [ | ||
{ | ||
"indexed": false, | ||
"internalType": "contract Identity", | ||
"name": "_identity", | ||
@@ -28,31 +13,3 @@ "type": "address" | ||
{ | ||
"indexed": false, | ||
"name": "claimTopic", | ||
"type": "uint256" | ||
} | ||
], | ||
"name": "ClaimValid", | ||
"type": "event" | ||
}, | ||
{ | ||
"anonymous": false, | ||
"inputs": [ | ||
{ | ||
"indexed": false, | ||
"name": "_identity", | ||
"type": "address" | ||
}, | ||
{ | ||
"indexed": false, | ||
"name": "claimTopic", | ||
"type": "uint256" | ||
} | ||
], | ||
"name": "ClaimInvalid", | ||
"type": "event" | ||
}, | ||
{ | ||
"constant": false, | ||
"inputs": [ | ||
{ | ||
"internalType": "bytes32", | ||
"name": "_claimId", | ||
@@ -62,48 +19,3 @@ "type": "bytes32" | ||
{ | ||
"name": "_identity", | ||
"type": "address" | ||
} | ||
], | ||
"name": "revokeClaim", | ||
"outputs": [ | ||
{ | ||
"name": "", | ||
"type": "bool" | ||
} | ||
], | ||
"payable": false, | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"constant": true, | ||
"inputs": [ | ||
{ | ||
"name": "_sig", | ||
"type": "bytes" | ||
} | ||
], | ||
"name": "isClaimRevoked", | ||
"outputs": [ | ||
{ | ||
"name": "result", | ||
"type": "bool" | ||
} | ||
], | ||
"payable": false, | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"constant": true, | ||
"inputs": [ | ||
{ | ||
"name": "_identity", | ||
"type": "address" | ||
}, | ||
{ | ||
"name": "_claimId", | ||
"type": "bytes32" | ||
}, | ||
{ | ||
"internalType": "uint256", | ||
"name": "claimTopic", | ||
@@ -113,2 +25,3 @@ "type": "uint256" | ||
{ | ||
"internalType": "bytes", | ||
"name": "sig", | ||
@@ -118,2 +31,3 @@ "type": "bytes" | ||
{ | ||
"internalType": "bytes", | ||
"name": "data", | ||
@@ -126,2 +40,3 @@ "type": "bytes" | ||
{ | ||
"internalType": "bool", | ||
"name": "claimValid", | ||
@@ -131,3 +46,2 @@ "type": "bool" | ||
], | ||
"payable": false, | ||
"stateMutability": "view", | ||
@@ -137,3 +51,3 @@ "type": "function" | ||
], | ||
"metadata": "{\"compiler\":{\"version\":\"0.5.10+commit.5a6ea5b1\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"constant\":true,\"inputs\":[{\"name\":\"_sig\",\"type\":\"bytes\"}],\"name\":\"isClaimRevoked\",\"outputs\":[{\"name\":\"result\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"_identity\",\"type\":\"address\"},{\"name\":\"_claimId\",\"type\":\"bytes32\"},{\"name\":\"claimTopic\",\"type\":\"uint256\"},{\"name\":\"sig\",\"type\":\"bytes\"},{\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"isClaimValid\",\"outputs\":[{\"name\":\"claimValid\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"issuedClaimCount\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"_claimId\",\"type\":\"bytes32\"},{\"name\":\"_identity\",\"type\":\"address\"}],\"name\":\"revokeClaim\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"name\":\"_identity\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"claimTopic\",\"type\":\"uint256\"}],\"name\":\"ClaimValid\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"name\":\"_identity\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"claimTopic\",\"type\":\"uint256\"}],\"name\":\"ClaimInvalid\",\"type\":\"event\"}],\"devdoc\":{\"methods\":{}},\"userdoc\":{\"methods\":{}}},\"settings\":{\"compilationTarget\":{\"/Users/kevinthizy/Documents/DEV/TokenY/OnchainID/solidity/contracts/IClaimIssuer.sol\":\"IClaimIssuer\"},\"evmVersion\":\"petersburg\",\"libraries\":{},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"/Users/kevinthizy/Documents/DEV/TokenY/OnchainID/solidity/contracts/ERC734.sol\":{\"keccak256\":\"0x63947ba56daec9e556ca640e58981275012940235c41ac758b22e9b019c9910c\",\"urls\":[\"bzzr://a136e81f420d0263277a37286ec5213e4c03e57a05cae3f23148f2ab70d8a72f\",\"dweb:/ipfs/QmTZ6uNgbc3uJqnSi5vksk8djghX343MoLMxBdtNoqTnJT\"]},\"/Users/kevinthizy/Documents/DEV/TokenY/OnchainID/solidity/contracts/IClaimIssuer.sol\":{\"keccak256\":\"0x0414e54576a063aad91c13ded39c01129c568dd4e5096af658c04f497f128ca5\",\"urls\":[\"bzzr://f7a393b7ed627f95f346b50be75065f777f987460c73f5f3ca55903251f1df78\",\"dweb:/ipfs/QmXgvJ2MyzWgSAKthJsfiGLWdbx6grFru4GeViQTWN2MJR\"]},\"/Users/kevinthizy/Documents/DEV/TokenY/OnchainID/solidity/contracts/IERC734.sol\":{\"keccak256\":\"0xd45b98aacdad2fcbfd451c0eb53dc08fedcd08365e7906e5544d853a3a907d42\",\"urls\":[\"bzzr://b152e3cf439e815b9c6c4084c3d761e26f95f0f8dfedec7b2bee43e58eacb67c\",\"dweb:/ipfs/QmQjZELV16qfr2vp55hgtPyaio63Zn7A2LKWp56ydyfQ8U\"]},\"/Users/kevinthizy/Documents/DEV/TokenY/OnchainID/solidity/contracts/IERC735.sol\":{\"keccak256\":\"0x360ca97a82349384cf2c86b1b63277b3d0f6cb376a47f87133ebf709803e1457\",\"urls\":[\"bzzr://3d1168979553bab74ab2b9140b14b852b08d90b091157ab8d2f0df53e1db705f\",\"dweb:/ipfs/Qmbha6f25EzXwbhDRJQVRasifgB2Ruyk1DXb3CU9uE9pbk\"]},\"/Users/kevinthizy/Documents/DEV/TokenY/OnchainID/solidity/contracts/Identity.sol\":{\"keccak256\":\"0xfb2d6e1c6f1d5a8aa9ac4d94284b3b60bcae9921ad80899581145d296fade8f9\",\"urls\":[\"bzzr://079004dad051caa2ffe87851ba9b08bf9508f1c8cb4d862e741e9825e15d5490\",\"dweb:/ipfs/QmdUfFoikFrpHQNHh1MdEEmx7iALLF7dnWrQUcGUhUEhHz\"]}},\"version\":1}", | ||
"metadata": "{\"compiler\":{\"version\":\"0.6.2+commit.bacdbe57\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"contract Identity\",\"name\":\"_identity\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"_claimId\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"claimTopic\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"sig\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"isClaimValid\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"claimValid\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"methods\":{}},\"userdoc\":{\"methods\":{}}},\"settings\":{\"compilationTarget\":{\"/Users/kevinthizy/Documents/DEV/TokenY/OnchainID/solidity/contracts/IClaimIssuer.sol\":\"IClaimIssuer\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"/Users/kevinthizy/Documents/DEV/TokenY/OnchainID/solidity/contracts/ERC734.sol\":{\"keccak256\":\"0x6f15119082e7bb40e98a95aeb97c6a498e1e1db479ec5711c2aa8fc497f81b66\",\"urls\":[\"bzz-raw://1d24c1507966cdfb4ef57fa56503a4fe78490c879c0a15b0c9261fe5ecd0f3ba\",\"dweb:/ipfs/QmZNNEuwkPjV1mKjJYqFrwyoGtXmffC4KnuT6NQShpcHec\"]},\"/Users/kevinthizy/Documents/DEV/TokenY/OnchainID/solidity/contracts/IClaimIssuer.sol\":{\"keccak256\":\"0x77c29c669547ebc3659f2ec892d031c4b24bbe64b3bf923470f6ca086fa2a38d\",\"urls\":[\"bzz-raw://bcf2e188c768c5354d1df9eb3fd9fcf9a425ebde6d7e0d216df38d6ae3205615\",\"dweb:/ipfs/QmUkvQPWCXJmNuD3EcYPrgZXT2f6Q5U5o9gomU9RcXL9DL\"]},\"/Users/kevinthizy/Documents/DEV/TokenY/OnchainID/solidity/contracts/IERC734.sol\":{\"keccak256\":\"0xcfbbf44500f07f94ecefe072464b5e4c600f597750d851b3a07181fa04582e6a\",\"urls\":[\"bzz-raw://9022fe1488fe69d2083c8cc788d486550a3a529e6ada1ffb01f89569069b38ba\",\"dweb:/ipfs/QmU6685VaGjhaync54H51BFWPduy4895rrVVtQ4tjJ7UCR\"]},\"/Users/kevinthizy/Documents/DEV/TokenY/OnchainID/solidity/contracts/IERC735.sol\":{\"keccak256\":\"0x489db3c6057a7d2e995363c54623bc370965e38fb19192e62309d7b7ea0ced03\",\"urls\":[\"bzz-raw://d3e864da9304151c63304467a7277d115b1053a5628fe71c3659369033f8b39c\",\"dweb:/ipfs/QmaRhofZTe9PxM2KZL4FegrYN5mWENy43yUVGRoBak1fW7\"]},\"/Users/kevinthizy/Documents/DEV/TokenY/OnchainID/solidity/contracts/Identity.sol\":{\"keccak256\":\"0xf003c2a71601b9b7430c7775f9cc4766b08b25e7ac6b50611607fb330a39bf77\",\"urls\":[\"bzz-raw://7f8384aa21a2ece9a9841a53585aed1db2ac06c6e04856972a9c7442e63361a5\",\"dweb:/ipfs/QmXJSQ7pSzn44oovqL3HgHUkquKpx8zCrKcKLHBZywJ4vq\"]}},\"version\":1}", | ||
"bytecode": "0x", | ||
@@ -143,3 +57,3 @@ "deployedBytecode": "0x", | ||
"deployedSourceMap": "", | ||
"source": "pragma solidity ^0.5.10;\n\nimport \"./Identity.sol\";\n\n//interface\ncontract IClaimIssuer{\n uint public issuedClaimCount;\n\n mapping (bytes => bool) revokedClaims;\n mapping (bytes32 => address) identityAddresses;\n\n event ClaimValid(Identity _identity, uint256 claimTopic);\n event ClaimInvalid(Identity _identity, uint256 claimTopic);\n\n function revokeClaim(bytes32 _claimId, address _identity) public returns(bool);\n // function revokeClaim(bytes memory _sig, address _identity) public returns(bool);\n // function isClaimRevoked(bytes32 _claimId) public view returns(bool);\n function isClaimRevoked(bytes memory _sig) public view returns(bool result);\n function isClaimValid(Identity _identity, bytes32 _claimId, uint256 claimTopic, bytes memory sig, bytes memory data)\n public\n view\n returns (bool claimValid);\n\n}\n", | ||
"source": "pragma solidity ^0.6.2;\n\nimport \"./Identity.sol\";\n\ninterface IClaimIssuer {\n function isClaimValid(Identity _identity, bytes32 _claimId, uint256 claimTopic, bytes calldata sig, bytes calldata data)\n external\n view\n returns (bool claimValid);\n}\n", | ||
"sourcePath": "/Users/kevinthizy/Documents/DEV/TokenY/OnchainID/solidity/contracts/IClaimIssuer.sol", | ||
@@ -150,18 +64,18 @@ "ast": { | ||
"IClaimIssuer": [ | ||
1017 | ||
1004 | ||
] | ||
}, | ||
"id": 1018, | ||
"id": 1005, | ||
"nodeType": "SourceUnit", | ||
"nodes": [ | ||
{ | ||
"id": 962, | ||
"id": 987, | ||
"literals": [ | ||
"solidity", | ||
"^", | ||
"0.5", | ||
".10" | ||
"0.6", | ||
".2" | ||
], | ||
"nodeType": "PragmaDirective", | ||
"src": "0:24:2" | ||
"src": "0:23:2" | ||
}, | ||
@@ -171,7 +85,7 @@ { | ||
"file": "./Identity.sol", | ||
"id": 963, | ||
"id": 988, | ||
"nodeType": "ImportDirective", | ||
"scope": 1018, | ||
"sourceUnit": 1675, | ||
"src": "26:24:2", | ||
"scope": 1005, | ||
"sourceUnit": 1668, | ||
"src": "25:24:2", | ||
"symbolAliases": [], | ||
@@ -181,10 +95,11 @@ "unitAlias": "" | ||
{ | ||
"abstract": false, | ||
"baseContracts": [], | ||
"contractDependencies": [], | ||
"contractKind": "contract", | ||
"contractKind": "interface", | ||
"documentation": null, | ||
"fullyImplemented": false, | ||
"id": 1017, | ||
"id": 1004, | ||
"linearizedBaseContracts": [ | ||
1017 | ||
1004 | ||
], | ||
@@ -195,460 +110,14 @@ "name": "IClaimIssuer", | ||
{ | ||
"constant": false, | ||
"id": 965, | ||
"name": "issuedClaimCount", | ||
"nodeType": "VariableDeclaration", | ||
"scope": 1017, | ||
"src": "91:28:2", | ||
"stateVariable": true, | ||
"storageLocation": "default", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_uint256", | ||
"typeString": "uint256" | ||
}, | ||
"typeName": { | ||
"id": 964, | ||
"name": "uint", | ||
"nodeType": "ElementaryTypeName", | ||
"src": "91:4:2", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_uint256", | ||
"typeString": "uint256" | ||
} | ||
}, | ||
"value": null, | ||
"visibility": "public" | ||
}, | ||
{ | ||
"constant": false, | ||
"id": 969, | ||
"name": "revokedClaims", | ||
"nodeType": "VariableDeclaration", | ||
"scope": 1017, | ||
"src": "126:37:2", | ||
"stateVariable": true, | ||
"storageLocation": "default", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_mapping$_t_bytes_memory_$_t_bool_$", | ||
"typeString": "mapping(bytes => bool)" | ||
}, | ||
"typeName": { | ||
"id": 968, | ||
"keyType": { | ||
"id": 966, | ||
"name": "bytes", | ||
"nodeType": "ElementaryTypeName", | ||
"src": "135:5:2", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_bytes_storage_ptr", | ||
"typeString": "bytes" | ||
} | ||
}, | ||
"nodeType": "Mapping", | ||
"src": "126:23:2", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_mapping$_t_bytes_memory_$_t_bool_$", | ||
"typeString": "mapping(bytes => bool)" | ||
}, | ||
"valueType": { | ||
"id": 967, | ||
"name": "bool", | ||
"nodeType": "ElementaryTypeName", | ||
"src": "144:4:2", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_bool", | ||
"typeString": "bool" | ||
} | ||
} | ||
}, | ||
"value": null, | ||
"visibility": "internal" | ||
}, | ||
{ | ||
"constant": false, | ||
"id": 973, | ||
"name": "identityAddresses", | ||
"nodeType": "VariableDeclaration", | ||
"scope": 1017, | ||
"src": "169:46:2", | ||
"stateVariable": true, | ||
"storageLocation": "default", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_mapping$_t_bytes32_$_t_address_$", | ||
"typeString": "mapping(bytes32 => address)" | ||
}, | ||
"typeName": { | ||
"id": 972, | ||
"keyType": { | ||
"id": 970, | ||
"name": "bytes32", | ||
"nodeType": "ElementaryTypeName", | ||
"src": "178:7:2", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_bytes32", | ||
"typeString": "bytes32" | ||
} | ||
}, | ||
"nodeType": "Mapping", | ||
"src": "169:28:2", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_mapping$_t_bytes32_$_t_address_$", | ||
"typeString": "mapping(bytes32 => address)" | ||
}, | ||
"valueType": { | ||
"id": 971, | ||
"name": "address", | ||
"nodeType": "ElementaryTypeName", | ||
"src": "189:7:2", | ||
"stateMutability": "nonpayable", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_address", | ||
"typeString": "address" | ||
} | ||
} | ||
}, | ||
"value": null, | ||
"visibility": "internal" | ||
}, | ||
{ | ||
"anonymous": false, | ||
"documentation": null, | ||
"id": 979, | ||
"name": "ClaimValid", | ||
"nodeType": "EventDefinition", | ||
"parameters": { | ||
"id": 978, | ||
"nodeType": "ParameterList", | ||
"parameters": [ | ||
{ | ||
"constant": false, | ||
"id": 975, | ||
"indexed": false, | ||
"name": "_identity", | ||
"nodeType": "VariableDeclaration", | ||
"scope": 979, | ||
"src": "239:18:2", | ||
"stateVariable": false, | ||
"storageLocation": "default", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_contract$_Identity_$1674", | ||
"typeString": "contract Identity" | ||
}, | ||
"typeName": { | ||
"contractScope": null, | ||
"id": 974, | ||
"name": "Identity", | ||
"nodeType": "UserDefinedTypeName", | ||
"referencedDeclaration": 1674, | ||
"src": "239:8:2", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_contract$_Identity_$1674", | ||
"typeString": "contract Identity" | ||
} | ||
}, | ||
"value": null, | ||
"visibility": "internal" | ||
}, | ||
{ | ||
"constant": false, | ||
"id": 977, | ||
"indexed": false, | ||
"name": "claimTopic", | ||
"nodeType": "VariableDeclaration", | ||
"scope": 979, | ||
"src": "259:18:2", | ||
"stateVariable": false, | ||
"storageLocation": "default", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_uint256", | ||
"typeString": "uint256" | ||
}, | ||
"typeName": { | ||
"id": 976, | ||
"name": "uint256", | ||
"nodeType": "ElementaryTypeName", | ||
"src": "259:7:2", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_uint256", | ||
"typeString": "uint256" | ||
} | ||
}, | ||
"value": null, | ||
"visibility": "internal" | ||
} | ||
], | ||
"src": "238:40:2" | ||
}, | ||
"src": "222:57:2" | ||
}, | ||
{ | ||
"anonymous": false, | ||
"documentation": null, | ||
"id": 985, | ||
"name": "ClaimInvalid", | ||
"nodeType": "EventDefinition", | ||
"parameters": { | ||
"id": 984, | ||
"nodeType": "ParameterList", | ||
"parameters": [ | ||
{ | ||
"constant": false, | ||
"id": 981, | ||
"indexed": false, | ||
"name": "_identity", | ||
"nodeType": "VariableDeclaration", | ||
"scope": 985, | ||
"src": "303:18:2", | ||
"stateVariable": false, | ||
"storageLocation": "default", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_contract$_Identity_$1674", | ||
"typeString": "contract Identity" | ||
}, | ||
"typeName": { | ||
"contractScope": null, | ||
"id": 980, | ||
"name": "Identity", | ||
"nodeType": "UserDefinedTypeName", | ||
"referencedDeclaration": 1674, | ||
"src": "303:8:2", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_contract$_Identity_$1674", | ||
"typeString": "contract Identity" | ||
} | ||
}, | ||
"value": null, | ||
"visibility": "internal" | ||
}, | ||
{ | ||
"constant": false, | ||
"id": 983, | ||
"indexed": false, | ||
"name": "claimTopic", | ||
"nodeType": "VariableDeclaration", | ||
"scope": 985, | ||
"src": "323:18:2", | ||
"stateVariable": false, | ||
"storageLocation": "default", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_uint256", | ||
"typeString": "uint256" | ||
}, | ||
"typeName": { | ||
"id": 982, | ||
"name": "uint256", | ||
"nodeType": "ElementaryTypeName", | ||
"src": "323:7:2", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_uint256", | ||
"typeString": "uint256" | ||
} | ||
}, | ||
"value": null, | ||
"visibility": "internal" | ||
} | ||
], | ||
"src": "302:40:2" | ||
}, | ||
"src": "284:59:2" | ||
}, | ||
{ | ||
"body": null, | ||
"documentation": null, | ||
"id": 994, | ||
"functionSelector": "2a0ba5af", | ||
"id": 1003, | ||
"implemented": false, | ||
"kind": "function", | ||
"modifiers": [], | ||
"name": "revokeClaim", | ||
"nodeType": "FunctionDefinition", | ||
"parameters": { | ||
"id": 990, | ||
"nodeType": "ParameterList", | ||
"parameters": [ | ||
{ | ||
"constant": false, | ||
"id": 987, | ||
"name": "_claimId", | ||
"nodeType": "VariableDeclaration", | ||
"scope": 994, | ||
"src": "370:16:2", | ||
"stateVariable": false, | ||
"storageLocation": "default", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_bytes32", | ||
"typeString": "bytes32" | ||
}, | ||
"typeName": { | ||
"id": 986, | ||
"name": "bytes32", | ||
"nodeType": "ElementaryTypeName", | ||
"src": "370:7:2", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_bytes32", | ||
"typeString": "bytes32" | ||
} | ||
}, | ||
"value": null, | ||
"visibility": "internal" | ||
}, | ||
{ | ||
"constant": false, | ||
"id": 989, | ||
"name": "_identity", | ||
"nodeType": "VariableDeclaration", | ||
"scope": 994, | ||
"src": "388:17:2", | ||
"stateVariable": false, | ||
"storageLocation": "default", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_address", | ||
"typeString": "address" | ||
}, | ||
"typeName": { | ||
"id": 988, | ||
"name": "address", | ||
"nodeType": "ElementaryTypeName", | ||
"src": "388:7:2", | ||
"stateMutability": "nonpayable", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_address", | ||
"typeString": "address" | ||
} | ||
}, | ||
"value": null, | ||
"visibility": "internal" | ||
} | ||
], | ||
"src": "369:37:2" | ||
}, | ||
"returnParameters": { | ||
"id": 993, | ||
"nodeType": "ParameterList", | ||
"parameters": [ | ||
{ | ||
"constant": false, | ||
"id": 992, | ||
"name": "", | ||
"nodeType": "VariableDeclaration", | ||
"scope": 994, | ||
"src": "422:4:2", | ||
"stateVariable": false, | ||
"storageLocation": "default", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_bool", | ||
"typeString": "bool" | ||
}, | ||
"typeName": { | ||
"id": 991, | ||
"name": "bool", | ||
"nodeType": "ElementaryTypeName", | ||
"src": "422:4:2", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_bool", | ||
"typeString": "bool" | ||
} | ||
}, | ||
"value": null, | ||
"visibility": "internal" | ||
} | ||
], | ||
"src": "421:6:2" | ||
}, | ||
"scope": 1017, | ||
"src": "349:79:2", | ||
"stateMutability": "nonpayable", | ||
"superFunction": null, | ||
"visibility": "public" | ||
}, | ||
{ | ||
"body": null, | ||
"documentation": null, | ||
"id": 1001, | ||
"implemented": false, | ||
"kind": "function", | ||
"modifiers": [], | ||
"name": "isClaimRevoked", | ||
"nodeType": "FunctionDefinition", | ||
"parameters": { | ||
"id": 997, | ||
"nodeType": "ParameterList", | ||
"parameters": [ | ||
{ | ||
"constant": false, | ||
"id": 996, | ||
"name": "_sig", | ||
"nodeType": "VariableDeclaration", | ||
"scope": 1001, | ||
"src": "621:17:2", | ||
"stateVariable": false, | ||
"storageLocation": "memory", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_bytes_memory_ptr", | ||
"typeString": "bytes" | ||
}, | ||
"typeName": { | ||
"id": 995, | ||
"name": "bytes", | ||
"nodeType": "ElementaryTypeName", | ||
"src": "621:5:2", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_bytes_storage_ptr", | ||
"typeString": "bytes" | ||
} | ||
}, | ||
"value": null, | ||
"visibility": "internal" | ||
} | ||
], | ||
"src": "620:19:2" | ||
}, | ||
"returnParameters": { | ||
"id": 1000, | ||
"nodeType": "ParameterList", | ||
"parameters": [ | ||
{ | ||
"constant": false, | ||
"id": 999, | ||
"name": "result", | ||
"nodeType": "VariableDeclaration", | ||
"scope": 1001, | ||
"src": "660:11:2", | ||
"stateVariable": false, | ||
"storageLocation": "default", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_bool", | ||
"typeString": "bool" | ||
}, | ||
"typeName": { | ||
"id": 998, | ||
"name": "bool", | ||
"nodeType": "ElementaryTypeName", | ||
"src": "660:4:2", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_bool", | ||
"typeString": "bool" | ||
} | ||
}, | ||
"value": null, | ||
"visibility": "internal" | ||
} | ||
], | ||
"src": "659:13:2" | ||
}, | ||
"scope": 1017, | ||
"src": "597:76:2", | ||
"stateMutability": "view", | ||
"superFunction": null, | ||
"visibility": "public" | ||
}, | ||
{ | ||
"body": null, | ||
"documentation": null, | ||
"id": 1016, | ||
"implemented": false, | ||
"kind": "function", | ||
"modifiers": [], | ||
"name": "isClaimValid", | ||
"nodeType": "FunctionDefinition", | ||
"overrides": null, | ||
"parameters": { | ||
"id": 1012, | ||
"id": 999, | ||
"nodeType": "ParameterList", | ||
@@ -658,11 +127,12 @@ "parameters": [ | ||
"constant": false, | ||
"id": 1003, | ||
"id": 990, | ||
"name": "_identity", | ||
"nodeType": "VariableDeclaration", | ||
"scope": 1016, | ||
"src": "700:18:2", | ||
"overrides": null, | ||
"scope": 1003, | ||
"src": "102:18:2", | ||
"stateVariable": false, | ||
"storageLocation": "default", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_contract$_Identity_$1674", | ||
"typeIdentifier": "t_contract$_Identity_$1667", | ||
"typeString": "contract Identity" | ||
@@ -672,9 +142,9 @@ }, | ||
"contractScope": null, | ||
"id": 1002, | ||
"id": 989, | ||
"name": "Identity", | ||
"nodeType": "UserDefinedTypeName", | ||
"referencedDeclaration": 1674, | ||
"src": "700:8:2", | ||
"referencedDeclaration": 1667, | ||
"src": "102:8:2", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_contract$_Identity_$1674", | ||
"typeIdentifier": "t_contract$_Identity_$1667", | ||
"typeString": "contract Identity" | ||
@@ -688,7 +158,8 @@ } | ||
"constant": false, | ||
"id": 1005, | ||
"id": 992, | ||
"name": "_claimId", | ||
"nodeType": "VariableDeclaration", | ||
"scope": 1016, | ||
"src": "720:16:2", | ||
"overrides": null, | ||
"scope": 1003, | ||
"src": "122:16:2", | ||
"stateVariable": false, | ||
@@ -701,6 +172,6 @@ "storageLocation": "default", | ||
"typeName": { | ||
"id": 1004, | ||
"id": 991, | ||
"name": "bytes32", | ||
"nodeType": "ElementaryTypeName", | ||
"src": "720:7:2", | ||
"src": "122:7:2", | ||
"typeDescriptions": { | ||
@@ -716,7 +187,8 @@ "typeIdentifier": "t_bytes32", | ||
"constant": false, | ||
"id": 1007, | ||
"id": 994, | ||
"name": "claimTopic", | ||
"nodeType": "VariableDeclaration", | ||
"scope": 1016, | ||
"src": "738:18:2", | ||
"overrides": null, | ||
"scope": 1003, | ||
"src": "140:18:2", | ||
"stateVariable": false, | ||
@@ -729,6 +201,6 @@ "storageLocation": "default", | ||
"typeName": { | ||
"id": 1006, | ||
"id": 993, | ||
"name": "uint256", | ||
"nodeType": "ElementaryTypeName", | ||
"src": "738:7:2", | ||
"src": "140:7:2", | ||
"typeDescriptions": { | ||
@@ -744,18 +216,19 @@ "typeIdentifier": "t_uint256", | ||
"constant": false, | ||
"id": 1009, | ||
"id": 996, | ||
"name": "sig", | ||
"nodeType": "VariableDeclaration", | ||
"scope": 1016, | ||
"src": "758:16:2", | ||
"overrides": null, | ||
"scope": 1003, | ||
"src": "160:18:2", | ||
"stateVariable": false, | ||
"storageLocation": "memory", | ||
"storageLocation": "calldata", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_bytes_memory_ptr", | ||
"typeIdentifier": "t_bytes_calldata_ptr", | ||
"typeString": "bytes" | ||
}, | ||
"typeName": { | ||
"id": 1008, | ||
"id": 995, | ||
"name": "bytes", | ||
"nodeType": "ElementaryTypeName", | ||
"src": "758:5:2", | ||
"src": "160:5:2", | ||
"typeDescriptions": { | ||
@@ -771,18 +244,19 @@ "typeIdentifier": "t_bytes_storage_ptr", | ||
"constant": false, | ||
"id": 1011, | ||
"id": 998, | ||
"name": "data", | ||
"nodeType": "VariableDeclaration", | ||
"scope": 1016, | ||
"src": "776:17:2", | ||
"overrides": null, | ||
"scope": 1003, | ||
"src": "180:19:2", | ||
"stateVariable": false, | ||
"storageLocation": "memory", | ||
"storageLocation": "calldata", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_bytes_memory_ptr", | ||
"typeIdentifier": "t_bytes_calldata_ptr", | ||
"typeString": "bytes" | ||
}, | ||
"typeName": { | ||
"id": 1010, | ||
"id": 997, | ||
"name": "bytes", | ||
"nodeType": "ElementaryTypeName", | ||
"src": "776:5:2", | ||
"src": "180:5:2", | ||
"typeDescriptions": { | ||
@@ -797,6 +271,6 @@ "typeIdentifier": "t_bytes_storage_ptr", | ||
], | ||
"src": "699:95:2" | ||
"src": "101:99:2" | ||
}, | ||
"returnParameters": { | ||
"id": 1015, | ||
"id": 1002, | ||
"nodeType": "ParameterList", | ||
@@ -806,7 +280,8 @@ "parameters": [ | ||
"constant": false, | ||
"id": 1014, | ||
"id": 1001, | ||
"name": "claimValid", | ||
"nodeType": "VariableDeclaration", | ||
"scope": 1016, | ||
"src": "828:15:2", | ||
"overrides": null, | ||
"scope": 1003, | ||
"src": "236:15:2", | ||
"stateVariable": false, | ||
@@ -819,6 +294,6 @@ "storageLocation": "default", | ||
"typeName": { | ||
"id": 1013, | ||
"id": 1000, | ||
"name": "bool", | ||
"nodeType": "ElementaryTypeName", | ||
"src": "828:4:2", | ||
"src": "236:4:2", | ||
"typeDescriptions": { | ||
@@ -833,16 +308,16 @@ "typeIdentifier": "t_bool", | ||
], | ||
"src": "827:17:2" | ||
"src": "235:17:2" | ||
}, | ||
"scope": 1017, | ||
"src": "678:167:2", | ||
"scope": 1004, | ||
"src": "80:173:2", | ||
"stateMutability": "view", | ||
"superFunction": null, | ||
"visibility": "public" | ||
"virtual": false, | ||
"visibility": "external" | ||
} | ||
], | ||
"scope": 1018, | ||
"src": "64:784:2" | ||
"scope": 1005, | ||
"src": "51:204:2" | ||
} | ||
], | ||
"src": "0:849:2" | ||
"src": "0:256:2" | ||
}, | ||
@@ -853,18 +328,18 @@ "legacyAST": { | ||
"IClaimIssuer": [ | ||
1017 | ||
1004 | ||
] | ||
}, | ||
"id": 1018, | ||
"id": 1005, | ||
"nodeType": "SourceUnit", | ||
"nodes": [ | ||
{ | ||
"id": 962, | ||
"id": 987, | ||
"literals": [ | ||
"solidity", | ||
"^", | ||
"0.5", | ||
".10" | ||
"0.6", | ||
".2" | ||
], | ||
"nodeType": "PragmaDirective", | ||
"src": "0:24:2" | ||
"src": "0:23:2" | ||
}, | ||
@@ -874,7 +349,7 @@ { | ||
"file": "./Identity.sol", | ||
"id": 963, | ||
"id": 988, | ||
"nodeType": "ImportDirective", | ||
"scope": 1018, | ||
"sourceUnit": 1675, | ||
"src": "26:24:2", | ||
"scope": 1005, | ||
"sourceUnit": 1668, | ||
"src": "25:24:2", | ||
"symbolAliases": [], | ||
@@ -884,10 +359,11 @@ "unitAlias": "" | ||
{ | ||
"abstract": false, | ||
"baseContracts": [], | ||
"contractDependencies": [], | ||
"contractKind": "contract", | ||
"contractKind": "interface", | ||
"documentation": null, | ||
"fullyImplemented": false, | ||
"id": 1017, | ||
"id": 1004, | ||
"linearizedBaseContracts": [ | ||
1017 | ||
1004 | ||
], | ||
@@ -898,460 +374,14 @@ "name": "IClaimIssuer", | ||
{ | ||
"constant": false, | ||
"id": 965, | ||
"name": "issuedClaimCount", | ||
"nodeType": "VariableDeclaration", | ||
"scope": 1017, | ||
"src": "91:28:2", | ||
"stateVariable": true, | ||
"storageLocation": "default", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_uint256", | ||
"typeString": "uint256" | ||
}, | ||
"typeName": { | ||
"id": 964, | ||
"name": "uint", | ||
"nodeType": "ElementaryTypeName", | ||
"src": "91:4:2", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_uint256", | ||
"typeString": "uint256" | ||
} | ||
}, | ||
"value": null, | ||
"visibility": "public" | ||
}, | ||
{ | ||
"constant": false, | ||
"id": 969, | ||
"name": "revokedClaims", | ||
"nodeType": "VariableDeclaration", | ||
"scope": 1017, | ||
"src": "126:37:2", | ||
"stateVariable": true, | ||
"storageLocation": "default", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_mapping$_t_bytes_memory_$_t_bool_$", | ||
"typeString": "mapping(bytes => bool)" | ||
}, | ||
"typeName": { | ||
"id": 968, | ||
"keyType": { | ||
"id": 966, | ||
"name": "bytes", | ||
"nodeType": "ElementaryTypeName", | ||
"src": "135:5:2", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_bytes_storage_ptr", | ||
"typeString": "bytes" | ||
} | ||
}, | ||
"nodeType": "Mapping", | ||
"src": "126:23:2", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_mapping$_t_bytes_memory_$_t_bool_$", | ||
"typeString": "mapping(bytes => bool)" | ||
}, | ||
"valueType": { | ||
"id": 967, | ||
"name": "bool", | ||
"nodeType": "ElementaryTypeName", | ||
"src": "144:4:2", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_bool", | ||
"typeString": "bool" | ||
} | ||
} | ||
}, | ||
"value": null, | ||
"visibility": "internal" | ||
}, | ||
{ | ||
"constant": false, | ||
"id": 973, | ||
"name": "identityAddresses", | ||
"nodeType": "VariableDeclaration", | ||
"scope": 1017, | ||
"src": "169:46:2", | ||
"stateVariable": true, | ||
"storageLocation": "default", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_mapping$_t_bytes32_$_t_address_$", | ||
"typeString": "mapping(bytes32 => address)" | ||
}, | ||
"typeName": { | ||
"id": 972, | ||
"keyType": { | ||
"id": 970, | ||
"name": "bytes32", | ||
"nodeType": "ElementaryTypeName", | ||
"src": "178:7:2", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_bytes32", | ||
"typeString": "bytes32" | ||
} | ||
}, | ||
"nodeType": "Mapping", | ||
"src": "169:28:2", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_mapping$_t_bytes32_$_t_address_$", | ||
"typeString": "mapping(bytes32 => address)" | ||
}, | ||
"valueType": { | ||
"id": 971, | ||
"name": "address", | ||
"nodeType": "ElementaryTypeName", | ||
"src": "189:7:2", | ||
"stateMutability": "nonpayable", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_address", | ||
"typeString": "address" | ||
} | ||
} | ||
}, | ||
"value": null, | ||
"visibility": "internal" | ||
}, | ||
{ | ||
"anonymous": false, | ||
"documentation": null, | ||
"id": 979, | ||
"name": "ClaimValid", | ||
"nodeType": "EventDefinition", | ||
"parameters": { | ||
"id": 978, | ||
"nodeType": "ParameterList", | ||
"parameters": [ | ||
{ | ||
"constant": false, | ||
"id": 975, | ||
"indexed": false, | ||
"name": "_identity", | ||
"nodeType": "VariableDeclaration", | ||
"scope": 979, | ||
"src": "239:18:2", | ||
"stateVariable": false, | ||
"storageLocation": "default", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_contract$_Identity_$1674", | ||
"typeString": "contract Identity" | ||
}, | ||
"typeName": { | ||
"contractScope": null, | ||
"id": 974, | ||
"name": "Identity", | ||
"nodeType": "UserDefinedTypeName", | ||
"referencedDeclaration": 1674, | ||
"src": "239:8:2", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_contract$_Identity_$1674", | ||
"typeString": "contract Identity" | ||
} | ||
}, | ||
"value": null, | ||
"visibility": "internal" | ||
}, | ||
{ | ||
"constant": false, | ||
"id": 977, | ||
"indexed": false, | ||
"name": "claimTopic", | ||
"nodeType": "VariableDeclaration", | ||
"scope": 979, | ||
"src": "259:18:2", | ||
"stateVariable": false, | ||
"storageLocation": "default", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_uint256", | ||
"typeString": "uint256" | ||
}, | ||
"typeName": { | ||
"id": 976, | ||
"name": "uint256", | ||
"nodeType": "ElementaryTypeName", | ||
"src": "259:7:2", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_uint256", | ||
"typeString": "uint256" | ||
} | ||
}, | ||
"value": null, | ||
"visibility": "internal" | ||
} | ||
], | ||
"src": "238:40:2" | ||
}, | ||
"src": "222:57:2" | ||
}, | ||
{ | ||
"anonymous": false, | ||
"documentation": null, | ||
"id": 985, | ||
"name": "ClaimInvalid", | ||
"nodeType": "EventDefinition", | ||
"parameters": { | ||
"id": 984, | ||
"nodeType": "ParameterList", | ||
"parameters": [ | ||
{ | ||
"constant": false, | ||
"id": 981, | ||
"indexed": false, | ||
"name": "_identity", | ||
"nodeType": "VariableDeclaration", | ||
"scope": 985, | ||
"src": "303:18:2", | ||
"stateVariable": false, | ||
"storageLocation": "default", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_contract$_Identity_$1674", | ||
"typeString": "contract Identity" | ||
}, | ||
"typeName": { | ||
"contractScope": null, | ||
"id": 980, | ||
"name": "Identity", | ||
"nodeType": "UserDefinedTypeName", | ||
"referencedDeclaration": 1674, | ||
"src": "303:8:2", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_contract$_Identity_$1674", | ||
"typeString": "contract Identity" | ||
} | ||
}, | ||
"value": null, | ||
"visibility": "internal" | ||
}, | ||
{ | ||
"constant": false, | ||
"id": 983, | ||
"indexed": false, | ||
"name": "claimTopic", | ||
"nodeType": "VariableDeclaration", | ||
"scope": 985, | ||
"src": "323:18:2", | ||
"stateVariable": false, | ||
"storageLocation": "default", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_uint256", | ||
"typeString": "uint256" | ||
}, | ||
"typeName": { | ||
"id": 982, | ||
"name": "uint256", | ||
"nodeType": "ElementaryTypeName", | ||
"src": "323:7:2", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_uint256", | ||
"typeString": "uint256" | ||
} | ||
}, | ||
"value": null, | ||
"visibility": "internal" | ||
} | ||
], | ||
"src": "302:40:2" | ||
}, | ||
"src": "284:59:2" | ||
}, | ||
{ | ||
"body": null, | ||
"documentation": null, | ||
"id": 994, | ||
"functionSelector": "2a0ba5af", | ||
"id": 1003, | ||
"implemented": false, | ||
"kind": "function", | ||
"modifiers": [], | ||
"name": "revokeClaim", | ||
"nodeType": "FunctionDefinition", | ||
"parameters": { | ||
"id": 990, | ||
"nodeType": "ParameterList", | ||
"parameters": [ | ||
{ | ||
"constant": false, | ||
"id": 987, | ||
"name": "_claimId", | ||
"nodeType": "VariableDeclaration", | ||
"scope": 994, | ||
"src": "370:16:2", | ||
"stateVariable": false, | ||
"storageLocation": "default", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_bytes32", | ||
"typeString": "bytes32" | ||
}, | ||
"typeName": { | ||
"id": 986, | ||
"name": "bytes32", | ||
"nodeType": "ElementaryTypeName", | ||
"src": "370:7:2", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_bytes32", | ||
"typeString": "bytes32" | ||
} | ||
}, | ||
"value": null, | ||
"visibility": "internal" | ||
}, | ||
{ | ||
"constant": false, | ||
"id": 989, | ||
"name": "_identity", | ||
"nodeType": "VariableDeclaration", | ||
"scope": 994, | ||
"src": "388:17:2", | ||
"stateVariable": false, | ||
"storageLocation": "default", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_address", | ||
"typeString": "address" | ||
}, | ||
"typeName": { | ||
"id": 988, | ||
"name": "address", | ||
"nodeType": "ElementaryTypeName", | ||
"src": "388:7:2", | ||
"stateMutability": "nonpayable", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_address", | ||
"typeString": "address" | ||
} | ||
}, | ||
"value": null, | ||
"visibility": "internal" | ||
} | ||
], | ||
"src": "369:37:2" | ||
}, | ||
"returnParameters": { | ||
"id": 993, | ||
"nodeType": "ParameterList", | ||
"parameters": [ | ||
{ | ||
"constant": false, | ||
"id": 992, | ||
"name": "", | ||
"nodeType": "VariableDeclaration", | ||
"scope": 994, | ||
"src": "422:4:2", | ||
"stateVariable": false, | ||
"storageLocation": "default", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_bool", | ||
"typeString": "bool" | ||
}, | ||
"typeName": { | ||
"id": 991, | ||
"name": "bool", | ||
"nodeType": "ElementaryTypeName", | ||
"src": "422:4:2", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_bool", | ||
"typeString": "bool" | ||
} | ||
}, | ||
"value": null, | ||
"visibility": "internal" | ||
} | ||
], | ||
"src": "421:6:2" | ||
}, | ||
"scope": 1017, | ||
"src": "349:79:2", | ||
"stateMutability": "nonpayable", | ||
"superFunction": null, | ||
"visibility": "public" | ||
}, | ||
{ | ||
"body": null, | ||
"documentation": null, | ||
"id": 1001, | ||
"implemented": false, | ||
"kind": "function", | ||
"modifiers": [], | ||
"name": "isClaimRevoked", | ||
"nodeType": "FunctionDefinition", | ||
"parameters": { | ||
"id": 997, | ||
"nodeType": "ParameterList", | ||
"parameters": [ | ||
{ | ||
"constant": false, | ||
"id": 996, | ||
"name": "_sig", | ||
"nodeType": "VariableDeclaration", | ||
"scope": 1001, | ||
"src": "621:17:2", | ||
"stateVariable": false, | ||
"storageLocation": "memory", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_bytes_memory_ptr", | ||
"typeString": "bytes" | ||
}, | ||
"typeName": { | ||
"id": 995, | ||
"name": "bytes", | ||
"nodeType": "ElementaryTypeName", | ||
"src": "621:5:2", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_bytes_storage_ptr", | ||
"typeString": "bytes" | ||
} | ||
}, | ||
"value": null, | ||
"visibility": "internal" | ||
} | ||
], | ||
"src": "620:19:2" | ||
}, | ||
"returnParameters": { | ||
"id": 1000, | ||
"nodeType": "ParameterList", | ||
"parameters": [ | ||
{ | ||
"constant": false, | ||
"id": 999, | ||
"name": "result", | ||
"nodeType": "VariableDeclaration", | ||
"scope": 1001, | ||
"src": "660:11:2", | ||
"stateVariable": false, | ||
"storageLocation": "default", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_bool", | ||
"typeString": "bool" | ||
}, | ||
"typeName": { | ||
"id": 998, | ||
"name": "bool", | ||
"nodeType": "ElementaryTypeName", | ||
"src": "660:4:2", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_bool", | ||
"typeString": "bool" | ||
} | ||
}, | ||
"value": null, | ||
"visibility": "internal" | ||
} | ||
], | ||
"src": "659:13:2" | ||
}, | ||
"scope": 1017, | ||
"src": "597:76:2", | ||
"stateMutability": "view", | ||
"superFunction": null, | ||
"visibility": "public" | ||
}, | ||
{ | ||
"body": null, | ||
"documentation": null, | ||
"id": 1016, | ||
"implemented": false, | ||
"kind": "function", | ||
"modifiers": [], | ||
"name": "isClaimValid", | ||
"nodeType": "FunctionDefinition", | ||
"overrides": null, | ||
"parameters": { | ||
"id": 1012, | ||
"id": 999, | ||
"nodeType": "ParameterList", | ||
@@ -1361,11 +391,12 @@ "parameters": [ | ||
"constant": false, | ||
"id": 1003, | ||
"id": 990, | ||
"name": "_identity", | ||
"nodeType": "VariableDeclaration", | ||
"scope": 1016, | ||
"src": "700:18:2", | ||
"overrides": null, | ||
"scope": 1003, | ||
"src": "102:18:2", | ||
"stateVariable": false, | ||
"storageLocation": "default", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_contract$_Identity_$1674", | ||
"typeIdentifier": "t_contract$_Identity_$1667", | ||
"typeString": "contract Identity" | ||
@@ -1375,9 +406,9 @@ }, | ||
"contractScope": null, | ||
"id": 1002, | ||
"id": 989, | ||
"name": "Identity", | ||
"nodeType": "UserDefinedTypeName", | ||
"referencedDeclaration": 1674, | ||
"src": "700:8:2", | ||
"referencedDeclaration": 1667, | ||
"src": "102:8:2", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_contract$_Identity_$1674", | ||
"typeIdentifier": "t_contract$_Identity_$1667", | ||
"typeString": "contract Identity" | ||
@@ -1391,7 +422,8 @@ } | ||
"constant": false, | ||
"id": 1005, | ||
"id": 992, | ||
"name": "_claimId", | ||
"nodeType": "VariableDeclaration", | ||
"scope": 1016, | ||
"src": "720:16:2", | ||
"overrides": null, | ||
"scope": 1003, | ||
"src": "122:16:2", | ||
"stateVariable": false, | ||
@@ -1404,6 +436,6 @@ "storageLocation": "default", | ||
"typeName": { | ||
"id": 1004, | ||
"id": 991, | ||
"name": "bytes32", | ||
"nodeType": "ElementaryTypeName", | ||
"src": "720:7:2", | ||
"src": "122:7:2", | ||
"typeDescriptions": { | ||
@@ -1419,7 +451,8 @@ "typeIdentifier": "t_bytes32", | ||
"constant": false, | ||
"id": 1007, | ||
"id": 994, | ||
"name": "claimTopic", | ||
"nodeType": "VariableDeclaration", | ||
"scope": 1016, | ||
"src": "738:18:2", | ||
"overrides": null, | ||
"scope": 1003, | ||
"src": "140:18:2", | ||
"stateVariable": false, | ||
@@ -1432,6 +465,6 @@ "storageLocation": "default", | ||
"typeName": { | ||
"id": 1006, | ||
"id": 993, | ||
"name": "uint256", | ||
"nodeType": "ElementaryTypeName", | ||
"src": "738:7:2", | ||
"src": "140:7:2", | ||
"typeDescriptions": { | ||
@@ -1447,18 +480,19 @@ "typeIdentifier": "t_uint256", | ||
"constant": false, | ||
"id": 1009, | ||
"id": 996, | ||
"name": "sig", | ||
"nodeType": "VariableDeclaration", | ||
"scope": 1016, | ||
"src": "758:16:2", | ||
"overrides": null, | ||
"scope": 1003, | ||
"src": "160:18:2", | ||
"stateVariable": false, | ||
"storageLocation": "memory", | ||
"storageLocation": "calldata", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_bytes_memory_ptr", | ||
"typeIdentifier": "t_bytes_calldata_ptr", | ||
"typeString": "bytes" | ||
}, | ||
"typeName": { | ||
"id": 1008, | ||
"id": 995, | ||
"name": "bytes", | ||
"nodeType": "ElementaryTypeName", | ||
"src": "758:5:2", | ||
"src": "160:5:2", | ||
"typeDescriptions": { | ||
@@ -1474,18 +508,19 @@ "typeIdentifier": "t_bytes_storage_ptr", | ||
"constant": false, | ||
"id": 1011, | ||
"id": 998, | ||
"name": "data", | ||
"nodeType": "VariableDeclaration", | ||
"scope": 1016, | ||
"src": "776:17:2", | ||
"overrides": null, | ||
"scope": 1003, | ||
"src": "180:19:2", | ||
"stateVariable": false, | ||
"storageLocation": "memory", | ||
"storageLocation": "calldata", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_bytes_memory_ptr", | ||
"typeIdentifier": "t_bytes_calldata_ptr", | ||
"typeString": "bytes" | ||
}, | ||
"typeName": { | ||
"id": 1010, | ||
"id": 997, | ||
"name": "bytes", | ||
"nodeType": "ElementaryTypeName", | ||
"src": "776:5:2", | ||
"src": "180:5:2", | ||
"typeDescriptions": { | ||
@@ -1500,6 +535,6 @@ "typeIdentifier": "t_bytes_storage_ptr", | ||
], | ||
"src": "699:95:2" | ||
"src": "101:99:2" | ||
}, | ||
"returnParameters": { | ||
"id": 1015, | ||
"id": 1002, | ||
"nodeType": "ParameterList", | ||
@@ -1509,7 +544,8 @@ "parameters": [ | ||
"constant": false, | ||
"id": 1014, | ||
"id": 1001, | ||
"name": "claimValid", | ||
"nodeType": "VariableDeclaration", | ||
"scope": 1016, | ||
"src": "828:15:2", | ||
"overrides": null, | ||
"scope": 1003, | ||
"src": "236:15:2", | ||
"stateVariable": false, | ||
@@ -1522,6 +558,6 @@ "storageLocation": "default", | ||
"typeName": { | ||
"id": 1013, | ||
"id": 1000, | ||
"name": "bool", | ||
"nodeType": "ElementaryTypeName", | ||
"src": "828:4:2", | ||
"src": "236:4:2", | ||
"typeDescriptions": { | ||
@@ -1536,24 +572,24 @@ "typeIdentifier": "t_bool", | ||
], | ||
"src": "827:17:2" | ||
"src": "235:17:2" | ||
}, | ||
"scope": 1017, | ||
"src": "678:167:2", | ||
"scope": 1004, | ||
"src": "80:173:2", | ||
"stateMutability": "view", | ||
"superFunction": null, | ||
"visibility": "public" | ||
"virtual": false, | ||
"visibility": "external" | ||
} | ||
], | ||
"scope": 1018, | ||
"src": "64:784:2" | ||
"scope": 1005, | ||
"src": "51:204:2" | ||
} | ||
], | ||
"src": "0:849:2" | ||
"src": "0:256:2" | ||
}, | ||
"compiler": { | ||
"name": "solc", | ||
"version": "0.5.10+commit.5a6ea5b1.Emscripten.clang" | ||
"version": "0.6.2+commit.bacdbe57.Emscripten.clang" | ||
}, | ||
"networks": {}, | ||
"schemaVersion": "3.0.21", | ||
"updatedAt": "2020-01-23T10:28:11.712Z", | ||
"schemaVersion": "3.0.23", | ||
"updatedAt": "2020-02-17T12:46:38.143Z", | ||
"devdoc": { | ||
@@ -1560,0 +596,0 @@ "methods": {} |
{ | ||
"name": "@onchain-id/solidity", | ||
"version": "0.3.2", | ||
"version": "0.4.0-beta1", | ||
"description": "Ethereum solidity smart contracts for Blockchain OnchainID identities.", | ||
@@ -44,11 +44,11 @@ "files": [ | ||
"chai-as-promised": "^7.1.1", | ||
"chai-bn": "^0.1.1", | ||
"ethereumjs-abi": "^0.6.7", | ||
"ethereumjs-util": "^6.1.0", | ||
"semver": "^6.2.0", | ||
"solhint": "^2.1.0", | ||
"solidity-coverage": "^0.5.11", | ||
"solidity-docgen": "^0.1.1", | ||
"truffle": "^5.0.26" | ||
"chai-bn": "^0.2.0", | ||
"ethereumjs-abi": "^0.6.8", | ||
"ethereumjs-util": "^6.2.0", | ||
"semver": "^6.3.0", | ||
"solhint": "^2.3.0", | ||
"solidity-coverage": "^0.7.2", | ||
"solidity-docgen": "^0.3.14", | ||
"truffle": "^5.1.13" | ||
} | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2775074
37
53138