Skip to content

Commit

Permalink
refactor: update typechain
Browse files Browse the repository at this point in the history
  • Loading branch information
danijelTxFusion authored and petarTxFusion committed Jun 6, 2024
1 parent b448b8f commit a5a9a53
Show file tree
Hide file tree
Showing 28 changed files with 1,087 additions and 587 deletions.
2 changes: 1 addition & 1 deletion abi/IBridgehub.json
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@
"type": "uint256"
}
],
"name": "getStateTransition",
"name": "getHyperchain",
"outputs": [
{
"internalType": "address",
Expand Down
114 changes: 5 additions & 109 deletions abi/IContractDeployer.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
"outputs": [
{
"internalType": "address",
"name": "",
"name": "newAddress",
"type": "address"
}
],
Expand Down Expand Up @@ -113,7 +113,7 @@
"outputs": [
{
"internalType": "address",
"name": "",
"name": "newAddress",
"type": "address"
}
],
Expand Down Expand Up @@ -147,7 +147,7 @@
"outputs": [
{
"internalType": "address",
"name": "",
"name": "newAddress",
"type": "address"
}
],
Expand All @@ -158,7 +158,7 @@
"inputs": [
{
"internalType": "bytes32",
"name": "",
"name": "_salt",
"type": "bytes32"
},
{
Expand All @@ -181,114 +181,10 @@
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_address",
"type": "address"
}
],
"name": "extendedAccountVersion",
"outputs": [
{
"internalType": "enum IContractDeployer.AccountAbstractionVersion",
"name": "",
"type": "uint8"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"components": [
{
"internalType": "bytes32",
"name": "bytecodeHash",
"type": "bytes32"
},
{
"internalType": "address",
"name": "newAddress",
"type": "address"
},
{
"internalType": "bool",
"name": "callConstructor",
"type": "bool"
},
{
"internalType": "uint256",
"name": "value",
"type": "uint256"
},
{
"internalType": "bytes",
"name": "input",
"type": "bytes"
}
],
"internalType": "struct ContractDeployer.ForceDeployment",
"name": "_deployment",
"type": "tuple"
},
{
"internalType": "address",
"name": "_sender",
"name": "newAddress",
"type": "address"
}
],
"name": "forceDeployOnAddress",
"outputs": [],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [
{
"components": [
{
"internalType": "bytes32",
"name": "bytecodeHash",
"type": "bytes32"
},
{
"internalType": "address",
"name": "newAddress",
"type": "address"
},
{
"internalType": "bool",
"name": "callConstructor",
"type": "bool"
},
{
"internalType": "uint256",
"name": "value",
"type": "uint256"
},
{
"internalType": "bytes",
"name": "input",
"type": "bytes"
}
],
"internalType": "struct ContractDeployer.ForceDeployment[]",
"name": "_deployments",
"type": "tuple[]"
}
],
"name": "forceDeployOnAddresses",
"outputs": [],
"stateMutability": "payable",
"type": "function"
},
Expand Down
33 changes: 14 additions & 19 deletions abi/IL1ERC20Bridge.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,19 @@
"name": "WithdrawalFinalized",
"type": "event"
},
{
"inputs": [],
"name": "SHARED_BRIDGE",
"outputs": [
{
"internalType": "contract IL1SharedBridge",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
Expand Down Expand Up @@ -343,35 +356,17 @@
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "sharedBridge",
"outputs": [
{
"internalType": "contract IL1SharedBridge",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_token",
"type": "address"
},
{
"internalType": "uint256",
"name": "_amount",
"type": "uint256"
}
],
"name": "transferTokenToSharedBridge",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
]
]
63 changes: 47 additions & 16 deletions abi/IL1SharedBridge.json
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@
},
{
"inputs": [],
"name": "bridgehub",
"name": "BRIDGE_HUB",
"outputs": [
{
"internalType": "contract IBridgehub",
Expand All @@ -216,6 +216,19 @@
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "L1_WETH_TOKEN",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
Expand Down Expand Up @@ -618,19 +631,6 @@
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "l1WethAddress",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
Expand Down Expand Up @@ -680,11 +680,42 @@
"inputs": [
{
"internalType": "uint256",
"name": "_eraFirstPostUpgradeBatch",
"name": "_eraLegacyBridgeLastDepositBatch",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "_eraLegacyBridgeLastDepositTxNumber",
"type": "uint256"
}
],
"name": "setEraLegacyBridgeLastDepositTime",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_eraPostDiamondUpgradeFirstBatch",
"type": "uint256"
}
],
"name": "setEraPostDiamondUpgradeFirstBatch",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_eraPostLegacyBridgeUpgradeFirstBatch",
"type": "uint256"
}
],
"name": "setEraFirstPostUpgradeBatch",
"name": "setEraPostLegacyBridgeUpgradeFirstBatch",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
Expand Down
2 changes: 1 addition & 1 deletion abi/IL2Bridge.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
],
"name": "finalizeDeposit",
"outputs": [],
"stateMutability": "payable",
"stateMutability": "nonpayable",
"type": "function"
},
{
Expand Down
Loading

0 comments on commit a5a9a53

Please sign in to comment.