Skip to main content

DRepScript

@harmoniclabs/cardano-ledger-tsDocs


@harmoniclabs/cardano-ledger-ts / DRepScript

Class: DRepScript

Implements

Constructors

new DRepScript()

new DRepScript(__namedParameters): DRepScript

Parameters

__namedParameters: IDRepScript

Returns

DRepScript

Defined in

src/governance/DRep/DRepScript.ts:26

Properties

drepType

readonly drepType: Script

Implementation of

IDRep.drepType

Defined in

src/governance/DRep/DRepScript.ts:23


hash

readonly hash: ValidatorHash

Implementation of

IDRepScript.hash

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

IDRep.toData

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

Returns

DRepScript

Defined in

src/governance/DRep/DRepScript.ts:62