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§
- Contracts
Registry Instance - A
ContractsRegistry
instance. - anvil_
test Call - Function with signature
anvil_test(bytes32)
and selector0x7fafbbdd
.solidity function anvil_test(bytes32) external view returns (uint256 timestamp, uint256 block_number, int256 index);
- anvil_
test Return - Container type for the return parameters of the
anvil_test(bytes32)
function. - contract
Count Call - Function with signature
contractCount()
and selector0x8736381a
.solidity function contractCount() external view returns (uint256);
- contract
Count Return - Container type for the return parameters of the
contractCount()
function. - contract
Names Call - Function with signature
contractNames(uint256)
and selector0x3ca6bb92
.solidity function contractNames(uint256) external view returns (string memory);
- contract
Names Return - Container type for the return parameters of the
contractNames(uint256)
function. - contracts
Call - Function with signature
contracts(string)
and selector0x8c5b8385
.solidity function contracts(string memory) external view returns (address);
- contracts
Return - Container type for the return parameters of the
contracts(string)
function. - get_
test_ values Call - Function with signature
get_test_values(string,int256)
and selector0x6842109e
.solidity function get_test_values(string memory test_name, int256 index) external view returns (uint256, uint256, int256);
- get_
test_ values Return - Container type for the return parameters of the
get_test_values(string,int256)
function. - register
Contract Call - Function with signature
registerContract(string,address)
and selector0x7f3c2c28
.solidity function registerContract(string memory name, address _contract) external;
- register
Contract Return - Container type for the return parameters of the
registerContract(string,address)
function. - store_
test Call - Function with signature
store_test(string,int256,uint256,uint256)
and selector0xacd5baa2
.solidity function store_test(string memory test_name, int256 index, uint256 timestamp, uint256 block_number) external;
- store_
test Return - Container type for the return parameters of the
store_test(string,int256,uint256,uint256)
function.
Enums§
- Contracts
Registry Calls - 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 givenprovider
and constructor arguments, if any. - new
- Creates a new wrapper around an on-chain
ContractsRegistry
contract instance.