From 596f532680eb7137287e4ee2d045c7e101f91900 Mon Sep 17 00:00:00 2001 From: SimonCousaert Date: Tue, 24 Jan 2023 13:26:29 +0100 Subject: [PATCH] add wbtc and renbtc events --- .../RenERC20LogicV1_event_Approval.json | 54 +++++++++++++++++++ .../RenERC20LogicV1_event_Transfer.json | 54 +++++++++++++++++++ .../wbtc/WBTC_event_Approval.json | 54 +++++++++++++++++++ .../wbtc/WBTC_event_Transfer.json | 54 +++++++++++++++++++ 4 files changed, 216 insertions(+) create mode 100644 airflow/dags/resources/stages/parse/table_definitions/renbtc/RenERC20LogicV1_event_Approval.json create mode 100644 airflow/dags/resources/stages/parse/table_definitions/renbtc/RenERC20LogicV1_event_Transfer.json create mode 100644 airflow/dags/resources/stages/parse/table_definitions/wbtc/WBTC_event_Approval.json create mode 100644 airflow/dags/resources/stages/parse/table_definitions/wbtc/WBTC_event_Transfer.json diff --git a/airflow/dags/resources/stages/parse/table_definitions/renbtc/RenERC20LogicV1_event_Approval.json b/airflow/dags/resources/stages/parse/table_definitions/renbtc/RenERC20LogicV1_event_Approval.json new file mode 100644 index 00000000..141b2bfa --- /dev/null +++ b/airflow/dags/resources/stages/parse/table_definitions/renbtc/RenERC20LogicV1_event_Approval.json @@ -0,0 +1,54 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "owner", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "spender", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "value", + "type": "uint256" + } + ], + "name": "Approval", + "type": "event" + }, + "contract_address": "0xdbf31df14b66535af65aac99c32e9ea844e14501", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "renbtc", + "schema": [ + { + "description": "", + "name": "owner", + "type": "STRING" + }, + { + "description": "", + "name": "spender", + "type": "STRING" + }, + { + "description": "", + "name": "value", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "RenERC20LogicV1_event_Approval" + } +} \ No newline at end of file diff --git a/airflow/dags/resources/stages/parse/table_definitions/renbtc/RenERC20LogicV1_event_Transfer.json b/airflow/dags/resources/stages/parse/table_definitions/renbtc/RenERC20LogicV1_event_Transfer.json new file mode 100644 index 00000000..c792ae60 --- /dev/null +++ b/airflow/dags/resources/stages/parse/table_definitions/renbtc/RenERC20LogicV1_event_Transfer.json @@ -0,0 +1,54 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "from", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "value", + "type": "uint256" + } + ], + "name": "Transfer", + "type": "event" + }, + "contract_address": "0xdbf31df14b66535af65aac99c32e9ea844e14501", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "renbtc", + "schema": [ + { + "description": "", + "name": "from", + "type": "STRING" + }, + { + "description": "", + "name": "to", + "type": "STRING" + }, + { + "description": "", + "name": "value", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "RenERC20LogicV1_event_Transfer" + } +} \ No newline at end of file diff --git a/airflow/dags/resources/stages/parse/table_definitions/wbtc/WBTC_event_Approval.json b/airflow/dags/resources/stages/parse/table_definitions/wbtc/WBTC_event_Approval.json new file mode 100644 index 00000000..b47a154a --- /dev/null +++ b/airflow/dags/resources/stages/parse/table_definitions/wbtc/WBTC_event_Approval.json @@ -0,0 +1,54 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "owner", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "spender", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "value", + "type": "uint256" + } + ], + "name": "Approval", + "type": "event" + }, + "contract_address": "0x1bfd67037b42cf73acf2047067bd4f2c47d9bfd6", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "wbtc", + "schema": [ + { + "description": "", + "name": "owner", + "type": "STRING" + }, + { + "description": "", + "name": "spender", + "type": "STRING" + }, + { + "description": "", + "name": "value", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "WBTC_event_Approval" + } +} \ No newline at end of file diff --git a/airflow/dags/resources/stages/parse/table_definitions/wbtc/WBTC_event_Transfer.json b/airflow/dags/resources/stages/parse/table_definitions/wbtc/WBTC_event_Transfer.json new file mode 100644 index 00000000..0cec40a1 --- /dev/null +++ b/airflow/dags/resources/stages/parse/table_definitions/wbtc/WBTC_event_Transfer.json @@ -0,0 +1,54 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "from", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "value", + "type": "uint256" + } + ], + "name": "Transfer", + "type": "event" + }, + "contract_address": "0x1bfd67037b42cf73acf2047067bd4f2c47d9bfd6", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "wbtc", + "schema": [ + { + "description": "", + "name": "from", + "type": "STRING" + }, + { + "description": "", + "name": "to", + "type": "STRING" + }, + { + "description": "", + "name": "value", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "WBTC_event_Transfer" + } +} \ No newline at end of file