@onchain-id/solidity
Advanced tools
Comparing version 0.4.0-beta1 to 0.4.0
@@ -5,5 +5,20 @@ { | ||
{ | ||
"constant": true, | ||
"inputs": [], | ||
"name": "issuedClaimCount", | ||
"outputs": [ | ||
{ | ||
"name": "", | ||
"type": "uint256" | ||
} | ||
], | ||
"payable": false, | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"anonymous": false, | ||
"inputs": [ | ||
{ | ||
"internalType": "contract Identity", | ||
"indexed": false, | ||
"name": "_identity", | ||
@@ -13,3 +28,31 @@ "type": "address" | ||
{ | ||
"internalType": "bytes32", | ||
"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": [ | ||
{ | ||
"name": "_claimId", | ||
@@ -19,3 +62,48 @@ "type": "bytes32" | ||
{ | ||
"internalType": "uint256", | ||
"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" | ||
}, | ||
{ | ||
"name": "claimTopic", | ||
@@ -25,3 +113,2 @@ "type": "uint256" | ||
{ | ||
"internalType": "bytes", | ||
"name": "sig", | ||
@@ -31,3 +118,2 @@ "type": "bytes" | ||
{ | ||
"internalType": "bytes", | ||
"name": "data", | ||
@@ -40,3 +126,2 @@ "type": "bytes" | ||
{ | ||
"internalType": "bool", | ||
"name": "claimValid", | ||
@@ -46,2 +131,3 @@ "type": "bool" | ||
], | ||
"payable": false, | ||
"stateMutability": "view", | ||
@@ -51,3 +137,3 @@ "type": "function" | ||
], | ||
"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}", | ||
"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}", | ||
"bytecode": "0x", | ||
@@ -57,3 +143,3 @@ "deployedBytecode": "0x", | ||
"deployedSourceMap": "", | ||
"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", | ||
"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", | ||
"sourcePath": "/Users/kevinthizy/Documents/DEV/TokenY/OnchainID/solidity/contracts/IClaimIssuer.sol", | ||
@@ -64,18 +150,18 @@ "ast": { | ||
"IClaimIssuer": [ | ||
1004 | ||
1017 | ||
] | ||
}, | ||
"id": 1005, | ||
"id": 1018, | ||
"nodeType": "SourceUnit", | ||
"nodes": [ | ||
{ | ||
"id": 987, | ||
"id": 962, | ||
"literals": [ | ||
"solidity", | ||
"^", | ||
"0.6", | ||
".2" | ||
"0.5", | ||
".10" | ||
], | ||
"nodeType": "PragmaDirective", | ||
"src": "0:23:2" | ||
"src": "0:24:2" | ||
}, | ||
@@ -85,7 +171,7 @@ { | ||
"file": "./Identity.sol", | ||
"id": 988, | ||
"id": 963, | ||
"nodeType": "ImportDirective", | ||
"scope": 1005, | ||
"sourceUnit": 1668, | ||
"src": "25:24:2", | ||
"scope": 1018, | ||
"sourceUnit": 1675, | ||
"src": "26:24:2", | ||
"symbolAliases": [], | ||
@@ -95,11 +181,10 @@ "unitAlias": "" | ||
{ | ||
"abstract": false, | ||
"baseContracts": [], | ||
"contractDependencies": [], | ||
"contractKind": "interface", | ||
"contractKind": "contract", | ||
"documentation": null, | ||
"fullyImplemented": false, | ||
"id": 1004, | ||
"id": 1017, | ||
"linearizedBaseContracts": [ | ||
1004 | ||
1017 | ||
], | ||
@@ -110,14 +195,460 @@ "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, | ||
"functionSelector": "2a0ba5af", | ||
"id": 1003, | ||
"id": 994, | ||
"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": 999, | ||
"id": 1012, | ||
"nodeType": "ParameterList", | ||
@@ -127,12 +658,11 @@ "parameters": [ | ||
"constant": false, | ||
"id": 990, | ||
"id": 1003, | ||
"name": "_identity", | ||
"nodeType": "VariableDeclaration", | ||
"overrides": null, | ||
"scope": 1003, | ||
"src": "102:18:2", | ||
"scope": 1016, | ||
"src": "700:18:2", | ||
"stateVariable": false, | ||
"storageLocation": "default", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_contract$_Identity_$1667", | ||
"typeIdentifier": "t_contract$_Identity_$1674", | ||
"typeString": "contract Identity" | ||
@@ -142,9 +672,9 @@ }, | ||
"contractScope": null, | ||
"id": 989, | ||
"id": 1002, | ||
"name": "Identity", | ||
"nodeType": "UserDefinedTypeName", | ||
"referencedDeclaration": 1667, | ||
"src": "102:8:2", | ||
"referencedDeclaration": 1674, | ||
"src": "700:8:2", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_contract$_Identity_$1667", | ||
"typeIdentifier": "t_contract$_Identity_$1674", | ||
"typeString": "contract Identity" | ||
@@ -158,8 +688,7 @@ } | ||
"constant": false, | ||
"id": 992, | ||
"id": 1005, | ||
"name": "_claimId", | ||
"nodeType": "VariableDeclaration", | ||
"overrides": null, | ||
"scope": 1003, | ||
"src": "122:16:2", | ||
"scope": 1016, | ||
"src": "720:16:2", | ||
"stateVariable": false, | ||
@@ -172,6 +701,6 @@ "storageLocation": "default", | ||
"typeName": { | ||
"id": 991, | ||
"id": 1004, | ||
"name": "bytes32", | ||
"nodeType": "ElementaryTypeName", | ||
"src": "122:7:2", | ||
"src": "720:7:2", | ||
"typeDescriptions": { | ||
@@ -187,8 +716,7 @@ "typeIdentifier": "t_bytes32", | ||
"constant": false, | ||
"id": 994, | ||
"id": 1007, | ||
"name": "claimTopic", | ||
"nodeType": "VariableDeclaration", | ||
"overrides": null, | ||
"scope": 1003, | ||
"src": "140:18:2", | ||
"scope": 1016, | ||
"src": "738:18:2", | ||
"stateVariable": false, | ||
@@ -201,6 +729,6 @@ "storageLocation": "default", | ||
"typeName": { | ||
"id": 993, | ||
"id": 1006, | ||
"name": "uint256", | ||
"nodeType": "ElementaryTypeName", | ||
"src": "140:7:2", | ||
"src": "738:7:2", | ||
"typeDescriptions": { | ||
@@ -216,19 +744,18 @@ "typeIdentifier": "t_uint256", | ||
"constant": false, | ||
"id": 996, | ||
"id": 1009, | ||
"name": "sig", | ||
"nodeType": "VariableDeclaration", | ||
"overrides": null, | ||
"scope": 1003, | ||
"src": "160:18:2", | ||
"scope": 1016, | ||
"src": "758:16:2", | ||
"stateVariable": false, | ||
"storageLocation": "calldata", | ||
"storageLocation": "memory", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_bytes_calldata_ptr", | ||
"typeIdentifier": "t_bytes_memory_ptr", | ||
"typeString": "bytes" | ||
}, | ||
"typeName": { | ||
"id": 995, | ||
"id": 1008, | ||
"name": "bytes", | ||
"nodeType": "ElementaryTypeName", | ||
"src": "160:5:2", | ||
"src": "758:5:2", | ||
"typeDescriptions": { | ||
@@ -244,19 +771,18 @@ "typeIdentifier": "t_bytes_storage_ptr", | ||
"constant": false, | ||
"id": 998, | ||
"id": 1011, | ||
"name": "data", | ||
"nodeType": "VariableDeclaration", | ||
"overrides": null, | ||
"scope": 1003, | ||
"src": "180:19:2", | ||
"scope": 1016, | ||
"src": "776:17:2", | ||
"stateVariable": false, | ||
"storageLocation": "calldata", | ||
"storageLocation": "memory", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_bytes_calldata_ptr", | ||
"typeIdentifier": "t_bytes_memory_ptr", | ||
"typeString": "bytes" | ||
}, | ||
"typeName": { | ||
"id": 997, | ||
"id": 1010, | ||
"name": "bytes", | ||
"nodeType": "ElementaryTypeName", | ||
"src": "180:5:2", | ||
"src": "776:5:2", | ||
"typeDescriptions": { | ||
@@ -271,6 +797,6 @@ "typeIdentifier": "t_bytes_storage_ptr", | ||
], | ||
"src": "101:99:2" | ||
"src": "699:95:2" | ||
}, | ||
"returnParameters": { | ||
"id": 1002, | ||
"id": 1015, | ||
"nodeType": "ParameterList", | ||
@@ -280,8 +806,7 @@ "parameters": [ | ||
"constant": false, | ||
"id": 1001, | ||
"id": 1014, | ||
"name": "claimValid", | ||
"nodeType": "VariableDeclaration", | ||
"overrides": null, | ||
"scope": 1003, | ||
"src": "236:15:2", | ||
"scope": 1016, | ||
"src": "828:15:2", | ||
"stateVariable": false, | ||
@@ -294,6 +819,6 @@ "storageLocation": "default", | ||
"typeName": { | ||
"id": 1000, | ||
"id": 1013, | ||
"name": "bool", | ||
"nodeType": "ElementaryTypeName", | ||
"src": "236:4:2", | ||
"src": "828:4:2", | ||
"typeDescriptions": { | ||
@@ -308,16 +833,16 @@ "typeIdentifier": "t_bool", | ||
], | ||
"src": "235:17:2" | ||
"src": "827:17:2" | ||
}, | ||
"scope": 1004, | ||
"src": "80:173:2", | ||
"scope": 1017, | ||
"src": "678:167:2", | ||
"stateMutability": "view", | ||
"virtual": false, | ||
"visibility": "external" | ||
"superFunction": null, | ||
"visibility": "public" | ||
} | ||
], | ||
"scope": 1005, | ||
"src": "51:204:2" | ||
"scope": 1018, | ||
"src": "64:784:2" | ||
} | ||
], | ||
"src": "0:256:2" | ||
"src": "0:849:2" | ||
}, | ||
@@ -328,18 +853,18 @@ "legacyAST": { | ||
"IClaimIssuer": [ | ||
1004 | ||
1017 | ||
] | ||
}, | ||
"id": 1005, | ||
"id": 1018, | ||
"nodeType": "SourceUnit", | ||
"nodes": [ | ||
{ | ||
"id": 987, | ||
"id": 962, | ||
"literals": [ | ||
"solidity", | ||
"^", | ||
"0.6", | ||
".2" | ||
"0.5", | ||
".10" | ||
], | ||
"nodeType": "PragmaDirective", | ||
"src": "0:23:2" | ||
"src": "0:24:2" | ||
}, | ||
@@ -349,7 +874,7 @@ { | ||
"file": "./Identity.sol", | ||
"id": 988, | ||
"id": 963, | ||
"nodeType": "ImportDirective", | ||
"scope": 1005, | ||
"sourceUnit": 1668, | ||
"src": "25:24:2", | ||
"scope": 1018, | ||
"sourceUnit": 1675, | ||
"src": "26:24:2", | ||
"symbolAliases": [], | ||
@@ -359,11 +884,10 @@ "unitAlias": "" | ||
{ | ||
"abstract": false, | ||
"baseContracts": [], | ||
"contractDependencies": [], | ||
"contractKind": "interface", | ||
"contractKind": "contract", | ||
"documentation": null, | ||
"fullyImplemented": false, | ||
"id": 1004, | ||
"id": 1017, | ||
"linearizedBaseContracts": [ | ||
1004 | ||
1017 | ||
], | ||
@@ -374,14 +898,460 @@ "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, | ||
"functionSelector": "2a0ba5af", | ||
"id": 1003, | ||
"id": 994, | ||
"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": 999, | ||
"id": 1012, | ||
"nodeType": "ParameterList", | ||
@@ -391,12 +1361,11 @@ "parameters": [ | ||
"constant": false, | ||
"id": 990, | ||
"id": 1003, | ||
"name": "_identity", | ||
"nodeType": "VariableDeclaration", | ||
"overrides": null, | ||
"scope": 1003, | ||
"src": "102:18:2", | ||
"scope": 1016, | ||
"src": "700:18:2", | ||
"stateVariable": false, | ||
"storageLocation": "default", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_contract$_Identity_$1667", | ||
"typeIdentifier": "t_contract$_Identity_$1674", | ||
"typeString": "contract Identity" | ||
@@ -406,9 +1375,9 @@ }, | ||
"contractScope": null, | ||
"id": 989, | ||
"id": 1002, | ||
"name": "Identity", | ||
"nodeType": "UserDefinedTypeName", | ||
"referencedDeclaration": 1667, | ||
"src": "102:8:2", | ||
"referencedDeclaration": 1674, | ||
"src": "700:8:2", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_contract$_Identity_$1667", | ||
"typeIdentifier": "t_contract$_Identity_$1674", | ||
"typeString": "contract Identity" | ||
@@ -422,8 +1391,7 @@ } | ||
"constant": false, | ||
"id": 992, | ||
"id": 1005, | ||
"name": "_claimId", | ||
"nodeType": "VariableDeclaration", | ||
"overrides": null, | ||
"scope": 1003, | ||
"src": "122:16:2", | ||
"scope": 1016, | ||
"src": "720:16:2", | ||
"stateVariable": false, | ||
@@ -436,6 +1404,6 @@ "storageLocation": "default", | ||
"typeName": { | ||
"id": 991, | ||
"id": 1004, | ||
"name": "bytes32", | ||
"nodeType": "ElementaryTypeName", | ||
"src": "122:7:2", | ||
"src": "720:7:2", | ||
"typeDescriptions": { | ||
@@ -451,8 +1419,7 @@ "typeIdentifier": "t_bytes32", | ||
"constant": false, | ||
"id": 994, | ||
"id": 1007, | ||
"name": "claimTopic", | ||
"nodeType": "VariableDeclaration", | ||
"overrides": null, | ||
"scope": 1003, | ||
"src": "140:18:2", | ||
"scope": 1016, | ||
"src": "738:18:2", | ||
"stateVariable": false, | ||
@@ -465,6 +1432,6 @@ "storageLocation": "default", | ||
"typeName": { | ||
"id": 993, | ||
"id": 1006, | ||
"name": "uint256", | ||
"nodeType": "ElementaryTypeName", | ||
"src": "140:7:2", | ||
"src": "738:7:2", | ||
"typeDescriptions": { | ||
@@ -480,19 +1447,18 @@ "typeIdentifier": "t_uint256", | ||
"constant": false, | ||
"id": 996, | ||
"id": 1009, | ||
"name": "sig", | ||
"nodeType": "VariableDeclaration", | ||
"overrides": null, | ||
"scope": 1003, | ||
"src": "160:18:2", | ||
"scope": 1016, | ||
"src": "758:16:2", | ||
"stateVariable": false, | ||
"storageLocation": "calldata", | ||
"storageLocation": "memory", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_bytes_calldata_ptr", | ||
"typeIdentifier": "t_bytes_memory_ptr", | ||
"typeString": "bytes" | ||
}, | ||
"typeName": { | ||
"id": 995, | ||
"id": 1008, | ||
"name": "bytes", | ||
"nodeType": "ElementaryTypeName", | ||
"src": "160:5:2", | ||
"src": "758:5:2", | ||
"typeDescriptions": { | ||
@@ -508,19 +1474,18 @@ "typeIdentifier": "t_bytes_storage_ptr", | ||
"constant": false, | ||
"id": 998, | ||
"id": 1011, | ||
"name": "data", | ||
"nodeType": "VariableDeclaration", | ||
"overrides": null, | ||
"scope": 1003, | ||
"src": "180:19:2", | ||
"scope": 1016, | ||
"src": "776:17:2", | ||
"stateVariable": false, | ||
"storageLocation": "calldata", | ||
"storageLocation": "memory", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_bytes_calldata_ptr", | ||
"typeIdentifier": "t_bytes_memory_ptr", | ||
"typeString": "bytes" | ||
}, | ||
"typeName": { | ||
"id": 997, | ||
"id": 1010, | ||
"name": "bytes", | ||
"nodeType": "ElementaryTypeName", | ||
"src": "180:5:2", | ||
"src": "776:5:2", | ||
"typeDescriptions": { | ||
@@ -535,6 +1500,6 @@ "typeIdentifier": "t_bytes_storage_ptr", | ||
], | ||
"src": "101:99:2" | ||
"src": "699:95:2" | ||
}, | ||
"returnParameters": { | ||
"id": 1002, | ||
"id": 1015, | ||
"nodeType": "ParameterList", | ||
@@ -544,8 +1509,7 @@ "parameters": [ | ||
"constant": false, | ||
"id": 1001, | ||
"id": 1014, | ||
"name": "claimValid", | ||
"nodeType": "VariableDeclaration", | ||
"overrides": null, | ||
"scope": 1003, | ||
"src": "236:15:2", | ||
"scope": 1016, | ||
"src": "828:15:2", | ||
"stateVariable": false, | ||
@@ -558,6 +1522,6 @@ "storageLocation": "default", | ||
"typeName": { | ||
"id": 1000, | ||
"id": 1013, | ||
"name": "bool", | ||
"nodeType": "ElementaryTypeName", | ||
"src": "236:4:2", | ||
"src": "828:4:2", | ||
"typeDescriptions": { | ||
@@ -572,24 +1536,24 @@ "typeIdentifier": "t_bool", | ||
], | ||
"src": "235:17:2" | ||
"src": "827:17:2" | ||
}, | ||
"scope": 1004, | ||
"src": "80:173:2", | ||
"scope": 1017, | ||
"src": "678:167:2", | ||
"stateMutability": "view", | ||
"virtual": false, | ||
"visibility": "external" | ||
"superFunction": null, | ||
"visibility": "public" | ||
} | ||
], | ||
"scope": 1005, | ||
"src": "51:204:2" | ||
"scope": 1018, | ||
"src": "64:784:2" | ||
} | ||
], | ||
"src": "0:256:2" | ||
"src": "0:849:2" | ||
}, | ||
"compiler": { | ||
"name": "solc", | ||
"version": "0.6.2+commit.bacdbe57.Emscripten.clang" | ||
"version": "0.5.10+commit.5a6ea5b1.Emscripten.clang" | ||
}, | ||
"networks": {}, | ||
"schemaVersion": "3.0.23", | ||
"updatedAt": "2020-02-17T12:46:38.143Z", | ||
"schemaVersion": "3.0.16", | ||
"updatedAt": "2020-02-17T15:20:09.453Z", | ||
"devdoc": { | ||
@@ -596,0 +1560,0 @@ "methods": {} |
{ | ||
"name": "@onchain-id/solidity", | ||
"version": "0.4.0-beta1", | ||
"version": "0.4.0", | ||
"description": "Ethereum solidity smart contracts for Blockchain OnchainID identities.", | ||
@@ -44,11 +44,11 @@ "files": [ | ||
"chai-as-promised": "^7.1.1", | ||
"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" | ||
"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" | ||
} | ||
} |
const solcStable = { | ||
version: '0.6.2', | ||
version: '0.5.10', | ||
}; | ||
@@ -4,0 +4,0 @@ |
Sorry, the diff of this file is not supported yet
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
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
2607247
52209