-
Notifications
You must be signed in to change notification settings - Fork 55
/
SGT.sol
38 lines (28 loc) · 1.19 KB
/
SGT.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
pragma solidity ^0.4.11;
/*
Copyright 2017, Jarrad Hope (Status Research & Development GmbH)
*/
import "./MiniMeToken.sol";
contract SGT is MiniMeToken {
uint256 constant D160 = 0x0010000000000000000000000000000000000000000;
function SGT(address _tokenFactory)
MiniMeToken(
_tokenFactory,
0x0, // no parent token
0, // no snapshot block number from parent
"Status Genesis Token", // Token name
1, // Decimals
"SGT", // Symbol
false // Enable transfers
) {}
// data is an array of uint256s. Each uint256 represents a transfer.
// The 160 LSB is the destination of the address that wants to be sent
// The 96 MSB is the amount of tokens that wants to be sent.
function multiMint(uint256[] data) public onlyController {
for (uint256 i = 0; i < data.length; i++) {
address addr = address(data[i] & (D160 - 1));
uint256 amount = data[i] / D160;
assert(generateTokens(addr, amount));
}
}
}