Value is an abstract class that is used to instantiate placeholders in the generated IR.

Take the following code snippet as an example of the IR:

mapping(T1 => T2) M V m;

In which T1, T2, M and V are all placeholders. In the solving process, the solver will replace these placeholders with actual values, which are type, type, storage location and visibility respectively.

The kind of the Value.

Hierarchy (View Summary)

Constructors

  • Parameters

    • name: elementary_type_name = "uint256"
    • stateMutability: "payable" | "nonpayable" = "nonpayable"

    Returns ElementaryType

Properties

kind: TypeKind
name: elementary_type_name
stateMutability: "payable" | "nonpayable"

Can be set to payable if the type is address. Otherwise the value is always nonpayable.

typeName: string

Methods