From bac563f89b394fdf1f51e3dccf1b5ecbbd3c2e70 Mon Sep 17 00:00:00 2001 From: Mohamed Ayadi <48367135+AyadiGithub@users.noreply.github.com> Date: Thu, 30 Nov 2023 23:01:02 -0500 Subject: [PATCH] add equalizer flashloan event and call (#198) --- .../FlashLoanProvider_call_flashLoan.json | 68 +++++++++++++++++ .../FlashLoanProvider_event_FlashLoan.json | 76 +++++++++++++++++++ 2 files changed, 144 insertions(+) create mode 100644 airflow/dags/resources/stages/parse/table_definitions/equalizer/FlashLoanProvider_call_flashLoan.json create mode 100644 airflow/dags/resources/stages/parse/table_definitions/equalizer/FlashLoanProvider_event_FlashLoan.json diff --git a/airflow/dags/resources/stages/parse/table_definitions/equalizer/FlashLoanProvider_call_flashLoan.json b/airflow/dags/resources/stages/parse/table_definitions/equalizer/FlashLoanProvider_call_flashLoan.json new file mode 100644 index 0000000..1a3511f --- /dev/null +++ b/airflow/dags/resources/stages/parse/table_definitions/equalizer/FlashLoanProvider_call_flashLoan.json @@ -0,0 +1,68 @@ +{ + "parser": { + "abi": { + "inputs": [ + { + "internalType": "contract IERC3156FlashBorrower", + "name": "receiver", + "type": "address" + }, + { + "internalType": "address", + "name": "token", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "data", + "type": "bytes" + } + ], + "name": "flashLoan", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + "contract_address": "0xbd332e2f7240487db5cab355a9cdd945fe2234c9", + "field_mapping": {}, + "type": "trace" + }, + "table": { + "dataset_name": "equalizer", + "schema": [ + { + "description": "", + "name": "receiver", + "type": "STRING" + }, + { + "description": "", + "name": "token", + "type": "STRING" + }, + { + "description": "", + "name": "amount", + "type": "STRING" + }, + { + "description": "", + "name": "data", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "FlashLoanProvider_call_flashLoan" + } +} \ No newline at end of file diff --git a/airflow/dags/resources/stages/parse/table_definitions/equalizer/FlashLoanProvider_event_FlashLoan.json b/airflow/dags/resources/stages/parse/table_definitions/equalizer/FlashLoanProvider_event_FlashLoan.json new file mode 100644 index 0000000..d988f36 --- /dev/null +++ b/airflow/dags/resources/stages/parse/table_definitions/equalizer/FlashLoanProvider_event_FlashLoan.json @@ -0,0 +1,76 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "receiver", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "token", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amount", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "fee", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "treasuryFee", + "type": "uint256" + } + ], + "name": "FlashLoan", + "type": "event" + }, + "contract_address": "0xbd332e2f7240487db5cab355a9cdd945fe2234c9", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "equalizer", + "schema": [ + { + "description": "", + "name": "receiver", + "type": "STRING" + }, + { + "description": "", + "name": "token", + "type": "STRING" + }, + { + "description": "", + "name": "amount", + "type": "STRING" + }, + { + "description": "", + "name": "fee", + "type": "STRING" + }, + { + "description": "", + "name": "treasuryFee", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "FlashLoanProvider_event_FlashLoan" + } +} \ No newline at end of file