Commit Graph

65 Commits

Author SHA1 Message Date
eric-laurello
e3482847d3
AN-2245 superfluid staked balances (#64)
* check in

* WIP check in

* WIP check in

* locked LP actions and balances

* add business logic test, fix test failure & typos

* ds store

* ds store

* more logic tests
2022-10-21 13:18:58 -04:00
Jessica Huhnke
a863c79e66
fix currency field bug in IBC IN transfer (#63) 2022-10-19 05:33:00 -05:00
Jessica Huhnke
242582207e
add in INJ, KUJI, AXL, and KAVA prices (#62) 2022-10-12 15:00:01 -05:00
eric-laurello
f8585d7764
better way to check for prod env (#61) 2022-10-12 11:45:45 -04:00
Jessica Huhnke
a787ef6d32
An 1431 osmosis balances (#55)
* early swaps silver model, limit block timestamp in previous swaps model, union in core view

* balances table & tests

* uses timestamps

* added daily balances table

* update name to liquid balances

* staked balances table

* added staked balances to daily balances table

* fix that corrects sum in staked balances

* changes to daily balances table

* fixes to daily balances & updates to staked balances

* updates to yml descriptions

* inserted at timestamp changes

* merge main

* balances wip

* merge main and incremental logic fixes

* removed internal column from daily

* remove core tables for balances

* incremental fix

* bug fix for zero balances & gold model

* coalesce

Co-authored-by: Eric Laurello <eric.laurello@flipsidecrypto.com>
2022-10-07 15:06:37 -04:00
eric-laurello
82592c46df
Update silver__all_unknown_balances.sql (#59) 2022-09-27 12:59:40 -04:00
eric-laurello
71410a6510
re-enable balances post-hook (#58) 2022-09-27 12:43:01 -04:00
eric-laurello
ec69342ce6
fix for the tx_sender (#57) 2022-09-26 14:58:38 -04:00
Jessica Huhnke
d16fbdbb5d
osmosis store test failures (#56)
* osmosis store test failures

* turn off test storing for one column
2022-07-22 12:57:19 -07:00
Jessica Huhnke
e1b07e93cc
rewrite using tx_body (#53)
* rewrite using tx_body

* fixed data typing

* add not null vote weight test

* type change
2022-07-19 12:58:28 -05:00
desmond-hui
2add78658a
An 1696/change unknown balances criteria (#54)
* organize streamline files, add all lp wallets to balances call

* increase balances batch size
2022-07-19 09:26:25 -07:00
desmond-hui
f591b8a21e
organize streamline files, add all lp wallets to balances call (#52) 2022-07-18 14:04:06 -07:00
Jessica Huhnke
abed52eb0b
An 1772 prices (#51)
* early swaps silver model, limit block timestamp in previous swaps model, union in core view

* balances table & tests

* uses timestamps

* added daily balances table

* update name to liquid balances

* staked balances table

* added staked balances to daily balances table

* fix that corrects sum in staked balances

* changes to daily balances table

* fixes to daily balances & updates to staked balances

* updates to yml descriptions

* inserted at timestamp changes

* changes osmosis price ref from coingecko to cmc

* removed balances tables
2022-07-14 17:59:49 -04:00
Jessica Huhnke
8cfcc185c2
comment out gaps test while backfill completes (#50)
* comment out gaps test while backfill completes

* yeet
2022-07-01 13:31:33 -05:00
eric-laurello
4bc8dc048d
AN-1692 inserted timestamp and other cleanup (#48)
* inserted plus mergins

* inc clean up

* merge fact

* remove ingest for silver txns
2022-06-29 19:29:59 -04:00
desmond-hui
ca228da608
combine udf create statements (#49) 2022-06-29 14:38:00 -07:00
desmond-hui
fe65b87238
add integration to get pool balances (#47) 2022-06-29 12:46:08 -07:00
Jessica Huhnke
7943d7f5e9
fix to transfers bug (#46) 2022-06-27 12:35:13 -05:00
Jessica Huhnke
c7e6ad6e78
fixed prices (#45) 2022-06-27 07:32:48 -05:00
desmond-hui
b690b32d05
add pool balances external table (#44) 2022-06-23 16:30:36 -07:00
eric-laurello
e323731641
AN-1640_LP updates / early lp adds (#43)
* LP updates / early lp

* remove double lp token transfers

* gold view

* add unique test and except in early table

* add logic for lp_count
2022-06-22 14:47:01 -04:00
Jessica Huhnke
4f78ecef8e
airdrops silver model (#42) 2022-06-21 07:14:13 -05:00
Jessica Huhnke
4904bcae6c
An 1599 superfluid staking (#41)
* super fluid minus unpool

* updates to superfluid staking silver and fixed ref to dev in staking

* core superfluid table and fix to staking decimals

Co-authored-by: Eric Laurello <eric.laurello@flipsidecrypto.com>
2022-06-17 16:04:37 -04:00
Jessica Huhnke
46ffe22878
airdrops table (#38)
* airdrops table

* description fix
2022-06-14 13:53:21 -05:00
desmond-hui
e6accf253c
An 1398/udf for validator metadata route (#39)
* udf and sp to call validator_metadata endpoint

* remove db name, let is run based on db context
2022-06-14 11:15:25 -07:00
eric-laurello
51e3935630
AN-1371_msg sub group and body/auth info to txns (#35) 2022-06-10 15:03:23 -04:00
eric-laurello
23d1d5119d
cast null as array (#36) 2022-06-10 10:02:27 -04:00
Jessica Huhnke
b32be5d708
early swaps silver model, limit block timestamp in previous swaps model, union in core view (#33) 2022-06-09 10:52:15 -05:00
Jessica Huhnke
0e8173e38f
core prices table (#34)
* core prices table

* dedupe the silver prices table
2022-06-09 08:20:53 -05:00
Jessica Huhnke
0f9f4c2d76
An 1377 osmosis prices (#32)
* prices model & test - assets on coin market cap and coingecko

* cast to and from amount in swaps to integer

* prices swaps model (need to re-ref prices)

* added wrapped BTC and ETH to prices table

* add decimals, remove weights

* jinjafy reference to hours table

* disable uniqueness test until asset metadata has been deduped

* disable failing unique  key tests until asset metadata has been deduped

* revert previous commit

* dedupe asset metadata

* fixes pushed

* enable dupes test
2022-06-07 13:45:11 -04:00
eric-laurello
97cd893150
Update cluster keys (#31) 2022-06-03 18:38:11 -04:00
Jessica Huhnke
34d0851f4a
An 1386 voter key (#30)
* changed votes unique key

* join on msg_attribute to get correct voter
2022-06-03 13:17:19 -05:00
Jessica Huhnke
ab02efdbdb
An 1300 gold (#28)
* core tables and tests

* remove msg_index columns from core

* merge in balances

* dim table for vote options and search optimization
2022-06-03 03:56:55 -05:00
desmond-hui
cb4b7aca4a
grab balances needed per day (#29)
* grab balances needed per day

* only grab data for dates that are completed
2022-06-02 12:35:22 -07:00
desmond-hui
5cf0ef5eba
An 1325/integrate balances lambda (#27)
* integrate balances api, add raw balances external table

* remove silver balances placeholder

* fix hardcoded table names

* update snapshot date
2022-06-01 12:52:25 -07:00
Jessica Huhnke
15832efa73
An 1249 lp actions (#25)
* LP actions model and tests

* Fix to one token LPs

* flattened out tokens, added decimal, updated docs and test

* pool id change - remove array

* aggregates currencies and groups by msg_index

* Revert "pool id change - remove array"

This reverts commit dc4185d51f.

* lucid chart change round 1

* transfers updates

* LP actions - flattened

* change vote weight to float
2022-05-31 14:51:37 -05:00
eric-laurello
02520e9a95
AN-1251 silver staking rewards (#26)
* silver staking

* test fix

* demical as int

* change the claim logic to use dense rank
2022-05-27 12:58:21 -04:00
Jessica Huhnke
69e195cf40
An 1250 osmo transfers (#21)
* transfers table & tests

* changes to indexing in sql models

* adds logic for incoming IBC transfers & fixes issue where some txs grabbed fees

* added logic to handle osmo txs w/ fees and removed delegations

* removed change that removed delegations

* update to logic for delegations
2022-05-24 19:11:06 -05:00
eric-laurello
e586b65a81
AN-1251_silver staking objects (#23)
* silver staking objects

* cleanup

* remove subqueries, casing , optimization

* Logic simplification

* updates for auto claim

* Simple staking actions, using the msg index logic

* update to ctime join

* final formatting
2022-05-24 13:39:01 -04:00
desmond-hui
04fe197b7a
look for gaps excluding current date (#24) 2022-05-23 08:40:04 -07:00
desmond-hui
0012b72b96
add msg group col and propagate downstream (#22) 2022-05-19 10:27:14 -07:00
Jessica Huhnke
eb72fd18db
An 1246 governance votes (#20)
* silver governance votes table

* testing file, descriptions, and changes to incorrect descriptions in another yml file

* changes to logic to handle old votes

* switch to correct vote options
2022-05-16 09:51:44 -05:00
Jessica Huhnke
ed955d6036
An 1248 governance proposal deposits (#19)
* governance proposal deposits and tests

* ingest less data to find depositor

* revert commit

* update incorrect table description
2022-05-13 15:15:12 -05:00
Jessica Huhnke
7e36e0ad37
table, tests, and descriptions (#16) 2022-05-13 11:57:26 -05:00
desmond-hui
802cd33ef5
all lp tokens have 18 decimals (#18) 2022-05-12 16:51:42 -07:00
Jessica Huhnke
04e6eab89a
An 1245 silver swaps osmo (#14)
* swaps model - successful swaps only

* join changes

* changed join to allow tokens that are not available in labels table

* added decimal column

* added in descriptions
2022-05-12 15:00:01 -05:00
desmond-hui
2322c48633
remove condition causing some pools to be missing in output: (#15) 2022-05-12 12:57:22 -07:00
Jessica Huhnke
1bcbd1ad58
Added descriptions to md files that had tbh and removed unused file (#13) 2022-05-11 10:12:50 -05:00
Jessica Huhnke
72747fdd6d
An 1113 core views (#12)
* core views v1 - transactions in the works

* transactions - have uncle block issue

* updated transactions model and ymls

* updates to docs to reflect new column names

* update to joins in tx (now correct number of txs) and test

* added clustering by block_timestamp::date

* changes
2022-05-10 14:53:35 -05:00
eric-laurello
1aa2d7269f
AN_1995 update UKs, remove test for TX counts (#11)
* update UKs, remove test for TX counts

* added filter for block ID <> height

* filter

* conversion
2022-05-05 17:04:00 -07:00