diff --git a/airflow/dags/resources/stages/parse/table_definitions/curve/CryptoRegistry_event_PoolAdded.json b/airflow/dags/resources/stages/parse/table_definitions/curve/CryptoRegistry_event_PoolAdded.json new file mode 100644 index 00000000..2a803e74 --- /dev/null +++ b/airflow/dags/resources/stages/parse/table_definitions/curve/CryptoRegistry_event_PoolAdded.json @@ -0,0 +1,31 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "name": "pool", + "type": "address" + } + ], + "name": "PoolAdded", + "type": "event" + }, + "contract_address": "0x47bb542b9de58b970ba50c9dae444ddb4c16751a", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "curve", + "schema": [ + { + "description": "", + "name": "pool", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "CryptoRegistry_event_PoolAdded" + } +} \ No newline at end of file diff --git a/airflow/dags/resources/stages/parse/table_definitions/curve/CryptoRegistry_event_PoolRemoved.json b/airflow/dags/resources/stages/parse/table_definitions/curve/CryptoRegistry_event_PoolRemoved.json new file mode 100644 index 00000000..8e5a6218 --- /dev/null +++ b/airflow/dags/resources/stages/parse/table_definitions/curve/CryptoRegistry_event_PoolRemoved.json @@ -0,0 +1,31 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "name": "pool", + "type": "address" + } + ], + "name": "PoolRemoved", + "type": "event" + }, + "contract_address": "0x47bb542b9de58b970ba50c9dae444ddb4c16751a", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "curve", + "schema": [ + { + "description": "", + "name": "pool", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "CryptoRegistry_event_PoolRemoved" + } +} \ No newline at end of file diff --git a/airflow/dags/resources/stages/parse/table_definitions/curve/CryptoSwap_event_AddLiquidity.json b/airflow/dags/resources/stages/parse/table_definitions/curve/CryptoSwap_event_AddLiquidity.json new file mode 100644 index 00000000..58fb5912 --- /dev/null +++ b/airflow/dags/resources/stages/parse/table_definitions/curve/CryptoSwap_event_AddLiquidity.json @@ -0,0 +1,61 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "name": "provider", + "type": "address" + }, + { + "indexed": false, + "name": "token_amounts", + "type": "uint256[2]" + }, + { + "indexed": false, + "name": "fee", + "type": "uint256" + }, + { + "indexed": false, + "name": "token_supply", + "type": "uint256" + } + ], + "name": "AddLiquidity", + "type": "event" + }, + "contract_address": "(SELECT pool FROM ref('CryptoRegistry_event_PoolAdded') EXCEPT DISTINCT SELECT pool FROM ref('CryptoRegistry_event_PoolRemoved')) UNION ALL SELECT '0xec5afc9590964f2fa0feed54f0fbb2a34480908d' UNION ALL SELECT '0xc7c939a474cb10eb837894d1ed1a77c61b268fa7' UNION ALL SELECT '0x36becdcbdf49255f366a45b861b4223b482d35e4' UNION ALL SELECT '0x697fdefe26aca625c86dbd07d3b95fde3e7f7de5' UNION ALL SELECT '0x8187d4734aa4bd78f0a2f7941e276e410e37f033' UNION ALL SELECT '0xf5bed2bbe798187272741c3042cb662c8bb67daf' UNION ALL SELECT '0x36bec0732c913c87a558d6a16f077d5b3d7476c7' UNION ALL SELECT '0xc0b78f2e96de56d08c7608697680e935fe47295b' UNION ALL SELECT '0x48087143bd15b99e67a8cec578e4d884a4bbf124' UNION ALL SELECT '0xd9f354177edd66e7a6669f33d0ec64c14e153b38' UNION ALL SELECT '0x30f217c3423f824de89abe941da49887baa8485d' UNION ALL SELECT '0xcac8002275bc596e6fefc88807e75f5b6646fc10' UNION ALL SELECT '0xb47df195c7805b2bc9a20c2631b2234753625cd0' UNION ALL SELECT '0xfb6fe7802ba9290ef8b00ca16af4bc26eb663a28' UNION ALL SELECT '0x5e078b90af4a1899ae0b1ba17ff2e443f4eb78b0' UNION ALL SELECT '0x8705a57a7305e971d8fc897ddb4e0b535d7a047e' UNION ALL SELECT '0x7cc19f8c258d7f489bc1074437e25a46e397688f' UNION ALL SELECT '0x12fa77685728abcbe1d5c7c11638d2c8df250478' UNION ALL SELECT '0x36fae0c62fe24c7db4983af90c8901c1d7612cd4' UNION ALL SELECT '0xe8c9af58eba1dc532c1707b1e28736d3c9d1afed' UNION ALL SELECT '0xeb5f4c45e29c05c5fb166b72a173dc32831b4239' UNION ALL SELECT '0x8e6692b6fc3bce7d5291c96ff02ba24e1a329c60' UNION ALL SELECT '0x48d794c9b1acb3864ae0c63e9e5d19a6ec80a2c6' UNION ALL SELECT '0xc7d7133a2a4cb8d8b128e961eb8cd3ae85dd6204' UNION ALL SELECT '0x3320c9e72ffa1116a7bb5547f5ae7b2fa2a9eb75' UNION ALL SELECT '0x552fdb8be01c640fa308481ab1e9a7af9d62d0f7' UNION ALL SELECT '0xf4f2c1710e4470e58e4841ea0653f949bdddd67f' UNION ALL SELECT '0x9d874dfc60edc490d76f78663204fcfd608151d7' UNION ALL SELECT '0x453c551879234682d2b823ede73a2ce41a5150aa' UNION ALL SELECT '0x38af0a6d3551fa982ffad038b3b238df3757204b' UNION ALL SELECT '0x085ba43f0f6d152d6842721be0bd18ce2b828010' UNION ALL SELECT '0x4e7f7a0c44618fc0379f633a6697137955b0375b' UNION ALL SELECT '0xdf458f474810bd9157c480fbf61c0a80e6221eff' UNION ALL SELECT '0xa94fe71a7aaebbcaeb3f43f839bbc3c5a2d287ad' UNION ALL SELECT '0x6d1c8e33c9f45cfd41135705528aff3d2010498f' UNION ALL SELECT '0x41ce0136b3a9ee7c82d79fb72ff48360bd5a3263' UNION ALL SELECT '0x8202a631ed5027f17270c50f5c8873bc66192d64' UNION ALL SELECT '0xdce686fb06954dd54a2c73d4da97e46692d3990a' UNION ALL SELECT '0xd7efb91d3afcc0a80e8b14d40a15d2a0d7754907' UNION ALL SELECT '0x7ac0401b1d49a8e01daf46cb5198654f89e64dc5' UNION ALL SELECT '0xd880ed1456a16c463724cfdd329806ced7529b78' UNION ALL SELECT '0x0c3781f1fc02d5f9f43f53d81898af363042a187' UNION ALL SELECT '0x00a4ebb5b2f51882cf7df65e556bf0b742f02e4e' UNION ALL SELECT '0x6908d971a43edbaf8e1ac29aa62b604e030fee30' UNION ALL SELECT '0xfddb94f462ba7d5177b48eca41f444ab05af8c79' UNION ALL SELECT '0x0c8c8b4bc7930efecd85d8a339941563f44af572' UNION ALL SELECT '0x574fa5a78bc9cd15ec019be8f46001d268dfdbd2' UNION ALL SELECT '0x54b46c05a6815f5130a3ed5cbe5b59113146a511' UNION ALL SELECT '0x73c1537fe5b506172da6ce5ede31b57501608fdd' UNION ALL SELECT '0xbe9953072d303a3a438d102ee64c20bd7d01883b' UNION ALL SELECT '0xc4a362bafaba6c2f0d8228998d8a486695cb2c08' UNION ALL SELECT '0x8a475218723f31e480696b091890f1c3e8ccc281' UNION ALL SELECT '0x6aaf3cb86389baa6cd61592c372f8bf06b2d48e4' UNION ALL SELECT '0x12fa7d6d6158e985016147a985b24a5bc6584760' UNION ALL SELECT '0x00e18306d011be6f35933146872df32f4a86cb93' UNION ALL SELECT '0x23badb16b9f3863217eec3705dea14a0153600fa' UNION ALL SELECT '0x987a1ff376de4d3b745c1abecbc6cc3486cb03eb' UNION ALL SELECT '0xe22cd0a52d5de7b021df7a9261d5cbf18f237900' UNION ALL SELECT '0x78af761a6030b1011296becada3068eeedd97795' UNION ALL SELECT '0xd1f6ee081f7afd7bc8a4ccd4cfc2112a61429e62' UNION ALL SELECT '0x6c627bb2d47aff3b3922b6901b4cb9c0963756f3' UNION ALL SELECT '0xac0345c5fabe186c113bd763c542a254fd8e96e1' UNION ALL SELECT '0x63923c573e1f5c1ece24cedf45226e1be2c5d170' UNION ALL SELECT '0x152c96b8bfa478d311eea46f2bf1f6dbdeb4a36b' UNION ALL SELECT '0x62b2c0c64fffd8956f0ef100d95875cf59e296e9' UNION ALL SELECT '0xef35183c35d5d31d71ee9ad891438eba27cee259' UNION ALL SELECT '0x38e3ea5ea43dadd5fb15ba7d3ef6dd9f802eca8b' UNION ALL SELECT '0x8cbccff6b75674ca60f081f477a9fd037c0836f1' UNION ALL SELECT '0x12e5c03750ebed2bfe74eda0ce755f407aacefb2' UNION ALL SELECT '0x66bdc0b1864192a15f1f6868efc315c8e84c6b0e' UNION ALL SELECT '0x95ab1a82af29bdcbc64176d83f4cb1667afd8517' UNION ALL SELECT '0x4e061ef1b15abde9b51c08661ee56976d411d9a6' UNION ALL SELECT '0x739ac5024ef9ca1719b8f64d4a6286fb0e5f91fb' UNION ALL SELECT '0x9a3ba4734d1ced9a7a667d78470850d092bfc994' UNION ALL SELECT '0x885d0ee44c882c4ec30a51e8c0468bcb6689e0e4' UNION ALL SELECT '0x2d4708d2aabb53b8d95b5753cd14930cd5a64f99' UNION ALL SELECT '0x1b79e223eb51978a39d3bb9d1b96b313fc300050' UNION ALL SELECT '0xca6f48d161e66a45b139c74539938da78167c5db' UNION ALL SELECT '0x29e9bcfa2d166759075815f52a4c1968bad97c0e' UNION ALL SELECT '0x524d913f42bc78e02c80e1e99439a3eee3a005dd' UNION ALL SELECT '0x7c91a679d1e03ff9ddc0919e331cbfebc0bc38d2' UNION ALL SELECT '0xa592b7bba07e3bbd6d95b79e08d96ce6a8a4adb1' UNION ALL SELECT '0x4380061e913c9ca7ddd29fc4f15739f1fc6d666b' UNION ALL SELECT '0x7bbc0e92505b485aeb3e82e828cb505daf1e50c6' UNION ALL SELECT '0x9730e3051a60c534979bcdcd8a5fb519bcb22545' UNION ALL SELECT '0x2246ccad865813ecc61a496da7f5ab4eb135a1c7' UNION ALL SELECT '0x1091fe61221dd3f28b9904c371b9e9a9c9137683' UNION ALL SELECT '0x4779a3b6412fe3218b8e270f0f74d73c841bac04' UNION ALL SELECT '0x0f6b7c063916ff3ad4db7a669356552d9d17a3d6' UNION ALL SELECT '0xd9175d9369b26aac8803818de1cf366679a37946' UNION ALL SELECT '0x0604ed64b966b4f8184ab0f084a900ab8ba9fba9' UNION ALL SELECT '0x69e92e8e42064ba50908f81e695cf55141805a9c' UNION ALL SELECT '0x6bdd11cf1f64712b13f3897c1fde57ab60002861' UNION ALL SELECT '0x6351a477644cbf1505bee87710fe071e8abef2fc' UNION ALL SELECT '0xaa311eddfb19f2a542641d6982aa9df2d28ddfed' UNION ALL SELECT '0x2b433ce7ff7eeec2981351a9de6e46a0510edd28' UNION ALL SELECT '0x5e9ca97e368ff54428177ecef328a77c4beb85bb'", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "curve", + "schema": [ + { + "description": "", + "name": "provider", + "type": "STRING" + }, + { + "description": "", + "name": "token_amounts", + "type": "STRING" + }, + { + "description": "", + "name": "fee", + "type": "STRING" + }, + { + "description": "", + "name": "token_supply", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "CryptoSwap_event_AddLiquidity" + } +} \ No newline at end of file diff --git a/airflow/dags/resources/stages/parse/table_definitions/curve/CryptoSwap_event_ClaimAdminFee.json b/airflow/dags/resources/stages/parse/table_definitions/curve/CryptoSwap_event_ClaimAdminFee.json new file mode 100644 index 00000000..68193e0e --- /dev/null +++ b/airflow/dags/resources/stages/parse/table_definitions/curve/CryptoSwap_event_ClaimAdminFee.json @@ -0,0 +1,41 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "name": "admin", + "type": "address" + }, + { + "indexed": false, + "name": "tokens", + "type": "uint256" + } + ], + "name": "ClaimAdminFee", + "type": "event" + }, + "contract_address": "(SELECT pool FROM ref('CryptoRegistry_event_PoolAdded') EXCEPT DISTINCT SELECT pool FROM ref('CryptoRegistry_event_PoolRemoved')) UNION ALL SELECT '0xec5afc9590964f2fa0feed54f0fbb2a34480908d' UNION ALL SELECT '0xc7c939a474cb10eb837894d1ed1a77c61b268fa7' UNION ALL SELECT '0x36becdcbdf49255f366a45b861b4223b482d35e4' UNION ALL SELECT '0x697fdefe26aca625c86dbd07d3b95fde3e7f7de5' UNION ALL SELECT '0x8187d4734aa4bd78f0a2f7941e276e410e37f033' UNION ALL SELECT '0xf5bed2bbe798187272741c3042cb662c8bb67daf' UNION ALL SELECT '0x36bec0732c913c87a558d6a16f077d5b3d7476c7' UNION ALL SELECT '0xc0b78f2e96de56d08c7608697680e935fe47295b' UNION ALL SELECT '0x48087143bd15b99e67a8cec578e4d884a4bbf124' UNION ALL SELECT '0xd9f354177edd66e7a6669f33d0ec64c14e153b38' UNION ALL SELECT '0x30f217c3423f824de89abe941da49887baa8485d' UNION ALL SELECT '0xcac8002275bc596e6fefc88807e75f5b6646fc10' UNION ALL SELECT '0xb47df195c7805b2bc9a20c2631b2234753625cd0' UNION ALL SELECT '0xfb6fe7802ba9290ef8b00ca16af4bc26eb663a28' UNION ALL SELECT '0x5e078b90af4a1899ae0b1ba17ff2e443f4eb78b0' UNION ALL SELECT '0x8705a57a7305e971d8fc897ddb4e0b535d7a047e' UNION ALL SELECT '0x7cc19f8c258d7f489bc1074437e25a46e397688f' UNION ALL SELECT '0x12fa77685728abcbe1d5c7c11638d2c8df250478' UNION ALL SELECT '0x36fae0c62fe24c7db4983af90c8901c1d7612cd4' UNION ALL SELECT '0xe8c9af58eba1dc532c1707b1e28736d3c9d1afed' UNION ALL SELECT '0xeb5f4c45e29c05c5fb166b72a173dc32831b4239' UNION ALL SELECT '0x8e6692b6fc3bce7d5291c96ff02ba24e1a329c60' UNION ALL SELECT '0x48d794c9b1acb3864ae0c63e9e5d19a6ec80a2c6' UNION ALL SELECT '0xc7d7133a2a4cb8d8b128e961eb8cd3ae85dd6204' UNION ALL SELECT '0x3320c9e72ffa1116a7bb5547f5ae7b2fa2a9eb75' UNION ALL SELECT '0x552fdb8be01c640fa308481ab1e9a7af9d62d0f7' UNION ALL SELECT '0xf4f2c1710e4470e58e4841ea0653f949bdddd67f' UNION ALL SELECT '0x9d874dfc60edc490d76f78663204fcfd608151d7' UNION ALL SELECT '0x453c551879234682d2b823ede73a2ce41a5150aa' UNION ALL SELECT '0x38af0a6d3551fa982ffad038b3b238df3757204b' UNION ALL SELECT '0x085ba43f0f6d152d6842721be0bd18ce2b828010' UNION ALL SELECT '0x4e7f7a0c44618fc0379f633a6697137955b0375b' UNION ALL SELECT '0xdf458f474810bd9157c480fbf61c0a80e6221eff' UNION ALL SELECT '0xa94fe71a7aaebbcaeb3f43f839bbc3c5a2d287ad' UNION ALL SELECT '0x6d1c8e33c9f45cfd41135705528aff3d2010498f' UNION ALL SELECT '0x41ce0136b3a9ee7c82d79fb72ff48360bd5a3263' UNION ALL SELECT '0x8202a631ed5027f17270c50f5c8873bc66192d64' UNION ALL SELECT '0xdce686fb06954dd54a2c73d4da97e46692d3990a' UNION ALL SELECT '0xd7efb91d3afcc0a80e8b14d40a15d2a0d7754907' UNION ALL SELECT '0x7ac0401b1d49a8e01daf46cb5198654f89e64dc5' UNION ALL SELECT '0xd880ed1456a16c463724cfdd329806ced7529b78' UNION ALL SELECT '0x0c3781f1fc02d5f9f43f53d81898af363042a187' UNION ALL SELECT '0x00a4ebb5b2f51882cf7df65e556bf0b742f02e4e' UNION ALL SELECT '0x6908d971a43edbaf8e1ac29aa62b604e030fee30' UNION ALL SELECT '0xfddb94f462ba7d5177b48eca41f444ab05af8c79' UNION ALL SELECT '0x0c8c8b4bc7930efecd85d8a339941563f44af572' UNION ALL SELECT '0x574fa5a78bc9cd15ec019be8f46001d268dfdbd2' UNION ALL SELECT '0x54b46c05a6815f5130a3ed5cbe5b59113146a511' UNION ALL SELECT '0x73c1537fe5b506172da6ce5ede31b57501608fdd' UNION ALL SELECT '0xbe9953072d303a3a438d102ee64c20bd7d01883b' UNION ALL SELECT '0xc4a362bafaba6c2f0d8228998d8a486695cb2c08' UNION ALL SELECT '0x8a475218723f31e480696b091890f1c3e8ccc281' UNION ALL SELECT '0x6aaf3cb86389baa6cd61592c372f8bf06b2d48e4' UNION ALL SELECT '0x12fa7d6d6158e985016147a985b24a5bc6584760' UNION ALL SELECT '0x00e18306d011be6f35933146872df32f4a86cb93' UNION ALL SELECT '0x23badb16b9f3863217eec3705dea14a0153600fa' UNION ALL SELECT '0x987a1ff376de4d3b745c1abecbc6cc3486cb03eb' UNION ALL SELECT '0xe22cd0a52d5de7b021df7a9261d5cbf18f237900' UNION ALL SELECT '0x78af761a6030b1011296becada3068eeedd97795' UNION ALL SELECT '0xd1f6ee081f7afd7bc8a4ccd4cfc2112a61429e62' UNION ALL SELECT '0x6c627bb2d47aff3b3922b6901b4cb9c0963756f3' UNION ALL SELECT '0xac0345c5fabe186c113bd763c542a254fd8e96e1' UNION ALL SELECT '0x63923c573e1f5c1ece24cedf45226e1be2c5d170' UNION ALL SELECT '0x152c96b8bfa478d311eea46f2bf1f6dbdeb4a36b' UNION ALL SELECT '0x62b2c0c64fffd8956f0ef100d95875cf59e296e9' UNION ALL SELECT '0xef35183c35d5d31d71ee9ad891438eba27cee259' UNION ALL SELECT '0x38e3ea5ea43dadd5fb15ba7d3ef6dd9f802eca8b' UNION ALL SELECT '0x8cbccff6b75674ca60f081f477a9fd037c0836f1' UNION ALL SELECT '0x12e5c03750ebed2bfe74eda0ce755f407aacefb2' UNION ALL SELECT '0x66bdc0b1864192a15f1f6868efc315c8e84c6b0e' UNION ALL SELECT '0x95ab1a82af29bdcbc64176d83f4cb1667afd8517' UNION ALL SELECT '0x4e061ef1b15abde9b51c08661ee56976d411d9a6' UNION ALL SELECT '0x739ac5024ef9ca1719b8f64d4a6286fb0e5f91fb' UNION ALL SELECT '0x9a3ba4734d1ced9a7a667d78470850d092bfc994' UNION ALL SELECT '0x885d0ee44c882c4ec30a51e8c0468bcb6689e0e4' UNION ALL SELECT '0x2d4708d2aabb53b8d95b5753cd14930cd5a64f99' UNION ALL SELECT '0x1b79e223eb51978a39d3bb9d1b96b313fc300050' UNION ALL SELECT '0xca6f48d161e66a45b139c74539938da78167c5db' UNION ALL SELECT '0x29e9bcfa2d166759075815f52a4c1968bad97c0e' UNION ALL SELECT '0x524d913f42bc78e02c80e1e99439a3eee3a005dd' UNION ALL SELECT '0x7c91a679d1e03ff9ddc0919e331cbfebc0bc38d2' UNION ALL SELECT '0xa592b7bba07e3bbd6d95b79e08d96ce6a8a4adb1' UNION ALL SELECT '0x4380061e913c9ca7ddd29fc4f15739f1fc6d666b' UNION ALL SELECT '0x7bbc0e92505b485aeb3e82e828cb505daf1e50c6' UNION ALL SELECT '0x9730e3051a60c534979bcdcd8a5fb519bcb22545' UNION ALL SELECT '0x2246ccad865813ecc61a496da7f5ab4eb135a1c7' UNION ALL SELECT '0x1091fe61221dd3f28b9904c371b9e9a9c9137683' UNION ALL SELECT '0x4779a3b6412fe3218b8e270f0f74d73c841bac04' UNION ALL SELECT '0x0f6b7c063916ff3ad4db7a669356552d9d17a3d6' UNION ALL SELECT '0xd9175d9369b26aac8803818de1cf366679a37946' UNION ALL SELECT '0x0604ed64b966b4f8184ab0f084a900ab8ba9fba9' UNION ALL SELECT '0x69e92e8e42064ba50908f81e695cf55141805a9c' UNION ALL SELECT '0x6bdd11cf1f64712b13f3897c1fde57ab60002861' UNION ALL SELECT '0x6351a477644cbf1505bee87710fe071e8abef2fc' UNION ALL SELECT '0xaa311eddfb19f2a542641d6982aa9df2d28ddfed' UNION ALL SELECT '0x2b433ce7ff7eeec2981351a9de6e46a0510edd28' UNION ALL SELECT '0x5e9ca97e368ff54428177ecef328a77c4beb85bb'", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "curve", + "schema": [ + { + "description": "", + "name": "admin", + "type": "STRING" + }, + { + "description": "", + "name": "tokens", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "CryptoSwap_event_ClaimAdminFee" + } +} \ No newline at end of file diff --git a/airflow/dags/resources/stages/parse/table_definitions/curve/CryptoSwap_event_CommitNewParameters.json b/airflow/dags/resources/stages/parse/table_definitions/curve/CryptoSwap_event_CommitNewParameters.json new file mode 100644 index 00000000..e20fb5cb --- /dev/null +++ b/airflow/dags/resources/stages/parse/table_definitions/curve/CryptoSwap_event_CommitNewParameters.json @@ -0,0 +1,101 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "name": "deadline", + "type": "uint256" + }, + { + "indexed": false, + "name": "admin_fee", + "type": "uint256" + }, + { + "indexed": false, + "name": "mid_fee", + "type": "uint256" + }, + { + "indexed": false, + "name": "out_fee", + "type": "uint256" + }, + { + "indexed": false, + "name": "fee_gamma", + "type": "uint256" + }, + { + "indexed": false, + "name": "allowed_extra_profit", + "type": "uint256" + }, + { + "indexed": false, + "name": "adjustment_step", + "type": "uint256" + }, + { + "indexed": false, + "name": "ma_half_time", + "type": "uint256" + } + ], + "name": "CommitNewParameters", + "type": "event" + }, + "contract_address": "(SELECT pool FROM ref('CryptoRegistry_event_PoolAdded') EXCEPT DISTINCT SELECT pool FROM ref('CryptoRegistry_event_PoolRemoved')) UNION ALL SELECT '0xec5afc9590964f2fa0feed54f0fbb2a34480908d' UNION ALL SELECT '0xc7c939a474cb10eb837894d1ed1a77c61b268fa7' UNION ALL SELECT '0x36becdcbdf49255f366a45b861b4223b482d35e4' UNION ALL SELECT '0x697fdefe26aca625c86dbd07d3b95fde3e7f7de5' UNION ALL SELECT '0x8187d4734aa4bd78f0a2f7941e276e410e37f033' UNION ALL SELECT '0xf5bed2bbe798187272741c3042cb662c8bb67daf' UNION ALL SELECT '0x36bec0732c913c87a558d6a16f077d5b3d7476c7' UNION ALL SELECT '0xc0b78f2e96de56d08c7608697680e935fe47295b' UNION ALL SELECT '0x48087143bd15b99e67a8cec578e4d884a4bbf124' UNION ALL SELECT '0xd9f354177edd66e7a6669f33d0ec64c14e153b38' UNION ALL SELECT '0x30f217c3423f824de89abe941da49887baa8485d' UNION ALL SELECT '0xcac8002275bc596e6fefc88807e75f5b6646fc10' UNION ALL SELECT '0xb47df195c7805b2bc9a20c2631b2234753625cd0' UNION ALL SELECT '0xfb6fe7802ba9290ef8b00ca16af4bc26eb663a28' UNION ALL SELECT '0x5e078b90af4a1899ae0b1ba17ff2e443f4eb78b0' UNION ALL SELECT '0x8705a57a7305e971d8fc897ddb4e0b535d7a047e' UNION ALL SELECT '0x7cc19f8c258d7f489bc1074437e25a46e397688f' UNION ALL SELECT '0x12fa77685728abcbe1d5c7c11638d2c8df250478' UNION ALL SELECT '0x36fae0c62fe24c7db4983af90c8901c1d7612cd4' UNION ALL SELECT '0xe8c9af58eba1dc532c1707b1e28736d3c9d1afed' UNION ALL SELECT '0xeb5f4c45e29c05c5fb166b72a173dc32831b4239' UNION ALL SELECT '0x8e6692b6fc3bce7d5291c96ff02ba24e1a329c60' UNION ALL SELECT '0x48d794c9b1acb3864ae0c63e9e5d19a6ec80a2c6' UNION ALL SELECT '0xc7d7133a2a4cb8d8b128e961eb8cd3ae85dd6204' UNION ALL SELECT '0x3320c9e72ffa1116a7bb5547f5ae7b2fa2a9eb75' UNION ALL SELECT '0x552fdb8be01c640fa308481ab1e9a7af9d62d0f7' UNION ALL SELECT '0xf4f2c1710e4470e58e4841ea0653f949bdddd67f' UNION ALL SELECT '0x9d874dfc60edc490d76f78663204fcfd608151d7' UNION ALL SELECT '0x453c551879234682d2b823ede73a2ce41a5150aa' UNION ALL SELECT '0x38af0a6d3551fa982ffad038b3b238df3757204b' UNION ALL SELECT '0x085ba43f0f6d152d6842721be0bd18ce2b828010' UNION ALL SELECT '0x4e7f7a0c44618fc0379f633a6697137955b0375b' UNION ALL SELECT '0xdf458f474810bd9157c480fbf61c0a80e6221eff' UNION ALL SELECT '0xa94fe71a7aaebbcaeb3f43f839bbc3c5a2d287ad' UNION ALL SELECT '0x6d1c8e33c9f45cfd41135705528aff3d2010498f' UNION ALL SELECT '0x41ce0136b3a9ee7c82d79fb72ff48360bd5a3263' UNION ALL SELECT '0x8202a631ed5027f17270c50f5c8873bc66192d64' UNION ALL SELECT '0xdce686fb06954dd54a2c73d4da97e46692d3990a' UNION ALL SELECT '0xd7efb91d3afcc0a80e8b14d40a15d2a0d7754907' UNION ALL SELECT '0x7ac0401b1d49a8e01daf46cb5198654f89e64dc5' UNION ALL SELECT '0xd880ed1456a16c463724cfdd329806ced7529b78' UNION ALL SELECT '0x0c3781f1fc02d5f9f43f53d81898af363042a187' UNION ALL SELECT '0x00a4ebb5b2f51882cf7df65e556bf0b742f02e4e' UNION ALL SELECT '0x6908d971a43edbaf8e1ac29aa62b604e030fee30' UNION ALL SELECT '0xfddb94f462ba7d5177b48eca41f444ab05af8c79' UNION ALL SELECT '0x0c8c8b4bc7930efecd85d8a339941563f44af572' UNION ALL SELECT '0x574fa5a78bc9cd15ec019be8f46001d268dfdbd2' UNION ALL SELECT '0x54b46c05a6815f5130a3ed5cbe5b59113146a511' UNION ALL SELECT '0x73c1537fe5b506172da6ce5ede31b57501608fdd' UNION ALL SELECT '0xbe9953072d303a3a438d102ee64c20bd7d01883b' UNION ALL SELECT '0xc4a362bafaba6c2f0d8228998d8a486695cb2c08' UNION ALL SELECT '0x8a475218723f31e480696b091890f1c3e8ccc281' UNION ALL SELECT '0x6aaf3cb86389baa6cd61592c372f8bf06b2d48e4' UNION ALL SELECT '0x12fa7d6d6158e985016147a985b24a5bc6584760' UNION ALL SELECT '0x00e18306d011be6f35933146872df32f4a86cb93' UNION ALL SELECT '0x23badb16b9f3863217eec3705dea14a0153600fa' UNION ALL SELECT '0x987a1ff376de4d3b745c1abecbc6cc3486cb03eb' UNION ALL SELECT '0xe22cd0a52d5de7b021df7a9261d5cbf18f237900' UNION ALL SELECT '0x78af761a6030b1011296becada3068eeedd97795' UNION ALL SELECT '0xd1f6ee081f7afd7bc8a4ccd4cfc2112a61429e62' UNION ALL SELECT '0x6c627bb2d47aff3b3922b6901b4cb9c0963756f3' UNION ALL SELECT '0xac0345c5fabe186c113bd763c542a254fd8e96e1' UNION ALL SELECT '0x63923c573e1f5c1ece24cedf45226e1be2c5d170' UNION ALL SELECT '0x152c96b8bfa478d311eea46f2bf1f6dbdeb4a36b' UNION ALL SELECT '0x62b2c0c64fffd8956f0ef100d95875cf59e296e9' UNION ALL SELECT '0xef35183c35d5d31d71ee9ad891438eba27cee259' UNION ALL SELECT '0x38e3ea5ea43dadd5fb15ba7d3ef6dd9f802eca8b' UNION ALL SELECT '0x8cbccff6b75674ca60f081f477a9fd037c0836f1' UNION ALL SELECT '0x12e5c03750ebed2bfe74eda0ce755f407aacefb2' UNION ALL SELECT '0x66bdc0b1864192a15f1f6868efc315c8e84c6b0e' UNION ALL SELECT '0x95ab1a82af29bdcbc64176d83f4cb1667afd8517' UNION ALL SELECT '0x4e061ef1b15abde9b51c08661ee56976d411d9a6' UNION ALL SELECT '0x739ac5024ef9ca1719b8f64d4a6286fb0e5f91fb' UNION ALL SELECT '0x9a3ba4734d1ced9a7a667d78470850d092bfc994' UNION ALL SELECT '0x885d0ee44c882c4ec30a51e8c0468bcb6689e0e4' UNION ALL SELECT '0x2d4708d2aabb53b8d95b5753cd14930cd5a64f99' UNION ALL SELECT '0x1b79e223eb51978a39d3bb9d1b96b313fc300050' UNION ALL SELECT '0xca6f48d161e66a45b139c74539938da78167c5db' UNION ALL SELECT '0x29e9bcfa2d166759075815f52a4c1968bad97c0e' UNION ALL SELECT '0x524d913f42bc78e02c80e1e99439a3eee3a005dd' UNION ALL SELECT '0x7c91a679d1e03ff9ddc0919e331cbfebc0bc38d2' UNION ALL SELECT '0xa592b7bba07e3bbd6d95b79e08d96ce6a8a4adb1' UNION ALL SELECT '0x4380061e913c9ca7ddd29fc4f15739f1fc6d666b' UNION ALL SELECT '0x7bbc0e92505b485aeb3e82e828cb505daf1e50c6' UNION ALL SELECT '0x9730e3051a60c534979bcdcd8a5fb519bcb22545' UNION ALL SELECT '0x2246ccad865813ecc61a496da7f5ab4eb135a1c7' UNION ALL SELECT '0x1091fe61221dd3f28b9904c371b9e9a9c9137683' UNION ALL SELECT '0x4779a3b6412fe3218b8e270f0f74d73c841bac04' UNION ALL SELECT '0x0f6b7c063916ff3ad4db7a669356552d9d17a3d6' UNION ALL SELECT '0xd9175d9369b26aac8803818de1cf366679a37946' UNION ALL SELECT '0x0604ed64b966b4f8184ab0f084a900ab8ba9fba9' UNION ALL SELECT '0x69e92e8e42064ba50908f81e695cf55141805a9c' UNION ALL SELECT '0x6bdd11cf1f64712b13f3897c1fde57ab60002861' UNION ALL SELECT '0x6351a477644cbf1505bee87710fe071e8abef2fc' UNION ALL SELECT '0xaa311eddfb19f2a542641d6982aa9df2d28ddfed' UNION ALL SELECT '0x2b433ce7ff7eeec2981351a9de6e46a0510edd28' UNION ALL SELECT '0x5e9ca97e368ff54428177ecef328a77c4beb85bb'", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "curve", + "schema": [ + { + "description": "", + "name": "deadline", + "type": "STRING" + }, + { + "description": "", + "name": "admin_fee", + "type": "STRING" + }, + { + "description": "", + "name": "mid_fee", + "type": "STRING" + }, + { + "description": "", + "name": "out_fee", + "type": "STRING" + }, + { + "description": "", + "name": "fee_gamma", + "type": "STRING" + }, + { + "description": "", + "name": "allowed_extra_profit", + "type": "STRING" + }, + { + "description": "", + "name": "adjustment_step", + "type": "STRING" + }, + { + "description": "", + "name": "ma_half_time", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "CryptoSwap_event_CommitNewParameters" + } +} \ No newline at end of file diff --git a/airflow/dags/resources/stages/parse/table_definitions/curve/CryptoSwap_event_NewParameters.json b/airflow/dags/resources/stages/parse/table_definitions/curve/CryptoSwap_event_NewParameters.json new file mode 100644 index 00000000..8f9b9b57 --- /dev/null +++ b/airflow/dags/resources/stages/parse/table_definitions/curve/CryptoSwap_event_NewParameters.json @@ -0,0 +1,91 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "name": "admin_fee", + "type": "uint256" + }, + { + "indexed": false, + "name": "mid_fee", + "type": "uint256" + }, + { + "indexed": false, + "name": "out_fee", + "type": "uint256" + }, + { + "indexed": false, + "name": "fee_gamma", + "type": "uint256" + }, + { + "indexed": false, + "name": "allowed_extra_profit", + "type": "uint256" + }, + { + "indexed": false, + "name": "adjustment_step", + "type": "uint256" + }, + { + "indexed": false, + "name": "ma_half_time", + "type": "uint256" + } + ], + "name": "NewParameters", + "type": "event" + }, + "contract_address": "(SELECT pool FROM ref('CryptoRegistry_event_PoolAdded') EXCEPT DISTINCT SELECT pool FROM ref('CryptoRegistry_event_PoolRemoved')) UNION ALL SELECT '0xec5afc9590964f2fa0feed54f0fbb2a34480908d' UNION ALL SELECT '0xc7c939a474cb10eb837894d1ed1a77c61b268fa7' UNION ALL SELECT '0x36becdcbdf49255f366a45b861b4223b482d35e4' UNION ALL SELECT '0x697fdefe26aca625c86dbd07d3b95fde3e7f7de5' UNION ALL SELECT '0x8187d4734aa4bd78f0a2f7941e276e410e37f033' UNION ALL SELECT '0xf5bed2bbe798187272741c3042cb662c8bb67daf' UNION ALL SELECT '0x36bec0732c913c87a558d6a16f077d5b3d7476c7' UNION ALL SELECT '0xc0b78f2e96de56d08c7608697680e935fe47295b' UNION ALL SELECT '0x48087143bd15b99e67a8cec578e4d884a4bbf124' UNION ALL SELECT '0xd9f354177edd66e7a6669f33d0ec64c14e153b38' UNION ALL SELECT '0x30f217c3423f824de89abe941da49887baa8485d' UNION ALL SELECT '0xcac8002275bc596e6fefc88807e75f5b6646fc10' UNION ALL SELECT '0xb47df195c7805b2bc9a20c2631b2234753625cd0' UNION ALL SELECT '0xfb6fe7802ba9290ef8b00ca16af4bc26eb663a28' UNION ALL SELECT '0x5e078b90af4a1899ae0b1ba17ff2e443f4eb78b0' UNION ALL SELECT '0x8705a57a7305e971d8fc897ddb4e0b535d7a047e' UNION ALL SELECT '0x7cc19f8c258d7f489bc1074437e25a46e397688f' UNION ALL SELECT '0x12fa77685728abcbe1d5c7c11638d2c8df250478' UNION ALL SELECT '0x36fae0c62fe24c7db4983af90c8901c1d7612cd4' UNION ALL SELECT '0xe8c9af58eba1dc532c1707b1e28736d3c9d1afed' UNION ALL SELECT '0xeb5f4c45e29c05c5fb166b72a173dc32831b4239' UNION ALL SELECT '0x8e6692b6fc3bce7d5291c96ff02ba24e1a329c60' UNION ALL SELECT '0x48d794c9b1acb3864ae0c63e9e5d19a6ec80a2c6' UNION ALL SELECT '0xc7d7133a2a4cb8d8b128e961eb8cd3ae85dd6204' UNION ALL SELECT '0x3320c9e72ffa1116a7bb5547f5ae7b2fa2a9eb75' UNION ALL SELECT '0x552fdb8be01c640fa308481ab1e9a7af9d62d0f7' UNION ALL SELECT '0xf4f2c1710e4470e58e4841ea0653f949bdddd67f' UNION ALL SELECT '0x9d874dfc60edc490d76f78663204fcfd608151d7' UNION ALL SELECT '0x453c551879234682d2b823ede73a2ce41a5150aa' UNION ALL SELECT '0x38af0a6d3551fa982ffad038b3b238df3757204b' UNION ALL SELECT '0x085ba43f0f6d152d6842721be0bd18ce2b828010' UNION ALL SELECT '0x4e7f7a0c44618fc0379f633a6697137955b0375b' UNION ALL SELECT '0xdf458f474810bd9157c480fbf61c0a80e6221eff' UNION ALL SELECT '0xa94fe71a7aaebbcaeb3f43f839bbc3c5a2d287ad' UNION ALL SELECT '0x6d1c8e33c9f45cfd41135705528aff3d2010498f' UNION ALL SELECT '0x41ce0136b3a9ee7c82d79fb72ff48360bd5a3263' UNION ALL SELECT '0x8202a631ed5027f17270c50f5c8873bc66192d64' UNION ALL SELECT '0xdce686fb06954dd54a2c73d4da97e46692d3990a' UNION ALL SELECT '0xd7efb91d3afcc0a80e8b14d40a15d2a0d7754907' UNION ALL SELECT '0x7ac0401b1d49a8e01daf46cb5198654f89e64dc5' UNION ALL SELECT '0xd880ed1456a16c463724cfdd329806ced7529b78' UNION ALL SELECT '0x0c3781f1fc02d5f9f43f53d81898af363042a187' UNION ALL SELECT '0x00a4ebb5b2f51882cf7df65e556bf0b742f02e4e' UNION ALL SELECT '0x6908d971a43edbaf8e1ac29aa62b604e030fee30' UNION ALL SELECT '0xfddb94f462ba7d5177b48eca41f444ab05af8c79' UNION ALL SELECT '0x0c8c8b4bc7930efecd85d8a339941563f44af572' UNION ALL SELECT '0x574fa5a78bc9cd15ec019be8f46001d268dfdbd2' UNION ALL SELECT '0x54b46c05a6815f5130a3ed5cbe5b59113146a511' UNION ALL SELECT '0x73c1537fe5b506172da6ce5ede31b57501608fdd' UNION ALL SELECT '0xbe9953072d303a3a438d102ee64c20bd7d01883b' UNION ALL SELECT '0xc4a362bafaba6c2f0d8228998d8a486695cb2c08' UNION ALL SELECT '0x8a475218723f31e480696b091890f1c3e8ccc281' UNION ALL SELECT '0x6aaf3cb86389baa6cd61592c372f8bf06b2d48e4' UNION ALL SELECT '0x12fa7d6d6158e985016147a985b24a5bc6584760' UNION ALL SELECT '0x00e18306d011be6f35933146872df32f4a86cb93' UNION ALL SELECT '0x23badb16b9f3863217eec3705dea14a0153600fa' UNION ALL SELECT '0x987a1ff376de4d3b745c1abecbc6cc3486cb03eb' UNION ALL SELECT '0xe22cd0a52d5de7b021df7a9261d5cbf18f237900' UNION ALL SELECT '0x78af761a6030b1011296becada3068eeedd97795' UNION ALL SELECT '0xd1f6ee081f7afd7bc8a4ccd4cfc2112a61429e62' UNION ALL SELECT '0x6c627bb2d47aff3b3922b6901b4cb9c0963756f3' UNION ALL SELECT '0xac0345c5fabe186c113bd763c542a254fd8e96e1' UNION ALL SELECT '0x63923c573e1f5c1ece24cedf45226e1be2c5d170' UNION ALL SELECT '0x152c96b8bfa478d311eea46f2bf1f6dbdeb4a36b' UNION ALL SELECT '0x62b2c0c64fffd8956f0ef100d95875cf59e296e9' UNION ALL SELECT '0xef35183c35d5d31d71ee9ad891438eba27cee259' UNION ALL SELECT '0x38e3ea5ea43dadd5fb15ba7d3ef6dd9f802eca8b' UNION ALL SELECT '0x8cbccff6b75674ca60f081f477a9fd037c0836f1' UNION ALL SELECT '0x12e5c03750ebed2bfe74eda0ce755f407aacefb2' UNION ALL SELECT '0x66bdc0b1864192a15f1f6868efc315c8e84c6b0e' UNION ALL SELECT '0x95ab1a82af29bdcbc64176d83f4cb1667afd8517' UNION ALL SELECT '0x4e061ef1b15abde9b51c08661ee56976d411d9a6' UNION ALL SELECT '0x739ac5024ef9ca1719b8f64d4a6286fb0e5f91fb' UNION ALL SELECT '0x9a3ba4734d1ced9a7a667d78470850d092bfc994' UNION ALL SELECT '0x885d0ee44c882c4ec30a51e8c0468bcb6689e0e4' UNION ALL SELECT '0x2d4708d2aabb53b8d95b5753cd14930cd5a64f99' UNION ALL SELECT '0x1b79e223eb51978a39d3bb9d1b96b313fc300050' UNION ALL SELECT '0xca6f48d161e66a45b139c74539938da78167c5db' UNION ALL SELECT '0x29e9bcfa2d166759075815f52a4c1968bad97c0e' UNION ALL SELECT '0x524d913f42bc78e02c80e1e99439a3eee3a005dd' UNION ALL SELECT '0x7c91a679d1e03ff9ddc0919e331cbfebc0bc38d2' UNION ALL SELECT '0xa592b7bba07e3bbd6d95b79e08d96ce6a8a4adb1' UNION ALL SELECT '0x4380061e913c9ca7ddd29fc4f15739f1fc6d666b' UNION ALL SELECT '0x7bbc0e92505b485aeb3e82e828cb505daf1e50c6' UNION ALL SELECT '0x9730e3051a60c534979bcdcd8a5fb519bcb22545' UNION ALL SELECT '0x2246ccad865813ecc61a496da7f5ab4eb135a1c7' UNION ALL SELECT '0x1091fe61221dd3f28b9904c371b9e9a9c9137683' UNION ALL SELECT '0x4779a3b6412fe3218b8e270f0f74d73c841bac04' UNION ALL SELECT '0x0f6b7c063916ff3ad4db7a669356552d9d17a3d6' UNION ALL SELECT '0xd9175d9369b26aac8803818de1cf366679a37946' UNION ALL SELECT '0x0604ed64b966b4f8184ab0f084a900ab8ba9fba9' UNION ALL SELECT '0x69e92e8e42064ba50908f81e695cf55141805a9c' UNION ALL SELECT '0x6bdd11cf1f64712b13f3897c1fde57ab60002861' UNION ALL SELECT '0x6351a477644cbf1505bee87710fe071e8abef2fc' UNION ALL SELECT '0xaa311eddfb19f2a542641d6982aa9df2d28ddfed' UNION ALL SELECT '0x2b433ce7ff7eeec2981351a9de6e46a0510edd28' UNION ALL SELECT '0x5e9ca97e368ff54428177ecef328a77c4beb85bb'", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "curve", + "schema": [ + { + "description": "", + "name": "admin_fee", + "type": "STRING" + }, + { + "description": "", + "name": "mid_fee", + "type": "STRING" + }, + { + "description": "", + "name": "out_fee", + "type": "STRING" + }, + { + "description": "", + "name": "fee_gamma", + "type": "STRING" + }, + { + "description": "", + "name": "allowed_extra_profit", + "type": "STRING" + }, + { + "description": "", + "name": "adjustment_step", + "type": "STRING" + }, + { + "description": "", + "name": "ma_half_time", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "CryptoSwap_event_NewParameters" + } +} \ No newline at end of file diff --git a/airflow/dags/resources/stages/parse/table_definitions/curve/CryptoSwap_event_RampAgamma.json b/airflow/dags/resources/stages/parse/table_definitions/curve/CryptoSwap_event_RampAgamma.json new file mode 100644 index 00000000..f6179e8b --- /dev/null +++ b/airflow/dags/resources/stages/parse/table_definitions/curve/CryptoSwap_event_RampAgamma.json @@ -0,0 +1,81 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "name": "initial_A", + "type": "uint256" + }, + { + "indexed": false, + "name": "future_A", + "type": "uint256" + }, + { + "indexed": false, + "name": "initial_gamma", + "type": "uint256" + }, + { + "indexed": false, + "name": "future_gamma", + "type": "uint256" + }, + { + "indexed": false, + "name": "initial_time", + "type": "uint256" + }, + { + "indexed": false, + "name": "future_time", + "type": "uint256" + } + ], + "name": "RampAgamma", + "type": "event" + }, + "contract_address": "(SELECT pool FROM ref('CryptoRegistry_event_PoolAdded') EXCEPT DISTINCT SELECT pool FROM ref('CryptoRegistry_event_PoolRemoved')) UNION ALL SELECT '0xec5afc9590964f2fa0feed54f0fbb2a34480908d' UNION ALL SELECT '0xc7c939a474cb10eb837894d1ed1a77c61b268fa7' UNION ALL SELECT '0x36becdcbdf49255f366a45b861b4223b482d35e4' UNION ALL SELECT '0x697fdefe26aca625c86dbd07d3b95fde3e7f7de5' UNION ALL SELECT '0x8187d4734aa4bd78f0a2f7941e276e410e37f033' UNION ALL SELECT '0xf5bed2bbe798187272741c3042cb662c8bb67daf' UNION ALL SELECT '0x36bec0732c913c87a558d6a16f077d5b3d7476c7' UNION ALL SELECT '0xc0b78f2e96de56d08c7608697680e935fe47295b' UNION ALL SELECT '0x48087143bd15b99e67a8cec578e4d884a4bbf124' UNION ALL SELECT '0xd9f354177edd66e7a6669f33d0ec64c14e153b38' UNION ALL SELECT '0x30f217c3423f824de89abe941da49887baa8485d' UNION ALL SELECT '0xcac8002275bc596e6fefc88807e75f5b6646fc10' UNION ALL SELECT '0xb47df195c7805b2bc9a20c2631b2234753625cd0' UNION ALL SELECT '0xfb6fe7802ba9290ef8b00ca16af4bc26eb663a28' UNION ALL SELECT '0x5e078b90af4a1899ae0b1ba17ff2e443f4eb78b0' UNION ALL SELECT '0x8705a57a7305e971d8fc897ddb4e0b535d7a047e' UNION ALL SELECT '0x7cc19f8c258d7f489bc1074437e25a46e397688f' UNION ALL SELECT '0x12fa77685728abcbe1d5c7c11638d2c8df250478' UNION ALL SELECT '0x36fae0c62fe24c7db4983af90c8901c1d7612cd4' UNION ALL SELECT '0xe8c9af58eba1dc532c1707b1e28736d3c9d1afed' UNION ALL SELECT '0xeb5f4c45e29c05c5fb166b72a173dc32831b4239' UNION ALL SELECT '0x8e6692b6fc3bce7d5291c96ff02ba24e1a329c60' UNION ALL SELECT '0x48d794c9b1acb3864ae0c63e9e5d19a6ec80a2c6' UNION ALL SELECT '0xc7d7133a2a4cb8d8b128e961eb8cd3ae85dd6204' UNION ALL SELECT '0x3320c9e72ffa1116a7bb5547f5ae7b2fa2a9eb75' UNION ALL SELECT '0x552fdb8be01c640fa308481ab1e9a7af9d62d0f7' UNION ALL SELECT '0xf4f2c1710e4470e58e4841ea0653f949bdddd67f' UNION ALL SELECT '0x9d874dfc60edc490d76f78663204fcfd608151d7' UNION ALL SELECT '0x453c551879234682d2b823ede73a2ce41a5150aa' UNION ALL SELECT '0x38af0a6d3551fa982ffad038b3b238df3757204b' UNION ALL SELECT '0x085ba43f0f6d152d6842721be0bd18ce2b828010' UNION ALL SELECT '0x4e7f7a0c44618fc0379f633a6697137955b0375b' UNION ALL SELECT '0xdf458f474810bd9157c480fbf61c0a80e6221eff' UNION ALL SELECT '0xa94fe71a7aaebbcaeb3f43f839bbc3c5a2d287ad' UNION ALL SELECT '0x6d1c8e33c9f45cfd41135705528aff3d2010498f' UNION ALL SELECT '0x41ce0136b3a9ee7c82d79fb72ff48360bd5a3263' UNION ALL SELECT '0x8202a631ed5027f17270c50f5c8873bc66192d64' UNION ALL SELECT '0xdce686fb06954dd54a2c73d4da97e46692d3990a' UNION ALL SELECT '0xd7efb91d3afcc0a80e8b14d40a15d2a0d7754907' UNION ALL SELECT '0x7ac0401b1d49a8e01daf46cb5198654f89e64dc5' UNION ALL SELECT '0xd880ed1456a16c463724cfdd329806ced7529b78' UNION ALL SELECT '0x0c3781f1fc02d5f9f43f53d81898af363042a187' UNION ALL SELECT '0x00a4ebb5b2f51882cf7df65e556bf0b742f02e4e' UNION ALL SELECT '0x6908d971a43edbaf8e1ac29aa62b604e030fee30' UNION ALL SELECT '0xfddb94f462ba7d5177b48eca41f444ab05af8c79' UNION ALL SELECT '0x0c8c8b4bc7930efecd85d8a339941563f44af572' UNION ALL SELECT '0x574fa5a78bc9cd15ec019be8f46001d268dfdbd2' UNION ALL SELECT '0x54b46c05a6815f5130a3ed5cbe5b59113146a511' UNION ALL SELECT '0x73c1537fe5b506172da6ce5ede31b57501608fdd' UNION ALL SELECT '0xbe9953072d303a3a438d102ee64c20bd7d01883b' UNION ALL SELECT '0xc4a362bafaba6c2f0d8228998d8a486695cb2c08' UNION ALL SELECT '0x8a475218723f31e480696b091890f1c3e8ccc281' UNION ALL SELECT '0x6aaf3cb86389baa6cd61592c372f8bf06b2d48e4' UNION ALL SELECT '0x12fa7d6d6158e985016147a985b24a5bc6584760' UNION ALL SELECT '0x00e18306d011be6f35933146872df32f4a86cb93' UNION ALL SELECT '0x23badb16b9f3863217eec3705dea14a0153600fa' UNION ALL SELECT '0x987a1ff376de4d3b745c1abecbc6cc3486cb03eb' UNION ALL SELECT '0xe22cd0a52d5de7b021df7a9261d5cbf18f237900' UNION ALL SELECT '0x78af761a6030b1011296becada3068eeedd97795' UNION ALL SELECT '0xd1f6ee081f7afd7bc8a4ccd4cfc2112a61429e62' UNION ALL SELECT '0x6c627bb2d47aff3b3922b6901b4cb9c0963756f3' UNION ALL SELECT '0xac0345c5fabe186c113bd763c542a254fd8e96e1' UNION ALL SELECT '0x63923c573e1f5c1ece24cedf45226e1be2c5d170' UNION ALL SELECT '0x152c96b8bfa478d311eea46f2bf1f6dbdeb4a36b' UNION ALL SELECT '0x62b2c0c64fffd8956f0ef100d95875cf59e296e9' UNION ALL SELECT '0xef35183c35d5d31d71ee9ad891438eba27cee259' UNION ALL SELECT '0x38e3ea5ea43dadd5fb15ba7d3ef6dd9f802eca8b' UNION ALL SELECT '0x8cbccff6b75674ca60f081f477a9fd037c0836f1' UNION ALL SELECT '0x12e5c03750ebed2bfe74eda0ce755f407aacefb2' UNION ALL SELECT '0x66bdc0b1864192a15f1f6868efc315c8e84c6b0e' UNION ALL SELECT '0x95ab1a82af29bdcbc64176d83f4cb1667afd8517' UNION ALL SELECT '0x4e061ef1b15abde9b51c08661ee56976d411d9a6' UNION ALL SELECT '0x739ac5024ef9ca1719b8f64d4a6286fb0e5f91fb' UNION ALL SELECT '0x9a3ba4734d1ced9a7a667d78470850d092bfc994' UNION ALL SELECT '0x885d0ee44c882c4ec30a51e8c0468bcb6689e0e4' UNION ALL SELECT '0x2d4708d2aabb53b8d95b5753cd14930cd5a64f99' UNION ALL SELECT '0x1b79e223eb51978a39d3bb9d1b96b313fc300050' UNION ALL SELECT '0xca6f48d161e66a45b139c74539938da78167c5db' UNION ALL SELECT '0x29e9bcfa2d166759075815f52a4c1968bad97c0e' UNION ALL SELECT '0x524d913f42bc78e02c80e1e99439a3eee3a005dd' UNION ALL SELECT '0x7c91a679d1e03ff9ddc0919e331cbfebc0bc38d2' UNION ALL SELECT '0xa592b7bba07e3bbd6d95b79e08d96ce6a8a4adb1' UNION ALL SELECT '0x4380061e913c9ca7ddd29fc4f15739f1fc6d666b' UNION ALL SELECT '0x7bbc0e92505b485aeb3e82e828cb505daf1e50c6' UNION ALL SELECT '0x9730e3051a60c534979bcdcd8a5fb519bcb22545' UNION ALL SELECT '0x2246ccad865813ecc61a496da7f5ab4eb135a1c7' UNION ALL SELECT '0x1091fe61221dd3f28b9904c371b9e9a9c9137683' UNION ALL SELECT '0x4779a3b6412fe3218b8e270f0f74d73c841bac04' UNION ALL SELECT '0x0f6b7c063916ff3ad4db7a669356552d9d17a3d6' UNION ALL SELECT '0xd9175d9369b26aac8803818de1cf366679a37946' UNION ALL SELECT '0x0604ed64b966b4f8184ab0f084a900ab8ba9fba9' UNION ALL SELECT '0x69e92e8e42064ba50908f81e695cf55141805a9c' UNION ALL SELECT '0x6bdd11cf1f64712b13f3897c1fde57ab60002861' UNION ALL SELECT '0x6351a477644cbf1505bee87710fe071e8abef2fc' UNION ALL SELECT '0xaa311eddfb19f2a542641d6982aa9df2d28ddfed' UNION ALL SELECT '0x2b433ce7ff7eeec2981351a9de6e46a0510edd28' UNION ALL SELECT '0x5e9ca97e368ff54428177ecef328a77c4beb85bb'", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "curve", + "schema": [ + { + "description": "", + "name": "initial_A", + "type": "STRING" + }, + { + "description": "", + "name": "future_A", + "type": "STRING" + }, + { + "description": "", + "name": "initial_gamma", + "type": "STRING" + }, + { + "description": "", + "name": "future_gamma", + "type": "STRING" + }, + { + "description": "", + "name": "initial_time", + "type": "STRING" + }, + { + "description": "", + "name": "future_time", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "CryptoSwap_event_RampAgamma" + } +} \ No newline at end of file diff --git a/airflow/dags/resources/stages/parse/table_definitions/curve/CryptoSwap_event_RemoveLiquidity.json b/airflow/dags/resources/stages/parse/table_definitions/curve/CryptoSwap_event_RemoveLiquidity.json new file mode 100644 index 00000000..73599da0 --- /dev/null +++ b/airflow/dags/resources/stages/parse/table_definitions/curve/CryptoSwap_event_RemoveLiquidity.json @@ -0,0 +1,51 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "name": "provider", + "type": "address" + }, + { + "indexed": false, + "name": "token_amounts", + "type": "uint256[2]" + }, + { + "indexed": false, + "name": "token_supply", + "type": "uint256" + } + ], + "name": "RemoveLiquidity", + "type": "event" + }, + "contract_address": "(SELECT pool FROM ref('CryptoRegistry_event_PoolAdded') EXCEPT DISTINCT SELECT pool FROM ref('CryptoRegistry_event_PoolRemoved')) UNION ALL SELECT '0xec5afc9590964f2fa0feed54f0fbb2a34480908d' UNION ALL SELECT '0xc7c939a474cb10eb837894d1ed1a77c61b268fa7' UNION ALL SELECT '0x36becdcbdf49255f366a45b861b4223b482d35e4' UNION ALL SELECT '0x697fdefe26aca625c86dbd07d3b95fde3e7f7de5' UNION ALL SELECT '0x8187d4734aa4bd78f0a2f7941e276e410e37f033' UNION ALL SELECT '0xf5bed2bbe798187272741c3042cb662c8bb67daf' UNION ALL SELECT '0x36bec0732c913c87a558d6a16f077d5b3d7476c7' UNION ALL SELECT '0xc0b78f2e96de56d08c7608697680e935fe47295b' UNION ALL SELECT '0x48087143bd15b99e67a8cec578e4d884a4bbf124' UNION ALL SELECT '0xd9f354177edd66e7a6669f33d0ec64c14e153b38' UNION ALL SELECT '0x30f217c3423f824de89abe941da49887baa8485d' UNION ALL SELECT '0xcac8002275bc596e6fefc88807e75f5b6646fc10' UNION ALL SELECT '0xb47df195c7805b2bc9a20c2631b2234753625cd0' UNION ALL SELECT '0xfb6fe7802ba9290ef8b00ca16af4bc26eb663a28' UNION ALL SELECT '0x5e078b90af4a1899ae0b1ba17ff2e443f4eb78b0' UNION ALL SELECT '0x8705a57a7305e971d8fc897ddb4e0b535d7a047e' UNION ALL SELECT '0x7cc19f8c258d7f489bc1074437e25a46e397688f' UNION ALL SELECT '0x12fa77685728abcbe1d5c7c11638d2c8df250478' UNION ALL SELECT '0x36fae0c62fe24c7db4983af90c8901c1d7612cd4' UNION ALL SELECT '0xe8c9af58eba1dc532c1707b1e28736d3c9d1afed' UNION ALL SELECT '0xeb5f4c45e29c05c5fb166b72a173dc32831b4239' UNION ALL SELECT '0x8e6692b6fc3bce7d5291c96ff02ba24e1a329c60' UNION ALL SELECT '0x48d794c9b1acb3864ae0c63e9e5d19a6ec80a2c6' UNION ALL SELECT '0xc7d7133a2a4cb8d8b128e961eb8cd3ae85dd6204' UNION ALL SELECT '0x3320c9e72ffa1116a7bb5547f5ae7b2fa2a9eb75' UNION ALL SELECT '0x552fdb8be01c640fa308481ab1e9a7af9d62d0f7' UNION ALL SELECT '0xf4f2c1710e4470e58e4841ea0653f949bdddd67f' UNION ALL SELECT '0x9d874dfc60edc490d76f78663204fcfd608151d7' UNION ALL SELECT '0x453c551879234682d2b823ede73a2ce41a5150aa' UNION ALL SELECT '0x38af0a6d3551fa982ffad038b3b238df3757204b' UNION ALL SELECT '0x085ba43f0f6d152d6842721be0bd18ce2b828010' UNION ALL SELECT '0x4e7f7a0c44618fc0379f633a6697137955b0375b' UNION ALL SELECT '0xdf458f474810bd9157c480fbf61c0a80e6221eff' UNION ALL SELECT '0xa94fe71a7aaebbcaeb3f43f839bbc3c5a2d287ad' UNION ALL SELECT '0x6d1c8e33c9f45cfd41135705528aff3d2010498f' UNION ALL SELECT '0x41ce0136b3a9ee7c82d79fb72ff48360bd5a3263' UNION ALL SELECT '0x8202a631ed5027f17270c50f5c8873bc66192d64' UNION ALL SELECT '0xdce686fb06954dd54a2c73d4da97e46692d3990a' UNION ALL SELECT '0xd7efb91d3afcc0a80e8b14d40a15d2a0d7754907' UNION ALL SELECT '0x7ac0401b1d49a8e01daf46cb5198654f89e64dc5' UNION ALL SELECT '0xd880ed1456a16c463724cfdd329806ced7529b78' UNION ALL SELECT '0x0c3781f1fc02d5f9f43f53d81898af363042a187' UNION ALL SELECT '0x00a4ebb5b2f51882cf7df65e556bf0b742f02e4e' UNION ALL SELECT '0x6908d971a43edbaf8e1ac29aa62b604e030fee30' UNION ALL SELECT '0xfddb94f462ba7d5177b48eca41f444ab05af8c79' UNION ALL SELECT '0x0c8c8b4bc7930efecd85d8a339941563f44af572' UNION ALL SELECT '0x574fa5a78bc9cd15ec019be8f46001d268dfdbd2' UNION ALL SELECT '0x54b46c05a6815f5130a3ed5cbe5b59113146a511' UNION ALL SELECT '0x73c1537fe5b506172da6ce5ede31b57501608fdd' UNION ALL SELECT '0xbe9953072d303a3a438d102ee64c20bd7d01883b' UNION ALL SELECT '0xc4a362bafaba6c2f0d8228998d8a486695cb2c08' UNION ALL SELECT '0x8a475218723f31e480696b091890f1c3e8ccc281' UNION ALL SELECT '0x6aaf3cb86389baa6cd61592c372f8bf06b2d48e4' UNION ALL SELECT '0x12fa7d6d6158e985016147a985b24a5bc6584760' UNION ALL SELECT '0x00e18306d011be6f35933146872df32f4a86cb93' UNION ALL SELECT '0x23badb16b9f3863217eec3705dea14a0153600fa' UNION ALL SELECT '0x987a1ff376de4d3b745c1abecbc6cc3486cb03eb' UNION ALL SELECT '0xe22cd0a52d5de7b021df7a9261d5cbf18f237900' UNION ALL SELECT '0x78af761a6030b1011296becada3068eeedd97795' UNION ALL SELECT '0xd1f6ee081f7afd7bc8a4ccd4cfc2112a61429e62' UNION ALL SELECT '0x6c627bb2d47aff3b3922b6901b4cb9c0963756f3' UNION ALL SELECT '0xac0345c5fabe186c113bd763c542a254fd8e96e1' UNION ALL SELECT '0x63923c573e1f5c1ece24cedf45226e1be2c5d170' UNION ALL SELECT '0x152c96b8bfa478d311eea46f2bf1f6dbdeb4a36b' UNION ALL SELECT '0x62b2c0c64fffd8956f0ef100d95875cf59e296e9' UNION ALL SELECT '0xef35183c35d5d31d71ee9ad891438eba27cee259' UNION ALL SELECT '0x38e3ea5ea43dadd5fb15ba7d3ef6dd9f802eca8b' UNION ALL SELECT '0x8cbccff6b75674ca60f081f477a9fd037c0836f1' UNION ALL SELECT '0x12e5c03750ebed2bfe74eda0ce755f407aacefb2' UNION ALL SELECT '0x66bdc0b1864192a15f1f6868efc315c8e84c6b0e' UNION ALL SELECT '0x95ab1a82af29bdcbc64176d83f4cb1667afd8517' UNION ALL SELECT '0x4e061ef1b15abde9b51c08661ee56976d411d9a6' UNION ALL SELECT '0x739ac5024ef9ca1719b8f64d4a6286fb0e5f91fb' UNION ALL SELECT '0x9a3ba4734d1ced9a7a667d78470850d092bfc994' UNION ALL SELECT '0x885d0ee44c882c4ec30a51e8c0468bcb6689e0e4' UNION ALL SELECT '0x2d4708d2aabb53b8d95b5753cd14930cd5a64f99' UNION ALL SELECT '0x1b79e223eb51978a39d3bb9d1b96b313fc300050' UNION ALL SELECT '0xca6f48d161e66a45b139c74539938da78167c5db' UNION ALL SELECT '0x29e9bcfa2d166759075815f52a4c1968bad97c0e' UNION ALL SELECT '0x524d913f42bc78e02c80e1e99439a3eee3a005dd' UNION ALL SELECT '0x7c91a679d1e03ff9ddc0919e331cbfebc0bc38d2' UNION ALL SELECT '0xa592b7bba07e3bbd6d95b79e08d96ce6a8a4adb1' UNION ALL SELECT '0x4380061e913c9ca7ddd29fc4f15739f1fc6d666b' UNION ALL SELECT '0x7bbc0e92505b485aeb3e82e828cb505daf1e50c6' UNION ALL SELECT '0x9730e3051a60c534979bcdcd8a5fb519bcb22545' UNION ALL SELECT '0x2246ccad865813ecc61a496da7f5ab4eb135a1c7' UNION ALL SELECT '0x1091fe61221dd3f28b9904c371b9e9a9c9137683' UNION ALL SELECT '0x4779a3b6412fe3218b8e270f0f74d73c841bac04' UNION ALL SELECT '0x0f6b7c063916ff3ad4db7a669356552d9d17a3d6' UNION ALL SELECT '0xd9175d9369b26aac8803818de1cf366679a37946' UNION ALL SELECT '0x0604ed64b966b4f8184ab0f084a900ab8ba9fba9' UNION ALL SELECT '0x69e92e8e42064ba50908f81e695cf55141805a9c' UNION ALL SELECT '0x6bdd11cf1f64712b13f3897c1fde57ab60002861' UNION ALL SELECT '0x6351a477644cbf1505bee87710fe071e8abef2fc' UNION ALL SELECT '0xaa311eddfb19f2a542641d6982aa9df2d28ddfed' UNION ALL SELECT '0x2b433ce7ff7eeec2981351a9de6e46a0510edd28' UNION ALL SELECT '0x5e9ca97e368ff54428177ecef328a77c4beb85bb'", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "curve", + "schema": [ + { + "description": "", + "name": "provider", + "type": "STRING" + }, + { + "description": "", + "name": "token_amounts", + "type": "STRING" + }, + { + "description": "", + "name": "token_supply", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "CryptoSwap_event_RemoveLiquidity" + } +} \ No newline at end of file diff --git a/airflow/dags/resources/stages/parse/table_definitions/curve/CryptoSwap_event_RemoveLiquidityOne.json b/airflow/dags/resources/stages/parse/table_definitions/curve/CryptoSwap_event_RemoveLiquidityOne.json new file mode 100644 index 00000000..70e59a8d --- /dev/null +++ b/airflow/dags/resources/stages/parse/table_definitions/curve/CryptoSwap_event_RemoveLiquidityOne.json @@ -0,0 +1,61 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "name": "provider", + "type": "address" + }, + { + "indexed": false, + "name": "token_amount", + "type": "uint256" + }, + { + "indexed": false, + "name": "coin_index", + "type": "uint256" + }, + { + "indexed": false, + "name": "coin_amount", + "type": "uint256" + } + ], + "name": "RemoveLiquidityOne", + "type": "event" + }, + "contract_address": "(SELECT pool FROM ref('CryptoRegistry_event_PoolAdded') EXCEPT DISTINCT SELECT pool FROM ref('CryptoRegistry_event_PoolRemoved')) UNION ALL SELECT '0xec5afc9590964f2fa0feed54f0fbb2a34480908d' UNION ALL SELECT '0xc7c939a474cb10eb837894d1ed1a77c61b268fa7' UNION ALL SELECT '0x36becdcbdf49255f366a45b861b4223b482d35e4' UNION ALL SELECT '0x697fdefe26aca625c86dbd07d3b95fde3e7f7de5' UNION ALL SELECT '0x8187d4734aa4bd78f0a2f7941e276e410e37f033' UNION ALL SELECT '0xf5bed2bbe798187272741c3042cb662c8bb67daf' UNION ALL SELECT '0x36bec0732c913c87a558d6a16f077d5b3d7476c7' UNION ALL SELECT '0xc0b78f2e96de56d08c7608697680e935fe47295b' UNION ALL SELECT '0x48087143bd15b99e67a8cec578e4d884a4bbf124' UNION ALL SELECT '0xd9f354177edd66e7a6669f33d0ec64c14e153b38' UNION ALL SELECT '0x30f217c3423f824de89abe941da49887baa8485d' UNION ALL SELECT '0xcac8002275bc596e6fefc88807e75f5b6646fc10' UNION ALL SELECT '0xb47df195c7805b2bc9a20c2631b2234753625cd0' UNION ALL SELECT '0xfb6fe7802ba9290ef8b00ca16af4bc26eb663a28' UNION ALL SELECT '0x5e078b90af4a1899ae0b1ba17ff2e443f4eb78b0' UNION ALL SELECT '0x8705a57a7305e971d8fc897ddb4e0b535d7a047e' UNION ALL SELECT '0x7cc19f8c258d7f489bc1074437e25a46e397688f' UNION ALL SELECT '0x12fa77685728abcbe1d5c7c11638d2c8df250478' UNION ALL SELECT '0x36fae0c62fe24c7db4983af90c8901c1d7612cd4' UNION ALL SELECT '0xe8c9af58eba1dc532c1707b1e28736d3c9d1afed' UNION ALL SELECT '0xeb5f4c45e29c05c5fb166b72a173dc32831b4239' UNION ALL SELECT '0x8e6692b6fc3bce7d5291c96ff02ba24e1a329c60' UNION ALL SELECT '0x48d794c9b1acb3864ae0c63e9e5d19a6ec80a2c6' UNION ALL SELECT '0xc7d7133a2a4cb8d8b128e961eb8cd3ae85dd6204' UNION ALL SELECT '0x3320c9e72ffa1116a7bb5547f5ae7b2fa2a9eb75' UNION ALL SELECT '0x552fdb8be01c640fa308481ab1e9a7af9d62d0f7' UNION ALL SELECT '0xf4f2c1710e4470e58e4841ea0653f949bdddd67f' UNION ALL SELECT '0x9d874dfc60edc490d76f78663204fcfd608151d7' UNION ALL SELECT '0x453c551879234682d2b823ede73a2ce41a5150aa' UNION ALL SELECT '0x38af0a6d3551fa982ffad038b3b238df3757204b' UNION ALL SELECT '0x085ba43f0f6d152d6842721be0bd18ce2b828010' UNION ALL SELECT '0x4e7f7a0c44618fc0379f633a6697137955b0375b' UNION ALL SELECT '0xdf458f474810bd9157c480fbf61c0a80e6221eff' UNION ALL SELECT '0xa94fe71a7aaebbcaeb3f43f839bbc3c5a2d287ad' UNION ALL SELECT '0x6d1c8e33c9f45cfd41135705528aff3d2010498f' UNION ALL SELECT '0x41ce0136b3a9ee7c82d79fb72ff48360bd5a3263' UNION ALL SELECT '0x8202a631ed5027f17270c50f5c8873bc66192d64' UNION ALL SELECT '0xdce686fb06954dd54a2c73d4da97e46692d3990a' UNION ALL SELECT '0xd7efb91d3afcc0a80e8b14d40a15d2a0d7754907' UNION ALL SELECT '0x7ac0401b1d49a8e01daf46cb5198654f89e64dc5' UNION ALL SELECT '0xd880ed1456a16c463724cfdd329806ced7529b78' UNION ALL SELECT '0x0c3781f1fc02d5f9f43f53d81898af363042a187' UNION ALL SELECT '0x00a4ebb5b2f51882cf7df65e556bf0b742f02e4e' UNION ALL SELECT '0x6908d971a43edbaf8e1ac29aa62b604e030fee30' UNION ALL SELECT '0xfddb94f462ba7d5177b48eca41f444ab05af8c79' UNION ALL SELECT '0x0c8c8b4bc7930efecd85d8a339941563f44af572' UNION ALL SELECT '0x574fa5a78bc9cd15ec019be8f46001d268dfdbd2' UNION ALL SELECT '0x54b46c05a6815f5130a3ed5cbe5b59113146a511' UNION ALL SELECT '0x73c1537fe5b506172da6ce5ede31b57501608fdd' UNION ALL SELECT '0xbe9953072d303a3a438d102ee64c20bd7d01883b' UNION ALL SELECT '0xc4a362bafaba6c2f0d8228998d8a486695cb2c08' UNION ALL SELECT '0x8a475218723f31e480696b091890f1c3e8ccc281' UNION ALL SELECT '0x6aaf3cb86389baa6cd61592c372f8bf06b2d48e4' UNION ALL SELECT '0x12fa7d6d6158e985016147a985b24a5bc6584760' UNION ALL SELECT '0x00e18306d011be6f35933146872df32f4a86cb93' UNION ALL SELECT '0x23badb16b9f3863217eec3705dea14a0153600fa' UNION ALL SELECT '0x987a1ff376de4d3b745c1abecbc6cc3486cb03eb' UNION ALL SELECT '0xe22cd0a52d5de7b021df7a9261d5cbf18f237900' UNION ALL SELECT '0x78af761a6030b1011296becada3068eeedd97795' UNION ALL SELECT '0xd1f6ee081f7afd7bc8a4ccd4cfc2112a61429e62' UNION ALL SELECT '0x6c627bb2d47aff3b3922b6901b4cb9c0963756f3' UNION ALL SELECT '0xac0345c5fabe186c113bd763c542a254fd8e96e1' UNION ALL SELECT '0x63923c573e1f5c1ece24cedf45226e1be2c5d170' UNION ALL SELECT '0x152c96b8bfa478d311eea46f2bf1f6dbdeb4a36b' UNION ALL SELECT '0x62b2c0c64fffd8956f0ef100d95875cf59e296e9' UNION ALL SELECT '0xef35183c35d5d31d71ee9ad891438eba27cee259' UNION ALL SELECT '0x38e3ea5ea43dadd5fb15ba7d3ef6dd9f802eca8b' UNION ALL SELECT '0x8cbccff6b75674ca60f081f477a9fd037c0836f1' UNION ALL SELECT '0x12e5c03750ebed2bfe74eda0ce755f407aacefb2' UNION ALL SELECT '0x66bdc0b1864192a15f1f6868efc315c8e84c6b0e' UNION ALL SELECT '0x95ab1a82af29bdcbc64176d83f4cb1667afd8517' UNION ALL SELECT '0x4e061ef1b15abde9b51c08661ee56976d411d9a6' UNION ALL SELECT '0x739ac5024ef9ca1719b8f64d4a6286fb0e5f91fb' UNION ALL SELECT '0x9a3ba4734d1ced9a7a667d78470850d092bfc994' UNION ALL SELECT '0x885d0ee44c882c4ec30a51e8c0468bcb6689e0e4' UNION ALL SELECT '0x2d4708d2aabb53b8d95b5753cd14930cd5a64f99' UNION ALL SELECT '0x1b79e223eb51978a39d3bb9d1b96b313fc300050' UNION ALL SELECT '0xca6f48d161e66a45b139c74539938da78167c5db' UNION ALL SELECT '0x29e9bcfa2d166759075815f52a4c1968bad97c0e' UNION ALL SELECT '0x524d913f42bc78e02c80e1e99439a3eee3a005dd' UNION ALL SELECT '0x7c91a679d1e03ff9ddc0919e331cbfebc0bc38d2' UNION ALL SELECT '0xa592b7bba07e3bbd6d95b79e08d96ce6a8a4adb1' UNION ALL SELECT '0x4380061e913c9ca7ddd29fc4f15739f1fc6d666b' UNION ALL SELECT '0x7bbc0e92505b485aeb3e82e828cb505daf1e50c6' UNION ALL SELECT '0x9730e3051a60c534979bcdcd8a5fb519bcb22545' UNION ALL SELECT '0x2246ccad865813ecc61a496da7f5ab4eb135a1c7' UNION ALL SELECT '0x1091fe61221dd3f28b9904c371b9e9a9c9137683' UNION ALL SELECT '0x4779a3b6412fe3218b8e270f0f74d73c841bac04' UNION ALL SELECT '0x0f6b7c063916ff3ad4db7a669356552d9d17a3d6' UNION ALL SELECT '0xd9175d9369b26aac8803818de1cf366679a37946' UNION ALL SELECT '0x0604ed64b966b4f8184ab0f084a900ab8ba9fba9' UNION ALL SELECT '0x69e92e8e42064ba50908f81e695cf55141805a9c' UNION ALL SELECT '0x6bdd11cf1f64712b13f3897c1fde57ab60002861' UNION ALL SELECT '0x6351a477644cbf1505bee87710fe071e8abef2fc' UNION ALL SELECT '0xaa311eddfb19f2a542641d6982aa9df2d28ddfed' UNION ALL SELECT '0x2b433ce7ff7eeec2981351a9de6e46a0510edd28' UNION ALL SELECT '0x5e9ca97e368ff54428177ecef328a77c4beb85bb'", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "curve", + "schema": [ + { + "description": "", + "name": "provider", + "type": "STRING" + }, + { + "description": "", + "name": "token_amount", + "type": "STRING" + }, + { + "description": "", + "name": "coin_index", + "type": "STRING" + }, + { + "description": "", + "name": "coin_amount", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "CryptoSwap_event_RemoveLiquidityOne" + } +} \ No newline at end of file diff --git a/airflow/dags/resources/stages/parse/table_definitions/curve/CryptoSwap_event_StopRampA.json b/airflow/dags/resources/stages/parse/table_definitions/curve/CryptoSwap_event_StopRampA.json new file mode 100644 index 00000000..bd4243e3 --- /dev/null +++ b/airflow/dags/resources/stages/parse/table_definitions/curve/CryptoSwap_event_StopRampA.json @@ -0,0 +1,51 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "name": "current_A", + "type": "uint256" + }, + { + "indexed": false, + "name": "current_gamma", + "type": "uint256" + }, + { + "indexed": false, + "name": "time", + "type": "uint256" + } + ], + "name": "StopRampA", + "type": "event" + }, + "contract_address": "(SELECT pool FROM ref('CryptoRegistry_event_PoolAdded') EXCEPT DISTINCT SELECT pool FROM ref('CryptoRegistry_event_PoolRemoved')) UNION ALL SELECT '0xec5afc9590964f2fa0feed54f0fbb2a34480908d' UNION ALL SELECT '0xc7c939a474cb10eb837894d1ed1a77c61b268fa7' UNION ALL SELECT '0x36becdcbdf49255f366a45b861b4223b482d35e4' UNION ALL SELECT '0x697fdefe26aca625c86dbd07d3b95fde3e7f7de5' UNION ALL SELECT '0x8187d4734aa4bd78f0a2f7941e276e410e37f033' UNION ALL SELECT '0xf5bed2bbe798187272741c3042cb662c8bb67daf' UNION ALL SELECT '0x36bec0732c913c87a558d6a16f077d5b3d7476c7' UNION ALL SELECT '0xc0b78f2e96de56d08c7608697680e935fe47295b' UNION ALL SELECT '0x48087143bd15b99e67a8cec578e4d884a4bbf124' UNION ALL SELECT '0xd9f354177edd66e7a6669f33d0ec64c14e153b38' UNION ALL SELECT '0x30f217c3423f824de89abe941da49887baa8485d' UNION ALL SELECT '0xcac8002275bc596e6fefc88807e75f5b6646fc10' UNION ALL SELECT '0xb47df195c7805b2bc9a20c2631b2234753625cd0' UNION ALL SELECT '0xfb6fe7802ba9290ef8b00ca16af4bc26eb663a28' UNION ALL SELECT '0x5e078b90af4a1899ae0b1ba17ff2e443f4eb78b0' UNION ALL SELECT '0x8705a57a7305e971d8fc897ddb4e0b535d7a047e' UNION ALL SELECT '0x7cc19f8c258d7f489bc1074437e25a46e397688f' UNION ALL SELECT '0x12fa77685728abcbe1d5c7c11638d2c8df250478' UNION ALL SELECT '0x36fae0c62fe24c7db4983af90c8901c1d7612cd4' UNION ALL SELECT '0xe8c9af58eba1dc532c1707b1e28736d3c9d1afed' UNION ALL SELECT '0xeb5f4c45e29c05c5fb166b72a173dc32831b4239' UNION ALL SELECT '0x8e6692b6fc3bce7d5291c96ff02ba24e1a329c60' UNION ALL SELECT '0x48d794c9b1acb3864ae0c63e9e5d19a6ec80a2c6' UNION ALL SELECT '0xc7d7133a2a4cb8d8b128e961eb8cd3ae85dd6204' UNION ALL SELECT '0x3320c9e72ffa1116a7bb5547f5ae7b2fa2a9eb75' UNION ALL SELECT '0x552fdb8be01c640fa308481ab1e9a7af9d62d0f7' UNION ALL SELECT '0xf4f2c1710e4470e58e4841ea0653f949bdddd67f' UNION ALL SELECT '0x9d874dfc60edc490d76f78663204fcfd608151d7' UNION ALL SELECT '0x453c551879234682d2b823ede73a2ce41a5150aa' UNION ALL SELECT '0x38af0a6d3551fa982ffad038b3b238df3757204b' UNION ALL SELECT '0x085ba43f0f6d152d6842721be0bd18ce2b828010' UNION ALL SELECT '0x4e7f7a0c44618fc0379f633a6697137955b0375b' UNION ALL SELECT '0xdf458f474810bd9157c480fbf61c0a80e6221eff' UNION ALL SELECT '0xa94fe71a7aaebbcaeb3f43f839bbc3c5a2d287ad' UNION ALL SELECT '0x6d1c8e33c9f45cfd41135705528aff3d2010498f' UNION ALL SELECT '0x41ce0136b3a9ee7c82d79fb72ff48360bd5a3263' UNION ALL SELECT '0x8202a631ed5027f17270c50f5c8873bc66192d64' UNION ALL SELECT '0xdce686fb06954dd54a2c73d4da97e46692d3990a' UNION ALL SELECT '0xd7efb91d3afcc0a80e8b14d40a15d2a0d7754907' UNION ALL SELECT '0x7ac0401b1d49a8e01daf46cb5198654f89e64dc5' UNION ALL SELECT '0xd880ed1456a16c463724cfdd329806ced7529b78' UNION ALL SELECT '0x0c3781f1fc02d5f9f43f53d81898af363042a187' UNION ALL SELECT '0x00a4ebb5b2f51882cf7df65e556bf0b742f02e4e' UNION ALL SELECT '0x6908d971a43edbaf8e1ac29aa62b604e030fee30' UNION ALL SELECT '0xfddb94f462ba7d5177b48eca41f444ab05af8c79' UNION ALL SELECT '0x0c8c8b4bc7930efecd85d8a339941563f44af572' UNION ALL SELECT '0x574fa5a78bc9cd15ec019be8f46001d268dfdbd2' UNION ALL SELECT '0x54b46c05a6815f5130a3ed5cbe5b59113146a511' UNION ALL SELECT '0x73c1537fe5b506172da6ce5ede31b57501608fdd' UNION ALL SELECT '0xbe9953072d303a3a438d102ee64c20bd7d01883b' UNION ALL SELECT '0xc4a362bafaba6c2f0d8228998d8a486695cb2c08' UNION ALL SELECT '0x8a475218723f31e480696b091890f1c3e8ccc281' UNION ALL SELECT '0x6aaf3cb86389baa6cd61592c372f8bf06b2d48e4' UNION ALL SELECT '0x12fa7d6d6158e985016147a985b24a5bc6584760' UNION ALL SELECT '0x00e18306d011be6f35933146872df32f4a86cb93' UNION ALL SELECT '0x23badb16b9f3863217eec3705dea14a0153600fa' UNION ALL SELECT '0x987a1ff376de4d3b745c1abecbc6cc3486cb03eb' UNION ALL SELECT '0xe22cd0a52d5de7b021df7a9261d5cbf18f237900' UNION ALL SELECT '0x78af761a6030b1011296becada3068eeedd97795' UNION ALL SELECT '0xd1f6ee081f7afd7bc8a4ccd4cfc2112a61429e62' UNION ALL SELECT '0x6c627bb2d47aff3b3922b6901b4cb9c0963756f3' UNION ALL SELECT '0xac0345c5fabe186c113bd763c542a254fd8e96e1' UNION ALL SELECT '0x63923c573e1f5c1ece24cedf45226e1be2c5d170' UNION ALL SELECT '0x152c96b8bfa478d311eea46f2bf1f6dbdeb4a36b' UNION ALL SELECT '0x62b2c0c64fffd8956f0ef100d95875cf59e296e9' UNION ALL SELECT '0xef35183c35d5d31d71ee9ad891438eba27cee259' UNION ALL SELECT '0x38e3ea5ea43dadd5fb15ba7d3ef6dd9f802eca8b' UNION ALL SELECT '0x8cbccff6b75674ca60f081f477a9fd037c0836f1' UNION ALL SELECT '0x12e5c03750ebed2bfe74eda0ce755f407aacefb2' UNION ALL SELECT '0x66bdc0b1864192a15f1f6868efc315c8e84c6b0e' UNION ALL SELECT '0x95ab1a82af29bdcbc64176d83f4cb1667afd8517' UNION ALL SELECT '0x4e061ef1b15abde9b51c08661ee56976d411d9a6' UNION ALL SELECT '0x739ac5024ef9ca1719b8f64d4a6286fb0e5f91fb' UNION ALL SELECT '0x9a3ba4734d1ced9a7a667d78470850d092bfc994' UNION ALL SELECT '0x885d0ee44c882c4ec30a51e8c0468bcb6689e0e4' UNION ALL SELECT '0x2d4708d2aabb53b8d95b5753cd14930cd5a64f99' UNION ALL SELECT '0x1b79e223eb51978a39d3bb9d1b96b313fc300050' UNION ALL SELECT '0xca6f48d161e66a45b139c74539938da78167c5db' UNION ALL SELECT '0x29e9bcfa2d166759075815f52a4c1968bad97c0e' UNION ALL SELECT '0x524d913f42bc78e02c80e1e99439a3eee3a005dd' UNION ALL SELECT '0x7c91a679d1e03ff9ddc0919e331cbfebc0bc38d2' UNION ALL SELECT '0xa592b7bba07e3bbd6d95b79e08d96ce6a8a4adb1' UNION ALL SELECT '0x4380061e913c9ca7ddd29fc4f15739f1fc6d666b' UNION ALL SELECT '0x7bbc0e92505b485aeb3e82e828cb505daf1e50c6' UNION ALL SELECT '0x9730e3051a60c534979bcdcd8a5fb519bcb22545' UNION ALL SELECT '0x2246ccad865813ecc61a496da7f5ab4eb135a1c7' UNION ALL SELECT '0x1091fe61221dd3f28b9904c371b9e9a9c9137683' UNION ALL SELECT '0x4779a3b6412fe3218b8e270f0f74d73c841bac04' UNION ALL SELECT '0x0f6b7c063916ff3ad4db7a669356552d9d17a3d6' UNION ALL SELECT '0xd9175d9369b26aac8803818de1cf366679a37946' UNION ALL SELECT '0x0604ed64b966b4f8184ab0f084a900ab8ba9fba9' UNION ALL SELECT '0x69e92e8e42064ba50908f81e695cf55141805a9c' UNION ALL SELECT '0x6bdd11cf1f64712b13f3897c1fde57ab60002861' UNION ALL SELECT '0x6351a477644cbf1505bee87710fe071e8abef2fc' UNION ALL SELECT '0xaa311eddfb19f2a542641d6982aa9df2d28ddfed' UNION ALL SELECT '0x2b433ce7ff7eeec2981351a9de6e46a0510edd28' UNION ALL SELECT '0x5e9ca97e368ff54428177ecef328a77c4beb85bb'", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "curve", + "schema": [ + { + "description": "", + "name": "current_A", + "type": "STRING" + }, + { + "description": "", + "name": "current_gamma", + "type": "STRING" + }, + { + "description": "", + "name": "time", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "CryptoSwap_event_StopRampA" + } +} \ No newline at end of file diff --git a/airflow/dags/resources/stages/parse/table_definitions/curve/CryptoSwap_event_TokenExchange.json b/airflow/dags/resources/stages/parse/table_definitions/curve/CryptoSwap_event_TokenExchange.json new file mode 100644 index 00000000..eabe841a --- /dev/null +++ b/airflow/dags/resources/stages/parse/table_definitions/curve/CryptoSwap_event_TokenExchange.json @@ -0,0 +1,71 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "name": "buyer", + "type": "address" + }, + { + "indexed": false, + "name": "sold_id", + "type": "uint256" + }, + { + "indexed": false, + "name": "tokens_sold", + "type": "uint256" + }, + { + "indexed": false, + "name": "bought_id", + "type": "uint256" + }, + { + "indexed": false, + "name": "tokens_bought", + "type": "uint256" + } + ], + "name": "TokenExchange", + "type": "event" + }, + "contract_address": "(SELECT pool FROM ref('CryptoRegistry_event_PoolAdded') EXCEPT DISTINCT SELECT pool FROM ref('CryptoRegistry_event_PoolRemoved')) UNION ALL SELECT '0xec5afc9590964f2fa0feed54f0fbb2a34480908d' UNION ALL SELECT '0xc7c939a474cb10eb837894d1ed1a77c61b268fa7' UNION ALL SELECT '0x36becdcbdf49255f366a45b861b4223b482d35e4' UNION ALL SELECT '0x697fdefe26aca625c86dbd07d3b95fde3e7f7de5' UNION ALL SELECT '0x8187d4734aa4bd78f0a2f7941e276e410e37f033' UNION ALL SELECT '0xf5bed2bbe798187272741c3042cb662c8bb67daf' UNION ALL SELECT '0x36bec0732c913c87a558d6a16f077d5b3d7476c7' UNION ALL SELECT '0xc0b78f2e96de56d08c7608697680e935fe47295b' UNION ALL SELECT '0x48087143bd15b99e67a8cec578e4d884a4bbf124' UNION ALL SELECT '0xd9f354177edd66e7a6669f33d0ec64c14e153b38' UNION ALL SELECT '0x30f217c3423f824de89abe941da49887baa8485d' UNION ALL SELECT '0xcac8002275bc596e6fefc88807e75f5b6646fc10' UNION ALL SELECT '0xb47df195c7805b2bc9a20c2631b2234753625cd0' UNION ALL SELECT '0xfb6fe7802ba9290ef8b00ca16af4bc26eb663a28' UNION ALL SELECT '0x5e078b90af4a1899ae0b1ba17ff2e443f4eb78b0' UNION ALL SELECT '0x8705a57a7305e971d8fc897ddb4e0b535d7a047e' UNION ALL SELECT '0x7cc19f8c258d7f489bc1074437e25a46e397688f' UNION ALL SELECT '0x12fa77685728abcbe1d5c7c11638d2c8df250478' UNION ALL SELECT '0x36fae0c62fe24c7db4983af90c8901c1d7612cd4' UNION ALL SELECT '0xe8c9af58eba1dc532c1707b1e28736d3c9d1afed' UNION ALL SELECT '0xeb5f4c45e29c05c5fb166b72a173dc32831b4239' UNION ALL SELECT '0x8e6692b6fc3bce7d5291c96ff02ba24e1a329c60' UNION ALL SELECT '0x48d794c9b1acb3864ae0c63e9e5d19a6ec80a2c6' UNION ALL SELECT '0xc7d7133a2a4cb8d8b128e961eb8cd3ae85dd6204' UNION ALL SELECT '0x3320c9e72ffa1116a7bb5547f5ae7b2fa2a9eb75' UNION ALL SELECT '0x552fdb8be01c640fa308481ab1e9a7af9d62d0f7' UNION ALL SELECT '0xf4f2c1710e4470e58e4841ea0653f949bdddd67f' UNION ALL SELECT '0x9d874dfc60edc490d76f78663204fcfd608151d7' UNION ALL SELECT '0x453c551879234682d2b823ede73a2ce41a5150aa' UNION ALL SELECT '0x38af0a6d3551fa982ffad038b3b238df3757204b' UNION ALL SELECT '0x085ba43f0f6d152d6842721be0bd18ce2b828010' UNION ALL SELECT '0x4e7f7a0c44618fc0379f633a6697137955b0375b' UNION ALL SELECT '0xdf458f474810bd9157c480fbf61c0a80e6221eff' UNION ALL SELECT '0xa94fe71a7aaebbcaeb3f43f839bbc3c5a2d287ad' UNION ALL SELECT '0x6d1c8e33c9f45cfd41135705528aff3d2010498f' UNION ALL SELECT '0x41ce0136b3a9ee7c82d79fb72ff48360bd5a3263' UNION ALL SELECT '0x8202a631ed5027f17270c50f5c8873bc66192d64' UNION ALL SELECT '0xdce686fb06954dd54a2c73d4da97e46692d3990a' UNION ALL SELECT '0xd7efb91d3afcc0a80e8b14d40a15d2a0d7754907' UNION ALL SELECT '0x7ac0401b1d49a8e01daf46cb5198654f89e64dc5' UNION ALL SELECT '0xd880ed1456a16c463724cfdd329806ced7529b78' UNION ALL SELECT '0x0c3781f1fc02d5f9f43f53d81898af363042a187' UNION ALL SELECT '0x00a4ebb5b2f51882cf7df65e556bf0b742f02e4e' UNION ALL SELECT '0x6908d971a43edbaf8e1ac29aa62b604e030fee30' UNION ALL SELECT '0xfddb94f462ba7d5177b48eca41f444ab05af8c79' UNION ALL SELECT '0x0c8c8b4bc7930efecd85d8a339941563f44af572' UNION ALL SELECT '0x574fa5a78bc9cd15ec019be8f46001d268dfdbd2' UNION ALL SELECT '0x54b46c05a6815f5130a3ed5cbe5b59113146a511' UNION ALL SELECT '0x73c1537fe5b506172da6ce5ede31b57501608fdd' UNION ALL SELECT '0xbe9953072d303a3a438d102ee64c20bd7d01883b' UNION ALL SELECT '0xc4a362bafaba6c2f0d8228998d8a486695cb2c08' UNION ALL SELECT '0x8a475218723f31e480696b091890f1c3e8ccc281' UNION ALL SELECT '0x6aaf3cb86389baa6cd61592c372f8bf06b2d48e4' UNION ALL SELECT '0x12fa7d6d6158e985016147a985b24a5bc6584760' UNION ALL SELECT '0x00e18306d011be6f35933146872df32f4a86cb93' UNION ALL SELECT '0x23badb16b9f3863217eec3705dea14a0153600fa' UNION ALL SELECT '0x987a1ff376de4d3b745c1abecbc6cc3486cb03eb' UNION ALL SELECT '0xe22cd0a52d5de7b021df7a9261d5cbf18f237900' UNION ALL SELECT '0x78af761a6030b1011296becada3068eeedd97795' UNION ALL SELECT '0xd1f6ee081f7afd7bc8a4ccd4cfc2112a61429e62' UNION ALL SELECT '0x6c627bb2d47aff3b3922b6901b4cb9c0963756f3' UNION ALL SELECT '0xac0345c5fabe186c113bd763c542a254fd8e96e1' UNION ALL SELECT '0x63923c573e1f5c1ece24cedf45226e1be2c5d170' UNION ALL SELECT '0x152c96b8bfa478d311eea46f2bf1f6dbdeb4a36b' UNION ALL SELECT '0x62b2c0c64fffd8956f0ef100d95875cf59e296e9' UNION ALL SELECT '0xef35183c35d5d31d71ee9ad891438eba27cee259' UNION ALL SELECT '0x38e3ea5ea43dadd5fb15ba7d3ef6dd9f802eca8b' UNION ALL SELECT '0x8cbccff6b75674ca60f081f477a9fd037c0836f1' UNION ALL SELECT '0x12e5c03750ebed2bfe74eda0ce755f407aacefb2' UNION ALL SELECT '0x66bdc0b1864192a15f1f6868efc315c8e84c6b0e' UNION ALL SELECT '0x95ab1a82af29bdcbc64176d83f4cb1667afd8517' UNION ALL SELECT '0x4e061ef1b15abde9b51c08661ee56976d411d9a6' UNION ALL SELECT '0x739ac5024ef9ca1719b8f64d4a6286fb0e5f91fb' UNION ALL SELECT '0x9a3ba4734d1ced9a7a667d78470850d092bfc994' UNION ALL SELECT '0x885d0ee44c882c4ec30a51e8c0468bcb6689e0e4' UNION ALL SELECT '0x2d4708d2aabb53b8d95b5753cd14930cd5a64f99' UNION ALL SELECT '0x1b79e223eb51978a39d3bb9d1b96b313fc300050' UNION ALL SELECT '0xca6f48d161e66a45b139c74539938da78167c5db' UNION ALL SELECT '0x29e9bcfa2d166759075815f52a4c1968bad97c0e' UNION ALL SELECT '0x524d913f42bc78e02c80e1e99439a3eee3a005dd' UNION ALL SELECT '0x7c91a679d1e03ff9ddc0919e331cbfebc0bc38d2' UNION ALL SELECT '0xa592b7bba07e3bbd6d95b79e08d96ce6a8a4adb1' UNION ALL SELECT '0x4380061e913c9ca7ddd29fc4f15739f1fc6d666b' UNION ALL SELECT '0x7bbc0e92505b485aeb3e82e828cb505daf1e50c6' UNION ALL SELECT '0x9730e3051a60c534979bcdcd8a5fb519bcb22545' UNION ALL SELECT '0x2246ccad865813ecc61a496da7f5ab4eb135a1c7' UNION ALL SELECT '0x1091fe61221dd3f28b9904c371b9e9a9c9137683' UNION ALL SELECT '0x4779a3b6412fe3218b8e270f0f74d73c841bac04' UNION ALL SELECT '0x0f6b7c063916ff3ad4db7a669356552d9d17a3d6' UNION ALL SELECT '0xd9175d9369b26aac8803818de1cf366679a37946' UNION ALL SELECT '0x0604ed64b966b4f8184ab0f084a900ab8ba9fba9' UNION ALL SELECT '0x69e92e8e42064ba50908f81e695cf55141805a9c' UNION ALL SELECT '0x6bdd11cf1f64712b13f3897c1fde57ab60002861' UNION ALL SELECT '0x6351a477644cbf1505bee87710fe071e8abef2fc' UNION ALL SELECT '0xaa311eddfb19f2a542641d6982aa9df2d28ddfed' UNION ALL SELECT '0x2b433ce7ff7eeec2981351a9de6e46a0510edd28' UNION ALL SELECT '0x5e9ca97e368ff54428177ecef328a77c4beb85bb'", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "curve", + "schema": [ + { + "description": "", + "name": "buyer", + "type": "STRING" + }, + { + "description": "", + "name": "sold_id", + "type": "STRING" + }, + { + "description": "", + "name": "tokens_sold", + "type": "STRING" + }, + { + "description": "", + "name": "bought_id", + "type": "STRING" + }, + { + "description": "", + "name": "tokens_bought", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "CryptoSwap_event_TokenExchange" + } +} \ No newline at end of file diff --git a/airflow/dags/resources/stages/parse/table_definitions/curve/MainRegistry_event_PoolAdded.json b/airflow/dags/resources/stages/parse/table_definitions/curve/MainRegistry_event_PoolAdded.json new file mode 100644 index 00000000..82acdaa5 --- /dev/null +++ b/airflow/dags/resources/stages/parse/table_definitions/curve/MainRegistry_event_PoolAdded.json @@ -0,0 +1,41 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "name": "pool", + "type": "address" + }, + { + "indexed": false, + "name": "rate_method_id", + "type": "bytes" + } + ], + "name": "PoolAdded", + "type": "event" + }, + "contract_address": "0x094d12e5b541784701fd8d65f11fc0598fbc6332", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "curve", + "schema": [ + { + "description": "", + "name": "pool", + "type": "STRING" + }, + { + "description": "", + "name": "rate_method_id", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "MainRegistry_event_PoolAdded" + } +} \ No newline at end of file diff --git a/airflow/dags/resources/stages/parse/table_definitions/curve/MainRegistry_event_PoolRemoved.json b/airflow/dags/resources/stages/parse/table_definitions/curve/MainRegistry_event_PoolRemoved.json new file mode 100644 index 00000000..707373c2 --- /dev/null +++ b/airflow/dags/resources/stages/parse/table_definitions/curve/MainRegistry_event_PoolRemoved.json @@ -0,0 +1,31 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "name": "pool", + "type": "address" + } + ], + "name": "PoolRemoved", + "type": "event" + }, + "contract_address": "0x094d12e5b541784701fd8d65f11fc0598fbc6332", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "curve", + "schema": [ + { + "description": "", + "name": "pool", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "MainRegistry_event_PoolRemoved" + } +} \ No newline at end of file diff --git a/airflow/dags/resources/stages/parse/table_definitions/curve/PegSwap_event_AddLiquidity.json b/airflow/dags/resources/stages/parse/table_definitions/curve/PegSwap_event_AddLiquidity.json new file mode 100644 index 00000000..6520d48d --- /dev/null +++ b/airflow/dags/resources/stages/parse/table_definitions/curve/PegSwap_event_AddLiquidity.json @@ -0,0 +1,71 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "name": "provider", + "type": "address" + }, + { + "indexed": false, + "name": "token_amounts", + "type": "uint256[3]" + }, + { + "indexed": false, + "name": "fees", + "type": "uint256[3]" + }, + { + "indexed": false, + "name": "invariant", + "type": "uint256" + }, + { + "indexed": false, + "name": "token_supply", + "type": "uint256" + } + ], + "name": "AddLiquidity", + "type": "event" + }, + "contract_address": "(SELECT pool FROM ref('MainRegistry_event_PoolAdded') EXCEPT DISTINCT SELECT pool FROM ref('MainRegistry_event_PoolRemoved')) UNION ALL SELECT '0x447646e84498552e62ecf097cc305eabfff09308' UNION ALL SELECT '0xadf577b69eeac9df325536cf1af106372f2da263' UNION ALL SELECT '0xad326c253a84e9805559b73a08724e11e49ca651' UNION ALL SELECT '0xfba3b7bb043415035220b1c44fb4756434639392' UNION ALL SELECT '0x2c3cc8e698890271c8141be9f6fd6243d56b39f1' UNION ALL SELECT '0x0f110c55efe62c16d553a3d3464b77e1853d0e97' UNION ALL SELECT '0x2f3e9ca3bff85b91d9fe6a9f3e8f9b1a6a4c3cf4' UNION ALL SELECT '0x2ffbce9099cbed86984286a54e5932414af4b717' UNION ALL SELECT '0xda43bfd7ecc6835aa6f1761ced30b986a574c0d2' UNION ALL SELECT '0xef75e9c7097842acc5d0869e1db4e5fddf4bfdda' UNION ALL SELECT '0x9a30e9a76afbdf52f44b8b8bc2dc3cd941282789' UNION ALL SELECT '0xa138341185a9d0429b0021a11fb717b225e13e1f4' UNION ALL SELECT '0xa69b0d5c0c401bba2d5162138613b5e38584f63f' UNION ALL SELECT '0xe8dcea7fb2baf7a9f4d9af608f06d78a687f8d9a' UNION ALL SELECT '0xdde5fdb48b2ec6bc26bb4487f8e3a4eb99b3d633' UNION ALL SELECT '0xaa91cdd7abb47f821cf07a2d38cc8668deaf1bdc'", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "curve", + "schema": [ + { + "description": "", + "name": "provider", + "type": "STRING" + }, + { + "description": "", + "name": "token_amounts", + "type": "STRING" + }, + { + "description": "", + "name": "fees", + "type": "STRING" + }, + { + "description": "", + "name": "invariant", + "type": "STRING" + }, + { + "description": "", + "name": "token_supply", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "PegSwap_event_AddLiquidity" + } +} \ No newline at end of file diff --git a/airflow/dags/resources/stages/parse/table_definitions/curve/PegSwap_event_CommitNewAdmin.json b/airflow/dags/resources/stages/parse/table_definitions/curve/PegSwap_event_CommitNewAdmin.json new file mode 100644 index 00000000..482cc894 --- /dev/null +++ b/airflow/dags/resources/stages/parse/table_definitions/curve/PegSwap_event_CommitNewAdmin.json @@ -0,0 +1,41 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "name": "deadline", + "type": "uint256" + }, + { + "indexed": true, + "name": "admin", + "type": "address" + } + ], + "name": "CommitNewAdmin", + "type": "event" + }, + "contract_address": "(SELECT pool FROM ref('MainRegistry_event_PoolAdded') EXCEPT DISTINCT SELECT pool FROM ref('MainRegistry_event_PoolRemoved')) UNION ALL SELECT '0x447646e84498552e62ecf097cc305eabfff09308' UNION ALL SELECT '0xadf577b69eeac9df325536cf1af106372f2da263' UNION ALL SELECT '0xad326c253a84e9805559b73a08724e11e49ca651' UNION ALL SELECT '0xfba3b7bb043415035220b1c44fb4756434639392' UNION ALL SELECT '0x2c3cc8e698890271c8141be9f6fd6243d56b39f1' UNION ALL SELECT '0x0f110c55efe62c16d553a3d3464b77e1853d0e97' UNION ALL SELECT '0x2f3e9ca3bff85b91d9fe6a9f3e8f9b1a6a4c3cf4' UNION ALL SELECT '0x2ffbce9099cbed86984286a54e5932414af4b717' UNION ALL SELECT '0xda43bfd7ecc6835aa6f1761ced30b986a574c0d2' UNION ALL SELECT '0xef75e9c7097842acc5d0869e1db4e5fddf4bfdda' UNION ALL SELECT '0x9a30e9a76afbdf52f44b8b8bc2dc3cd941282789' UNION ALL SELECT '0xa138341185a9d0429b0021a11fb717b225e13e1f4' UNION ALL SELECT '0xa69b0d5c0c401bba2d5162138613b5e38584f63f' UNION ALL SELECT '0xe8dcea7fb2baf7a9f4d9af608f06d78a687f8d9a' UNION ALL SELECT '0xdde5fdb48b2ec6bc26bb4487f8e3a4eb99b3d633' UNION ALL SELECT '0xaa91cdd7abb47f821cf07a2d38cc8668deaf1bdc'", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "curve", + "schema": [ + { + "description": "", + "name": "deadline", + "type": "STRING" + }, + { + "description": "", + "name": "admin", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "PegSwap_event_CommitNewAdmin" + } +} \ No newline at end of file diff --git a/airflow/dags/resources/stages/parse/table_definitions/curve/PegSwap_event_CommitNewFee.json b/airflow/dags/resources/stages/parse/table_definitions/curve/PegSwap_event_CommitNewFee.json new file mode 100644 index 00000000..8633cb7a --- /dev/null +++ b/airflow/dags/resources/stages/parse/table_definitions/curve/PegSwap_event_CommitNewFee.json @@ -0,0 +1,61 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "name": "deadline", + "type": "uint256" + }, + { + "indexed": false, + "name": "fee", + "type": "uint256" + }, + { + "indexed": false, + "name": "admin_fee", + "type": "uint256" + }, + { + "indexed": false, + "name": "offpeg_fee_multiplier", + "type": "uint256" + } + ], + "name": "CommitNewFee", + "type": "event" + }, + "contract_address": "(SELECT pool FROM ref('MainRegistry_event_PoolAdded') EXCEPT DISTINCT SELECT pool FROM ref('MainRegistry_event_PoolRemoved')) UNION ALL SELECT '0x447646e84498552e62ecf097cc305eabfff09308' UNION ALL SELECT '0xadf577b69eeac9df325536cf1af106372f2da263' UNION ALL SELECT '0xad326c253a84e9805559b73a08724e11e49ca651' UNION ALL SELECT '0xfba3b7bb043415035220b1c44fb4756434639392' UNION ALL SELECT '0x2c3cc8e698890271c8141be9f6fd6243d56b39f1' UNION ALL SELECT '0x0f110c55efe62c16d553a3d3464b77e1853d0e97' UNION ALL SELECT '0x2f3e9ca3bff85b91d9fe6a9f3e8f9b1a6a4c3cf4' UNION ALL SELECT '0x2ffbce9099cbed86984286a54e5932414af4b717' UNION ALL SELECT '0xda43bfd7ecc6835aa6f1761ced30b986a574c0d2' UNION ALL SELECT '0xef75e9c7097842acc5d0869e1db4e5fddf4bfdda' UNION ALL SELECT '0x9a30e9a76afbdf52f44b8b8bc2dc3cd941282789' UNION ALL SELECT '0xa138341185a9d0429b0021a11fb717b225e13e1f4' UNION ALL SELECT '0xa69b0d5c0c401bba2d5162138613b5e38584f63f' UNION ALL SELECT '0xe8dcea7fb2baf7a9f4d9af608f06d78a687f8d9a' UNION ALL SELECT '0xdde5fdb48b2ec6bc26bb4487f8e3a4eb99b3d633' UNION ALL SELECT '0xaa91cdd7abb47f821cf07a2d38cc8668deaf1bdc'", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "curve", + "schema": [ + { + "description": "", + "name": "deadline", + "type": "STRING" + }, + { + "description": "", + "name": "fee", + "type": "STRING" + }, + { + "description": "", + "name": "admin_fee", + "type": "STRING" + }, + { + "description": "", + "name": "offpeg_fee_multiplier", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "PegSwap_event_CommitNewFee" + } +} \ No newline at end of file diff --git a/airflow/dags/resources/stages/parse/table_definitions/curve/PegSwap_event_NewFee.json b/airflow/dags/resources/stages/parse/table_definitions/curve/PegSwap_event_NewFee.json new file mode 100644 index 00000000..d0a54e11 --- /dev/null +++ b/airflow/dags/resources/stages/parse/table_definitions/curve/PegSwap_event_NewFee.json @@ -0,0 +1,51 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "name": "fee", + "type": "uint256" + }, + { + "indexed": false, + "name": "admin_fee", + "type": "uint256" + }, + { + "indexed": false, + "name": "offpeg_fee_multiplier", + "type": "uint256" + } + ], + "name": "NewFee", + "type": "event" + }, + "contract_address": "(SELECT pool FROM ref('MainRegistry_event_PoolAdded') EXCEPT DISTINCT SELECT pool FROM ref('MainRegistry_event_PoolRemoved')) UNION ALL SELECT '0x447646e84498552e62ecf097cc305eabfff09308' UNION ALL SELECT '0xadf577b69eeac9df325536cf1af106372f2da263' UNION ALL SELECT '0xad326c253a84e9805559b73a08724e11e49ca651' UNION ALL SELECT '0xfba3b7bb043415035220b1c44fb4756434639392' UNION ALL SELECT '0x2c3cc8e698890271c8141be9f6fd6243d56b39f1' UNION ALL SELECT '0x0f110c55efe62c16d553a3d3464b77e1853d0e97' UNION ALL SELECT '0x2f3e9ca3bff85b91d9fe6a9f3e8f9b1a6a4c3cf4' UNION ALL SELECT '0x2ffbce9099cbed86984286a54e5932414af4b717' UNION ALL SELECT '0xda43bfd7ecc6835aa6f1761ced30b986a574c0d2' UNION ALL SELECT '0xef75e9c7097842acc5d0869e1db4e5fddf4bfdda' UNION ALL SELECT '0x9a30e9a76afbdf52f44b8b8bc2dc3cd941282789' UNION ALL SELECT '0xa138341185a9d0429b0021a11fb717b225e13e1f4' UNION ALL SELECT '0xa69b0d5c0c401bba2d5162138613b5e38584f63f' UNION ALL SELECT '0xe8dcea7fb2baf7a9f4d9af608f06d78a687f8d9a' UNION ALL SELECT '0xdde5fdb48b2ec6bc26bb4487f8e3a4eb99b3d633' UNION ALL SELECT '0xaa91cdd7abb47f821cf07a2d38cc8668deaf1bdc'", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "curve", + "schema": [ + { + "description": "", + "name": "fee", + "type": "STRING" + }, + { + "description": "", + "name": "admin_fee", + "type": "STRING" + }, + { + "description": "", + "name": "offpeg_fee_multiplier", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "PegSwap_event_NewFee" + } +} \ No newline at end of file diff --git a/airflow/dags/resources/stages/parse/table_definitions/curve/PegSwap_event_RemoveLiquidity.json b/airflow/dags/resources/stages/parse/table_definitions/curve/PegSwap_event_RemoveLiquidity.json new file mode 100644 index 00000000..2c03f4e9 --- /dev/null +++ b/airflow/dags/resources/stages/parse/table_definitions/curve/PegSwap_event_RemoveLiquidity.json @@ -0,0 +1,61 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "name": "provider", + "type": "address" + }, + { + "indexed": false, + "name": "token_amounts", + "type": "uint256[3]" + }, + { + "indexed": false, + "name": "fees", + "type": "uint256[3]" + }, + { + "indexed": false, + "name": "token_supply", + "type": "uint256" + } + ], + "name": "RemoveLiquidity", + "type": "event" + }, + "contract_address": "(SELECT pool FROM ref('MainRegistry_event_PoolAdded') EXCEPT DISTINCT SELECT pool FROM ref('MainRegistry_event_PoolRemoved')) UNION ALL SELECT '0x447646e84498552e62ecf097cc305eabfff09308' UNION ALL SELECT '0xadf577b69eeac9df325536cf1af106372f2da263' UNION ALL SELECT '0xad326c253a84e9805559b73a08724e11e49ca651' UNION ALL SELECT '0xfba3b7bb043415035220b1c44fb4756434639392' UNION ALL SELECT '0x2c3cc8e698890271c8141be9f6fd6243d56b39f1' UNION ALL SELECT '0x0f110c55efe62c16d553a3d3464b77e1853d0e97' UNION ALL SELECT '0x2f3e9ca3bff85b91d9fe6a9f3e8f9b1a6a4c3cf4' UNION ALL SELECT '0x2ffbce9099cbed86984286a54e5932414af4b717' UNION ALL SELECT '0xda43bfd7ecc6835aa6f1761ced30b986a574c0d2' UNION ALL SELECT '0xef75e9c7097842acc5d0869e1db4e5fddf4bfdda' UNION ALL SELECT '0x9a30e9a76afbdf52f44b8b8bc2dc3cd941282789' UNION ALL SELECT '0xa138341185a9d0429b0021a11fb717b225e13e1f4' UNION ALL SELECT '0xa69b0d5c0c401bba2d5162138613b5e38584f63f' UNION ALL SELECT '0xe8dcea7fb2baf7a9f4d9af608f06d78a687f8d9a' UNION ALL SELECT '0xdde5fdb48b2ec6bc26bb4487f8e3a4eb99b3d633' UNION ALL SELECT '0xaa91cdd7abb47f821cf07a2d38cc8668deaf1bdc'", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "curve", + "schema": [ + { + "description": "", + "name": "provider", + "type": "STRING" + }, + { + "description": "", + "name": "token_amounts", + "type": "STRING" + }, + { + "description": "", + "name": "fees", + "type": "STRING" + }, + { + "description": "", + "name": "token_supply", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "PegSwap_event_RemoveLiquidity" + } +} \ No newline at end of file diff --git a/airflow/dags/resources/stages/parse/table_definitions/curve/PegSwap_event_RemoveLiquidityImbalance.json b/airflow/dags/resources/stages/parse/table_definitions/curve/PegSwap_event_RemoveLiquidityImbalance.json new file mode 100644 index 00000000..1262eeae --- /dev/null +++ b/airflow/dags/resources/stages/parse/table_definitions/curve/PegSwap_event_RemoveLiquidityImbalance.json @@ -0,0 +1,71 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "name": "provider", + "type": "address" + }, + { + "indexed": false, + "name": "token_amounts", + "type": "uint256[3]" + }, + { + "indexed": false, + "name": "fees", + "type": "uint256[3]" + }, + { + "indexed": false, + "name": "invariant", + "type": "uint256" + }, + { + "indexed": false, + "name": "token_supply", + "type": "uint256" + } + ], + "name": "RemoveLiquidityImbalance", + "type": "event" + }, + "contract_address": "(SELECT pool FROM ref('MainRegistry_event_PoolAdded') EXCEPT DISTINCT SELECT pool FROM ref('MainRegistry_event_PoolRemoved')) UNION ALL SELECT '0x447646e84498552e62ecf097cc305eabfff09308' UNION ALL SELECT '0xadf577b69eeac9df325536cf1af106372f2da263' UNION ALL SELECT '0xad326c253a84e9805559b73a08724e11e49ca651' UNION ALL SELECT '0xfba3b7bb043415035220b1c44fb4756434639392' UNION ALL SELECT '0x2c3cc8e698890271c8141be9f6fd6243d56b39f1' UNION ALL SELECT '0x0f110c55efe62c16d553a3d3464b77e1853d0e97' UNION ALL SELECT '0x2f3e9ca3bff85b91d9fe6a9f3e8f9b1a6a4c3cf4' UNION ALL SELECT '0x2ffbce9099cbed86984286a54e5932414af4b717' UNION ALL SELECT '0xda43bfd7ecc6835aa6f1761ced30b986a574c0d2' UNION ALL SELECT '0xef75e9c7097842acc5d0869e1db4e5fddf4bfdda' UNION ALL SELECT '0x9a30e9a76afbdf52f44b8b8bc2dc3cd941282789' UNION ALL SELECT '0xa138341185a9d0429b0021a11fb717b225e13e1f4' UNION ALL SELECT '0xa69b0d5c0c401bba2d5162138613b5e38584f63f' UNION ALL SELECT '0xe8dcea7fb2baf7a9f4d9af608f06d78a687f8d9a' UNION ALL SELECT '0xdde5fdb48b2ec6bc26bb4487f8e3a4eb99b3d633' UNION ALL SELECT '0xaa91cdd7abb47f821cf07a2d38cc8668deaf1bdc'", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "curve", + "schema": [ + { + "description": "", + "name": "provider", + "type": "STRING" + }, + { + "description": "", + "name": "token_amounts", + "type": "STRING" + }, + { + "description": "", + "name": "fees", + "type": "STRING" + }, + { + "description": "", + "name": "invariant", + "type": "STRING" + }, + { + "description": "", + "name": "token_supply", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "PegSwap_event_RemoveLiquidityImbalance" + } +} \ No newline at end of file diff --git a/airflow/dags/resources/stages/parse/table_definitions/curve/PegSwap_event_RemoveLiquidityOne.json b/airflow/dags/resources/stages/parse/table_definitions/curve/PegSwap_event_RemoveLiquidityOne.json new file mode 100644 index 00000000..31dd0ed4 --- /dev/null +++ b/airflow/dags/resources/stages/parse/table_definitions/curve/PegSwap_event_RemoveLiquidityOne.json @@ -0,0 +1,51 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "name": "provider", + "type": "address" + }, + { + "indexed": false, + "name": "token_amount", + "type": "uint256" + }, + { + "indexed": false, + "name": "coin_amount", + "type": "uint256" + } + ], + "name": "RemoveLiquidityOne", + "type": "event" + }, + "contract_address": "(SELECT pool FROM ref('MainRegistry_event_PoolAdded') EXCEPT DISTINCT SELECT pool FROM ref('MainRegistry_event_PoolRemoved')) UNION ALL SELECT '0x447646e84498552e62ecf097cc305eabfff09308' UNION ALL SELECT '0xadf577b69eeac9df325536cf1af106372f2da263' UNION ALL SELECT '0xad326c253a84e9805559b73a08724e11e49ca651' UNION ALL SELECT '0xfba3b7bb043415035220b1c44fb4756434639392' UNION ALL SELECT '0x2c3cc8e698890271c8141be9f6fd6243d56b39f1' UNION ALL SELECT '0x0f110c55efe62c16d553a3d3464b77e1853d0e97' UNION ALL SELECT '0x2f3e9ca3bff85b91d9fe6a9f3e8f9b1a6a4c3cf4' UNION ALL SELECT '0x2ffbce9099cbed86984286a54e5932414af4b717' UNION ALL SELECT '0xda43bfd7ecc6835aa6f1761ced30b986a574c0d2' UNION ALL SELECT '0xef75e9c7097842acc5d0869e1db4e5fddf4bfdda' UNION ALL SELECT '0x9a30e9a76afbdf52f44b8b8bc2dc3cd941282789' UNION ALL SELECT '0xa138341185a9d0429b0021a11fb717b225e13e1f4' UNION ALL SELECT '0xa69b0d5c0c401bba2d5162138613b5e38584f63f' UNION ALL SELECT '0xe8dcea7fb2baf7a9f4d9af608f06d78a687f8d9a' UNION ALL SELECT '0xdde5fdb48b2ec6bc26bb4487f8e3a4eb99b3d633' UNION ALL SELECT '0xaa91cdd7abb47f821cf07a2d38cc8668deaf1bdc'", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "curve", + "schema": [ + { + "description": "", + "name": "provider", + "type": "STRING" + }, + { + "description": "", + "name": "token_amount", + "type": "STRING" + }, + { + "description": "", + "name": "coin_amount", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "PegSwap_event_RemoveLiquidityOne" + } +} \ No newline at end of file diff --git a/airflow/dags/resources/stages/parse/table_definitions/curve/PegSwap_event_TokenExchange.json b/airflow/dags/resources/stages/parse/table_definitions/curve/PegSwap_event_TokenExchange.json new file mode 100644 index 00000000..d4675517 --- /dev/null +++ b/airflow/dags/resources/stages/parse/table_definitions/curve/PegSwap_event_TokenExchange.json @@ -0,0 +1,71 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "name": "buyer", + "type": "address" + }, + { + "indexed": false, + "name": "sold_id", + "type": "int128" + }, + { + "indexed": false, + "name": "tokens_sold", + "type": "uint256" + }, + { + "indexed": false, + "name": "bought_id", + "type": "int128" + }, + { + "indexed": false, + "name": "tokens_bought", + "type": "uint256" + } + ], + "name": "TokenExchange", + "type": "event" + }, + "contract_address": "(SELECT pool FROM ref('MainRegistry_event_PoolAdded') EXCEPT DISTINCT SELECT pool FROM ref('MainRegistry_event_PoolRemoved')) UNION ALL SELECT '0x447646e84498552e62ecf097cc305eabfff09308' UNION ALL SELECT '0xadf577b69eeac9df325536cf1af106372f2da263' UNION ALL SELECT '0xad326c253a84e9805559b73a08724e11e49ca651' UNION ALL SELECT '0xfba3b7bb043415035220b1c44fb4756434639392' UNION ALL SELECT '0x2c3cc8e698890271c8141be9f6fd6243d56b39f1' UNION ALL SELECT '0x0f110c55efe62c16d553a3d3464b77e1853d0e97' UNION ALL SELECT '0x2f3e9ca3bff85b91d9fe6a9f3e8f9b1a6a4c3cf4' UNION ALL SELECT '0x2ffbce9099cbed86984286a54e5932414af4b717' UNION ALL SELECT '0xda43bfd7ecc6835aa6f1761ced30b986a574c0d2' UNION ALL SELECT '0xef75e9c7097842acc5d0869e1db4e5fddf4bfdda' UNION ALL SELECT '0x9a30e9a76afbdf52f44b8b8bc2dc3cd941282789' UNION ALL SELECT '0xa138341185a9d0429b0021a11fb717b225e13e1f4' UNION ALL SELECT '0xa69b0d5c0c401bba2d5162138613b5e38584f63f' UNION ALL SELECT '0xe8dcea7fb2baf7a9f4d9af608f06d78a687f8d9a' UNION ALL SELECT '0xdde5fdb48b2ec6bc26bb4487f8e3a4eb99b3d633' UNION ALL SELECT '0xaa91cdd7abb47f821cf07a2d38cc8668deaf1bdc'", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "curve", + "schema": [ + { + "description": "", + "name": "buyer", + "type": "STRING" + }, + { + "description": "", + "name": "sold_id", + "type": "STRING" + }, + { + "description": "", + "name": "tokens_sold", + "type": "STRING" + }, + { + "description": "", + "name": "bought_id", + "type": "STRING" + }, + { + "description": "", + "name": "tokens_bought", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "PegSwap_event_TokenExchange" + } +} \ No newline at end of file diff --git a/airflow/dags/resources/stages/parse/table_definitions/curve/PegSwap_event_TokenExchangeUnderlying.json b/airflow/dags/resources/stages/parse/table_definitions/curve/PegSwap_event_TokenExchangeUnderlying.json new file mode 100644 index 00000000..d5a6e025 --- /dev/null +++ b/airflow/dags/resources/stages/parse/table_definitions/curve/PegSwap_event_TokenExchangeUnderlying.json @@ -0,0 +1,71 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "name": "buyer", + "type": "address" + }, + { + "indexed": false, + "name": "sold_id", + "type": "int128" + }, + { + "indexed": false, + "name": "tokens_sold", + "type": "uint256" + }, + { + "indexed": false, + "name": "bought_id", + "type": "int128" + }, + { + "indexed": false, + "name": "tokens_bought", + "type": "uint256" + } + ], + "name": "TokenExchangeUnderlying", + "type": "event" + }, + "contract_address": "(SELECT pool FROM ref('MainRegistry_event_PoolAdded') EXCEPT DISTINCT SELECT pool FROM ref('MainRegistry_event_PoolRemoved')) UNION ALL SELECT '0x447646e84498552e62ecf097cc305eabfff09308' UNION ALL SELECT '0xadf577b69eeac9df325536cf1af106372f2da263' UNION ALL SELECT '0xad326c253a84e9805559b73a08724e11e49ca651' UNION ALL SELECT '0xfba3b7bb043415035220b1c44fb4756434639392' UNION ALL SELECT '0x2c3cc8e698890271c8141be9f6fd6243d56b39f1' UNION ALL SELECT '0x0f110c55efe62c16d553a3d3464b77e1853d0e97' UNION ALL SELECT '0x2f3e9ca3bff85b91d9fe6a9f3e8f9b1a6a4c3cf4' UNION ALL SELECT '0x2ffbce9099cbed86984286a54e5932414af4b717' UNION ALL SELECT '0xda43bfd7ecc6835aa6f1761ced30b986a574c0d2' UNION ALL SELECT '0xef75e9c7097842acc5d0869e1db4e5fddf4bfdda' UNION ALL SELECT '0x9a30e9a76afbdf52f44b8b8bc2dc3cd941282789' UNION ALL SELECT '0xa138341185a9d0429b0021a11fb717b225e13e1f4' UNION ALL SELECT '0xa69b0d5c0c401bba2d5162138613b5e38584f63f' UNION ALL SELECT '0xe8dcea7fb2baf7a9f4d9af608f06d78a687f8d9a' UNION ALL SELECT '0xdde5fdb48b2ec6bc26bb4487f8e3a4eb99b3d633' UNION ALL SELECT '0xaa91cdd7abb47f821cf07a2d38cc8668deaf1bdc'", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "curve", + "schema": [ + { + "description": "", + "name": "buyer", + "type": "STRING" + }, + { + "description": "", + "name": "sold_id", + "type": "STRING" + }, + { + "description": "", + "name": "tokens_sold", + "type": "STRING" + }, + { + "description": "", + "name": "bought_id", + "type": "STRING" + }, + { + "description": "", + "name": "tokens_bought", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "PegSwap_event_TokenExchangeUnderlying" + } +} \ No newline at end of file