-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample.json
More file actions
42 lines (42 loc) · 1.04 KB
/
Copy pathexample.json
File metadata and controls
42 lines (42 loc) · 1.04 KB
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
{
"license": "UNLICENSED",
"version": "0.8.24",
"contractName": "test",
"globals": [
{
"name": "_balances",
"type": "mapping",
"params": { "from": "address", "to": "uint256" },
"initValue": "100"
},
{
"name": "staticArray",
"type": "staticArray",
"params": { "type": "uint256", "length": "5" },
"initValue": ["100", "200", "300"]
},
{
"name": "dynamicArray",
"type": "dynamicArray",
"params": { "type": "uint256" },
"initValue": ["3", "2", "1"]
}
],
"functions": {
"getTokenBalance": {
"params": [
{ "name": "tokenAddress", "type": "address" },
{ "name": "account", "type": "address" }
],
"return": [{ "name": "balance", "type": "uint256" }]
},
"getTokenInfo": {
"params": [{ "name": "tokenAddress", "type": "address" }],
"return": [
{ "name": "name", "type": "string" },
{ "name": "symbol", "type": "string" },
{ "name": "decimals", "type": "uint8" }
]
}
}
}