Module FastTypes

Source
Expand description

Generated by the following Solidity interface…

interface FastTypes {
    struct Constant {
        bytes32 key;
    }
    struct Counter {
        bytes32 key;
    }
    struct Owned {
        bytes32 key;
        address owner;
    }
    struct Set {
        bytes32 key;
    }

    function get(Owned memory o) external view returns (bytes32);
    function requireExist(Set memory s, bytes32 value) external view;
    function requireGet(Constant memory c) external view returns (bytes32);
    function requireGte(Counter memory c, uint256 value) external view;
}

…which was generated by the following JSON ABI:

[
  {
    "type": "function",
    "name": "get",
    "inputs": [
      {
        "name": "o",
        "type": "tuple",
        "internalType": "struct FastTypes.Owned",
        "components": [
          {
            "name": "key",
            "type": "bytes32",
            "internalType": "bytes32"
          },
          {
            "name": "owner",
            "type": "address",
            "internalType": "address"
          }
        ]
      }
    ],
    "outputs": [
      {
        "name": "",
        "type": "bytes32",
        "internalType": "bytes32"
      }
    ],
    "stateMutability": "view"
  },
  {
    "type": "function",
    "name": "requireExist",
    "inputs": [
      {
        "name": "s",
        "type": "tuple",
        "internalType": "struct FastTypes.Set",
        "components": [
          {
            "name": "key",
            "type": "bytes32",
            "internalType": "bytes32"
          }
        ]
      },
      {
        "name": "value",
        "type": "bytes32",
        "internalType": "bytes32"
      }
    ],
    "outputs": [],
    "stateMutability": "view"
  },
  {
    "type": "function",
    "name": "requireGet",
    "inputs": [
      {
        "name": "c",
        "type": "tuple",
        "internalType": "struct FastTypes.Constant",
        "components": [
          {
            "name": "key",
            "type": "bytes32",
            "internalType": "bytes32"
          }
        ]
      }
    ],
    "outputs": [
      {
        "name": "",
        "type": "bytes32",
        "internalType": "bytes32"
      }
    ],
    "stateMutability": "view"
  },
  {
    "type": "function",
    "name": "requireGte",
    "inputs": [
      {
        "name": "c",
        "type": "tuple",
        "internalType": "struct FastTypes.Counter",
        "components": [
          {
            "name": "key",
            "type": "bytes32",
            "internalType": "bytes32"
          }
        ]
      },
      {
        "name": "value",
        "type": "uint256",
        "internalType": "uint256"
      }
    ],
    "outputs": [],
    "stateMutability": "view"
  }
]

Structs§

Constant
Counter
FastTypesInstance
A FastTypes instance.
Owned
Set
getCall
Function with signature get((bytes32,address)) and selector 0xe2959982.
getReturn
Container type for the return parameters of the get((bytes32,address)) function.
requireExistCall
Function with signature requireExist((bytes32),bytes32) and selector 0xf19eadcc.
requireExistReturn
Container type for the return parameters of the requireExist((bytes32),bytes32) function.
requireGetCall
Function with signature requireGet((bytes32)) and selector 0xfdd4a73d.
requireGetReturn
Container type for the return parameters of the requireGet((bytes32)) function.
requireGteCall
Function with signature requireGte((bytes32),uint256) and selector 0x57ff741c.
requireGteReturn
Container type for the return parameters of the requireGte((bytes32),uint256) function.

Enums§

FastTypesCalls
Container for all the FastTypes 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 FastTypes contract instance.