Skip to content

Commit

Permalink
add cowswap and odos swap events (#801)
Browse files Browse the repository at this point in the history
  • Loading branch information
ian-mellen authored Nov 20, 2024
1 parent 31e3d70 commit 0f6999e
Show file tree
Hide file tree
Showing 4 changed files with 315 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"parser": {
"abi": {
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "solver",
"type": "address"
}
],
"name": "Settlement",
"type": "event"
},
"contract_address": "0x9008d19f58aabd9ed0d60971565aa8510560ab41",
"field_mapping": {},
"type": "log"
},
"table": {
"dataset_name": "cowswap",
"schema": [
{
"description": "",
"name": "solver",
"type": "STRING"
}
],
"table_description": "",
"table_name": "Cowswap_event_Settlement"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
{
"parser": {
"abi": {
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "owner",
"type": "address"
},
{
"indexed": false,
"internalType": "contract IERC20",
"name": "sellToken",
"type": "address"
},
{
"indexed": false,
"internalType": "contract IERC20",
"name": "buyToken",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "sellAmount",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "buyAmount",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint256",
"name": "feeAmount",
"type": "uint256"
},
{
"indexed": false,
"internalType": "bytes",
"name": "orderUid",
"type": "bytes"
}
],
"name": "Trade",
"type": "event"
},
"contract_address": "0x9008d19f58aabd9ed0d60971565aa8510560ab41",
"field_mapping": {},
"type": "log"
},
"table": {
"dataset_name": "cowswap",
"schema": [
{
"description": "",
"name": "owner",
"type": "STRING"
},
{
"description": "",
"name": "sellToken",
"type": "STRING"
},
{
"description": "",
"name": "buyToken",
"type": "STRING"
},
{
"description": "",
"name": "sellAmount",
"type": "STRING"
},
{
"description": "",
"name": "buyAmount",
"type": "STRING"
},
{
"description": "",
"name": "feeAmount",
"type": "STRING"
},
{
"description": "",
"name": "orderUid",
"type": "STRING"
}
],
"table_description": "",
"table_name": "Cowswap_event_Trade"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
{
"parser": {
"abi": {
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address",
"name": "sender",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "inputAmount",
"type": "uint256"
},
{
"indexed": false,
"internalType": "address",
"name": "inputToken",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "amountOut",
"type": "uint256"
},
{
"indexed": false,
"internalType": "address",
"name": "outputToken",
"type": "address"
},
{
"indexed": false,
"internalType": "int256",
"name": "slippage",
"type": "int256"
},
{
"indexed": false,
"internalType": "uint32",
"name": "referralCode",
"type": "uint32"
}
],
"name": "Swap",
"type": "event"
},
"contract_address": "0xcf5540fffcdc3d510b18bfca6d2b9987b0772559",
"field_mapping": {},
"type": "log"
},
"table": {
"dataset_name": "odos",
"schema": [
{
"description": "",
"name": "sender",
"type": "STRING"
},
{
"description": "",
"name": "inputAmount",
"type": "STRING"
},
{
"description": "",
"name": "inputToken",
"type": "STRING"
},
{
"description": "",
"name": "amountOut",
"type": "STRING"
},
{
"description": "",
"name": "outputToken",
"type": "STRING"
},
{
"description": "",
"name": "slippage",
"type": "STRING"
},
{
"description": "",
"name": "referralCode",
"type": "STRING"
}
],
"table_description": "",
"table_name": "Odos_event_Swap"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
{
"parser": {
"abi": {
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address",
"name": "sender",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256[]",
"name": "amountsIn",
"type": "uint256[]"
},
{
"indexed": false,
"internalType": "address[]",
"name": "tokensIn",
"type": "address[]"
},
{
"indexed": false,
"internalType": "uint256[]",
"name": "amountsOut",
"type": "uint256[]"
},
{
"indexed": false,
"internalType": "address[]",
"name": "tokensOut",
"type": "address[]"
},
{
"indexed": false,
"internalType": "uint32",
"name": "referralCode",
"type": "uint32"
}
],
"name": "SwapMulti",
"type": "event"
},
"contract_address": "0xcf5540fffcdc3d510b18bfca6d2b9987b0772559",
"field_mapping": {},
"type": "log"
},
"table": {
"dataset_name": "odos",
"schema": [
{
"description": "",
"name": "sender",
"type": "STRING"
},
{
"description": "",
"name": "amountsIn",
"type": "STRING"
},
{
"description": "",
"name": "tokensIn",
"type": "STRING"
},
{
"description": "",
"name": "amountsOut",
"type": "STRING"
},
{
"description": "",
"name": "tokensOut",
"type": "STRING"
},
{
"description": "",
"name": "referralCode",
"type": "STRING"
}
],
"table_description": "",
"table_name": "Odos_event_SwapMulti"
}
}

0 comments on commit 0f6999e

Please sign in to comment.