From 4b334b5e1f6c223a1f8fa001d2d097529eab6705 Mon Sep 17 00:00:00 2001 From: viniabussafi Date: Sun, 15 Dec 2024 16:50:54 +0000 Subject: [PATCH 1/7] create labels and sources --- .../labels_beethoven_x_pools_sonic.sql | 222 ++++++++++++++++++ .../beethoven_x/labels_beethoven_x_schema.yml | 52 ++++ .../sonic/beethoven_x_sonic_sources.yml | 32 +++ 3 files changed, 306 insertions(+) create mode 100644 dbt_subprojects/daily_spellbook/models/_sector/labels/addresses/__single_category_labels__/beethoven_x/labels_beethoven_x_pools_sonic.sql create mode 100644 sources/beethoven_x/sonic/beethoven_x_sonic_sources.yml diff --git a/dbt_subprojects/daily_spellbook/models/_sector/labels/addresses/__single_category_labels__/beethoven_x/labels_beethoven_x_pools_sonic.sql b/dbt_subprojects/daily_spellbook/models/_sector/labels/addresses/__single_category_labels__/beethoven_x/labels_beethoven_x_pools_sonic.sql new file mode 100644 index 00000000000..c6ec6915a8c --- /dev/null +++ b/dbt_subprojects/daily_spellbook/models/_sector/labels/addresses/__single_category_labels__/beethoven_x/labels_beethoven_x_pools_sonic.sql @@ -0,0 +1,222 @@ +{{config( + alias = 'beethoven_x_pools_fantom', + post_hook = '{{ expose_spells(\'["fantom"]\', + "sector", + "labels", + \'["viniabussafi"]\') }}' +)}} + +WITH v2_pools AS( + WITH pools AS ( + SELECT + pool_id, + zip.tokens AS token_address, + zip.weights / pow(10, 18) AS normalized_weight, + symbol, + pool_type, + pool_name + FROM ( + SELECT + c.poolId AS pool_id, + t.tokens, + w.weights, + cc.symbol, + 'weighted' AS pool_type, + cc.name AS pool_name + FROM {{ source('beethoven_x_v2_sonic', 'Vault_evt_PoolRegistered') }} c + INNER JOIN {{ source('beethoven_x_v2_sonic', 'WeightedPoolFactory_call_create') }} cc + ON c.evt_tx_hash = cc.call_tx_hash + AND bytearray_substring(c.poolId, 1, 20) = cc.output_0 + CROSS JOIN UNNEST(cc.tokens) WITH ORDINALITY t(tokens, pos) + CROSS JOIN UNNEST(cc.normalizedWeights) WITH ORDINALITY w(weights, pos) + WHERE t.pos = w.pos + ) zip + + + UNION ALL + + SELECT + c.poolId AS pool_id, + t.tokens AS token_address, + 0 AS normalized_weight, + cc.symbol, + 'stable' AS pool_type, + cc.name AS pool_name + FROM {{ source('beethoven_x_v2_sonic', 'Vault_evt_PoolRegistered') }} c + INNER JOIN {{ source('beethoven_x_v2_sonic', 'ComposableStablePoolFactory_call_create') }} cc + ON c.evt_tx_hash = cc.call_tx_hash + AND bytearray_substring(c.poolId, 1, 20) = cc.output_0 + CROSS JOIN UNNEST(cc.tokens) AS t(tokens) +), + +settings AS ( + SELECT + pool_id, + coalesce(t.symbol, '?') AS token_symbol, + normalized_weight, + p.symbol AS pool_symbol, + p.pool_type, + p.pool_name + FROM pools p + LEFT JOIN {{ source('tokens', 'erc20') }} t ON p.token_address = t.contract_address + AND t.blockchain = 'sonic' +) + +SELECT + 'fantom' AS blockchain, + bytearray_substring(pool_id, 1, 20) AS address, + CASE WHEN pool_type IN ('stable') + THEN lower(pool_symbol) + ELSE lower(concat(array_join(array_agg(token_symbol ORDER BY token_symbol), '/'), ' ', + array_join(array_agg(cast(norm_weight AS varchar) ORDER BY token_symbol), '/'))) + END AS name, + pool_name AS poolname, + pool_type, + '2' AS version, + 'beethoven_x_v2_pool' AS category, + 'beethoven_x' AS contributor, + 'query' AS source, + TIMESTAMP'2024-12-15 00:00' AS created_at, + now() AS updated_at, + 'beethoven_x_pools_fantom' AS model_name, + 'identifier' AS label_type +FROM ( + SELECT + s1.pool_id, + token_symbol, + pool_symbol, + cast(100 * normalized_weight AS integer) AS norm_weight, + pool_type, + pool_name + FROM settings s1 + GROUP BY s1.pool_id, token_symbol, pool_symbol, normalized_weight, pool_type, pool_name +) s +GROUP BY pool_id, pool_symbol, pool_type, pool_name +ORDER BY 1) + +v3_pools AS( + WITH token_data AS ( + SELECT + pool, + ARRAY_AGG(FROM_HEX(json_extract_scalar(token, '$.token')) ORDER BY token_index) AS tokens + FROM ( + SELECT + pool, + tokenConfig, + SEQUENCE(1, CARDINALITY(tokenConfig)) AS token_index_array + FROM {{ source('beethoven_x_v3_sonic', 'Vault_evt_PoolRegistered') }} + ) AS pool_data + CROSS JOIN UNNEST(tokenConfig, token_index_array) AS t(token, token_index) + GROUP BY 1 + ), + + pools AS ( + SELECT + pool_id, + zip.tokens AS token_address, + zip.weights / POWER(10, 18) AS normalized_weight, + symbol, + pool_type + FROM ( + SELECT + c.pool AS pool_id, + t.tokens, + w.weights, + cc.symbol, + 'weighted' AS pool_type + FROM token_data c + INNER JOIN {{ source('beethoven_x_v3_sonic', 'WeightedPoolFactory_call_create') }} cc + ON c.pool = cc.output_pool + CROSS JOIN UNNEST(c.tokens) WITH ORDINALITY t(tokens, pos) + CROSS JOIN UNNEST(cc.normalizedWeights) WITH ORDINALITY w(weights, pos) + WHERE t.pos = w.pos + + UNION ALL + + SELECT + c.pool AS pool_id, + t.tokens, + 0 AS weights, + cc.symbol, + 'stable' AS pool_type + FROM token_data c + INNER JOIN {{ source('beethoven_x_v3_sonic', 'StablePoolFactory_call_create') }} cc + ON c.pool = cc.output_pool + CROSS JOIN UNNEST(c.tokens) AS t(tokens) + ) zip + ), + + settings AS ( + SELECT + pool_id, + coalesce(t.symbol, '?') AS token_symbol, + normalized_weight, + p.symbol AS pool_symbol, + p.pool_type + FROM pools p + LEFT JOIN {{ source('tokens', 'erc20') }} t ON p.token_address = t.contract_address + AND t.blockchain = 'sonic' + ) + +SELECT + 'sonic' AS blockchain, + bytearray_substring(pool_id, 1, 20) AS address, + CASE WHEN pool_type IN ('stable') + THEN lower(pool_symbol) + ELSE lower(concat(array_join(array_agg(token_symbol ORDER BY token_symbol), '/'), ' ', + array_join(array_agg(cast(norm_weight AS varchar) ORDER BY token_symbol), '/'))) + END AS name, + pool_type, + '3' AS version, + 'beethoven_x_v3_pool' AS category, + 'beethoven_x' AS contributor, + 'query' AS source, + TIMESTAMP'2024-12-15 00:00' AS created_at, + now() AS updated_at, + 'balancer_v3_pools_sonic' AS model_name, + 'identifier' AS label_type +FROM ( + SELECT + s1.pool_id, + token_symbol, + pool_symbol, + cast(100 * normalized_weight AS integer) AS norm_weight, + pool_type + FROM settings s1 + GROUP BY s1.pool_id, token_symbol, pool_symbol, normalized_weight, pool_type +) s +GROUP BY pool_id, pool_symbol, pool_type +ORDER BY 1 +) + +SELECT + blockchain, + address, + name, + pool_type, + version, + category, + contributor, + source, + created_at, + updated_at, + model_name, + label_type +FROM v2_pools + +UNION + +SELECT + blockchain, + address, + name, + pool_type, + version, + category, + contributor, + source, + created_at, + updated_at, + model_name, + label_type +FROM v3_pools \ No newline at end of file diff --git a/dbt_subprojects/daily_spellbook/models/_sector/labels/addresses/__single_category_labels__/beethoven_x/labels_beethoven_x_schema.yml b/dbt_subprojects/daily_spellbook/models/_sector/labels/addresses/__single_category_labels__/beethoven_x/labels_beethoven_x_schema.yml index 9595d0e8a48..003703f58a0 100644 --- a/dbt_subprojects/daily_spellbook/models/_sector/labels/addresses/__single_category_labels__/beethoven_x/labels_beethoven_x_schema.yml +++ b/dbt_subprojects/daily_spellbook/models/_sector/labels/addresses/__single_category_labels__/beethoven_x/labels_beethoven_x_schema.yml @@ -10,6 +10,58 @@ models: config: tags: ['labels', 'fantom', 'balancer', 'pools'] description: 'Balancer V2 liquidity pools created on Fantom.' + data_tests: + - dbt_utils.unique_combination_of_columns: + combination_of_columns: + - address + - name + - category + - model_name + - blockchain + columns: + - &blockchain + name: blockchain + description: 'Blockchain' + - &address + name: address + description: 'Address of liquidity pool' + - &name + name: name + description: 'Label name of pool containg the token symbols and their respective weights (if applicable)' + - &poolname + name: poolname + description: 'Label name of pool set at contract creation' + - &category + name: category + description: 'Label category' + - &contributor + name: contributor + description: 'Wizard(s) contributing to labels' + - &source + name: source + description: 'How were labels generated (could be static or query)' + - &created_at + name: created_at + description: 'When were labels created' + - &updated_at + name: updated_at + description: "When were labels updated for the last time" + - &model_name + name: model_name + description: "Name of the label model sourced from" + - &label_type + name: label_type + description: "Type of label (see labels overall readme)" + + - name: labels_beethoven_x_pools_sonic + meta: + blockchain: sonic + sector: labels + project: beethoven_x + contributors: viniabussafi + config: + tags: ['labels', 'sonic', 'beethoven_x', 'pools'] + description: 'Beethoven X liquidity pools created on sonic.' data_tests: - dbt_utils.unique_combination_of_columns: combination_of_columns: diff --git a/sources/beethoven_x/sonic/beethoven_x_sonic_sources.yml b/sources/beethoven_x/sonic/beethoven_x_sonic_sources.yml new file mode 100644 index 00000000000..bd752ace536 --- /dev/null +++ b/sources/beethoven_x/sonic/beethoven_x_sonic_sources.yml @@ -0,0 +1,32 @@ +version: 2 + +sources: + - name: beethoven_x_v2_sonic + description: "sonic decoded tables related to beethoven x's contracts" + tables: + - name: Vault_evt_Swap + - name: Vault_evt_PoolRegistered + - name: WeightedPoolFactory_call_create + - name: Vault_evt_PoolBalanceChanged + - name: Vault_evt_PoolBalanceManaged + - name: ComposableStablePoolFactory_call_create + + - name: beethoven_x_v3_sonic + description: > + Decoded tables related to Beethoven X, an automated portfolio manager and trading platform, on Sonic. + tables: + - name: Vault_evt_PoolRegistered + - name: WeightedPoolFactory_evt_PoolCreated + - name: WeightedPoolFactory_call_create + - name: Vault_evt_LiquidityAdded + - name: Vault_evt_LiquidityRemoved + - name: StablePoolFactory_evt_PoolCreated + - name: StablePoolFactory_call_create + - name: Vault_evt_Swap + - name: ProtocolFeeController_evt_ProtocolSwapFeeCollected + - name: ProtocolFeeController_evt_ProtocolYieldFeeCollected + - name: Vault_evt_Wrap + - name: Vault_evt_Unwrap + - name: Vault_evt_LiquidityAddedToBuffer + - name: Vault_evt_LiquidityRemovedFromBuffer + - name: Vault_evt_SwapFeePercentageChanged \ No newline at end of file From f5bbb12fb1f9183c09b3c2d43db22ae5e4a6e670 Mon Sep 17 00:00:00 2001 From: viniabussafi <131974393+viniabussafi@users.noreply.github.com> Date: Sat, 21 Dec 2024 13:12:50 +0000 Subject: [PATCH 2/7] Update labels_beethoven_x_schema.yml --- .../beethoven_x/labels_beethoven_x_schema.yml | 44 +++++-------------- 1 file changed, 11 insertions(+), 33 deletions(-) diff --git a/dbt_subprojects/daily_spellbook/models/_sector/labels/addresses/__single_category_labels__/beethoven_x/labels_beethoven_x_schema.yml b/dbt_subprojects/daily_spellbook/models/_sector/labels/addresses/__single_category_labels__/beethoven_x/labels_beethoven_x_schema.yml index 003703f58a0..20e8a333cca 100644 --- a/dbt_subprojects/daily_spellbook/models/_sector/labels/addresses/__single_category_labels__/beethoven_x/labels_beethoven_x_schema.yml +++ b/dbt_subprojects/daily_spellbook/models/_sector/labels/addresses/__single_category_labels__/beethoven_x/labels_beethoven_x_schema.yml @@ -71,36 +71,14 @@ models: - model_name - blockchain columns: - - &blockchain - name: blockchain - description: 'Blockchain' - - &address - name: address - description: 'Address of liquidity pool' - - &name - name: name - description: 'Label name of pool containg the token symbols and their respective weights (if applicable)' - - &poolname - name: poolname - description: 'Label name of pool set at contract creation' - - &category - name: category - description: 'Label category' - - &contributor - name: contributor - description: 'Wizard(s) contributing to labels' - - &source - name: source - description: 'How were labels generated (could be static or query)' - - &created_at - name: created_at - description: 'When were labels created' - - &updated_at - name: updated_at - description: "When were labels updated for the last time" - - &model_name - name: model_name - description: "Name of the label model sourced from" - - &label_type - name: label_type - description: "Type of label (see labels overall readme)" \ No newline at end of file + - *blockchain + - *address + - *name + - *poolname + - *category + - *contributor + - *source + - *created_at + - *updated_at + - *model_name + - *label_type From 4530a5d64b35b8281afd5e9c97ac7576d5553586 Mon Sep 17 00:00:00 2001 From: viniabussafi Date: Tue, 17 Dec 2024 21:29:40 +0000 Subject: [PATCH 3/7] update sources --- sources/beethoven_x/sonic/beethoven_x_sonic_sources.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sources/beethoven_x/sonic/beethoven_x_sonic_sources.yml b/sources/beethoven_x/sonic/beethoven_x_sonic_sources.yml index bd752ace536..0e6aa5daddc 100644 --- a/sources/beethoven_x/sonic/beethoven_x_sonic_sources.yml +++ b/sources/beethoven_x/sonic/beethoven_x_sonic_sources.yml @@ -2,7 +2,8 @@ version: 2 sources: - name: beethoven_x_v2_sonic - description: "sonic decoded tables related to beethoven x's contracts" + description: > + Decoded tables related to Beethoven X, an automated portfolio manager and trading platform, on Sonic. tables: - name: Vault_evt_Swap - name: Vault_evt_PoolRegistered @@ -10,6 +11,8 @@ sources: - name: Vault_evt_PoolBalanceChanged - name: Vault_evt_PoolBalanceManaged - name: ComposableStablePoolFactory_call_create + - name: Vault_evt_FlashLoan + - name: Vault_evt_TokensRegistered - name: beethoven_x_v3_sonic description: > From 57b20c6d192e06a9efbed66a5b8ac5715ecdd15e Mon Sep 17 00:00:00 2001 From: viniabussafi Date: Sat, 21 Dec 2024 13:21:18 +0000 Subject: [PATCH 4/7] fix copypasta --- .../beethoven_x/labels_beethoven_x_pools_sonic.sql | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dbt_subprojects/daily_spellbook/models/_sector/labels/addresses/__single_category_labels__/beethoven_x/labels_beethoven_x_pools_sonic.sql b/dbt_subprojects/daily_spellbook/models/_sector/labels/addresses/__single_category_labels__/beethoven_x/labels_beethoven_x_pools_sonic.sql index c6ec6915a8c..dc24f68300a 100644 --- a/dbt_subprojects/daily_spellbook/models/_sector/labels/addresses/__single_category_labels__/beethoven_x/labels_beethoven_x_pools_sonic.sql +++ b/dbt_subprojects/daily_spellbook/models/_sector/labels/addresses/__single_category_labels__/beethoven_x/labels_beethoven_x_pools_sonic.sql @@ -1,6 +1,6 @@ {{config( - alias = 'beethoven_x_pools_fantom', - post_hook = '{{ expose_spells(\'["fantom"]\', + alias = 'beethoven_x_pools_sonic', + post_hook = '{{ expose_spells(\'["sonic"]\', "sector", "labels", \'["viniabussafi"]\') }}' @@ -63,7 +63,7 @@ settings AS ( ) SELECT - 'fantom' AS blockchain, + 'sonic' AS blockchain, bytearray_substring(pool_id, 1, 20) AS address, CASE WHEN pool_type IN ('stable') THEN lower(pool_symbol) @@ -78,7 +78,7 @@ SELECT 'query' AS source, TIMESTAMP'2024-12-15 00:00' AS created_at, now() AS updated_at, - 'beethoven_x_pools_fantom' AS model_name, + 'beethoven_x_pools_sonic' AS model_name, 'identifier' AS label_type FROM ( SELECT From fb3fc9c38f53419b59455b42f739e1d3550f2935 Mon Sep 17 00:00:00 2001 From: viniabussafi Date: Sat, 21 Dec 2024 13:26:39 +0000 Subject: [PATCH 5/7] add missing comma --- .../beethoven_x/labels_beethoven_x_pools_sonic.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbt_subprojects/daily_spellbook/models/_sector/labels/addresses/__single_category_labels__/beethoven_x/labels_beethoven_x_pools_sonic.sql b/dbt_subprojects/daily_spellbook/models/_sector/labels/addresses/__single_category_labels__/beethoven_x/labels_beethoven_x_pools_sonic.sql index dc24f68300a..c335a610e17 100644 --- a/dbt_subprojects/daily_spellbook/models/_sector/labels/addresses/__single_category_labels__/beethoven_x/labels_beethoven_x_pools_sonic.sql +++ b/dbt_subprojects/daily_spellbook/models/_sector/labels/addresses/__single_category_labels__/beethoven_x/labels_beethoven_x_pools_sonic.sql @@ -92,7 +92,7 @@ FROM ( GROUP BY s1.pool_id, token_symbol, pool_symbol, normalized_weight, pool_type, pool_name ) s GROUP BY pool_id, pool_symbol, pool_type, pool_name -ORDER BY 1) +ORDER BY 1), v3_pools AS( WITH token_data AS ( From 794a5976394a49bbec499d63a5b1e4ad5bc93997 Mon Sep 17 00:00:00 2001 From: viniabussafi Date: Fri, 27 Dec 2024 21:46:41 +0000 Subject: [PATCH 6/7] reflect rebranding from beethoven_x to beets --- .../beethoven_x/labels_beethoven_x_schema.yml | 32 +---------- .../labels_beets_pools_sonic.sql} | 14 ++--- .../beets/labels_beets_schema.yml | 54 +++++++++++++++++++ sources/beets/sonic/beets_sonic_sources.yml | 35 ++++++++++++ 4 files changed, 97 insertions(+), 38 deletions(-) rename dbt_subprojects/daily_spellbook/models/_sector/labels/addresses/__single_category_labels__/{beethoven_x/labels_beethoven_x_pools_sonic.sql => beets/labels_beets_pools_sonic.sql} (95%) create mode 100644 dbt_subprojects/daily_spellbook/models/_sector/labels/addresses/__single_category_labels__/beets/labels_beets_schema.yml create mode 100644 sources/beets/sonic/beets_sonic_sources.yml diff --git a/dbt_subprojects/daily_spellbook/models/_sector/labels/addresses/__single_category_labels__/beethoven_x/labels_beethoven_x_schema.yml b/dbt_subprojects/daily_spellbook/models/_sector/labels/addresses/__single_category_labels__/beethoven_x/labels_beethoven_x_schema.yml index 20e8a333cca..9595d0e8a48 100644 --- a/dbt_subprojects/daily_spellbook/models/_sector/labels/addresses/__single_category_labels__/beethoven_x/labels_beethoven_x_schema.yml +++ b/dbt_subprojects/daily_spellbook/models/_sector/labels/addresses/__single_category_labels__/beethoven_x/labels_beethoven_x_schema.yml @@ -51,34 +51,4 @@ models: description: "Name of the label model sourced from" - &label_type name: label_type - description: "Type of label (see labels overall readme)" - - - name: labels_beethoven_x_pools_sonic - meta: - blockchain: sonic - sector: labels - project: beethoven_x - contributors: viniabussafi - config: - tags: ['labels', 'sonic', 'beethoven_x', 'pools'] - description: 'Beethoven X liquidity pools created on sonic.' - data_tests: - - dbt_utils.unique_combination_of_columns: - combination_of_columns: - - address - - name - - category - - model_name - - blockchain - columns: - - *blockchain - - *address - - *name - - *poolname - - *category - - *contributor - - *source - - *created_at - - *updated_at - - *model_name - - *label_type + description: "Type of label (see labels overall readme)" \ No newline at end of file diff --git a/dbt_subprojects/daily_spellbook/models/_sector/labels/addresses/__single_category_labels__/beethoven_x/labels_beethoven_x_pools_sonic.sql b/dbt_subprojects/daily_spellbook/models/_sector/labels/addresses/__single_category_labels__/beets/labels_beets_pools_sonic.sql similarity index 95% rename from dbt_subprojects/daily_spellbook/models/_sector/labels/addresses/__single_category_labels__/beethoven_x/labels_beethoven_x_pools_sonic.sql rename to dbt_subprojects/daily_spellbook/models/_sector/labels/addresses/__single_category_labels__/beets/labels_beets_pools_sonic.sql index c335a610e17..f1a8903fbcf 100644 --- a/dbt_subprojects/daily_spellbook/models/_sector/labels/addresses/__single_category_labels__/beethoven_x/labels_beethoven_x_pools_sonic.sql +++ b/dbt_subprojects/daily_spellbook/models/_sector/labels/addresses/__single_category_labels__/beets/labels_beets_pools_sonic.sql @@ -1,5 +1,5 @@ {{config( - alias = 'beethoven_x_pools_sonic', + alias = 'beets_pools_sonic', post_hook = '{{ expose_spells(\'["sonic"]\', "sector", "labels", @@ -73,12 +73,12 @@ SELECT pool_name AS poolname, pool_type, '2' AS version, - 'beethoven_x_v2_pool' AS category, - 'beethoven_x' AS contributor, + 'beets_v2_pool' AS category, + 'beets' AS contributor, 'query' AS source, TIMESTAMP'2024-12-15 00:00' AS created_at, now() AS updated_at, - 'beethoven_x_pools_sonic' AS model_name, + 'beets_pools_sonic' AS model_name, 'identifier' AS label_type FROM ( SELECT @@ -168,12 +168,12 @@ SELECT END AS name, pool_type, '3' AS version, - 'beethoven_x_v3_pool' AS category, - 'beethoven_x' AS contributor, + 'beets_v3_pool' AS category, + 'beets' AS contributor, 'query' AS source, TIMESTAMP'2024-12-15 00:00' AS created_at, now() AS updated_at, - 'balancer_v3_pools_sonic' AS model_name, + 'beets_pools_sonic' AS model_name, 'identifier' AS label_type FROM ( SELECT diff --git a/dbt_subprojects/daily_spellbook/models/_sector/labels/addresses/__single_category_labels__/beets/labels_beets_schema.yml b/dbt_subprojects/daily_spellbook/models/_sector/labels/addresses/__single_category_labels__/beets/labels_beets_schema.yml new file mode 100644 index 00000000000..b830022043c --- /dev/null +++ b/dbt_subprojects/daily_spellbook/models/_sector/labels/addresses/__single_category_labels__/beets/labels_beets_schema.yml @@ -0,0 +1,54 @@ +version: 2 + +models: + - name: labels_beets_pools_sonic + meta: + blockchain: sonic + sector: labels + project: beets + contributors: viniabussafi + config: + tags: ['labels', 'fantom', 'balancer', 'pools'] + description: 'Beets liquidity pools created on Sonic.' + data_tests: + - dbt_utils.unique_combination_of_columns: + combination_of_columns: + - address + - name + - category + - model_name + - blockchain + columns: + - &blockchain + name: blockchain + description: 'Blockchain' + - &address + name: address + description: 'Address of liquidity pool' + - &name + name: name + description: 'Label name of pool containg the token symbols and their respective weights (if applicable)' + - &poolname + name: poolname + description: 'Label name of pool set at contract creation' + - &category + name: category + description: 'Label category' + - &contributor + name: contributor + description: 'Wizard(s) contributing to labels' + - &source + name: source + description: 'How were labels generated (could be static or query)' + - &created_at + name: created_at + description: 'When were labels created' + - &updated_at + name: updated_at + description: "When were labels updated for the last time" + - &model_name + name: model_name + description: "Name of the label model sourced from" + - &label_type + name: label_type + description: "Type of label (see labels overall readme)" \ No newline at end of file diff --git a/sources/beets/sonic/beets_sonic_sources.yml b/sources/beets/sonic/beets_sonic_sources.yml new file mode 100644 index 00000000000..0e6aa5daddc --- /dev/null +++ b/sources/beets/sonic/beets_sonic_sources.yml @@ -0,0 +1,35 @@ +version: 2 + +sources: + - name: beethoven_x_v2_sonic + description: > + Decoded tables related to Beethoven X, an automated portfolio manager and trading platform, on Sonic. + tables: + - name: Vault_evt_Swap + - name: Vault_evt_PoolRegistered + - name: WeightedPoolFactory_call_create + - name: Vault_evt_PoolBalanceChanged + - name: Vault_evt_PoolBalanceManaged + - name: ComposableStablePoolFactory_call_create + - name: Vault_evt_FlashLoan + - name: Vault_evt_TokensRegistered + + - name: beethoven_x_v3_sonic + description: > + Decoded tables related to Beethoven X, an automated portfolio manager and trading platform, on Sonic. + tables: + - name: Vault_evt_PoolRegistered + - name: WeightedPoolFactory_evt_PoolCreated + - name: WeightedPoolFactory_call_create + - name: Vault_evt_LiquidityAdded + - name: Vault_evt_LiquidityRemoved + - name: StablePoolFactory_evt_PoolCreated + - name: StablePoolFactory_call_create + - name: Vault_evt_Swap + - name: ProtocolFeeController_evt_ProtocolSwapFeeCollected + - name: ProtocolFeeController_evt_ProtocolYieldFeeCollected + - name: Vault_evt_Wrap + - name: Vault_evt_Unwrap + - name: Vault_evt_LiquidityAddedToBuffer + - name: Vault_evt_LiquidityRemovedFromBuffer + - name: Vault_evt_SwapFeePercentageChanged \ No newline at end of file From 2eef33fd6f912babb65bc0f833f0542d3afa6027 Mon Sep 17 00:00:00 2001 From: viniabussafi Date: Fri, 27 Dec 2024 22:08:11 +0000 Subject: [PATCH 7/7] remove extra file --- .../sonic/beethoven_x_sonic_sources.yml | 35 ------------------- 1 file changed, 35 deletions(-) delete mode 100644 sources/beethoven_x/sonic/beethoven_x_sonic_sources.yml diff --git a/sources/beethoven_x/sonic/beethoven_x_sonic_sources.yml b/sources/beethoven_x/sonic/beethoven_x_sonic_sources.yml deleted file mode 100644 index 0e6aa5daddc..00000000000 --- a/sources/beethoven_x/sonic/beethoven_x_sonic_sources.yml +++ /dev/null @@ -1,35 +0,0 @@ -version: 2 - -sources: - - name: beethoven_x_v2_sonic - description: > - Decoded tables related to Beethoven X, an automated portfolio manager and trading platform, on Sonic. - tables: - - name: Vault_evt_Swap - - name: Vault_evt_PoolRegistered - - name: WeightedPoolFactory_call_create - - name: Vault_evt_PoolBalanceChanged - - name: Vault_evt_PoolBalanceManaged - - name: ComposableStablePoolFactory_call_create - - name: Vault_evt_FlashLoan - - name: Vault_evt_TokensRegistered - - - name: beethoven_x_v3_sonic - description: > - Decoded tables related to Beethoven X, an automated portfolio manager and trading platform, on Sonic. - tables: - - name: Vault_evt_PoolRegistered - - name: WeightedPoolFactory_evt_PoolCreated - - name: WeightedPoolFactory_call_create - - name: Vault_evt_LiquidityAdded - - name: Vault_evt_LiquidityRemoved - - name: StablePoolFactory_evt_PoolCreated - - name: StablePoolFactory_call_create - - name: Vault_evt_Swap - - name: ProtocolFeeController_evt_ProtocolSwapFeeCollected - - name: ProtocolFeeController_evt_ProtocolYieldFeeCollected - - name: Vault_evt_Wrap - - name: Vault_evt_Unwrap - - name: Vault_evt_LiquidityAddedToBuffer - - name: Vault_evt_LiquidityRemovedFromBuffer - - name: Vault_evt_SwapFeePercentageChanged \ No newline at end of file