Giter Site home page Giter Site logo

escrow-react's Introduction

kleros-escrow

Kleros escrow react library

NPM JavaScript Style Guide

Usage

import React, { Component } from 'react'

import PayWithEscrowButton from 'kleros-escrow'
import 'kleros-escrow/dist/index.css'

class Example extends Component {
  render() {
    return <MyComponent />
  }
}

Development

In the root directory run yarn start to spin up a development server that builds new changes to /dist.

In /example run yarn start to run the test webapp that uses the built components.

License

MIT © satello

escrow-react's People

Contributors

clesaege avatar satello avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

mahdi-ln

escrow-react's Issues

Component: Go to escrow

Not in figma.

After a dispute has been raised a component should be made available that links to the escrow interface. Alternatively the RaiseDisputeModal component can become a link after the dispute has been created.

Add transaction status notifications

Add the Pending Transaction and Transaction Complete notifications. Alternatively we can leave this up to the sellers website as they get a callback when a transaction is submitted.

Library Documentation

The widget requires a significant number of inputs. Some full length documentation needs to be written to explain what they all do, what is optional and what is not.

Support/logic for supporting ETH + ERC20 tokens

The component takes currency as an input but there is no logic to route it to the ERC20 contract instead of the normal arbitrable contract. Will need to get address from T2CR and throw an error if a token ticker is used that is not in the list. Alternatively you can have seller pass a contract address in addition to the ticker and bypass using the T2CR

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.