Skip to content

Instantly share code, notes, and snippets.

@edmundmiller
Created February 21, 2019 17:59
Show Gist options
  • Save edmundmiller/a8a87b4ed8624e2501d2db4d0263f429 to your computer and use it in GitHub Desktop.
Save edmundmiller/a8a87b4ed8624e2501d2db4d0263f429 to your computer and use it in GitHub Desktop.
[
{
"constant": true,
"inputs": [
{
"name": "",
"type": "uint256"
}
],
"name": "Keys",
"outputs": [
{
"name": "owner",
"type": "address"
},
{
"name": "nodeId",
"type": "uint256"
},
{
"name": "signature",
"type": "bytes32"
},
{
"name": "keyName",
"type": "bytes32"
},
{
"name": "keyRequestCount",
"type": "uint256"
},
{
"name": "deleted",
"type": "bool"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"name": "_from",
"type": "address"
},
{
"indexed": false,
"name": "keyId",
"type": "uint256"
}
],
"name": "Creation",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"name": "_from",
"type": "address"
},
{
"indexed": false,
"name": "keyId",
"type": "uint256"
}
],
"name": "Request",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"name": "_from",
"type": "address"
},
{
"indexed": false,
"name": "keyId",
"type": "uint256"
},
{
"indexed": false,
"name": "node",
"type": "address"
}
],
"name": "Authorize",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"name": "_from",
"type": "address"
},
{
"indexed": false,
"name": "keyId",
"type": "uint256"
}
],
"name": "Delete",
"type": "event"
},
{
"constant": false,
"inputs": [
{
"name": "nodeId",
"type": "uint256"
},
{
"name": "keyName",
"type": "bytes32"
},
{
"name": "signature",
"type": "bytes32"
}
],
"name": "createKey",
"outputs": [
{
"name": "id",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"name": "keyId",
"type": "uint256"
}
],
"name": "getOwner",
"outputs": [
{
"name": "",
"type": "address"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"name": "keyId",
"type": "uint256"
}
],
"name": "getNodeId",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"name": "keyId",
"type": "uint256"
}
],
"name": "getKeyName",
"outputs": [
{
"name": "",
"type": "bytes32"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"name": "keyId",
"type": "uint256"
}
],
"name": "getSignature",
"outputs": [
{
"name": "",
"type": "bytes32"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "keyId",
"type": "uint256"
}
],
"name": "requestKey",
"outputs": [
{
"name": "requestId",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"name": "keyId",
"type": "uint256"
},
{
"name": "requestId",
"type": "uint256"
}
],
"name": "getRequestRequester",
"outputs": [
{
"name": "",
"type": "address"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "keyId",
"type": "uint256"
},
{
"name": "nodeAddr",
"type": "address"
}
],
"name": "authorizeNode",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"name": "keyId",
"type": "uint256"
},
{
"name": "nodeAddr",
"type": "address"
}
],
"name": "getAuthority",
"outputs": [
{
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"name": "keyId",
"type": "uint256"
}
],
"name": "deleteKey",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"name": "keyId",
"type": "uint256"
}
],
"name": "getDeleteStatus",
"outputs": [
{
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment