-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathGxAccounts.sol
More file actions
34 lines (25 loc) · 1.02 KB
/
GxAccounts.sol
File metadata and controls
34 lines (25 loc) · 1.02 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
pragma solidity ^0.4.2;
import './libraries.sol';
import './GxAccountsInterface.sol';
contract GxAccounts is GxAccountsInterface {
using IterableAddressMapping for IterableAddressMapping.iterableAddressMap;
IterableAddressMapping.iterableAddressMap addresses;
//abstract
function add(address newAddress) public;
function remove(address removedAddress) public;
function contains(address lookupAddress) public constant returns (bool _c){
return addresses.contains(lookupAddress);
}
function iterateStart() public constant returns (uint keyIndex) {
return iterateNext(0);
}
function iterateValid(uint keyIndex) public constant returns (bool) {
return addresses.iterateValid(keyIndex);
}
function iterateNext(uint keyIndex) public constant returns (uint r_keyIndex) {
return addresses.iterateNext(keyIndex);
}
function iterateGet(uint keyIndex) public constant returns (address mappedAddress) {
return addresses.iterateGet(keyIndex);
}
}