zenith-types 0.15.0

Types for the zenith smart contracts
Documentation
[
  {
    "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": [] }
]