From 4fd8c6fa2a39d0c33c8d941bd3696f17557a4242 Mon Sep 17 00:00:00 2001 From: Lucas Cullen Date: Tue, 2 Jul 2019 15:43:23 +1000 Subject: [PATCH] Update eip-1753.md --- EIPS/eip-1753.md | 56 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/EIPS/eip-1753.md b/EIPS/eip-1753.md index 53a2e763f66e64..774d5d48bf7257 100644 --- a/EIPS/eip-1753.md +++ b/EIPS/eip-1753.md @@ -55,6 +55,62 @@ Returns the total permit supply. function totalSupply() public view returns (uint256) ``` +#### grantAuthority + +Adds an ethereum address to a white list of addresses that have authority to modify a permit. + +``` js +function grantAuthority(address who) +``` + +#### revokeAuthority + +Removes an ethereum address from a white list of addresses that have authority to modify a permit. + +``` js +function revokeAuthority(address who) +``` + +#### hasAuthority + +Checks to see if the address has authority to grant or revoke permits. + +``` js +function hasAuthority(address who) +``` + +#### issue + +Issues an ethereum address a permit between the specified date range. + +``` js +function issue(address who, uint256 from, uint256 to) public; +``` + +#### revoke + +Revokes a permit from an ethereum address. + +``` js +function revoke(address who) public; +``` + +#### hasValid + +Checks to see if an ethereum address has a valid permit. + +``` js +function hasValid(address who) public view returns (boolean); +``` + +#### purchase + +Allows a user to self procure a licence. + +``` js +function purchase(uint256 from, uint256 to) public payable; +``` + ## Rationale The use of smart contracts to apply for, renew, suspend and revoke Licences will free up much needed government resources and allow for the more efficient management of Licences. The EIP also seeks to improve the end user experience of the Licence system. In an era of open government, there is also an increased expectation that individuals will be able to easily access Licence registries, and that the process will be transparent and fair.