From 253e77313da319522c30cb264bd202941176486f Mon Sep 17 00:00:00 2001 From: MarsIfeanyi Date: Fri, 31 Jan 2025 05:17:06 +0100 Subject: [PATCH 1/2] Bug Fix: Using Dynamic Parameters --- learning/how-tos/create-your-first-query.mdx | 21 ++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/learning/how-tos/create-your-first-query.mdx b/learning/how-tos/create-your-first-query.mdx index 322cafea..40f10998 100644 --- a/learning/how-tos/create-your-first-query.mdx +++ b/learning/how-tos/create-your-first-query.mdx @@ -43,7 +43,8 @@ GROUP BY ORDER BY 1 DESC, 4 DESC ``` -import { DuneEmbed } from '/snippets/dune-embed.mdx' + +import { DuneEmbed } from "/snippets/dune-embed.mdx"; @@ -73,15 +74,13 @@ SELECT FROM dex.trades WHERE block_date >= NOW() - INTERVAL '30' day - AND project = {{Project Name}} -- Try 'uniswap' or 'curve' + AND project = '{{Project Name}}' -- Try 'uniswap' or 'curve' GROUP BY 1, 2, 3 ORDER BY 1 DESC, 5 DESC ``` - - To add the parameter: 1. Click "Add Parameter" below the query editor @@ -107,18 +106,20 @@ This will create a stacked bar chart showing daily trading volumes by blockchain -Want to explore more? Try: -- Removing the project filter to see all DEXes -- Changing the time period to 7 days or 90 days -- Adding token filters to focus on specific cryptocurrencies + Want to explore more? Try: - Removing the project filter to see all DEXes - + Changing the time period to 7 days or 90 days - Adding token filters to focus + on specific cryptocurrencies ## Next Steps -Congratulations on creating your first DEX analysis query! 🎉 +Congratulations on creating your first DEX analysis query! 🎉 You can find many more queries related to DEX trading activity in this dashboard: [DEX Trading Activity](https://dune.com/hagaetc/dex-metrics) Save your query by clicking **Save** in the upper right corner. You can revisit and modify it anytime to explore different aspects of DEX trading activity. -Ready to create more advanced queries? Check out our other guides to learn more about Dune + + Ready to create more advanced queries? Check out our other guides to learn + more about Dune + From 84b3966cb1ddf87e26b16cd11f6ed244e2a75f0f Mon Sep 17 00:00:00 2001 From: MarsIfeanyi Date: Fri, 31 Jan 2025 14:55:49 +0100 Subject: [PATCH 2/2] Fixed Typo Error on the first Paragraph --- web-app/query-editor/parameters.mdx | 60 ++++++++++++++--------------- 1 file changed, 28 insertions(+), 32 deletions(-) diff --git a/web-app/query-editor/parameters.mdx b/web-app/query-editor/parameters.mdx index d65473b0..82083074 100644 --- a/web-app/query-editor/parameters.mdx +++ b/web-app/query-editor/parameters.mdx @@ -3,8 +3,6 @@ title: Using Parameters description: Parameters allow you to implement variables in certain parts of your Query. This is useful if you want to create a Query that you can reuse with different parameters. --- -Parameters allow you to implement variables in certain parts of your Query. This is useful if you want to create a Query that you can reuse with different parameters. - Parameters in Dune are versatile and can be used in many different ways. You can use them to: - filter on a specific token @@ -16,12 +14,11 @@ Parameters in Dune are versatile and can be used in many different ways. You can Parameters can be a **single value** or a **list of values** and you can choose **one** or **multiple** values from a pre-defined list of values. This list can be manually defined or populated from a different query. - **To use parameters:** 1. choose the spot in your Query where you want to implement a parameter -2. click on the add parameter button or type ``{{example_parameter_name}}`` -3. open the parameter options +2. click on the add parameter button or type `{{example_parameter_name}}` +3. open the parameter options 4. configure your parameter's name, type, and default value Parameters can be text, numbers,a date, a manual list of values or a list of values from a different query. @@ -30,7 +27,7 @@ Parameters can be text, numbers,a date, a manual list of values or a list of val style={{ position: "relative", paddingBottom: "calc(50.67708333333333% + 41px)", - height: 0 + height: 0, }} >