Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests and documentation #69

Merged
merged 4 commits into from
Jul 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions transformers/synthetix/models/marts/buyback/schema.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
models:
- name: fct_buyback_daily
columns:
- name: ts
data_type: timestamp with time zone
- name: snx_amount
data_type: numeric
- name: usd_amount
data_type: numeric
- name: cumulative_snx_amount
data_type: numeric
- name: cumulative_usd_amount
data_type: numeric
- name: fct_buyback_hourly
columns:
- name: ts
data_type: timestamp with time zone
- name: snx_amount
data_type: numeric
- name: usd_amount
data_type: numeric
- name: cumulative_snx_amount
data_type: numeric
- name: cumulative_usd_amount
data_type: numeric
- name: fct_buyback
columns:
- name: id
data_type: character varying
- name: ts
data_type: timestamp with time zone
- name: buyer
data_type: text
- name: snx
data_type: numeric
- name: usd
data_type: numeric
- name: snx_price
data_type: numeric
234 changes: 234 additions & 0 deletions transformers/synthetix/models/marts/core/schema.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,234 @@
version: 2
models:
- name: fct_pool_rewards
columns:
- name: ts
data_type: timestamp with time zone
- name: pool_id
data_type: integer
- name: collateral_type
data_type: text
- name: distributor
data_type: text
- name: token_symbol
data_type: text
- name: amount
data_type: numeric
- name: ts_start
data_type: timestamp with time zone
- name: duration
data_type: numeric
- name: fct_core_account_delegation
columns:
- name: ts
data_type: timestamp with time zone
- name: account_id
data_type: text
- name: pool_id
data_type: numeric
- name: collateral_type
data_type: text
- name: amount_delegated
data_type: numeric
- name: fct_core_apr
columns:
- name: ts
data_type: timestamp with time zone
- name: pool_id
data_type: integer
- name: collateral_type
data_type: character varying
- name: collateral_value
data_type: numeric
- name: debt
data_type: numeric
- name: hourly_issuance
data_type: numeric
- name: hourly_pnl
data_type: numeric
- name: cumulative_pnl
data_type: numeric
- name: cumulative_issuance
data_type: numeric
- name: rewards_usd
data_type: numeric
- name: hourly_pnl_pct
data_type: numeric
- name: hourly_rewards_pct
data_type: numeric
- name: apr_24h
data_type: numeric
- name: apy_24h
data_type: numeric
- name: apr_7d
data_type: numeric
- name: apy_7d
data_type: numeric
- name: apr_28d
data_type: numeric
- name: apy_28d
data_type: numeric
- name: apr_24h_pnl
data_type: numeric
- name: apy_24h_pnl
data_type: numeric
- name: apr_7d_pnl
data_type: numeric
- name: apy_7d_pnl
data_type: numeric
- name: apr_28d_pnl
data_type: numeric
- name: apy_28d_pnl
data_type: numeric
- name: apr_24h_rewards
data_type: numeric
- name: apy_24h_rewards
data_type: numeric
- name: apr_7d_rewards
data_type: numeric
- name: apy_7d_rewards
data_type: numeric
- name: apr_28d_rewards
data_type: numeric
- name: apy_28d_rewards
data_type: numeric
- name: fct_core_market_updated
columns:
- name: id
data_type: character varying
- name: ts
data_type: timestamp with time zone
- name: transaction_hash
data_type: text
- name: event_name
data_type: text
- name: market_id
data_type: numeric
- name: collateral_type
data_type: text
- name: credit_capacity
data_type: numeric
- name: net_issuance
data_type: numeric
- name: token_amount
data_type: numeric
- name: fct_core_pool_collateral
columns:
- name: ts
data_type: timestamp with time zone
- name: collateral_type
data_type: text
- name: amount_deposited
data_type: numeric
- name: fct_core_pool_delegation
columns:
- name: ts
data_type: timestamp with time zone
- name: pool_id
data_type: numeric
- name: collateral_type
data_type: text
- name: amount_delegated
data_type: numeric
- name: fct_core_pools
columns:
- name: id
data_type: numeric
- name: created_ts
data_type: timestamp with time zone
- name: block_number
data_type: integer
- name: owner
data_type: text
- name: fct_pool_debt
columns:
- name: ts
data_type: timestamp with time zone
- name: block_number
data_type: bigint
- name: pool_id
data_type: integer
- name: collateral_type
data_type: character varying
- name: debt
data_type: numeric
- name: fct_pool_issuance_hourly
columns:
- name: ts
data_type: timestamp with time zone
- name: pool_id
data_type: numeric
- name: collateral_type
data_type: text
- name: hourly_issuance
data_type: numeric
- name: fct_pool_issuance
columns:
- name: ts
data_type: timestamp with time zone
- name: block_number
data_type: integer
- name: transaction_hash
data_type: text
- name: pool_id
data_type: numeric
- name: collateral_type
data_type: text
- name: account_id
data_type: numeric
- name: amount
data_type: numeric
- name: fct_pool_pnl_hourly
columns:
- name: ts
data_type: timestamp with time zone
- name: pool_id
data_type: integer
- name: collateral_type
data_type: character varying
- name: collateral_value
data_type: numeric
- name: debt
data_type: numeric
- name: hourly_issuance
data_type: numeric
- name: hourly_pnl
data_type: numeric
- name: rewards_usd
data_type: numeric
- name: hourly_pnl_pct
data_type: numeric
- name: hourly_rewards_pct
data_type: numeric
- name: hourly_total_pct
data_type: numeric
- name: fct_pool_rewards_hourly
columns:
- name: ts
data_type: timestamp with time zone
- name: pool_id
data_type: integer
- name: collateral_type
data_type: character varying
- name: rewards_usd
data_type: numeric
- name: fct_pool_rewards_token_hourly
columns:
- name: ts
data_type: timestamp with time zone
- name: pool_id
data_type: integer
- name: collateral_type
data_type: character varying
- name: distributor
data_type: text
- name: token_symbol
data_type: text
- name: price
data_type: numeric
- name: hourly_amount
data_type: numeric
- name: amount_distributed
data_type: numeric
- name: rewards_usd
data_type: numeric
Loading