Commit Graph

53 Commits

Author SHA1 Message Date
Reckless_Satoshi
f271d59172 Add pause/unpause tests 2023-11-17 13:02:30 +00:00
Reckless_Satoshi
5674337b32 Add fiat sent/received confirmation tests. Improve API documentation 2023-11-17 13:02:30 +00:00
Reckless_Satoshi
79a3df66a2 Add lock escrow tests 2023-11-17 13:02:30 +00:00
Reckless_Satoshi
605a37bb87 Add CLN regtest to integration tests 2023-11-14 13:54:51 +00:00
Reckless_Satoshi
ebd0a287c3 Add dev dependencies and regtest test environments 2023-11-14 13:54:51 +00:00
Reckless_Satoshi
b4fe30e733 Add testing against API specs with assertResponse 2023-11-14 13:54:51 +00:00
Reckless_Satoshi
a555f204ca
Fix models decoupling ()
* 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
KoalaSat
4d45b884cf
Add location to F2F payment option (backend) ()
* 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
Reckless_Satoshi
ca3f7cb222
Delete user view, session auth and png avatars () 2023-08-14 14:21:12 +00:00
Reckless_Satoshi
516537a38e
Add pgp signature to sensitive client - coordinator messages ()
* Minor fixes on dev setup start up

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

* Rename Profile model as Robot

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

* Collect phrases

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

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

* Collect new phrases

* Increase random delay interval
2023-03-14 17:23:11 +00:00
Reckless_Satoshi
86e6bed37c
Add advanced options to LN payout form ()
* 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
Reckless_Satoshi
227610c84a
Add Nav Bar, Settings Page, large refactor ()
commit a5b63aed93
Author: Reckless_Satoshi <reckless.satoshi@protonmail.com>
Date:   Sun Oct 30 10:46:05 2022 -0700

    Small fixes

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

    wip work on federation settings

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

    Refactor confirmation Dialogs

commit c660a5b0d1
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 b9dc7f7c95
Author: Reckless_Satoshi <reckless.satoshi@protonmail.com>
Date:   Fri Oct 28 09:54:38 2022 -0700

    Add size slider and settings widget

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

    Add show more and Dialogs

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

    Add sliding pages

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

    Add settings forms

commit d3d0f3ee1a
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
Reckless_Satoshi
7643e524f1
Fix all files with pre-commit 2022-10-25 11:04:12 -07:00
Lint Action
3d3da78f8a Fix code style issues with Black 2022-10-20 09:56:10 +00:00
redphix
c32c07eaa6
Python files style cleanup ()
* 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
Reckless_Satoshi
79dad7afe2
Add Chat endpoint to API v0 ()
* 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
redphix
7d887804a0
Fix docs - add missing field in /api/book () 2022-10-11 17:26:06 +00:00
Reckless_Satoshi
0a100802f2
Add bond size to order book 2022-10-02 13:54:45 -07:00
redphix
9a6d3d33a4
Add OpenAPI v3.0 Docs for API ()
* 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
ShatteredBunny
eff58dc91d
Add stealth invoices ()
* 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
Reckless_Satoshi
bd70d94d4a
Add MarketTicks endpoint /api/ticks. Fix do_accounting. 2022-06-21 13:25:03 -07:00
Reckless_Satoshi
cf82a4d6ae
Add onchain logics pt2 2022-06-06 13:37:51 -07:00
Reckless_Satoshi
5b214c3b9c
Validate length of token_hash. Increase expiry times of routing status. 2022-05-30 07:08:32 -07:00
Reckless_Satoshi
ac0969baf6
Convert new UserGen into POST. Fix misformed armored keys. Example encrypt/decrypt. 2022-05-23 04:21:01 -07:00
Reckless_Satoshi
755874b100
Advanced maker options v2 ()
* 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
Reckless_Satoshi
8ae2406275
Implement backend handle range amounts, order take amount input and order book ranges 2022-03-22 10:49:57 -07:00
Reckless_Satoshi
bf80986005
Implement min_amount max_amount model props and validation 2022-03-21 16:27:36 -07:00
Reckless_Satoshi
d31bd63edc
Add maker selects fidelity bond size 2022-03-18 15:09:38 -07:00
Reckless_Satoshi
a36f23b572
Add maker selects public duration 2022-03-18 14:21:13 -07:00
Reckless_Satoshi
f383d20c37
Implement public API non-KYC BTC prices 2022-03-12 03:24:11 -08:00
Reckless_Satoshi
255dae188d
Implement withdraw rewards (backend & frontend) 2022-03-06 08:08:28 -08:00
Reckless_Satoshi
fc4ccd5281
Re-format all python code 2022-02-17 11:50:10 -08:00
Reckless_Satoshi
1a6aa8a9ee
Improve failure logics. Add platform rating. 2022-02-04 10:07:09 -08:00
Reckless_Satoshi
9d883ccc4d
Add expiration logics. Add dispute statements. 2022-01-16 13:54:42 -08:00
Reckless_Satoshi
2523e5ef09
Add needed LNNode routines and LNpayments status. First full trade demonstrated 2022-01-12 04:57:03 -08:00
Reckless_Satoshi
c0d6236dbb
Maker and taker bonds OK 2022-01-06 13:36:22 -08:00
Reckless_Satoshi
34e05465c2
Add more logics bareframes 2022-01-06 12:33:40 -08:00
Reckless_Satoshi
46c129bf80
Add logics module 2022-01-06 04:32:17 -08:00
Reckless_Satoshi
bd1601d59f
Bug fix, order status now as message, HTLCs relationals working 2022-01-05 04:18:54 -08:00
Reckless_Satoshi
9ade961e0f
Work on update order endpoint and taker requests 2022-01-04 16:13:08 -08:00
Reckless_Satoshi
0823febf73
Add order expiry time and rework book page 2022-01-04 02:21:45 -08:00
Reckless_Satoshi
c71d95ccd0
Rename boolean explicit for is_explicit/isExplicit 2022-01-02 05:38:45 -08:00
Reckless_Satoshi
c4b625a993
Fix order detail page view. Add explicit to model as pricing method boolean explicit/relative 2022-01-02 05:24:35 -08:00