Skip to content

Commit

Permalink
Fix template sqlfluff ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
marcus-snx committed Dec 13, 2024
1 parent 4051249 commit 9f8b1da
Show file tree
Hide file tree
Showing 65 changed files with 80 additions and 524 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
with core_account_created as (
{{ get_event_data( -- noqa
'arbitrum',
'mainnet',
'synthetix',
'core_proxy',
'account_created'
) }}
{{ get_event_data('arbitrum', 'mainnet', 'synthetix', 'core_proxy', 'account_created') }} --noqa
)

select
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
with delegation_updated as (
{{ get_event_data( -- noqa
'arbitrum',
'mainnet',
'synthetix',
'core_proxy',
'delegation_updated'
) }}
{{ get_event_data('arbitrum', 'mainnet', 'synthetix', 'core_proxy', 'delegation_updated') }} -- noqa
)

select
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
with core_deposited as (
{{ get_event_data( -- noqa
'arbitrum',
'mainnet',
'synthetix',
'core_proxy',
'deposited'
) }}
{{ get_event_data('arbitrum', 'mainnet', 'synthetix', 'core_proxy', 'deposited') }} -- noqa
)

select
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
with core_liquidation as (
{{ get_event_data( -- noqa
'arbitrum',
'mainnet',
'synthetix',
'core_proxy',
'liquidation'
) }}
{{ get_event_data('arbitrum', 'mainnet', 'synthetix', 'core_proxy', 'liquidation') }} -- noqa
)

select
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
with core_market_registered as (
{{ get_event_data( -- noqa
'arbitrum',
'mainnet',
'synthetix',
'core_proxy',
'market_registered'
) }}
{{ get_event_data('arbitrum', 'mainnet', 'synthetix', 'core_proxy', 'market_registered') }} -- noqa
)

