ConwayAccountState

scalus.cardano.ledger.ConwayAccountState
See theConwayAccountState companion object
case class ConwayAccountState(balance: Coin, deposit: Coin, stakePoolDelegation: Option[PoolKeyHash], dRepDelegation: Option[DRep])

The state of one registered stake account, as ConwayAccountState of the Haskell ledger (Cardano.Ledger.Conway.State.Account).

Value parameters

balance

the reward balance of the account

dRepDelegation

the DRep the account delegates its vote to

deposit

the deposit paid when the account was registered

stakePoolDelegation

the pool the account delegates its stake to

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def toCbor: Array[Byte]

Encodes the account as the Haskell ledger state does: [balance, deposit, pool / null, drep / null].

Encodes the account as the Haskell ledger state does: [balance, deposit, pool / null, drep / null].

Attributes

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product