1 stable release
new 7.0.0 | Dec 13, 2024 |
---|---|
6.0.0 |
|
#276 in Magic Beans
225 downloads per month
285KB
6.5K
SLoC
Law Stone
Overview
The axone-law-stone
smart contract aims to provide GaaS (i.e. Governance as a Service) in any Cosmos blockchains using the CosmWasm framework and the Logic AXONE module.
This contract is built around a Prolog program describing the law by rules and facts. The law stone is immutable, this means it can only be questioned, there are no update mechanisms.
The axone-law-stone
responsibility is to guarantee the availability of its rules in order to question them, but not to ensure the rules application.
To ensure reliability over time, the associated Prolog program is stored and pinned in a axone-objectarium
contract. Moreover, all the eventual loaded files must be stored in a axone-objectarium
contract as well, allowing the contract to pin them.
To be able to free the underlying resources (i.e. objects in axone-objectarium
) if not used anymore, the contract admin can break the stone.
➡️ Checkout the examples for usage information.
Dependencies
~8–11MB
~222K SLoC