PoolParams class

Represents pool parameters with serialization support.

Mixed in types

Constructors

PoolParams({required Ed25519KeyHash operator, required VRFKeyHash vrfKeyHash, required BigInt pledge, required BigInt cost, required UnitInterval margin, required ADARewardAddress rewardAccount, required List<Ed25519KeyHash> poolOwners, required List<Relay> relays, PoolMetadata? poolMetadata})
Constructs a PoolParams object with the specified parameters.
PoolParams.deserialize(CborListValue cbor)
Deserializes a PoolParams object from its CBOR representation.
factory
PoolParams.fromJson(Map<String, dynamic> json)
factory

Properties

cost BigInt
The cost of the pool.
final
hashCode int
The hash code for this object.
no setterinherited
margin UnitInterval
The margin of the pool.
final
operator Ed25519KeyHash
The operator of the pool.
final
pledge BigInt
The pledge of the pool.
final
poolMetadata PoolMetadata?
The pool metadata.
final
poolOwners List<Ed25519KeyHash>
The list of pool owners.
final
relays List<Relay>
The list of relays.
final
rewardAccount ADARewardAddress
The reward account of the pool.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
vrfKeyHash VRFKeyHash
The VRF key hash of the pool.
final

Methods

copyWith({Ed25519KeyHash? operator, VRFKeyHash? vrfKeyHash, BigInt? pledge, BigInt? cost, UnitInterval? margin, ADARewardAddress? rewardAccount, List<Ed25519KeyHash>? poolOwners, List<Relay>? relays, PoolMetadata? poolMetadata}) PoolParams
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() Map<String, dynamic>
Converts the object to a JSON representation.
override
toString() String
A string representation of this object.
inherited

Operators

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