From 4c3c186f249cad74d76676df1e5fca7eccb2d5d7 Mon Sep 17 00:00:00 2001 From: prateekeng <118216760+prateekeng@users.noreply.github.com> Date: Tue, 3 Oct 2023 11:23:14 -0400 Subject: [PATCH] rename old kyber to legacy. add new kyber (#190) Co-authored-by: Michalis Alifierakis Co-authored-by: victators Co-authored-by: Qi Shao <123761078+qshao-gauntlet@users.noreply.github.com> --- ...sticFactory_event_ConfigMasterUpdated.json | 2 +- ...Factory_event_FeeConfigurationUpdated.json | 2 +- .../ElasticFactory_event_NFTManagerAdded.json | 43 ++++++++ ...lasticFactory_event_NFTManagerRemoved.json | 43 ++++++++ .../ElasticFactory_event_PoolCreated.json | 2 +- .../ElasticFactory_event_SwapFeeEnabled.json | 2 +- ...ticFactory_event_VestingPeriodUpdated.json | 32 ++++++ ...lasticFactory_event_WhitelistDisabled.json | 19 ++++ ...ElasticFactory_event_WhitelistEnabled.json | 19 ++++ ...gacyFactory_event_ConfigMasterUpdated.json | 43 ++++++++ ...Factory_event_FeeConfigurationUpdated.json | 43 ++++++++ ...lasticLegacyFactory_event_PoolCreated.json | 76 ++++++++++++++ ...ticLegacyFactory_event_SwapFeeEnabled.json | 43 ++++++++ .../kyber/ElasticLegacyPool_event_Burn.json | 87 ++++++++++++++++ .../ElasticLegacyPool_event_BurnRTokens.json | 65 ++++++++++++ .../kyber/ElasticLegacyPool_event_Flash.json | 87 ++++++++++++++++ .../ElasticLegacyPool_event_Initialize.json | 43 ++++++++ .../kyber/ElasticLegacyPool_event_Mint.json | 98 +++++++++++++++++++ .../kyber/ElasticLegacyPool_event_Swap.json | 98 +++++++++++++++++++ .../ElasticLegacyPool_event_Transfer.json | 54 ++++++++++ .../kyber/ElasticPool_event_Approval.json | 54 ++++++++++ 21 files changed, 951 insertions(+), 4 deletions(-) create mode 100644 airflow/dags/resources/stages/parse/table_definitions/kyber/ElasticFactory_event_NFTManagerAdded.json create mode 100644 airflow/dags/resources/stages/parse/table_definitions/kyber/ElasticFactory_event_NFTManagerRemoved.json create mode 100644 airflow/dags/resources/stages/parse/table_definitions/kyber/ElasticFactory_event_VestingPeriodUpdated.json create mode 100644 airflow/dags/resources/stages/parse/table_definitions/kyber/ElasticFactory_event_WhitelistDisabled.json create mode 100644 airflow/dags/resources/stages/parse/table_definitions/kyber/ElasticFactory_event_WhitelistEnabled.json create mode 100644 airflow/dags/resources/stages/parse/table_definitions/kyber/ElasticLegacyFactory_event_ConfigMasterUpdated.json create mode 100644 airflow/dags/resources/stages/parse/table_definitions/kyber/ElasticLegacyFactory_event_FeeConfigurationUpdated.json create mode 100644 airflow/dags/resources/stages/parse/table_definitions/kyber/ElasticLegacyFactory_event_PoolCreated.json create mode 100644 airflow/dags/resources/stages/parse/table_definitions/kyber/ElasticLegacyFactory_event_SwapFeeEnabled.json create mode 100644 airflow/dags/resources/stages/parse/table_definitions/kyber/ElasticLegacyPool_event_Burn.json create mode 100644 airflow/dags/resources/stages/parse/table_definitions/kyber/ElasticLegacyPool_event_BurnRTokens.json create mode 100644 airflow/dags/resources/stages/parse/table_definitions/kyber/ElasticLegacyPool_event_Flash.json create mode 100644 airflow/dags/resources/stages/parse/table_definitions/kyber/ElasticLegacyPool_event_Initialize.json create mode 100644 airflow/dags/resources/stages/parse/table_definitions/kyber/ElasticLegacyPool_event_Mint.json create mode 100644 airflow/dags/resources/stages/parse/table_definitions/kyber/ElasticLegacyPool_event_Swap.json create mode 100644 airflow/dags/resources/stages/parse/table_definitions/kyber/ElasticLegacyPool_event_Transfer.json create mode 100644 airflow/dags/resources/stages/parse/table_definitions/kyber/ElasticPool_event_Approval.json diff --git a/airflow/dags/resources/stages/parse/table_definitions/kyber/ElasticFactory_event_ConfigMasterUpdated.json b/airflow/dags/resources/stages/parse/table_definitions/kyber/ElasticFactory_event_ConfigMasterUpdated.json index 86d5cf49..5fba1599 100644 --- a/airflow/dags/resources/stages/parse/table_definitions/kyber/ElasticFactory_event_ConfigMasterUpdated.json +++ b/airflow/dags/resources/stages/parse/table_definitions/kyber/ElasticFactory_event_ConfigMasterUpdated.json @@ -19,7 +19,7 @@ "name": "ConfigMasterUpdated", "type": "event" }, - "contract_address": "0x5f1dddbf348ac2fbe22a163e30f99f9ece3dd50a", + "contract_address": "0xc7a590291e07b9fe9e64b86c58fd8fc764308c4a", "field_mapping": {}, "type": "log" }, diff --git a/airflow/dags/resources/stages/parse/table_definitions/kyber/ElasticFactory_event_FeeConfigurationUpdated.json b/airflow/dags/resources/stages/parse/table_definitions/kyber/ElasticFactory_event_FeeConfigurationUpdated.json index 5e2113c2..d8d0b9f0 100644 --- a/airflow/dags/resources/stages/parse/table_definitions/kyber/ElasticFactory_event_FeeConfigurationUpdated.json +++ b/airflow/dags/resources/stages/parse/table_definitions/kyber/ElasticFactory_event_FeeConfigurationUpdated.json @@ -19,7 +19,7 @@ "name": "FeeConfigurationUpdated", "type": "event" }, - "contract_address": "0x5f1dddbf348ac2fbe22a163e30f99f9ece3dd50a", + "contract_address": "0xc7a590291e07b9fe9e64b86c58fd8fc764308c4a", "field_mapping": {}, "type": "log" }, diff --git a/airflow/dags/resources/stages/parse/table_definitions/kyber/ElasticFactory_event_NFTManagerAdded.json b/airflow/dags/resources/stages/parse/table_definitions/kyber/ElasticFactory_event_NFTManagerAdded.json new file mode 100644 index 00000000..c91d8d6d --- /dev/null +++ b/airflow/dags/resources/stages/parse/table_definitions/kyber/ElasticFactory_event_NFTManagerAdded.json @@ -0,0 +1,43 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "_nftManager", + "type": "address" + }, + { + "indexed": false, + "internalType": "bool", + "name": "added", + "type": "bool" + } + ], + "name": "NFTManagerAdded", + "type": "event" + }, + "contract_address": "0xc7a590291e07b9fe9e64b86c58fd8fc764308c4a", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "kyber", + "schema": [ + { + "description": "", + "name": "_nftManager", + "type": "STRING" + }, + { + "description": "", + "name": "added", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "ElasticFactory_event_NFTManagerAdded" + } +} \ No newline at end of file diff --git a/airflow/dags/resources/stages/parse/table_definitions/kyber/ElasticFactory_event_NFTManagerRemoved.json b/airflow/dags/resources/stages/parse/table_definitions/kyber/ElasticFactory_event_NFTManagerRemoved.json new file mode 100644 index 00000000..212b841c --- /dev/null +++ b/airflow/dags/resources/stages/parse/table_definitions/kyber/ElasticFactory_event_NFTManagerRemoved.json @@ -0,0 +1,43 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "_nftManager", + "type": "address" + }, + { + "indexed": false, + "internalType": "bool", + "name": "removed", + "type": "bool" + } + ], + "name": "NFTManagerRemoved", + "type": "event" + }, + "contract_address": "0xc7a590291e07b9fe9e64b86c58fd8fc764308c4a", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "kyber", + "schema": [ + { + "description": "", + "name": "_nftManager", + "type": "STRING" + }, + { + "description": "", + "name": "removed", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "ElasticFactory_event_NFTManagerRemoved" + } +} \ No newline at end of file diff --git a/airflow/dags/resources/stages/parse/table_definitions/kyber/ElasticFactory_event_PoolCreated.json b/airflow/dags/resources/stages/parse/table_definitions/kyber/ElasticFactory_event_PoolCreated.json index 16069956..acdd5b5f 100644 --- a/airflow/dags/resources/stages/parse/table_definitions/kyber/ElasticFactory_event_PoolCreated.json +++ b/airflow/dags/resources/stages/parse/table_definitions/kyber/ElasticFactory_event_PoolCreated.json @@ -37,7 +37,7 @@ "name": "PoolCreated", "type": "event" }, - "contract_address": "0x5f1dddbf348ac2fbe22a163e30f99f9ece3dd50a", + "contract_address": "0xc7a590291e07b9fe9e64b86c58fd8fc764308c4a", "field_mapping": {}, "type": "log" }, diff --git a/airflow/dags/resources/stages/parse/table_definitions/kyber/ElasticFactory_event_SwapFeeEnabled.json b/airflow/dags/resources/stages/parse/table_definitions/kyber/ElasticFactory_event_SwapFeeEnabled.json index bc4c880f..a8fe572e 100644 --- a/airflow/dags/resources/stages/parse/table_definitions/kyber/ElasticFactory_event_SwapFeeEnabled.json +++ b/airflow/dags/resources/stages/parse/table_definitions/kyber/ElasticFactory_event_SwapFeeEnabled.json @@ -19,7 +19,7 @@ "name": "SwapFeeEnabled", "type": "event" }, - "contract_address": "0x5f1dddbf348ac2fbe22a163e30f99f9ece3dd50a", + "contract_address": "0xc7a590291e07b9fe9e64b86c58fd8fc764308c4a", "field_mapping": {}, "type": "log" }, diff --git a/airflow/dags/resources/stages/parse/table_definitions/kyber/ElasticFactory_event_VestingPeriodUpdated.json b/airflow/dags/resources/stages/parse/table_definitions/kyber/ElasticFactory_event_VestingPeriodUpdated.json new file mode 100644 index 00000000..439aa893 --- /dev/null +++ b/airflow/dags/resources/stages/parse/table_definitions/kyber/ElasticFactory_event_VestingPeriodUpdated.json @@ -0,0 +1,32 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint32", + "name": "vestingPeriod", + "type": "uint32" + } + ], + "name": "VestingPeriodUpdated", + "type": "event" + }, + "contract_address": "0xc7a590291e07b9fe9e64b86c58fd8fc764308c4a", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "kyber", + "schema": [ + { + "description": "", + "name": "vestingPeriod", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "ElasticFactory_event_VestingPeriodUpdated" + } +} \ No newline at end of file diff --git a/airflow/dags/resources/stages/parse/table_definitions/kyber/ElasticFactory_event_WhitelistDisabled.json b/airflow/dags/resources/stages/parse/table_definitions/kyber/ElasticFactory_event_WhitelistDisabled.json new file mode 100644 index 00000000..14c1eaf8 --- /dev/null +++ b/airflow/dags/resources/stages/parse/table_definitions/kyber/ElasticFactory_event_WhitelistDisabled.json @@ -0,0 +1,19 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [], + "name": "WhitelistDisabled", + "type": "event" + }, + "contract_address": "0xc7a590291e07b9fe9e64b86c58fd8fc764308c4a", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "kyber", + "schema": [], + "table_description": "", + "table_name": "ElasticFactory_event_WhitelistDisabled" + } +} \ No newline at end of file diff --git a/airflow/dags/resources/stages/parse/table_definitions/kyber/ElasticFactory_event_WhitelistEnabled.json b/airflow/dags/resources/stages/parse/table_definitions/kyber/ElasticFactory_event_WhitelistEnabled.json new file mode 100644 index 00000000..eb52fed2 --- /dev/null +++ b/airflow/dags/resources/stages/parse/table_definitions/kyber/ElasticFactory_event_WhitelistEnabled.json @@ -0,0 +1,19 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [], + "name": "WhitelistEnabled", + "type": "event" + }, + "contract_address": "0xc7a590291e07b9fe9e64b86c58fd8fc764308c4a", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "kyber", + "schema": [], + "table_description": "", + "table_name": "ElasticFactory_event_WhitelistEnabled" + } +} \ No newline at end of file diff --git a/airflow/dags/resources/stages/parse/table_definitions/kyber/ElasticLegacyFactory_event_ConfigMasterUpdated.json b/airflow/dags/resources/stages/parse/table_definitions/kyber/ElasticLegacyFactory_event_ConfigMasterUpdated.json new file mode 100644 index 00000000..6c18bdea --- /dev/null +++ b/airflow/dags/resources/stages/parse/table_definitions/kyber/ElasticLegacyFactory_event_ConfigMasterUpdated.json @@ -0,0 +1,43 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "oldConfigMaster", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "newConfigMaster", + "type": "address" + } + ], + "name": "ConfigMasterUpdated", + "type": "event" + }, + "contract_address": "0x5f1dddbf348ac2fbe22a163e30f99f9ece3dd50a", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "kyber", + "schema": [ + { + "description": "", + "name": "oldConfigMaster", + "type": "STRING" + }, + { + "description": "", + "name": "newConfigMaster", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "ElasticLegacyFactory_event_ConfigMasterUpdated" + } +} \ No newline at end of file diff --git a/airflow/dags/resources/stages/parse/table_definitions/kyber/ElasticLegacyFactory_event_FeeConfigurationUpdated.json b/airflow/dags/resources/stages/parse/table_definitions/kyber/ElasticLegacyFactory_event_FeeConfigurationUpdated.json new file mode 100644 index 00000000..cd8561f0 --- /dev/null +++ b/airflow/dags/resources/stages/parse/table_definitions/kyber/ElasticLegacyFactory_event_FeeConfigurationUpdated.json @@ -0,0 +1,43 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "feeTo", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint24", + "name": "governmentFeeUnits", + "type": "uint24" + } + ], + "name": "FeeConfigurationUpdated", + "type": "event" + }, + "contract_address": "0x5f1dddbf348ac2fbe22a163e30f99f9ece3dd50a", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "kyber", + "schema": [ + { + "description": "", + "name": "feeTo", + "type": "STRING" + }, + { + "description": "", + "name": "governmentFeeUnits", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "ElasticLegacyFactory_event_FeeConfigurationUpdated" + } +} \ No newline at end of file diff --git a/airflow/dags/resources/stages/parse/table_definitions/kyber/ElasticLegacyFactory_event_PoolCreated.json b/airflow/dags/resources/stages/parse/table_definitions/kyber/ElasticLegacyFactory_event_PoolCreated.json new file mode 100644 index 00000000..3cfc7e14 --- /dev/null +++ b/airflow/dags/resources/stages/parse/table_definitions/kyber/ElasticLegacyFactory_event_PoolCreated.json @@ -0,0 +1,76 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "token0", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "token1", + "type": "address" + }, + { + "indexed": true, + "internalType": "uint24", + "name": "swapFeeUnits", + "type": "uint24" + }, + { + "indexed": false, + "internalType": "int24", + "name": "tickDistance", + "type": "int24" + }, + { + "indexed": false, + "internalType": "address", + "name": "pool", + "type": "address" + } + ], + "name": "PoolCreated", + "type": "event" + }, + "contract_address": "0x5f1dddbf348ac2fbe22a163e30f99f9ece3dd50a", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "kyber", + "schema": [ + { + "description": "", + "name": "token0", + "type": "STRING" + }, + { + "description": "", + "name": "token1", + "type": "STRING" + }, + { + "description": "", + "name": "swapFeeUnits", + "type": "STRING" + }, + { + "description": "", + "name": "tickDistance", + "type": "STRING" + }, + { + "description": "", + "name": "pool", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "ElasticLegacyFactory_event_PoolCreated" + } +} \ No newline at end of file diff --git a/airflow/dags/resources/stages/parse/table_definitions/kyber/ElasticLegacyFactory_event_SwapFeeEnabled.json b/airflow/dags/resources/stages/parse/table_definitions/kyber/ElasticLegacyFactory_event_SwapFeeEnabled.json new file mode 100644 index 00000000..b218100f --- /dev/null +++ b/airflow/dags/resources/stages/parse/table_definitions/kyber/ElasticLegacyFactory_event_SwapFeeEnabled.json @@ -0,0 +1,43 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint24", + "name": "swapFeeUnits", + "type": "uint24" + }, + { + "indexed": true, + "internalType": "int24", + "name": "tickDistance", + "type": "int24" + } + ], + "name": "SwapFeeEnabled", + "type": "event" + }, + "contract_address": "0x5f1dddbf348ac2fbe22a163e30f99f9ece3dd50a", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "kyber", + "schema": [ + { + "description": "", + "name": "swapFeeUnits", + "type": "STRING" + }, + { + "description": "", + "name": "tickDistance", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "ElasticLegacyFactory_event_SwapFeeEnabled" + } +} \ No newline at end of file diff --git a/airflow/dags/resources/stages/parse/table_definitions/kyber/ElasticLegacyPool_event_Burn.json b/airflow/dags/resources/stages/parse/table_definitions/kyber/ElasticLegacyPool_event_Burn.json new file mode 100644 index 00000000..155e828b --- /dev/null +++ b/airflow/dags/resources/stages/parse/table_definitions/kyber/ElasticLegacyPool_event_Burn.json @@ -0,0 +1,87 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "owner", + "type": "address" + }, + { + "indexed": true, + "internalType": "int24", + "name": "tickLower", + "type": "int24" + }, + { + "indexed": true, + "internalType": "int24", + "name": "tickUpper", + "type": "int24" + }, + { + "indexed": false, + "internalType": "uint128", + "name": "qty", + "type": "uint128" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "qty0", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "qty1", + "type": "uint256" + } + ], + "name": "Burn", + "type": "event" + }, + "contract_address": "SELECT pool FROM ref('ElasticLegacyFactory_event_PoolCreated')", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "kyber", + "schema": [ + { + "description": "", + "name": "owner", + "type": "STRING" + }, + { + "description": "", + "name": "tickLower", + "type": "STRING" + }, + { + "description": "", + "name": "tickUpper", + "type": "STRING" + }, + { + "description": "", + "name": "qty", + "type": "STRING" + }, + { + "description": "", + "name": "qty0", + "type": "STRING" + }, + { + "description": "", + "name": "qty1", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "ElasticLegacyPool_event_Burn" + } +} \ No newline at end of file diff --git a/airflow/dags/resources/stages/parse/table_definitions/kyber/ElasticLegacyPool_event_BurnRTokens.json b/airflow/dags/resources/stages/parse/table_definitions/kyber/ElasticLegacyPool_event_BurnRTokens.json new file mode 100644 index 00000000..2423e5d2 --- /dev/null +++ b/airflow/dags/resources/stages/parse/table_definitions/kyber/ElasticLegacyPool_event_BurnRTokens.json @@ -0,0 +1,65 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "owner", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "qty", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "qty0", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "qty1", + "type": "uint256" + } + ], + "name": "BurnRTokens", + "type": "event" + }, + "contract_address": "SELECT pool FROM ref('ElasticLegacyFactory_event_PoolCreated')", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "kyber", + "schema": [ + { + "description": "", + "name": "owner", + "type": "STRING" + }, + { + "description": "", + "name": "qty", + "type": "STRING" + }, + { + "description": "", + "name": "qty0", + "type": "STRING" + }, + { + "description": "", + "name": "qty1", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "ElasticLegacyPool_event_BurnRTokens" + } +} \ No newline at end of file diff --git a/airflow/dags/resources/stages/parse/table_definitions/kyber/ElasticLegacyPool_event_Flash.json b/airflow/dags/resources/stages/parse/table_definitions/kyber/ElasticLegacyPool_event_Flash.json new file mode 100644 index 00000000..413e7129 --- /dev/null +++ b/airflow/dags/resources/stages/parse/table_definitions/kyber/ElasticLegacyPool_event_Flash.json @@ -0,0 +1,87 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "sender", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "recipient", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "qty0", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "qty1", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "paid0", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "paid1", + "type": "uint256" + } + ], + "name": "Flash", + "type": "event" + }, + "contract_address": "SELECT pool FROM ref('ElasticLegacyFactory_event_PoolCreated')", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "kyber", + "schema": [ + { + "description": "", + "name": "sender", + "type": "STRING" + }, + { + "description": "", + "name": "recipient", + "type": "STRING" + }, + { + "description": "", + "name": "qty0", + "type": "STRING" + }, + { + "description": "", + "name": "qty1", + "type": "STRING" + }, + { + "description": "", + "name": "paid0", + "type": "STRING" + }, + { + "description": "", + "name": "paid1", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "ElasticLegacyPool_event_Flash" + } +} \ No newline at end of file diff --git a/airflow/dags/resources/stages/parse/table_definitions/kyber/ElasticLegacyPool_event_Initialize.json b/airflow/dags/resources/stages/parse/table_definitions/kyber/ElasticLegacyPool_event_Initialize.json new file mode 100644 index 00000000..0c5e293d --- /dev/null +++ b/airflow/dags/resources/stages/parse/table_definitions/kyber/ElasticLegacyPool_event_Initialize.json @@ -0,0 +1,43 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint160", + "name": "sqrtP", + "type": "uint160" + }, + { + "indexed": false, + "internalType": "int24", + "name": "tick", + "type": "int24" + } + ], + "name": "Initialize", + "type": "event" + }, + "contract_address": "SELECT pool FROM ref('ElasticLegacyFactory_event_PoolCreated')", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "kyber", + "schema": [ + { + "description": "", + "name": "sqrtP", + "type": "STRING" + }, + { + "description": "", + "name": "tick", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "ElasticLegacyPool_event_Initialize" + } +} \ No newline at end of file diff --git a/airflow/dags/resources/stages/parse/table_definitions/kyber/ElasticLegacyPool_event_Mint.json b/airflow/dags/resources/stages/parse/table_definitions/kyber/ElasticLegacyPool_event_Mint.json new file mode 100644 index 00000000..41a90950 --- /dev/null +++ b/airflow/dags/resources/stages/parse/table_definitions/kyber/ElasticLegacyPool_event_Mint.json @@ -0,0 +1,98 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "sender", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "owner", + "type": "address" + }, + { + "indexed": true, + "internalType": "int24", + "name": "tickLower", + "type": "int24" + }, + { + "indexed": true, + "internalType": "int24", + "name": "tickUpper", + "type": "int24" + }, + { + "indexed": false, + "internalType": "uint128", + "name": "qty", + "type": "uint128" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "qty0", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "qty1", + "type": "uint256" + } + ], + "name": "Mint", + "type": "event" + }, + "contract_address": "SELECT pool FROM ref('ElasticLegacyFactory_event_PoolCreated')", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "kyber", + "schema": [ + { + "description": "", + "name": "sender", + "type": "STRING" + }, + { + "description": "", + "name": "owner", + "type": "STRING" + }, + { + "description": "", + "name": "tickLower", + "type": "STRING" + }, + { + "description": "", + "name": "tickUpper", + "type": "STRING" + }, + { + "description": "", + "name": "qty", + "type": "STRING" + }, + { + "description": "", + "name": "qty0", + "type": "STRING" + }, + { + "description": "", + "name": "qty1", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "ElasticLegacyPool_event_Mint" + } +} \ No newline at end of file diff --git a/airflow/dags/resources/stages/parse/table_definitions/kyber/ElasticLegacyPool_event_Swap.json b/airflow/dags/resources/stages/parse/table_definitions/kyber/ElasticLegacyPool_event_Swap.json new file mode 100644 index 00000000..38cfae9b --- /dev/null +++ b/airflow/dags/resources/stages/parse/table_definitions/kyber/ElasticLegacyPool_event_Swap.json @@ -0,0 +1,98 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "sender", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "recipient", + "type": "address" + }, + { + "indexed": false, + "internalType": "int256", + "name": "deltaQty0", + "type": "int256" + }, + { + "indexed": false, + "internalType": "int256", + "name": "deltaQty1", + "type": "int256" + }, + { + "indexed": false, + "internalType": "uint160", + "name": "sqrtP", + "type": "uint160" + }, + { + "indexed": false, + "internalType": "uint128", + "name": "liquidity", + "type": "uint128" + }, + { + "indexed": false, + "internalType": "int24", + "name": "currentTick", + "type": "int24" + } + ], + "name": "Swap", + "type": "event" + }, + "contract_address": "SELECT pool FROM ref('ElasticLegacyFactory_event_PoolCreated')", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "kyber", + "schema": [ + { + "description": "", + "name": "sender", + "type": "STRING" + }, + { + "description": "", + "name": "recipient", + "type": "STRING" + }, + { + "description": "", + "name": "deltaQty0", + "type": "STRING" + }, + { + "description": "", + "name": "deltaQty1", + "type": "STRING" + }, + { + "description": "", + "name": "sqrtP", + "type": "STRING" + }, + { + "description": "", + "name": "liquidity", + "type": "STRING" + }, + { + "description": "", + "name": "currentTick", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "ElasticLegacyPool_event_Swap" + } +} \ No newline at end of file diff --git a/airflow/dags/resources/stages/parse/table_definitions/kyber/ElasticLegacyPool_event_Transfer.json b/airflow/dags/resources/stages/parse/table_definitions/kyber/ElasticLegacyPool_event_Transfer.json new file mode 100644 index 00000000..626cc277 --- /dev/null +++ b/airflow/dags/resources/stages/parse/table_definitions/kyber/ElasticLegacyPool_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 pool FROM ref('ElasticLegacyFactory_event_PoolCreated')", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "kyber", + "schema": [ + { + "description": "", + "name": "from", + "type": "STRING" + }, + { + "description": "", + "name": "to", + "type": "STRING" + }, + { + "description": "", + "name": "value", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "ElasticLegacyPool_event_Transfer" + } +} \ No newline at end of file diff --git a/airflow/dags/resources/stages/parse/table_definitions/kyber/ElasticPool_event_Approval.json b/airflow/dags/resources/stages/parse/table_definitions/kyber/ElasticPool_event_Approval.json new file mode 100644 index 00000000..24b3b4ca --- /dev/null +++ b/airflow/dags/resources/stages/parse/table_definitions/kyber/ElasticPool_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 pool FROM ref('ElasticFactory_event_PoolCreated')", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "kyber", + "schema": [ + { + "description": "", + "name": "owner", + "type": "STRING" + }, + { + "description": "", + "name": "spender", + "type": "STRING" + }, + { + "description": "", + "name": "value", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "ElasticPool_event_Approval" + } +} \ No newline at end of file