ProtocolParamUpdate.ts
ProtocolParamUpdate overview
Table of contents
- utils
- CDDLSchema
- CDDLSchema (type alias)
- DRepVotingThresholds (class)
- ExUnitPrices (class)
- ExUnitPricesCDDL
- ExUnits (class)
- ExUnitsCDDL
- FromCBORBytes
- FromCBORHex
- FromCDDL
- PoolVotingThresholds (class)
- PoolVotingThresholdsCDDL
- ProtocolParamUpdate (class)
- arbitrary
- fromCBOR
- fromCBORBytes
- fromCBORHex
- toCBOR
- toCBORBytes
- toCBORHex
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.TypeDRepVotingThresholds (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](): numberExUnitPrices (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](): numberExUnitPricesCDDL
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](): numberExUnitsCDDL
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](): numberPoolVotingThresholdsCDDL
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 ProtocolParamUpdatetoJSON (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](): numberarbitrary
Signature
export declare const arbitrary: FastCheck.Arbitrary<ProtocolParamUpdate>fromCBOR
Signature
export declare const fromCBOR: (bytes: Uint8Array, options?: CBOR.CodecOptions) => ProtocolParamUpdatefromCBORBytes
Signature
export declare const fromCBORBytes: (bytes: Uint8Array, options?: CBOR.CodecOptions) => ProtocolParamUpdatefromCBORHex
Signature
export declare const fromCBORHex: (hex: string, options?: CBOR.CodecOptions) => ProtocolParamUpdatetoCBOR
Signature
export declare const toCBOR: (data: ProtocolParamUpdate, options?: CBOR.CodecOptions) => anytoCBORBytes
Signature
export declare const toCBORBytes: (data: ProtocolParamUpdate, options?: CBOR.CodecOptions) => anytoCBORHex
Signature
export declare const toCBORHex: (data: ProtocolParamUpdate, options?: CBOR.CodecOptions) => string