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
noot
531da8bf33
update readme ( #267 )
2023-01-02 16:48:15 -05:00
noot
8433b2307c
bump go-dleq version ( #266 )
2023-01-02 16:47:53 -05:00
Dmitry Holodov
6e146f0dc5
support fallback monero nodes in default configs ( #265 )
...
Allows configuring multiple monerod nodes in our default configs. They get tried sequentially and the first one that works gets used.
2022-12-20 15:10:40 -06:00
Dmitry Holodov
ed15ed9c82
libp2p QUIC and NAT traversal features ( #251 )
...
Enables additional libp2p NAT traversal features and enables nodes to communicate using UDP/QUIC in addition to TCP. Switches to using libp2p's "routed host". Most commands that previously accepted multiaddress values now accept a Peer IDs instead.
2022-12-19 18:25:24 -06:00
noot
5a4ccb332f
bump go-dleq version ( #264 )
2022-12-19 16:53:37 -05:00
phazejeff
b6f07845b9
feat: get-swap-timeout functionality ( #260 )
2022-12-19 14:59:30 -05:00
noot
3ee4f619db
skip failing test ( #263 )
2022-12-19 14:41:34 -05:00
noot
d955034d63
update readme and ui/readme ( #259 )
2022-12-15 18:39:56 -05:00
Oldzitoja
2dd6e7ceda
ui: make swapd ports configurable ( #258 )
...
* ui: make swapd ports configurable
* Allow to access SWAPD_PORT env variable in the code
Co-authored-by: Hubert Czerpak <hubert.czerpak@gmail.com >
Co-authored-by: noot <36753753+noot@users.noreply.github.com >
2022-12-15 17:23:38 -05:00
noot
7caadadff6
validate swap timeouts set by counterparty ( #254 )
2022-12-13 17:59:44 -05:00
phazejeff
dba88b7677
docs: update local.md ( #257 )
...
* Updated local.md
* Update local.md
Co-authored-by: phazejeff <phazejeff@proton.me >
2022-12-11 13:25:28 -05:00
noot
a25f62ee3d
update forwarder code check ( #255 )
2022-12-09 15:00:20 -05:00
noot
f9aaa5e9d1
add forwarder contract code check ( #253 )
2022-12-06 21:46:04 -05:00
noot
83b1c877ff
implement discoverLoop to find peers if count is low ( #252 )
2022-12-06 21:23:26 -05:00
Dmitry Holodov
1e83673f23
add package comments ( #236 )
...
package comments added to all packages
2022-12-02 00:43:32 -06:00
noot
4d95c4d9a9
implement get-offers for swapcli ( #248 )
2022-12-01 11:24:33 -05:00
noot
eff12532e1
remove unused struct ( #249 )
2022-11-30 19:36:51 -05:00