Module ContractsRegistry

Source
Expand description

Generated by the following Solidity interface…

interface ContractsRegistry {
    function anvil_test(bytes32) external view returns (uint256 timestamp, uint256 block_number, int256 index);
    function contractCount() external view returns (uint256);
    function contractNames(uint256) external view returns (string memory);
    function contracts(string memory) external view returns (address);
    function get_test_values(string memory test_name, int256 index) external view returns (uint256, uint256, int256);
    function registerContract(string memory name, address _contract) external;
    function store_test(string memory test_name, int256 index, uint256 timestamp, uint256 block_number) external;
}

…which was generated by the following JSON ABI:

[
  {
    "type": "function",
    "name": "anvil_test",
    "inputs": [
      {
        "name": "",
        "type": "bytes32",
        "internalType": "bytes32"
      }
    ],
    "outputs": [
      {
        "name": "timestamp",
        "type": "uint256",
        "internalType": "uint256"
      },
      {
        "name": "block_number",
        "type": "uint256",
        "internalType": "uint256"
      },
      {
        "name": "index",
        "type": "int256",
        "internalType": "int256"
      }
    ],
    "stateMutability": "view"
  },
  {
    "type": "function",
    "name": "contractCount",
    "inputs": [],
    "outputs": [
      {
        "name": "",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "stateMutability": "view"
  },
  {
    "type": "function",
    "name": "contractNames",
    "inputs": [
      {
        "name": "",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "outputs": [
      {
        "name": "",
        "type": "string",
        "internalType": "string"
      }
    ],
    "stateMutability": "view"
  },
  {
    "type": "function",
    "name": "contracts",
    "inputs": [
      {
        "name": "",
        "type": "string",
        "internalType": "string"
      }
    ],
    "outputs": [
      {
        "name": "",
        "type": "address",
        "internalType": "address"
      }
    ],
    "stateMutability": "view"
  },
  {
    "type": "function",
    "name": "get_test_values",
    "inputs": [
      {
        "name": "test_name",
        "type": "string",
        "internalType": "string"
      },
      {
        "name": "index",
        "type": "int256",
        "internalType": "int256"
      }
    ],
    "outputs": [
      {
        "name": "",
        "type": "uint256",
        "internalType": "uint256"
      },
      {
        "name": "",
        "type": "uint256",
        "internalType": "uint256"
      },
      {
        "name": "",
        "type": "int256",
        "internalType": "int256"
      }
    ],
    "stateMutability": "view"
  },
  {
    "type": "function",
    "name": "registerContract",
    "inputs": [
      {
        "name": "name",
        "type": "string",
        "internalType": "string"
      },
      {
        "name": "_contract",
        "type": "address",
        "internalType": "address"
      }
    ],
    "outputs": [],
    "stateMutability": "nonpayable"
  },
  {
    "type": "function",
    "name": "store_test",
    "inputs": [
      {
        "name": "test_name",
        "type": "string",
        "internalType": "string"
      },
      {
        "name": "index",
        "type": "int256",
        "internalType": "int256"
      },
      {
        "name": "timestamp",
        "type": "uint256",
        "internalType": "uint256"
      },
      {
        "name": "block_number",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "outputs": [],
    "stateMutability": "nonpayable"
  }
]

Structs§

ContractsRegistryInstance
A ContractsRegistry instance.
anvil_testCall
Function with signature anvil_test(bytes32) and selector 0x7fafbbdd. solidity function anvil_test(bytes32) external view returns (uint256 timestamp, uint256 block_number, int256 index);
anvil_testReturn
Container type for the return parameters of the anvil_test(bytes32) function.
contractCountCall
Function with signature contractCount() and selector 0x8736381a. solidity function contractCount() external view returns (uint256);
contractCountReturn
Container type for the return parameters of the contractCount() function.
contractNamesCall
Function with signature contractNames(uint256) and selector 0x3ca6bb92. solidity function contractNames(uint256) external view returns (string memory);
contractNamesReturn
Container type for the return parameters of the contractNames(uint256) function.
contractsCall
Function with signature contracts(string) and selector 0x8c5b8385. solidity function contracts(string memory) external view returns (address);
contractsReturn
Container type for the return parameters of the contracts(string) function.
get_test_valuesCall
Function with signature get_test_values(string,int256) and selector 0x6842109e. solidity function get_test_values(string memory test_name, int256 index) external view returns (uint256, uint256, int256);
get_test_valuesReturn
Container type for the return parameters of the get_test_values(string,int256) function.
registerContractCall
Function with signature registerContract(string,address) and selector 0x7f3c2c28. solidity function registerContract(string memory name, address _contract) external;
registerContractReturn
Container type for the return parameters of the registerContract(string,address) function.
store_testCall
Function with signature store_test(string,int256,uint256,uint256) and selector 0xacd5baa2. solidity function store_test(string memory test_name, int256 index, uint256 timestamp, uint256 block_number) external;
store_testReturn
Container type for the return parameters of the store_test(string,int256,uint256,uint256) function.

Enums§

ContractsRegistryCalls
Container for all the ContractsRegistry function calls.

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 ContractsRegistry contract instance.