forked from icoface/icoface-contract
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathICOFace.sol
32 lines (26 loc) · 987 Bytes
/
ICOFace.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
pragma solidity ^0.4.10;
contract ICOFace {
struct Persona {
string name;
string role;
string projectName;
string personLink;
string photoLink;
string pageLink;
}
Persona[] records;
function numberOfRecords() constant returns (uint length) {
return records.length;
}
function append(string name, string role, string projectName, string personLink, string photoLink, string pageLink) {
records.push(Persona(name, role, projectName, personLink, photoLink, pageLink));
}
function get(uint index) constant returns (string name, string role, string projectName, string personLink, string photoLink, string pageLink) {
return (records[index].name,
records[index].role,
records[index].projectName,
records[index].personLink,
records[index].photoLink,
records[index].pageLink);
}
}