UNPKG

dkg-evm-module

Version:
401 lines (400 loc) 7.46 kB
[ { "inputs": [ { "internalType": "address", "name": "hubAddress", "type": "address" } ], "stateMutability": "nonpayable", "type": "constructor" }, { "inputs": [ { "internalType": "uint256", "name": "index", "type": "uint256" }, { "internalType": "uint256", "name": "length", "type": "uint256" } ], "name": "IndexOutOfBounds", "type": "error" }, { "inputs": [ { "internalType": "string", "name": "msg", "type": "string" } ], "name": "UnauthorizedAccess", "type": "error" }, { "inputs": [], "name": "ZeroAddressHub", "type": "error" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint72", "name": "identityId", "type": "uint72" }, { "indexed": true, "internalType": "bytes32", "name": "key", "type": "bytes32" }, { "indexed": false, "internalType": "uint256", "name": "purpose", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "keyType", "type": "uint256" } ], "name": "KeyAdded", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint72", "name": "identityId", "type": "uint72" }, { "indexed": true, "internalType": "bytes32", "name": "key", "type": "bytes32" }, { "indexed": false, "internalType": "uint256", "name": "purpose", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "keyType", "type": "uint256" } ], "name": "KeyRemoved", "type": "event" }, { "inputs": [ { "internalType": "uint72", "name": "identityId", "type": "uint72" }, { "internalType": "bytes32", "name": "_key", "type": "bytes32" }, { "internalType": "uint256", "name": "_purpose", "type": "uint256" }, { "internalType": "uint256", "name": "_type", "type": "uint256" } ], "name": "addKey", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint72", "name": "identityId", "type": "uint72" } ], "name": "deleteIdentity", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "generateIdentityId", "outputs": [ { "internalType": "uint72", "name": "", "type": "uint72" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "operational", "type": "address" } ], "name": "getIdentityId", "outputs": [ { "internalType": "uint72", "name": "", "type": "uint72" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint72", "name": "identityId", "type": "uint72" }, { "internalType": "bytes32", "name": "_key", "type": "bytes32" } ], "name": "getKey", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" }, { "internalType": "uint256", "name": "", "type": "uint256" }, { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint72", "name": "identityId", "type": "uint72" }, { "internalType": "uint256", "name": "_purpose", "type": "uint256" } ], "name": "getKeysByPurpose", "outputs": [ { "internalType": "bytes32[]", "name": "", "type": "bytes32[]" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "hub", "outputs": [ { "internalType": "contract Hub", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "name": "identityIds", "outputs": [ { "internalType": "uint72", "name": "", "type": "uint72" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint72", "name": "identityId", "type": "uint72" }, { "internalType": "bytes32", "name": "_key", "type": "bytes32" }, { "internalType": "uint256", "name": "_purpose", "type": "uint256" } ], "name": "keyHasPurpose", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "lastIdentityId", "outputs": [ { "internalType": "uint72", "name": "", "type": "uint72" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "name", "outputs": [ { "internalType": "string", "name": "", "type": "string" } ], "stateMutability": "pure", "type": "function" }, { "inputs": [ { "internalType": "uint72", "name": "identityId", "type": "uint72" }, { "internalType": "bytes32", "name": "_key", "type": "bytes32" } ], "name": "removeKey", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "operationalKey", "type": "bytes32" } ], "name": "removeOperationalKeyIdentityId", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint72", "name": "identityId", "type": "uint72" } ], "name": "setLastIdentityId", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "operationalKey", "type": "bytes32" }, { "internalType": "uint72", "name": "identityId", "type": "uint72" } ], "name": "setOperationalKeyIdentityId", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "version", "outputs": [ { "internalType": "string", "name": "", "type": "string" } ], "stateMutability": "pure", "type": "function" } ]