0

At what level are Ricardian contracts implemented? Examples I see are in the constitution . Can these be applied at the application level? Eg. A derivation contract with the terms of contract richardian?

5

Yes, you can create a dapp with a Ricardian contract embedded in it. Specifically in the abi file which is a JSON file defining the interface of the smart contract or the dapp. This is the empty Ricardian structure:

"ricardian_clauses": []

A more elaborate example of a ricardian contract can be seen in the hello example contract.

A Ricardian contract states the intentions of the contract and can reference actual code from the dapp. More info can be found in: Ricardian contracts — legally binding agreements on the blockchain

  • 1
    The hello example was probably taken from a BP contract and is not really adjusted to the hello example. There should be more as it is a proposed requirement of the constitution to publish source code and ricardian contracts of dApps on EOS. – friedger Jun 21 '18 at 8:33
  • @friedger, I agree with the proposal, transparency is a great requirement and ricardian contracts both help and need the source code of the contracts. My answer was on the technical aspects of the issue, not the content. You're more than welcome to write a better answer :) – Ami Heines Jun 21 '18 at 10:39
  • 1
    Your answer is good! The hello is the only example I could find as well. I tried to write some for monstereos: github.com/leordev/monstereos/tree/master/contracts/pet – friedger Jun 21 '18 at 10:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.