GithubHelp home page GithubHelp logo

zeppelinos / kernel Goto Github PK

View Code? Open in Web Editor NEW
10.0 10.0 6.0 352 KB

:warning: Deprecated in favour of OpenZeppelin/openzeppelin-sdk

License: MIT License

JavaScript 68.99% Solidity 30.63% Shell 0.37%

kernel's People

Contributors

facuspagnuolo avatar fiiiu avatar maraoz avatar martriay avatar richardartoul avatar spalladino avatar theethernaut avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

kernel's Issues

Add validateInstance() to KernelInstance registration logic

The current ZepCore implementation allows any KernelInstance to be registered as long as the sender had set the due ZepToken allowance and there isn't a name/version clash in the registry.

Considering that:

  1. Although our current staking model encourages forking from a high-staked distribution version to attract its "audience", the base kernel needs to be frozen to be a fork's parent and that's up to the base kernel developer. This way, the developer can "deny" other developers forking from it.
  2. Stakers today can stake for an unfrozen (mutable) distribution version. This allows the developer to add new implementations after staking.
  3. I can register a KernelInstance whose parent is not in the registry.

I think we should include a validateInstance() function (or modifier) to ZepCore's register() to perform all the necessary checks before registering a KernelInstance.

To start, I'd enforce that an instance has to be frozen and its parent registered, matching not only its name/version hash but its address too.

Thoughts?

Allow release developer to be modified

The developer of a Release is now set at creation time as msg.sender. As is the case with owner, consider providing the option of modifying the developer of a release later on.

Check pricing of registration and payouts in ZepCore

Right now, the _newVersionCost variable specifying the cost of deploying a new kernel version, and _developerFraction, which specifies the fraction of each vouch that is forwarded to the version developer, are fixed by ZepCore's constructor. The only way to modify them is to go through a full kernel upgrade.

We should evaluate the possibility of introducing a mechanism to change these without resorting to an upgrade (maybe a simple setter would do?).

Consider merging Kernel and Vouching

Currently the Kernel owns an instance of a Vouching contract where it keeps track of vouching numbers. This separation adds unnecessary complexity. Let's consider making Kernel is Vouching and not making Vouching an Ownable so as to keep all state in the same "physical" contract.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.