/** * Provides the configuration for staking and rewards * * **Module ID:** `0x1::staking_config` * * @module */ import type * as p from "@movingco/prelude"; /** * Validator set configurations that will be stored with the @aptos_framework account. * * Type name: `0x1::staking_config::StakingConfig` */ export interface IStakingConfig { minimum_stake: p.U64; maximum_stake: p.U64; recurring_lockup_duration_secs: p.U64; allow_validator_set_change: boolean; rewards_rate: p.U64; rewards_rate_denominator: p.U64; voting_power_increase_limit: p.U64; } export { idl } from "./idl.js"; /** The address of the module. */ export declare const ADDRESS: "0x1"; /** The full module name. */ export declare const FULL_NAME: "0x1::staking_config"; /** The name of the module. */ export declare const NAME: "staking_config"; /** Module ID information. */ export declare const id: { readonly ADDRESS: "0x1"; readonly FULL_NAME: "0x1::staking_config"; readonly NAME: "staking_config"; }; export * as errors from "./errors.js"; /** Module error codes. */ export declare const errorCodes: { readonly "1": { readonly name: "EZERO_LOCKUP_DURATION"; readonly doc: "Stake lockup duration cannot be zero"; }; readonly "2": { readonly name: "EZERO_REWARDS_RATE_DENOMINATOR"; readonly doc: "Reward rate denominator cannot be zero"; }; readonly "3": { readonly name: "EINVALID_STAKE_RANGE"; readonly doc: "Specified stake range is invalid. Max must be greater than min"; }; readonly "4": { readonly name: "EINVALID_VOTING_POWER_INCREASE_LIMIT"; readonly doc: "The voting power increase limit percentage must be within (0, 50]"; }; }; /** All module function IDLs. */ export declare const functions: {}; /** All struct types with ability `key`. */ export declare const resources: { readonly StakingConfig: "0x1::staking_config::StakingConfig"; }; /** All struct types. */ export declare const structs: { readonly StakingConfig: "0x1::staking_config::StakingConfig"; }; /** Provides the configuration for staking and rewards */ export declare const moduleDefinition: { readonly errorCodes: { readonly "1": { readonly name: "EZERO_LOCKUP_DURATION"; readonly doc: "Stake lockup duration cannot be zero"; }; readonly "2": { readonly name: "EZERO_REWARDS_RATE_DENOMINATOR"; readonly doc: "Reward rate denominator cannot be zero"; }; readonly "3": { readonly name: "EINVALID_STAKE_RANGE"; readonly doc: "Specified stake range is invalid. Max must be greater than min"; }; readonly "4": { readonly name: "EINVALID_VOTING_POWER_INCREASE_LIMIT"; readonly doc: "The voting power increase limit percentage must be within (0, 50]"; }; }; readonly functions: {}; readonly resources: { readonly StakingConfig: "0x1::staking_config::StakingConfig"; }; readonly structs: { readonly StakingConfig: "0x1::staking_config::StakingConfig"; }; readonly ADDRESS: "0x1"; readonly FULL_NAME: "0x1::staking_config"; readonly NAME: "staking_config"; }; //# sourceMappingURL=index.d.ts.map