Coder Social home page Coder Social logo

xrpl-xumm-poc's Introduction

XUMM-XRPL Proof of Concept

tests lint

This repo demonstrates a Proof of Concept application for sending offers to the XRPL Decentralised Exchange (DEX) using the XUMM app for authentication.

Installation

The application itself is a node js application so make sure to have node js installed in your environment. To install the requirements run:

yarn install

The script to demo the application is written in python. Ensure you have python3 installed in your (ideally virtual) environment and run:

pip install -r requirements.txt

Run the demo

First you need to create a .env file in the root directory with the following keys:

  • NODE_ENV: Used by the node server. If this is set to 'development', middleware logging will be done.
  • API_KEY: XUMM Developer Application API Key. Used by the node server to communicate with XUMM.
  • API_SECRET: XUMM Developer Application API Secret. Used by the node server to communicate with XUMM.
  • WALLET_ADDRESS: Used by the python code to know which wallet to transact under.

Then, open two terminals. In the first terminal run:

yarn dev

This will start the development server which will respond to requests that our python script will send to it.

In the second terminal run:

python -m scripts.poc_demo

This will send two requests to our server. The first will open your default web browser displaying a QR code which you must scan with your XUMM app and sign the transaction to retrieve a user token. This user token will then be used in the second request in order to send a push notification to the user to sign the offer transaction that will be sent to the DEX instead of having them scan a QR code. Ensure your XUMM app has access to the wallet you are using to perform the transaction.

xrpl-xumm-poc's People

Contributors

amin-nejad avatar dorbor 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.