From 211e0b0e2ac02590e88884a9e4e0870f54341fb6 Mon Sep 17 00:00:00 2001 From: AyadiGithub Date: Tue, 28 Feb 2023 22:47:27 -0500 Subject: [PATCH 1/2] add mStable Aave integration contract calls --- .../PAaveIntegration_call_deposit.json | 58 +++++++++++++++ ...AaveIntegration_call_setPTokenAddress.json | 42 +++++++++++ .../PAaveIntegration_call_withdraw.json | 72 +++++++++++++++++++ .../PAaveIntegration_call_withdrawRaw.json | 52 ++++++++++++++ 4 files changed, 224 insertions(+) create mode 100644 airflow/dags/resources/stages/parse/table_definitions/mstable/PAaveIntegration_call_deposit.json create mode 100644 airflow/dags/resources/stages/parse/table_definitions/mstable/PAaveIntegration_call_setPTokenAddress.json create mode 100644 airflow/dags/resources/stages/parse/table_definitions/mstable/PAaveIntegration_call_withdraw.json create mode 100644 airflow/dags/resources/stages/parse/table_definitions/mstable/PAaveIntegration_call_withdrawRaw.json diff --git a/airflow/dags/resources/stages/parse/table_definitions/mstable/PAaveIntegration_call_deposit.json b/airflow/dags/resources/stages/parse/table_definitions/mstable/PAaveIntegration_call_deposit.json new file mode 100644 index 00000000..283396c9 --- /dev/null +++ b/airflow/dags/resources/stages/parse/table_definitions/mstable/PAaveIntegration_call_deposit.json @@ -0,0 +1,58 @@ +{ + "parser": { + "abi": { + "inputs": [ + { + "internalType": "address", + "name": "_bAsset", + "type": "address" + }, + { + "internalType": "uint256", + "name": "_amount", + "type": "uint256" + }, + { + "internalType": "bool", + "name": "_hasTxFee", + "type": "bool" + } + ], + "name": "deposit", + "outputs": [ + { + "internalType": "uint256", + "name": "quantityDeposited", + "type": "uint256" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + "contract_address": "0xeab7831c96876433db9b8953b4e7e8f66c3125c3", + "field_mapping": {}, + "type": "trace" + }, + "table": { + "dataset_name": "mstable", + "schema": [ + { + "description": "", + "name": "_bAsset", + "type": "STRING" + }, + { + "description": "", + "name": "_amount", + "type": "STRING" + }, + { + "description": "", + "name": "_hasTxFee", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "PAaveIntegration_call_deposit" + } +} \ No newline at end of file diff --git a/airflow/dags/resources/stages/parse/table_definitions/mstable/PAaveIntegration_call_setPTokenAddress.json b/airflow/dags/resources/stages/parse/table_definitions/mstable/PAaveIntegration_call_setPTokenAddress.json new file mode 100644 index 00000000..dffd6f35 --- /dev/null +++ b/airflow/dags/resources/stages/parse/table_definitions/mstable/PAaveIntegration_call_setPTokenAddress.json @@ -0,0 +1,42 @@ +{ + "parser": { + "abi": { + "inputs": [ + { + "internalType": "address", + "name": "_bAsset", + "type": "address" + }, + { + "internalType": "address", + "name": "_pToken", + "type": "address" + } + ], + "name": "setPTokenAddress", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + "contract_address": "0xeab7831c96876433db9b8953b4e7e8f66c3125c3", + "field_mapping": {}, + "type": "trace" + }, + "table": { + "dataset_name": "mstable", + "schema": [ + { + "description": "", + "name": "_bAsset", + "type": "STRING" + }, + { + "description": "", + "name": "_pToken", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "PAaveIntegration_call_setPTokenAddress" + } +} \ No newline at end of file diff --git a/airflow/dags/resources/stages/parse/table_definitions/mstable/PAaveIntegration_call_withdraw.json b/airflow/dags/resources/stages/parse/table_definitions/mstable/PAaveIntegration_call_withdraw.json new file mode 100644 index 00000000..3b1d9af0 --- /dev/null +++ b/airflow/dags/resources/stages/parse/table_definitions/mstable/PAaveIntegration_call_withdraw.json @@ -0,0 +1,72 @@ +{ + "parser": { + "abi": { + "inputs": [ + { + "internalType": "address", + "name": "_receiver", + "type": "address" + }, + { + "internalType": "address", + "name": "_bAsset", + "type": "address" + }, + { + "internalType": "uint256", + "name": "_amount", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "_totalAmount", + "type": "uint256" + }, + { + "internalType": "bool", + "name": "_hasTxFee", + "type": "bool" + } + ], + "name": "withdraw", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + "contract_address": "0xeab7831c96876433db9b8953b4e7e8f66c3125c3", + "field_mapping": {}, + "type": "trace" + }, + "table": { + "dataset_name": "mstable", + "schema": [ + { + "description": "", + "name": "_receiver", + "type": "STRING" + }, + { + "description": "", + "name": "_bAsset", + "type": "STRING" + }, + { + "description": "", + "name": "_amount", + "type": "STRING" + }, + { + "description": "", + "name": "_totalAmount", + "type": "STRING" + }, + { + "description": "", + "name": "_hasTxFee", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "PAaveIntegration_call_withdraw" + } +} \ No newline at end of file diff --git a/airflow/dags/resources/stages/parse/table_definitions/mstable/PAaveIntegration_call_withdrawRaw.json b/airflow/dags/resources/stages/parse/table_definitions/mstable/PAaveIntegration_call_withdrawRaw.json new file mode 100644 index 00000000..555394d8 --- /dev/null +++ b/airflow/dags/resources/stages/parse/table_definitions/mstable/PAaveIntegration_call_withdrawRaw.json @@ -0,0 +1,52 @@ +{ + "parser": { + "abi": { + "inputs": [ + { + "internalType": "address", + "name": "_receiver", + "type": "address" + }, + { + "internalType": "address", + "name": "_bAsset", + "type": "address" + }, + { + "internalType": "uint256", + "name": "_amount", + "type": "uint256" + } + ], + "name": "withdrawRaw", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + "contract_address": "0xeab7831c96876433db9b8953b4e7e8f66c3125c3", + "field_mapping": {}, + "type": "trace" + }, + "table": { + "dataset_name": "mstable", + "schema": [ + { + "description": "", + "name": "_receiver", + "type": "STRING" + }, + { + "description": "", + "name": "_bAsset", + "type": "STRING" + }, + { + "description": "", + "name": "_amount", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "PAaveIntegration_call_withdrawRaw" + } +} \ No newline at end of file From 653a2c5b0a77ca8da0d020328cedc79a915ef1b1 Mon Sep 17 00:00:00 2001 From: AyadiGithub Date: Tue, 28 Feb 2023 22:47:47 -0500 Subject: [PATCH 2/2] add mStable Aave integration contract events --- .../PAaveIntegration_event_Deposit.json | 54 +++++++++++++++ .../PAaveIntegration_event_PTokenAdded.json | 43 ++++++++++++ ...eIntegration_event_PlatformWithdrawal.json | 65 +++++++++++++++++++ ...Integration_event_RewardTokenApproved.json | 43 ++++++++++++ ...PAaveIntegration_event_RewardsClaimed.json | 43 ++++++++++++ .../PAaveIntegration_event_Withdrawal.json | 54 +++++++++++++++ 6 files changed, 302 insertions(+) create mode 100644 airflow/dags/resources/stages/parse/table_definitions/mstable/PAaveIntegration_event_Deposit.json create mode 100644 airflow/dags/resources/stages/parse/table_definitions/mstable/PAaveIntegration_event_PTokenAdded.json create mode 100644 airflow/dags/resources/stages/parse/table_definitions/mstable/PAaveIntegration_event_PlatformWithdrawal.json create mode 100644 airflow/dags/resources/stages/parse/table_definitions/mstable/PAaveIntegration_event_RewardTokenApproved.json create mode 100644 airflow/dags/resources/stages/parse/table_definitions/mstable/PAaveIntegration_event_RewardsClaimed.json create mode 100644 airflow/dags/resources/stages/parse/table_definitions/mstable/PAaveIntegration_event_Withdrawal.json diff --git a/airflow/dags/resources/stages/parse/table_definitions/mstable/PAaveIntegration_event_Deposit.json b/airflow/dags/resources/stages/parse/table_definitions/mstable/PAaveIntegration_event_Deposit.json new file mode 100644 index 00000000..53e55c40 --- /dev/null +++ b/airflow/dags/resources/stages/parse/table_definitions/mstable/PAaveIntegration_event_Deposit.json @@ -0,0 +1,54 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "_bAsset", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "_pToken", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "_amount", + "type": "uint256" + } + ], + "name": "Deposit", + "type": "event" + }, + "contract_address": "0xeab7831c96876433db9b8953b4e7e8f66c3125c3", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "mstable", + "schema": [ + { + "description": "", + "name": "_bAsset", + "type": "STRING" + }, + { + "description": "", + "name": "_pToken", + "type": "STRING" + }, + { + "description": "", + "name": "_amount", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "PAaveIntegration_event_Deposit" + } +} \ No newline at end of file diff --git a/airflow/dags/resources/stages/parse/table_definitions/mstable/PAaveIntegration_event_PTokenAdded.json b/airflow/dags/resources/stages/parse/table_definitions/mstable/PAaveIntegration_event_PTokenAdded.json new file mode 100644 index 00000000..029a9adf --- /dev/null +++ b/airflow/dags/resources/stages/parse/table_definitions/mstable/PAaveIntegration_event_PTokenAdded.json @@ -0,0 +1,43 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "_bAsset", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "_pToken", + "type": "address" + } + ], + "name": "PTokenAdded", + "type": "event" + }, + "contract_address": "0xeab7831c96876433db9b8953b4e7e8f66c3125c3", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "mstable", + "schema": [ + { + "description": "", + "name": "_bAsset", + "type": "STRING" + }, + { + "description": "", + "name": "_pToken", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "PAaveIntegration_event_PTokenAdded" + } +} \ No newline at end of file diff --git a/airflow/dags/resources/stages/parse/table_definitions/mstable/PAaveIntegration_event_PlatformWithdrawal.json b/airflow/dags/resources/stages/parse/table_definitions/mstable/PAaveIntegration_event_PlatformWithdrawal.json new file mode 100644 index 00000000..64eb8482 --- /dev/null +++ b/airflow/dags/resources/stages/parse/table_definitions/mstable/PAaveIntegration_event_PlatformWithdrawal.json @@ -0,0 +1,65 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "bAsset", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "pToken", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "totalAmount", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "userAmount", + "type": "uint256" + } + ], + "name": "PlatformWithdrawal", + "type": "event" + }, + "contract_address": "0xeab7831c96876433db9b8953b4e7e8f66c3125c3", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "mstable", + "schema": [ + { + "description": "", + "name": "bAsset", + "type": "STRING" + }, + { + "description": "", + "name": "pToken", + "type": "STRING" + }, + { + "description": "", + "name": "totalAmount", + "type": "STRING" + }, + { + "description": "", + "name": "userAmount", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "PAaveIntegration_event_PlatformWithdrawal" + } +} \ No newline at end of file diff --git a/airflow/dags/resources/stages/parse/table_definitions/mstable/PAaveIntegration_event_RewardTokenApproved.json b/airflow/dags/resources/stages/parse/table_definitions/mstable/PAaveIntegration_event_RewardTokenApproved.json new file mode 100644 index 00000000..1920d659 --- /dev/null +++ b/airflow/dags/resources/stages/parse/table_definitions/mstable/PAaveIntegration_event_RewardTokenApproved.json @@ -0,0 +1,43 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "rewardToken", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "account", + "type": "address" + } + ], + "name": "RewardTokenApproved", + "type": "event" + }, + "contract_address": "0xeab7831c96876433db9b8953b4e7e8f66c3125c3", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "mstable", + "schema": [ + { + "description": "", + "name": "rewardToken", + "type": "STRING" + }, + { + "description": "", + "name": "account", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "PAaveIntegration_event_RewardTokenApproved" + } +} \ No newline at end of file diff --git a/airflow/dags/resources/stages/parse/table_definitions/mstable/PAaveIntegration_event_RewardsClaimed.json b/airflow/dags/resources/stages/parse/table_definitions/mstable/PAaveIntegration_event_RewardsClaimed.json new file mode 100644 index 00000000..6e0a40b8 --- /dev/null +++ b/airflow/dags/resources/stages/parse/table_definitions/mstable/PAaveIntegration_event_RewardsClaimed.json @@ -0,0 +1,43 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address[]", + "name": "assets", + "type": "address[]" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "RewardsClaimed", + "type": "event" + }, + "contract_address": "0xeab7831c96876433db9b8953b4e7e8f66c3125c3", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "mstable", + "schema": [ + { + "description": "", + "name": "assets", + "type": "STRING" + }, + { + "description": "", + "name": "amount", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "PAaveIntegration_event_RewardsClaimed" + } +} \ No newline at end of file diff --git a/airflow/dags/resources/stages/parse/table_definitions/mstable/PAaveIntegration_event_Withdrawal.json b/airflow/dags/resources/stages/parse/table_definitions/mstable/PAaveIntegration_event_Withdrawal.json new file mode 100644 index 00000000..3c3a867e --- /dev/null +++ b/airflow/dags/resources/stages/parse/table_definitions/mstable/PAaveIntegration_event_Withdrawal.json @@ -0,0 +1,54 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "_bAsset", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "_pToken", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "_amount", + "type": "uint256" + } + ], + "name": "Withdrawal", + "type": "event" + }, + "contract_address": "0xeab7831c96876433db9b8953b4e7e8f66c3125c3", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "mstable", + "schema": [ + { + "description": "", + "name": "_bAsset", + "type": "STRING" + }, + { + "description": "", + "name": "_pToken", + "type": "STRING" + }, + { + "description": "", + "name": "_amount", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "PAaveIntegration_event_Withdrawal" + } +} \ No newline at end of file