Wykres commitów

226 Commity (ef12313e22443d2babd5baf2421a73d901b6a32b)

Autor SHA1 Wiadomość Data
Tim Pechersky eb1fd2b057 Merge branch 'main' into store-onbarding-on-backend 2021-09-06 19:24:37 +02:00
Tim Pechersky 5a2b88d86d code review changes 2021-09-06 19:21:05 +02:00
yhtiyar d6b135dbda added `None` default values where fields are `Optional` 2021-09-06 19:59:55 +03:00
yhtiyar 0a2790b678 removed breakpoint 2021-09-06 19:55:33 +03:00
yhtiyar 8e27fb0a76 made it work 2021-09-06 16:24:14 +03:00
yhtiyar 1e55e987b4 added support of `nft` address metadata in `address_info/` 2021-09-06 15:56:21 +03:00
Andrey Dolgolev cd8369a262 Add created_at and updated_at. 2021-09-03 15:50:27 +03:00
Neeraj Kashyap dbb5a98b68 Updated moonstreamdb version in API requirements.txt 2021-09-02 23:05:51 -07:00
Tim Pechersky 0cf4f317d2 fix errors 2021-09-02 19:00:58 +02:00
kompotkot dd9954094c Removed Response child 2021-09-02 15:33:20 +00:00
Tim Pechersky 77950377b7 backend changes 2021-09-02 16:57:27 +02:00
kompotkot 6ac9df74aa Extended HTTPException and Response with error handling 2021-09-02 10:49:23 +00:00
kompotkot c34f9245c0 Renamed env variable for crash reports token 2021-09-01 13:43:44 +00:00
kompotkot 8d16c68a10 Humbug reporter for moonstream backend 2021-09-01 12:03:44 +00:00
Neeraj Kashyap e542ab44a8
Merge pull request #201 from bugout-dev/address-info
fixed address_info response schema
2021-08-30 10:22:16 -07:00
yhtiyar dd071642b5 fixed address_info response schema 2021-08-30 16:46:51 +03:00
Neeraj Kashyap 20db8d4ef9
Merge pull request #193 from bugout-dev/extend-bugout-provider-tags-parser
Extend bugout provider tags parser
2021-08-27 09:14:09 -07:00
Andrey Dolgolev 420c5a1f4d Add fixes. 2021-08-27 18:41:08 +03:00
yhtiyar 52677e59fb fixed review requires 2021-08-27 18:28:47 +03:00
Andrey Dolgolev 192e98e682 Add subclass of bugout provider for memPool data. 2021-08-27 16:58:13 +03:00
yhtiyar 22b12c0dba fix api moount -> mount 2021-08-27 14:02:43 +03:00
yhtiyar 9c9697bb0c made seperate address_info/ endpoint 2021-08-26 17:06:58 +03:00
Andrey Dolgolev 53a16eb5cc Add or condition by addresses. 2021-08-26 16:21:23 +03:00
yhtiyar 05d759b625 Merge branch 'main' into address-info 2021-08-26 14:14:44 +03:00
yhtiyar d031b4c3db enum fix 2021-08-26 14:09:19 +03:00
yhtiyar 7107ffdc48 adding address_info endpoint 2021-08-25 17:04:58 +03:00
Neeraj Kashyap 8e43fff23a Fixed transaction information service on frontend
Also fixed request body on `/txinfo/ethereum_blockchain`.
2021-08-25 06:31:58 -07:00
Neeraj Kashyap 4e818b1b89 Update acceptable client tag for main ethereum_txpool crawler
In the event provider.
2021-08-25 03:22:57 -07:00
Neeraj Kashyap fa2b95cf6c Made --icon an optional parameter on "mnstr subtypes update" 2021-08-25 03:00:14 -07:00
Neeraj Kashyap 8586ff064e Set ethereum_txpool subscription type to active
In the canonical types array.
2021-08-25 02:38:23 -07:00
Neeraj Kashyap 29b7c09cb3 Added ethereum_txpool event provider 2021-08-24 09:57:51 -07:00
Neeraj Kashyap 88e9125f51 Added python dateutil type annotations to dependencies 2021-08-24 09:25:49 -07:00
Neeraj Kashyap 275b14693d Merge branch 'main' into whale-watch 2021-08-24 09:00:32 -07:00
Neeraj Kashyap 66b58b60b1
Merge pull request #154 from bugout-dev/smartcontract-source-info
Smartcontract source info fix
2021-08-24 08:58:33 -07:00
kompotkot c8fc3aecf3 Mypy fixes for backend 2021-08-24 13:50:36 +00:00
Neeraj Kashyap 4cb57021c6 Removed unused imports on backend codebase 2021-08-24 06:31:47 -07:00
yhtiyar f0ae16b878 Better naming and bug fix 2021-08-24 15:05:17 +03:00
yhtiyar 3689a9a0bf getting bucket from env variable 2021-08-24 14:27:03 +03:00
Neeraj Kashyap a1a962456a Fixed mypy issue with /now endpoint 2021-08-23 10:04:26 -07:00
Neeraj Kashyap 9d931dd430 Merge branch 'main' into whale-watch 2021-08-23 10:03:45 -07:00
Neeraj Kashyap d281737621 Time zone bullshit 2021-08-23 07:57:39 -07:00
Neeraj Kashyap 0f3be7c700 Fixed time filters in Bugout Event Provider
Bugout journal `created_at:` filters require ISO formatted time.
2021-08-23 07:12:44 -07:00
yhtiyar 6abc6c67b9 cleaned up txinfo endpoint 2021-08-23 16:47:33 +03:00
Neeraj Kashyap b774241f20 Fixed issue with entry event timestamp in Bugout event provider 2021-08-23 06:07:31 -07:00
yhtiyar beb6cb90b4 added smart contract source info to /txinfo endpoint 2021-08-23 12:50:58 +03:00
Neeraj Kashyap baa42fc36c Reduced default stream boundary to 5 minutes
Updated moonstreamdb requirement in backend to 0.0.3 so that it can set
statement timeouts.

