NetworkId

org.sigilaris.core.application.transactions.NetworkId$package.NetworkId

Companion for NetworkId providing constructors and an extension method for unwrapping.

Attributes

Source
NetworkId.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
NetworkId.type

Members list

Value members

Concrete methods

inline def apply(value: BigNat): NetworkId

Construct a NetworkId from a validated BigNat.

Construct a NetworkId from a validated BigNat.

Attributes

Source
NetworkId.scala
inline def fromBigNat(value: BigNat): NetworkId

Alias for apply to emphasize validated input.

Alias for apply to emphasize validated input.

Attributes

Source
NetworkId.scala
inline def unsafeFromLong(value: Long): NetworkId

Unsafe helper for tests and constants.

Unsafe helper for tests and constants.

Only intended for fixtures and hard coded examples where the literal value is already guaranteed to be non-negative.

Attributes

Source
NetworkId.scala

Givens

Inherited givens

Byte decoder derived from the representation's decoder.

Byte decoder derived from the representation's decoder.

Attributes

Inherited from:
OpaqueValueCompanion
Source
OpaqueValueCompanion.scala

Byte encoder derived from the representation's encoder.

Byte encoder derived from the representation's encoder.

Attributes

Inherited from:
OpaqueValueCompanion
Source
OpaqueValueCompanion.scala
given opaqueEq(using eqRepr: Eq[BigNat]): Eq[NetworkId]

Cats Eq instance derived from the representation's Eq.

Cats Eq instance derived from the representation's Eq.

Attributes

Inherited from:
OpaqueValueCompanion
Source
OpaqueValueCompanion.scala

JSON decoder derived from the representation's decoder.

JSON decoder derived from the representation's decoder.

Attributes

Inherited from:
OpaqueValueCompanion
Source
OpaqueValueCompanion.scala

JSON encoder derived from the representation's encoder.

JSON encoder derived from the representation's encoder.

Attributes

Inherited from:
OpaqueValueCompanion
Source
OpaqueValueCompanion.scala

Extensions

Extensions

extension (id: NetworkId)
inline def toBigNat: BigNat

Access the underlying org.sigilaris.core.datatype.BigNat value.

Access the underlying org.sigilaris.core.datatype.BigNat value.

Use this sparingly when integrating with external systems that expect the raw representation.

Attributes

Source
NetworkId.scala

Inherited extensions

extension (value: NetworkId)
def repr: BigNat

Exposes the underlying representation of the opaque value.

Exposes the underlying representation of the opaque value.

Attributes

Returns

the representation value

Inherited from:
OpaqueValueCompanion
Source
OpaqueValueCompanion.scala