From 4d6a72a6b8bed00453b5b0daa4b9a254eed9d67f Mon Sep 17 00:00:00 2001 From: e <100670256+ememet@users.noreply.github.com> Date: Thu, 19 Sep 2024 11:54:02 +0700 Subject: [PATCH] add support for Bebop RFQ (#737) --- ...ionContract_call_SettleAggregateOrder.json | 117 ++++++++++++ ...Contract_event_AggregateOrderExecuted.json | 32 ++++ ...pSettlement_call_SettleAggregateOrder.json | 146 ++++++++++++++ ..._SettleAggregateOrderWithTakerPermits.json | 178 ++++++++++++++++++ ...ttlement_event_AggregateOrderExecuted.json | 32 ++++ 5 files changed, 505 insertions(+) create mode 100644 dags/resources/stages/parse/table_definitions/bebop/BebopAggregationContract_call_SettleAggregateOrder.json create mode 100644 dags/resources/stages/parse/table_definitions/bebop/BebopAggregationContract_event_AggregateOrderExecuted.json create mode 100644 dags/resources/stages/parse/table_definitions/bebop/BebopSettlement_call_SettleAggregateOrder.json create mode 100644 dags/resources/stages/parse/table_definitions/bebop/BebopSettlement_call_SettleAggregateOrderWithTakerPermits.json create mode 100644 dags/resources/stages/parse/table_definitions/bebop/BebopSettlement_event_AggregateOrderExecuted.json diff --git a/dags/resources/stages/parse/table_definitions/bebop/BebopAggregationContract_call_SettleAggregateOrder.json b/dags/resources/stages/parse/table_definitions/bebop/BebopAggregationContract_call_SettleAggregateOrder.json new file mode 100644 index 00000000..a41ce8cb --- /dev/null +++ b/dags/resources/stages/parse/table_definitions/bebop/BebopAggregationContract_call_SettleAggregateOrder.json @@ -0,0 +1,117 @@ +{ + "parser": { + "abi": { + "inputs": [ + { + "components": [ + { + "internalType": "uint256", + "name": "expiry", + "type": "uint256" + }, + { + "internalType": "address", + "name": "taker_address", + "type": "address" + }, + { + "internalType": "address[]", + "name": "maker_addresses", + "type": "address[]" + }, + { + "internalType": "uint256[]", + "name": "maker_nonces", + "type": "uint256[]" + }, + { + "internalType": "address[][]", + "name": "taker_tokens", + "type": "address[][]" + }, + { + "internalType": "address[][]", + "name": "maker_tokens", + "type": "address[][]" + }, + { + "internalType": "uint256[][]", + "name": "taker_amounts", + "type": "uint256[][]" + }, + { + "internalType": "uint256[][]", + "name": "maker_amounts", + "type": "uint256[][]" + }, + { + "internalType": "address", + "name": "receiver", + "type": "address" + } + ], + "internalType": "struct AggregateOrder", + "name": "order", + "type": "tuple" + }, + { + "internalType": "bytes", + "name": "takerSig", + "type": "bytes" + }, + { + "components": [ + { + "internalType": "enum SignatureType", + "name": "signatureType", + "type": "uint8" + }, + { + "internalType": "bytes", + "name": "signatureBytes", + "type": "bytes" + } + ], + "internalType": "struct Signature[]", + "name": "makerSigs", + "type": "tuple[]" + } + ], + "name": "SettleAggregateOrder", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "payable", + "type": "function" + }, + "contract_address": "0xbeb09beb09e95e6febf0d6eeb1d0d46d1013cc3c", + "field_mapping": {}, + "type": "trace" + }, + "table": { + "dataset_name": "ethereum_bebop", + "schema": [ + { + "description": "", + "name": "order", + "type": "STRING" + }, + { + "description": "", + "name": "takerSig", + "type": "STRING" + }, + { + "description": "", + "name": "makerSigs", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "BebopAggregationContract_call_SettleAggregateOrder" + } +} diff --git a/dags/resources/stages/parse/table_definitions/bebop/BebopAggregationContract_event_AggregateOrderExecuted.json b/dags/resources/stages/parse/table_definitions/bebop/BebopAggregationContract_event_AggregateOrderExecuted.json new file mode 100644 index 00000000..600d9f7c --- /dev/null +++ b/dags/resources/stages/parse/table_definitions/bebop/BebopAggregationContract_event_AggregateOrderExecuted.json @@ -0,0 +1,32 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "bytes32", + "name": "order_hash", + "type": "bytes32" + } + ], + "name": "AggregateOrderExecuted", + "type": "event" + }, + "contract_address": "0xbeb09beb09e95e6febf0d6eeb1d0d46d1013cc3c", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "ethereum_bebop", + "schema": [ + { + "description": "", + "name": "order_hash", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "BebopAggregationContract_event_AggregateOrderExecuted" + } +} diff --git a/dags/resources/stages/parse/table_definitions/bebop/BebopSettlement_call_SettleAggregateOrder.json b/dags/resources/stages/parse/table_definitions/bebop/BebopSettlement_call_SettleAggregateOrder.json new file mode 100644 index 00000000..e4caf78c --- /dev/null +++ b/dags/resources/stages/parse/table_definitions/bebop/BebopSettlement_call_SettleAggregateOrder.json @@ -0,0 +1,146 @@ +{ + "parser": { + "abi": { + "inputs": [ + { + "components": [ + { + "internalType": "uint256", + "name": "expiry", + "type": "uint256" + }, + { + "internalType": "address", + "name": "taker_address", + "type": "address" + }, + { + "internalType": "address[]", + "name": "maker_addresses", + "type": "address[]" + }, + { + "internalType": "uint256[]", + "name": "maker_nonces", + "type": "uint256[]" + }, + { + "internalType": "address[][]", + "name": "taker_tokens", + "type": "address[][]" + }, + { + "internalType": "address[][]", + "name": "maker_tokens", + "type": "address[][]" + }, + { + "internalType": "uint256[][]", + "name": "taker_amounts", + "type": "uint256[][]" + }, + { + "internalType": "uint256[][]", + "name": "maker_amounts", + "type": "uint256[][]" + }, + { + "internalType": "address", + "name": "receiver", + "type": "address" + }, + { + "internalType": "bytes", + "name": "commands", + "type": "bytes" + } + ], + "internalType": "struct Order.Aggregate", + "name": "order", + "type": "tuple" + }, + { + "components": [ + { + "internalType": "enum Signature.Type", + "name": "signatureType", + "type": "uint8" + }, + { + "internalType": "bytes", + "name": "signatureBytes", + "type": "bytes" + } + ], + "internalType": "struct Signature.TypedSignature", + "name": "takerSig", + "type": "tuple" + }, + { + "components": [ + { + "components": [ + { + "internalType": "enum Signature.Type", + "name": "signatureType", + "type": "uint8" + }, + { + "internalType": "bytes", + "name": "signatureBytes", + "type": "bytes" + } + ], + "internalType": "struct Signature.TypedSignature", + "name": "signature", + "type": "tuple" + }, + { + "internalType": "bool", + "name": "usingPermit2", + "type": "bool" + } + ], + "internalType": "struct Signature.MakerSignatures[]", + "name": "makerSigs", + "type": "tuple[]" + } + ], + "name": "SettleAggregateOrder", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "payable", + "type": "function" + }, + "contract_address": "0xbeb09000fa59627dc02bb55448ac1893eaa501a5", + "field_mapping": {}, + "type": "trace" + }, + "table": { + "dataset_name": "ethereum_bebop", + "schema": [ + { + "description": "", + "name": "order", + "type": "STRING" + }, + { + "description": "", + "name": "takerSig", + "type": "STRING" + }, + { + "description": "", + "name": "makerSigs", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "BebopSettlement_call_SettleAggregateOrder" + } +} diff --git a/dags/resources/stages/parse/table_definitions/bebop/BebopSettlement_call_SettleAggregateOrderWithTakerPermits.json b/dags/resources/stages/parse/table_definitions/bebop/BebopSettlement_call_SettleAggregateOrderWithTakerPermits.json new file mode 100644 index 00000000..9a14d68f --- /dev/null +++ b/dags/resources/stages/parse/table_definitions/bebop/BebopSettlement_call_SettleAggregateOrderWithTakerPermits.json @@ -0,0 +1,178 @@ +{ + "parser": { + "abi": { + "inputs": [ + { + "components": [ + { + "internalType": "uint256", + "name": "expiry", + "type": "uint256" + }, + { + "internalType": "address", + "name": "taker_address", + "type": "address" + }, + { + "internalType": "address[]", + "name": "maker_addresses", + "type": "address[]" + }, + { + "internalType": "uint256[]", + "name": "maker_nonces", + "type": "uint256[]" + }, + { + "internalType": "address[][]", + "name": "taker_tokens", + "type": "address[][]" + }, + { + "internalType": "address[][]", + "name": "maker_tokens", + "type": "address[][]" + }, + { + "internalType": "uint256[][]", + "name": "taker_amounts", + "type": "uint256[][]" + }, + { + "internalType": "uint256[][]", + "name": "maker_amounts", + "type": "uint256[][]" + }, + { + "internalType": "address", + "name": "receiver", + "type": "address" + }, + { + "internalType": "bytes", + "name": "commands", + "type": "bytes" + } + ], + "internalType": "struct Order.Aggregate", + "name": "order", + "type": "tuple" + }, + { + "components": [ + { + "internalType": "enum Signature.Type", + "name": "signatureType", + "type": "uint8" + }, + { + "internalType": "bytes", + "name": "signatureBytes", + "type": "bytes" + } + ], + "internalType": "struct Signature.TypedSignature", + "name": "takerSig", + "type": "tuple" + }, + { + "components": [ + { + "components": [ + { + "internalType": "enum Signature.Type", + "name": "signatureType", + "type": "uint8" + }, + { + "internalType": "bytes", + "name": "signatureBytes", + "type": "bytes" + } + ], + "internalType": "struct Signature.TypedSignature", + "name": "signature", + "type": "tuple" + }, + { + "internalType": "bool", + "name": "usingPermit2", + "type": "bool" + } + ], + "internalType": "struct Signature.MakerSignatures[]", + "name": "makerSigs", + "type": "tuple[]" + }, + { + "components": [ + { + "internalType": "bytes[]", + "name": "permitSignatures", + "type": "bytes[]" + }, + { + "internalType": "bytes", + "name": "signatureBytesPermit2", + "type": "bytes" + }, + { + "internalType": "uint48[]", + "name": "noncesPermit2", + "type": "uint48[]" + }, + { + "internalType": "uint48", + "name": "deadline", + "type": "uint48" + } + ], + "internalType": "struct Signature.TakerPermitsInfo", + "name": "takerPermitsInfo", + "type": "tuple" + } + ], + "name": "SettleAggregateOrderWithTakerPermits", + "outputs": [ + { + "internalType": "bool", + "name": "", + "type": "bool" + } + ], + "stateMutability": "payable", + "type": "function" + }, + "contract_address": "0xbeb09000fa59627dc02bb55448ac1893eaa501a5", + "field_mapping": {}, + "type": "trace" + }, + "table": { + "dataset_name": "ethereum_bebop", + "schema": [ + { + "description": "", + "name": "order", + "type": "STRING" + }, + { + "description": "", + "name": "takerSig", + "type": "STRING" + }, + { + "description": "", + "name": "makerSigs", + "type": "STRING" + }, + { + "description": "", + "name": "takerPermitsInfo", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "BebopSettlement_call_SettleAggregateOrderWithTakerPermits" + } +} diff --git a/dags/resources/stages/parse/table_definitions/bebop/BebopSettlement_event_AggregateOrderExecuted.json b/dags/resources/stages/parse/table_definitions/bebop/BebopSettlement_event_AggregateOrderExecuted.json new file mode 100644 index 00000000..e0df52c3 --- /dev/null +++ b/dags/resources/stages/parse/table_definitions/bebop/BebopSettlement_event_AggregateOrderExecuted.json @@ -0,0 +1,32 @@ +{ + "parser": { + "abi": { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "bytes32", + "name": "order_hash", + "type": "bytes32" + } + ], + "name": "AggregateOrderExecuted", + "type": "event" + }, + "contract_address": "0xbeb09000fa59627dc02bb55448ac1893eaa501a5", + "field_mapping": {}, + "type": "log" + }, + "table": { + "dataset_name": "ethereum_bebop", + "schema": [ + { + "description": "", + "name": "order_hash", + "type": "STRING" + } + ], + "table_description": "", + "table_name": "BebopSettlement_event_AggregateOrderExecuted" + } +}