Skip to content

Commit

Permalink
Merge pull request #174 from Synthetixio/update-base-lt
Browse files Browse the repository at this point in the history
Add trump tokens
  • Loading branch information
Tburm authored Jan 21, 2025
2 parents 6385c67 + e5082ca commit 823e559
Show file tree
Hide file tree
Showing 7 changed files with 61 additions and 8 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,8 @@ logs
# local data
postgres-data
parquet-data
clickhouse_data
data

# streamlit
secrets.toml
secrets.toml
36 changes: 34 additions & 2 deletions indexers/base-mainnet-lt/abi/LeverageToken.json
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@
{
"indexed": true,
"internalType": "address",
"name": "account",
"name": "recipient",
"type": "address"
},
{
Expand Down Expand Up @@ -306,7 +306,7 @@
{
"indexed": true,
"internalType": "address",
"name": "account",
"name": "recipient",
"type": "address"
},
{
Expand Down Expand Up @@ -337,6 +337,38 @@
"name": "Redeemed",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "user",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "RedemptionFee",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "StreamingFee",
"type": "event"
},
{
"anonymous": false,
"inputs": [
Expand Down
10 changes: 10 additions & 0 deletions indexers/base-mainnet-lt/squidgen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -106,3 +106,13 @@ contracts:
abi: ./abi/LeverageToken.json
events: true
functions: false
- name: LtTRUMPLong3
address: "0x1479FaB76115a7EBEB340790cf38dbE40E9532Dc"
abi: ./abi/LeverageToken.json
events: true
functions: false
- name: LtTRUMPShort3
address: "0xc530280074107218e55B430F4a6828102d2A2C0c"
abi: ./abi/LeverageToken.json
events: true
functions: false
2 changes: 2 additions & 0 deletions transformers/synthetix/dbt_project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,8 @@ vars:
"bonk_short3",
"fartcoin_long3",
"fartcoin_short3",
"trump_long3",
"trump_short3",
]

tests:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ with redemptions as (
'week',
block_timestamp + INTERVAL '6 day'
) - INTERVAL '6 day' as epoch_start,
account,
"caller" as account, -- noqa
{{ convert_wei('leveraged_token_amount') }} * CAST(
REGEXP_REPLACE(
token,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ with trades as (
block_number,
block_timestamp as ts,
transaction_hash,
contract,
contract, -- noqa
event_name,
account,
recipient as account,
token,
cast(
regexp_replace(token, '.*_(long|short)', '') as int
Expand All @@ -39,9 +39,9 @@ with trades as (
block_number,
block_timestamp as ts,
transaction_hash,
contract,
contract, -- noqa
event_name,
account,
"caller" as account, -- noqa
token,
cast(
regexp_replace(token, '.*_(long|short)', '') as int
Expand Down
8 changes: 8 additions & 0 deletions transformers/synthetix/models/raw/sources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1545,6 +1545,14 @@ sources:
- name: lt_fartcoin_short3_event_rebalanced
- name: lt_fartcoin_short3_event_redeemed
- name: lt_fartcoin_short3_event_transfer
- name: lt_trump_long3_event_minted
- name: lt_trump_long3_event_rebalanced
- name: lt_trump_long3_event_redeemed
- name: lt_trump_long3_event_transfer
- name: lt_trump_short3_event_minted
- name: lt_trump_short3_event_rebalanced
- name: lt_trump_short3_event_redeemed
- name: lt_trump_short3_event_transfer

- name: raw_snax_testnet
tables:
Expand Down

0 comments on commit 823e559

Please sign in to comment.