Daohub-io / cap9

Capability-based security protocol for smart contracts
Apache License 2.0
22 stars 10 forks source link

Basic SRML Module Api #199

Closed Latrasis closed 4 years ago

Latrasis commented 5 years ago

Based on #198, we need to setup an srml runtime api including:

JakeOShannessy commented 4 years ago

A placeholder clist is now being stored in AccountDb successfully. Next step is to make that into a useful data structure.

JakeOShannessy commented 4 years ago

I'm currently using an array of 7 booleans to represent the capabilities. As this data structure is not a critical part of the design I suggest we leave it as that for now while we focus on other things.

JakeOShannessy commented 4 years ago

Something like DELEGATECALL from Ethereum has been implemented which should take us toward completing this issue. Two important notes:

Latrasis commented 4 years ago

Closing this for now, considering we're dealing with an api that might not fit with what we expect.