Commit Graph

41 Commits

Author SHA1 Message Date
Oskar Thoren 13ddea07c3 Add get balance task 2021-02-09 12:33:13 +08:00
Oskar Thoren 1b615e9604 Redeem cheque script and task with args 2021-02-09 12:23:59 +08:00
Oskar Thoren dfbd26d195 Remove stdout logs for JSON resp 2021-02-09 12:12:29 +08:00
Oskar Thoren 5ca72cb10a Parameterize swap address 2021-02-09 12:02:23 +08:00
Oskar Thoren 7c23fc1858 Basic sign cheque task 2021-02-09 11:56:33 +08:00
Oskar Thoren 89026b42a5 setup-swap -> swap-helpers 2021-02-09 11:49:46 +08:00
Oskar Thoren 609ed987ae Return JSON string for setupSwap 2021-02-08 21:59:19 +08:00
Oskar Thoren feb07ef01f Turn setup-swap into basic module; add task for it 2021-02-08 21:22:16 +08:00
Oskar Thoren db40672991 Change web3 version to get rid of random warnings 2021-02-08 12:39:42 +08:00
Oskar Thoren 8f597b65f0
Use Nim script to get balance with hardhat task 2021-02-06 13:50:33 +08:00
Oskar Thoren 6dfbb217eb
pwd nim shell script example use stdout 2021-02-06 13:47:02 +08:00
Oskar Thoren c0d448a932
Add example task for balance with arg to STDOUT 2021-02-05 19:57:38 +08:00
Oskar Thoren bbd31b7b10
Add hardhat-web3 for example task 2021-02-05 19:57:12 +08:00
Oskar Thoren 77e6c79ba3
Update README 2021-02-05 19:25:22 +08:00
Oskar Thoren 858b635d2b
Revert "Debug contract"
This reverts commit 37b3fc3fbb.
2021-02-05 19:15:25 +08:00
Oskar Thoren 37b3fc3fbb
Debug contract 2021-02-05 19:14:06 +08:00
Oskar Thoren f2d957affc
Finally get signature verification to match 2021-02-05 18:59:28 +08:00
Oskar Thoren 7fcc4e99ec
scratch, add alt way to recover signer key
mnemonic + path
2021-02-05 13:14:39 +08:00
Oskar Thoren d6b20efce6
Play around with sign-script and Wallet as signer 2021-02-05 12:34:18 +08:00
Oskar Thoren 2f9c826cdb
Fix typos in setup-swap script 2021-02-03 13:04:11 +08:00
Oskar Thoren c09353f1de
redeem-cheque WIP
Reproducing invalid signature error
2021-02-03 12:34:45 +08:00
Oskar Thoren b04dce09a4
scratch.js update 2021-02-03 12:34:30 +08:00
Oskar Thoren 989e70ef6d
Add sign cheque script 2021-02-03 12:21:03 +08:00
Oskar Thoren 9b6ef97fea
Add back ethers-eip712 library 2021-02-03 12:20:45 +08:00
Oskar Thoren a9d85bc589
Add funds to Alice Swap address 2021-02-03 11:53:40 +08:00
Oskar Thoren 1291a7c30f
Mint ERC20 in setup swan; format 2021-02-02 13:07:16 +08:00
Oskar Thoren 8df74028e8
Add scratch.js file for REPL stuff 2021-02-02 12:59:09 +08:00
Oskar Thoren c2a21931cd
Update README 2021-02-02 12:58:58 +08:00
Oskar Thoren 53a029c4f1
Add README with basic howto; persistent node 2021-02-02 12:34:43 +08:00
Oskar Thoren 711c7a7884
Deploy Bob Swap and print addresses; refactor 2021-02-02 12:26:10 +08:00
Oskar Thoren 4d9e7e8660
Deploy swap and parse event logs to get address 2021-02-01 12:32:01 +08:00
Oskar Thoren 6432c647a3
Deploy SimpleSwapFactory 2021-01-29 13:27:31 +08:00
Oskar Thoren d9a9a67277
Deploy ERC20 2021-01-29 13:26:28 +08:00
Oskar Thoren 102aa7f7f9
Import Migration.sol contract and bump solidity
This gives access to ERC20PresetMinterPauser ABI, etc
2021-01-29 12:56:36 +08:00
Oskar Thoren de4589c0b6
Upgrade Swap contracts to Solidity 0.7
now -> block.timestamp
2021-01-28 19:23:11 +08:00
Oskar Thoren 364f67971c
Import Swap contracts 2021-01-28 19:22:59 +08:00
Oskar Thoren 9901adacf9
Add @openzeppelin/contracts dependency 2021-01-28 19:12:36 +08:00
Oskar Thoren 42c2448e59
EIP712 signing script 2021-01-28 12:47:05 +08:00
Oskar Thoren 74f76d0895
Revert "Add eth-sig-util dep"
This reverts commit be956f021a.
2021-01-28 12:46:45 +08:00
Oskar Thoren be956f021a
Add eth-sig-util dep 2021-01-28 11:57:05 +08:00
Oskar Thoren 177b6bccba
Init sample hardhat project 2021-01-28 11:27:27 +08:00