Class SeigniorageAllocation

Class representing the seigniorage allocation for a validator and delegator.

Hierarchy

  • SeigniorageAllocation

Constructors

Properties

Methods

Constructors

Properties

The allocation for a delegator.

The allocation for a validator.

Methods

  • Custom deserialization from a JSON.

    The JSON is expected to have one of the following structures:

    • A "Delegator" key with an object containing "delegator_public_key", "validator_public_key", and "amount".
    • A "Validator" key with an object matching ValidatorAllocation.
    • A "DelegatorKind" key with an object matching DelegatorAllocation.

    Returns

    A new SeigniorageAllocation instance.

    Throws

    Error if the JSON is empty, invalid, or does not match any expected structure.

    Parameters

    • json: any

      A JSON.

    Returns SeigniorageAllocation

Generated using TypeDoc