Giter Site home page Giter Site logo

hjorthjort / cosmos-sdk Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cosmos/cosmos-sdk

0.0 0.0 0.0 196.81 MB

:chains: A Framework for Building High Value Public Blockchains :sparkles:

Home Page: https://cosmos.network/

License: Other

Makefile 0.37% Go 86.80% Shell 0.13% Python 0.06% Dockerfile 0.04% C++ 0.09% M4 0.34% C 8.57% Assembly 0.37% Java 0.39% Sage 0.39% TLA 2.45%

cosmos-sdk's People

Contributors

aaronc avatar adityasripal avatar alessio avatar alexanderbez avatar amaury1093 avatar atheeshp avatar colin-axner avatar cwgoes avatar dautt avatar dependabot-preview[bot] avatar dependabot[bot] avatar ebuchman avatar ethanfrey avatar faboweb avatar fedekunze avatar gamarin2 avatar greg-szabo avatar jackzampolin avatar jaekwon avatar jgimeno avatar mossid avatar odeke-em avatar rigelrozanski avatar robert-zaremba avatar sahith-narahari avatar sunnya97 avatar svaishnavy avatar tac0turtle avatar valardragon avatar zramsay avatar

Watchers

 avatar

cosmos-sdk's Issues

Decide on a K-like state format

Use basic K-style format, but simplify names of common objects.
For example, {} instead of .Map.

Don't use starting object. Instead, just give type descriptions.
You can have default objects.

How to describe bags?

<myBag>
  {
    <id> _ :: String </id>
    <foo> b'' :: Bytes </foo>
   }*
</myBag>

Each module has its own state (and it's own store inside the multistore). So we should probably define one state configuration for each module, and compose them when necessary.

How to model keepers?

Ideas:

  • Configuration compostion. If one module has access to the keeper of the former, then that module "imports" the former, with configuration compostion.
<accessee>
   <foo> </foo
</accessee>

<accessor>
  <accessee/>
  <bar> </bar>
</accessor>
  • Explicit "keeper" keys. Every module has a "keeper" key (doesn't have to be initialized), an Int. To access the module, the accessor must (by convention) mention the keeper.
<accessee>
   <keeper> K </keeper>
   <foo> </foo
</accessee>

<accessor>
  <accesseeKeeper> K </accesseeKeeper>
  <bar> </bar>
</accessor>

rule foo => . 
  <accesseeKeeper> K </accesseeKeeper>
   <accessee>
     <keeper> K </keeper>
     <foo> _ => 42 </foo>
  </accesseeKeeper>

Roadmap

  • Deliverable 1: High-level system overview (2020-02-08)

  • Deliverable 2: Staking documentation

    • Bonding, Unbonding, Unbonded
    • EndBlock events and waiting UnbondingTime
    • How are jailed validators handled during delegation (what happens if you try to delegate to a jailed validator).
    • Delegation, redelegation and key updates of validators
      • Sequence diagram for delegating (module interactions)
  • Deliverable 3: Distribution documentation

    • EndBlock BeginBlock lazy fee distribution
    • Messages
    • Hooked state updates

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.