Skip to content
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

New design: facade/controller, etc #360

Open
AnthonyAkentiev opened this issue Oct 27, 2018 · 0 comments
Open

New design: facade/controller, etc #360

AnthonyAkentiev opened this issue Oct 27, 2018 · 0 comments
Assignees

Comments

@AnthonyAkentiev
Copy link
Member

From Slack:

contract API {
    function addUserToGroup(string _group, address _user){
        engine.do("addUserToGroup", [engine.c(_group), engine.c(_user)])
    }
}

contract Engine {
    function do(string _func, bytes32[] _params){
        libController.do(_func, _params);
    }
}

contract LibController {
    function do(string _func, bytes32[] _params){
        FuncData funcData = engine.get(_func);

        funcData.libAdrress
        .call() ....
    }
}

contract DaoBase {
    function addUserToGroup(string _group, address _user){}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants