Module 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§

GasConfigured
Event with signature GasConfigured(uint256,uint256) and selector 0xb6f04ff5ca562fcb4eb8da14a5945aad2022b7bbab3fb76def1c6aefdfb471a1.
OnlyGasAdmin
Custom error with signature OnlyGasAdmin() and selector 0x55096d77.
PerBlockTransactGasLimit
Custom error with signature PerBlockTransactGasLimit() and selector 0xf6b10b96.
PerTransactGasLimit
Custom error with signature PerTransactGasLimit() and selector 0xa247feb8.
Transact
Event with signature Transact(uint256,address,address,bytes,uint256,uint256,uint256) and selector 0xcde3b17064c2ae615c0eba2cb3b0a313095890a0ff72076a6242ecdb67d972c2.
TransactorInstance
A Transactor instance.
configureGasCall
Function with signature configureGas(uint256,uint256) and selector 0xb3a62743.
configureGasReturn
Container type for the return parameters of the configureGas(uint256,uint256) function.
constructorCall
Constructor`.
defaultRollupChainIdCall
Function with signature defaultRollupChainId() and selector 0x95577b72.
defaultRollupChainIdReturn
Container type for the return parameters of the defaultRollupChainId() function.
enterTransactCall
Function with signature enterTransact(uint256,address,address,bytes,uint256,uint256,uint256) and selector 0xbf10d652.
enterTransactReturn
Container type for the return parameters of the enterTransact(uint256,address,address,bytes,uint256,uint256,uint256) function.
gasAdminCall
Function with signature gasAdmin() and selector 0xf6c2bd86.
gasAdminReturn
Container type for the return parameters of the gasAdmin() function.
passageCall
Function with signature passage() and selector 0x6b216388.
passageReturn
Container type for the return parameters of the passage() function.
perBlockGasLimitCall
Function with signature perBlockGasLimit() and selector 0x6f61d435.
perBlockGasLimitReturn
Container type for the return parameters of the perBlockGasLimit() function.
perTransactGasLimitCall
Function with signature perTransactGasLimit() and selector 0x3e7260e4.
perTransactGasLimitReturn
Container type for the return parameters of the perTransactGasLimit() function.
transactGasUsedCall
Function with signature transactGasUsed(uint256,uint256) and selector 0xda46fefa.
transactGasUsedReturn
Container type for the return parameters of the transactGasUsed(uint256,uint256) function.
transact_0Call
Function with signature transact(address,bytes,uint256,uint256,uint256) and selector 0x7d2ce1fc.
transact_0Return
Container type for the return parameters of the transact(address,bytes,uint256,uint256,uint256) function.
transact_1Call
Function with signature transact(uint256,address,bytes,uint256,uint256,uint256) and selector 0xa5fbe5e4.
transact_1Return
Container type for the return parameters of the transact(uint256,address,bytes,uint256,uint256,uint256) function.

Enums§

TransactorCalls
Container for all the Transactor function calls.
TransactorErrors
Container for all the Transactor custom errors.
TransactorEvents
Container for all the Transactor events.

Functions§

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