Skip to content

leppaludi/airswap-maker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AirSwap Demo Maker

Reference RFQ and Last Look protocol server for AirSwap.

Install packages

$ yarn

Quick start on Rinkeby

Copy .env.example to .env and update values:

PRIVATE_KEY= …
CHAIN_ID=4
GAS_PRICE=10

Then start the server (with both RFQ and streaming):

$ yarn dev

Now you can query the server from the AirSwap CLI:

$ yarn global add airswap
$ airswap chain
  → set to 4
$ airswap account:import (or account:generate)
$ airswap gas
  → set to 10
$ airswap token:approve
  → weth, dai
$ airswap stream:open
  → ws://localhost:3000
$ airswap rfq:get
  → http://localhost:3000

Build and run for production

$ yarn build
$ yarn start

About

Reference AirSwap Maker Server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 98.5%
  • Shell 1.5%