Skip to content

Commit

Permalink
Merge pull request #44 from maticnetwork/fxportal-events
Browse files Browse the repository at this point in the history
Add FxPortal events to subgraph
  • Loading branch information
reddyismav authored Sep 15, 2021
2 parents d7a7fe9 + 59e0fae commit fdffcc3
Show file tree
Hide file tree
Showing 10 changed files with 2,526 additions and 400 deletions.
613 changes: 613 additions & 0 deletions root/abis/FxErc1155RootTunnel.json

Large diffs are not rendered by default.

351 changes: 351 additions & 0 deletions root/abis/FxErc20RootTunnel.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,351 @@
[
{
"inputs":[
{
"internalType":"address",
"name":"_checkpointManager",
"type":"address"
},
{
"internalType":"address",
"name":"_fxRoot",
"type":"address"
},
{
"internalType":"address",
"name":"_fxERC20Token",
"type":"address"
}
],
"stateMutability":"nonpayable",
"type":"constructor"
},
{
"anonymous":false,
"inputs":[
{
"indexed":true,
"internalType":"address",
"name":"rootToken",
"type":"address"
},
{
"indexed":true,
"internalType":"address",
"name":"depositor",
"type":"address"
},
{
"indexed":true,
"internalType":"address",
"name":"userAddress",
"type":"address"
},
{
"indexed":false,
"internalType":"uint256",
"name":"amount",
"type":"uint256"
}
],
"name":"FxDepositERC20",
"type":"event"
},
{
"anonymous":false,
"inputs":[
{
"indexed":true,
"internalType":"address",
"name":"rootToken",
"type":"address"
},
{
"indexed":true,
"internalType":"address",
"name":"childToken",
"type":"address"
},
{
"indexed":true,
"internalType":"address",
"name":"userAddress",
"type":"address"
},
{
"indexed":false,
"internalType":"uint256",
"name":"amount",
"type":"uint256"
}
],
"name":"FxWithdrawERC20",
"type":"event"
},
{
"anonymous":false,
"inputs":[
{
"indexed":true,
"internalType":"address",
"name":"rootToken",
"type":"address"
},
{
"indexed":true,
"internalType":"address",
"name":"childToken",
"type":"address"
}
],
"name":"TokenMappedERC20",
"type":"event"
},
{
"inputs":[

],
"name":"DEPOSIT",
"outputs":[
{
"internalType":"bytes32",
"name":"",
"type":"bytes32"
}
],
"stateMutability":"view",
"type":"function"
},
{
"inputs":[

],
"name":"MAP_TOKEN",
"outputs":[
{
"internalType":"bytes32",
"name":"",
"type":"bytes32"
}
],
"stateMutability":"view",
"type":"function"
},
{
"inputs":[

],
"name":"SEND_MESSAGE_EVENT_SIG",
"outputs":[
{
"internalType":"bytes32",
"name":"",
"type":"bytes32"
}
],
"stateMutability":"view",
"type":"function"
},
{
"inputs":[

],
"name":"checkpointManager",
"outputs":[
{
"internalType":"contract ICheckpointManager",
"name":"",
"type":"address"
}
],
"stateMutability":"view",
"type":"function"
},
{
"inputs":[

],
"name":"childTokenTemplateCodeHash",
"outputs":[
{
"internalType":"bytes32",
"name":"",
"type":"bytes32"
}
],
"stateMutability":"view",
"type":"function"
},
{
"inputs":[
{
"internalType":"bytes32",
"name":"salt",
"type":"bytes32"
},
{
"internalType":"bytes32",
"name":"bytecodeHash",
"type":"bytes32"
},
{
"internalType":"address",
"name":"deployer",
"type":"address"
}
],
"name":"computedCreate2Address",
"outputs":[
{
"internalType":"address",
"name":"",
"type":"address"
}
],
"stateMutability":"pure",
"type":"function"
},
{
"inputs":[
{
"internalType":"address",
"name":"rootToken",
"type":"address"
},
{
"internalType":"address",
"name":"user",
"type":"address"
},
{
"internalType":"uint256",
"name":"amount",
"type":"uint256"
},
{
"internalType":"bytes",
"name":"data",
"type":"bytes"
}
],
"name":"deposit",
"outputs":[

],
"stateMutability":"nonpayable",
"type":"function"
},
{
"inputs":[

],
"name":"fxChildTunnel",
"outputs":[
{
"internalType":"address",
"name":"",
"type":"address"
}
],
"stateMutability":"view",
"type":"function"
},
{
"inputs":[

],
"name":"fxRoot",
"outputs":[
{
"internalType":"contract IFxStateSender",
"name":"",
"type":"address"
}
],
"stateMutability":"view",
"type":"function"
},
{
"inputs":[
{
"internalType":"address",
"name":"rootToken",
"type":"address"
}
],
"name":"mapToken",
"outputs":[

],
"stateMutability":"nonpayable",
"type":"function"
},
{
"inputs":[
{
"internalType":"bytes32",
"name":"",
"type":"bytes32"
}
],
"name":"processedExits",
"outputs":[
{
"internalType":"bool",
"name":"",
"type":"bool"
}
],
"stateMutability":"view",
"type":"function"
},
{
"inputs":[
{
"internalType":"bytes",
"name":"inputData",
"type":"bytes"
}
],
"name":"receiveMessage",
"outputs":[

],
"stateMutability":"nonpayable",
"type":"function"
},
{
"inputs":[
{
"internalType":"address",
"name":"",
"type":"address"
}
],
"name":"rootToChildTokens",
"outputs":[
{
"internalType":"address",
"name":"",
"type":"address"
}
],
"stateMutability":"view",
"type":"function"
},
{
"inputs":[
{
"internalType":"address",
"name":"_fxChildTunnel",
"type":"address"
}
],
"name":"setFxChildTunnel",
"outputs":[

],
"stateMutability":"nonpayable",
"type":"function"
}
]
Loading

0 comments on commit fdffcc3

Please sign in to comment.