Go to file
Oskar Thoren 818d7516fa
explicit frm in signTypedData_v3
2021-01-27 13:33:10 +08:00
.github Init with pet-shop truffle box 2021-01-18 19:24:23 +08:00
contracts Import ERC20PresetMinterPauser for migrations 2021-01-19 12:43:03 +08:00
migrations Add deploy swap migration 2021-01-19 12:44:41 +08:00
src explicit frm in signTypedData_v3 2021-01-27 13:33:10 +08:00
test Init with pet-shop truffle box 2021-01-18 19:24:23 +08:00
.gitattributes Init with pet-shop truffle box 2021-01-18 19:24:23 +08:00
.gitignore Init with pet-shop truffle box 2021-01-18 19:24:23 +08:00
LICENSE Init with pet-shop truffle box 2021-01-18 19:24:23 +08:00
README.md Current account, clean up a bit 2021-01-26 12:00:07 +08:00
box-img-lg.png Init with pet-shop truffle box 2021-01-18 19:24:23 +08:00
box-img-sm.png Init with pet-shop truffle box 2021-01-18 19:24:23 +08:00
bs-config.json Init with pet-shop truffle box 2021-01-18 19:24:23 +08:00
package-lock.json @openzeppelin/contracts as dev dependency 2021-01-19 12:35:55 +08:00
package.json @openzeppelin/contracts as dev dependency 2021-01-19 12:35:55 +08:00
truffle-config.js Use solc compiler 0.6.12 2021-01-19 11:42:11 +08:00

README.md

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.

# 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

TODOs

x Import contracts and run migrations x Setup basic UI x Showcase basic chequebook end to end (deposit, show balance, withdraw)

  • Get basic cheque sending working (web3 provider, util code)
  • Showcase swap basic operation for two nodes