From a7f29e2183bb34f1a015ad4bc9ca176e843d46f9 Mon Sep 17 00:00:00 2001 From: Walter Cavinaw Date: Thu, 17 Oct 2024 17:01:49 -0700 Subject: [PATCH] Adding ArrakisV2 Mint and Burn (#796) * adding arrakis mint and burn events to blockchain-etl so we can improve performance tracking. * assign proper name to dataset --- .../arrakis/ArrakisV2_event_LogBurn.json | 65 +++++++++++++++++++ .../arrakis/ArrakisV2_event_LogMint.json | 65 +++++++++++++++++++ 2 files changed, 130 insertions(+) create mode 100644 dags/resources/stages/parse/table_definitions/arrakis/ArrakisV2_event_LogBurn.json create mode 100644 dags/resources/stages/parse/table_definitions/arrakis/ArrakisV2_event_LogMint.json diff --git a/dags/resources/stages/parse/table_definitions/arrakis/ArrakisV2_event_LogBurn.json b/dags/resources/stages/parse/table_definitions/arrakis/ArrakisV2_event_LogBurn.json new file mode 100644 index 00000000..f3f94ce3 --- /dev/null +++ b/dags/resources/stages/parse/table_definitions/arrakis/ArrakisV2_event_LogBurn.json @@ -0,0 +1,65 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "receiver", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "burnAmount", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amount0Out", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amount1Out", + "type": "uint256" + } + ], + "name": "LogBurn", + "type": "event" + }, + "contract_address": "SELECT vault FROM ref('ArrakisV2_event_VaultCreated')", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "arrakis", + "schema": [ + { + "description": "", + "name": "receiver", + "type": "STRING" + }, + { + "description": "", + "name": "burnAmount", + "type": "STRING" + }, + { + "description": "", + "name": "amount0Out", + "type": "STRING" + }, + { + "description": "", + "name": "amount1Out", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "ArrakisV2_event_LogBurn" + } +} \ No newline at end of file diff --git a/dags/resources/stages/parse/table_definitions/arrakis/ArrakisV2_event_LogMint.json b/dags/resources/stages/parse/table_definitions/arrakis/ArrakisV2_event_LogMint.json new file mode 100644 index 00000000..e2a107d8 --- /dev/null +++ b/dags/resources/stages/parse/table_definitions/arrakis/ArrakisV2_event_LogMint.json @@ -0,0 +1,65 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "receiver", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "mintAmount", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amount0In", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amount1In", + "type": "uint256" + } + ], + "name": "LogMint", + "type": "event" + }, + "contract_address": "SELECT vault FROM ref('ArrakisV2_event_VaultCreated')", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "arrakis", + "schema": [ + { + "description": "", + "name": "receiver", + "type": "STRING" + }, + { + "description": "", + "name": "mintAmount", + "type": "STRING" + }, + { + "description": "", + "name": "amount0In", + "type": "STRING" + }, + { + "description": "", + "name": "amount1In", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "ArrakisV2_event_LogMint" + } +} \ No newline at end of file