Skip to content

Commit

Permalink
add support for Bebop RFQ (#737)
Browse files Browse the repository at this point in the history
  • Loading branch information
ememet authored Sep 19, 2024
1 parent ab57d9a commit 4d6a72a
Show file tree
Hide file tree
Showing 5 changed files with 505 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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"
}
}
Original file line number Diff line number Diff line change
@@ -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"
}
}
Original file line number Diff line number Diff line change
@@ -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"
}
}
Loading

0 comments on commit 4d6a72a

Please sign in to comment.