Hierarchy

Constructors

Properties

_changeCommissionCommand: ChangeCommissionCommand = ...
_claimRewardsCommand: ClaimRewardsCommand = ...
_feeMethod: FeeMethod
_internalMethod: InternalMethod = ...
_moduleConfig: ModuleConfig
_randomMethod: RandomMethod
_registerValidatorCommand: ValidatorRegistrationCommand = ...
_reportMisbehaviorCommand: ReportMisbehaviorCommand = ...
_stakeCommand: StakeCommand = ...
_tokenMethod: TokenMethod
_unlockCommand: UnlockCommand = ...
_updateGeneratorKeyCommand: UpdateGeneratorKeyCommand = ...
_validatorsMethod: ValidatorsMethod
commands: (ValidatorRegistrationCommand | ReportMisbehaviorCommand | UnlockCommand | UpdateGeneratorKeyCommand | StakeCommand | ChangeCommissionCommand | ClaimRewardsCommand)[] = ...
configSchema: {
    $id: string;
    properties: {
        commissionIncreasePeriod: {
            format: string;
            type: string;
        };
        factorSelfStakes: {
            format: string;
            type: string;
        };
        failSafeInactiveWindow: {
            format: string;
            type: string;
        };
        failSafeMissedBlocks: {
            format: string;
            type: string;
        };
        maxBFTWeightCap: {
            format: string;
            maximum: number;
            minimum: number;
            type: string;
        };
        maxCommissionIncreaseRate: {
            format: string;
            type: string;
        };
        maxLengthName: {
            format: string;
            type: string;
        };
        maxNumberPendingUnlocks: {
            format: string;
            type: string;
        };
        maxNumberSentStakes: {
            format: string;
            type: string;
        };
        minWeightStandby: {
            format: string;
            type: string;
        };
        numberActiveValidators: {
            format: string;
            type: string;
        };
        numberStandbyValidators: {
            format: string;
            type: string;
        };
        posTokenID: {
            format: string;
            type: string;
        };
        punishmentWindow: {
            format: string;
            type: string;
        };
        roundLength: {
            format: string;
            type: string;
        };
        useInvalidBLSKey: {
            type: string;
        };
        validatorRegistrationFee: {
            format: string;
            type: string;
        };
    };
    required: string[];
    type: string;
} = configSchema

Type declaration

  • $id: string
  • properties: {
        commissionIncreasePeriod: {
            format: string;
            type: string;
        };
        factorSelfStakes: {
            format: string;
            type: string;
        };
        failSafeInactiveWindow: {
            format: string;
            type: string;
        };
        failSafeMissedBlocks: {
            format: string;
            type: string;
        };
        maxBFTWeightCap: {
            format: string;
            maximum: number;
            minimum: number;
            type: string;
        };
        maxCommissionIncreaseRate: {
            format: string;
            type: string;
        };
        maxLengthName: {
            format: string;
            type: string;
        };
        maxNumberPendingUnlocks: {
            format: string;
            type: string;
        };
        maxNumberSentStakes: {
            format: string;
            type: string;
        };
        minWeightStandby: {
            format: string;
            type: string;
        };
        numberActiveValidators: {
            format: string;
            type: string;
        };
        numberStandbyValidators: {
            format: string;
            type: string;
        };
        posTokenID: {
            format: string;
            type: string;
        };
        punishmentWindow: {
            format: string;
            type: string;
        };
        roundLength: {
            format: string;
            type: string;
        };
        useInvalidBLSKey: {
            type: string;
        };
        validatorRegistrationFee: {
            format: string;
            type: string;
        };
    }
    • commissionIncreasePeriod: {
          format: string;
          type: string;
      }
      • format: string
      • type: string
    • factorSelfStakes: {
          format: string;
          type: string;
      }
      • format: string
      • type: string
    • failSafeInactiveWindow: {
          format: string;
          type: string;
      }
      • format: string
      • type: string
    • failSafeMissedBlocks: {
          format: string;
          type: string;
      }
      • format: string
      • type: string
    • maxBFTWeightCap: {
          format: string;
          maximum: number;
          minimum: number;
          type: string;
      }
      • format: string
      • maximum: number
      • minimum: number
      • type: string
    • maxCommissionIncreaseRate: {
          format: string;
          type: string;
      }
      • format: string
      • type: string
    • maxLengthName: {
          format: string;
          type: string;
      }
      • format: string
      • type: string
    • maxNumberPendingUnlocks: {
          format: string;
          type: string;
      }
      • format: string
      • type: string
    • maxNumberSentStakes: {
          format: string;
          type: string;
      }
      • format: string
      • type: string
    • minWeightStandby: {
          format: string;
          type: string;
      }
      • format: string
      • type: string
    • numberActiveValidators: {
          format: string;
          type: string;
      }
      • format: string
      • type: string
    • numberStandbyValidators: {
          format: string;
          type: string;
      }
      • format: string
      • type: string
    • posTokenID: {
          format: string;
          type: string;
      }
      • format: string
      • type: string
    • punishmentWindow: {
          format: string;
          type: string;
      }
      • format: string
      • type: string
    • roundLength: {
          format: string;
          type: string;
      }
      • format: string
      • type: string
    • useInvalidBLSKey: {
          type: string;
      }
      • type: string
    • validatorRegistrationFee: {
          format: string;
          type: string;
      }
      • format: string
      • type: string
  • required: string[]
  • type: string
endpoint: PoSEndpoint = ...
events: NamedRegistry = ...
method: PoSMethod = ...
offchainStores: NamedRegistry = ...
stores: NamedRegistry = ...

Accessors

Methods

  • Parameters

    • validators: ValidatorWeight[]
    • capValue: number

    Returns ValidatorWeight[]

  • Parameters

    • activeValidators: ValidatorWeight[]

    Returns ValidatorWeight[]

  • Parameters

    • randomMethod: RandomMethod
    • validatorsMethod: ValidatorsMethod
    • tokenMethod: TokenMethod
    • feeMethod: FeeMethod

    Returns void

  • Returns {
        assets: never[];
        commands: {
            name: string;
            params: Schema;
        }[];
        endpoints: never[];
        events: {
            data: Schema;
            name: string;
        }[];
        stores: {
            data: Schema;
            key: string;
        }[];
    }

    • assets: never[]
    • commands: {
          name: string;
          params: Schema;
      }[]
    • endpoints: never[]
    • events: {
          data: Schema;
          name: string;
      }[]
    • stores: {
          data: Schema;
          key: string;
      }[]

Generated using TypeDoc