From 1407810adde9be2bfb9c9f5bb1ce8816745d138a Mon Sep 17 00:00:00 2001 From: Michalis Alifierakis Date: Wed, 10 Jan 2024 21:29:23 -0400 Subject: [PATCH] [Gauntlet] Wormhole core and token bridge contracts (#656) * add wormhole implementation contract * add token bridge logs * lower case contract addresses --- ...idgeImplementation_event_AdminChanged.json | 43 +++++++++++ ...geImplementation_event_BeaconUpgraded.json | 32 ++++++++ ...Implementation_event_ContractUpgraded.json | 43 +++++++++++ ...Implementation_event_TransferRedeemed.json | 54 +++++++++++++ .../BridgeImplementation_event_Upgraded.json | 32 ++++++++ .../Implementation_event_AdminChanged.json | 43 +++++++++++ .../Implementation_event_BeaconUpgraded.json | 32 ++++++++ ...Implementation_event_ContractUpgraded.json | 43 +++++++++++ ...Implementation_event_GuardianSetAdded.json | 32 ++++++++ ...lementation_event_LogMessagePublished.json | 76 +++++++++++++++++++ .../Implementation_event_Upgraded.json | 32 ++++++++ 11 files changed, 462 insertions(+) create mode 100644 dags/resources/stages/parse/table_definitions/wormhole/BridgeImplementation_event_AdminChanged.json create mode 100644 dags/resources/stages/parse/table_definitions/wormhole/BridgeImplementation_event_BeaconUpgraded.json create mode 100644 dags/resources/stages/parse/table_definitions/wormhole/BridgeImplementation_event_ContractUpgraded.json create mode 100644 dags/resources/stages/parse/table_definitions/wormhole/BridgeImplementation_event_TransferRedeemed.json create mode 100644 dags/resources/stages/parse/table_definitions/wormhole/BridgeImplementation_event_Upgraded.json create mode 100644 dags/resources/stages/parse/table_definitions/wormhole/Implementation_event_AdminChanged.json create mode 100644 dags/resources/stages/parse/table_definitions/wormhole/Implementation_event_BeaconUpgraded.json create mode 100644 dags/resources/stages/parse/table_definitions/wormhole/Implementation_event_ContractUpgraded.json create mode 100644 dags/resources/stages/parse/table_definitions/wormhole/Implementation_event_GuardianSetAdded.json create mode 100644 dags/resources/stages/parse/table_definitions/wormhole/Implementation_event_LogMessagePublished.json create mode 100644 dags/resources/stages/parse/table_definitions/wormhole/Implementation_event_Upgraded.json diff --git a/dags/resources/stages/parse/table_definitions/wormhole/BridgeImplementation_event_AdminChanged.json b/dags/resources/stages/parse/table_definitions/wormhole/BridgeImplementation_event_AdminChanged.json new file mode 100644 index 000000000..270b1b025 --- /dev/null +++ b/dags/resources/stages/parse/table_definitions/wormhole/BridgeImplementation_event_AdminChanged.json @@ -0,0 +1,43 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "previousAdmin", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "newAdmin", + "type": "address" + } + ], + "name": "AdminChanged", + "type": "event" + }, + "contract_address": "0x3ee18b2214aff97000d974cf647e7c347e8fa585", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "wormhole", + "schema": [ + { + "description": "", + "name": "previousAdmin", + "type": "STRING" + }, + { + "description": "", + "name": "newAdmin", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "BridgeImplementation_event_AdminChanged" + } +} \ No newline at end of file diff --git a/dags/resources/stages/parse/table_definitions/wormhole/BridgeImplementation_event_BeaconUpgraded.json b/dags/resources/stages/parse/table_definitions/wormhole/BridgeImplementation_event_BeaconUpgraded.json new file mode 100644 index 000000000..25eeff5ac --- /dev/null +++ b/dags/resources/stages/parse/table_definitions/wormhole/BridgeImplementation_event_BeaconUpgraded.json @@ -0,0 +1,32 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "beacon", + "type": "address" + } + ], + "name": "BeaconUpgraded", + "type": "event" + }, + "contract_address": "0x3ee18b2214aff97000d974cf647e7c347e8fa585", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "wormhole", + "schema": [ + { + "description": "", + "name": "beacon", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "BridgeImplementation_event_BeaconUpgraded" + } +} \ No newline at end of file diff --git a/dags/resources/stages/parse/table_definitions/wormhole/BridgeImplementation_event_ContractUpgraded.json b/dags/resources/stages/parse/table_definitions/wormhole/BridgeImplementation_event_ContractUpgraded.json new file mode 100644 index 000000000..e11449fff --- /dev/null +++ b/dags/resources/stages/parse/table_definitions/wormhole/BridgeImplementation_event_ContractUpgraded.json @@ -0,0 +1,43 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "oldContract", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "newContract", + "type": "address" + } + ], + "name": "ContractUpgraded", + "type": "event" + }, + "contract_address": "0x3ee18b2214aff97000d974cf647e7c347e8fa585", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "wormhole", + "schema": [ + { + "description": "", + "name": "oldContract", + "type": "STRING" + }, + { + "description": "", + "name": "newContract", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "BridgeImplementation_event_ContractUpgraded" + } +} \ No newline at end of file diff --git a/dags/resources/stages/parse/table_definitions/wormhole/BridgeImplementation_event_TransferRedeemed.json b/dags/resources/stages/parse/table_definitions/wormhole/BridgeImplementation_event_TransferRedeemed.json new file mode 100644 index 000000000..9928ccd5a --- /dev/null +++ b/dags/resources/stages/parse/table_definitions/wormhole/BridgeImplementation_event_TransferRedeemed.json @@ -0,0 +1,54 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint16", + "name": "emitterChainId", + "type": "uint16" + }, + { + "indexed": true, + "internalType": "bytes32", + "name": "emitterAddress", + "type": "bytes32" + }, + { + "indexed": true, + "internalType": "uint64", + "name": "sequence", + "type": "uint64" + } + ], + "name": "TransferRedeemed", + "type": "event" + }, + "contract_address": "0x3ee18b2214aff97000d974cf647e7c347e8fa585", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "wormhole", + "schema": [ + { + "description": "", + "name": "emitterChainId", + "type": "STRING" + }, + { + "description": "", + "name": "emitterAddress", + "type": "STRING" + }, + { + "description": "", + "name": "sequence", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "BridgeImplementation_event_TransferRedeemed" + } +} \ No newline at end of file diff --git a/dags/resources/stages/parse/table_definitions/wormhole/BridgeImplementation_event_Upgraded.json b/dags/resources/stages/parse/table_definitions/wormhole/BridgeImplementation_event_Upgraded.json new file mode 100644 index 000000000..af4d11196 --- /dev/null +++ b/dags/resources/stages/parse/table_definitions/wormhole/BridgeImplementation_event_Upgraded.json @@ -0,0 +1,32 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "implementation", + "type": "address" + } + ], + "name": "Upgraded", + "type": "event" + }, + "contract_address": "0x3ee18b2214aff97000d974cf647e7c347e8fa585", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "wormhole", + "schema": [ + { + "description": "", + "name": "implementation", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "BridgeImplementation_event_Upgraded" + } +} \ No newline at end of file diff --git a/dags/resources/stages/parse/table_definitions/wormhole/Implementation_event_AdminChanged.json b/dags/resources/stages/parse/table_definitions/wormhole/Implementation_event_AdminChanged.json new file mode 100644 index 000000000..3e5b08e48 --- /dev/null +++ b/dags/resources/stages/parse/table_definitions/wormhole/Implementation_event_AdminChanged.json @@ -0,0 +1,43 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "previousAdmin", + "type": "address" + }, + { + "indexed": false, + "internalType": "address", + "name": "newAdmin", + "type": "address" + } + ], + "name": "AdminChanged", + "type": "event" + }, + "contract_address": "0x98f3c9e6e3face36baad05fe09d375ef1464288b", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "wormhole", + "schema": [ + { + "description": "", + "name": "previousAdmin", + "type": "STRING" + }, + { + "description": "", + "name": "newAdmin", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "Implementation_event_AdminChanged" + } +} \ No newline at end of file diff --git a/dags/resources/stages/parse/table_definitions/wormhole/Implementation_event_BeaconUpgraded.json b/dags/resources/stages/parse/table_definitions/wormhole/Implementation_event_BeaconUpgraded.json new file mode 100644 index 000000000..9d33ccbea --- /dev/null +++ b/dags/resources/stages/parse/table_definitions/wormhole/Implementation_event_BeaconUpgraded.json @@ -0,0 +1,32 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "beacon", + "type": "address" + } + ], + "name": "BeaconUpgraded", + "type": "event" + }, + "contract_address": "0x98f3c9e6e3face36baad05fe09d375ef1464288b", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "wormhole", + "schema": [ + { + "description": "", + "name": "beacon", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "Implementation_event_BeaconUpgraded" + } +} \ No newline at end of file diff --git a/dags/resources/stages/parse/table_definitions/wormhole/Implementation_event_ContractUpgraded.json b/dags/resources/stages/parse/table_definitions/wormhole/Implementation_event_ContractUpgraded.json new file mode 100644 index 000000000..e6060597d --- /dev/null +++ b/dags/resources/stages/parse/table_definitions/wormhole/Implementation_event_ContractUpgraded.json @@ -0,0 +1,43 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "oldContract", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "newContract", + "type": "address" + } + ], + "name": "ContractUpgraded", + "type": "event" + }, + "contract_address": "0x98f3c9e6e3face36baad05fe09d375ef1464288b", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "wormhole", + "schema": [ + { + "description": "", + "name": "oldContract", + "type": "STRING" + }, + { + "description": "", + "name": "newContract", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "Implementation_event_ContractUpgraded" + } +} \ No newline at end of file diff --git a/dags/resources/stages/parse/table_definitions/wormhole/Implementation_event_GuardianSetAdded.json b/dags/resources/stages/parse/table_definitions/wormhole/Implementation_event_GuardianSetAdded.json new file mode 100644 index 000000000..0d3a1973e --- /dev/null +++ b/dags/resources/stages/parse/table_definitions/wormhole/Implementation_event_GuardianSetAdded.json @@ -0,0 +1,32 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint32", + "name": "index", + "type": "uint32" + } + ], + "name": "GuardianSetAdded", + "type": "event" + }, + "contract_address": "0x98f3c9e6e3face36baad05fe09d375ef1464288b", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "wormhole", + "schema": [ + { + "description": "", + "name": "index", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "Implementation_event_GuardianSetAdded" + } +} \ No newline at end of file diff --git a/dags/resources/stages/parse/table_definitions/wormhole/Implementation_event_LogMessagePublished.json b/dags/resources/stages/parse/table_definitions/wormhole/Implementation_event_LogMessagePublished.json new file mode 100644 index 000000000..1f6d63091 --- /dev/null +++ b/dags/resources/stages/parse/table_definitions/wormhole/Implementation_event_LogMessagePublished.json @@ -0,0 +1,76 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "sender", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint64", + "name": "sequence", + "type": "uint64" + }, + { + "indexed": false, + "internalType": "uint32", + "name": "nonce", + "type": "uint32" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "payload", + "type": "bytes" + }, + { + "indexed": false, + "internalType": "uint8", + "name": "consistencyLevel", + "type": "uint8" + } + ], + "name": "LogMessagePublished", + "type": "event" + }, + "contract_address": "0x98f3c9e6e3face36baad05fe09d375ef1464288b", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "wormhole", + "schema": [ + { + "description": "", + "name": "sender", + "type": "STRING" + }, + { + "description": "", + "name": "sequence", + "type": "STRING" + }, + { + "description": "", + "name": "nonce", + "type": "STRING" + }, + { + "description": "", + "name": "payload", + "type": "STRING" + }, + { + "description": "", + "name": "consistencyLevel", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "Implementation_event_LogMessagePublished" + } +} \ No newline at end of file diff --git a/dags/resources/stages/parse/table_definitions/wormhole/Implementation_event_Upgraded.json b/dags/resources/stages/parse/table_definitions/wormhole/Implementation_event_Upgraded.json new file mode 100644 index 000000000..3d423945a --- /dev/null +++ b/dags/resources/stages/parse/table_definitions/wormhole/Implementation_event_Upgraded.json @@ -0,0 +1,32 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "implementation", + "type": "address" + } + ], + "name": "Upgraded", + "type": "event" + }, + "contract_address": "0x98f3c9e6e3face36baad05fe09d375ef1464288b", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "wormhole", + "schema": [ + { + "description": "", + "name": "implementation", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "Implementation_event_Upgraded" + } +} \ No newline at end of file