Commit Graph

146 Commits

Author SHA1 Message Date
Dmitry Holodov
3b4870ed50 restore price feed (#494) 2023-06-29 12:00:54 -05:00
Dmitry Holodov
485d1332a5 exchange rate labeling updates (#493) 2023-06-25 17:09:22 -05:00
Dmitry Holodov
7619b9a6af updates for cross-chain bootnodes (#486) 2023-06-19 14:47:27 -05:00
Dmitry Holodov
8941163c00 USDT compatibility (#484) 2023-06-17 04:30:20 -05:00
Dmitry Holodov
9e3ef7b527 ETH transfer fixes and sweep ETH addition (#481) 2023-06-09 01:43:11 -05:00
Dmitry Holodov
0f1865c33f additonal erc20 and taker decimal checks (#478) 2023-05-30 21:49:22 -05:00
Matt
0caff397ce add relayer fee to swapcli past (#474) 2023-05-22 23:00:46 -05:00
Dmitry Holodov
b5a83d5ee5 stagenet bootnode and docker updates (#473) 2023-05-20 21:59:49 -05:00
Dmitry Holodov
0ab11176c4 unified RPC/websockets client (#472) 2023-05-20 16:29:42 -05:00
Dmitry Holodov
53a5c97c4f added a bootnode to the daemon tests (#469) 2023-05-12 19:40:16 -05:00
Dmitry Holodov
0abc9e6139 fix: bootnode version RPC call (#467) 2023-05-08 21:19:19 -04:00
noot
8f566b6fbe feat: add transfer methods to swapcli (#462) 2023-05-04 14:26:26 -04:00
Dmitry Holodov
a88b2980ba wait for claim relayer receipt (#460)
Co-authored-by: noot <elizabethjbinks@gmail.com>
2023-05-04 11:28:39 -04:00
Dmitry Holodov
e3c24b5e4a eth endpoint defaults and error handling (#451) 2023-05-02 23:12:45 -05:00
Dmitry Holodov
df057ac5cd time index shift (#450) 2023-05-02 10:52:28 -05:00
noot
fb95751dda feat: update SwapCreater.sol claimRelayer to no longer use forwarder (#449)
Co-authored-by: Dmitry Holodov <dimalinux@protonmail.com>
2023-05-01 19:23:17 -04:00
Dmitry Holodov
f9a63ff7c3 min and max offer amount checks (#445)
Co-authored-by: noot <36753753+noot@users.noreply.github.com>
2023-04-30 17:36:31 -05:00
noot
82733bc375 feat: swapcli commands to manually claim/refund and for database functions (#441) 2023-04-28 12:14:08 -04:00
noot
83d4cee884 release: mainnet contract address, set env defaults to mainnet (#417) 2023-04-25 19:18:29 +02:00
Dmitry Holodov
c91b9bb82a dockerized bootnode fixes (#409) 2023-04-24 09:01:08 -05:00
noot
606f80fb4d maintenance: remove swaptester (#401) 2023-04-22 23:12:03 -05:00
noot
ea8bae1416 feat: add dockerfile (#387)
Co-authored-by: Dmitry Holodov <dimalinux@protonmail.com>
2023-04-21 15:37:10 -05:00
noot
dbcc97f9c1 feat: add bootnode binary (#397) 2023-04-21 12:52:07 -04:00
noot
f344d09fc6 add AUTHORS file and update copyright in license header (#389) 2023-04-18 12:25:30 -04:00
Dmitry Holodov
15b8378c76 ERC20 balance support (#380)
* Added --token flag to swapcli's balances request allowing the user to query their token balance
* --eth-asset flag on swapcli make changed to --token
* Added TokenInfo RPC API method to retrieve an ERC20 token's metadata
* Added an end-to-end ERC20 unit test to the daemon package
* Fixed ERC20 token approval amount to SwapCreator contract to use the minimum value required (instead of approving the entire user's balance for transfer by the contract)
* Fixed a race condition between concurrent contract calls to approve/new_swap in ERC20 token swaps
* Removed hard coded assumptions that all tokens have 18 decimals
* Maked the decimal places in our test ERC20 token configurable
* Fixed token exchange rate calculations
* Updated ongoing and past swap queries to correctly support ERC20 tokens
* Initial unit tests in swapcli's main package
2023-04-17 11:59:47 -05:00
Matt
8bd9281a4e swapd version & shutdown (#379) 2023-04-14 17:35:00 -05:00
Dmitry Holodov
a17f95d414 SwapFactory to SwapCreator rename, upgrade to solc 0.8.19 (#372) 2023-04-09 03:08:17 -05:00
Dmitry Holodov
7fef2d7b76 XMR taker is relayer of last resort for the maker (#366)
Co-authored-by: noot <36753753+noot@users.noreply.github.com>
2023-04-05 20:16:41 -05:00
noot
4545aff7cd remove swap_refund in favour of swap_cancel (#371) 2023-04-04 20:52:27 -04:00
noot
b26228805c add license header to files; update readme disclaimer (#368) 2023-04-04 13:12:12 -04:00
noot
bf0443c5bc xmrmaker: check if swap was completed already when restarting swap (#361) 2023-04-01 18:04:28 -04:00
Dmitry Holodov
528715b602 swapd daemon setup/start decoupled from CLI parsing (#354) 2023-03-25 19:18:51 -05:00
noot
58d94723e1 add estimated time for swap to complete for swap_getOngoing (#351) 2023-03-20 22:49:17 -04:00
noot
310bafbc7e update swap_getPast to match swap_getOngoing; update docs (#350) 2023-03-19 20:27:31 -04:00
Dmitry Holodov
0e80eee4dc integrated relayer into swapd (#342) 2023-03-17 14:22:16 -05:00
noot
baea93c839 fix xmrmaker exit when claim fails (#347) 2023-03-11 23:03:01 -06:00
doonte
98f4e91ba1 Make subscribing the default behavior with --detached (#345) 2023-03-07 16:40:11 -05:00
Dmitry Holodov
51d89a4d18 added more required tags to serialized structs (#330) 2023-02-28 22:41:03 -06:00
noot
b097cbbba4 add timeouts to swap.Info (#331)
Co-authored-by: Dmitry Holodov <dimalinux@protonmail.com>
2023-02-27 20:31:03 -05:00
noot
f7d244754c update relayer fee to be fixed at 0.009 ETH (#316) 2023-02-25 13:04:58 -05:00
Dmitry Holodov
1d7c00a8ed dedicated monero address type (#327)
Adds custom type for monero addresses with better validations.
2023-02-25 11:18:16 -06:00
noot
59eaccaa0c feat: add start/end times to swap.Info and swap RPC returns (#317) 2023-02-22 09:59:47 -05:00
Dmitry Holodov
8ca306af68 added JSON marshaling support to the Status type (#323) 2023-02-22 09:25:28 -05:00
Dmitry Holodov
3d92587e21 added address QR code feature to swapcli (#313) 2023-02-20 22:20:13 -06:00
Dmitry Holodov
94a67b9949 swapd error on subcommand (#311) 2023-02-20 15:05:38 -06:00
noot
19c89ba5a5 add timestamps to status updates in swapcli make/take (#308)
Co-authored-by: Dmitry Holodov <dimalinux@protonmail.com>
2023-02-19 16:45:03 -05:00
Dmitry Holodov
c5dacd1b59 fixes mock generation and attempts to fix TestDaemon_PersistOffers (#303)
* fixes mock generation
* ensures mock generation is working in CI for future PRs
* attempts to fix TestDaemon_PersistOffers failures deleting its temporary data directory
* updates some library dependencies
2023-02-09 07:53:14 -06:00
Dmitry Holodov
bb9a50dd7f upgrade linter (#297)
Upgraded linter to 1.50.1 and improved protocol documentation.
2023-02-07 22:31:06 -06:00
noot
17ab2f11ff feat: add relayer discovery and transaction submission via network (#291)
Co-authored-by: Dmitry Holodov <dimalinux@protonmail.com>
2023-02-03 19:01:32 -05:00
Dmitry Holodov
d2f6079a49 rounding fixes (#292)
* Fixed apd.Decimal tests to see if rounding occurred to use "Inexact"
* calculateRelayerCommission rounds to nearest wei
* Updated our pricefeed tests to read environment variable for the ETH mainnet endpoint if set
2023-01-30 16:20:29 -06:00