From 208e2b42feb5f33f11ffed9e62046357180903db Mon Sep 17 00:00:00 2001 From: "Casey C. Barr" <49072955+casey-barr@users.noreply.github.com> Date: Thu, 4 Jan 2024 21:01:31 -0500 Subject: [PATCH] feat: add staking contract events (#655) --- ...akingContract_event_ActivatedOperator.json | 32 +++++++++ .../StakingContract_event_ChangedAdmin.json | 32 +++++++++ ...Contract_event_ChangedDepositsStopped.json | 32 +++++++++ ...takingContract_event_ChangedGlobalFee.json | 32 +++++++++ ...ntract_event_ChangedOperatorAddresses.json | 54 +++++++++++++++ ...kingContract_event_ChangedOperatorFee.json | 32 +++++++++ ...ngContract_event_ChangedOperatorLimit.json | 43 ++++++++++++ ...StakingContract_event_ChangedTreasury.json | 32 +++++++++ ...akingContract_event_ChangedWithdrawer.json | 43 ++++++++++++ ...ingContract_event_DeactivatedOperator.json | 32 +++++++++ .../StakingContract_event_Deposit.json | 65 +++++++++++++++++++ .../StakingContract_event_ExitRequest.json | 43 ++++++++++++ .../StakingContract_event_NewOperator.json | 54 +++++++++++++++ ...vent_SetWithdrawerCustomizationStatus.json | 32 +++++++++ ...ingContract_event_ValidatorKeyRemoved.json | 43 ++++++++++++ ...kingContract_event_ValidatorKeysAdded.json | 54 +++++++++++++++ ...takingContract_event_ValidatorsEdited.json | 32 +++++++++ 17 files changed, 687 insertions(+) create mode 100644 dags/resources/stages/parse/table_definitions/consensys/StakingContract_event_ActivatedOperator.json create mode 100644 dags/resources/stages/parse/table_definitions/consensys/StakingContract_event_ChangedAdmin.json create mode 100644 dags/resources/stages/parse/table_definitions/consensys/StakingContract_event_ChangedDepositsStopped.json create mode 100644 dags/resources/stages/parse/table_definitions/consensys/StakingContract_event_ChangedGlobalFee.json create mode 100644 dags/resources/stages/parse/table_definitions/consensys/StakingContract_event_ChangedOperatorAddresses.json create mode 100644 dags/resources/stages/parse/table_definitions/consensys/StakingContract_event_ChangedOperatorFee.json create mode 100644 dags/resources/stages/parse/table_definitions/consensys/StakingContract_event_ChangedOperatorLimit.json create mode 100644 dags/resources/stages/parse/table_definitions/consensys/StakingContract_event_ChangedTreasury.json create mode 100644 dags/resources/stages/parse/table_definitions/consensys/StakingContract_event_ChangedWithdrawer.json create mode 100644 dags/resources/stages/parse/table_definitions/consensys/StakingContract_event_DeactivatedOperator.json create mode 100644 dags/resources/stages/parse/table_definitions/consensys/StakingContract_event_Deposit.json create mode 100644 dags/resources/stages/parse/table_definitions/consensys/StakingContract_event_ExitRequest.json create mode 100644 dags/resources/stages/parse/table_definitions/consensys/StakingContract_event_NewOperator.json create mode 100644 dags/resources/stages/parse/table_definitions/consensys/StakingContract_event_SetWithdrawerCustomizationStatus.json create mode 100644 dags/resources/stages/parse/table_definitions/consensys/StakingContract_event_ValidatorKeyRemoved.json create mode 100644 dags/resources/stages/parse/table_definitions/consensys/StakingContract_event_ValidatorKeysAdded.json create mode 100644 dags/resources/stages/parse/table_definitions/consensys/StakingContract_event_ValidatorsEdited.json diff --git a/dags/resources/stages/parse/table_definitions/consensys/StakingContract_event_ActivatedOperator.json b/dags/resources/stages/parse/table_definitions/consensys/StakingContract_event_ActivatedOperator.json new file mode 100644 index 00000000..b2ef4f1a --- /dev/null +++ b/dags/resources/stages/parse/table_definitions/consensys/StakingContract_event_ActivatedOperator.json @@ -0,0 +1,32 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint256", + "name": "_operatorIndex", + "type": "uint256" + } + ], + "name": "ActivatedOperator", + "type": "event" + }, + "contract_address": "0xdc71affc862fceb6ad32be58e098423a7727bebd", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "consensys", + "schema": [ + { + "description": "", + "name": "_operatorIndex", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "StakingContract_event_ActivatedOperator" + } +} \ No newline at end of file diff --git a/dags/resources/stages/parse/table_definitions/consensys/StakingContract_event_ChangedAdmin.json b/dags/resources/stages/parse/table_definitions/consensys/StakingContract_event_ChangedAdmin.json new file mode 100644 index 00000000..78ff55d3 --- /dev/null +++ b/dags/resources/stages/parse/table_definitions/consensys/StakingContract_event_ChangedAdmin.json @@ -0,0 +1,32 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "newAdmin", + "type": "address" + } + ], + "name": "ChangedAdmin", + "type": "event" + }, + "contract_address": "0xdc71affc862fceb6ad32be58e098423a7727bebd", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "consensys", + "schema": [ + { + "description": "", + "name": "newAdmin", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "StakingContract_event_ChangedAdmin" + } +} \ No newline at end of file diff --git a/dags/resources/stages/parse/table_definitions/consensys/StakingContract_event_ChangedDepositsStopped.json b/dags/resources/stages/parse/table_definitions/consensys/StakingContract_event_ChangedDepositsStopped.json new file mode 100644 index 00000000..34ba4a96 --- /dev/null +++ b/dags/resources/stages/parse/table_definitions/consensys/StakingContract_event_ChangedDepositsStopped.json @@ -0,0 +1,32 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "bool", + "name": "isStopped", + "type": "bool" + } + ], + "name": "ChangedDepositsStopped", + "type": "event" + }, + "contract_address": "0xdc71affc862fceb6ad32be58e098423a7727bebd", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "consensys", + "schema": [ + { + "description": "", + "name": "isStopped", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "StakingContract_event_ChangedDepositsStopped" + } +} \ No newline at end of file diff --git a/dags/resources/stages/parse/table_definitions/consensys/StakingContract_event_ChangedGlobalFee.json b/dags/resources/stages/parse/table_definitions/consensys/StakingContract_event_ChangedGlobalFee.json new file mode 100644 index 00000000..6538778e --- /dev/null +++ b/dags/resources/stages/parse/table_definitions/consensys/StakingContract_event_ChangedGlobalFee.json @@ -0,0 +1,32 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint256", + "name": "newGlobalFee", + "type": "uint256" + } + ], + "name": "ChangedGlobalFee", + "type": "event" + }, + "contract_address": "0xdc71affc862fceb6ad32be58e098423a7727bebd", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "consensys", + "schema": [ + { + "description": "", + "name": "newGlobalFee", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "StakingContract_event_ChangedGlobalFee" + } +} \ No newline at end of file diff --git a/dags/resources/stages/parse/table_definitions/consensys/StakingContract_event_ChangedOperatorAddresses.json b/dags/resources/stages/parse/table_definitions/consensys/StakingContract_event_ChangedOperatorAddresses.json new file mode 100644 index 00000000..3ea6c166 --- /dev/null +++ b/dags/resources/stages/parse/table_definitions/consensys/StakingContract_event_ChangedOperatorAddresses.json @@ -0,0 +1,54 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint256", + "name": "operatorIndex", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "address", + "name": "operatorAddress", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "feeRecipientAddress", + "type": "address" + } + ], + "name": "ChangedOperatorAddresses", + "type": "event" + }, + "contract_address": "0xdc71affc862fceb6ad32be58e098423a7727bebd", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "consensys", + "schema": [ + { + "description": "", + "name": "operatorIndex", + "type": "STRING" + }, + { + "description": "", + "name": "operatorAddress", + "type": "STRING" + }, + { + "description": "", + "name": "feeRecipientAddress", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "StakingContract_event_ChangedOperatorAddresses" + } +} \ No newline at end of file diff --git a/dags/resources/stages/parse/table_definitions/consensys/StakingContract_event_ChangedOperatorFee.json b/dags/resources/stages/parse/table_definitions/consensys/StakingContract_event_ChangedOperatorFee.json new file mode 100644 index 00000000..a186fb25 --- /dev/null +++ b/dags/resources/stages/parse/table_definitions/consensys/StakingContract_event_ChangedOperatorFee.json @@ -0,0 +1,32 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint256", + "name": "newOperatorFee", + "type": "uint256" + } + ], + "name": "ChangedOperatorFee", + "type": "event" + }, + "contract_address": "0xdc71affc862fceb6ad32be58e098423a7727bebd", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "consensys", + "schema": [ + { + "description": "", + "name": "newOperatorFee", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "StakingContract_event_ChangedOperatorFee" + } +} \ No newline at end of file diff --git a/dags/resources/stages/parse/table_definitions/consensys/StakingContract_event_ChangedOperatorLimit.json b/dags/resources/stages/parse/table_definitions/consensys/StakingContract_event_ChangedOperatorLimit.json new file mode 100644 index 00000000..f150817f --- /dev/null +++ b/dags/resources/stages/parse/table_definitions/consensys/StakingContract_event_ChangedOperatorLimit.json @@ -0,0 +1,43 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint256", + "name": "operatorIndex", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "limit", + "type": "uint256" + } + ], + "name": "ChangedOperatorLimit", + "type": "event" + }, + "contract_address": "0xdc71affc862fceb6ad32be58e098423a7727bebd", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "consensys", + "schema": [ + { + "description": "", + "name": "operatorIndex", + "type": "STRING" + }, + { + "description": "", + "name": "limit", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "StakingContract_event_ChangedOperatorLimit" + } +} \ No newline at end of file diff --git a/dags/resources/stages/parse/table_definitions/consensys/StakingContract_event_ChangedTreasury.json b/dags/resources/stages/parse/table_definitions/consensys/StakingContract_event_ChangedTreasury.json new file mode 100644 index 00000000..244ca029 --- /dev/null +++ b/dags/resources/stages/parse/table_definitions/consensys/StakingContract_event_ChangedTreasury.json @@ -0,0 +1,32 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "newTreasury", + "type": "address" + } + ], + "name": "ChangedTreasury", + "type": "event" + }, + "contract_address": "0xdc71affc862fceb6ad32be58e098423a7727bebd", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "consensys", + "schema": [ + { + "description": "", + "name": "newTreasury", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "StakingContract_event_ChangedTreasury" + } +} \ No newline at end of file diff --git a/dags/resources/stages/parse/table_definitions/consensys/StakingContract_event_ChangedWithdrawer.json b/dags/resources/stages/parse/table_definitions/consensys/StakingContract_event_ChangedWithdrawer.json new file mode 100644 index 00000000..de051de5 --- /dev/null +++ b/dags/resources/stages/parse/table_definitions/consensys/StakingContract_event_ChangedWithdrawer.json @@ -0,0 +1,43 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "bytes", + "name": "publicKey", + "type": "bytes" + }, + { + "indexed": false, + "internalType": "address", + "name": "newWithdrawer", + "type": "address" + } + ], + "name": "ChangedWithdrawer", + "type": "event" + }, + "contract_address": "0xdc71affc862fceb6ad32be58e098423a7727bebd", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "consensys", + "schema": [ + { + "description": "", + "name": "publicKey", + "type": "STRING" + }, + { + "description": "", + "name": "newWithdrawer", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "StakingContract_event_ChangedWithdrawer" + } +} \ No newline at end of file diff --git a/dags/resources/stages/parse/table_definitions/consensys/StakingContract_event_DeactivatedOperator.json b/dags/resources/stages/parse/table_definitions/consensys/StakingContract_event_DeactivatedOperator.json new file mode 100644 index 00000000..d9463718 --- /dev/null +++ b/dags/resources/stages/parse/table_definitions/consensys/StakingContract_event_DeactivatedOperator.json @@ -0,0 +1,32 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint256", + "name": "_operatorIndex", + "type": "uint256" + } + ], + "name": "DeactivatedOperator", + "type": "event" + }, + "contract_address": "0xdc71affc862fceb6ad32be58e098423a7727bebd", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "consensys", + "schema": [ + { + "description": "", + "name": "_operatorIndex", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "StakingContract_event_DeactivatedOperator" + } +} \ No newline at end of file diff --git a/dags/resources/stages/parse/table_definitions/consensys/StakingContract_event_Deposit.json b/dags/resources/stages/parse/table_definitions/consensys/StakingContract_event_Deposit.json new file mode 100644 index 00000000..eaced7de --- /dev/null +++ b/dags/resources/stages/parse/table_definitions/consensys/StakingContract_event_Deposit.json @@ -0,0 +1,65 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "caller", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "withdrawer", + "type": "address" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "publicKey", + "type": "bytes" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "signature", + "type": "bytes" + } + ], + "name": "Deposit", + "type": "event" + }, + "contract_address": "0xdc71affc862fceb6ad32be58e098423a7727bebd", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "consensys", + "schema": [ + { + "description": "", + "name": "caller", + "type": "STRING" + }, + { + "description": "", + "name": "withdrawer", + "type": "STRING" + }, + { + "description": "", + "name": "publicKey", + "type": "STRING" + }, + { + "description": "", + "name": "signature", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "StakingContract_event_Deposit" + } +} \ No newline at end of file diff --git a/dags/resources/stages/parse/table_definitions/consensys/StakingContract_event_ExitRequest.json b/dags/resources/stages/parse/table_definitions/consensys/StakingContract_event_ExitRequest.json new file mode 100644 index 00000000..7b1bda1a --- /dev/null +++ b/dags/resources/stages/parse/table_definitions/consensys/StakingContract_event_ExitRequest.json @@ -0,0 +1,43 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "caller", + "type": "address" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "pubkey", + "type": "bytes" + } + ], + "name": "ExitRequest", + "type": "event" + }, + "contract_address": "0xdc71affc862fceb6ad32be58e098423a7727bebd", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "consensys", + "schema": [ + { + "description": "", + "name": "caller", + "type": "STRING" + }, + { + "description": "", + "name": "pubkey", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "StakingContract_event_ExitRequest" + } +} \ No newline at end of file diff --git a/dags/resources/stages/parse/table_definitions/consensys/StakingContract_event_NewOperator.json b/dags/resources/stages/parse/table_definitions/consensys/StakingContract_event_NewOperator.json new file mode 100644 index 00000000..41920122 --- /dev/null +++ b/dags/resources/stages/parse/table_definitions/consensys/StakingContract_event_NewOperator.json @@ -0,0 +1,54 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "operatorAddress", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "feeRecipientAddress", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "index", + "type": "uint256" + } + ], + "name": "NewOperator", + "type": "event" + }, + "contract_address": "0xdc71affc862fceb6ad32be58e098423a7727bebd", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "consensys", + "schema": [ + { + "description": "", + "name": "operatorAddress", + "type": "STRING" + }, + { + "description": "", + "name": "feeRecipientAddress", + "type": "STRING" + }, + { + "description": "", + "name": "index", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "StakingContract_event_NewOperator" + } +} \ No newline at end of file diff --git a/dags/resources/stages/parse/table_definitions/consensys/StakingContract_event_SetWithdrawerCustomizationStatus.json b/dags/resources/stages/parse/table_definitions/consensys/StakingContract_event_SetWithdrawerCustomizationStatus.json new file mode 100644 index 00000000..d76af399 --- /dev/null +++ b/dags/resources/stages/parse/table_definitions/consensys/StakingContract_event_SetWithdrawerCustomizationStatus.json @@ -0,0 +1,32 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "bool", + "name": "_status", + "type": "bool" + } + ], + "name": "SetWithdrawerCustomizationStatus", + "type": "event" + }, + "contract_address": "0xdc71affc862fceb6ad32be58e098423a7727bebd", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "consensys", + "schema": [ + { + "description": "", + "name": "_status", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "StakingContract_event_SetWithdrawerCustomizationStatus" + } +} \ No newline at end of file diff --git a/dags/resources/stages/parse/table_definitions/consensys/StakingContract_event_ValidatorKeyRemoved.json b/dags/resources/stages/parse/table_definitions/consensys/StakingContract_event_ValidatorKeyRemoved.json new file mode 100644 index 00000000..75cc2281 --- /dev/null +++ b/dags/resources/stages/parse/table_definitions/consensys/StakingContract_event_ValidatorKeyRemoved.json @@ -0,0 +1,43 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "operatorIndex", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "publicKey", + "type": "bytes" + } + ], + "name": "ValidatorKeyRemoved", + "type": "event" + }, + "contract_address": "0xdc71affc862fceb6ad32be58e098423a7727bebd", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "consensys", + "schema": [ + { + "description": "", + "name": "operatorIndex", + "type": "STRING" + }, + { + "description": "", + "name": "publicKey", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "StakingContract_event_ValidatorKeyRemoved" + } +} \ No newline at end of file diff --git a/dags/resources/stages/parse/table_definitions/consensys/StakingContract_event_ValidatorKeysAdded.json b/dags/resources/stages/parse/table_definitions/consensys/StakingContract_event_ValidatorKeysAdded.json new file mode 100644 index 00000000..a3e572d4 --- /dev/null +++ b/dags/resources/stages/parse/table_definitions/consensys/StakingContract_event_ValidatorKeysAdded.json @@ -0,0 +1,54 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "operatorIndex", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "publicKeys", + "type": "bytes" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "signatures", + "type": "bytes" + } + ], + "name": "ValidatorKeysAdded", + "type": "event" + }, + "contract_address": "0xdc71affc862fceb6ad32be58e098423a7727bebd", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "consensys", + "schema": [ + { + "description": "", + "name": "operatorIndex", + "type": "STRING" + }, + { + "description": "", + "name": "publicKeys", + "type": "STRING" + }, + { + "description": "", + "name": "signatures", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "StakingContract_event_ValidatorKeysAdded" + } +} \ No newline at end of file diff --git a/dags/resources/stages/parse/table_definitions/consensys/StakingContract_event_ValidatorsEdited.json b/dags/resources/stages/parse/table_definitions/consensys/StakingContract_event_ValidatorsEdited.json new file mode 100644 index 00000000..a8c3312f --- /dev/null +++ b/dags/resources/stages/parse/table_definitions/consensys/StakingContract_event_ValidatorsEdited.json @@ -0,0 +1,32 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint256", + "name": "blockNumber", + "type": "uint256" + } + ], + "name": "ValidatorsEdited", + "type": "event" + }, + "contract_address": "0xdc71affc862fceb6ad32be58e098423a7727bebd", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "consensys", + "schema": [ + { + "description": "", + "name": "blockNumber", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "StakingContract_event_ValidatorsEdited" + } +} \ No newline at end of file