From e2ba94c0e8daf78fde4d53cb20dc614de626233b Mon Sep 17 00:00:00 2001 From: katiebk <71089359+katiebk@users.noreply.github.com> Date: Wed, 23 Oct 2024 15:00:09 -0400 Subject: [PATCH] add comet events (#798) --- .../cUSDSv3_event_AbsorbCollateral.json | 76 +++++++++++++++++++ .../compound/cUSDSv3_event_AbsorbDebt.json | 65 ++++++++++++++++ .../compound/cUSDSv3_event_BuyCollateral.json | 65 ++++++++++++++++ .../compound/cUSDSv3_event_PauseAction.json | 76 +++++++++++++++++++ .../compound/cUSDSv3_event_Supply.json | 54 +++++++++++++ .../cUSDSv3_event_SupplyCollateral.json | 65 ++++++++++++++++ .../compound/cUSDSv3_event_Transfer.json | 54 +++++++++++++ .../cUSDSv3_event_TransferCollateral.json | 65 ++++++++++++++++ .../compound/cUSDSv3_event_Withdraw.json | 54 +++++++++++++ .../cUSDSv3_event_WithdrawCollateral.json | 65 ++++++++++++++++ .../cUSDSv3_event_WithdrawReserves.json | 43 +++++++++++ 11 files changed, 682 insertions(+) create mode 100644 dags/resources/stages/parse/table_definitions/compound/cUSDSv3_event_AbsorbCollateral.json create mode 100644 dags/resources/stages/parse/table_definitions/compound/cUSDSv3_event_AbsorbDebt.json create mode 100644 dags/resources/stages/parse/table_definitions/compound/cUSDSv3_event_BuyCollateral.json create mode 100644 dags/resources/stages/parse/table_definitions/compound/cUSDSv3_event_PauseAction.json create mode 100644 dags/resources/stages/parse/table_definitions/compound/cUSDSv3_event_Supply.json create mode 100644 dags/resources/stages/parse/table_definitions/compound/cUSDSv3_event_SupplyCollateral.json create mode 100644 dags/resources/stages/parse/table_definitions/compound/cUSDSv3_event_Transfer.json create mode 100644 dags/resources/stages/parse/table_definitions/compound/cUSDSv3_event_TransferCollateral.json create mode 100644 dags/resources/stages/parse/table_definitions/compound/cUSDSv3_event_Withdraw.json create mode 100644 dags/resources/stages/parse/table_definitions/compound/cUSDSv3_event_WithdrawCollateral.json create mode 100644 dags/resources/stages/parse/table_definitions/compound/cUSDSv3_event_WithdrawReserves.json diff --git a/dags/resources/stages/parse/table_definitions/compound/cUSDSv3_event_AbsorbCollateral.json b/dags/resources/stages/parse/table_definitions/compound/cUSDSv3_event_AbsorbCollateral.json new file mode 100644 index 00000000..4659cd7c --- /dev/null +++ b/dags/resources/stages/parse/table_definitions/compound/cUSDSv3_event_AbsorbCollateral.json @@ -0,0 +1,76 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "absorber", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "borrower", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "asset", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "collateralAbsorbed", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "usdValue", + "type": "uint256" + } + ], + "name": "AbsorbCollateral", + "type": "event" + }, + "contract_address": "0x5d409e56d886231adaf00c8775665ad0f9897b56", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "compound", + "schema": [ + { + "description": "", + "name": "absorber", + "type": "STRING" + }, + { + "description": "", + "name": "borrower", + "type": "STRING" + }, + { + "description": "", + "name": "asset", + "type": "STRING" + }, + { + "description": "", + "name": "collateralAbsorbed", + "type": "STRING" + }, + { + "description": "", + "name": "usdValue", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "cUSDSv3_event_AbsorbCollateral" + } +} \ No newline at end of file diff --git a/dags/resources/stages/parse/table_definitions/compound/cUSDSv3_event_AbsorbDebt.json b/dags/resources/stages/parse/table_definitions/compound/cUSDSv3_event_AbsorbDebt.json new file mode 100644 index 00000000..cb777df5 --- /dev/null +++ b/dags/resources/stages/parse/table_definitions/compound/cUSDSv3_event_AbsorbDebt.json @@ -0,0 +1,65 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "absorber", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "borrower", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "basePaidOut", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "usdValue", + "type": "uint256" + } + ], + "name": "AbsorbDebt", + "type": "event" + }, + "contract_address": "0x5d409e56d886231adaf00c8775665ad0f9897b56", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "compound", + "schema": [ + { + "description": "", + "name": "absorber", + "type": "STRING" + }, + { + "description": "", + "name": "borrower", + "type": "STRING" + }, + { + "description": "", + "name": "basePaidOut", + "type": "STRING" + }, + { + "description": "", + "name": "usdValue", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "cUSDSv3_event_AbsorbDebt" + } +} \ No newline at end of file diff --git a/dags/resources/stages/parse/table_definitions/compound/cUSDSv3_event_BuyCollateral.json b/dags/resources/stages/parse/table_definitions/compound/cUSDSv3_event_BuyCollateral.json new file mode 100644 index 00000000..4c103dd3 --- /dev/null +++ b/dags/resources/stages/parse/table_definitions/compound/cUSDSv3_event_BuyCollateral.json @@ -0,0 +1,65 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "buyer", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "asset", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "baseAmount", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "collateralAmount", + "type": "uint256" + } + ], + "name": "BuyCollateral", + "type": "event" + }, + "contract_address": "0x5d409e56d886231adaf00c8775665ad0f9897b56", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "compound", + "schema": [ + { + "description": "", + "name": "buyer", + "type": "STRING" + }, + { + "description": "", + "name": "asset", + "type": "STRING" + }, + { + "description": "", + "name": "baseAmount", + "type": "STRING" + }, + { + "description": "", + "name": "collateralAmount", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "cUSDSv3_event_BuyCollateral" + } +} \ No newline at end of file diff --git a/dags/resources/stages/parse/table_definitions/compound/cUSDSv3_event_PauseAction.json b/dags/resources/stages/parse/table_definitions/compound/cUSDSv3_event_PauseAction.json new file mode 100644 index 00000000..d0de1e83 --- /dev/null +++ b/dags/resources/stages/parse/table_definitions/compound/cUSDSv3_event_PauseAction.json @@ -0,0 +1,76 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "bool", + "name": "supplyPaused", + "type": "bool" + }, + { + "indexed": false, + "internalType": "bool", + "name": "transferPaused", + "type": "bool" + }, + { + "indexed": false, + "internalType": "bool", + "name": "withdrawPaused", + "type": "bool" + }, + { + "indexed": false, + "internalType": "bool", + "name": "absorbPaused", + "type": "bool" + }, + { + "indexed": false, + "internalType": "bool", + "name": "buyPaused", + "type": "bool" + } + ], + "name": "PauseAction", + "type": "event" + }, + "contract_address": "0x5d409e56d886231adaf00c8775665ad0f9897b56", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "compound", + "schema": [ + { + "description": "", + "name": "supplyPaused", + "type": "STRING" + }, + { + "description": "", + "name": "transferPaused", + "type": "STRING" + }, + { + "description": "", + "name": "withdrawPaused", + "type": "STRING" + }, + { + "description": "", + "name": "absorbPaused", + "type": "STRING" + }, + { + "description": "", + "name": "buyPaused", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "cUSDSv3_event_PauseAction" + } +} \ No newline at end of file diff --git a/dags/resources/stages/parse/table_definitions/compound/cUSDSv3_event_Supply.json b/dags/resources/stages/parse/table_definitions/compound/cUSDSv3_event_Supply.json new file mode 100644 index 00000000..449cf079 --- /dev/null +++ b/dags/resources/stages/parse/table_definitions/compound/cUSDSv3_event_Supply.json @@ -0,0 +1,54 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "from", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "dst", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "Supply", + "type": "event" + }, + "contract_address": "0x5d409e56d886231adaf00c8775665ad0f9897b56", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "compound", + "schema": [ + { + "description": "", + "name": "from", + "type": "STRING" + }, + { + "description": "", + "name": "dst", + "type": "STRING" + }, + { + "description": "", + "name": "amount", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "cUSDSv3_event_Supply" + } +} \ No newline at end of file diff --git a/dags/resources/stages/parse/table_definitions/compound/cUSDSv3_event_SupplyCollateral.json b/dags/resources/stages/parse/table_definitions/compound/cUSDSv3_event_SupplyCollateral.json new file mode 100644 index 00000000..fe6e0106 --- /dev/null +++ b/dags/resources/stages/parse/table_definitions/compound/cUSDSv3_event_SupplyCollateral.json @@ -0,0 +1,65 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "from", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "dst", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "asset", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "SupplyCollateral", + "type": "event" + }, + "contract_address": "0x5d409e56d886231adaf00c8775665ad0f9897b56", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "compound", + "schema": [ + { + "description": "", + "name": "from", + "type": "STRING" + }, + { + "description": "", + "name": "dst", + "type": "STRING" + }, + { + "description": "", + "name": "asset", + "type": "STRING" + }, + { + "description": "", + "name": "amount", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "cUSDSv3_event_SupplyCollateral" + } +} \ No newline at end of file diff --git a/dags/resources/stages/parse/table_definitions/compound/cUSDSv3_event_Transfer.json b/dags/resources/stages/parse/table_definitions/compound/cUSDSv3_event_Transfer.json new file mode 100644 index 00000000..34eb7f66 --- /dev/null +++ b/dags/resources/stages/parse/table_definitions/compound/cUSDSv3_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": "amount", + "type": "uint256" + } + ], + "name": "Transfer", + "type": "event" + }, + "contract_address": "0x5d409e56d886231adaf00c8775665ad0f9897b56", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "compound", + "schema": [ + { + "description": "", + "name": "from", + "type": "STRING" + }, + { + "description": "", + "name": "to", + "type": "STRING" + }, + { + "description": "", + "name": "amount", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "cUSDSv3_event_Transfer" + } +} \ No newline at end of file diff --git a/dags/resources/stages/parse/table_definitions/compound/cUSDSv3_event_TransferCollateral.json b/dags/resources/stages/parse/table_definitions/compound/cUSDSv3_event_TransferCollateral.json new file mode 100644 index 00000000..0c8f0b29 --- /dev/null +++ b/dags/resources/stages/parse/table_definitions/compound/cUSDSv3_event_TransferCollateral.json @@ -0,0 +1,65 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "from", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "asset", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "TransferCollateral", + "type": "event" + }, + "contract_address": "0x5d409e56d886231adaf00c8775665ad0f9897b56", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "compound", + "schema": [ + { + "description": "", + "name": "from", + "type": "STRING" + }, + { + "description": "", + "name": "to", + "type": "STRING" + }, + { + "description": "", + "name": "asset", + "type": "STRING" + }, + { + "description": "", + "name": "amount", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "cUSDSv3_event_TransferCollateral" + } +} \ No newline at end of file diff --git a/dags/resources/stages/parse/table_definitions/compound/cUSDSv3_event_Withdraw.json b/dags/resources/stages/parse/table_definitions/compound/cUSDSv3_event_Withdraw.json new file mode 100644 index 00000000..d6c11c79 --- /dev/null +++ b/dags/resources/stages/parse/table_definitions/compound/cUSDSv3_event_Withdraw.json @@ -0,0 +1,54 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "src", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "Withdraw", + "type": "event" + }, + "contract_address": "0x5d409e56d886231adaf00c8775665ad0f9897b56", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "compound", + "schema": [ + { + "description": "", + "name": "src", + "type": "STRING" + }, + { + "description": "", + "name": "to", + "type": "STRING" + }, + { + "description": "", + "name": "amount", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "cUSDSv3_event_Withdraw" + } +} \ No newline at end of file diff --git a/dags/resources/stages/parse/table_definitions/compound/cUSDSv3_event_WithdrawCollateral.json b/dags/resources/stages/parse/table_definitions/compound/cUSDSv3_event_WithdrawCollateral.json new file mode 100644 index 00000000..c4a65583 --- /dev/null +++ b/dags/resources/stages/parse/table_definitions/compound/cUSDSv3_event_WithdrawCollateral.json @@ -0,0 +1,65 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "src", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "asset", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "WithdrawCollateral", + "type": "event" + }, + "contract_address": "0x5d409e56d886231adaf00c8775665ad0f9897b56", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "compound", + "schema": [ + { + "description": "", + "name": "src", + "type": "STRING" + }, + { + "description": "", + "name": "to", + "type": "STRING" + }, + { + "description": "", + "name": "asset", + "type": "STRING" + }, + { + "description": "", + "name": "amount", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "cUSDSv3_event_WithdrawCollateral" + } +} \ No newline at end of file diff --git a/dags/resources/stages/parse/table_definitions/compound/cUSDSv3_event_WithdrawReserves.json b/dags/resources/stages/parse/table_definitions/compound/cUSDSv3_event_WithdrawReserves.json new file mode 100644 index 00000000..aef0ec81 --- /dev/null +++ b/dags/resources/stages/parse/table_definitions/compound/cUSDSv3_event_WithdrawReserves.json @@ -0,0 +1,43 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "WithdrawReserves", + "type": "event" + }, + "contract_address": "0x5d409e56d886231adaf00c8775665ad0f9897b56", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "compound", + "schema": [ + { + "description": "", + "name": "to", + "type": "STRING" + }, + { + "description": "", + "name": "amount", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "cUSDSv3_event_WithdrawReserves" + } +} \ No newline at end of file