From 1ea2a410ec08ab6877db752a481dd81a36e698c0 Mon Sep 17 00:00:00 2001 From: qshao-gauntlet Date: Thu, 16 Nov 2023 11:44:55 -0500 Subject: [PATCH 1/3] removing deprecating feeds --- .../view_AccessControlledOffchainAggregator_info.sql | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dags/resources/stages/parse/table_definitions/chainlink/view_AccessControlledOffchainAggregator_info.sql b/dags/resources/stages/parse/table_definitions/chainlink/view_AccessControlledOffchainAggregator_info.sql index e6c1472b..e06682cf 100644 --- a/dags/resources/stages/parse/table_definitions/chainlink/view_AccessControlledOffchainAggregator_info.sql +++ b/dags/resources/stages/parse/table_definitions/chainlink/view_AccessControlledOffchainAggregator_info.sql @@ -1,12 +1,12 @@ SELECT * FROM UNNEST([STRUCT('0xb4c4a493ab6356497713a78ffa6c60fb53517c63' as contract_address, 8 as decimals, '0xcd627aa160a6fa45eb793d19ef54f5062f20f33f' as proxy_address, 'CRV / USD' as description, 4 as version), STRUCT('0x780f1bd91a5a22ede36d4b2b2c0eccb9b1726a28' as contract_address, 8 as decimals, '0x5c00128d4d1c2f4f652c267d7bcdd7ac99c16e16' as proxy_address, 'ENS / USD' as description, 4 as version), -STRUCT('0x8093150ec164753994a1f65616e04ae92a9ef8c5' as contract_address, 8 as decimals, '0x66a47b7206130e6ff64854ef0e1edfa237e65339' as proxy_address, 'BADGER / USD' as description, 4 as version), +-- STRUCT('0x8093150ec164753994a1f65616e04ae92a9ef8c5' as contract_address, 8 as decimals, '0x66a47b7206130e6ff64854ef0e1edfa237e65339' as proxy_address, 'BADGER / USD' as description, 4 as version), STRUCT('0xe62b71cf983019bff55bc83b48601ce8419650cc' as contract_address, 8 as decimals, '0x5f4ec3df9cbd43714fe2740f5e3616155c5b8419' as proxy_address, 'ETH / USD' as description, 4 as version), STRUCT('0xd5090674b4653240cd94ee886484ca808c6e6694' as contract_address, 18 as decimals, '0xe20ca8d7546932360e37e9d72c1a47334af57706' as proxy_address, 'AMPL / USD' as description, 4 as version), STRUCT('0xdbe1941bfbe4410d6865b9b7078e0b49af144d2d' as contract_address, 8 as decimals, '0xf4030086522a5beea4988f8ca5b36dbc97bee88c' as proxy_address, 'BTC / USD' as description, 4 as version), STRUCT('0x98953e9c76573e06ec265bdde1dbb89fa02d56d3' as contract_address, 8 as decimals, '0xec746ecf986e2927abd291a2a1716c940100f8ba' as proxy_address, 'TUSD / USD' as description, 4 as version), STRUCT('0xd2bdd1e01fd2f8d7d42b209c111c7b32158b5a42' as contract_address, 8 as decimals, '0xc929ad75b72593967de83e7f7cda0493458261d9' as proxy_address, '1INCH / USD' as description, 4 as version), -STRUCT('0x1187272a0e3a603ec4734cec73a0880055ecc593' as contract_address, 8 as decimals, '0xad35bd71b9afe6e4bdc266b345c198eadef9ad94' as proxy_address, 'sUSD / USD' as description, 4 as version), +-- STRUCT('0x1187272a0e3a603ec4734cec73a0880055ecc593' as contract_address, 8 as decimals, '0xad35bd71b9afe6e4bdc266b345c198eadef9ad94' as proxy_address, 'sUSD / USD' as description, 4 as version), STRUCT('0x4a81f77c8bbca2cba8110279cdbc9f1a8d3eae6b' as contract_address, 18 as decimals, '0xa20623070413d42a5c01db2c8111640dd7a5a03a' as proxy_address, 'UST / ETH' as description, 4 as version), STRUCT('0xd7623f1d24b35c392862fb67c9716564a117c9de' as contract_address, 8 as decimals, '0xfdfd9c85ad200c506cf9e21f1fd8dd01932fbb23' as proxy_address, 'WBTC / BTC' as description, 4 as version), STRUCT('0x27b97a63091d185ce056e1747624b9b92baad056' as contract_address, 8 as decimals, '0x3d7ae7e594f2f2091ad8798313450130d0aba3a0' as proxy_address, 'LUSD / USD' as description, 4 as version), @@ -32,7 +32,7 @@ STRUCT('0x5df960959de45a2ba9dc11e6fd6f77107f43256c' as contract_address, 8 as de STRUCT('0x3cf055335b521863a62fb4374972560e3e55a193' as contract_address, 8 as decimals, '0xcc70f09a6cc17553b2e31954cd36e4a2d89501f7' as proxy_address, 'SUSHI / USD' as description, 4 as version), STRUCT('0x2abfc56aaa39be7a946ec39aac5d452e30614df1' as contract_address, 8 as decimals, '0x483d36f6a1d063d580c7a24f9a42b346f3a69fbb' as proxy_address, 'RAI / USD' as description, 4 as version), STRUCT('0xd74ff3f1b565597e59d44320f53a5c5c8ba85f7b' as contract_address, 18 as decimals, '0xf017fcb346a1885194689ba23eff2fe6fa5c483b' as proxy_address, 'CBETH / ETH' as description, 4 as version), -STRUCT('0xbbc9ab3f66d0b934089fdcceda3615a6bb879633' as contract_address, 8 as decimals, '0x7eed379bf00005cfed29fed4009669de9bcc21ce' as proxy_address, 'ANKR / USD' as description, 4 as version), +-- STRUCT('0xbbc9ab3f66d0b934089fdcceda3615a6bb879633' as contract_address, 8 as decimals, '0x7eed379bf00005cfed29fed4009669de9bcc21ce' as proxy_address, 'ANKR / USD' as description, 4 as version), STRUCT('0x9cb248e68fb81d0cfe7d6b3265fe6bf123a71fe0' as contract_address, 18 as decimals, '0x536218f9e9eb48863970252233c8f271f554c2d0' as proxy_address, 'RETH / ETH' as description, 4 as version), STRUCT('0x20807cf61ad17c31837776fa39847a2fa1839e81' as contract_address, 8 as decimals, '0x2c1d072e956affc0d435cb7ac38ef18d24d9127c' as proxy_address, 'LINK / USD' as description, 4 as version), STRUCT('0x06ce8be8729b6ba18dd3416e3c223a5d4db5e755' as contract_address, 8 as decimals, '0xdc3ea94cd0ac27d9a86c180091e7f78c683d3699' as proxy_address, 'SNX / USD' as description, 4 as version), From 0692a5394ff2edcd44e0c00842de20cb5cf05f23 Mon Sep 17 00:00:00 2001 From: prateeka Date: Fri, 1 Dec 2023 16:37:41 -0500 Subject: [PATCH 2/3] Added SushiswapV3 Pool Events --- .../sushiswap/UniswapV3Pool_event_Burn.json | 87 ++++++++++++++++ .../UniswapV3Pool_event_Collect.json | 87 ++++++++++++++++ .../UniswapV3Pool_event_CollectProtocol.json | 65 ++++++++++++ .../sushiswap/UniswapV3Pool_event_Flash.json | 87 ++++++++++++++++ ...nt_IncreaseObservationCardinalityNext.json | 43 ++++++++ .../UniswapV3Pool_event_Initialize.json | 43 ++++++++ .../sushiswap/UniswapV3Pool_event_Mint.json | 98 +++++++++++++++++++ .../UniswapV3Pool_event_SetFeeProtocol.json | 65 ++++++++++++ .../sushiswap/UniswapV3Pool_event_Swap.json | 98 +++++++++++++++++++ 9 files changed, 673 insertions(+) create mode 100644 dags/resources/stages/parse/table_definitions/sushiswap/UniswapV3Pool_event_Burn.json create mode 100644 dags/resources/stages/parse/table_definitions/sushiswap/UniswapV3Pool_event_Collect.json create mode 100644 dags/resources/stages/parse/table_definitions/sushiswap/UniswapV3Pool_event_CollectProtocol.json create mode 100644 dags/resources/stages/parse/table_definitions/sushiswap/UniswapV3Pool_event_Flash.json create mode 100644 dags/resources/stages/parse/table_definitions/sushiswap/UniswapV3Pool_event_IncreaseObservationCardinalityNext.json create mode 100644 dags/resources/stages/parse/table_definitions/sushiswap/UniswapV3Pool_event_Initialize.json create mode 100644 dags/resources/stages/parse/table_definitions/sushiswap/UniswapV3Pool_event_Mint.json create mode 100644 dags/resources/stages/parse/table_definitions/sushiswap/UniswapV3Pool_event_SetFeeProtocol.json create mode 100644 dags/resources/stages/parse/table_definitions/sushiswap/UniswapV3Pool_event_Swap.json diff --git a/dags/resources/stages/parse/table_definitions/sushiswap/UniswapV3Pool_event_Burn.json b/dags/resources/stages/parse/table_definitions/sushiswap/UniswapV3Pool_event_Burn.json new file mode 100644 index 00000000..e3fa66a9 --- /dev/null +++ b/dags/resources/stages/parse/table_definitions/sushiswap/UniswapV3Pool_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": "amount", + "type": "uint128" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amount0", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amount1", + "type": "uint256" + } + ], + "name": "Burn", + "type": "event" + }, + "contract_address": "0x31ac258b911af9a0d2669ebdfc4e39d92e96b772", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "sushiswap", + "schema": [ + { + "description": "", + "name": "owner", + "type": "STRING" + }, + { + "description": "", + "name": "tickLower", + "type": "STRING" + }, + { + "description": "", + "name": "tickUpper", + "type": "STRING" + }, + { + "description": "", + "name": "amount", + "type": "STRING" + }, + { + "description": "", + "name": "amount0", + "type": "STRING" + }, + { + "description": "", + "name": "amount1", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "UniswapV3Pool_event_Burn" + } +} \ No newline at end of file diff --git a/dags/resources/stages/parse/table_definitions/sushiswap/UniswapV3Pool_event_Collect.json b/dags/resources/stages/parse/table_definitions/sushiswap/UniswapV3Pool_event_Collect.json new file mode 100644 index 00000000..53a479fb --- /dev/null +++ b/dags/resources/stages/parse/table_definitions/sushiswap/UniswapV3Pool_event_Collect.json @@ -0,0 +1,87 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "owner", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "recipient", + "type": "address" + }, + { + "indexed": true, + "internalType": "int24", + "name": "tickLower", + "type": "int24" + }, + { + "indexed": true, + "internalType": "int24", + "name": "tickUpper", + "type": "int24" + }, + { + "indexed": false, + "internalType": "uint128", + "name": "amount0", + "type": "uint128" + }, + { + "indexed": false, + "internalType": "uint128", + "name": "amount1", + "type": "uint128" + } + ], + "name": "Collect", + "type": "event" + }, + "contract_address": "0x31ac258b911af9a0d2669ebdfc4e39d92e96b772", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "sushiswap", + "schema": [ + { + "description": "", + "name": "owner", + "type": "STRING" + }, + { + "description": "", + "name": "recipient", + "type": "STRING" + }, + { + "description": "", + "name": "tickLower", + "type": "STRING" + }, + { + "description": "", + "name": "tickUpper", + "type": "STRING" + }, + { + "description": "", + "name": "amount0", + "type": "STRING" + }, + { + "description": "", + "name": "amount1", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "UniswapV3Pool_event_Collect" + } +} \ No newline at end of file diff --git a/dags/resources/stages/parse/table_definitions/sushiswap/UniswapV3Pool_event_CollectProtocol.json b/dags/resources/stages/parse/table_definitions/sushiswap/UniswapV3Pool_event_CollectProtocol.json new file mode 100644 index 00000000..a532b957 --- /dev/null +++ b/dags/resources/stages/parse/table_definitions/sushiswap/UniswapV3Pool_event_CollectProtocol.json @@ -0,0 +1,65 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "sender", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "recipient", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint128", + "name": "amount0", + "type": "uint128" + }, + { + "indexed": false, + "internalType": "uint128", + "name": "amount1", + "type": "uint128" + } + ], + "name": "CollectProtocol", + "type": "event" + }, + "contract_address": "0x31ac258b911af9a0d2669ebdfc4e39d92e96b772", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "sushiswap", + "schema": [ + { + "description": "", + "name": "sender", + "type": "STRING" + }, + { + "description": "", + "name": "recipient", + "type": "STRING" + }, + { + "description": "", + "name": "amount0", + "type": "STRING" + }, + { + "description": "", + "name": "amount1", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "UniswapV3Pool_event_CollectProtocol" + } +} \ No newline at end of file diff --git a/dags/resources/stages/parse/table_definitions/sushiswap/UniswapV3Pool_event_Flash.json b/dags/resources/stages/parse/table_definitions/sushiswap/UniswapV3Pool_event_Flash.json new file mode 100644 index 00000000..e17e6c0b --- /dev/null +++ b/dags/resources/stages/parse/table_definitions/sushiswap/UniswapV3Pool_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": "amount0", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amount1", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "paid0", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "paid1", + "type": "uint256" + } + ], + "name": "Flash", + "type": "event" + }, + "contract_address": "0x31ac258b911af9a0d2669ebdfc4e39d92e96b772", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "sushiswap", + "schema": [ + { + "description": "", + "name": "sender", + "type": "STRING" + }, + { + "description": "", + "name": "recipient", + "type": "STRING" + }, + { + "description": "", + "name": "amount0", + "type": "STRING" + }, + { + "description": "", + "name": "amount1", + "type": "STRING" + }, + { + "description": "", + "name": "paid0", + "type": "STRING" + }, + { + "description": "", + "name": "paid1", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "UniswapV3Pool_event_Flash" + } +} \ No newline at end of file diff --git a/dags/resources/stages/parse/table_definitions/sushiswap/UniswapV3Pool_event_IncreaseObservationCardinalityNext.json b/dags/resources/stages/parse/table_definitions/sushiswap/UniswapV3Pool_event_IncreaseObservationCardinalityNext.json new file mode 100644 index 00000000..8853f911 --- /dev/null +++ b/dags/resources/stages/parse/table_definitions/sushiswap/UniswapV3Pool_event_IncreaseObservationCardinalityNext.json @@ -0,0 +1,43 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint16", + "name": "observationCardinalityNextOld", + "type": "uint16" + }, + { + "indexed": false, + "internalType": "uint16", + "name": "observationCardinalityNextNew", + "type": "uint16" + } + ], + "name": "IncreaseObservationCardinalityNext", + "type": "event" + }, + "contract_address": "0x31ac258b911af9a0d2669ebdfc4e39d92e96b772", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "sushiswap", + "schema": [ + { + "description": "", + "name": "observationCardinalityNextOld", + "type": "STRING" + }, + { + "description": "", + "name": "observationCardinalityNextNew", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "UniswapV3Pool_event_IncreaseObservationCardinalityNext" + } +} \ No newline at end of file diff --git a/dags/resources/stages/parse/table_definitions/sushiswap/UniswapV3Pool_event_Initialize.json b/dags/resources/stages/parse/table_definitions/sushiswap/UniswapV3Pool_event_Initialize.json new file mode 100644 index 00000000..91634900 --- /dev/null +++ b/dags/resources/stages/parse/table_definitions/sushiswap/UniswapV3Pool_event_Initialize.json @@ -0,0 +1,43 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint160", + "name": "sqrtPriceX96", + "type": "uint160" + }, + { + "indexed": false, + "internalType": "int24", + "name": "tick", + "type": "int24" + } + ], + "name": "Initialize", + "type": "event" + }, + "contract_address": "0x31ac258b911af9a0d2669ebdfc4e39d92e96b772", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "sushiswap", + "schema": [ + { + "description": "", + "name": "sqrtPriceX96", + "type": "STRING" + }, + { + "description": "", + "name": "tick", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "UniswapV3Pool_event_Initialize" + } +} \ No newline at end of file diff --git a/dags/resources/stages/parse/table_definitions/sushiswap/UniswapV3Pool_event_Mint.json b/dags/resources/stages/parse/table_definitions/sushiswap/UniswapV3Pool_event_Mint.json new file mode 100644 index 00000000..54b63e9e --- /dev/null +++ b/dags/resources/stages/parse/table_definitions/sushiswap/UniswapV3Pool_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": "amount", + "type": "uint128" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amount0", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amount1", + "type": "uint256" + } + ], + "name": "Mint", + "type": "event" + }, + "contract_address": "0x31ac258b911af9a0d2669ebdfc4e39d92e96b772", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "sushiswap", + "schema": [ + { + "description": "", + "name": "sender", + "type": "STRING" + }, + { + "description": "", + "name": "owner", + "type": "STRING" + }, + { + "description": "", + "name": "tickLower", + "type": "STRING" + }, + { + "description": "", + "name": "tickUpper", + "type": "STRING" + }, + { + "description": "", + "name": "amount", + "type": "STRING" + }, + { + "description": "", + "name": "amount0", + "type": "STRING" + }, + { + "description": "", + "name": "amount1", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "UniswapV3Pool_event_Mint" + } +} \ No newline at end of file diff --git a/dags/resources/stages/parse/table_definitions/sushiswap/UniswapV3Pool_event_SetFeeProtocol.json b/dags/resources/stages/parse/table_definitions/sushiswap/UniswapV3Pool_event_SetFeeProtocol.json new file mode 100644 index 00000000..3b5a2d6d --- /dev/null +++ b/dags/resources/stages/parse/table_definitions/sushiswap/UniswapV3Pool_event_SetFeeProtocol.json @@ -0,0 +1,65 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "uint8", + "name": "feeProtocol0Old", + "type": "uint8" + }, + { + "indexed": false, + "internalType": "uint8", + "name": "feeProtocol1Old", + "type": "uint8" + }, + { + "indexed": false, + "internalType": "uint8", + "name": "feeProtocol0New", + "type": "uint8" + }, + { + "indexed": false, + "internalType": "uint8", + "name": "feeProtocol1New", + "type": "uint8" + } + ], + "name": "SetFeeProtocol", + "type": "event" + }, + "contract_address": "0x31ac258b911af9a0d2669ebdfc4e39d92e96b772", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "sushiswap", + "schema": [ + { + "description": "", + "name": "feeProtocol0Old", + "type": "STRING" + }, + { + "description": "", + "name": "feeProtocol1Old", + "type": "STRING" + }, + { + "description": "", + "name": "feeProtocol0New", + "type": "STRING" + }, + { + "description": "", + "name": "feeProtocol1New", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "UniswapV3Pool_event_SetFeeProtocol" + } +} \ No newline at end of file diff --git a/dags/resources/stages/parse/table_definitions/sushiswap/UniswapV3Pool_event_Swap.json b/dags/resources/stages/parse/table_definitions/sushiswap/UniswapV3Pool_event_Swap.json new file mode 100644 index 00000000..a3b97fea --- /dev/null +++ b/dags/resources/stages/parse/table_definitions/sushiswap/UniswapV3Pool_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": "amount0", + "type": "int256" + }, + { + "indexed": false, + "internalType": "int256", + "name": "amount1", + "type": "int256" + }, + { + "indexed": false, + "internalType": "uint160", + "name": "sqrtPriceX96", + "type": "uint160" + }, + { + "indexed": false, + "internalType": "uint128", + "name": "liquidity", + "type": "uint128" + }, + { + "indexed": false, + "internalType": "int24", + "name": "tick", + "type": "int24" + } + ], + "name": "Swap", + "type": "event" + }, + "contract_address": "0x31ac258b911af9a0d2669ebdfc4e39d92e96b772", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "sushiswap", + "schema": [ + { + "description": "", + "name": "sender", + "type": "STRING" + }, + { + "description": "", + "name": "recipient", + "type": "STRING" + }, + { + "description": "", + "name": "amount0", + "type": "STRING" + }, + { + "description": "", + "name": "amount1", + "type": "STRING" + }, + { + "description": "", + "name": "sqrtPriceX96", + "type": "STRING" + }, + { + "description": "", + "name": "liquidity", + "type": "STRING" + }, + { + "description": "", + "name": "tick", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "UniswapV3Pool_event_Swap" + } +} \ No newline at end of file From 99bb92e03863a39950913612749639b00a5ea7e3 Mon Sep 17 00:00:00 2001 From: prateeka Date: Mon, 4 Dec 2023 11:54:19 -0500 Subject: [PATCH 3/3] pool factory --- ...iswapV3Factory_event_FeeAmountEnabled.json | 43 +++++++++++ .../UniswapV3Factory_event_OwnerChanged.json | 43 +++++++++++ .../UniswapV3Factory_event_PoolCreated.json | 76 +++++++++++++++++++ .../sushiswap/UniswapV3Pool_event_Burn.json | 2 +- .../UniswapV3Pool_event_Collect.json | 2 +- .../UniswapV3Pool_event_CollectProtocol.json | 2 +- .../sushiswap/UniswapV3Pool_event_Flash.json | 2 +- ...nt_IncreaseObservationCardinalityNext.json | 2 +- .../UniswapV3Pool_event_Initialize.json | 2 +- .../sushiswap/UniswapV3Pool_event_Mint.json | 2 +- .../UniswapV3Pool_event_SetFeeProtocol.json | 2 +- .../sushiswap/UniswapV3Pool_event_Swap.json | 2 +- 12 files changed, 171 insertions(+), 9 deletions(-) create mode 100644 dags/resources/stages/parse/table_definitions/sushiswap/UniswapV3Factory_event_FeeAmountEnabled.json create mode 100644 dags/resources/stages/parse/table_definitions/sushiswap/UniswapV3Factory_event_OwnerChanged.json create mode 100644 dags/resources/stages/parse/table_definitions/sushiswap/UniswapV3Factory_event_PoolCreated.json diff --git a/dags/resources/stages/parse/table_definitions/sushiswap/UniswapV3Factory_event_FeeAmountEnabled.json b/dags/resources/stages/parse/table_definitions/sushiswap/UniswapV3Factory_event_FeeAmountEnabled.json new file mode 100644 index 00000000..7c5e3737 --- /dev/null +++ b/dags/resources/stages/parse/table_definitions/sushiswap/UniswapV3Factory_event_FeeAmountEnabled.json @@ -0,0 +1,43 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint24", + "name": "fee", + "type": "uint24" + }, + { + "indexed": true, + "internalType": "int24", + "name": "tickSpacing", + "type": "int24" + } + ], + "name": "FeeAmountEnabled", + "type": "event" + }, + "contract_address": "0xbaceb8ec6b9355dfc0269c18bac9d6e2bdc29c4f", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "sushiswap", + "schema": [ + { + "description": "", + "name": "fee", + "type": "STRING" + }, + { + "description": "", + "name": "tickSpacing", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "UniswapV3Factory_event_FeeAmountEnabled" + } +} \ No newline at end of file diff --git a/dags/resources/stages/parse/table_definitions/sushiswap/UniswapV3Factory_event_OwnerChanged.json b/dags/resources/stages/parse/table_definitions/sushiswap/UniswapV3Factory_event_OwnerChanged.json new file mode 100644 index 00000000..1f73efb9 --- /dev/null +++ b/dags/resources/stages/parse/table_definitions/sushiswap/UniswapV3Factory_event_OwnerChanged.json @@ -0,0 +1,43 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "oldOwner", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "newOwner", + "type": "address" + } + ], + "name": "OwnerChanged", + "type": "event" + }, + "contract_address": "0xbaceb8ec6b9355dfc0269c18bac9d6e2bdc29c4f", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "sushiswap", + "schema": [ + { + "description": "", + "name": "oldOwner", + "type": "STRING" + }, + { + "description": "", + "name": "newOwner", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "UniswapV3Factory_event_OwnerChanged" + } +} \ No newline at end of file diff --git a/dags/resources/stages/parse/table_definitions/sushiswap/UniswapV3Factory_event_PoolCreated.json b/dags/resources/stages/parse/table_definitions/sushiswap/UniswapV3Factory_event_PoolCreated.json new file mode 100644 index 00000000..86372ffc --- /dev/null +++ b/dags/resources/stages/parse/table_definitions/sushiswap/UniswapV3Factory_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": "fee", + "type": "uint24" + }, + { + "indexed": false, + "internalType": "int24", + "name": "tickSpacing", + "type": "int24" + }, + { + "indexed": false, + "internalType": "address", + "name": "pool", + "type": "address" + } + ], + "name": "PoolCreated", + "type": "event" + }, + "contract_address": "0xbaceb8ec6b9355dfc0269c18bac9d6e2bdc29c4f", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "sushiswap", + "schema": [ + { + "description": "", + "name": "token0", + "type": "STRING" + }, + { + "description": "", + "name": "token1", + "type": "STRING" + }, + { + "description": "", + "name": "fee", + "type": "STRING" + }, + { + "description": "", + "name": "tickSpacing", + "type": "STRING" + }, + { + "description": "", + "name": "pool", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "UniswapV3Factory_event_PoolCreated" + } +} \ No newline at end of file diff --git a/dags/resources/stages/parse/table_definitions/sushiswap/UniswapV3Pool_event_Burn.json b/dags/resources/stages/parse/table_definitions/sushiswap/UniswapV3Pool_event_Burn.json index e3fa66a9..507c20f3 100644 --- a/dags/resources/stages/parse/table_definitions/sushiswap/UniswapV3Pool_event_Burn.json +++ b/dags/resources/stages/parse/table_definitions/sushiswap/UniswapV3Pool_event_Burn.json @@ -43,7 +43,7 @@ "name": "Burn", "type": "event" }, - "contract_address": "0x31ac258b911af9a0d2669ebdfc4e39d92e96b772", + "contract_address": "SELECT pool FROM ref('UniswapV3Factory_event_PoolCreated')", "field_mapping": {}, "type": "log" }, diff --git a/dags/resources/stages/parse/table_definitions/sushiswap/UniswapV3Pool_event_Collect.json b/dags/resources/stages/parse/table_definitions/sushiswap/UniswapV3Pool_event_Collect.json index 53a479fb..1fad61ad 100644 --- a/dags/resources/stages/parse/table_definitions/sushiswap/UniswapV3Pool_event_Collect.json +++ b/dags/resources/stages/parse/table_definitions/sushiswap/UniswapV3Pool_event_Collect.json @@ -43,7 +43,7 @@ "name": "Collect", "type": "event" }, - "contract_address": "0x31ac258b911af9a0d2669ebdfc4e39d92e96b772", + "contract_address": "SELECT pool FROM ref('UniswapV3Factory_event_PoolCreated')", "field_mapping": {}, "type": "log" }, diff --git a/dags/resources/stages/parse/table_definitions/sushiswap/UniswapV3Pool_event_CollectProtocol.json b/dags/resources/stages/parse/table_definitions/sushiswap/UniswapV3Pool_event_CollectProtocol.json index a532b957..3ab744fb 100644 --- a/dags/resources/stages/parse/table_definitions/sushiswap/UniswapV3Pool_event_CollectProtocol.json +++ b/dags/resources/stages/parse/table_definitions/sushiswap/UniswapV3Pool_event_CollectProtocol.json @@ -31,7 +31,7 @@ "name": "CollectProtocol", "type": "event" }, - "contract_address": "0x31ac258b911af9a0d2669ebdfc4e39d92e96b772", + "contract_address": "SELECT pool FROM ref('UniswapV3Factory_event_PoolCreated')", "field_mapping": {}, "type": "log" }, diff --git a/dags/resources/stages/parse/table_definitions/sushiswap/UniswapV3Pool_event_Flash.json b/dags/resources/stages/parse/table_definitions/sushiswap/UniswapV3Pool_event_Flash.json index e17e6c0b..3ad0f2ea 100644 --- a/dags/resources/stages/parse/table_definitions/sushiswap/UniswapV3Pool_event_Flash.json +++ b/dags/resources/stages/parse/table_definitions/sushiswap/UniswapV3Pool_event_Flash.json @@ -43,7 +43,7 @@ "name": "Flash", "type": "event" }, - "contract_address": "0x31ac258b911af9a0d2669ebdfc4e39d92e96b772", + "contract_address": "SELECT pool FROM ref('UniswapV3Factory_event_PoolCreated')", "field_mapping": {}, "type": "log" }, diff --git a/dags/resources/stages/parse/table_definitions/sushiswap/UniswapV3Pool_event_IncreaseObservationCardinalityNext.json b/dags/resources/stages/parse/table_definitions/sushiswap/UniswapV3Pool_event_IncreaseObservationCardinalityNext.json index 8853f911..3cc16da6 100644 --- a/dags/resources/stages/parse/table_definitions/sushiswap/UniswapV3Pool_event_IncreaseObservationCardinalityNext.json +++ b/dags/resources/stages/parse/table_definitions/sushiswap/UniswapV3Pool_event_IncreaseObservationCardinalityNext.json @@ -19,7 +19,7 @@ "name": "IncreaseObservationCardinalityNext", "type": "event" }, - "contract_address": "0x31ac258b911af9a0d2669ebdfc4e39d92e96b772", + "contract_address": "SELECT pool FROM ref('UniswapV3Factory_event_PoolCreated')", "field_mapping": {}, "type": "log" }, diff --git a/dags/resources/stages/parse/table_definitions/sushiswap/UniswapV3Pool_event_Initialize.json b/dags/resources/stages/parse/table_definitions/sushiswap/UniswapV3Pool_event_Initialize.json index 91634900..1e1d1c58 100644 --- a/dags/resources/stages/parse/table_definitions/sushiswap/UniswapV3Pool_event_Initialize.json +++ b/dags/resources/stages/parse/table_definitions/sushiswap/UniswapV3Pool_event_Initialize.json @@ -19,7 +19,7 @@ "name": "Initialize", "type": "event" }, - "contract_address": "0x31ac258b911af9a0d2669ebdfc4e39d92e96b772", + "contract_address": "SELECT pool FROM ref('UniswapV3Factory_event_PoolCreated')", "field_mapping": {}, "type": "log" }, diff --git a/dags/resources/stages/parse/table_definitions/sushiswap/UniswapV3Pool_event_Mint.json b/dags/resources/stages/parse/table_definitions/sushiswap/UniswapV3Pool_event_Mint.json index 54b63e9e..4ee9a5b8 100644 --- a/dags/resources/stages/parse/table_definitions/sushiswap/UniswapV3Pool_event_Mint.json +++ b/dags/resources/stages/parse/table_definitions/sushiswap/UniswapV3Pool_event_Mint.json @@ -49,7 +49,7 @@ "name": "Mint", "type": "event" }, - "contract_address": "0x31ac258b911af9a0d2669ebdfc4e39d92e96b772", + "contract_address": "SELECT pool FROM ref('UniswapV3Factory_event_PoolCreated')", "field_mapping": {}, "type": "log" }, diff --git a/dags/resources/stages/parse/table_definitions/sushiswap/UniswapV3Pool_event_SetFeeProtocol.json b/dags/resources/stages/parse/table_definitions/sushiswap/UniswapV3Pool_event_SetFeeProtocol.json index 3b5a2d6d..1b6a3956 100644 --- a/dags/resources/stages/parse/table_definitions/sushiswap/UniswapV3Pool_event_SetFeeProtocol.json +++ b/dags/resources/stages/parse/table_definitions/sushiswap/UniswapV3Pool_event_SetFeeProtocol.json @@ -31,7 +31,7 @@ "name": "SetFeeProtocol", "type": "event" }, - "contract_address": "0x31ac258b911af9a0d2669ebdfc4e39d92e96b772", + "contract_address": "SELECT pool FROM ref('UniswapV3Factory_event_PoolCreated')", "field_mapping": {}, "type": "log" }, diff --git a/dags/resources/stages/parse/table_definitions/sushiswap/UniswapV3Pool_event_Swap.json b/dags/resources/stages/parse/table_definitions/sushiswap/UniswapV3Pool_event_Swap.json index a3b97fea..50e01778 100644 --- a/dags/resources/stages/parse/table_definitions/sushiswap/UniswapV3Pool_event_Swap.json +++ b/dags/resources/stages/parse/table_definitions/sushiswap/UniswapV3Pool_event_Swap.json @@ -49,7 +49,7 @@ "name": "Swap", "type": "event" }, - "contract_address": "0x31ac258b911af9a0d2669ebdfc4e39d92e96b772", + "contract_address": "SELECT pool FROM ref('UniswapV3Factory_event_PoolCreated')", "field_mapping": {}, "type": "log" },