Skip to content

Commit

Permalink
Use STM instead of ISTM
Browse files Browse the repository at this point in the history
  • Loading branch information
ManuelBilbao committed Sep 4, 2024
1 parent a351edc commit 904dfa6
Show file tree
Hide file tree
Showing 2 changed files with 201 additions and 6 deletions.
205 changes: 200 additions & 5 deletions abi/IStateTransitionManager.json → abi/StateTransitionManager.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,33 @@
[
{
"inputs": [
{
"internalType": "address",
"name": "_bridgehub",
"type": "address"
},
{
"internalType": "uint256",
"name": "_maxNumberOfHyperchains",
"type": "uint256"
}
],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"anonymous": false,
"inputs": [
{
"indexed": false,
"internalType": "uint8",
"name": "version",
"type": "uint8"
}
],
"name": "Initialized",
"type": "event"
},
{
"anonymous": false,
"inputs": [
Expand Down Expand Up @@ -132,6 +161,44 @@
"name": "NewValidatorTimelock",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "previousOwner",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "newOwner",
"type": "address"
}
],
"name": "OwnershipTransferStarted",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "previousOwner",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "newOwner",
"type": "address"
}
],
"name": "OwnershipTransferred",
"type": "event"
},
{
"anonymous": false,
"inputs": [
Expand Down Expand Up @@ -252,13 +319,46 @@
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "MAX_NUMBER_OF_HYPERCHAINS",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "acceptAdmin",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "acceptOwnership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "admin",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
Expand Down Expand Up @@ -444,7 +544,7 @@
"outputs": [
{
"internalType": "address[]",
"name": "",
"name": "chainAddresses",
"type": "address[]"
}
],
Expand Down Expand Up @@ -482,7 +582,7 @@
"outputs": [
{
"internalType": "address",
"name": "",
"name": "chainAddress",
"type": "address"
}
],
Expand Down Expand Up @@ -619,6 +719,32 @@
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "owner",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "pendingOwner",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "protocolVersion",
Expand Down Expand Up @@ -688,6 +814,31 @@
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "renounceOwnership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_chainId",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "_newLastBatch",
"type": "uint256"
}
],
"name": "revertBatches",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
Expand Down Expand Up @@ -793,7 +944,7 @@
},
{
"internalType": "uint256",
"name": "_oldprotocolVersionDeadline",
"name": "_oldProtocolVersionDeadline",
"type": "uint256"
},
{
Expand Down Expand Up @@ -856,6 +1007,24 @@
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_protocolVersion",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "_timestamp",
"type": "uint256"
}
],
"name": "setProtocolVersionDeadline",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
Expand Down Expand Up @@ -985,6 +1154,19 @@
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "newOwner",
"type": "address"
}
],
"name": "transferOwnership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
Expand Down Expand Up @@ -1064,19 +1246,32 @@
"inputs": [
{
"internalType": "uint256",
"name": "_protocolVersion",
"name": "protocolVersion",
"type": "uint256"
}
],
"name": "upgradeCutHash",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"name": "cutHash",
"type": "bytes32"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "validatorTimelock",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
}
]
2 changes: 1 addition & 1 deletion src/contracts/state_transition_manager.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
use ethers_contract::abigen;

abigen!(StateTransitionManager, "abi/IStateTransitionManager.json");
abigen!(StateTransitionManager, "abi/StateTransitionManager.json");

0 comments on commit 904dfa6

Please sign in to comment.