Wykres commitów

322 Commity (ea4a2685b51b7adee1b6688c59dae26f65029d20)

Autor SHA1 Wiadomość Data
kompotkot e17c647377 Moved status logic to actions py 2021-09-29 16:19:31 +00:00
kompotkot b01f96fa80 Files structure update of status 2021-09-29 16:02:32 +00:00
kompotkot c473a899c5 Fixed mypy 2021-09-29 14:34:29 +00:00
kompotkot 286f735f30 Status API endpoint for backend 2021-09-29 14:08:58 +00:00
Andrey Dolgolev 03c86a28f5 Add fix for bugout tag. 2021-09-28 18:29:26 +03:00
Andrey Dolgolev 1429a08600 Add fix. 2021-09-28 18:27:57 +03:00
Andrey Dolgolev baad270a4c Add ETHTXPOOL_HUMBUG_CLIENT_ID as env variable for escape desynchronize with crawler. 2021-09-28 18:08:56 +03:00
Neeraj Kashyap 1517605a57
Merge pull request #236 from bugout-dev/erc721-labels
Erc721 labels
2021-09-25 08:59:21 -07:00
Tim Pechersky 639a366b80
Merge pull request #276 from bugout-dev/token-screen
Token screen
2021-09-23 15:11:07 +02:00
Tim Pechersky 0927a24ae7 remove unused definition 2021-09-23 15:08:07 +02:00
Tim Pechersky c3d1f50806 corrected argument 2021-09-23 15:07:14 +02:00
Tim Pechersky 644699f86c fix backend bug wrong token note 2021-09-23 14:57:46 +02:00
Sergei Sumarokov 1d3c4c5d41
Merge pull request #263 from bugout-dev/nft-explorer
Improvements to "nft ethereum" crawlers
2021-09-23 13:15:35 +03:00
Tim Pechersky a65f108d2e use newest version of bc, cleanup a bit 2021-09-22 15:25:54 +02:00
Tim Pechersky 0a2e5da0f8 update bugout python client version 2021-09-22 15:25:28 +02:00
kompotkot d0381ed089 Removed variable MOONSTREAM_OPENAPI_LIST 2021-09-22 10:32:38 +00:00
yhtiyar 70a75b8d69 fixed mypy issue 2021-09-22 13:02:47 +03:00
Tim Pechersky 47f11c6e01 add token_note option on token creation 2021-09-21 20:35:41 +02:00
Tim Pechersky f68b8f9503 add tokens management API points 2021-09-21 16:54:10 +02:00
kompotkot 79dab82972 Migrated to fastapi router from subapps 2021-09-21 12:56:56 +00:00
Andrey Dolgolev a67941439a Small fix. 2021-09-16 21:45:03 +03:00
Neeraj Kashyap 2650e84dd0 [WIP] Getting things working with bugout nft provider 2021-09-16 10:23:31 -07:00
Neeraj Kashyap d4d1f8b6e0 [WIP] Adding /nft endpoint to the API 2021-09-16 09:56:12 -07:00
Neeraj Kashyap aeae226491 Added /streams/info endpoint
This gives information about available event providers on the API.
2021-09-16 09:25:22 -07:00
Andrey Dolgolev d35eded11d Black formating. 2021-09-15 14:54:26 +03:00
yhtiyar 26d57b1969 added error handling in address_info endpoint 2021-09-15 12:20:52 +03:00
Andrey Dolgolev 3f7ff0c151 Remove dialect. 2021-09-14 20:31:59 +03:00
Andrey Dolgolev 8626eac442 Remove logger. 2021-09-14 20:28:05 +03:00
Andrey Dolgolev 2f10e470ed Add logger and remove prints. 2021-09-14 20:25:33 +03:00
Andrey Dolgolev eb2d214859 Remove import. 2021-09-14 20:21:51 +03:00
Andrey Dolgolev f598596f07 Remove print. 2021-09-14 20:20:27 +03:00
Andrey Dolgolev 27aa0ce3a5 Add init version. 2021-09-14 20:19:04 +03:00
Andrei-Dolgolev 0799c62f0d
Merge pull request #232 from bugout-dev/fix-missing-created-at-in-subscription-responses
Add created_at and updated_at.
2021-09-13 15:48:26 +03:00
Sergei Sumarokov 0daa60319a
Merge pull request #241 from bugout-dev/extend-subscriptions
Extend subscriptions
2021-09-09 16:09:39 +03:00
Andrey Dolgolev 69226ebd32 Remove optional. 2021-09-09 15:05:38 +03:00
Andrey Dolgolev 3841b9104a Change tag:nfts -> ERC721. 2021-09-08 20:41:25 +03:00
Andrey Dolgolev 64d67556cf Add mypy fixes. 2021-09-08 18:43:34 +03:00
Neeraj Kashyap 439d019164
Merge pull request #226 from bugout-dev/nft-explorer
Nft explorer
2021-09-08 08:39:20 -07:00
Andrey Dolgolev b9d9584bfe Add fixes. 2021-09-08 18:06:12 +03:00
Andrey Dolgolev 134b785c9e Black formating. 2021-09-08 15:14:52 +03:00
Andrey Dolgolev 6105a4402f Update ensure canonical. 2021-09-07 19:42:31 +03:00
Andrey Dolgolev 5a7b261b00 Update subscriptions cli. 2021-09-07 18:56:12 +03:00
Andrey Dolgolev 212ce8bb3c Fix. 2021-09-07 16:02:40 +03:00
Andrey Dolgolev 1f36d16585 Merge branch 'main' into extend-subscriptions 2021-09-07 15:51:23 +03:00
Andrey Dolgolev 7c61e0486f Add changes for subscription and merge main. 2021-09-07 15:35:05 +03:00
Tim Pechersky 4788557164 fix imports 2021-09-06 19:28:16 +02:00
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
Andrey Dolgolev 1a43528ae9 Add streams by timestemp. 2021-08-06 17:03:24 +03:00
Neeraj Kashyap e7879ef95e Use bugout==0.1.15
This fixes bug with calling resources endpoint in Brood API
2021-08-03 10:35:10 -07:00
Neeraj Kashyap acd80c0d6b descriptions -> description 2021-08-03 10:33:31 -07:00
Neeraj Kashyap 25e2357790 Clarifying comment 2021-08-03 09:31:48 -07:00