36 Commits

Author SHA1 Message Date
Oskar Thoren
818d7516fa explicit frm in signTypedData_v3 2021-01-27 13:33:10 +08:00
Oskar Thoren
2793612893 fix balance new api 2021-01-27 13:22:46 +08:00
Oskar Thoren
65979a488c fix bobaddress 2021-01-27 13:22:30 +08:00
Oskar Thoren
70d147c1c2 Upgrade truffle-contract.js from old version
Stay in sync (ish?) with web3.js
2021-01-27 13:21:05 +08:00
Oskar Thoren
07eecece01 Upgrade web3.min.js from old version 2021-01-27 13:20:35 +08:00
Oskar Thoren
cfd4ee432c Basic cleanup 2021-01-26 12:32:36 +08:00
Oskar Thoren
c0448c3c58 Show bob swap 2021-01-26 12:29:17 +08:00
Oskar Thoren
471beb9bfe Show Bob balances too 2021-01-26 12:14:03 +08:00
Oskar Thoren
c29fcba493 Use hardcoded Alice 2021-01-26 12:06:40 +08:00
Oskar Thoren
5a3190cdec Current account, clean up a bit 2021-01-26 12:00:07 +08:00
Oskar Thoren
b082fff400 Basic redeem cheque
Goes through but buggy though, no ERC20 balance showing up
2021-01-22 16:02:02 +08:00
Oskar Thoren
8b597fda6e Add cheque to UI and fix promise/await stuff 2021-01-22 15:25:11 +08:00
Oskar Thoren
019ec8fb9e notes 2021-01-21 17:09:20 +08:00
Oskar Thoren
20c55c0678 Sign cheque works 2021-01-21 17:00:18 +08:00
Oskar Thoren
7aeac0632c Get balance of swap contract to show up 2021-01-21 13:48:54 +08:00
Oskar Thoren
6dc85fc352 Hardcode aliceSwapAddress 2021-01-21 13:16:52 +08:00
Oskar Thoren
97ce4ebbfe Swap deposit 2021-01-21 13:11:52 +08:00
Oskar Thoren
adc3b65138 Deploy swap button and show address 2021-01-20 14:11:17 +08:00
Oskar Thoren
4f29bce3c2 Mint ERC20 balance with a button 2021-01-20 13:22:43 +08:00
Oskar Thoren
813ff83878 Show ERC20 balance 2021-01-20 13:19:01 +08:00
Oskar Thoren
229d34e26e Show balance in ETH 2021-01-20 12:53:59 +08:00
Oskar Thoren
0215101397 Update README 2021-01-19 19:05:19 +08:00
Oskar Thoren
ee0d1445e6 Show alice balance 2021-01-19 19:04:06 +08:00
Oskar Thoren
25c18b88ce Tweak HTML to show some fields 2021-01-19 18:56:06 +08:00
Oskar Thoren
32ccb42613 Ask for permission to see accounts and log it 2021-01-19 18:28:21 +08:00
Oskar Thoren
4db08530b9 First cut of UI
Use basic tutorial as boilerplate and make minor modifications
2021-01-19 17:59:58 +08:00
Oskar Thoren
5b500c5e58 Add deploy swap migration
- Deploy ERC20MinterPauser
- Deploy SimpleSwapFactory
- Deploy SimpleSwap

Note that this is only for one user.
2021-01-19 12:44:41 +08:00
Oskar Thoren
f56f460fa1 Import ERC20PresetMinterPauser for migrations 2021-01-19 12:43:03 +08:00
Oskar Thoren
6be122e779 @openzeppelin/contracts as dev dependency 2021-01-19 12:35:55 +08:00
Oskar Thoren
c375dbf1b7 Add @open-zeppelin/test-helpers dependency 2021-01-19 11:44:42 +08:00
Oskar Thoren
60eba03c1e Update README with instructions of how to run 2021-01-19 11:43:37 +08:00
Oskar Thoren
a4b751e8d1 Add @openzeppelin/contracts dependency 2021-01-19 11:42:31 +08:00
Oskar Thoren
86808a7276 Use solc compiler 0.6.12 2021-01-19 11:42:11 +08:00
Oskar Thoren
d6e03f41b2 Add basic README 2021-01-18 19:31:41 +08:00
Oskar Thoren
adca7512c4 Import Swap contracts 2021-01-18 19:26:15 +08:00
Oskar Thoren
2245dc47b4 Init with pet-shop truffle box 2021-01-18 19:24:23 +08:00