From c7a842a4b6b0eee0e3188801f9747b7a4dabe9b9 Mon Sep 17 00:00:00 2001 From: hmeng-gauntlet <150049455+hmeng-gauntlet@users.noreply.github.com> Date: Tue, 16 Jul 2024 11:26:47 -0400 Subject: [PATCH] add Pendle SY token events (#766) --- .../pendle/PendleSYToken_event_Approval.json | 54 +++++++++++++ .../PendleSYToken_event_ClaimRewards.json | 54 +++++++++++++ .../pendle/PendleSYToken_event_Deposit.json | 76 +++++++++++++++++++ ...ndleSYToken_event_EIP712DomainChanged.json | 19 +++++ .../PendleSYToken_event_Initialized.json | 32 ++++++++ ...dleSYToken_event_OwnershipTransferred.json | 43 +++++++++++ .../pendle/PendleSYToken_event_Paused.json | 32 ++++++++ .../pendle/PendleSYToken_event_Redeem.json | 76 +++++++++++++++++++ ...YToken_event_SetNewExchangeRateOracle.json | 32 ++++++++ .../pendle/PendleSYToken_event_Transfer.json | 54 +++++++++++++ .../pendle/PendleSYToken_event_Unpaused.json | 32 ++++++++ 11 files changed, 504 insertions(+) create mode 100644 dags/resources/stages/parse/table_definitions/pendle/PendleSYToken_event_Approval.json create mode 100644 dags/resources/stages/parse/table_definitions/pendle/PendleSYToken_event_ClaimRewards.json create mode 100644 dags/resources/stages/parse/table_definitions/pendle/PendleSYToken_event_Deposit.json create mode 100644 dags/resources/stages/parse/table_definitions/pendle/PendleSYToken_event_EIP712DomainChanged.json create mode 100644 dags/resources/stages/parse/table_definitions/pendle/PendleSYToken_event_Initialized.json create mode 100644 dags/resources/stages/parse/table_definitions/pendle/PendleSYToken_event_OwnershipTransferred.json create mode 100644 dags/resources/stages/parse/table_definitions/pendle/PendleSYToken_event_Paused.json create mode 100644 dags/resources/stages/parse/table_definitions/pendle/PendleSYToken_event_Redeem.json create mode 100644 dags/resources/stages/parse/table_definitions/pendle/PendleSYToken_event_SetNewExchangeRateOracle.json create mode 100644 dags/resources/stages/parse/table_definitions/pendle/PendleSYToken_event_Transfer.json create mode 100644 dags/resources/stages/parse/table_definitions/pendle/PendleSYToken_event_Unpaused.json diff --git a/dags/resources/stages/parse/table_definitions/pendle/PendleSYToken_event_Approval.json b/dags/resources/stages/parse/table_definitions/pendle/PendleSYToken_event_Approval.json new file mode 100644 index 00000000..0854bf0b --- /dev/null +++ b/dags/resources/stages/parse/table_definitions/pendle/PendleSYToken_event_Approval.json @@ -0,0 +1,54 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "owner", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "spender", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "value", + "type": "uint256" + } + ], + "name": "Approval", + "type": "event" + }, + "contract_address": "SELECT DISTINCT SY FROM ref('PendleYieldContractFactory_event_CreateYieldContract')", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "pendle", + "schema": [ + { + "description": "", + "name": "owner", + "type": "STRING" + }, + { + "description": "", + "name": "spender", + "type": "STRING" + }, + { + "description": "", + "name": "value", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "PendleSYToken_event_Approval" + } +} \ No newline at end of file diff --git a/dags/resources/stages/parse/table_definitions/pendle/PendleSYToken_event_ClaimRewards.json b/dags/resources/stages/parse/table_definitions/pendle/PendleSYToken_event_ClaimRewards.json new file mode 100644 index 00000000..1dd2ab34 --- /dev/null +++ b/dags/resources/stages/parse/table_definitions/pendle/PendleSYToken_event_ClaimRewards.json @@ -0,0 +1,54 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "user", + "type": "address" + }, + { + "indexed": false, + "internalType": "address[]", + "name": "rewardTokens", + "type": "address[]" + }, + { + "indexed": false, + "internalType": "uint256[]", + "name": "rewardAmounts", + "type": "uint256[]" + } + ], + "name": "ClaimRewards", + "type": "event" + }, + "contract_address": "SELECT DISTINCT SY FROM ref('PendleYieldContractFactory_event_CreateYieldContract')", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "pendle", + "schema": [ + { + "description": "", + "name": "user", + "type": "STRING" + }, + { + "description": "", + "name": "rewardTokens", + "type": "STRING" + }, + { + "description": "", + "name": "rewardAmounts", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "PendleSYToken_event_ClaimRewards" + } +} \ No newline at end of file diff --git a/dags/resources/stages/parse/table_definitions/pendle/PendleSYToken_event_Deposit.json b/dags/resources/stages/parse/table_definitions/pendle/PendleSYToken_event_Deposit.json new file mode 100644 index 00000000..c6ee5c1f --- /dev/null +++ b/dags/resources/stages/parse/table_definitions/pendle/PendleSYToken_event_Deposit.json @@ -0,0 +1,76 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "caller", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "receiver", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "tokenIn", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amountDeposited", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amountSyOut", + "type": "uint256" + } + ], + "name": "Deposit", + "type": "event" + }, + "contract_address": "SELECT DISTINCT SY FROM ref('PendleYieldContractFactory_event_CreateYieldContract')", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "pendle", + "schema": [ + { + "description": "", + "name": "caller", + "type": "STRING" + }, + { + "description": "", + "name": "receiver", + "type": "STRING" + }, + { + "description": "", + "name": "tokenIn", + "type": "STRING" + }, + { + "description": "", + "name": "amountDeposited", + "type": "STRING" + }, + { + "description": "", + "name": "amountSyOut", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "PendleSYToken_event_Deposit" + } +} \ No newline at end of file diff --git a/dags/resources/stages/parse/table_definitions/pendle/PendleSYToken_event_EIP712DomainChanged.json b/dags/resources/stages/parse/table_definitions/pendle/PendleSYToken_event_EIP712DomainChanged.json new file mode 100644 index 00000000..9ca58944 --- /dev/null +++ b/dags/resources/stages/parse/table_definitions/pendle/PendleSYToken_event_EIP712DomainChanged.json @@ -0,0 +1,19 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [], + "name": "EIP712DomainChanged", + "type": "event" + }, + "contract_address": "SELECT DISTINCT SY FROM ref('PendleYieldContractFactory_event_CreateYieldContract')", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "pendle", + "schema": [], + "table_description": "", + "table_name": "PendleSYToken_event_EIP712DomainChanged" + } +} \ No newline at end of file diff --git a/dags/resources/stages/parse/table_definitions/pendle/PendleSYToken_event_Initialized.json b/dags/resources/stages/parse/table_definitions/pendle/PendleSYToken_event_Initialized.json new file mode 100644 index 00000000..848c7410 --- /dev/null +++ b/dags/resources/stages/parse/table_definitions/pendle/PendleSYToken_event_Initialized.json @@ -0,0 +1,32 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint8", + "name": "version", + "type": "uint8" + } + ], + "name": "Initialized", + "type": "event" + }, + "contract_address": "SELECT DISTINCT SY FROM ref('PendleYieldContractFactory_event_CreateYieldContract')", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "pendle", + "schema": [ + { + "description": "", + "name": "version", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "PendleSYToken_event_Initialized" + } +} \ No newline at end of file diff --git a/dags/resources/stages/parse/table_definitions/pendle/PendleSYToken_event_OwnershipTransferred.json b/dags/resources/stages/parse/table_definitions/pendle/PendleSYToken_event_OwnershipTransferred.json new file mode 100644 index 00000000..9c214746 --- /dev/null +++ b/dags/resources/stages/parse/table_definitions/pendle/PendleSYToken_event_OwnershipTransferred.json @@ -0,0 +1,43 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "previousOwner", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "OwnershipTransferred", + "type": "event" + }, + "contract_address": "SELECT DISTINCT SY FROM ref('PendleYieldContractFactory_event_CreateYieldContract')", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "pendle", + "schema": [ + { + "description": "", + "name": "previousOwner", + "type": "STRING" + }, + { + "description": "", + "name": "newOwner", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "PendleSYToken_event_OwnershipTransferred" + } +} \ No newline at end of file diff --git a/dags/resources/stages/parse/table_definitions/pendle/PendleSYToken_event_Paused.json b/dags/resources/stages/parse/table_definitions/pendle/PendleSYToken_event_Paused.json new file mode 100644 index 00000000..32c178b0 --- /dev/null +++ b/dags/resources/stages/parse/table_definitions/pendle/PendleSYToken_event_Paused.json @@ -0,0 +1,32 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "account", + "type": "address" + } + ], + "name": "Paused", + "type": "event" + }, + "contract_address": "SELECT DISTINCT SY FROM ref('PendleYieldContractFactory_event_CreateYieldContract')", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "pendle", + "schema": [ + { + "description": "", + "name": "account", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "PendleSYToken_event_Paused" + } +} \ No newline at end of file diff --git a/dags/resources/stages/parse/table_definitions/pendle/PendleSYToken_event_Redeem.json b/dags/resources/stages/parse/table_definitions/pendle/PendleSYToken_event_Redeem.json new file mode 100644 index 00000000..30667a85 --- /dev/null +++ b/dags/resources/stages/parse/table_definitions/pendle/PendleSYToken_event_Redeem.json @@ -0,0 +1,76 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "caller", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "receiver", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "tokenOut", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amountSyToRedeem", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amountTokenOut", + "type": "uint256" + } + ], + "name": "Redeem", + "type": "event" + }, + "contract_address": "SELECT DISTINCT SY FROM ref('PendleYieldContractFactory_event_CreateYieldContract')", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "pendle", + "schema": [ + { + "description": "", + "name": "caller", + "type": "STRING" + }, + { + "description": "", + "name": "receiver", + "type": "STRING" + }, + { + "description": "", + "name": "tokenOut", + "type": "STRING" + }, + { + "description": "", + "name": "amountSyToRedeem", + "type": "STRING" + }, + { + "description": "", + "name": "amountTokenOut", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "PendleSYToken_event_Redeem" + } +} \ No newline at end of file diff --git a/dags/resources/stages/parse/table_definitions/pendle/PendleSYToken_event_SetNewExchangeRateOracle.json b/dags/resources/stages/parse/table_definitions/pendle/PendleSYToken_event_SetNewExchangeRateOracle.json new file mode 100644 index 00000000..b07fa942 --- /dev/null +++ b/dags/resources/stages/parse/table_definitions/pendle/PendleSYToken_event_SetNewExchangeRateOracle.json @@ -0,0 +1,32 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "oracle", + "type": "address" + } + ], + "name": "SetNewExchangeRateOracle", + "type": "event" + }, + "contract_address": "SELECT DISTINCT SY FROM ref('PendleYieldContractFactory_event_CreateYieldContract')", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "pendle", + "schema": [ + { + "description": "", + "name": "oracle", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "PendleSYToken_event_SetNewExchangeRateOracle" + } +} \ No newline at end of file diff --git a/dags/resources/stages/parse/table_definitions/pendle/PendleSYToken_event_Transfer.json b/dags/resources/stages/parse/table_definitions/pendle/PendleSYToken_event_Transfer.json new file mode 100644 index 00000000..d7867b6a --- /dev/null +++ b/dags/resources/stages/parse/table_definitions/pendle/PendleSYToken_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": "value", + "type": "uint256" + } + ], + "name": "Transfer", + "type": "event" + }, + "contract_address": "SELECT DISTINCT SY FROM ref('PendleYieldContractFactory_event_CreateYieldContract')", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "pendle", + "schema": [ + { + "description": "", + "name": "from", + "type": "STRING" + }, + { + "description": "", + "name": "to", + "type": "STRING" + }, + { + "description": "", + "name": "value", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "PendleSYToken_event_Transfer" + } +} \ No newline at end of file diff --git a/dags/resources/stages/parse/table_definitions/pendle/PendleSYToken_event_Unpaused.json b/dags/resources/stages/parse/table_definitions/pendle/PendleSYToken_event_Unpaused.json new file mode 100644 index 00000000..587a9ec3 --- /dev/null +++ b/dags/resources/stages/parse/table_definitions/pendle/PendleSYToken_event_Unpaused.json @@ -0,0 +1,32 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "account", + "type": "address" + } + ], + "name": "Unpaused", + "type": "event" + }, + "contract_address": "SELECT DISTINCT SY FROM ref('PendleYieldContractFactory_event_CreateYieldContract')", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "pendle", + "schema": [ + { + "description": "", + "name": "account", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "PendleSYToken_event_Unpaused" + } +} \ No newline at end of file