From 7826e4ce25ca2158d3e6c501d446a5c9c878c9c1 Mon Sep 17 00:00:00 2001 From: wderose Date: Wed, 30 Oct 2024 00:24:45 -0700 Subject: [PATCH] Add Stakedao event table definitions for FeeUpdated, FeeCollectorUpdated, ManagerUpdated, RecipientSet, BountyClosed, FeesCollected, OwnershipTransferred, and PeriodRolledOver (#799) --- .../stakedao/Platform_event_BountyClosed.json | 43 +++++++ .../Platform_event_BountyCreated.json | 120 ++++++++++++++++++ ...Platform_event_BountyDurationIncrease.json | 65 ++++++++++ ...rm_event_BountyDurationIncreaseQueued.json | 65 ++++++++++ .../stakedao/Platform_event_Claimed.json | 87 +++++++++++++ .../Platform_event_FeeCollectorUpdated.json | 32 +++++ .../stakedao/Platform_event_FeeUpdated.json | 32 +++++ .../Platform_event_FeesCollected.json | 43 +++++++ .../Platform_event_ManagerUpdated.json | 43 +++++++ .../Platform_event_OwnershipTransferred.json | 43 +++++++ .../Platform_event_PeriodRolledOver.json | 65 ++++++++++ .../stakedao/Platform_event_RecipientSet.json | 43 +++++++ 12 files changed, 681 insertions(+) create mode 100644 dags/resources/stages/parse/table_definitions/stakedao/Platform_event_BountyClosed.json create mode 100644 dags/resources/stages/parse/table_definitions/stakedao/Platform_event_BountyCreated.json create mode 100644 dags/resources/stages/parse/table_definitions/stakedao/Platform_event_BountyDurationIncrease.json create mode 100644 dags/resources/stages/parse/table_definitions/stakedao/Platform_event_BountyDurationIncreaseQueued.json create mode 100644 dags/resources/stages/parse/table_definitions/stakedao/Platform_event_Claimed.json create mode 100644 dags/resources/stages/parse/table_definitions/stakedao/Platform_event_FeeCollectorUpdated.json create mode 100644 dags/resources/stages/parse/table_definitions/stakedao/Platform_event_FeeUpdated.json create mode 100644 dags/resources/stages/parse/table_definitions/stakedao/Platform_event_FeesCollected.json create mode 100644 dags/resources/stages/parse/table_definitions/stakedao/Platform_event_ManagerUpdated.json create mode 100644 dags/resources/stages/parse/table_definitions/stakedao/Platform_event_OwnershipTransferred.json create mode 100644 dags/resources/stages/parse/table_definitions/stakedao/Platform_event_PeriodRolledOver.json create mode 100644 dags/resources/stages/parse/table_definitions/stakedao/Platform_event_RecipientSet.json diff --git a/dags/resources/stages/parse/table_definitions/stakedao/Platform_event_BountyClosed.json b/dags/resources/stages/parse/table_definitions/stakedao/Platform_event_BountyClosed.json new file mode 100644 index 00000000..5502d4c9 --- /dev/null +++ b/dags/resources/stages/parse/table_definitions/stakedao/Platform_event_BountyClosed.json @@ -0,0 +1,43 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint256", + "name": "id", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "remainingReward", + "type": "uint256" + } + ], + "name": "BountyClosed", + "type": "event" + }, + "contract_address": "0x000000073d065fc33a3050c2d0e19c393a5699ba", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "stakedao", + "schema": [ + { + "description": "", + "name": "id", + "type": "STRING" + }, + { + "description": "", + "name": "remainingReward", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "Platform_event_BountyClosed" + } +} \ No newline at end of file diff --git a/dags/resources/stages/parse/table_definitions/stakedao/Platform_event_BountyCreated.json b/dags/resources/stages/parse/table_definitions/stakedao/Platform_event_BountyCreated.json new file mode 100644 index 00000000..6d7124d0 --- /dev/null +++ b/dags/resources/stages/parse/table_definitions/stakedao/Platform_event_BountyCreated.json @@ -0,0 +1,120 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "id", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "address", + "name": "gauge", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "manager", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "rewardToken", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint8", + "name": "numberOfPeriods", + "type": "uint8" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "maxRewardPerVote", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "rewardPerPeriod", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "totalRewardAmount", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "bool", + "name": "isUpgradeable", + "type": "bool" + } + ], + "name": "BountyCreated", + "type": "event" + }, + "contract_address": "0x000000073d065fc33a3050c2d0e19c393a5699ba", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "stakedao", + "schema": [ + { + "description": "", + "name": "id", + "type": "STRING" + }, + { + "description": "", + "name": "gauge", + "type": "STRING" + }, + { + "description": "", + "name": "manager", + "type": "STRING" + }, + { + "description": "", + "name": "rewardToken", + "type": "STRING" + }, + { + "description": "", + "name": "numberOfPeriods", + "type": "STRING" + }, + { + "description": "", + "name": "maxRewardPerVote", + "type": "STRING" + }, + { + "description": "", + "name": "rewardPerPeriod", + "type": "STRING" + }, + { + "description": "", + "name": "totalRewardAmount", + "type": "STRING" + }, + { + "description": "", + "name": "isUpgradeable", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "Platform_event_BountyCreated" + } +} \ No newline at end of file diff --git a/dags/resources/stages/parse/table_definitions/stakedao/Platform_event_BountyDurationIncrease.json b/dags/resources/stages/parse/table_definitions/stakedao/Platform_event_BountyDurationIncrease.json new file mode 100644 index 00000000..792ee10f --- /dev/null +++ b/dags/resources/stages/parse/table_definitions/stakedao/Platform_event_BountyDurationIncrease.json @@ -0,0 +1,65 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint256", + "name": "id", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint8", + "name": "numberOfPeriods", + "type": "uint8" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "totalRewardAmount", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "maxRewardPerVote", + "type": "uint256" + } + ], + "name": "BountyDurationIncrease", + "type": "event" + }, + "contract_address": "0x000000073d065fc33a3050c2d0e19c393a5699ba", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "stakedao", + "schema": [ + { + "description": "", + "name": "id", + "type": "STRING" + }, + { + "description": "", + "name": "numberOfPeriods", + "type": "STRING" + }, + { + "description": "", + "name": "totalRewardAmount", + "type": "STRING" + }, + { + "description": "", + "name": "maxRewardPerVote", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "Platform_event_BountyDurationIncrease" + } +} \ No newline at end of file diff --git a/dags/resources/stages/parse/table_definitions/stakedao/Platform_event_BountyDurationIncreaseQueued.json b/dags/resources/stages/parse/table_definitions/stakedao/Platform_event_BountyDurationIncreaseQueued.json new file mode 100644 index 00000000..11413a3e --- /dev/null +++ b/dags/resources/stages/parse/table_definitions/stakedao/Platform_event_BountyDurationIncreaseQueued.json @@ -0,0 +1,65 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint256", + "name": "id", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint8", + "name": "numberOfPeriods", + "type": "uint8" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "totalRewardAmount", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "maxRewardPerVote", + "type": "uint256" + } + ], + "name": "BountyDurationIncreaseQueued", + "type": "event" + }, + "contract_address": "0x000000073d065fc33a3050c2d0e19c393a5699ba", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "stakedao", + "schema": [ + { + "description": "", + "name": "id", + "type": "STRING" + }, + { + "description": "", + "name": "numberOfPeriods", + "type": "STRING" + }, + { + "description": "", + "name": "totalRewardAmount", + "type": "STRING" + }, + { + "description": "", + "name": "maxRewardPerVote", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "Platform_event_BountyDurationIncreaseQueued" + } +} \ No newline at end of file diff --git a/dags/resources/stages/parse/table_definitions/stakedao/Platform_event_Claimed.json b/dags/resources/stages/parse/table_definitions/stakedao/Platform_event_Claimed.json new file mode 100644 index 00000000..6dea172f --- /dev/null +++ b/dags/resources/stages/parse/table_definitions/stakedao/Platform_event_Claimed.json @@ -0,0 +1,87 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "user", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "rewardToken", + "type": "address" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "bountyId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amount", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "protocolFees", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "period", + "type": "uint256" + } + ], + "name": "Claimed", + "type": "event" + }, + "contract_address": "0x000000073d065fc33a3050c2d0e19c393a5699ba", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "stakedao", + "schema": [ + { + "description": "", + "name": "user", + "type": "STRING" + }, + { + "description": "", + "name": "rewardToken", + "type": "STRING" + }, + { + "description": "", + "name": "bountyId", + "type": "STRING" + }, + { + "description": "", + "name": "amount", + "type": "STRING" + }, + { + "description": "", + "name": "protocolFees", + "type": "STRING" + }, + { + "description": "", + "name": "period", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "Platform_event_Claimed" + } +} \ No newline at end of file diff --git a/dags/resources/stages/parse/table_definitions/stakedao/Platform_event_FeeCollectorUpdated.json b/dags/resources/stages/parse/table_definitions/stakedao/Platform_event_FeeCollectorUpdated.json new file mode 100644 index 00000000..3d7f18bc --- /dev/null +++ b/dags/resources/stages/parse/table_definitions/stakedao/Platform_event_FeeCollectorUpdated.json @@ -0,0 +1,32 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "feeCollector", + "type": "address" + } + ], + "name": "FeeCollectorUpdated", + "type": "event" + }, + "contract_address": "0x000000073d065fc33a3050c2d0e19c393a5699ba", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "stakedao", + "schema": [ + { + "description": "", + "name": "feeCollector", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "Platform_event_FeeCollectorUpdated" + } +} \ No newline at end of file diff --git a/dags/resources/stages/parse/table_definitions/stakedao/Platform_event_FeeUpdated.json b/dags/resources/stages/parse/table_definitions/stakedao/Platform_event_FeeUpdated.json new file mode 100644 index 00000000..540a6dce --- /dev/null +++ b/dags/resources/stages/parse/table_definitions/stakedao/Platform_event_FeeUpdated.json @@ -0,0 +1,32 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint256", + "name": "fee", + "type": "uint256" + } + ], + "name": "FeeUpdated", + "type": "event" + }, + "contract_address": "0x000000073d065fc33a3050c2d0e19c393a5699ba", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "stakedao", + "schema": [ + { + "description": "", + "name": "fee", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "Platform_event_FeeUpdated" + } +} \ No newline at end of file diff --git a/dags/resources/stages/parse/table_definitions/stakedao/Platform_event_FeesCollected.json b/dags/resources/stages/parse/table_definitions/stakedao/Platform_event_FeesCollected.json new file mode 100644 index 00000000..b19855c7 --- /dev/null +++ b/dags/resources/stages/parse/table_definitions/stakedao/Platform_event_FeesCollected.json @@ -0,0 +1,43 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "rewardToken", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "name": "FeesCollected", + "type": "event" + }, + "contract_address": "0x000000073d065fc33a3050c2d0e19c393a5699ba", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "stakedao", + "schema": [ + { + "description": "", + "name": "rewardToken", + "type": "STRING" + }, + { + "description": "", + "name": "amount", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "Platform_event_FeesCollected" + } +} \ No newline at end of file diff --git a/dags/resources/stages/parse/table_definitions/stakedao/Platform_event_ManagerUpdated.json b/dags/resources/stages/parse/table_definitions/stakedao/Platform_event_ManagerUpdated.json new file mode 100644 index 00000000..e81773d1 --- /dev/null +++ b/dags/resources/stages/parse/table_definitions/stakedao/Platform_event_ManagerUpdated.json @@ -0,0 +1,43 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint256", + "name": "id", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "address", + "name": "manager", + "type": "address" + } + ], + "name": "ManagerUpdated", + "type": "event" + }, + "contract_address": "0x000000073d065fc33a3050c2d0e19c393a5699ba", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "stakedao", + "schema": [ + { + "description": "", + "name": "id", + "type": "STRING" + }, + { + "description": "", + "name": "manager", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "Platform_event_ManagerUpdated" + } +} \ No newline at end of file diff --git a/dags/resources/stages/parse/table_definitions/stakedao/Platform_event_OwnershipTransferred.json b/dags/resources/stages/parse/table_definitions/stakedao/Platform_event_OwnershipTransferred.json new file mode 100644 index 00000000..8d980a07 --- /dev/null +++ b/dags/resources/stages/parse/table_definitions/stakedao/Platform_event_OwnershipTransferred.json @@ -0,0 +1,43 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "user", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "OwnershipTransferred", + "type": "event" + }, + "contract_address": "0x000000073d065fc33a3050c2d0e19c393a5699ba", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "stakedao", + "schema": [ + { + "description": "", + "name": "user", + "type": "STRING" + }, + { + "description": "", + "name": "newOwner", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "Platform_event_OwnershipTransferred" + } +} \ No newline at end of file diff --git a/dags/resources/stages/parse/table_definitions/stakedao/Platform_event_PeriodRolledOver.json b/dags/resources/stages/parse/table_definitions/stakedao/Platform_event_PeriodRolledOver.json new file mode 100644 index 00000000..92a0143e --- /dev/null +++ b/dags/resources/stages/parse/table_definitions/stakedao/Platform_event_PeriodRolledOver.json @@ -0,0 +1,65 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint256", + "name": "id", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "periodId", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "timestamp", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "rewardPerPeriod", + "type": "uint256" + } + ], + "name": "PeriodRolledOver", + "type": "event" + }, + "contract_address": "0x000000073d065fc33a3050c2d0e19c393a5699ba", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "stakedao", + "schema": [ + { + "description": "", + "name": "id", + "type": "STRING" + }, + { + "description": "", + "name": "periodId", + "type": "STRING" + }, + { + "description": "", + "name": "timestamp", + "type": "STRING" + }, + { + "description": "", + "name": "rewardPerPeriod", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "Platform_event_PeriodRolledOver" + } +} \ No newline at end of file diff --git a/dags/resources/stages/parse/table_definitions/stakedao/Platform_event_RecipientSet.json b/dags/resources/stages/parse/table_definitions/stakedao/Platform_event_RecipientSet.json new file mode 100644 index 00000000..15552071 --- /dev/null +++ b/dags/resources/stages/parse/table_definitions/stakedao/Platform_event_RecipientSet.json @@ -0,0 +1,43 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "sender", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "recipient", + "type": "address" + } + ], + "name": "RecipientSet", + "type": "event" + }, + "contract_address": "0x000000073d065fc33a3050c2d0e19c393a5699ba", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "stakedao", + "schema": [ + { + "description": "", + "name": "sender", + "type": "STRING" + }, + { + "description": "", + "name": "recipient", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "Platform_event_RecipientSet" + } +} \ No newline at end of file