-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #133 from AyadiGithub/feature/mai_events_calls
Add support for Mai Finance
- Loading branch information
Showing
38 changed files
with
1,768 additions
and
0 deletions.
There are no files selected for viewing
33 changes: 33 additions & 0 deletions
33
airflow/dags/resources/stages/parse/table_definitions/mai/Anchor_call_swapFrom.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,33 @@ | ||
{ | ||
"parser": { | ||
"abi": { | ||
"constant": false, | ||
"inputs": [ | ||
{ | ||
"name": "amount", | ||
"type": "uint256" | ||
} | ||
], | ||
"name": "swapFrom", | ||
"outputs": [], | ||
"payable": false, | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
"contract_address": "SELECT * FROM UNNEST(['0x947d711c25220d8301c087b25ba111fe8cbf6672', '0x6062e92599a77e62e0cc9749261eb2eac3abd44f', '0xa4742a65f24291aa421497221aaf64c70b098d98'])", | ||
"field_mapping": {}, | ||
"type": "trace" | ||
}, | ||
"table": { | ||
"dataset_name": "mai", | ||
"schema": [ | ||
{ | ||
"description": "", | ||
"name": "amount", | ||
"type": "STRING" | ||
} | ||
], | ||
"table_description": "", | ||
"table_name": "Anchor_call_swapFrom" | ||
} | ||
} |
33 changes: 33 additions & 0 deletions
33
airflow/dags/resources/stages/parse/table_definitions/mai/Anchor_call_swapTo.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,33 @@ | ||
{ | ||
"parser": { | ||
"abi": { | ||
"constant": false, | ||
"inputs": [ | ||
{ | ||
"name": "amount", | ||
"type": "uint256" | ||
} | ||
], | ||
"name": "swapTo", | ||
"outputs": [], | ||
"payable": false, | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
"contract_address": "SELECT * FROM UNNEST(['0x947d711c25220d8301c087b25ba111fe8cbf6672', '0x6062e92599a77e62e0cc9749261eb2eac3abd44f', '0xa4742a65f24291aa421497221aaf64c70b098d98'])", | ||
"field_mapping": {}, | ||
"type": "trace" | ||
}, | ||
"table": { | ||
"dataset_name": "mai", | ||
"schema": [ | ||
{ | ||
"description": "", | ||
"name": "amount", | ||
"type": "STRING" | ||
} | ||
], | ||
"table_description": "", | ||
"table_name": "Anchor_call_swapTo" | ||
} | ||
} |
42 changes: 42 additions & 0 deletions
42
airflow/dags/resources/stages/parse/table_definitions/mai/Anchor_call_transferToken.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,42 @@ | ||
{ | ||
"parser": { | ||
"abi": { | ||
"constant": false, | ||
"inputs": [ | ||
{ | ||
"name": "token", | ||
"type": "address" | ||
}, | ||
{ | ||
"name": "amountToken", | ||
"type": "uint256" | ||
} | ||
], | ||
"name": "transferToken", | ||
"outputs": [], | ||
"payable": false, | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
"contract_address": "SELECT * FROM UNNEST(['0x947d711c25220d8301c087b25ba111fe8cbf6672', '0x6062e92599a77e62e0cc9749261eb2eac3abd44f', '0xa4742a65f24291aa421497221aaf64c70b098d98'])", | ||
"field_mapping": {}, | ||
"type": "trace" | ||
}, | ||
"table": { | ||
"dataset_name": "mai", | ||
"schema": [ | ||
{ | ||
"description": "", | ||
"name": "token", | ||
"type": "STRING" | ||
}, | ||
{ | ||
"description": "", | ||
"name": "amountToken", | ||
"type": "STRING" | ||
} | ||
], | ||
"table_description": "", | ||
"table_name": "Anchor_call_transferToken" | ||
} | ||
} |
64 changes: 64 additions & 0 deletions
64
airflow/dags/resources/stages/parse/table_definitions/mai/Farm_call_add.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,64 @@ | ||
{ | ||
"parser": { | ||
"abi": { | ||
"constant": false, | ||
"inputs": [ | ||
{ | ||
"internalType": "uint256", | ||
"name": "_allocPoint", | ||
"type": "uint256" | ||
}, | ||
{ | ||
"internalType": "contract IERC20", | ||
"name": "_lpToken", | ||
"type": "address" | ||
}, | ||
{ | ||
"internalType": "bool", | ||
"name": "_withUpdate", | ||
"type": "bool" | ||
}, | ||
{ | ||
"internalType": "uint16", | ||
"name": "_depositFeeBP", | ||
"type": "uint16" | ||
} | ||
], | ||
"name": "add", | ||
"outputs": [], | ||
"payable": false, | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
"contract_address": "SELECT * FROM UNNEST(['0x9f9f0456005ed4e7248199b6260752e95682a883', '0xcc54afcecd0d89e0b2db58f5d9e58468e7ad20dc', '0x1871178527a5f423f344b2c668e64a02d8783b8b', '0xbd9e831826786d9f2561695a140231f3353c608c', '0x8a75d9337e96d20c10e2632dffe093e5cdbf52bd', '0x574fe4e8120c4da1741b5fd45584de7a5b521f0f', '0x0635af5ab29fc7bba007b8cebad27b7a3d3d1958', '0xffd2aa58cca3a44120aaa42cea2852348a9c2ea6', '0xbd9e831826786d9f2561695a140231f3353c608c'])", | ||
"field_mapping": {}, | ||
"type": "trace" | ||
}, | ||
"table": { | ||
"dataset_name": "mai", | ||
"schema": [ | ||
{ | ||
"description": "", | ||
"name": "_allocPoint", | ||
"type": "STRING" | ||
}, | ||
{ | ||
"description": "", | ||
"name": "_lpToken", | ||
"type": "STRING" | ||
}, | ||
{ | ||
"description": "", | ||
"name": "_withUpdate", | ||
"type": "STRING" | ||
}, | ||
{ | ||
"description": "", | ||
"name": "_depositFeeBP", | ||
"type": "STRING" | ||
} | ||
], | ||
"table_description": "", | ||
"table_name": "Farm_call_add" | ||
} | ||
} |
44 changes: 44 additions & 0 deletions
44
airflow/dags/resources/stages/parse/table_definitions/mai/Farm_call_deposit.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,44 @@ | ||
{ | ||
"parser": { | ||
"abi": { | ||
"constant": false, | ||
"inputs": [ | ||
{ | ||
"internalType": "uint256", | ||
"name": "_pid", | ||
"type": "uint256" | ||
}, | ||
{ | ||
"internalType": "uint256", | ||
"name": "_amount", | ||
"type": "uint256" | ||
} | ||
], | ||
"name": "deposit", | ||
"outputs": [], | ||
"payable": false, | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
"contract_address": "SELECT * FROM UNNEST(['0x9f9f0456005ed4e7248199b6260752e95682a883', '0xcc54afcecd0d89e0b2db58f5d9e58468e7ad20dc', '0x1871178527a5f423f344b2c668e64a02d8783b8b', '0xbd9e831826786d9f2561695a140231f3353c608c', '0x8a75d9337e96d20c10e2632dffe093e5cdbf52bd', '0x574fe4e8120c4da1741b5fd45584de7a5b521f0f', '0x0635af5ab29fc7bba007b8cebad27b7a3d3d1958', '0xffd2aa58cca3a44120aaa42cea2852348a9c2ea6', '0xbd9e831826786d9f2561695a140231f3353c608c'])", | ||
"field_mapping": {}, | ||
"type": "trace" | ||
}, | ||
"table": { | ||
"dataset_name": "mai", | ||
"schema": [ | ||
{ | ||
"description": "", | ||
"name": "_pid", | ||
"type": "STRING" | ||
}, | ||
{ | ||
"description": "", | ||
"name": "_amount", | ||
"type": "STRING" | ||
} | ||
], | ||
"table_description": "", | ||
"table_name": "Farm_call_deposit" | ||
} | ||
} |
34 changes: 34 additions & 0 deletions
34
airflow/dags/resources/stages/parse/table_definitions/mai/Farm_call_fund.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,34 @@ | ||
{ | ||
"parser": { | ||
"abi": { | ||
"constant": false, | ||
"inputs": [ | ||
{ | ||
"internalType": "uint256", | ||
"name": "_amount", | ||
"type": "uint256" | ||
} | ||
], | ||
"name": "fund", | ||
"outputs": [], | ||
"payable": false, | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
"contract_address": "SELECT * FROM UNNEST(['0x9f9f0456005ed4e7248199b6260752e95682a883', '0xcc54afcecd0d89e0b2db58f5d9e58468e7ad20dc', '0x1871178527a5f423f344b2c668e64a02d8783b8b', '0xbd9e831826786d9f2561695a140231f3353c608c', '0x8a75d9337e96d20c10e2632dffe093e5cdbf52bd', '0x574fe4e8120c4da1741b5fd45584de7a5b521f0f', '0x0635af5ab29fc7bba007b8cebad27b7a3d3d1958', '0xffd2aa58cca3a44120aaa42cea2852348a9c2ea6', '0xbd9e831826786d9f2561695a140231f3353c608c'])", | ||
"field_mapping": {}, | ||
"type": "trace" | ||
}, | ||
"table": { | ||
"dataset_name": "mai", | ||
"schema": [ | ||
{ | ||
"description": "", | ||
"name": "_amount", | ||
"type": "STRING" | ||
} | ||
], | ||
"table_description": "", | ||
"table_name": "Farm_call_fund" | ||
} | ||
} |
44 changes: 44 additions & 0 deletions
44
airflow/dags/resources/stages/parse/table_definitions/mai/Farm_call_withdraw.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,44 @@ | ||
{ | ||
"parser": { | ||
"abi": { | ||
"constant": false, | ||
"inputs": [ | ||
{ | ||
"internalType": "uint256", | ||
"name": "_pid", | ||
"type": "uint256" | ||
}, | ||
{ | ||
"internalType": "uint256", | ||
"name": "_amount", | ||
"type": "uint256" | ||
} | ||
], | ||
"name": "withdraw", | ||
"outputs": [], | ||
"payable": false, | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
"contract_address": "SELECT * FROM UNNEST(['0x9f9f0456005ed4e7248199b6260752e95682a883', '0xcc54afcecd0d89e0b2db58f5d9e58468e7ad20dc', '0x1871178527a5f423f344b2c668e64a02d8783b8b', '0xbd9e831826786d9f2561695a140231f3353c608c', '0x8a75d9337e96d20c10e2632dffe093e5cdbf52bd', '0x574fe4e8120c4da1741b5fd45584de7a5b521f0f', '0x0635af5ab29fc7bba007b8cebad27b7a3d3d1958', '0xffd2aa58cca3a44120aaa42cea2852348a9c2ea6', '0xbd9e831826786d9f2561695a140231f3353c608c'])", | ||
"field_mapping": {}, | ||
"type": "trace" | ||
}, | ||
"table": { | ||
"dataset_name": "mai", | ||
"schema": [ | ||
{ | ||
"description": "", | ||
"name": "_pid", | ||
"type": "STRING" | ||
}, | ||
{ | ||
"description": "", | ||
"name": "_amount", | ||
"type": "STRING" | ||
} | ||
], | ||
"table_description": "", | ||
"table_name": "Farm_call_withdraw" | ||
} | ||
} |
54 changes: 54 additions & 0 deletions
54
airflow/dags/resources/stages/parse/table_definitions/mai/Farm_event_Deposit.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,54 @@ | ||
{ | ||
"parser": { | ||
"abi": { | ||
"anonymous": false, | ||
"inputs": [ | ||
{ | ||
"indexed": true, | ||
"internalType": "address", | ||
"name": "user", | ||
"type": "address" | ||
}, | ||
{ | ||
"indexed": true, | ||
"internalType": "uint256", | ||
"name": "pid", | ||
"type": "uint256" | ||
}, | ||
{ | ||
"indexed": false, | ||
"internalType": "uint256", | ||
"name": "amount", | ||
"type": "uint256" | ||
} | ||
], | ||
"name": "Deposit", | ||
"type": "event" | ||
}, | ||
"contract_address": "SELECT * FROM UNNEST(['0x9f9f0456005ed4e7248199b6260752e95682a883', '0xcc54afcecd0d89e0b2db58f5d9e58468e7ad20dc', '0x1871178527a5f423f344b2c668e64a02d8783b8b', '0xbd9e831826786d9f2561695a140231f3353c608c', '0x8a75d9337e96d20c10e2632dffe093e5cdbf52bd', '0x574fe4e8120c4da1741b5fd45584de7a5b521f0f', '0x0635af5ab29fc7bba007b8cebad27b7a3d3d1958', '0xffd2aa58cca3a44120aaa42cea2852348a9c2ea6', '0xbd9e831826786d9f2561695a140231f3353c608c'])", | ||
"field_mapping": {}, | ||
"type": "log" | ||
}, | ||
"table": { | ||
"dataset_name": "mai", | ||
"schema": [ | ||
{ | ||
"description": "", | ||
"name": "user", | ||
"type": "STRING" | ||
}, | ||
{ | ||
"description": "", | ||
"name": "pid", | ||
"type": "STRING" | ||
}, | ||
{ | ||
"description": "", | ||
"name": "amount", | ||
"type": "STRING" | ||
} | ||
], | ||
"table_description": "", | ||
"table_name": "Farm_event_Deposit" | ||
} | ||
} |
Oops, something went wrong.