forked from ethpm/ethpm-spec
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path1.0.0.json
55 lines (55 loc) · 3.55 KB
/
1.0.0.json
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
{
"lockfile_version": "1",
"version": "1.0.0",
"package_name": "standard-token",
"sources": {
"./contracts/AbstractToken.sol": "ipfs://QmQMXDprXxCunfQjA42LXZtzL6YMP8XTuGDB6AjHzpYHgk",
"./contracts/StandardToken.sol": "ipfs://QmNLr7DzmiaQvk25C8bADBnh9bF5V3JfbwHS49kyoGGEHz"
},
"contract_types": {
"StandardToken": {
"abi": [{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"}],"name":"approve","outputs":[{"name":"success","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"success","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"balance","type":"uint256"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transfer","outputs":[{"name":"success","type":"bool"}],"payable":false,"type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"},{"name":"_spender","type":"address"}],"name":"allowance","outputs":[{"name":"remaining","type":"uint256"}],"payable":false,"type":"function"},{"inputs":[{"name":"_totalSupply","type":"uint256"}],"payable":false,"type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"owner","type":"address"},{"indexed":true,"name":"spender","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Approval","type":"event"}],
"natspec": {
"author": "Stefan George - <[email protected]>",
"title": "Standard token contract",
"methods": {
"allowance(address,address)": {
"details": "Returns number of allowed tokens for given address.",
"params": {
"_owner": "Address of token owner.",
"_spender": "Address of token spender."
}
},
"approve(address,uint256)": {
"details": "Sets approved amount of tokens for spender. Returns success.",
"params": {
"_spender": "Address of allowed account.",
"_value": "Number of approved tokens."
}
},
"balanceOf(address)": {
"details": "Returns number of tokens owned by given address.",
"params": {
"_owner": "Address of token owner."
}
},
"transfer(address,uint256)": {
"details": "Transfers sender's tokens to a given address. Returns success.",
"params": {
"_to": "Address of token receiver.",
"_value": "Number of tokens to transfer."
}
},
"transferFrom(address,address,uint256)": {
"details": "Allows allowed third party to transfer tokens from one address to another. Returns success.",
"params": {
"_from": "Address from where tokens are withdrawn.",
"_to": "Address to where tokens are sent.",
"_value": "Number of tokens to transfer."
}
}
}
}
}
}
}