Git Product home page Git Product logo

escrow-smart-contract-marlowe's Introduction

Escrow-Smart-Contract-Marlowe

This file contains code for a smart contract written in DAML, a programming language for writing distributed applications. The contract is for a simple escrow between a seller and a buyer, with the option for a mediator to resolve disputes. The contract specifies the following steps:

  1. The seller deposits a token and specifies a price.
  2. The buyer has the option to either confirm the purchase or report a problem.
  3. If the buyer confirms the purchase, the contract closes and the transaction is complete.
  4. If the buyer reports a problem, the seller has the option to either confirm or dispute the problem.
  5. If the seller confirms the problem, the contract closes and the buyer is refunded.
  6. If the seller disputes the problem, the mediator has the option to either dismiss the claim or confirm it.
  7. If the mediator dismisses the claim, the buyer is refunded and the contract closes.
  8. If the mediator confirms the claim, the contract closes.

The contract also includes time parameters for dispute response and mediation deadlines.

To use this contract, you will need to have a DAML interpreter and ledger set up. Please refer to the DAML documentation for more information.

escrow-smart-contract-marlowe's People

Contributors

asante-ntiro avatar

Watchers

 avatar

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.