-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fe64b36
commit 34ef206
Showing
40 changed files
with
781 additions
and
330 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{% macro convert_wei(column_name) %} | ||
cast({{ column_name }} as UInt256) / 1e18 | ||
{{ column_name }} / 1e18 | ||
{% endmacro %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 19 additions & 6 deletions
25
...mers/synthetix/models/raw/arbitrum/sepolia/core/core_account_created_arbitrum_sepolia.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,19 @@ | ||
{{ get_event_data( | ||
'arbitrum', | ||
'sepolia', | ||
'core_proxy', | ||
'account_created' | ||
) }} | ||
with core_account_created as ( | ||
{{ get_event_data( | ||
'arbitrum', | ||
'sepolia', | ||
'core_proxy', | ||
'account_created' | ||
) }} | ||
) | ||
|
||
select | ||
block_timestamp, | ||
block_number, | ||
transaction_hash, | ||
contract, | ||
event_name, | ||
id, | ||
cast(account_id as UInt128) as account_id, | ||
owner | ||
from core_account_created |
30 changes: 24 additions & 6 deletions
30
...s/synthetix/models/raw/arbitrum/sepolia/core/core_delegation_updated_arbitrum_sepolia.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,24 @@ | ||
{{ get_event_data( | ||
'arbitrum', | ||
'sepolia', | ||
'core_proxy', | ||
'delegation_updated' | ||
) }} | ||
with delegation_updated as ( | ||
{{ get_event_data( | ||
'arbitrum', | ||
'sepolia', | ||
'core_proxy', | ||
'delegation_updated' | ||
) }} | ||
) | ||
|
||
select | ||
block_timestamp, | ||
block_number, | ||
transaction_hash, | ||
contract, | ||
event_name, | ||
id, | ||
sender, | ||
cast(account_id as UInt128) as account_id, | ||
cast(pool_id as UInt128) as pool_id, | ||
collateral_type, | ||
cast(amount as UInt256) as amount, | ||
cast(leverage as UInt256) as leverage | ||
from | ||
delegation_updated |
27 changes: 21 additions & 6 deletions
27
transformers/synthetix/models/raw/arbitrum/sepolia/core/core_deposited_arbitrum_sepolia.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,21 @@ | ||
{{ get_event_data( | ||
'arbitrum', | ||
'sepolia', | ||
'core_proxy', | ||
'deposited' | ||
) }} | ||
with core_deposited as ( | ||
{{ get_event_data( | ||
'arbitrum', | ||
'sepolia', | ||
'core_proxy', | ||
'deposited' | ||
) }} | ||
) | ||
|
||
select | ||
block_timestamp, | ||
block_number, | ||
transaction_hash, | ||
contract, | ||
event_name, | ||
id, | ||
sender, | ||
cast(account_id as UInt128) as account_id, | ||
collateral_type, | ||
cast(token_amount as UInt256) as token_amount | ||
from core_deposited |
29 changes: 23 additions & 6 deletions
29
...sformers/synthetix/models/raw/arbitrum/sepolia/core/core_liquidation_arbitrum_sepolia.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,23 @@ | ||
{{ get_event_data( | ||
'arbitrum', | ||
'sepolia', | ||
'core_proxy', | ||
'liquidation' | ||
) }} | ||
with core_liquidation as ( | ||
{{ get_event_data( | ||
'arbitrum', | ||
'sepolia', | ||
'core_proxy', | ||
'liquidation' | ||
) }} | ||
) | ||
|
||
select | ||
block_timestamp, | ||
block_number, | ||
transaction_hash, | ||
contract, | ||
event_name, | ||
id, | ||
sender, | ||
liquidation_data, | ||
cast(account_id as UInt128) as account_id, | ||
cast(pool_id as UInt128) as pool_id, | ||
collateral_type, | ||
cast(liquidate_as_account_id as UInt128) as liquidate_as_account_id | ||
from core_liquidation |
26 changes: 20 additions & 6 deletions
26
...rs/synthetix/models/raw/arbitrum/sepolia/core/core_market_registered_arbitrum_sepolia.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,20 @@ | ||
{{ get_event_data( | ||
'arbitrum', | ||
'sepolia', | ||
'core_proxy', | ||
'market_registered' | ||
) }} | ||
with core_market_registered as ( | ||
{{ get_event_data( | ||
'arbitrum', | ||
'sepolia', | ||
'core_proxy', | ||
'market_registered' | ||
) }} | ||
) | ||
|
||
select | ||
id, | ||
block_timestamp, | ||
block_number, | ||
transaction_hash, | ||
contract, | ||
event_name, | ||
sender, | ||
market, | ||
cast(market_id as UInt128) as market_id | ||
from core_market_registered |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 20 additions & 6 deletions
26
...formers/synthetix/models/raw/arbitrum/sepolia/core/core_pool_created_arbitrum_sepolia.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,20 @@ | ||
{{ get_event_data( | ||
'arbitrum', | ||
'sepolia', | ||
'core_proxy', | ||
'pool_created' | ||
) }} | ||
with core_pool_created as ( | ||
{{ get_event_data( | ||
'arbitrum', | ||
'sepolia', | ||
'core_proxy', | ||
'pool_created' | ||
) }} | ||
) | ||
|
||
select | ||
id, | ||
block_timestamp, | ||
block_number, | ||
transaction_hash, | ||
contract, | ||
event_name, | ||
sender, | ||
owner, | ||
cast(pool_id as UInt128) as pool_id | ||
from core_pool_created |
28 changes: 22 additions & 6 deletions
28
...mers/synthetix/models/raw/arbitrum/sepolia/core/core_rewards_claimed_arbitrum_sepolia.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,22 @@ | ||
{{ get_event_data( | ||
'arbitrum', | ||
'sepolia', | ||
'core_proxy', | ||
'rewards_claimed' | ||
) }} | ||
with core_rewards_claimed as ( | ||
{{ get_event_data( | ||
'arbitrum', | ||
'sepolia', | ||
'core_proxy', | ||
'rewards_claimed' | ||
) }} | ||
) | ||
|
||
select | ||
id, | ||
block_timestamp, | ||
block_number, | ||
transaction_hash, | ||
contract, | ||
event_name, | ||
cast(account_id as UInt128) as account_id, | ||
cast(pool_id as UInt128) as pool_id, | ||
collateral_type, | ||
distributor, | ||
cast(amount as UInt256) as amount | ||
from core_rewards_claimed |
29 changes: 23 additions & 6 deletions
29
.../synthetix/models/raw/arbitrum/sepolia/core/core_rewards_distributed_arbitrum_sepolia.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,23 @@ | ||
{{ get_event_data( | ||
'arbitrum', | ||
'sepolia', | ||
'core_proxy', | ||
'rewards_distributed' | ||
) }} | ||
with core_rewards_distributed as ( | ||
{{ get_event_data( | ||
'arbitrum', | ||
'sepolia', | ||
'core_proxy', | ||
'rewards_distributed' | ||
) }} | ||
) | ||
|
||
select | ||
id, | ||
block_timestamp, | ||
block_number, | ||
transaction_hash, | ||
contract, | ||
event_name, | ||
cast(pool_id as UInt128) as pool_id, | ||
collateral_type, | ||
distributor, | ||
cast(amount as UInt256) as amount, | ||
cast(start as UInt256) as start, | ||
cast(duration as UInt256) as duration | ||
from core_rewards_distributed |
28 changes: 22 additions & 6 deletions
28
transformers/synthetix/models/raw/arbitrum/sepolia/core/core_usd_burned_arbitrum_sepolia.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,22 @@ | ||
{{ get_event_data( | ||
'arbitrum', | ||
'sepolia', | ||
'core_proxy', | ||
'usd_burned' | ||
) }} | ||
with core_usd_burned as ( | ||
{{ get_event_data( | ||
'arbitrum', | ||
'sepolia', | ||
'core_proxy', | ||
'usd_burned' | ||
) }} | ||
) | ||
|
||
select | ||
id, | ||
block_timestamp, | ||
block_number, | ||
transaction_hash, | ||
contract, | ||
event_name, | ||
sender, | ||
cast(account_id as UInt128) as account_id, | ||
cast(pool_id as UInt128) as pool_id, | ||
collateral_type, | ||
cast(amount as UInt256) as amount | ||
from core_usd_burned |
Oops, something went wrong.