noot
e1b51b0811
bump relayer fee to 0.01 ( #458 )
2023-05-03 20:55:05 -04:00
Dmitry Holodov
e3c24b5e4a
eth endpoint defaults and error handling ( #451 )
2023-05-02 23:12:45 -05:00
noot
dd70cca012
release: update mainnet contract ( #452 )
2023-05-02 15:26:40 -04:00
Dmitry Holodov
df057ac5cd
time index shift ( #450 )
2023-05-02 10:52:28 -05:00
noot
c131112da1
feat: close stream after NotifyETHLocked is sent ( #446 )
2023-05-01 23:03:26 -04: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
Dmitry Holodov
caa5251e59
move to gsnforwarder that is bytecode identical on mainnet and dev ( #427 )
2023-04-26 13:55:00 -05:00
noot
0b59d9a95e
add another bootnode ( #426 )
2023-04-25 19:23:29 -04:00
noot
83d4cee884
release: mainnet contract address, set env defaults to mainnet ( #417 )
2023-04-25 19:18:29 +02:00
noot
177b96da76
contract comment updates ( #415 )
2023-04-25 08:43:03 -04:00
noot
9cc39e84da
solc optimize contract bytecode ( #414 )
2023-04-25 08:02:56 -04:00
noot
d2629f8246
release: add another bootnode ( #413 )
2023-04-24 18:52:51 -04:00
noot
3c2ea1e580
fix contract semver ( #410 )
2023-04-24 17:06:10 -04:00
noot
dc64531325
fix: add SweepingXMR status, fixes restart during sweep ( #399 )
...
Co-authored-by: Dmitry Holodov <dimalinux@protonmail.com >
2023-04-24 16:44:26 -04:00
noot
c2aa51b695
release: add more mainnet bootnodes ( #411 )
2023-04-24 14:57:07 -04:00
noot
7c90e7f76b
release: add initial mainnet bootnodes ( #400 )
2023-04-23 14:20:20 -04:00
noot
5d49051f39
fix: a few more contract checks ( #398 )
...
Co-authored-by: Dmitry Holodov <dimalinux@protonmail.com >
2023-04-23 11:33:58 -04: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
noot
c0c87e8ecb
contract updates and cleanup ( #382 )
...
Co-authored-by: Dmitry Holodov <dimalinux@protonmail.com >
2023-04-17 13:49:53 -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
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
fea16bc0fe
update contract to allow setting t0/t1 separately ( #364 )
2023-04-05 14:54:55 -04:00
noot
b26228805c
add license header to files; update readme disclaimer ( #368 )
2023-04-04 13:12:12 -04:00
noot
aa70b55a5c
log updates for ERC20 swaps ( #369 )
2023-04-02 18:38:46 -04:00
noot
b83f57e60c
move stagenet from goerli to sepolia ( #363 )
...
Co-authored-by: Dmitry Holodov <dimalinux@protonmail.com >
2023-03-30 23:53:13 -04:00
Dmitry Holodov
528715b602
swapd daemon setup/start decoupled from CLI parsing ( #354 )
2023-03-25 19:18:51 -05: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
0f346d76fc
fix contract claimRelayer vulnerability ( #348 )
...
Co-authored-by: Dmitry Holodov <dimalinux@protonmail.com >
2023-03-11 21:36:25 -05:00
Dmitry Holodov
51d89a4d18
added more required tags to serialized structs ( #330 )
2023-02-28 22:41:03 -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
Dmitry Holodov
8ca306af68
added JSON marshaling support to the Status type ( #323 )
2023-02-22 09:25:28 -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
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
noot
ea43b6a86c
feat: implement swap relayer cmd package ( #282 )
2023-01-25 01:17:55 -05: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
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
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