Evolution SDK

ProtocolParamUpdate.ts

ProtocolParamUpdate overview


Table of contents


utils

CDDLSchema

ProtocolParamUpdate CDDL record with optional fields keyed by indexes. Mirrors Conway CDDL protocol_param_update.

Signature

export declare const CDDLSchema: Schema.MapFromSelf<
  typeof Schema.BigIntFromSelf,
  Schema.Schema<CBOR.CBOR, CBOR.CBOR, never>
>

CDDLSchema (type alias)

Signature

export type CDDLSchema = typeof CDDLSchema.Type

DRepVotingThresholds (class)

drep_voting_thresholds (domain) = [10 unit_intervals]

Signature

export declare class DRepVotingThresholds

[Equal.symbol] (method)

Signature

[Equal.symbol](that: unknown): boolean

[Hash.symbol] (method)

Signature

[Hash.symbol](): number

ExUnitPrices (class)

ex_unit_prices (domain) = [mem_price : NonnegativeInterval, step_price : NonnegativeInterval]

Signature

export declare class ExUnitPrices

[Equal.symbol] (method)

Signature

[Equal.symbol](that: unknown): boolean

[Hash.symbol] (method)

Signature

[Hash.symbol](): number

ExUnitPricesCDDL

Signature

export declare const ExUnitPricesCDDL: Schema.Tuple2<
  typeof NonnegativeInterval.NonnegativeInterval,
  typeof NonnegativeInterval.NonnegativeInterval
>

ExUnits (class)

ex_units = [mem : uint, steps : uint]

Signature

export declare class ExUnits

[Equal.symbol] (method)

Signature

[Equal.symbol](that: unknown): boolean

[Hash.symbol] (method)

Signature

[Hash.symbol](): number

ExUnitsCDDL

Signature

export declare const ExUnitsCDDL: Schema.Tuple2<
  Schema.refine<bigint, typeof Schema.BigInt>,
  Schema.refine<bigint, typeof Schema.BigInt>
>

FromCBORBytes

Signature

export declare const FromCBORBytes: (
  options?: CBOR.CodecOptions
) => Schema.transform<
  Schema.transformOrFail<
    typeof Schema.Uint8ArrayFromSelf,
    Schema.declare<CBOR.CBOR, CBOR.CBOR, readonly [], never>,
    never
  >,
  Schema.transformOrFail<
    Schema.MapFromSelf<typeof Schema.BigIntFromSelf, Schema.Schema<CBOR.CBOR, CBOR.CBOR, never>>,
    Schema.SchemaClass<ProtocolParamUpdate, ProtocolParamUpdate, never>,
    never
  >
>

FromCBORHex

Signature

export declare const FromCBORHex: (
  options?: CBOR.CodecOptions
) => Schema.transform<
  Schema.Schema<Uint8Array, string, never>,
  Schema.transform<
    Schema.transformOrFail<
      typeof Schema.Uint8ArrayFromSelf,
      Schema.declare<CBOR.CBOR, CBOR.CBOR, readonly [], never>,
      never
    >,
    Schema.transformOrFail<
      Schema.MapFromSelf<typeof Schema.BigIntFromSelf, Schema.Schema<CBOR.CBOR, CBOR.CBOR, never>>,
      Schema.SchemaClass<ProtocolParamUpdate, ProtocolParamUpdate, never>,
      never
    >
  >
>

FromCDDL

Signature

export declare const FromCDDL: Schema.transformOrFail<
  Schema.MapFromSelf<typeof Schema.BigIntFromSelf, Schema.Schema<CBOR.CBOR, CBOR.CBOR, never>>,
  Schema.SchemaClass<ProtocolParamUpdate, ProtocolParamUpdate, never>,
  never
>

PoolVotingThresholds (class)

pool_voting_thresholds (domain) = [u,u,u,u,u] (5 unit_intervals)

Signature

export declare class PoolVotingThresholds

[Equal.symbol] (method)

Signature

[Equal.symbol](that: unknown): boolean

[Hash.symbol] (method)

Signature

[Hash.symbol](): number

PoolVotingThresholdsCDDL

Signature

export declare const PoolVotingThresholdsCDDL: Schema.Tuple<
  [
    typeof UnitInterval.UnitInterval,
    typeof UnitInterval.UnitInterval,
    typeof UnitInterval.UnitInterval,
    typeof UnitInterval.UnitInterval,
    typeof UnitInterval.UnitInterval
  ]
>

ProtocolParamUpdate (class)

Convenience domain class mirroring the same structure.

Signature

export declare class ProtocolParamUpdate

toJSON (method)

Signature

toJSON()

toString (method)

Signature

toString(): string

[Inspectable.NodeInspectSymbol] (method)

Signature

[Inspectable.NodeInspectSymbol](): unknown

[Equal.symbol] (method)

Signature

[Equal.symbol](that: unknown): boolean

[Hash.symbol] (method)

Signature

[Hash.symbol](): number

arbitrary

Signature

export declare const arbitrary: FastCheck.Arbitrary<ProtocolParamUpdate>

fromCBOR

Signature

export declare const fromCBOR: (bytes: Uint8Array, options?: CBOR.CodecOptions) => ProtocolParamUpdate

fromCBORBytes

Signature

export declare const fromCBORBytes: (bytes: Uint8Array, options?: CBOR.CodecOptions) => ProtocolParamUpdate

fromCBORHex

Signature

export declare const fromCBORHex: (hex: string, options?: CBOR.CodecOptions) => ProtocolParamUpdate

toCBOR

Signature

export declare const toCBOR: (data: ProtocolParamUpdate, options?: CBOR.CodecOptions) => any

toCBORBytes

Signature

export declare const toCBORBytes: (data: ProtocolParamUpdate, options?: CBOR.CodecOptions) => any

toCBORHex

Signature

export declare const toCBORHex: (data: ProtocolParamUpdate, options?: CBOR.CodecOptions) => string