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