@investorid/identity-sdk
Version:
Interact with BlockChain Identities.
1,048 lines (1,047 loc) • 183 kB
JSON
{
"contractName": "ERC735",
"abi": [
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"name": "claimRequestId",
"type": "uint256"
},
{
"indexed": true,
"name": "claimType",
"type": "uint256"
},
{
"indexed": false,
"name": "scheme",
"type": "uint256"
},
{
"indexed": true,
"name": "issuer",
"type": "address"
},
{
"indexed": false,
"name": "signature",
"type": "bytes"
},
{
"indexed": false,
"name": "data",
"type": "bytes"
},
{
"indexed": false,
"name": "uri",
"type": "string"
}
],
"name": "ClaimRequested",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"name": "claimId",
"type": "bytes32"
},
{
"indexed": true,
"name": "claimType",
"type": "uint256"
},
{
"indexed": false,
"name": "scheme",
"type": "uint256"
},
{
"indexed": true,
"name": "issuer",
"type": "address"
},
{
"indexed": false,
"name": "signature",
"type": "bytes"
},
{
"indexed": false,
"name": "data",
"type": "bytes"
},
{
"indexed": false,
"name": "uri",
"type": "string"
}
],
"name": "ClaimAdded",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"name": "claimId",
"type": "bytes32"
},
{
"indexed": true,
"name": "claimType",
"type": "uint256"
},
{
"indexed": false,
"name": "scheme",
"type": "uint256"
},
{
"indexed": true,
"name": "issuer",
"type": "address"
},
{
"indexed": false,
"name": "signature",
"type": "bytes"
},
{
"indexed": false,
"name": "data",
"type": "bytes"
},
{
"indexed": false,
"name": "uri",
"type": "string"
}
],
"name": "ClaimRemoved",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"name": "claimId",
"type": "bytes32"
},
{
"indexed": true,
"name": "claimType",
"type": "uint256"
},
{
"indexed": false,
"name": "scheme",
"type": "uint256"
},
{
"indexed": true,
"name": "issuer",
"type": "address"
},
{
"indexed": false,
"name": "signature",
"type": "bytes"
},
{
"indexed": false,
"name": "data",
"type": "bytes"
},
{
"indexed": false,
"name": "uri",
"type": "string"
}
],
"name": "ClaimChanged",
"type": "event"
},
{
"constant": true,
"inputs": [
{
"name": "_claimId",
"type": "bytes32"
}
],
"name": "getClaim",
"outputs": [
{
"name": "claimType",
"type": "uint256"
},
{
"name": "scheme",
"type": "uint256"
},
{
"name": "issuer",
"type": "address"
},
{
"name": "signature",
"type": "bytes"
},
{
"name": "data",
"type": "bytes"
},
{
"name": "uri",
"type": "string"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"name": "_claimType",
"type": "uint256"
}
],
"name": "getClaimIdsByType",
"outputs": [
{
"name": "claimIds",
"type": "bytes32[]"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "_claimType",
"type": "uint256"
},
{
"name": "_scheme",
"type": "uint256"
},
{
"name": "issuer",
"type": "address"
},
{
"name": "_signature",
"type": "bytes"
},
{
"name": "_data",
"type": "bytes"
},
{
"name": "_uri",
"type": "string"
}
],
"name": "addClaim",
"outputs": [
{
"name": "claimRequestId",
"type": "bytes32"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "_claimId",
"type": "bytes32"
}
],
"name": "removeClaim",
"outputs": [
{
"name": "success",
"type": "bool"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
}
],
"bytecode": "0x",
"deployedBytecode": "0x",
"sourceMap": "",
"deployedSourceMap": "",
"source": "pragma solidity ^0.4.24;\n\ncontract ERC735 {\n\n event ClaimRequested(uint256 indexed claimRequestId, uint256 indexed claimType, uint256 scheme, address indexed issuer, bytes signature, bytes data, string uri);\n event ClaimAdded(bytes32 indexed claimId, uint256 indexed claimType, uint256 scheme, address indexed issuer, bytes signature, bytes data, string uri);\n event ClaimRemoved(bytes32 indexed claimId, uint256 indexed claimType, uint256 scheme, address indexed issuer, bytes signature, bytes data, string uri);\n event ClaimChanged(bytes32 indexed claimId, uint256 indexed claimType, uint256 scheme, address indexed issuer, bytes signature, bytes data, string uri);\n\n struct Claim {\n uint256 claimType;\n uint256 scheme;\n address issuer; // msg.sender\n bytes signature; // this.address + claimType + data\n bytes data;\n string uri;\n }\n\n function getClaim(bytes32 _claimId) public constant returns(uint256 claimType, uint256 scheme, address issuer, bytes signature, bytes data, string uri);\n function getClaimIdsByType(uint256 _claimType) public constant returns(bytes32[] claimIds);\n function addClaim(uint256 _claimType, uint256 _scheme, address issuer, bytes _signature, bytes _data, string _uri) public returns (bytes32 claimRequestId);\n function removeClaim(bytes32 _claimId) public returns (bool success);\n}\n",
"sourcePath": "/Users/kevinthizy/Documents/DEV/TokenY/T-REX/contracts/identity/ERC735.sol",
"ast": {
"absolutePath": "/Users/kevinthizy/Documents/DEV/TokenY/T-REX/contracts/identity/ERC735.sol",
"exportedSymbols": {
"ERC735": [
711
]
},
"id": 712,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 584,
"literals": [
"solidity",
"^",
"0.4",
".24"
],
"nodeType": "PragmaDirective",
"src": "0:24:6"
},
{
"baseContracts": [],
"contractDependencies": [],
"contractKind": "contract",
"documentation": null,
"fullyImplemented": false,
"id": 711,
"linearizedBaseContracts": [
711
],
"name": "ERC735",
"nodeType": "ContractDefinition",
"nodes": [
{
"anonymous": false,
"documentation": null,
"id": 600,
"name": "ClaimRequested",
"nodeType": "EventDefinition",
"parameters": {
"id": 599,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 586,
"indexed": true,
"name": "claimRequestId",
"nodeType": "VariableDeclaration",
"scope": 600,
"src": "70:30:6",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 585,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "70:7:6",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 588,
"indexed": true,
"name": "claimType",
"nodeType": "VariableDeclaration",
"scope": 600,
"src": "102:25:6",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 587,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "102:7:6",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 590,
"indexed": false,
"name": "scheme",
"nodeType": "VariableDeclaration",
"scope": 600,
"src": "129:14:6",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 589,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "129:7:6",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 592,
"indexed": true,
"name": "issuer",
"nodeType": "VariableDeclaration",
"scope": 600,
"src": "145:22:6",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 591,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "145:7:6",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 594,
"indexed": false,
"name": "signature",
"nodeType": "VariableDeclaration",
"scope": 600,
"src": "169:15:6",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes"
},
"typeName": {
"id": 593,
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "169:5:6",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 596,
"indexed": false,
"name": "data",
"nodeType": "VariableDeclaration",
"scope": 600,
"src": "186:10:6",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes"
},
"typeName": {
"id": 595,
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "186:5:6",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 598,
"indexed": false,
"name": "uri",
"nodeType": "VariableDeclaration",
"scope": 600,
"src": "198:10:6",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string"
},
"typeName": {
"id": 597,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "198:6:6",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "69:140:6"
},
"src": "49:161:6"
},
{
"anonymous": false,
"documentation": null,
"id": 616,
"name": "ClaimAdded",
"nodeType": "EventDefinition",
"parameters": {
"id": 615,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 602,
"indexed": true,
"name": "claimId",
"nodeType": "VariableDeclaration",
"scope": 616,
"src": "232:23:6",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 601,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "232:7:6",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 604,
"indexed": true,
"name": "claimType",
"nodeType": "VariableDeclaration",
"scope": 616,
"src": "257:25:6",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 603,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "257:7:6",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 606,
"indexed": false,
"name": "scheme",
"nodeType": "VariableDeclaration",
"scope": 616,
"src": "284:14:6",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 605,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "284:7:6",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 608,
"indexed": true,
"name": "issuer",
"nodeType": "VariableDeclaration",
"scope": 616,
"src": "300:22:6",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 607,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "300:7:6",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 610,
"indexed": false,
"name": "signature",
"nodeType": "VariableDeclaration",
"scope": 616,
"src": "324:15:6",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes"
},
"typeName": {
"id": 609,
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "324:5:6",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 612,
"indexed": false,
"name": "data",
"nodeType": "VariableDeclaration",
"scope": 616,
"src": "341:10:6",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes"
},
"typeName": {
"id": 611,
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "341:5:6",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 614,
"indexed": false,
"name": "uri",
"nodeType": "VariableDeclaration",
"scope": 616,
"src": "353:10:6",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string"
},
"typeName": {
"id": 613,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "353:6:6",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "231:133:6"
},
"src": "215:150:6"
},
{
"anonymous": false,
"documentation": null,
"id": 632,
"name": "ClaimRemoved",
"nodeType": "EventDefinition",
"parameters": {
"id": 631,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 618,
"indexed": true,
"name": "claimId",
"nodeType": "VariableDeclaration",
"scope": 632,
"src": "389:23:6",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 617,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "389:7:6",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 620,
"indexed": true,
"name": "claimType",
"nodeType": "VariableDeclaration",
"scope": 632,
"src": "414:25:6",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 619,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "414:7:6",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 622,
"indexed": false,
"name": "scheme",
"nodeType": "VariableDeclaration",
"scope": 632,
"src": "441:14:6",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 621,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "441:7:6",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 624,
"indexed": true,
"name": "issuer",
"nodeType": "VariableDeclaration",
"scope": 632,
"src": "457:22:6",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 623,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "457:7:6",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 626,
"indexed": false,
"name": "signature",
"nodeType": "VariableDeclaration",
"scope": 632,
"src": "481:15:6",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes"
},
"typeName": {
"id": 625,
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "481:5:6",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 628,
"indexed": false,
"name": "data",
"nodeType": "VariableDeclaration",
"scope": 632,
"src": "498:10:6",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes_memory_ptr",
"typeString": "bytes"
},
"typeName": {
"id": 627,
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "498:5:6",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 630,
"indexed": false,
"name": "uri",
"nodeType": "VariableDeclaration",
"scope": 632,
"src": "510:10:6",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string"
},
"typeName": {
"id": 629,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "510:6:6",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"value": null,
"visibility": "internal"
}
],
"src": "388:133:6"
},
"src": "370:152:6"
},
{
"anonymous": false,
"documentation": null,
"id": 648,
"name": "ClaimChanged",
"nodeType": "EventDefinition",
"parameters": {
"id": 647,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 634,
"indexed": true,
"name": "claimId",
"nodeType": "VariableDeclaration",
"scope": 648,
"src": "546:23:6",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 633,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "546:7:6",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 636,
"indexed": true,
"name": "claimType",
"nodeType": "VariableDeclaration",
"scope": 648,
"src": "571:25:6",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 635,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "571:7:6",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 638,
"indexed": false,
"name": "scheme",
"nodeType": "VariableDeclaration",
"scope": 648,
"src": "598:14:6",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 637,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "598:7:6",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"value": null,
"visibility": "internal"
},
{
"constant": false,
"id": 640,
"indexed": true,
"name": "issuer",
"nodeType": "VariableDeclaration",
"scope": 648,
"src": "614:22:6",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 639,