Wykres commitów

130 Commity (686bfef49b4b252ff343c34be8dd09e09feb500e)

Autor SHA1 Wiadomość Data
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