58 Commits

Author SHA1 Message Date
5509340c99 add api info entries for limits and swap availability 2024-02-11 14:57:47 +00:00
bc9f8ae985 Add robot hash ids to order details and robot view 2023-12-01 12:56:55 +00:00
92b041cb31 Add maker_hash_id to book response 2023-11-28 11:13:40 +00:00
01c4a28dae Refactor trade tests, add onchain payout test 2023-11-23 17:53:39 +00:00
515133bb8e Add ticks test 2023-11-20 14:54:04 +00:00
f271d59172 Add pause/unpause tests 2023-11-17 13:02:30 +00:00
5674337b32 Add fiat sent/received confirmation tests. Improve API documentation 2023-11-17 13:02:30 +00:00
79a3df66a2 Add lock escrow tests 2023-11-17 13:02:30 +00:00
605a37bb87 Add CLN regtest to integration tests 2023-11-14 13:54:51 +00:00
ebd0a287c3 Add dev dependencies and regtest test environments 2023-11-14 13:54:51 +00:00
b4fe30e733 Add testing against API specs with assertResponse 2023-11-14 13:54:51 +00:00
a555f204ca Fix models decoupling (#874)
* Fix move order model constrains to env to settings.py

* Remove lnpayment, tick, onchain model contraints based on .env
2023-10-10 12:48:05 +00:00
4d45b884cf Add location to F2F payment option (backend) (#867)
* Add location to F2F payment option

* Fix py linterns

* Include migration

* Revert docker-compose changes

* Remove bond_size from migration

* Rename 0043_order_latitude_order_longitude_alter_order_bond_size.py to 0043_order_latitude_order_longitude.py
2023-10-10 12:47:22 +00:00
ca3f7cb222 Delete user view, session auth and png avatars (#588) 2023-08-14 14:21:12 +00:00
516537a38e Add pgp signature to sensitive client - coordinator messages (#592)
* Minor fixes on dev setup start up

* Add pgp cleartext signatures
2023-05-17 13:06:04 +00:00
899062ae70 Rename repository 2023-05-09 06:07:16 -07:00
811cb4181d Delete old user rating functionality 2023-05-05 05:40:29 -07:00
4d62ea1549 Delete coordinator referral program functionality 2023-05-05 05:32:52 -07:00
75f04579ed Refactor models into a module (#481)
* Refactor models into a module

* Rename Profile model as Robot

* Underscore numeric literals
2023-05-01 10:30:53 +00:00
fc4f3e1593 Add undo confirm fiat sent action (#461)
* Add undo confirm fiat sent action

* Collect phrases

* Small fixes
2023-04-28 09:19:18 +00:00
7e47fb60bf Add automatic dispute resolution (#437)
* Add automatic dispute resolution logic

* Small fixes
2023-04-24 11:05:52 +00:00
42f208fad4 Fix race condition onchain (#388)
* Fix race condition swaps

* Collect new phrases

* Increase random delay interval
2023-03-14 17:23:11 +00:00
86e6bed37c Add advanced options to LN payout form (#326)
* Add advanced options to LN payout form

* Complete amount calcs

* Temporary working solution for lnproxy web only (uses text instead of json)

* Update LNpayment model and logics to use user's routing budget

* Add handle lnproxyserver networks (i2p, tor, clearnet) / (mainnet,testnet)

* Small fixes
2022-11-24 17:42:30 +00:00
227610c84a Add Nav Bar, Settings Page, large refactor (#308)
commit a5b63aed93e084fae19d9e444e06238a52f24f3a
Author: Reckless_Satoshi <reckless.satoshi@protonmail.com>
Date:   Sun Oct 30 10:46:05 2022 -0700

    Small fixes

commit d64adfc2bf9b9c31dca47ab113c06a1268c347c6
Author: Reckless_Satoshi <reckless.satoshi@protonmail.com>
Date:   Sun Oct 30 06:02:06 2022 -0700

    wip work on federation settings

commit ca35d6b3d2776812b07109e197d2e1d46f9f4e81
Author: Reckless_Satoshi <reckless.satoshi@protonmail.com>
Date:   Sun Oct 30 04:05:33 2022 -0700

    Refactor confirmation Dialogs

commit c660a5b0d1345d4996efb10cb8999987689bede9
Author: Reckless_Satoshi <reckless.satoshi@protonmail.com>
Date:   Sat Oct 29 13:36:59 2022 -0700

    refactor login (clean separation robot/info. Style navbar.

commit b9dc7f7c95a683e3aca024ec6d7857176b4e3a25
Author: Reckless_Satoshi <reckless.satoshi@protonmail.com>
Date:   Fri Oct 28 09:54:38 2022 -0700

    Add size slider and settings widget

commit 20b2b3dcd6838b129741705f1c65d445271e231d
Author: Reckless_Satoshi <reckless.satoshi@protonmail.com>
Date:   Fri Oct 28 05:41:48 2022 -0700

    Add show more and Dialogs

commit da8b70091b5f28139cdec1a8895f4563d64d8e88
Author: Reckless_Satoshi <reckless.satoshi@protonmail.com>
Date:   Thu Oct 27 16:26:07 2022 -0700

    Add sliding pages

commit 6dd90aa1182a7a5e0f0189d1467ba474b68c28c2
Author: Reckless_Satoshi <reckless.satoshi@protonmail.com>
Date:   Thu Oct 27 06:34:58 2022 -0700

    Add settings forms

commit d3d0f3ee1a52bbf1829714050cc798d2542af8f6
Author: Reckless_Satoshi <reckless.satoshi@protonmail.com>
Date:   Wed Oct 26 04:16:06 2022 -0700

    Refactor utils
2022-10-30 12:13:01 -07:00
7643e524f1 Fix all files with pre-commit 2022-10-25 11:04:12 -07:00
3d3da78f8a Fix code style issues with Black 2022-10-20 09:56:10 +00:00
c32c07eaa6 Python files style cleanup (#281)
* Remove unused imports in python files

* Add black and isort dependencies

Also added pyproject.toml for isort config, but later can be used to
configure various other python tools

* Add flake8 in requirements.txt

* Add py-linter workflow
2022-10-20 09:55:24 +00:00
79dad7afe2 Add Chat endpoint to API v0 (#288)
* Add /api/chat route and GET method

* Add message POST method

* Wrap /api/chat GET in /api/order GET

* Add send channel message on POST request

* Fix OAS schema bug
2022-10-16 21:11:48 +00:00
7d887804a0 Fix docs - add missing field in /api/book (#279) 2022-10-11 17:26:06 +00:00
0a100802f2 Add bond size to order book 2022-10-02 13:54:45 -07:00
9a6d3d33a4 Add OpenAPI v3.0 Docs for API (#243)
* Add initial api docs using drf-spectacular

This commit adds the inital and basic docs using drf-spectacular.
It also adds some serializers to be used for automatically
generating response objects by drf-spectacular

* Update api docs with correct request and response objects

- TODO: /order route

* Fix typo in api docs

* Separate OpenAPI schemas into it's own file

* Update drf-spectacular and add API intro and logo

* Update API docs for GET /order

* Add api docs for POST /order route

* Update serializers.py
2022-10-02 18:02:35 +00:00
eff58dc91d Add stealth invoices (#210)
* Add stealth invoice switch to profile

* Add stealth invoice including only order uuid

* Add explanatory tooltip for stealth invoices and fix code smells
2022-08-12 17:41:06 +00:00
bd70d94d4a Add MarketTicks endpoint /api/ticks. Fix do_accounting. 2022-06-21 13:25:03 -07:00
cf82a4d6ae Add onchain logics pt2 2022-06-06 13:37:51 -07:00
5b214c3b9c Validate length of token_hash. Increase expiry times of routing status. 2022-05-30 07:08:32 -07:00
ac0969baf6 Convert new UserGen into POST. Fix misformed armored keys. Example encrypt/decrypt. 2022-05-23 04:21:01 -07:00
755874b100 Advanced maker options v2 (#110)
* Add escrow/invoice time customization

* Add accordion for Expiry times

* Add current price on order maker

* Add deposit timeout limit on order page

* Minor aestetic fixes

* Implement pause/unpause and expiry reasons

* Add renew order

* Add highlight buy/sell on maker page

* Fix order renewal. Improve book visuals and response.

* Fix double renew requests

* Fix cancel orders. Fix paused status to delay

* Fix paused order layout and loading spinner

* Add telegram message: order is in chat
2022-04-29 18:54:20 +00:00
8ae2406275 Implement backend handle range amounts, order take amount input and order book ranges 2022-03-22 10:49:57 -07:00
bf80986005 Implement min_amount max_amount model props and validation 2022-03-21 16:27:36 -07:00
d31bd63edc Add maker selects fidelity bond size 2022-03-18 15:09:38 -07:00
a36f23b572 Add maker selects public duration 2022-03-18 14:21:13 -07:00
f383d20c37 Implement public API non-KYC BTC prices 2022-03-12 03:24:11 -08:00
255dae188d Implement withdraw rewards (backend & frontend) 2022-03-06 08:08:28 -08:00
fc4ccd5281 Re-format all python code 2022-02-17 11:50:10 -08:00
1a6aa8a9ee Improve failure logics. Add platform rating. 2022-02-04 10:07:09 -08:00
9d883ccc4d Add expiration logics. Add dispute statements. 2022-01-16 13:54:42 -08:00
2523e5ef09 Add needed LNNode routines and LNpayments status. First full trade demonstrated 2022-01-12 04:57:03 -08:00
c0d6236dbb Maker and taker bonds OK 2022-01-06 13:36:22 -08:00
34e05465c2 Add more logics bareframes 2022-01-06 12:33:40 -08:00
46c129bf80 Add logics module 2022-01-06 04:32:17 -08:00