/**
* This file was automatically generated by @cosmwasm/ts-codegen@1.14.0.
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
* and run the @cosmwasm/ts-codegen generate command to regenerate this file.
*/
export interface ConfigResponse {
admin: string;
core_contract: string;
mine_contract: string;
paused: boolean;
token_contract: string;
unbonding_period_seconds: number;
}
export type ExecuteMsg = {
accrue_reward: {
amount: Uint128;
};
} | {
receive: Cw20ReceiveMsg;
} | {
unstake: {
amount: Uint128;
};
} | {
claim_unbonding: {};
} | {
claim_staking_rewards: {};
} | {
update_config: {
admin?: string | null;
core_contract?: string | null;
mine_contract?: string | null;
token_contract?: string | null;
unbonding_period_seconds?: number | null;
};
} | {
apply_testing_overrides: {
overrides: TestingOverrides;
};
} | {
reset_state: {};
} | {
pause: {};
} | {
unpause: {};
};
export type Uint128 = string;
export type Binary = string;
export type Uint256 = string;
export interface Cw20ReceiveMsg {
amount: Uint128;
msg: Binary;
sender: string;
}
export interface TestingOverrides {
paused?: boolean | null;
staking_reserve?: Uint128 | null;
staking_reward_index?: Uint256 | null;
staking_total_staked?: Uint128 | null;
total_accrued_rewards?: Uint128 | null;
total_claimed_rewards?: Uint128 | null;
unbonding_period_seconds?: number | null;
}
export interface InstantiateMsg {
admin?: string | null;
core_contract: string;
mine_contract: string;
token_contract: string;
unbonding_period_seconds?: number | null;
}
export type QueryMsg = {
config: {};
} | {
total_staked: {};
} | {
stake_info: {
address: string;
};
} | {
staking_stats: {};
} | {
total_pending_rewards: {};
};
export interface StakeInfoResponse {
address: string;
claimable_rewards: Uint128;
pending_unbonding: Uint128;
pending_unbonding_until: number;
staked_amount: Uint128;
}
export interface StakingStatsResponse {
reserve: Uint128;
reward_index: string;
total_staked: Uint128;
}
export interface TotalPendingRewardsResponse {
total_pending_rewards: Uint128;
}
export interface TotalStakedResponse {
total_staked: Uint128;
}