minimal-swap-poc/README.md

35 lines
822 B
Markdown
Raw Permalink Normal View History

2021-01-18 11:31:41 +00:00
# README
A minimal end to end proof of concept of using Swap contracts written by Swarm
and maintained here: https://github.com/ethersphere/swap-swear-and-swindle
All significant code imported from the above repo. Only minor adjustments to
hooking things up and illustrates things in a minimal fashion.
## Running
Ensure you have truffle and Ganache installed. Ganache should be running.
2021-01-19 11:04:20 +00:00
```
# To compile all contracts
truffle compile --all
# To run all migrations
truffle migrate --reset
# To get a truffle console
truffle console
# To run a server
npm run dev
```
2021-01-26 04:00:07 +00:00
2021-01-18 11:31:41 +00:00
## TODOs
2021-01-19 11:04:20 +00:00
x Import contracts and run migrations
x Setup basic UI
2021-01-26 04:00:07 +00:00
x Showcase basic chequebook end to end (deposit, show balance, withdraw)
2021-01-18 11:31:41 +00:00
- Get basic cheque sending working (web3 provider, util code)
- Showcase swap basic operation for two nodes