Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ARR552 authored Jul 6, 2022
1 parent 7db845d commit dac086c
Show file tree
Hide file tree
Showing 7 changed files with 216 additions and 158 deletions.
237 changes: 136 additions & 101 deletions ethermanv2/smartcontracts/abi/bridge.abi
Original file line number Diff line number Diff line change
Expand Up @@ -18,24 +18,18 @@
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "address",
"name": "tokenAddres",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "amount",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint32",
"name": "originNetwork",
"type": "uint32"
},
{
"indexed": false,
"internalType": "address",
"name": "originTokenAddress",
"type": "address"
},
{
"indexed": false,
"internalType": "uint32",
Expand All @@ -48,6 +42,18 @@
"name": "destinationAddress",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "amount",
"type": "uint256"
},
{
"indexed": false,
"internalType": "bytes",
"name": "metadata",
"type": "bytes"
},
{
"indexed": false,
"internalType": "uint32",
Expand All @@ -70,26 +76,26 @@
{
"indexed": false,
"internalType": "uint32",
"name": "originalNetwork",
"name": "originNetwork",
"type": "uint32"
},
{
"indexed": false,
"internalType": "address",
"name": "token",
"name": "originTokenAddress",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "amount",
"type": "uint256"
},
{
"indexed": false,
"internalType": "address",
"name": "destinationAddress",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "ClaimEvent",
Expand All @@ -101,13 +107,13 @@
{
"indexed": false,
"internalType": "uint32",
"name": "originalNetwork",
"name": "originNetwork",
"type": "uint32"
},
{
"indexed": false,
"internalType": "address",
"name": "originalTokenAddress",
"name": "originTokenAddress",
"type": "address"
},
{
Expand Down Expand Up @@ -156,47 +162,23 @@
"inputs": [
{
"internalType": "address",
"name": "",
"name": "token",
"type": "address"
}
],
"name": "addressToTokenInfo",
"outputs": [
},
{
"internalType": "uint32",
"name": "originalNetwork",
"name": "destinationNetwork",
"type": "uint32"
},
{
"internalType": "address",
"name": "originalTokenAddress",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "token",
"name": "destinationAddress",
"type": "address"
},
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
},
{
"internalType": "uint32",
"name": "destinationNetwork",
"type": "uint32"
},
{
"internalType": "address",
"name": "destinationAddress",
"type": "address"
}
],
"name": "bridge",
Expand All @@ -207,49 +189,54 @@
{
"inputs": [
{
"internalType": "address",
"name": "originalTokenAddress",
"type": "address"
},
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
"internalType": "bytes32[]",
"name": "smtProof",
"type": "bytes32[]"
},
{
"internalType": "uint32",
"name": "originalNetwork",
"name": "index",
"type": "uint32"
},
{
"internalType": "bytes32",
"name": "mainnetExitRoot",
"type": "bytes32"
},
{
"internalType": "bytes32",
"name": "rollupExitRoot",
"type": "bytes32"
},
{
"internalType": "uint32",
"name": "destinationNetwork",
"name": "originNetwork",
"type": "uint32"
},
{
"internalType": "address",
"name": "destinationAddress",
"name": "originTokenAddress",
"type": "address"
},
{
"internalType": "bytes32[]",
"name": "smtProof",
"type": "bytes32[]"
},
{
"internalType": "uint32",
"name": "index",
"name": "destinationNetwork",
"type": "uint32"
},
{
"internalType": "bytes32",
"name": "mainnetExitRoot",
"type": "bytes32"
"internalType": "address",
"name": "destinationAddress",
"type": "address"
},
{
"internalType": "bytes32",
"name": "rollupExitRoot",
"type": "bytes32"
"internalType": "uint256",
"name": "amount",
"type": "uint256"
},
{
"internalType": "bytes",
"name": "metadata",
"type": "bytes"
}
],
"name": "claim",
Expand Down Expand Up @@ -306,12 +293,56 @@
"inputs": [
{
"internalType": "uint32",
"name": "originalNetwork",
"name": "originNetwork",
"type": "uint32"
},
{
"internalType": "address",
"name": "originTokenAddress",
"type": "address"
},
{
"internalType": "uint32",
"name": "destinationNetwork",
"type": "uint32"
},
{
"internalType": "address",
"name": "originalTokenAddress",
"name": "destinationAddress",
"type": "address"
},
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
},
{
"internalType": "bytes32",
"name": "metadataHash",
"type": "bytes32"
}
],
"name": "getLeafValue",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint32",
"name": "originNetwork",
"type": "uint32"
},
{
"internalType": "address",
"name": "originTokenAddress",
"type": "address"
}
],
Expand Down Expand Up @@ -369,12 +400,12 @@
"inputs": [
{
"internalType": "uint32",
"name": "originalNetwork",
"name": "originNetwork",
"type": "uint32"
},
{
"internalType": "address",
"name": "originalTokenAddress",
"name": "originTokenAddress",
"type": "address"
}
],
Expand Down Expand Up @@ -417,7 +448,7 @@
"type": "bytes32"
}
],
"name": "tokenInfoToAddress",
"name": "tokenInfoToWrappedToken",
"outputs": [
{
"internalType": "address",
Expand All @@ -444,29 +475,9 @@
{
"inputs": [
{
"internalType": "address",
"name": "token",
"type": "address"
},
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
},
{
"internalType": "uint32",
"name": "originalNetwork",
"type": "uint32"
},
{
"internalType": "uint32",
"name": "destinationNetwork",
"type": "uint32"
},
{
"internalType": "address",
"name": "destinationAddress",
"type": "address"
"internalType": "bytes32",
"name": "leafHash",
"type": "bytes32"
},
{
"internalType": "bytes32[]",
Expand Down Expand Up @@ -494,5 +505,29 @@
],
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"name": "wrappedTokenToTokenInfo",
"outputs": [
{
"internalType": "uint32",
"name": "originNetwork",
"type": "uint32"
},
{
"internalType": "address",
"name": "originTokenAddress",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
}
]
Loading

0 comments on commit dac086c

Please sign in to comment.