redphix
4d5c60239f
Conform to pep8 rules ( #295 )
...
* Conform to pep8 rules
* Fix some more flake8 linting errors
2022-10-20 20:53:51 +00:00
Lint Action
3d3da78f8a
Fix code style issues with Black
2022-10-20 09:56:10 +00:00
redphix
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
Reckless_Satoshi
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
redphix
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
Reckless_Satoshi
f5f707bd4e
Add version mismatch detection, refactor GH workflows, draft release.yml, increase prettier scope ( #250 )
...
* Refactor GH workflows
* Add version mismatch checker and UpdateClient Dialog
* Fix finalize release workflow
* Increase prettier scope
* Increase prettier coverage, add some static to prettierignore
* Add CodeQL on PR
2022-09-22 15:22:51 -07:00
Reckless_Satoshi
dc3a40e71f
Add stealth response to Info, tg_token to order, delete deprecated GET User
2022-09-18 10:37:39 -07:00
Reckless_Satoshi
34a8fd99ed
Make stealth invoices the default
2022-09-16 09:50:11 -07:00
Reckless_Satoshi
f2cd20c8f0
Add Telegram context on UserGen response
2022-09-16 09:45:09 -07:00
redphix
6fc20424a8
Fix logic of checking whether non-participants can view order details ( #245 )
...
* Fix logic of checking whether non-participants can view order details
* Fix for no participants to not get lengthy responses on public orders
Co-authored-by: Reckless_Satoshi <reckless.satoshi@protonmail.com>
Co-authored-by: Reckless_Satoshi <90936742+Reckless-Satoshi@users.noreply.github.com>
2022-09-15 15:47:09 +00:00
Reckless_Satoshi
1ba94b2abc
Add Telegram notifications for order takers ( #244 )
...
* Create EnableTelegramDialog functional component
* Move Enable TG button to Profile dialog
* Add TG bot_name, token and state to API /info/
* Add messages for order takers to Telegram class
2022-09-15 15:42:33 +00:00
redphix
215e04f75e
Fix error when query parameters not passed ( #239 )
...
if no parameters are passed to `/api/book` then just return
orders of ALL currency of ANY type.
Currently, if no query parameters are passed, then the API returns
500 status code
2022-09-11 15:04:03 +00:00
KoalaSat
c62a6369b0
Expose Satoshis Now on API ( #236 )
2022-09-10 13:51:15 +00:00
ShatteredBunny
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
Reckless_Satoshi
456723973c
Add contract oracle timestamp and exchange rate to summary
2022-07-18 06:50:56 -07:00
Reckless_Satoshi
834733cb61
Add trade summary at trade finish
2022-07-16 04:26:44 -07:00
Reckless_Satoshi
a7cb34e55f
Add npm test github actions workflow
2022-07-13 13:50:06 -07:00
Reckless_Satoshi
a98ff65638
Fix UI. Hide unneeded expiry bars. Refresh book always. Round to 8 BTC decimals.
2022-07-02 12:51:29 -07:00
Reckless_Satoshi
b5dd4fbea5
Improve clarity on order not available message
2022-07-01 04:22:26 -07:00
Reckless_Satoshi
bd70d94d4a
Add MarketTicks endpoint /api/ticks. Fix do_accounting.
2022-06-21 13:25:03 -07:00
Reckless_Satoshi
c397ff63e5
Add rewards and referral code on usergen api responses
2022-06-21 04:47:29 -07:00
Reckless_Satoshi
6f7cfb5147
Fix avatar persistance and login issues. Add onchain payment cleanup.
2022-06-20 10:56:56 -07:00
Reckless_Satoshi
f1c4754868
Fix bad reply after submitting invoice
2022-06-19 07:32:00 -07:00
Reckless_Satoshi
5c87c5ad85
Add UI elements for swap fee and TXID payout. Fix bugs.
2022-06-16 13:01:10 -07:00
Reckless_Satoshi
efed6b3c0a
Pay buyer onchain-tx
2022-06-16 08:31:30 -07:00
Reckless_Satoshi
8f93c8f7b6
Add address submission and validation checks
2022-06-13 15:27:09 -07:00
Reckless_Satoshi
dc9d5e5e2a
Add frontend input address components
2022-06-11 09:21:53 -07:00
Reckless_Satoshi
cf82a4d6ae
Add onchain logics pt2
2022-06-06 13:37:51 -07:00
Reckless_Satoshi
8d0b518222
Add onchain logics pt1
2022-06-06 10:57:04 -07:00
Reckless_Satoshi
ec167b6573
Fix chatroom names. Fix users entering old chats
2022-06-03 02:39:48 -07:00
Reckless_Satoshi
bedac53e29
Fix missing PGP keys when early login. Fix avatar not found when make/book is clicked.
2022-05-30 14:19:16 -07:00
Reckless_Satoshi
d1f671cf66
Validate PGP keys with GnuPG when a new robot is created
2022-05-30 06:34:27 -07:00
Reckless_Satoshi
f304fa27f9
Fix empty invoice unhandled error
2022-05-28 06:05:26 -07:00
Reckless_Satoshi
4da6a43a59
PGP ID is second hash of token
2022-05-26 14:16:02 -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
789f9fbdb1
Add pub_key and enc_priv_key fields. Store in cookies. Bug: misformed
2022-05-22 15:12:25 -07:00
Reckless_Satoshi
191dfe0d3b
Upgrade userGen, only token_sha256 used. Deprecate token user generation.
2022-05-22 12:30:12 -07:00
Reckless_Satoshi
d48ee9ced4
Add explicit routing failure reasons for users
2022-05-19 07:00:55 -07:00
Reckless_Satoshi
1b4d42cfdf
Implement last order always shown on robot profile
2022-05-09 15:34:10 -07:00
Reckless_Satoshi
83c8d80da3
Add exchange historical endpoint api/historical
2022-05-09 10:35:04 -07:00
Reckless_Satoshi
2b44d32b01
Store robot token in cookies. Add renew order after success for makers.
2022-05-03 13:21:04 -07:00
ibertario
b36155fbd6
BTC instead of Sats on Stats For Nerds ( #98 )
...
* Update views.py
* Update BottomBar.js
2022-05-01 18:09:17 +00:00
Reckless_Satoshi
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
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
3d9ef5fc58
Add limits API endpoint
2022-03-20 16:46:36 -07:00
Reckless_Satoshi
5730ec0383
Add any-domain referral, ontop UnsafeAlert and control panel(app)
2022-03-19 09:33:01 -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
feacb485fb
Change 'today' stats for 'last 24h'
2022-03-13 05:00:21 -07:00
Reckless_Satoshi
806a56c7f9
Remodel price endpoint to only return latest markettick
2022-03-12 06:55:29 -08: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
794d1e8f1b
Add reward invoice submit to UI
2022-03-06 03:45:06 -08:00
Reckless_Satoshi
4ee6778e11
Implement referral attributes and logics
2022-03-05 10:45:42 -08:00
Reckless_Satoshi
dea2b665fb
Route refCode url to api/user and display rewards
2022-03-05 09:32:27 -08:00
Reckless_Satoshi
c385be123f
Display total book liquidity in summary stats
2022-03-05 05:46:22 -08:00
Reckless_Satoshi
b38f18d6d5
Upgrade fee computation for maker/takers
2022-03-03 07:40:56 -08:00
Reckless_Satoshi
c4cf995dbf
Add maker_fee_split. Show maker/taker fee split in app
2022-03-03 04:47:55 -08:00
Reckless_Satoshi
fba6749500
Implement max public orders limit
2022-02-25 12:08:22 -08:00
Reckless_Satoshi
3902159b67
Improve frontend notifications. Add resolved messages. Add unlocked/settled bonds. Fix bug with statements submission.
2022-02-24 12:47:46 -08:00
Reckless_Satoshi
df320ea4d0
Add telegram functionality to backend. Messages: welcome and order taken.
2022-02-21 15:41:36 -08:00
Reckless_Satoshi
78f5c1cbdc
Fix info API wording and magnitudes, settled -> contracted
2022-02-19 09:18:47 -08:00
Reckless_Satoshi
fc4ccd5281
Re-format all python code
2022-02-17 11:50:10 -08:00
Reckless_Satoshi
e392f14b18
Add requested currencies COP, PEN, UYU, PYG and BOB
2022-02-15 13:52:30 -08:00
rs
fb5ef28b5d
Fix admin panel avatars and avatar static removal at robot deletion
2022-02-15 13:03:46 +00:00
Reckless_Satoshi
d77b8404c6
Merge branch 'stabilize-runtime' of github.com:Reckless-Satoshi/robosats into stabilize-runtime
2022-02-13 09:55:52 -08:00
Reckless_Satoshi
3ce5d8304c
Typo robosat -> robot. Shorten welcome back msg
2022-02-13 09:55:44 -08:00
rs
04e097536e
Add allowed local host alias
2022-02-12 23:09:13 +00:00
Reckless_Satoshi
04c9466c3e
Unlink avatars from prod static
2022-02-12 07:46:58 -08:00
Reckless_Satoshi
d257848940
Add statsfornerds: alternative site, node alias, node id, 1ML link
2022-02-12 05:59:59 -08:00
Reckless_Satoshi
3eff1f38ff
Serve statics into dev/prod
2022-02-07 05:37:16 -08:00
Reckless_Satoshi
f830c4df15
Init dockerization of dev environment with docker-compose
2022-02-07 03:21:59 -08:00
Reckless_Satoshi
1a6aa8a9ee
Improve failure logics. Add platform rating.
2022-02-04 10:07:09 -08:00
Reckless_Satoshi
71532d52d0
Add maker status on book page
2022-02-03 10:06:30 -08:00
Reckless_Satoshi
716e838442
Add in order user activity status badge
2022-01-30 11:45:37 -08:00
Reckless_Satoshi
58ecb607c3
Add setup background threads. Minor fixes and cosmetic.
2022-01-30 07:18:03 -08:00
Reckless_Satoshi
5ab97453f0
Add user profile bottom left icon with active order reminder
2022-01-29 11:51:26 -08:00
Reckless_Satoshi
c3b8030d24
Implement responsive foot bar
2022-01-28 06:30:45 -08:00
Reckless_Satoshi
493684b8c9
Add lifetime settled volume. Sort admin panel cronologically
2022-01-26 10:45:24 -08:00
Reckless_Satoshi
2263ec7153
Add penalty live countdown. Fix unilateral cancellation after escrow
2022-01-26 03:44:45 -08:00
Reckless_Satoshi
5a677067f7
Record expiry height into lnpayment and admin panel
2022-01-25 06:46:02 -08:00
Reckless_Satoshi
2d1a2e4c5c
Add logics for payment retry, first iteration.
2022-01-24 14:53:55 -08:00
Reckless_Satoshi
be5b32c451
Add retry time and lnpayment properties for routing failure
2022-01-23 13:12:30 -08:00
Reckless_Satoshi
8919b7937b
Cosmetic fixes
2022-01-23 12:23:25 -08:00
Reckless_Satoshi
b934534e1e
Implement collaborative cancellation
2022-01-23 11:02:25 -08:00
Reckless_Satoshi
8a43d3359d
Simplify orderpage vars, improve tradebox response times
2022-01-22 15:05:03 -08:00
Reckless_Satoshi
980a385528
Premium percentile computing
2022-01-18 10:24:45 -08:00
Reckless_Satoshi
f010fe9bb0
Fix today active robots
2022-01-18 09:52:48 -08:00
Reckless_Satoshi
ce9845cbc2
Users stay logged in when re-entering home if there is an active order or is an old account
2022-01-18 09:42:45 -08:00
Reckless_Satoshi
ad6ee9d4de
Improve Order Expired behaviour
2022-01-18 07:45:04 -08:00
Reckless_Satoshi
c58070f437
Improve logics around locked bonds. Add frontend confirm cancel dialog.
2022-01-18 07:23:57 -08:00
Reckless_Satoshi
a005b3509d
Add meta onion-location pointer
2022-01-17 16:50:54 -08:00
Reckless_Satoshi
9d883ccc4d
Add expiration logics. Add dispute statements.
2022-01-16 13:54:42 -08:00
Reckless_Satoshi
2cbc82a535
Convert cached currency to relation children of order
2022-01-16 08:06:53 -08:00
Reckless_Satoshi
7ba2fcc921
Add celery background and scheduled tasks. Add user cleansing task
2022-01-16 04:31:25 -08:00
Reckless_Satoshi
f390a8f2f1
Fix delay when bad request. Fixavg premium to weighted avg premium
2022-01-15 06:22:07 -08:00
Reckless_Satoshi
1a99b78229
Fix small mistakes
2022-01-14 09:35:27 -08:00
Reckless_Satoshi
4087bb9936
Add bottom bar
2022-01-14 08:21:42 -08:00
Reckless_Satoshi
032d3a1369
Add taker bond lock expiry
2022-01-14 06:19:54 -08:00