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§

Enums§

Functions§

  • Creates a new wrapper around an on-chain Transactor contract instance.