-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Liberland judiciary and smart contracts #2267
Conversation
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅ |
af28917
to
c706a08
Compare
I have read and hereby sign the Contributor License Agreement. |
Are you still intending to make further changes or should we be reviewing it in draft form? |
We will update |
66975a9
to
0d38a8b
Compare
Ready now, not sure what to do with PR label though. |
applications/Liberland_judiciary.md
Outdated
|
||
Upon a comprehensive review of the solutions currently available within the Polkadot Ecosystem, we have found that none of these proposals or existing systems align directly with the unique functionality and objectives of our proposed solution. The two proposals that bear the closest resemblance to our initiative are the SaaS3 Court and the DOT Marketplace. However, upon closer examination, these systems diverge significantly from our approach in several key areas. | ||
|
||
**[SaaS3 Court](https://github.com/SaaS3-Foundation/saas3-dao/tree/main/pallets/court)**: This proposal outlines a jury-based judiciary system specifically designed for the blockchain. However, it lacks the comprehensive legal framework that our solution offers, as it does not aim to establish a full-fledged jurisdiction or nation-state. Its primary focus is to implement a judiciary system on the blockchain, where jurors are compensated in tokens based on the outcomes of certain cases. This system, while innovative, does not encompass the breadth of legal considerations that our solution addresses. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you explain a bit more what you mean by 'comprehensive legal framework' and how this pallet falls short of that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added explanation. Basically, the Saas3DAO is dead, and their court only supported 1 use case (sue - get money), while ours is more generic through contracts and can have arbitrary executions, not just transfer of tokens.
Pls resolve if clear.
|
||
#### Project Overview | ||
|
||
The Liberland Judiciary is developing an on-chain system capable of acting on behalf of a party without their explicit permission in pre-determined ways with mutual consent given in advance. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In what ways does the judiciary act on behalf of another party? Can you give examples? This sounds like a fairly simple role-based setup akin to AccessControl.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Question, should i answer your questions in comments or update the application to be more clear?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The best way usually is to add info to the document and then post a summary as a PR comment. Thanks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe its explained in the rest of the proposal. Basically, the contracts define the dispute mode and actions available in dispute mode and the way to trigger them. Sometimes it can be simple proxy/access control, but dispute resolution can be a more complex process.
We will probably make use of some contract library like openbrush. Any reason you specifically suggested pendzl instead of openbrush?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any reason you specifically suggested pendzl instead of openbrush?
Pendzl is the successor to OpenBrush, which is not being developed anymore.
|
||
This limitation needs to be solved in order to run a country on the blockchain. | ||
|
||
Liberland solves this through courts acting as on-chain oracles providing data and judgements to contracts. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you explain what a court looks like, both on-chain and off-chain? The way I understand it, "acting as on-chain oracle" simply refers to discussing a case IRL and then submitting judgements to the chain, correct? Or is there more involved?
pinging @DorianSternVukotic & @michalptacnik |
Thanks. Everything should be handled, please resolve if its satisfactory. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the updates, @DorianSternVukotic. I still have some questions, but I am going to share your application with the rest of the committee already, so they can comment as well.
| **0d.** | Docker | Dockerfile(s) that can be used to test the functionality in this milestone. | ||
| 1. | Contract insurace | Develop default insurance contracts that can be used as collateral provider in other contracts | | ||
| 2. | Substrate module: Judiciary Market | Module that gathers on-chain data to facilitate the operation of the marketplace of judges to be used as judges and jurisdictions in contracts| | ||
| 3. | Contract builder | Easy to use frontend interface to build hybrid contracts by adding pre-built smart and traditional clauses, define jurisdictions, handle collateral, handle dispute mode etc. | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have you done any work on this yet? Usually, we ask for wireframes or designs at the time of application.
|
||
- **Who is your target audience (parachain/dapp/wallet/UI developers, designers, your own user base, some dapp's userbase, yourself)?** | ||
|
||
Liberland justice system, Liberland entrepreneurs, anyone else who wants to run complex contracts and dispute resolution on chain |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How many citizens does Liberland have?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
978 + about 4000 e-residents
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the application and the interest in our grants program. However, I personally won’t approve the application. On the one hand, I’m personally not fully convinced about the project itself. On the other hand, I think the grants program should ideally always only support projects with some initial funding, and after this, ideally projects find other funding sources, like the on-chain treasury or VCs, etc.
Hey @DorianSternVukotic , |
There are still some other committee members who might want to comment. I'll try to get some more eyes on it until EOD tomorrow. |
Hi @DorianSternVukotic while I'm a fan of the "open-source govt" vision of Liberland, I have to agree with my colleagues that I'm not sure these components will be of value to the greater Polkadot ecosystem. In other words, the smart contracts and the judiciary marketplace front-end seem very specific to your use case. For example, I'm not seeing how others would be able to make use of the insurance contracts. I'm also not sure that the contract builder deliverable is necessary since there are other projects working on making it easy for non-technical users to create smart contracts. I would love to see an OpenGov-like system used by a country to move diplomatic mechanisms on-chain, (possibly at the runtime-level with no need for Solidity contracts) but I think it could be more appropriately funded by alternative sources as mentioned above. Therefore I also will not approve the application at this time. |
I... dont understand this. If there is a fully functional crypto insurance system, for example health insurance like mentioned in the grant, that works within any country as long as there is a private court to enforce it, then that would definitely be a feature used by many. The doubt i would raise would be about if we are able to build a real ecosystem around it, not if if would be useful to others if built. Am I understanding it correctly?
Yeah, for tokens or dApps, not for traditional business cases. If I missed something and you know of a contract builder that does what we need, I would love to hear it as it would save us time. |
Thanks for your response @DorianSternVukotic, to clarify, I was referring to other developers rather than end-users. This led me to realize I should also explain that there have been some changes to the grants program since your last grant was received, in which we are now aiming to focus mainly on Polkadot core tech & tooling. These Solidity contracts, while interesting, aren't super specific to Polkadot and could really be written for any supported EVM chain. Additionally, you are correct in the sense that our concern lies around the ability to create a robust ecosystem around the product, as we have had many projects in the past become unmaintained or non-starters, especially in the Healthcare arena.
Fair point here, but I would still argue that you're attempting to cover a lot of ground, and it seems very ambitious. Before building tooling, in my opinion it might be better to focus on just the on-chain judicial system PoC & research, as there has already been a lot conducted in this area in the Ethereum world. For example, Open Law has done some work on creating standardized legal agreements as Solidity contracts. For arbitration, both Aragon Court (now defunct) and Kleros Court have come a long way in development. Perhaps worth checking to see if its possible to collaborate w/ one of these other projects instead of building from scratch. |
Not solidity, we are doing it in ink, our chain is substrate chain.
So... doing something like Open Law as substrate pallet or in ink would be covered in what grants are looking for :P ?
Fair point, but Id like to point out that Liberland has existed since 2015, we have people living on the actual land, and also have started a PoC of company and legal ecosystem that is in use already since last month. You can check it for yourself at blockchain.liberland.org if you would like, though it requires a liberland.org account to use for now. You can browse existing companies and contracts, which is what this grants scope ties into
Yeah, thats kinda what we started with, but the grant request took so long because we realized having a PoC judiciary for disputes and judiciary for companies could both be solved by the use of hybrid contracts and courts as oracles... So that original version was adapted to what we have now. |
@DorianSternVukotic ah ok thanks for clarifying, I just assumed since I didn't see ink! mentioned in the application. That being said, ink! also happens to be undergoing a transformation currently, which means there may be alternative means of funding in the coming months. In the meantime, I can also recommend the Aleph Zero Ecosystem Funding Program, which can fast-track ink! applications up to $30k. |
@DorianSternVukotic thanks for the work you put into this. Unfortunately, the committee decided to not go ahead with this proposal at this time. The reasons are those named above, mainly reusability by other parties as well as the fact that ink! is undergoing a transformation, as mentioned by @keeganquigley. |
Project Abstract
Follow-up on Liberland Grant Application
Grant level
Application Checklist
project_name.md
).