satoshipay / amm-poc

Proof of Concept Automated Market Maker on TSS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Automated Market Maker - Proof of Concept

Primitive prototype of an AMM for Stellar built using Turing Signing Servers.

Usage

Known issues

👉 Known issues

Build

# Production build
npm run build

# Development build
npm run build:dev

Run locally

Make sure you have built the latest version of the contract. Run a small local test server with a simple API that allows invoking the contract as if this server was a TSS signing server with the deployed contract.

npm run test-server

Execute the contract via

curl -X POST http://localhost:3001/contract/test -H 'Content-Type: application/json' --data '{"action":"trade", …}'

Launch the web UI via

cd web
npm start

About

Proof of Concept Automated Market Maker on TSS


Languages

Language:TypeScript 90.3%Language:JavaScript 5.9%Language:HTML 3.0%Language:CSS 0.5%Language:Shell 0.3%