From fc17a1d9f58b7ca6e2de884769f8b6b362dc0e3c Mon Sep 17 00:00:00 2001 From: Leo Arias Date: Mon, 25 Feb 2019 09:36:16 -0600 Subject: [PATCH] Add usage docs to ERC20 Snapshot (#1639) --- contracts/drafts/ERC20Snapshot.sol | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/contracts/drafts/ERC20Snapshot.sol b/contracts/drafts/ERC20Snapshot.sol index 941f024ee..9dfef985b 100644 --- a/contracts/drafts/ERC20Snapshot.sol +++ b/contracts/drafts/ERC20Snapshot.sol @@ -11,6 +11,11 @@ import "../token/ERC20/ERC20.sol"; * https://github.com/Giveth/minime/blob/ea04d950eea153a04c51fa510b068b9dded390cb/contracts/MiniMeToken.sol * When a snapshot is made, the balances and totalSupply at the time of the snapshot are recorded for later * access. + * + * To make a snapshot, call the `snapshot` function, which will emit the `Snapshot` event and return a snapshot id. + * To get the total supply from a snapshot, call the function `totalSupplyAt` with the snapshot id. + * To get the balance of an account from a snapshot, call the `balanceOfAt` function with the snapshot id and the + * account address. * @author Validity Labs AG */ contract ERC20Snapshot is ERC20 {