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
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
b26228805c
add license header to files; update readme disclaimer ( #368 )
2023-04-04 13:12:12 -04:00
noot
4c3caedcc3
fix: remove ws eth endpoint requirement, update taker exit ( #358 )
2023-03-28 10:21:28 -04:00
noot
58d94723e1
add estimated time for swap to complete for swap_getOngoing ( #351 )
2023-03-20 22:49:17 -04:00
Dmitry Holodov
0e80eee4dc
integrated relayer into swapd ( #342 )
2023-03-17 14:22:16 -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
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
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
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
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
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
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
1e83673f23
add package comments ( #236 )
...
package comments added to all packages
2022-12-02 00:43:32 -06:00
noot
21c2f2a585
implement auto-recover for xmrtaker ( #238 )
2022-11-24 07:09:14 -05:00
noot
cac8928e22
implement auto-recover for xmrmaker ( #235 )
2022-11-22 07:14:44 -05:00
noot
04cd5b4809
store swap recovery information in database, remove "infofile" ( #227 )
2022-11-19 10:52:15 -05:00
noot
36518eae87
persist swap info to disk ( #213 )
2022-11-07 14:42:35 -05:00
noot
50e1080d22
unused param fix in offer manager, fix erc20 relayer claim ( #215 )
2022-10-31 20:48:36 -04:00
noot
a51ea4e731
implement database; persist offers to disk and reload on startup ( #200 )
2022-10-11 15:44:37 -04:00