Skip to content

Commit

Permalink
Merge pull request #133 from AyadiGithub/feature/mai_events_calls
Browse files Browse the repository at this point in the history
Add support for Mai Finance
  • Loading branch information
charlielewisme authored Feb 20, 2023
2 parents 35a79b2 + 6100aad commit cf1a2e1
Show file tree
Hide file tree
Showing 38 changed files with 1,768 additions and 0 deletions.
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"
}
}
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"
}
}
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"
}
}
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"
}
}
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"
}
}
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"
}
}
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"
}
}
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"
}
}
Loading

0 comments on commit cf1a2e1

Please sign in to comment.