noot
4c3caedcc3
fix: remove ws eth endpoint requirement, update taker exit ( #358 )
2023-03-28 10:21: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
noot
0f346d76fc
fix contract claimRelayer vulnerability ( #348 )
...
Co-authored-by: Dmitry Holodov <dimalinux@protonmail.com >
2023-03-11 21:36:25 -05:00
noot
848051b852
remove NotifyXMRLocked message, have xmrtaker check for lock independently ( #341 )
2023-03-11 16:13:47 -05:00
doonte
98f4e91ba1
Make subscribing the default behavior with --detached ( #345 )
2023-03-07 16:40:11 -05:00
Dmitry Holodov
e1ffabb03f
prevent PR gating by codecov ( #336 )
2023-03-02 17:52:08 -06:00
Dmitry Holodov
51d89a4d18
added more required tags to serialized structs ( #330 )
2023-02-28 22:41:03 -06:00
Dmitry Holodov
250a041703
switch to codecov-action@v3 for uploading code coverage ( #334 )
2023-02-28 08:22:45 -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
Dmitry Holodov
a537be03cf
fixed the TestAbort_ERC20_XMRMakerCancels issue ( #333 )
2023-02-27 18:16:19 -06:00
noot
b6a7047204
fix: ensure stage is changed if funds are locked, even in error case ( #319 )
2023-02-26 08:16:12 -05:00
Dmitry Holodov
93b8a9dacf
simplify per-swap deposit address overrides ( #328 )
2023-02-25 17:01:52 -06: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
d913658446
fix xmrmaker initiation + recovery, don't delete offer from db ( #322 )
2023-02-22 10:25:00 -05: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
noot
112ed74cfb
fix: update xmrmaker refund path wallet to use address from xmrtaker swap keys ( #304 )
...
Co-authored-by: Dmitry Holodov <dimalinux@protonmail.com >
2023-02-20 16:33:49 -05:00
Dmitry Holodov
94a67b9949
swapd error on subcommand ( #311 )
2023-02-20 15:05:38 -06:00
Dmitry Holodov
812ba9d6b6
harmonize offer deletion behavior ( #312 )
2023-02-20 14:35:10 -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
b157adc28b
JSON validation ( #309 )
...
Integrates the go-playground validator library into our codebase for objects that are serialized/deserialized.
2023-02-18 18:37:52 -06:00
Dmitry Holodov
f65e5b6a77
global solidity imports ( #310 )
...
* Switched to solc to v0.8.17
* Uses selective solidity symbol imports
2023-02-18 18:15:24 -06:00
Dmitry Holodov
943e95cc11
JSON updates ( #305 )
...
* ensures all p2p message types have JSON tags
* when available, marshaling uses our project types
* "common" package was decoupled from the "message" package
* protocol version bumped
2023-02-16 01:15:58 -06:00
noot
76d0b2e365
fix: update goerli contract addresses ( #306 )
2023-02-15 08:44:03 -05:00
Dmitry Holodov
64530dc256
fix: update derivation of shared swap view key to be the same for all paths ( #302 )
...
Co-authored-by: noot <elizabethjbinks@gmail.com >
2023-02-12 12:27:25 +00: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
c913884a41
prevent startup failure due to outdated database entries ( #295 )
...
Delete and log bad offer and swap database entries on startup instead of bubbling the error up and failing swapd.
2023-02-03 11:35:09 -06:00
Dmitry Holodov
cae623b0ad
cache monero download ( #296 )
2023-02-01 21:06:26 -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
Dmitry Holodov
82a3f884d4
reduce monero wallet contention ( #285 )
...
Сreates a new monero-wallet-rpc instance for temporary swap wallets, eliminating the need for monero wallet locks.
2023-01-29 14:10:23 -06:00
noot
ba9f0298c9
fix: minor log fixes ( #289 )
2023-01-26 00:47:47 -05:00
noot
ea43b6a86c
feat: implement swap relayer cmd package ( #282 )
2023-01-25 01:17:55 -05:00
omahs
af08415254
Fix: typos ( #284 )
2023-01-22 10:41:01 -06:00
noot
be37a73086
fix: add commas to offer hash preimage ( #283 )
2023-01-21 23:05:17 -05:00
noot
faf8cf35c8
fix: update offer ID to be hash of offer fields
2023-01-19 15:21:17 -05:00
Janaka-Steph
d13521daef
Modify scripts to run on MacOS ( #233 )
...
Updates scripts/docs to support macOS as well as Linux/aarch64 (arm64)
2023-01-16 14:05:35 -06:00
Dmitry Holodov
b78cf06870
check ethereum chain ID ( #278 )
...
validates that the expected chain ID for the given environment matches the chain ID returned by the ethereum endpoint
2023-01-14 14:20:02 -06:00
noot
8e1db226fd
implement suggested exchange rate ( #262 )
...
Pulls chainlink's ETH and XMR price feeds to create suggested exchange rates.
Co-authored-by: Dmitry Holodov <dimalinux@protonmail.com >
2023-01-12 22:50:52 -06:00
Dmitry Holodov
2905d1b1f9
Fixed Point Math ( #269 )
...
Updates our code to use the fixed point match library apd.Decimal.
2023-01-10 16:03:22 -06:00
noot
5c2afb949f
fix mock ( #272 )
2023-01-09 18:30:24 -05:00
noot
5068dab46a
remove previous net/* contents, move net/swapnet/* to net/ ( #270 )
2023-01-09 17:09:11 -05:00
noot
3ef8ae9427
refactor net package to separate generic and swap-specific functionality ( #268 )
2023-01-08 09:59:34 -05:00