DRepScript
@harmoniclabs/cardano-ledger-ts • Docs
@harmoniclabs/cardano-ledger-ts / DRepScript
Class: DRepScript
Implements
Constructors
new DRepScript()
new DRepScript(
__namedParameters
):DRepScript
Parameters
• __namedParameters: IDRepScript
Returns
Defined in
src/governance/DRep/DRepScript.ts:26
Properties
drepType
readonly
drepType:Script
Implementation of
Defined in
src/governance/DRep/DRepScript.ts:23
hash
readonly
hash:ValidatorHash
Implementation of
Defined in
src/governance/DRep/DRepScript.ts:24
Methods
toCbor()
toCbor():
CborString
Returns
CborString
Defined in
src/governance/DRep/DRepScript.ts:50
toCborObj()
toCborObj():
CborArray
Returns
CborArray
Defined in
src/governance/DRep/DRepScript.ts:54
toData()
toData(
version
?):DataConstr
Parameters
• version?: ToDataVersion
Returns
DataConstr
Implementation of
Defined in
src/governance/DRep/DRepScript.ts:36
toJson()
toJson():
object
Returns
object
drepType
drepType:
string
hash
hash:
string
Defined in
src/governance/DRep/DRepScript.ts:77
fromCborObj()
static
fromCborObj(cbor
):DRepScript
Parameters
• cbor: CborObj