Skip to content

Commit

Permalink
feat: migrate to Bridgehub
Browse files Browse the repository at this point in the history
  • Loading branch information
danijelTxFusion committed Jan 7, 2024
1 parent af62f3c commit a1411a9
Show file tree
Hide file tree
Showing 14 changed files with 3,408 additions and 7,070 deletions.
562 changes: 562 additions & 0 deletions abi/IBridgehub.json

Large diffs are not rendered by default.

158 changes: 158 additions & 0 deletions abi/IL1Bridge.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,37 @@
"name": "ClaimedFailedDeposit",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint256",
"name": "chainId",
"type": "uint256"
},
{
"indexed": true,
"internalType": "address",
"name": "to",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "l1Token",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "ClaimedFailedDepositSharedBridge",
"type": "event"
},
{
"anonymous": false,
"inputs": [
Expand Down Expand Up @@ -61,6 +92,49 @@
"name": "DepositInitiated",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint256",
"name": "chainId",
"type": "uint256"
},
{
"indexed": true,
"internalType": "bytes32",
"name": "l2DepositTxHash",
"type": "bytes32"
},
{
"indexed": true,
"internalType": "address",
"name": "from",
"type": "address"
},
{
"indexed": false,
"internalType": "address",
"name": "to",
"type": "address"
},
{
"indexed": false,
"internalType": "address",
"name": "l1Token",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "DepositInitiatedSharedBridge",
"type": "event"
},
{
"anonymous": false,
"inputs": [
Expand All @@ -87,7 +161,71 @@
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint256",
"name": "chainId",
"type": "uint256"
},
{
"indexed": true,
"internalType": "address",
"name": "to",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "l1Token",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "WithdrawalFinalizedSharedBridge",
"type": "event"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_chainId",
"type": "uint256"
},
{
"internalType": "address",
"name": "_l1Token",
"type": "address"
},
{
"internalType": "uint256",
"name": "_amoun",
"type": "uint256"
},
{
"internalType": "address",
"name": "_prevMsgSender",
"type": "address"
}
],
"name": "bridgehubDeposit",
"outputs": [],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_chainId",
"type": "uint256"
},
{
"internalType": "address",
"name": "_depositSender",
Expand Down Expand Up @@ -131,6 +269,11 @@
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_chainId",
"type": "uint256"
},
{
"internalType": "address",
"name": "_l2Receiver",
Expand All @@ -141,6 +284,11 @@
"name": "_l1Token",
"type": "address"
},
{
"internalType": "uint256",
"name": "_mintValue",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "_amount",
Expand Down Expand Up @@ -175,6 +323,11 @@
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_chainId",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "_l2BatchNumber",
Expand Down Expand Up @@ -208,6 +361,11 @@
},
{
"inputs": [
{
"internalType": "uint256",
"name": "chainId",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "_l2BatchNumber",
Expand Down
Loading

0 comments on commit a1411a9

Please sign in to comment.