Skip to content

Commit 90b7ff5

Browse files
author
anu
committed
Initial commit
0 parents  commit 90b7ff5

10 files changed

+3115
-0
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules
2+
build

1_flatten.sh

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
set -e
3+
trap 'echo "ERROR: nonzero exit status $? at line $LINENO in $BASH_SOURCE"' ERR
4+
5+
TMPFILE=$(mktemp)
6+
./node_modules/.bin/truffle-flattener _ALPHANU_source.sol > "$TMPFILE"
7+
mv "$TMPFILE" contracts/ALPHANU.sol

2_patch.sh

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
set -e
3+
trap 'echo "ERROR: nonzero exit status $? at line $LINENO in $BASH_SOURCE"' ERR
4+
5+
sed -i.bak '/_addPauser(msg.sender);/d' contracts/ALPHANU.sol
6+
rm contracts/ALPHANU.sol.bak
7+
8+
sed -i.bak 's/_ALPHANU_source.sol/ALPHANU.sol/' contracts/ALPHANU.sol
9+
rm contracts/ALPHANU.sol.bak

3_compile.sh

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
set -e
3+
trap 'echo "ERROR: nonzero exit status $? at line $LINENO in $BASH_SOURCE"' ERR
4+
5+
./node_modules/.bin/truffle compile

README.md

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# AlphaNu (ANU) ERC20 Token Smart Contract
2+
3+
This repository contains the Solidity source code for the ALPHANU (ANU) ERC20 token smart contract deployed on the Ethereum network at the address [0xaffdbbBdD400Bb780DeA5307b39187D1E9Edc1cC](https://etherscan.io/address/0xaffdbbBdD400Bb780DeA5307b39187D1E9Edc1cC).
4+
5+
The code [contracts/ALPHANU.sol](contracts/ALPHANU.sol) can be generated by:
6+
7+
```
8+
npm i && ./1_flatten.sh && ./2_patch.sh && ./3_compile.sh
9+
```
10+
11+
The contract is compiled through Solidity compiler version `v0.5.0+commit.1d4f565a` with no optimization.
12+
13+
The hardcoded [0x154caCE94Ffd5C401145ee887d4e1C1664f7Ee37](https://etherscan.io/address/0x154caCE94Ffd5C401145ee887d4e1C1664f7Ee37) is AlphaNu's Multisignature wallet.

_ALPHANU_source.sol

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
pragma solidity ^0.5.0;
2+
3+
import "openzeppelin-solidity/contracts/token/ERC20/ERC20Pausable.sol";
4+
5+
contract ALPHANU is ERC20Pausable {
6+
7+
address private constant _main_wallet = 0x154caCE94Ffd5C401145ee887d4e1C1664f7Ee37;
8+
uint256 private constant _fixed_supply = 10**28;
9+
10+
string public constant name = "ALPHANU";
11+
string public constant symbol = "ANU";
12+
uint8 public constant decimals = 18;
13+
14+
constructor () public {
15+
_mint(_main_wallet, _fixed_supply);
16+
_addPauser(_main_wallet);
17+
}
18+
}

0 commit comments

Comments
 (0)