-
-
Notifications
You must be signed in to change notification settings - Fork 195
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add cowswap and odos swap events (#801)
- Loading branch information
1 parent
31e3d70
commit 0f6999e
Showing
4 changed files
with
315 additions
and
0 deletions.
There are no files selected for viewing
32 changes: 32 additions & 0 deletions
32
dags/resources/stages/parse/table_definitions/cowswap/Cowswap_event_Settlement.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} |
98 changes: 98 additions & 0 deletions
98
dags/resources/stages/parse/table_definitions/cowswap/Cowswap_event_Trade.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} |
98 changes: 98 additions & 0 deletions
98
dags/resources/stages/parse/table_definitions/odos/Odos_event_Swap.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} |
87 changes: 87 additions & 0 deletions
87
dags/resources/stages/parse/table_definitions/odos/Odos_event_SwapMulti.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} |