Commit Graph

51 Commits

Author SHA1 Message Date
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
eric-laurello
d82b1b6082
AN-1195 changes from table review feedback (#10)
* updates

* name correction and uk update
2022-05-05 11:28:59 -04:00
desmond-hui
2ce56b09bd
An 1196/auto create ext tbls on dev refresh (#9)
* set dev db ownership for func and proc objects

* remove tasks, make callable from dbt cloud
2022-05-04 15:08:38 -07:00
desmond-hui
85368245d2
An 1132/asset metadata refresh process (#8)
* wip

* create udfs and sp to support api call

* these were accidentally removed

* add view/udf/sp needed for api integration

* dedupe asset metadata before putting into silver

* add ignore list to view

* add model descriptions

* fix where logic
2022-05-04 08:08:15 -07:00
Jessica Huhnke
89817b0c71
An 1079 osmosis labels (#7)
* silver labels models - first pass

* added descriptions

* removed description column in table and re-referenced descriptions in .ymls

* changed config to table set up

* remove comment

Co-authored-by: Desmond Hui <desmond@flipsidecrypto.com>
2022-04-28 13:32:39 -05:00
eric-laurello
9272b2dca2
AN-1074 (1075 & 1076) Initial push of silver txn tables (#6)
* initial commit

* PR updates

* remove pivot from msg attribs
2022-04-28 11:06:52 -04:00
Jessica Huhnke
0c5cb5baa1
An 1073 silverblocks (#4)
* comments

* table description in yml
2022-04-26 07:56:58 -05:00
desmond-hui
fb083ed3a8
add raw labels as external tables (#5) 2022-04-25 14:33:00 -07:00
Jessica Huhnke
099fc468f4
Merge pull request #3 from FlipsideCrypto/bronzetx
changes naming convention in bronze transactions
2022-04-25 09:05:44 -05:00
jhuhnke
f6afc927df changes naming convention in bronze transactions 2022-04-22 07:27:50 -05:00
xiuy001
9047f383a6
Merge pull request #2 from FlipsideCrypto/add_transactions_bronze
add bronze transactions table and adjusted the indentation to 2
2022-04-18 10:47:24 -04:00
yulike
cba818aab3 add bronze transactions table and adjusted the indentation to 2 2022-04-18 10:14:59 -04:00
xiuy001
27259dc0e5
Merge pull request #1 from FlipsideCrypto/initial-setup
Initial setup
2022-04-15 14:08:54 -04:00
Desmond Hui
4f57683b61 fix name 2022-04-14 08:36:55 -07:00
Desmond Hui
fdd80a2850 initial setup files 2022-04-13 11:37:02 -07:00