select
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,7 @@ with events as (
cast(token_amount as UInt256) as token_amount
from
(
{{ get_event_data(
'arbitrum',
'mainnet',
'synthetix',
'core_proxy',
'market_collateral_deposited'
) }}
{{ get_event_data('arbitrum', 'mainnet', 'synthetix', 'core_proxy', 'market_collateral_deposited') }} -- noqa
) as collateral_deposited -- noqa: AL05
union all
select
Expand All @@ -44,13 +38,7 @@ with events as (
cast(token_amount as UInt256) as token_amount
from
(
{{ get_event_data(
'arbitrum',
'mainnet',
'synthetix',
'core_proxy',
'market_collateral_withdrawn'
) }}
{{ get_event_data('arbitrum', 'mainnet', 'synthetix', 'core_proxy', 'market_collateral_withdrawn') }} -- noqa
) as collateral_withdrawn -- noqa: AL05
union all
select
Expand All @@ -71,13 +59,7 @@ with events as (
cast(amount as UInt256) as token_amount
from
(
{{ get_event_data(
'arbitrum',
'mainnet',
'synthetix',
'core_proxy',
'market_usd_deposited'
) }}
{{ get_event_data('arbitrum', 'mainnet', 'synthetix', 'core_proxy', 'market_usd_deposited') }} -- noqa
) as usd_deposited -- noqa: AL05
union all
select
Expand All @@ -98,13 +80,7 @@ with events as (
cast(amount as UInt256) as token_amount
from
(
{{ get_event_data(
'arbitrum',
'mainnet',
'synthetix',
'core_proxy',
'market_usd_withdrawn'
) }}
{{ get_event_data('arbitrum', 'mainnet', 'synthetix', 'core_proxy', 'market_usd_withdrawn') }} -- noqa
) as usd_withdrawn -- noqa: AL05
)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
with core_pool_created as (
{{ get_event_data( -- noqa
'arbitrum',
'mainnet',
'synthetix',
'core_proxy',
'pool_created'
) }}
{{ get_event_data('arbitrum', 'mainnet', 'synthetix', 'core_proxy', 'pool_created') }} -- noqa
)

select
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
with core_rewards_claimed as (
{{ get_event_data( -- noqa
'arbitrum',
'mainnet',
'synthetix',
'core_proxy',
'rewards_claimed'
) }}
{{ get_event_data('arbitrum', 'mainnet', 'synthetix', 'core_proxy', 'rewards_claimed') }} -- noqa
)

select
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
with core_rewards_distributed as (
{{ get_event_data( -- noqa
'arbitrum',
'mainnet',
'synthetix',
'core_proxy',
'rewards_distributed'
) }}
{{ get_event_data('arbitrum', 'mainnet', 'synthetix', 'core_proxy', 'rewards_distributed') }} -- noqa
)

select
Expand All @@ -19,6 +13,6 @@ select
collateral_type,
distributor,
cast(amount as UInt256) as amount,
cast(start as UInt256) as start,
cast(start as UInt256) as start, -- noqa
cast(duration as UInt256) as duration
from core_rewards_distributed
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
with core_usd_burned as (
{{ get_event_data( -- noqa
'arbitrum',
'mainnet',
'synthetix',
'core_proxy',
'usd_burned'
) }}
{{ get_event_data('arbitrum', 'mainnet', 'synthetix', 'core_proxy', 'usd_burned') }} -- noqa
)

select
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
with core_usd_minted as (
{{ get_event_data( -- noqa
'arbitrum',
'mainnet',
'synthetix',
'core_proxy',
'usd_minted'
) }}
{{ get_event_data('arbitrum', 'mainnet', 'synthetix', 'core_proxy', 'usd_minted') }} -- noqa
)

select
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
with core_vault_liquidation as (
{{ get_event_data( -- noqa
'arbitrum',
'mainnet',
'synthetix',
'core_proxy',
'vault_liquidation'
) }}
{{ get_event_data('arbitrum', 'mainnet', 'synthetix', 'core_proxy', 'vault_liquidation') }} -- noqa
)

select
Expand All @@ -18,6 +12,6 @@ select
sender,
liquidation_data,
cast(pool_id as UInt128) as pool_id,
cast(collateral_type as text) as collateral_type,
cast(collateral_type as String) as collateral_type,
cast(liquidate_as_account_id as UInt128) as liquidate_as_account_id
from core_vault_liquidation
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
with core_withdrawn as (
{{ get_event_data( -- noqa
'arbitrum',
'mainnet',
'synthetix',
'core_proxy',
'withdrawn'
) }}
{{ get_event_data('arbitrum', 'mainnet', 'synthetix', 'core_proxy', 'withdrawn') }} -- noqa
)

select
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
with perps_account_created as (
{{ get_event_data( -- noqa
'arbitrum',
'mainnet',
'synthetix',
'perps_market_proxy',
'account_created'
) }}
{{ get_event_data('arbitrum', 'mainnet', 'synthetix', 'perps_market_proxy', 'account_created') }} -- noqa
)

select
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
with perps_account_liquidation_attempt as (
{{ get_event_data( -- noqa
'arbitrum',
'mainnet',
'synthetix',
'perps_market_proxy',
'account_liquidation_attempt'
) }}
{{ get_event_data('arbitrum', 'mainnet', 'synthetix', 'perps_market_proxy', 'account_liquidation_attempt') }} -- noqa
)

select
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
with perps_collateral_modified as (
{{ get_event_data( -- noqa
'arbitrum',
'mainnet',
'synthetix',
'perps_market_proxy',
'collateral_modified'
) }}
{{ get_event_data('arbitrum', 'mainnet', 'synthetix', 'perps_market_proxy', 'collateral_modified') }} -- noqa
)

select
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
with perps_interest_charged as (
{{ get_event_data( -- noqa
'arbitrum',
'mainnet',
'synthetix',
'perps_market_proxy',
'interest_charged'
) }}
{{ get_event_data('arbitrum', 'mainnet', 'synthetix', 'perps_market_proxy', 'interest_charged') }} -- noqa
)

select
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
with perps_interest_rate_updated as (
{{ get_event_data( -- noqa
'arbitrum',
'mainnet',
'synthetix',
'perps_market_proxy',
'interest_rate_updated'
) }}
{{ get_event_data('arbitrum', 'mainnet', 'synthetix', 'perps_market_proxy', 'interest_rate_updated') }} -- noqa
)

select
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
with perps_market_created as (
{{ get_event_data( -- noqa
'arbitrum',
'mainnet',
'synthetix',
'perps_market_proxy',
'market_created'
) }}
{{ get_event_data('arbitrum', 'mainnet', 'synthetix', 'perps_market_proxy', 'market_created') }} -- noqa
)

select
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
with perps_market_updated as (
{{ get_event_data( -- noqa
'arbitrum',
'mainnet',
'synthetix',
'perps_market_proxy',
'market_updated'
) }}
{{ get_event_data('arbitrum', 'mainnet', 'synthetix', 'perps_market_proxy', 'market_updated') }} -- noqa
)

select
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
with perps_order_committed as (
{{ get_event_data( -- noqa
'arbitrum',
'mainnet',
'synthetix',
'perps_market_proxy',
'order_committed'
) }}
{{ get_event_data('arbitrum', 'mainnet', 'synthetix', 'perps_market_proxy', 'order_committed') }} -- noqa
)

select
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
with perps_order_settled as (
{{ get_event_data( -- noqa
'arbitrum',
'mainnet',
'synthetix',
'perps_market_proxy',
'order_settled'
) }}
{{ get_event_data('arbitrum', 'mainnet', 'synthetix', 'perps_market_proxy', 'order_settled') }} -- noqa
)

select
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
with perps_position_liquidated as (
{{ get_event_data( -- noqa
'arbitrum',
'mainnet',
'synthetix',
'perps_market_proxy',
'position_liquidated'
) }}
{{ get_event_data('arbitrum', 'mainnet', 'synthetix', 'perps_market_proxy', 'position_liquidated') }} -- noqa
)

select
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
with perps_previous_order_expired as (
{{ get_event_data( -- noqa
'arbitrum',
'mainnet',
'synthetix',
'perps_market_proxy',
'previous_order_expired'
) }}
{{ get_event_data('arbitrum', 'mainnet', 'synthetix', 'perps_market_proxy', 'previous_order_expired') }} -- noqa
)

select
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
with spot_order_cancelled as (
{{ get_event_data( -- noqa
'arbitrum',
'mainnet',
'synthetix',
'spot_market_proxy',
'order_cancelled'
) }}
{{ get_event_data('arbitrum', 'mainnet', 'synthetix', 'spot_market_proxy', 'order_cancelled') }} -- noqa
)

select
Expand Down
Loading

0 comments on commit 9f8b1da

Please sign in to comment.