Expand description
Generated by the following Solidity interface…
library BridgeUtils {
struct Message {
uint8 messageType;
uint8 version;
uint64 nonce;
uint8 chainID;
bytes payload;
}
}
interface EthCommitteeUpgradeableContract {
error AddressEmptyCode(address target);
error ERC1967InvalidImplementation(address implementation);
error ERC1967NonPayable();
error FailedInnerCall();
error InvalidInitialization();
error NotInitializing();
error ReentrancyGuardReentrantCall();
error UUPSUnauthorizedCallContext();
error UUPSUnsupportedProxiableUUID(bytes32 slot);
event Initialized(uint64 version);
event Upgraded(address indexed implementation);
function UPGRADE_INTERFACE_VERSION() external view returns (string memory);
function committee() external view returns (address);
function nonces(uint8 messageType) external view returns (uint64 nonce);
function proxiableUUID() external view returns (bytes32);
function upgradeToAndCall(address newImplementation, bytes memory data) external payable;
function upgradeWithSignatures(bytes[] memory signatures, BridgeUtils.Message memory message) external;
}…which was generated by the following JSON ABI:
[
{
"type": "function",
"name": "UPGRADE_INTERFACE_VERSION",
"inputs": [],
"outputs": [
{
"name": "",
"type": "string",
"internalType": "string"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "committee",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "contract IBridgeCommittee"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "nonces",
"inputs": [
{
"name": "messageType",
"type": "uint8",
"internalType": "uint8"
}
],
"outputs": [
{
"name": "nonce",
"type": "uint64",
"internalType": "uint64"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "proxiableUUID",
"inputs": [],
"outputs": [
{
"name": "",
"type": "bytes32",
"internalType": "bytes32"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "upgradeToAndCall",
"inputs": [
{
"name": "newImplementation",
"type": "address",
"internalType": "address"
},
{
"name": "data",
"type": "bytes",
"internalType": "bytes"
}
],
"outputs": [],
"stateMutability": "payable"
},
{
"type": "function",
"name": "upgradeWithSignatures",
"inputs": [
{
"name": "signatures",
"type": "bytes[]",
"internalType": "bytes[]"
},
{
"name": "message",
"type": "tuple",
"internalType": "struct BridgeUtils.Message",
"components": [
{
"name": "messageType",
"type": "uint8",
"internalType": "uint8"
},
{
"name": "version",
"type": "uint8",
"internalType": "uint8"
},
{
"name": "nonce",
"type": "uint64",
"internalType": "uint64"
},
{
"name": "chainID",
"type": "uint8",
"internalType": "uint8"
},
{
"name": "payload",
"type": "bytes",
"internalType": "bytes"
}
]
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "event",
"name": "Initialized",
"inputs": [
{
"name": "version",
"type": "uint64",
"indexed": false,
"internalType": "uint64"
}
],
"anonymous": false
},
{
"type": "event",
"name": "Upgraded",
"inputs": [
{
"name": "implementation",
"type": "address",
"indexed": true,
"internalType": "address"
}
],
"anonymous": false
},
{
"type": "error",
"name": "AddressEmptyCode",
"inputs": [
{
"name": "target",
"type": "address",
"internalType": "address"
}
]
},
{
"type": "error",
"name": "ERC1967InvalidImplementation",
"inputs": [
{
"name": "implementation",
"type": "address",
"internalType": "address"
}
]
},
{
"type": "error",
"name": "ERC1967NonPayable",
"inputs": []
},
{
"type": "error",
"name": "FailedInnerCall",
"inputs": []
},
{
"type": "error",
"name": "InvalidInitialization",
"inputs": []
},
{
"type": "error",
"name": "NotInitializing",
"inputs": []
},
{
"type": "error",
"name": "ReentrancyGuardReentrantCall",
"inputs": []
},
{
"type": "error",
"name": "UUPSUnauthorizedCallContext",
"inputs": []
},
{
"type": "error",
"name": "UUPSUnsupportedProxiableUUID",
"inputs": [
{
"name": "slot",
"type": "bytes32",
"internalType": "bytes32"
}
]
}
]Structs§
- Address
Empty Code - Custom error with signature
AddressEmptyCode(address)and selector0x9996b315. - ERC1967
Invalid Implementation - Custom error with signature
ERC1967InvalidImplementation(address)and selector0x4c9c8ce3. - ERC1967
NonPayable - Custom error with signature
ERC1967NonPayable()and selector0xb398979f. - EthCommittee
Upgradeable Contract Instance - A
EthCommitteeUpgradeableContractinstance. - Failed
Inner Call - Custom error with signature
FailedInnerCall()and selector0x1425ea42. - Initialized
- Event with signature
Initialized(uint64)and selector0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2. - Invalid
Initialization - Custom error with signature
InvalidInitialization()and selector0xf92ee8a9. - NotInitializing
- Custom error with signature
NotInitializing()and selector0xd7e6bcf8. - Reentrancy
Guard Reentrant Call - Custom error with signature
ReentrancyGuardReentrantCall()and selector0x3ee5aeb5. - UPGRADE_
INTERFACE_ VERSION Call - Function with signature
UPGRADE_INTERFACE_VERSION()and selector0xad3cb1cc. - UPGRADE_
INTERFACE_ VERSION Return - Container type for the return parameters of the
UPGRADE_INTERFACE_VERSION()function. - UUPS
Unauthorized Call Context - Custom error with signature
UUPSUnauthorizedCallContext()and selector0xe07c8dba. - UUPS
Unsupported ProxiableUUID - Custom error with signature
UUPSUnsupportedProxiableUUID(bytes32)and selector0xaa1d49a4. - Upgraded
- Event with signature
Upgraded(address)and selector0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b. - committee
Call - Function with signature
committee()and selector0xd864e740. - committee
Return - Container type for the return parameters of the
committee()function. - nonces
Call - Function with signature
nonces(uint8)and selector0x5035bda2. - nonces
Return - Container type for the return parameters of the
nonces(uint8)function. - proxiableUUID
Call - Function with signature
proxiableUUID()and selector0x52d1902d. - proxiableUUID
Return - Container type for the return parameters of the
proxiableUUID()function. - upgrade
ToAnd Call Call - Function with signature
upgradeToAndCall(address,bytes)and selector0x4f1ef286. - upgrade
ToAnd Call Return - Container type for the return parameters of the
upgradeToAndCall(address,bytes)function. - upgrade
With Signatures Call - Function with signature
upgradeWithSignatures(bytes[],(uint8,uint8,uint64,uint8,bytes))and selector0xfa72a6d0. - upgrade
With Signatures Return - Container type for the return parameters of the
upgradeWithSignatures(bytes[],(uint8,uint8,uint64,uint8,bytes))function.
Enums§
- EthCommittee
Upgradeable Contract Calls - Container for all the
EthCommitteeUpgradeableContractfunction calls. - EthCommittee
Upgradeable Contract Errors - Container for all the
EthCommitteeUpgradeableContractcustom errors. - EthCommittee
Upgradeable Contract Events - Container for all the
EthCommitteeUpgradeableContractevents.
Functions§
- new
- Creates a new wrapper around an on-chain
EthCommitteeUpgradeableContractcontract instance.