Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
openzeppelin-contracts-upgradeable
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
俞永鹏
openzeppelin-contracts-upgradeable
Commits
fc17a1d9
Commit
fc17a1d9
authored
Feb 25, 2019
by
Leo Arias
Committed by
Francisco Giordano
Feb 25, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add usage docs to ERC20 Snapshot (#1639)
parent
c44e40c2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
ERC20Snapshot.sol
contracts/drafts/ERC20Snapshot.sol
+5
-0
No files found.
contracts/drafts/ERC20Snapshot.sol
View file @
fc17a1d9
...
@@ -11,6 +11,11 @@ import "../token/ERC20/ERC20.sol";
...
@@ -11,6 +11,11 @@ import "../token/ERC20/ERC20.sol";
* https://github.com/Giveth/minime/blob/ea04d950eea153a04c51fa510b068b9dded390cb/contracts/MiniMeToken.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
* When a snapshot is made, the balances and totalSupply at the time of the snapshot are recorded for later
* access.
* 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 <info@validitylabs.org>
* @author Validity Labs AG <info@validitylabs.org>
*/
*/
contract ERC20Snapshot is ERC20 {
contract ERC20Snapshot is ERC20 {
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment