Module Errors

Module Errors 

Source
Expand description

Generated by the following Solidity interface…

interface Errors {
    error FailedCall();
    error FailedDeployment();
    error InsufficientBalance(uint256 balance, uint256 needed);
    error MissingPrecompile(address);
}

…which was generated by the following JSON ABI:

[
  {
    "type": "error",
    "name": "FailedCall",
    "inputs": []
  },
  {
    "type": "error",
    "name": "FailedDeployment",
    "inputs": []
  },
  {
    "type": "error",
    "name": "InsufficientBalance",
    "inputs": [
      {
        "name": "balance",
        "type": "uint256",
        "internalType": "uint256"
      },
      {
        "name": "needed",
        "type": "uint256",
        "internalType": "uint256"
      }
    ]
  },
  {
    "type": "error",
    "name": "MissingPrecompile",
    "inputs": [
      {
        "name": "",
        "type": "address",
        "internalType": "address"
      }
    ]
  }
]

Structs§

ErrorsInstance
A Errors instance.
FailedCall
Custom error with signature FailedCall() and selector 0xd6bda275.
FailedDeployment
Custom error with signature FailedDeployment() and selector 0xb06ebf3d.
InsufficientBalance
Custom error with signature InsufficientBalance(uint256,uint256) and selector 0xcf479181.
MissingPrecompile
Custom error with signature MissingPrecompile(address) and selector 0x42b01bce.

Enums§

ErrorsErrors
Container for all the Errors custom errors.

Statics§

BYTECODE
The creation / init bytecode of the contract.
DEPLOYED_BYTECODE
The runtime bytecode of the contract, as deployed on the network.

Functions§

deploy
Deploys this contract using the given provider and constructor arguments, if any.
deploy_builder
Creates a RawCallBuilder for deploying this contract using the given provider and constructor arguments, if any.
new
Creates a new wrapper around an on-chain Errors contract instance.