Skip to content

Primitive Access Control List #134

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 10 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# beakeros
[![CircleCI](https://circleci.com/gh/Daolab/beakeros.svg?style=svg&circle-token=03f33d77aa4de144ba10274b9e4020ffb82f7c95)](https://circleci.com/gh/Daolab/beakeros)
[![CircleCI](https://circleci.com/gh/daohub-io/beakeros.svg?style=svg&circle-token=03f33d77aa4de144ba10274b9e4020ffb82f7c95)](https://circleci.com/gh/Daolab/beakeros)

This is the BeakerOS repo. It contains an implementation of the Beaker kernel.
The whitepaper for BeakerOS is contained in a separate repository:
[https://github.com/Daolab/beaker-whitepaper](https://github.com/Daolab/beaker-whitepaper).
[https://github.com/daohub-io/beaker-whitepaper](https://github.com/Daolab/beaker-whitepaper).

## Testing
You will need Nodejs Installed:
Expand Down
391 changes: 391 additions & 0 deletions contracts/system/ACL.sol

Large diffs are not rendered by default.

36 changes: 36 additions & 0 deletions contracts/system/TestACL.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
pragma solidity ^0.4.17;

import "./ACL.sol";

contract TestACL is ACL {

function getGroupByIndex(uint8 _groupIndex) public returns (bytes24 procId, uint8 accountsLen, uint8 groupIndex) {
return _getGroupByIndex(_groupIndex);
}

function getAccountById(address _accountId) public returns (address accountId, bytes24 procId, uint8 accountIndex) {
return _getAccountById(_accountId);
}

function getAccountByIndex(uint8 _accountIndex) public returns (address accountId, bytes24 procId, uint8 accountIndex) {
return _getAccountByIndex(_accountIndex);
}

function createGroup(bytes24 _procId) public returns (uint8 groupIndex) {
return _createGroup(_procId);
}

function removeGroup(bytes24 _procId) public returns (uint8 groupIndex) {
return _removeGroup(_procId);
}

function addAccount(address _accountId, bytes24 _procId) public returns (uint8 accountIndex) {
return _addAccount(_accountId, _procId);
}

function removeAccount(address _accountId) public {
_removeAccount(_accountId);
}


}
Loading