Added a TODO to properly handle the statement timeout error on the
ethereum_blockchain provider.
2021-08-22 16:16:36 -07:00
Neeraj Kashyap 6959b78daf Fixed issue with ethereum provider not looking at subscriptions
Before, the `ethereum_blockchain` provider was returning all blockchain
transactions in the given stream boundary.

Now, it only returns transactions that are relevant to the user's
subscriptions.
2021-08-22 08:15:22 -07:00
Neeraj Kashyap cc4dfa5ebf Server sends /now responses with microseconds since epoch
Millisecond and microsecond is fractional part of float response.

Also removed search.service.js from frontend codebase.
2021-08-22 04:52:49 -07:00
Neeraj Kashyap 6443ad3da5 Moved /streams/now -> /now
Response is now JSON object of the form:
```json
{
    "epoch_time": 1629572206
}
```

It is not authenticated.
2021-08-21 11:55:59 -07:00
Neeraj Kashyap 036d1c169d Added a /streams/now endpoint so that clients have access to server time 2021-08-21 11:52:48 -07:00
Neeraj Kashyap 2adedaf1fd 10 second timeout on /streams/ 2021-08-21 11:45:00 -07:00
Neeraj Kashyap 2fbb0a3c7b Fixed issue with previous and next event handlers in BugoutEventProvider 2021-08-21 11:44:34 -07:00
Neeraj Kashyap 36fb761e12 Added stream boundary validator
(and tests)
2021-08-21 11:26:52 -07:00
Neeraj Kashyap 2886aed32e Added ethereum_whalewatch provider to API 2021-08-20 14:14:36 -07:00
Neeraj Kashyap 117cfa881e Hooked up /streams/ routes to providers
Also added a top-level providers interface which gets data from each
individual event provider in the background before returning data to the
API. Check `backend/moonstream/providers/__init__.py`.
2021-08-20 11:14:21 -07:00
Neeraj Kashyap 5db3c60769 Hooked up ethereum_blockchain provider to /streams/ route 2021-08-19 08:09:58 -07:00
Neeraj Kashyap ffd1dabe15 get_address_labels in actions.py 2021-08-18 23:12:59 -07:00
Neeraj Kashyap 828c6b1e61 Merge branch 'main' into whale-watch 2021-08-18 23:06:17 -07:00
Neeraj Kashyap e06cebbacb Added function on backend to resolve user subscriptions
And group them by subscription type.
2021-08-18 23:05:01 -07:00
Neeraj Kashyap 13a7775bae Updated ethereum_blockchain provider to respect StreamQuery objects 2021-08-18 15:57:45 -07:00
Neeraj Kashyap a9320b8521 Updated how filters are parsed from StreamQuery
WIP
2021-08-18 11:06:30 -07:00
Neeraj Kashyap 8df9cdeee1 Added stream query parser 2021-08-18 07:48:39 -07:00
kompotkot 977756549d Handler for address labels 2021-08-16 14:41:41 +00:00
Neeraj Kashyap b5ac5fbd96 [WIP] ethereum_blockchain interface update 2021-08-14 17:26:40 -07:00
Neeraj Kashyap f5708135da Renamed stream_processors -> providers
Fixed mypy error
2021-08-14 14:03:37 -07:00
Neeraj Kashyap 13b8e3bfe7 stream_processors.{ethereum_transaction -> ethereum_blockchain} 2021-08-13 15:19:36 -07:00
Neeraj Kashyap f10db1695e Removed fields from subscription types
Adds too much complexity for now. For whale watch, we can just treat the
address type as a throwaway field.
2021-08-13 15:17:18 -07:00
Neeraj Kashyap 695f833d8d Added icon_url and fields to subscription types 2021-08-13 14:41:25 -07:00
Neeraj Kashyap 2159b7df62 Little bit of cleanup in /subscriptions endpoint 2021-08-13 13:35:24 -07:00
Neeraj Kashyap d55f25d5e3 Merge branch 'main' into whale-watch 2021-08-13 12:37:55 -07:00
Neeraj Kashyap 7cd8e9a98b TODO 2021-08-13 08:09:29 -07:00
Neeraj Kashyap 01303ebd7d active_only argument for list subscription types 2021-08-12 16:05:42 -07:00
Neeraj Kashyap 5fd3a4797d Some superficial changes for readability. 2021-08-12 14:52:19 -07:00
Neeraj Kashyap 173b528198 Updated /subscriptions/types to use new handler
in `moonstream/admin/subscription_types.py`.
2021-08-12 14:50:46 -07:00
Neeraj Kashyap dd7e2cbcf0 Typo fix 2021-08-12 14:40:47 -07:00
Neeraj Kashyap 21184d588c Update to admin CLI 2021-08-12 14:00:54 -07:00
Neeraj Kashyap ac255411b6 Added "mnstr subtypes canonicalize"
This seeds any Brood API with the canonical subscription type resources
for a Moonstream app.
2021-08-12 12:23:21 -07:00
Neeraj Kashyap e6df7b8f01 Complete admin CLI for subscription types
Also added BUGOUT_REQUEST_TIMEOUT_SECONDS setting which is currently
hard coded in settings.py
2021-08-12 11:38:15 -07:00
Neeraj Kashyap 07b857d8a2 administrative commands for subscription types 2021-08-12 11:27:54 -07:00
Andrey Dolgolev 309e510598 Remove print. 2021-08-12 18:03:23 +03:00
Andrey Dolgolev 0631e2fb95 Fix issues.
1) issue with enpty value in filter
2) issue with empty value in ethrium transaction request
Add
1) Add urlencoding and replace null to 0 for timestamps
2) Add sorting by timestamps
2021-08-12 16:39:26 +03:00
Neeraj Kashyap 79c512ca13 Moved moonstream.cli -> moonstream.admin.cli 2021-08-12 05:53:49 -07:00
Neeraj Kashyap f91422f071
Merge pull request #97 from bugout-dev/fixing-pagination
Fixing pagination
2021-08-11 09:46:28 -07:00
Neeraj Kashyap 8d2f252df7 Bumped bugout-python dependency to 0.1.16
This allows us to udpate resources (needed for subscription edits).
2021-08-10 09:56:57 -07:00
Andrey Dolgolev 1346373012 Change version of bugout python. 2021-08-10 19:54:26 +03:00
Andrey Dolgolev d57550a85c Add update subscription. 2021-08-10 19:29:16 +03:00
Neeraj Kashyap 1c0be19466 Removed TODO about user_id 2021-08-10 08:53:26 -07:00
Neeraj Kashyap eea08063a3 Cleaned up code for /subscriptions route 2021-08-10 06:47:54 -07:00
Neeraj Kashyap 746de0c70b Added issue link to a TODO 2021-08-10 06:41:18 -07:00
Neeraj Kashyap 5bd061a5da Added stream_processors submodule
Migrated streams route to use `ethereum_transaction` stream processor.
2021-08-10 06:25:23 -07:00
Neeraj Kashyap 3656a592ac Typo in function name 2021-08-10 06:21:43 -07:00
Neeraj Kashyap b56e83a557 Another TODO 2021-08-10 06:19:37 -07:00
Neeraj Kashyap 53425e88c3 TODOs for @Andrei-Dolgolev, @kompotkot 2021-08-10 06:17:46 -07:00
Neeraj Kashyap e469658aee Removed unused imports from data.py 2021-08-10 06:12:09 -07:00
Neeraj Kashyap 3a3ef9ed39 Little bit of code cleanup
- Fixed mypy issues around `MOONSTREAM_ADMIN_ACCESS_TOKEN`.

- Added `StreamBoundary` pydantic model to represent core information
about view window into a stream. `PageBoundary` derives from
`StreamBoundary`.

- Removed unused imports and scratch comments from the /streams route
definition.
2021-08-10 06:10:05 -07:00
Andrey Dolgolev 401f12a488 Add buttons for control stream. 2021-08-09 21:30:44 +03:00
kompotkot de972d6722 Modified git commit hash to work with new labels table 2021-08-09 16:06:17 +00:00
Andrey Dolgolev d59084965c Add changes temp state before swith to go to next/previous and go to latest button. 2021-08-09 19:00:24 +03:00
kompotkot 55ac27689c Working migration smart_contr -> address 2021-08-09 14:04:17 +00:00
Andrey Dolgolev 9d69fc950a Temo state of replacing infinitQuery 2021-08-07 18:05:06 +03:00