@onchain-id/solidity
Advanced tools
Comparing version 1.1.2 to 1.2.0-beta1
@@ -278,2 +278,33 @@ { | ||
], | ||
"name": "ExecutionFailed", | ||
"type": "event" | ||
}, | ||
{ | ||
"anonymous": false, | ||
"inputs": [ | ||
{ | ||
"indexed": true, | ||
"internalType": "uint256", | ||
"name": "executionId", | ||
"type": "uint256" | ||
}, | ||
{ | ||
"indexed": true, | ||
"internalType": "address", | ||
"name": "to", | ||
"type": "address" | ||
}, | ||
{ | ||
"indexed": true, | ||
"internalType": "uint256", | ||
"name": "value", | ||
"type": "uint256" | ||
}, | ||
{ | ||
"indexed": false, | ||
"internalType": "bytes", | ||
"name": "data", | ||
"type": "bytes" | ||
} | ||
], | ||
"name": "ExecutionRequested", | ||
@@ -675,21 +706,23 @@ "type": "event" | ||
], | ||
"metadata": "{\"compiler\":{\"version\":\"0.6.2+commit.bacdbe57\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"executionId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"approved\",\"type\":\"bool\"}],\"name\":\"Approved\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"claimId\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"topic\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"scheme\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"issuer\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"uri\",\"type\":\"string\"}],\"name\":\"ClaimAdded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"claimId\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"topic\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"scheme\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"issuer\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"uri\",\"type\":\"string\"}],\"name\":\"ClaimChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"claimId\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"topic\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"scheme\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"issuer\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"uri\",\"type\":\"string\"}],\"name\":\"ClaimRemoved\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"claimRequestId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"topic\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"scheme\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"issuer\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"uri\",\"type\":\"string\"}],\"name\":\"ClaimRequested\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"executionId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"Executed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"executionId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"ExecutionRequested\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"key\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"purpose\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"keyType\",\"type\":\"uint256\"}],\"name\":\"KeyAdded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"key\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"purpose\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"keyType\",\"type\":\"uint256\"}],\"name\":\"KeyRemoved\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"purpose\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"number\",\"type\":\"uint256\"}],\"name\":\"KeysRequiredChanged\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_topic\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_scheme\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"issuer\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"_signature\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"_data\",\"type\":\"bytes\"},{\"internalType\":\"string\",\"name\":\"_uri\",\"type\":\"string\"}],\"name\":\"addClaim\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"claimRequestId\",\"type\":\"bytes32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"_key\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"_purpose\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_keyType\",\"type\":\"uint256\"}],\"name\":\"addKey\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"success\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_id\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"_approve\",\"type\":\"bool\"}],\"name\":\"approve\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"success\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_value\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"_data\",\"type\":\"bytes\"}],\"name\":\"execute\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"executionId\",\"type\":\"uint256\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"_claimId\",\"type\":\"bytes32\"}],\"name\":\"getClaim\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"topic\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"scheme\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"issuer\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"string\",\"name\":\"uri\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_topic\",\"type\":\"uint256\"}],\"name\":\"getClaimIdsByTopic\",\"outputs\":[{\"internalType\":\"bytes32[]\",\"name\":\"claimIds\",\"type\":\"bytes32[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"_key\",\"type\":\"bytes32\"}],\"name\":\"getKey\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"purposes\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256\",\"name\":\"keyType\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"key\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"_key\",\"type\":\"bytes32\"}],\"name\":\"getKeyPurposes\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"_purposes\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_purpose\",\"type\":\"uint256\"}],\"name\":\"getKeysByPurpose\",\"outputs\":[{\"internalType\":\"bytes32[]\",\"name\":\"keys\",\"type\":\"bytes32[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"_key\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"_purpose\",\"type\":\"uint256\"}],\"name\":\"keyHasPurpose\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"exists\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"_claimId\",\"type\":\"bytes32\"}],\"name\":\"removeClaim\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"success\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"_key\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"_purpose\",\"type\":\"uint256\"}],\"name\":\"removeKey\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"success\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"methods\":{\"addClaim(uint256,uint256,address,bytes,bytes,string)\":{\"details\":\"Add or update a claim. * Triggers Event: `ClaimRequested`, `ClaimAdded`, `ClaimChanged` * Specification: Requests the ADDITION or the CHANGE of a claim from an issuer. Claims can requested to be added by anybody, including the claim holder itself (self issued). * _signature is a signed message of the following structure: `keccak256(abi.encode(address identityHolder_address, uint256 topic, bytes data))`. Claim IDs are generated using `keccak256(abi.encode(address issuer_address + uint256 topic))`. * This COULD implement an approval process for pending claims, or add them right away. MUST return a claimRequestId (use claim ID) that COULD be sent to the approve function.\"},\"addKey(bytes32,uint256,uint256)\":{\"details\":\"Adds a _key to the identity. The _purpose specifies the purpose of the key. * Triggers Event: `KeyAdded` * Specification: MUST only be done by keys of purpose 1, or the identity itself. If it's the identity itself, the approval process will determine its approval.\"},\"approve(uint256,bool)\":{\"details\":\"Approves an execution or claim addition. * Triggers Event: `Approved`, `Executed` * Specification: This SHOULD require n of m approvals of keys purpose 1, if the _to of the execution is the identity contract itself, to successfully approve an execution. And COULD require n of m approvals of keys purpose 2, if the _to of the execution is another contract, to successfully approve an execution.\"},\"execute(address,uint256,bytes)\":{\"details\":\"Passes an execution instruction to an ERC725 identity. * Triggers Event: `ExecutionRequested`, `Executed` * Specification: SHOULD require approve to be called with one or more keys of purpose 1 or 2 to approve this execution. Execute COULD be used as the only accessor for `addKey` and `removeKey`.\"},\"getClaim(bytes32)\":{\"details\":\"Get a claim by its ID. * Claim IDs are generated using `keccak256(abi.encode(address issuer_address, uint256 topic))`.\"},\"getClaimIdsByTopic(uint256)\":{\"details\":\"Returns an array of claim IDs by topic.\"},\"getKey(bytes32)\":{\"details\":\"Returns the full key data, if present in the identity.\"},\"getKeyPurposes(bytes32)\":{\"details\":\"Returns the list of purposes associated with a key.\"},\"getKeysByPurpose(uint256)\":{\"details\":\"Returns an array of public key bytes32 held by this identity.\"},\"keyHasPurpose(bytes32,uint256)\":{\"details\":\"Returns TRUE if a key is present and has the given purpose. If the key is not present it returns FALSE.\"},\"removeClaim(bytes32)\":{\"details\":\"Removes a claim. * Triggers Event: `ClaimRemoved` * Claim IDs are generated using `keccak256(abi.encode(address issuer_address, uint256 topic))`.\"},\"removeKey(bytes32,uint256)\":{\"details\":\"Removes _purpose for _key from the identity. * Triggers Event: `KeyRemoved` * Specification: MUST only be done by keys of purpose 1, or the identity itself. If it's the identity itself, the approval process will determine its approval.\"}}},\"userdoc\":{\"methods\":{}}},\"settings\":{\"compilationTarget\":{\"/home/runner/work/solidity/solidity/contracts/IIdentity.sol\":\"IIdentity\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"/home/runner/work/solidity/solidity/contracts/IERC734.sol\":{\"keccak256\":\"0x3f7d8dffda1a2a4027a0a4591ad31a65c295f4593479f9518d7e300930f13d66\",\"urls\":[\"bzz-raw://fccb2395b05141784ce0b6f216c62db08d267cced40745f8e6a85b6db2d90da0\",\"dweb:/ipfs/QmeyZ4kE4WcZijEGGksJNYvCXTxAk7YGuDytBT7LN19TrB\"]},\"/home/runner/work/solidity/solidity/contracts/IERC735.sol\":{\"keccak256\":\"0x489db3c6057a7d2e995363c54623bc370965e38fb19192e62309d7b7ea0ced03\",\"urls\":[\"bzz-raw://d3e864da9304151c63304467a7277d115b1053a5628fe71c3659369033f8b39c\",\"dweb:/ipfs/QmaRhofZTe9PxM2KZL4FegrYN5mWENy43yUVGRoBak1fW7\"]},\"/home/runner/work/solidity/solidity/contracts/IIdentity.sol\":{\"keccak256\":\"0x78dff25954a2d80f303b6c907497c9876bc7bac55c30db2786905341ee10c56a\",\"urls\":[\"bzz-raw://9fc6889955ceddbd98c1afd0aae2e795ed78b78fc4dc93d8290fd9bd0ff6478e\",\"dweb:/ipfs/QmTX5EAPZWyzWBVUCN7YBpWseyJfUGAe6FwfxnyzD3KwLc\"]}},\"version\":1}", | ||
"metadata": "{\"compiler\":{\"version\":\"0.6.9+commit.3e3065ac\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"executionId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"approved\",\"type\":\"bool\"}],\"name\":\"Approved\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"claimId\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"topic\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"scheme\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"issuer\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"uri\",\"type\":\"string\"}],\"name\":\"ClaimAdded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"claimId\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"topic\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"scheme\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"issuer\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"uri\",\"type\":\"string\"}],\"name\":\"ClaimChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"claimId\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"topic\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"scheme\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"issuer\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"uri\",\"type\":\"string\"}],\"name\":\"ClaimRemoved\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"claimRequestId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"topic\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"scheme\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"issuer\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"uri\",\"type\":\"string\"}],\"name\":\"ClaimRequested\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"executionId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"Executed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"executionId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"ExecutionFailed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"executionId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"ExecutionRequested\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"key\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"purpose\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"keyType\",\"type\":\"uint256\"}],\"name\":\"KeyAdded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"key\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"purpose\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"keyType\",\"type\":\"uint256\"}],\"name\":\"KeyRemoved\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"purpose\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"number\",\"type\":\"uint256\"}],\"name\":\"KeysRequiredChanged\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_topic\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_scheme\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"issuer\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"_signature\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"_data\",\"type\":\"bytes\"},{\"internalType\":\"string\",\"name\":\"_uri\",\"type\":\"string\"}],\"name\":\"addClaim\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"claimRequestId\",\"type\":\"bytes32\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"_key\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"_purpose\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_keyType\",\"type\":\"uint256\"}],\"name\":\"addKey\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"success\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_id\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"_approve\",\"type\":\"bool\"}],\"name\":\"approve\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"success\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_value\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"_data\",\"type\":\"bytes\"}],\"name\":\"execute\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"executionId\",\"type\":\"uint256\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"_claimId\",\"type\":\"bytes32\"}],\"name\":\"getClaim\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"topic\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"scheme\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"issuer\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"internalType\":\"string\",\"name\":\"uri\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_topic\",\"type\":\"uint256\"}],\"name\":\"getClaimIdsByTopic\",\"outputs\":[{\"internalType\":\"bytes32[]\",\"name\":\"claimIds\",\"type\":\"bytes32[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"_key\",\"type\":\"bytes32\"}],\"name\":\"getKey\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"purposes\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256\",\"name\":\"keyType\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"key\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"_key\",\"type\":\"bytes32\"}],\"name\":\"getKeyPurposes\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"_purposes\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_purpose\",\"type\":\"uint256\"}],\"name\":\"getKeysByPurpose\",\"outputs\":[{\"internalType\":\"bytes32[]\",\"name\":\"keys\",\"type\":\"bytes32[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"_key\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"_purpose\",\"type\":\"uint256\"}],\"name\":\"keyHasPurpose\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"exists\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"_claimId\",\"type\":\"bytes32\"}],\"name\":\"removeClaim\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"success\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"_key\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"_purpose\",\"type\":\"uint256\"}],\"name\":\"removeKey\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"success\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"methods\":{\"addClaim(uint256,uint256,address,bytes,bytes,string)\":{\"details\":\"Add or update a claim. Triggers Event: `ClaimRequested`, `ClaimAdded`, `ClaimChanged` Specification: Requests the ADDITION or the CHANGE of a claim from an issuer. Claims can requested to be added by anybody, including the claim holder itself (self issued). _signature is a signed message of the following structure: `keccak256(abi.encode(address identityHolder_address, uint256 topic, bytes data))`. Claim IDs are generated using `keccak256(abi.encode(address issuer_address + uint256 topic))`. This COULD implement an approval process for pending claims, or add them right away. MUST return a claimRequestId (use claim ID) that COULD be sent to the approve function.\"},\"addKey(bytes32,uint256,uint256)\":{\"details\":\"Adds a _key to the identity. The _purpose specifies the purpose of the key. Triggers Event: `KeyAdded` Specification: MUST only be done by keys of purpose 1, or the identity itself. If it's the identity itself, the approval process will determine its approval.\"},\"approve(uint256,bool)\":{\"details\":\"Approves an execution or claim addition. Triggers Event: `Approved`, `Executed` Specification: This SHOULD require n of m approvals of keys purpose 1, if the _to of the execution is the identity contract itself, to successfully approve an execution. And COULD require n of m approvals of keys purpose 2, if the _to of the execution is another contract, to successfully approve an execution.\"},\"execute(address,uint256,bytes)\":{\"details\":\"Passes an execution instruction to an ERC725 identity. Triggers Event: `ExecutionRequested`, `Executed` Specification: SHOULD require approve to be called with one or more keys of purpose 1 or 2 to approve this execution. Execute COULD be used as the only accessor for `addKey` and `removeKey`.\"},\"getClaim(bytes32)\":{\"details\":\"Get a claim by its ID. Claim IDs are generated using `keccak256(abi.encode(address issuer_address, uint256 topic))`.\"},\"getClaimIdsByTopic(uint256)\":{\"details\":\"Returns an array of claim IDs by topic.\"},\"getKey(bytes32)\":{\"details\":\"Returns the full key data, if present in the identity.\"},\"getKeyPurposes(bytes32)\":{\"details\":\"Returns the list of purposes associated with a key.\"},\"getKeysByPurpose(uint256)\":{\"details\":\"Returns an array of public key bytes32 held by this identity.\"},\"keyHasPurpose(bytes32,uint256)\":{\"details\":\"Returns TRUE if a key is present and has the given purpose. If the key is not present it returns FALSE.\"},\"removeClaim(bytes32)\":{\"details\":\"Removes a claim. Triggers Event: `ClaimRemoved` Claim IDs are generated using `keccak256(abi.encode(address issuer_address, uint256 topic))`.\"},\"removeKey(bytes32,uint256)\":{\"details\":\"Removes _purpose for _key from the identity. Triggers Event: `KeyRemoved` Specification: MUST only be done by keys of purpose 1, or the identity itself. If it's the identity itself, the approval process will determine its approval.\"}}},\"userdoc\":{\"methods\":{}}},\"settings\":{\"compilationTarget\":{\"/Users/kevinthizy/Documents/DEV/TokenY/OnchainID/solidity/contracts/interface/IIdentity.sol\":\"IIdentity\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"/Users/kevinthizy/Documents/DEV/TokenY/OnchainID/solidity/contracts/interface/IERC734.sol\":{\"keccak256\":\"0x2b407b99254d0182e4310c79fd2f5dcee05634016278a9e598de82c18014720e\",\"license\":\"GPL-3.0\",\"urls\":[\"bzz-raw://5f949f90629758de617262c5e0c20ab7e76dad06601ea20e78fd39c3b867be0e\",\"dweb:/ipfs/QmeoMyS6v5ygUv3TRHXFcz9k6F5KEqugpURxLxdBhZRFet\"]},\"/Users/kevinthizy/Documents/DEV/TokenY/OnchainID/solidity/contracts/interface/IERC735.sol\":{\"keccak256\":\"0xd2349410e3fe18d6d98d9debf16c52a77bebff700a2f3366c53d52bad7978e8c\",\"license\":\"GPL-3.0\",\"urls\":[\"bzz-raw://bb225c45358c59685fe5c52b52dd87b1ab2a224c63593a310de2004f5af90d34\",\"dweb:/ipfs/QmPBiNi7uT9R5yoM62tcEnK36aWGGqRPAUB3ALgEfey5RK\"]},\"/Users/kevinthizy/Documents/DEV/TokenY/OnchainID/solidity/contracts/interface/IIdentity.sol\":{\"keccak256\":\"0x29eda8053e2d5d031503cb25fa06d3a7baacb7c30f2db4e726a08b18d4043af4\",\"license\":\"GPL-3.0\",\"urls\":[\"bzz-raw://ad3b8376ae00c8bc06a0eb5427ef6d0037738a236190d8996ba8bc754e70457f\",\"dweb:/ipfs/QmS37nUkey14qpQp9EDiZRmXw7rs8dkgf9FC7oP2zn1J7Z\"]}},\"version\":1}", | ||
"bytecode": "0x", | ||
"deployedBytecode": "0x", | ||
"immutableReferences": {}, | ||
"sourceMap": "", | ||
"deployedSourceMap": "", | ||
"source": "pragma solidity ^0.6.2;\n\nimport \"./IERC734.sol\";\nimport \"./IERC735.sol\";\n\ninterface IIdentity is IERC734, IERC735 {}\n", | ||
"sourcePath": "/home/runner/work/solidity/solidity/contracts/IIdentity.sol", | ||
"source": "// SPDX-License-Identifier: GPL-3.0\npragma solidity ^0.6.9;\n\nimport \"./IERC734.sol\";\nimport \"./IERC735.sol\";\n\ninterface IIdentity is IERC734, IERC735 {}\n", | ||
"sourcePath": "/Users/kevinthizy/Documents/DEV/TokenY/OnchainID/solidity/contracts/interface/IIdentity.sol", | ||
"ast": { | ||
"absolutePath": "/home/runner/work/solidity/solidity/contracts/IIdentity.sol", | ||
"absolutePath": "/Users/kevinthizy/Documents/DEV/TokenY/OnchainID/solidity/contracts/interface/IIdentity.sol", | ||
"exportedSymbols": { | ||
"IIdentity": [ | ||
1341 | ||
1708 | ||
] | ||
}, | ||
"id": 1342, | ||
"id": 1709, | ||
"license": "GPL-3.0", | ||
"nodeType": "SourceUnit", | ||
"nodes": [ | ||
{ | ||
"id": 1334, | ||
"id": 1701, | ||
"literals": [ | ||
@@ -699,15 +732,15 @@ "solidity", | ||
"0.6", | ||
".2" | ||
".9" | ||
], | ||
"nodeType": "PragmaDirective", | ||
"src": "0:23:6" | ||
"src": "36:23:5" | ||
}, | ||
{ | ||
"absolutePath": "/home/runner/work/solidity/solidity/contracts/IERC734.sol", | ||
"absolutePath": "/Users/kevinthizy/Documents/DEV/TokenY/OnchainID/solidity/contracts/interface/IERC734.sol", | ||
"file": "./IERC734.sol", | ||
"id": 1335, | ||
"id": 1702, | ||
"nodeType": "ImportDirective", | ||
"scope": 1342, | ||
"sourceUnit": 1204, | ||
"src": "25:23:6", | ||
"scope": 1709, | ||
"sourceUnit": 1575, | ||
"src": "61:23:5", | ||
"symbolAliases": [], | ||
@@ -717,9 +750,9 @@ "unitAlias": "" | ||
{ | ||
"absolutePath": "/home/runner/work/solidity/solidity/contracts/IERC735.sol", | ||
"absolutePath": "/Users/kevinthizy/Documents/DEV/TokenY/OnchainID/solidity/contracts/interface/IERC735.sol", | ||
"file": "./IERC735.sol", | ||
"id": 1336, | ||
"id": 1703, | ||
"nodeType": "ImportDirective", | ||
"scope": 1342, | ||
"sourceUnit": 1333, | ||
"src": "49:23:6", | ||
"scope": 1709, | ||
"sourceUnit": 1700, | ||
"src": "85:23:5", | ||
"symbolAliases": [], | ||
@@ -735,15 +768,15 @@ "unitAlias": "" | ||
"contractScope": null, | ||
"id": 1337, | ||
"id": 1704, | ||
"name": "IERC734", | ||
"nodeType": "UserDefinedTypeName", | ||
"referencedDeclaration": 1203, | ||
"src": "97:7:6", | ||
"referencedDeclaration": 1574, | ||
"src": "133:7:5", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_contract$_IERC734_$1203", | ||
"typeIdentifier": "t_contract$_IERC734_$1574", | ||
"typeString": "contract IERC734" | ||
} | ||
}, | ||
"id": 1338, | ||
"id": 1705, | ||
"nodeType": "InheritanceSpecifier", | ||
"src": "97:7:6" | ||
"src": "133:7:5" | ||
}, | ||
@@ -754,20 +787,20 @@ { | ||
"contractScope": null, | ||
"id": 1339, | ||
"id": 1706, | ||
"name": "IERC735", | ||
"nodeType": "UserDefinedTypeName", | ||
"referencedDeclaration": 1332, | ||
"src": "106:7:6", | ||
"referencedDeclaration": 1699, | ||
"src": "142:7:5", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_contract$_IERC735_$1332", | ||
"typeIdentifier": "t_contract$_IERC735_$1699", | ||
"typeString": "contract IERC735" | ||
} | ||
}, | ||
"id": 1340, | ||
"id": 1707, | ||
"nodeType": "InheritanceSpecifier", | ||
"src": "106:7:6" | ||
"src": "142:7:5" | ||
} | ||
], | ||
"contractDependencies": [ | ||
1203, | ||
1332 | ||
1574, | ||
1699 | ||
], | ||
@@ -777,7 +810,7 @@ "contractKind": "interface", | ||
"fullyImplemented": false, | ||
"id": 1341, | ||
"id": 1708, | ||
"linearizedBaseContracts": [ | ||
1341, | ||
1332, | ||
1203 | ||
1708, | ||
1699, | ||
1574 | ||
], | ||
@@ -787,20 +820,21 @@ "name": "IIdentity", | ||
"nodes": [], | ||
"scope": 1342, | ||
"src": "74:42:6" | ||
"scope": 1709, | ||
"src": "110:42:5" | ||
} | ||
], | ||
"src": "0:117:6" | ||
"src": "36:117:5" | ||
}, | ||
"legacyAST": { | ||
"absolutePath": "/home/runner/work/solidity/solidity/contracts/IIdentity.sol", | ||
"absolutePath": "/Users/kevinthizy/Documents/DEV/TokenY/OnchainID/solidity/contracts/interface/IIdentity.sol", | ||
"exportedSymbols": { | ||
"IIdentity": [ | ||
1341 | ||
1708 | ||
] | ||
}, | ||
"id": 1342, | ||
"id": 1709, | ||
"license": "GPL-3.0", | ||
"nodeType": "SourceUnit", | ||
"nodes": [ | ||
{ | ||
"id": 1334, | ||
"id": 1701, | ||
"literals": [ | ||
@@ -810,15 +844,15 @@ "solidity", | ||
"0.6", | ||
".2" | ||
".9" | ||
], | ||
"nodeType": "PragmaDirective", | ||
"src": "0:23:6" | ||
"src": "36:23:5" | ||
}, | ||
{ | ||
"absolutePath": "/home/runner/work/solidity/solidity/contracts/IERC734.sol", | ||
"absolutePath": "/Users/kevinthizy/Documents/DEV/TokenY/OnchainID/solidity/contracts/interface/IERC734.sol", | ||
"file": "./IERC734.sol", | ||
"id": 1335, | ||
"id": 1702, | ||
"nodeType": "ImportDirective", | ||
"scope": 1342, | ||
"sourceUnit": 1204, | ||
"src": "25:23:6", | ||
"scope": 1709, | ||
"sourceUnit": 1575, | ||
"src": "61:23:5", | ||
"symbolAliases": [], | ||
@@ -828,9 +862,9 @@ "unitAlias": "" | ||
{ | ||
"absolutePath": "/home/runner/work/solidity/solidity/contracts/IERC735.sol", | ||
"absolutePath": "/Users/kevinthizy/Documents/DEV/TokenY/OnchainID/solidity/contracts/interface/IERC735.sol", | ||
"file": "./IERC735.sol", | ||
"id": 1336, | ||
"id": 1703, | ||
"nodeType": "ImportDirective", | ||
"scope": 1342, | ||
"sourceUnit": 1333, | ||
"src": "49:23:6", | ||
"scope": 1709, | ||
"sourceUnit": 1700, | ||
"src": "85:23:5", | ||
"symbolAliases": [], | ||
@@ -846,15 +880,15 @@ "unitAlias": "" | ||
"contractScope": null, | ||
"id": 1337, | ||
"id": 1704, | ||
"name": "IERC734", | ||
"nodeType": "UserDefinedTypeName", | ||
"referencedDeclaration": 1203, | ||
"src": "97:7:6", | ||
"referencedDeclaration": 1574, | ||
"src": "133:7:5", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_contract$_IERC734_$1203", | ||
"typeIdentifier": "t_contract$_IERC734_$1574", | ||
"typeString": "contract IERC734" | ||
} | ||
}, | ||
"id": 1338, | ||
"id": 1705, | ||
"nodeType": "InheritanceSpecifier", | ||
"src": "97:7:6" | ||
"src": "133:7:5" | ||
}, | ||
@@ -865,20 +899,20 @@ { | ||
"contractScope": null, | ||
"id": 1339, | ||
"id": 1706, | ||
"name": "IERC735", | ||
"nodeType": "UserDefinedTypeName", | ||
"referencedDeclaration": 1332, | ||
"src": "106:7:6", | ||
"referencedDeclaration": 1699, | ||
"src": "142:7:5", | ||
"typeDescriptions": { | ||
"typeIdentifier": "t_contract$_IERC735_$1332", | ||
"typeIdentifier": "t_contract$_IERC735_$1699", | ||
"typeString": "contract IERC735" | ||
} | ||
}, | ||
"id": 1340, | ||
"id": 1707, | ||
"nodeType": "InheritanceSpecifier", | ||
"src": "106:7:6" | ||
"src": "142:7:5" | ||
} | ||
], | ||
"contractDependencies": [ | ||
1203, | ||
1332 | ||
1574, | ||
1699 | ||
], | ||
@@ -888,7 +922,7 @@ "contractKind": "interface", | ||
"fullyImplemented": false, | ||
"id": 1341, | ||
"id": 1708, | ||
"linearizedBaseContracts": [ | ||
1341, | ||
1332, | ||
1203 | ||
1708, | ||
1699, | ||
1574 | ||
], | ||
@@ -898,31 +932,31 @@ "name": "IIdentity", | ||
"nodes": [], | ||
"scope": 1342, | ||
"src": "74:42:6" | ||
"scope": 1709, | ||
"src": "110:42:5" | ||
} | ||
], | ||
"src": "0:117:6" | ||
"src": "36:117:5" | ||
}, | ||
"compiler": { | ||
"name": "solc", | ||
"version": "0.6.2+commit.bacdbe57.Emscripten.clang" | ||
"version": "0.6.9+commit.3e3065ac.Emscripten.clang" | ||
}, | ||
"networks": {}, | ||
"schemaVersion": "3.2.4", | ||
"updatedAt": "2020-09-30T12:26:53.716Z", | ||
"updatedAt": "2020-11-24T15:47:35.264Z", | ||
"devdoc": { | ||
"methods": { | ||
"addClaim(uint256,uint256,address,bytes,bytes,string)": { | ||
"details": "Add or update a claim. * Triggers Event: `ClaimRequested`, `ClaimAdded`, `ClaimChanged` * Specification: Requests the ADDITION or the CHANGE of a claim from an issuer. Claims can requested to be added by anybody, including the claim holder itself (self issued). * _signature is a signed message of the following structure: `keccak256(abi.encode(address identityHolder_address, uint256 topic, bytes data))`. Claim IDs are generated using `keccak256(abi.encode(address issuer_address + uint256 topic))`. * This COULD implement an approval process for pending claims, or add them right away. MUST return a claimRequestId (use claim ID) that COULD be sent to the approve function." | ||
"details": "Add or update a claim. Triggers Event: `ClaimRequested`, `ClaimAdded`, `ClaimChanged` Specification: Requests the ADDITION or the CHANGE of a claim from an issuer. Claims can requested to be added by anybody, including the claim holder itself (self issued). _signature is a signed message of the following structure: `keccak256(abi.encode(address identityHolder_address, uint256 topic, bytes data))`. Claim IDs are generated using `keccak256(abi.encode(address issuer_address + uint256 topic))`. This COULD implement an approval process for pending claims, or add them right away. MUST return a claimRequestId (use claim ID) that COULD be sent to the approve function." | ||
}, | ||
"addKey(bytes32,uint256,uint256)": { | ||
"details": "Adds a _key to the identity. The _purpose specifies the purpose of the key. * Triggers Event: `KeyAdded` * Specification: MUST only be done by keys of purpose 1, or the identity itself. If it's the identity itself, the approval process will determine its approval." | ||
"details": "Adds a _key to the identity. The _purpose specifies the purpose of the key. Triggers Event: `KeyAdded` Specification: MUST only be done by keys of purpose 1, or the identity itself. If it's the identity itself, the approval process will determine its approval." | ||
}, | ||
"approve(uint256,bool)": { | ||
"details": "Approves an execution or claim addition. * Triggers Event: `Approved`, `Executed` * Specification: This SHOULD require n of m approvals of keys purpose 1, if the _to of the execution is the identity contract itself, to successfully approve an execution. And COULD require n of m approvals of keys purpose 2, if the _to of the execution is another contract, to successfully approve an execution." | ||
"details": "Approves an execution or claim addition. Triggers Event: `Approved`, `Executed` Specification: This SHOULD require n of m approvals of keys purpose 1, if the _to of the execution is the identity contract itself, to successfully approve an execution. And COULD require n of m approvals of keys purpose 2, if the _to of the execution is another contract, to successfully approve an execution." | ||
}, | ||
"execute(address,uint256,bytes)": { | ||
"details": "Passes an execution instruction to an ERC725 identity. * Triggers Event: `ExecutionRequested`, `Executed` * Specification: SHOULD require approve to be called with one or more keys of purpose 1 or 2 to approve this execution. Execute COULD be used as the only accessor for `addKey` and `removeKey`." | ||
"details": "Passes an execution instruction to an ERC725 identity. Triggers Event: `ExecutionRequested`, `Executed` Specification: SHOULD require approve to be called with one or more keys of purpose 1 or 2 to approve this execution. Execute COULD be used as the only accessor for `addKey` and `removeKey`." | ||
}, | ||
"getClaim(bytes32)": { | ||
"details": "Get a claim by its ID. * Claim IDs are generated using `keccak256(abi.encode(address issuer_address, uint256 topic))`." | ||
"details": "Get a claim by its ID. Claim IDs are generated using `keccak256(abi.encode(address issuer_address, uint256 topic))`." | ||
}, | ||
@@ -945,6 +979,6 @@ "getClaimIdsByTopic(uint256)": { | ||
"removeClaim(bytes32)": { | ||
"details": "Removes a claim. * Triggers Event: `ClaimRemoved` * Claim IDs are generated using `keccak256(abi.encode(address issuer_address, uint256 topic))`." | ||
"details": "Removes a claim. Triggers Event: `ClaimRemoved` Claim IDs are generated using `keccak256(abi.encode(address issuer_address, uint256 topic))`." | ||
}, | ||
"removeKey(bytes32,uint256)": { | ||
"details": "Removes _purpose for _key from the identity. * Triggers Event: `KeyRemoved` * Specification: MUST only be done by keys of purpose 1, or the identity itself. If it's the identity itself, the approval process will determine its approval." | ||
"details": "Removes _purpose for _key from the identity. Triggers Event: `KeyRemoved` Specification: MUST only be done by keys of purpose 1, or the identity itself. If it's the identity itself, the approval process will determine its approval." | ||
} | ||
@@ -951,0 +985,0 @@ } |
export namespace contracts { | ||
export const ClaimIssuer: any; | ||
export const ERC734: any; | ||
export const Identity: any; | ||
export const IdentityFactory: any; | ||
export const CloneFactory: any; | ||
export const ImplementationAuthority: any; | ||
export const IdentityProxy: any; | ||
} | ||
@@ -14,2 +13,3 @@ | ||
export const IIdentity: any; | ||
export const IImplementationAuthority: any; | ||
} |
15
index.js
const IClaimIssuer = require('./build/contracts/IClaimIssuer'); | ||
const IERC734 = require('./build/contracts/IERC734'); | ||
const IERC735 = require('./build/contracts/IERC735'); | ||
const IIdentity = require('./build/contracts/IClaimIssuer'); | ||
const IImplementationAuthority = require('./build/contracts/IImplementationAuthority'); | ||
const ClaimIssuer = require('./build/contracts/ClaimIssuer'); | ||
const ERC734 = require('./build/contracts/ERC734'); | ||
const Identity = require('./build/contracts/Identity'); | ||
const IIdentity = require('./build/contracts/IIdentity'); | ||
const IdentityFactory = require('./build/contracts/IdentityFactory.json'); | ||
const CloneFactory = require('./build/contracts/CloneFactory.json'); | ||
const ImplementationAuthority = require('./build/contracts/ImplementationAuthority'); | ||
const IdentityProxy = require('./build/contracts/IdentityProxy'); | ||
@@ -14,6 +15,5 @@ module.exports = { | ||
ClaimIssuer, | ||
ERC734, | ||
Identity, | ||
IdentityFactory, | ||
CloneFactory, | ||
ImplementationAuthority, | ||
IdentityProxy, | ||
}, | ||
@@ -25,3 +25,4 @@ interfaces: { | ||
IIdentity, | ||
IImplementationAuthority, | ||
}, | ||
}; |
{ | ||
"name": "@onchain-id/solidity", | ||
"version": "1.1.2", | ||
"version": "1.2.0-beta1", | ||
"description": "Ethereum solidity smart contracts for Blockchain OnchainID identities.", | ||
@@ -8,3 +8,2 @@ "files": [ | ||
"contracts", | ||
"!contracts/examples", | ||
"index.js", | ||
@@ -42,13 +41,8 @@ "index.d.ts" | ||
"devDependencies": { | ||
"@openzeppelin/contracts": "^3.2.0", | ||
"ansi-colors": "^4.1.1", | ||
"chai": "^4.2.0", | ||
"chai-as-promised": "^7.1.1", | ||
"chai-bignumber": "^3.0.0", | ||
"chai-bn": "^0.2.0", | ||
"ethereumjs-abi": "^0.6.8", | ||
"ethereumjs-util": "^6.2.0", | ||
"solidity-coverage": "^0.7.5", | ||
"semver": "^6.3.0", | ||
"solhint": "^2.3.0", | ||
"solidity-docgen": "^0.3.14", | ||
"truffle": "^5.1.13", | ||
"eslint": "^7.2.0", | ||
@@ -59,5 +53,12 @@ "eslint-config-airbnb-base": "^14.1.0", | ||
"eslint-plugin-prettier": "^3.1.3", | ||
"ethereumjs-abi": "^0.6.8", | ||
"ethereumjs-util": "^6.2.0", | ||
"ganache-cli": "^6.10.1", | ||
"prettier": "^2.0.5", | ||
"ganache-cli": "^6.10.1" | ||
"semver": "^6.3.0", | ||
"solhint": "^2.3.0", | ||
"solidity-coverage": "^0.7.5", | ||
"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
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
3040349
34
66224
20
1
1