Skip to content

Instantly share code, notes, and snippets.

@ilovelili
Created June 17, 2020 12:52
Show Gist options
  • Save ilovelili/251b1b95b7d86d884363d9cc35678d89 to your computer and use it in GitHub Desktop.
Save ilovelili/251b1b95b7d86d884363d9cc35678d89 to your computer and use it in GitHub Desktop.
[
{
"constant":true,
"inputs":[
{
"name":"",
"type":"address"
}
],
"name":"owners",
"outputs":[
{
"name":"",
"type":"address"
}
],
"payable":false,
"stateMutability":"view",
"type":"function"
},
{
"constant":true,
"inputs":[
{
"name":"",
"type":"address"
},
{
"name":"",
"type":"bytes32"
},
{
"name":"",
"type":"address"
}
],
"name":"delegates",
"outputs":[
{
"name":"",
"type":"uint256"
}
],
"payable":false,
"stateMutability":"view",
"type":"function"
},
{
"constant":true,
"inputs":[
{
"name":"",
"type":"address"
}
],
"name":"nonce",
"outputs":[
{
"name":"",
"type":"uint256"
}
],
"payable":false,
"stateMutability":"view",
"type":"function"
},
{
"constant":true,
"inputs":[
{
"name":"",
"type":"address"
}
],
"name":"changed",
"outputs":[
{
"name":"",
"type":"uint256"
}
],
"payable":false,
"stateMutability":"view",
"type":"function"
},
{
"anonymous":false,
"inputs":[
{
"indexed":true,
"name":"identity",
"type":"address"
},
{
"indexed":false,
"name":"owner",
"type":"address"
},
{
"indexed":false,
"name":"previousChange",
"type":"uint256"
}
],
"name":"DIDOwnerChanged",
"type":"event"
},
{
"anonymous":false,
"inputs":[
{
"indexed":true,
"name":"identity",
"type":"address"
},
{
"indexed":false,
"name":"delegateType",
"type":"bytes32"
},
{
"indexed":false,
"name":"delegate",
"type":"address"
},
{
"indexed":false,
"name":"validTo",
"type":"uint256"
},
{
"indexed":false,
"name":"previousChange",
"type":"uint256"
}
],
"name":"DIDDelegateChanged",
"type":"event"
},
{
"anonymous":false,
"inputs":[
{
"indexed":true,
"name":"identity",
"type":"address"
},
{
"indexed":false,
"name":"name",
"type":"bytes32"
},
{
"indexed":false,
"name":"value",
"type":"bytes"
},
{
"indexed":false,
"name":"validTo",
"type":"uint256"
},
{
"indexed":false,
"name":"previousChange",
"type":"uint256"
}
],
"name":"DIDAttributeChanged",
"type":"event"
},
{
"constant":true,
"inputs":[
{
"name":"identity",
"type":"address"
}
],
"name":"identityOwner",
"outputs":[
{
"name":"",
"type":"address"
}
],
"payable":false,
"stateMutability":"view",
"type":"function"
},
{
"constant":true,
"inputs":[
{
"name":"identity",
"type":"address"
},
{
"name":"delegateType",
"type":"bytes32"
},
{
"name":"delegate",
"type":"address"
}
],
"name":"validDelegate",
"outputs":[
{
"name":"",
"type":"bool"
}
],
"payable":false,
"stateMutability":"view",
"type":"function"
},
{
"constant":false,
"inputs":[
{
"name":"identity",
"type":"address"
},
{
"name":"newOwner",
"type":"address"
}
],
"name":"changeOwner",
"outputs":[
],
"payable":false,
"stateMutability":"nonpayable",
"type":"function"
},
{
"constant":false,
"inputs":[
{
"name":"identity",
"type":"address"
},
{
"name":"sigV",
"type":"uint8"
},
{
"name":"sigR",
"type":"bytes32"
},
{
"name":"sigS",
"type":"bytes32"
},
{
"name":"newOwner",
"type":"address"
}
],
"name":"changeOwnerSigned",
"outputs":[
],
"payable":false,
"stateMutability":"nonpayable",
"type":"function"
},
{
"constant":false,
"inputs":[
{
"name":"identity",
"type":"address"
},
{
"name":"delegateType",
"type":"bytes32"
},
{
"name":"delegate",
"type":"address"
},
{
"name":"validity",
"type":"uint256"
}
],
"name":"addDelegate",
"outputs":[
],
"payable":false,
"stateMutability":"nonpayable",
"type":"function"
},
{
"constant":false,
"inputs":[
{
"name":"identity",
"type":"address"
},
{
"name":"sigV",
"type":"uint8"
},
{
"name":"sigR",
"type":"bytes32"
},
{
"name":"sigS",
"type":"bytes32"
},
{
"name":"delegateType",
"type":"bytes32"
},
{
"name":"delegate",
"type":"address"
},
{
"name":"validity",
"type":"uint256"
}
],
"name":"addDelegateSigned",
"outputs":[
],
"payable":false,
"stateMutability":"nonpayable",
"type":"function"
},
{
"constant":false,
"inputs":[
{
"name":"identity",
"type":"address"
},
{
"name":"delegateType",
"type":"bytes32"
},
{
"name":"delegate",
"type":"address"
}
],
"name":"revokeDelegate",
"outputs":[
],
"payable":false,
"stateMutability":"nonpayable",
"type":"function"
},
{
"constant":false,
"inputs":[
{
"name":"identity",
"type":"address"
},
{
"name":"sigV",
"type":"uint8"
},
{
"name":"sigR",
"type":"bytes32"
},
{
"name":"sigS",
"type":"bytes32"
},
{
"name":"delegateType",
"type":"bytes32"
},
{
"name":"delegate",
"type":"address"
}
],
"name":"revokeDelegateSigned",
"outputs":[
],
"payable":false,
"stateMutability":"nonpayable",
"type":"function"
},
{
"constant":false,
"inputs":[
{
"name":"identity",
"type":"address"
},
{
"name":"name",
"type":"bytes32"
},
{
"name":"value",
"type":"bytes"
},
{
"name":"validity",
"type":"uint256"
}
],
"name":"setAttribute",
"outputs":[
],
"payable":false,
"stateMutability":"nonpayable",
"type":"function"
},
{
"constant":false,
"inputs":[
{
"name":"identity",
"type":"address"
},
{
"name":"sigV",
"type":"uint8"
},
{
"name":"sigR",
"type":"bytes32"
},
{
"name":"sigS",
"type":"bytes32"
},
{
"name":"name",
"type":"bytes32"
},
{
"name":"value",
"type":"bytes"
},
{
"name":"validity",
"type":"uint256"
}
],
"name":"setAttributeSigned",
"outputs":[
],
"payable":false,
"stateMutability":"nonpayable",
"type":"function"
},
{
"constant":false,
"inputs":[
{
"name":"identity",
"type":"address"
},
{
"name":"name",
"type":"bytes32"
},
{
"name":"value",
"type":"bytes"
}
],
"name":"revokeAttribute",
"outputs":[
],
"payable":false,
"stateMutability":"nonpayable",
"type":"function"
},
{
"constant":false,
"inputs":[
{
"name":"identity",
"type":"address"
},
{
"name":"sigV",
"type":"uint8"
},
{
"name":"sigR",
"type":"bytes32"
},
{
"name":"sigS",
"type":"bytes32"
},
{
"name":"name",
"type":"bytes32"
},
{
"name":"value",
"type":"bytes"
}
],
"name":"revokeAttributeSigned",
"outputs":[
],
"payable":false,
"stateMutability":"nonpayable",
"type":"function"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment