diff --git a/dags/resources/stages/parse/table_definitions/cowswap/Cowswap_event_Settlement.json b/dags/resources/stages/parse/table_definitions/cowswap/Cowswap_event_Settlement.json new file mode 100644 index 00000000..90cfaea4 --- /dev/null +++ b/dags/resources/stages/parse/table_definitions/cowswap/Cowswap_event_Settlement.json @@ -0,0 +1,32 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "solver", + "type": "address" + } + ], + "name": "Settlement", + "type": "event" + }, + "contract_address": "0x9008d19f58aabd9ed0d60971565aa8510560ab41", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "cowswap", + "schema": [ + { + "description": "", + "name": "solver", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "Cowswap_event_Settlement" + } +} \ No newline at end of file diff --git a/dags/resources/stages/parse/table_definitions/cowswap/Cowswap_event_Trade.json b/dags/resources/stages/parse/table_definitions/cowswap/Cowswap_event_Trade.json new file mode 100644 index 00000000..551fd8e6 --- /dev/null +++ b/dags/resources/stages/parse/table_definitions/cowswap/Cowswap_event_Trade.json @@ -0,0 +1,98 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "owner", + "type": "address" + }, + { + "indexed": false, + "internalType": "contract IERC20", + "name": "sellToken", + "type": "address" + }, + { + "indexed": false, + "internalType": "contract IERC20", + "name": "buyToken", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "sellAmount", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "buyAmount", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "feeAmount", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "orderUid", + "type": "bytes" + } + ], + "name": "Trade", + "type": "event" + }, + "contract_address": "0x9008d19f58aabd9ed0d60971565aa8510560ab41", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "cowswap", + "schema": [ + { + "description": "", + "name": "owner", + "type": "STRING" + }, + { + "description": "", + "name": "sellToken", + "type": "STRING" + }, + { + "description": "", + "name": "buyToken", + "type": "STRING" + }, + { + "description": "", + "name": "sellAmount", + "type": "STRING" + }, + { + "description": "", + "name": "buyAmount", + "type": "STRING" + }, + { + "description": "", + "name": "feeAmount", + "type": "STRING" + }, + { + "description": "", + "name": "orderUid", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "Cowswap_event_Trade" + } +} \ No newline at end of file diff --git a/dags/resources/stages/parse/table_definitions/odos/Odos_event_Swap.json b/dags/resources/stages/parse/table_definitions/odos/Odos_event_Swap.json new file mode 100644 index 00000000..3fde8420 --- /dev/null +++ b/dags/resources/stages/parse/table_definitions/odos/Odos_event_Swap.json @@ -0,0 +1,98 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "sender", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "inputAmount", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "address", + "name": "inputToken", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "amountOut", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "address", + "name": "outputToken", + "type": "address" + }, + { + "indexed": false, + "internalType": "int256", + "name": "slippage", + "type": "int256" + }, + { + "indexed": false, + "internalType": "uint32", + "name": "referralCode", + "type": "uint32" + } + ], + "name": "Swap", + "type": "event" + }, + "contract_address": "0xcf5540fffcdc3d510b18bfca6d2b9987b0772559", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "odos", + "schema": [ + { + "description": "", + "name": "sender", + "type": "STRING" + }, + { + "description": "", + "name": "inputAmount", + "type": "STRING" + }, + { + "description": "", + "name": "inputToken", + "type": "STRING" + }, + { + "description": "", + "name": "amountOut", + "type": "STRING" + }, + { + "description": "", + "name": "outputToken", + "type": "STRING" + }, + { + "description": "", + "name": "slippage", + "type": "STRING" + }, + { + "description": "", + "name": "referralCode", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "Odos_event_Swap" + } +} \ No newline at end of file diff --git a/dags/resources/stages/parse/table_definitions/odos/Odos_event_SwapMulti.json b/dags/resources/stages/parse/table_definitions/odos/Odos_event_SwapMulti.json new file mode 100644 index 00000000..860c4be2 --- /dev/null +++ b/dags/resources/stages/parse/table_definitions/odos/Odos_event_SwapMulti.json @@ -0,0 +1,87 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "sender", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256[]", + "name": "amountsIn", + "type": "uint256[]" + }, + { + "indexed": false, + "internalType": "address[]", + "name": "tokensIn", + "type": "address[]" + }, + { + "indexed": false, + "internalType": "uint256[]", + "name": "amountsOut", + "type": "uint256[]" + }, + { + "indexed": false, + "internalType": "address[]", + "name": "tokensOut", + "type": "address[]" + }, + { + "indexed": false, + "internalType": "uint32", + "name": "referralCode", + "type": "uint32" + } + ], + "name": "SwapMulti", + "type": "event" + }, + "contract_address": "0xcf5540fffcdc3d510b18bfca6d2b9987b0772559", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "odos", + "schema": [ + { + "description": "", + "name": "sender", + "type": "STRING" + }, + { + "description": "", + "name": "amountsIn", + "type": "STRING" + }, + { + "description": "", + "name": "tokensIn", + "type": "STRING" + }, + { + "description": "", + "name": "amountsOut", + "type": "STRING" + }, + { + "description": "", + "name": "tokensOut", + "type": "STRING" + }, + { + "description": "", + "name": "referralCode", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "Odos_event_SwapMulti" + } +} \ No newline at end of file