Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/dapphub/ds-token

A simple and sufficient ERC20 implementation
https://github.com/dapphub/ds-token

dappsys erc20 ethereum solidity

Last synced: 3 months ago
JSON representation

A simple and sufficient ERC20 implementation

Lists

README

        

DSToken



_An ERC20 Token with wholesome memes_

Provides a standard [ERC20] token interface plus [DSAuth]-protected
`mint` and `burn` functions; binary approval via `MAX_UINT`; as well as
`push`, `pull` and `move` aliases for `transferFrom` operations.

[ERC20]: https://theethereum.wiki/w/index.php/ERC20_Token_Standard
[DSAuth]: https://dapp.tools/dappsys/ds-auth

### Custom Actions

#### `mint`
credit tokens at an address whilst simultaniously increasing `totalSupply`
(requires auth)

#### `burn`
debit tokens at an address whilst simultaniously decreasing `totalSupply`
(requires auth)

### Aliases

#### `push`
transfer an amount from `msg.sender` to a given address (requires trust or
approval)

#### `pull`
transfer an amount from a given address to `msg.sender` (requires trust or
approval)

#### `move`
transfer an amount from a given `src` address to a given `dst` address (requires
trust or approval)