Wykres commitów

257 Commity (30b918a7ca65be90cc1ca7927a4a3f41f7f15a6f)

Autor SHA1 Wiadomość Data
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
Neeraj Kashyap d2b31dd0b2 Control flow fixes 2021-08-03 09:30:15 -07:00
Neeraj Kashyap 30f21ddce0 Stripe product and price IDs 2021-08-03 09:26:46 -07:00
Neeraj Kashyap d301e36ad3 Some small fixes to the subscription-types CLI 2021-08-03 09:23:18 -07:00
Neeraj Kashyap bf9524cd16
Merge pull request #49 from bugout-dev/fixing-txinfo
Fixing txinfo
2021-08-03 09:16:34 -07:00
Andrey Dolgolev d0a898d836 Merge branch 'main' into add-labels-and-times 2021-08-03 18:04:19 +03:00
Andrey Dolgolev 164ebfe537 Add labels from subscriptions.
Add colors
Add timestamp(what is timestamp when transaction was mined).
Add allowed filters for from query.
2021-08-03 17:58:25 +03:00
yhtiyar 22b8f335d2 Merge branch 'main' into fixing-txinfo 2021-08-03 16:09:56 +03:00
yhtiyar 6d7a47c518 removed alias 2021-08-03 16:08:15 +03:00
yhtiyar f4b07715ef Merge branch 'main' into fixing-txinfo 2021-08-03 15:37:12 +03:00
Neeraj Kashyap 2b7324195b
Merge pull request #48 from bugout-dev/brood-spire-client-env-vars
Brood spire client env vars with github workflows
2021-08-03 05:37:03 -07:00
kompotkot b969e01b1c Black format 2021-08-03 12:31:46 +00:00
yhtiyar 36ae8d7c52 made from alias to `from_address` 2021-08-03 14:56:14 +03:00
Tim Pechersky 7bfc0b34eb Merge remote-tracking branch 'upstream/main' into entry-cards 2021-08-03 19:48:13 +08:00
kompotkot 43a99e0d23 Bugout client spire and brood url env vars 2021-08-03 11:41:51 +00:00
kompotkot 090dc789fc Updated git commit for db at backend part 2021-08-03 10:55:33 +00:00
Andrey Dolgolev f7fa05df18 Merge branch 'merging-streams' of github.com:bugout-dev/moonstream into merging-streams 2021-08-02 20:16:42 +03:00
Andrey Dolgolev d82b432d85 Fix subscriptions token. 2021-08-02 20:15:17 +03:00
Neeraj Kashyap 8fbe8bdc7e Removed unused request.state.token in /subscriptions/types 2021-08-02 10:02:44 -07:00
Andrey Dolgolev 6717a613e8 Merge branch 'main' into merging-streams 2021-08-02 19:18:22 +03:00
Andrey Dolgolev 6a1abea6fd Add MOONSTREAM_ADMIN_ACCESS_TOKEN. 2021-08-02 18:51:46 +03:00
Andrey Dolgolev b0c00407a6 Change name to MOONSTREAM_ADMIN_ACCESS_TOKEN. 2021-08-02 18:50:09 +03:00
Andrey Dolgolev 45e36898ec Merge branch 'main' into add-subsription-cli 2021-08-02 18:41:24 +03:00
Andrey Dolgolev 8fbb013885 Add MOONSTREAM_AUTO_USER_TOKEN access tokens. 2021-08-02 18:38:22 +03:00
yhtiyar e519cabad9 fix of route 2021-08-02 16:25:56 +03:00
Tim Pechersky 5946abb75b
Merge pull request #37 from zomglings/frontend-api-auth
Frontend now authenticates with Moonstream API.
2021-08-02 19:45:42 +08:00
yhtiyar 873ed960fd Merge branch 'add-stream-endpoint' into merging-streams 2021-08-02 14:45:09 +03:00
Andrey Dolgolev c045c5d437 Add streams )) 2021-08-02 14:43:52 +03:00
yhtiyar c461c41123 Merge branch 'add-stream-endpoint' into merging-streams 2021-08-02 14:36:30 +03:00
Andrey Dolgolev 8ed8719a51 Add stream endpoint.
Add filters.
2021-08-02 13:59:32 +03:00
Neeraj Kashyap 1ced909f15 Updated frontend user auth service
Now, instead of using Brood, it uses the Moonstream API.
2021-07-31 10:35:58 -07:00
Neeraj Kashyap 56e19b153b Merge branch 'main' into crawl-smart-contract-addresses-from-transaction-receipts 2021-07-30 05:39:53 -07:00
kompotkot 4f8f589df2 Small updates 2021-07-29 21:09:53 +03:00
Neeraj Kashyap c8b93d384b Updated moonstreamdb commit hash in requirements.txt 2021-07-29 09:44:03 -07:00
Neeraj Kashyap d2c30256b3 Merge branch 'main' into crawl-smart-contract-addresses-from-transaction-receipts 2021-07-29 09:42:55 -07:00
kompotkot 8e83a40193 Fixes to working backend deployment 2021-07-29 13:52:32 +00:00
Neeraj Kashyap 9388bbe6a9 EthereumTransaction pydantic model now true representation
Before, it was missing several fields that we expect to see on
transactions (e.g. ECDSA signatures).
2021-07-29 00:05:57 -07:00
Neeraj Kashyap 7147377cf9 Improved /txinfo/ethereum_blockchain endpoint
The response now explicitly specifies whether the given transaction was
a smart contract deployment or a smart contract method call.

