MIRPot class

Represents a pot for Move instance reward.

Mixed in types

Constructors

MIRPot.deserialize(CborIntValue cbor)
Deserializes a MIRPot object from its CBOR representation.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
name String
The name of the pot.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value int
The value associated with the pot.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
serialize() List<int>
Serializes the object to CBOR bytes.
inherited
serializeHex() String
Serializes the object to hexadecimal string.
inherited
toCbor() → CborObject
Converts the object to a CBOR object.
override
toJson() String
Converts the object to a JSON representation.
override
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

fromName(String? name) MIRPot
Retrieves a MIRPot object based on its name.
fromValue(int? value) MIRPot
Retrieves a MIRPot object based on its value.

Constants

reserves → const MIRPot
Represents the reserves pot for MIR.
treasury → const MIRPot
Represents the treasury pot for MIR.
values → const List<MIRPot>
A list containing all possible MIRPot values.