Module zenith_types::Transactor
source · Expand description
Generated by the following Solidity interface…
interface Transactor {
error OnlyGasAdmin();
error PerBlockTransactGasLimit();
error PerTransactGasLimit();
event GasConfigured(uint256 perBlock, uint256 perTransact);
event Transact(uint256 indexed rollupChainId, address indexed sender, address indexed to, bytes data, uint256 value, uint256 gas, uint256 maxFeePerGas);
constructor(uint256 _defaultRollupChainId, address _gasAdmin, address _passage, uint256 _perBlockGasLimit, uint256 _perTransactGasLimit);
function configureGas(uint256 perBlock, uint256 perTransact) external;
function defaultRollupChainId() external view returns (uint256);
function enterTransact(uint256 rollupChainId, address etherRecipient, address to, bytes memory data, uint256 value, uint256 gas, uint256 maxFeePerGas) external payable;
function gasAdmin() external view returns (address);
function passage() external view returns (address);
function perBlockGasLimit() external view returns (uint256);
function perTransactGasLimit() external view returns (uint256);
function transact(address to, bytes memory data, uint256 value, uint256 gas, uint256 maxFeePerGas) external payable;
function transact(uint256 rollupChainId, address to, bytes memory data, uint256 value, uint256 gas, uint256 maxFeePerGas) external payable;
function transactGasUsed(uint256, uint256) external view returns (uint256);
}
…which was generated by the following JSON ABI:
[
{
"type": "constructor",
"inputs": [
{
"name": "_defaultRollupChainId",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "_gasAdmin",
"type": "address",
"internalType": "address"
},
{
"name": "_passage",
"type": "address",
"internalType": "contract Passage"
},
{
"name": "_perBlockGasLimit",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "_perTransactGasLimit",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "configureGas",
"inputs": [
{
"name": "perBlock",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "perTransact",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "defaultRollupChainId",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "enterTransact",
"inputs": [
{
"name": "rollupChainId",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "etherRecipient",
"type": "address",
"internalType": "address"
},
{
"name": "to",
"type": "address",
"internalType": "address"
},
{
"name": "data",
"type": "bytes",
"internalType": "bytes"
},
{
"name": "value",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "gas",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "maxFeePerGas",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "payable"
},
{
"type": "function",
"name": "gasAdmin",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "passage",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "contract Passage"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "perBlockGasLimit",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "perTransactGasLimit",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "transact",
"inputs": [
{
"name": "to",
"type": "address",
"internalType": "address"
},
{
"name": "data",
"type": "bytes",
"internalType": "bytes"
},
{
"name": "value",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "gas",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "maxFeePerGas",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "payable"
},
{
"type": "function",
"name": "transact",
"inputs": [
{
"name": "rollupChainId",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "to",
"type": "address",
"internalType": "address"
},
{
"name": "data",
"type": "bytes",
"internalType": "bytes"
},
{
"name": "value",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "gas",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "maxFeePerGas",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "payable"
},
{
"type": "function",
"name": "transactGasUsed",
"inputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "event",
"name": "GasConfigured",
"inputs": [
{
"name": "perBlock",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "perTransact",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"type": "event",
"name": "Transact",
"inputs": [
{
"name": "rollupChainId",
"type": "uint256",
"indexed": true,
"internalType": "uint256"
},
{
"name": "sender",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "to",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "data",
"type": "bytes",
"indexed": false,
"internalType": "bytes"
},
{
"name": "value",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "gas",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "maxFeePerGas",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"type": "error",
"name": "OnlyGasAdmin",
"inputs": []
},
{
"type": "error",
"name": "PerBlockTransactGasLimit",
"inputs": []
},
{
"type": "error",
"name": "PerTransactGasLimit",
"inputs": []
}
]
Structs§
- Event with signature
GasConfigured(uint256,uint256)and selector0xb6f04ff5ca562fcb4eb8da14a5945aad2022b7bbab3fb76def1c6aefdfb471a1. - Custom error with signature
OnlyGasAdmin()and selector0x55096d77. - Custom error with signature
PerBlockTransactGasLimit()and selector0xf6b10b96. - Custom error with signature
PerTransactGasLimit()and selector0xa247feb8. - Event with signature
Transact(uint256,address,address,bytes,uint256,uint256,uint256)and selector0xcde3b17064c2ae615c0eba2cb3b0a313095890a0ff72076a6242ecdb67d972c2. - A
Transactorinstance. - Function with signature
configureGas(uint256,uint256)and selector0xb3a62743. - Container type for the return parameters of the
configureGas(uint256,uint256)function. - Constructor`.
- Function with signature
defaultRollupChainId()and selector0x95577b72. - Container type for the return parameters of the
defaultRollupChainId()function. - Function with signature
enterTransact(uint256,address,address,bytes,uint256,uint256,uint256)and selector0xbf10d652. - Container type for the return parameters of the
enterTransact(uint256,address,address,bytes,uint256,uint256,uint256)function. - Function with signature
gasAdmin()and selector0xf6c2bd86. - Container type for the return parameters of the
gasAdmin()function. - Function with signature
passage()and selector0x6b216388. - Container type for the return parameters of the
passage()function. - Function with signature
perBlockGasLimit()and selector0x6f61d435. - Container type for the return parameters of the
perBlockGasLimit()function. - Function with signature
perTransactGasLimit()and selector0x3e7260e4. - Container type for the return parameters of the
perTransactGasLimit()function. - Function with signature
transactGasUsed(uint256,uint256)and selector0xda46fefa. - Container type for the return parameters of the
transactGasUsed(uint256,uint256)function. - Function with signature
transact(address,bytes,uint256,uint256,uint256)and selector0x7d2ce1fc. - Container type for the return parameters of the
transact(address,bytes,uint256,uint256,uint256)function. - Function with signature
transact(uint256,address,bytes,uint256,uint256,uint256)and selector0xa5fbe5e4. - Container type for the return parameters of the
transact(uint256,address,bytes,uint256,uint256,uint256)function.
Enums§
- Container for all the
Transactorfunction calls. - Container for all the
Transactorcustom errors. - Container for all the
Transactorevents.
Functions§
- Creates a new wrapper around an on-chain
Transactorcontract instance.