Testing script now uses an actual transaction from mainnet.
2021-07-28 23:57:40 -07:00
Neeraj Kashyap b9aebfddf7 Implemented /txinfo/ethereum_blockchain
This is an authentiated endpoint which currently returns decoded ABI
information from input bytecode in an Ethereum transaction.

In the future, we should add all transaction display enrichment code to
this endpoint (for Ethereum blockchain transactions).
2021-07-28 12:43:02 -07:00
Neeraj Kashyap c02fabe967 Removed unused json import 2021-07-28 11:51:55 -07:00
Neeraj Kashyap 6e67eba443 Added moonstreamdb env vars to sample.env 2021-07-28 11:19:43 -07:00
Neeraj Kashyap 43ad20f6ea Added support for "0x" prefix on smart contract bytecode 2021-07-28 11:06:00 -07:00
Neeraj Kashyap 97d9cdb41e Return empty list when no text candidates for hex signature
Previously, we were returning `null`.
2021-07-28 11:03:13 -07:00
Neeraj Kashyap 1dc6eeca6a Added .secrets to backend .gitignore 2021-07-28 10:58:31 -07:00
Neeraj Kashyap 7576c04937 Added CLI for moonstream.abi_decoder 2021-07-28 10:55:17 -07:00
Neeraj Kashyap e520457f0a Updated requirements.txt moonstreamdb commit 2021-07-28 10:35:45 -07:00
Neeraj Kashyap b9c828fc7f Merge branch 'main' into smart-contract-crawlers 2021-07-28 10:34:55 -07:00
Neeraj Kashyap aa3ebd833c
Merge pull request #24 from bugout-dev/missing-block-check
Missing block check
2021-07-28 10:31:34 -07:00
Neeraj Kashyap f0113d8564 Fixed small mypy issue when working with application_id 2021-07-28 10:28:17 -07:00
Neeraj Kashyap 97b9ed0415 Added mypy.ini to Moonstream backend 2021-07-28 10:24:12 -07:00
Neeraj Kashyap fcd373905c Black formatting for abi_decoder.py 2021-07-28 10:22:16 -07:00
Neeraj Kashyap 7cb6131a88 Updated requirements.txt to fix moonstreamdb dependency 2021-07-28 10:20:09 -07:00
yhtiyar ae0d1cea8e Added abi decoder library 2021-07-28 20:14:00 +03:00
yhtiyar 9886c740f7 Merge branch 'smart-contract-crawlers' of github.com:bugout-dev/moonstream into smart-contract-crawlers 2021-07-28 20:07:05 +03:00
yhtiyar 5b57ed4f11 added abi decoder 2021-07-28 19:59:13 +03:00
kompotkot 3420d6cf86 Missing block check for crawlers cli 2021-07-28 18:03:06 +03:00
Andrey Dolgolev ce6d015974 Add init version of subscription cli. 2021-07-28 16:42:50 +03:00
kompotkot 728122aba7 Updated hash of moonstreamdb in requirements 2021-07-28 14:20:11 +03:00
kompotkot d26dfb544c Added moonstreamdb at backend requirements 2021-07-28 13:04:20 +03:00
kompotkot f9a9a0622e Deploy names of service fixes 2021-07-28 12:40:21 +03:00
Andrey Dolgolev 9a70468e7e Remove not required enviroments. 2021-07-27 19:57:12 +03:00
Andrey Dolgolev b6cf0f079c black formating. 2021-07-27 19:53:50 +03:00
Andrey Dolgolev 7acb7e5c11 Add delete. 2021-07-27 19:51:32 +03:00
Andrey Dolgolev 423dd0cb21 Merge branch 'main' into Add-Subscriptions 2021-07-27 18:25:06 +03:00
Andrey Dolgolev 3814fdef23 Add initial subscription backend. 2021-07-27 18:08:40 +03:00
kompotkot 826af41dcc Database models for crawlers 2021-07-26 14:03:33 +03:00