/**
* 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 type Uint128 = string;
export interface CommunityPoolBalanceResponse {
balance: Uint128;
}
export interface ConfigResponse {
admin: string;
community_pool_addr?: string | null;
core_contract: string;
mine_contract: string;
paused: boolean;
}
export type ExecuteMsg = {
bind_referrer: {
miner: string;
referrer: string;
};
} | {
accrue_reward: {
amount: Uint128;
miner: string;
};
} | {
claim_rewards: {};
} | {
claim_community_pool: {
to: string;
};
} | {
update_config: {
admin?: string | null;
community_pool_addr?: string | null;
core_contract?: string | null;
mine_contract?: string | null;
};
} | {
apply_testing_overrides: {
overrides: TestingOverrides;
};
} | {
reset_state: {};
} | {
pause: {};
} | {
unpause: {};
};
export interface TestingOverrides {
community_pool_addr?: string | null;
community_pool_balance?: Uint128 | null;
paused?: boolean | null;
total_accrued_rewards?: Uint128 | null;
total_claimed_rewards?: Uint128 | null;
}
export interface InstantiateMsg {
admin?: string | null;
community_pool_addr?: string | null;
core_contract: string;
mine_contract: string;
}
export type QueryMsg = {
config: {};
} | {
referrer_of: {
miner: string;
};
} | {
referral_info: {
address: string;
};
} | {
community_pool_balance: {};
} | {
total_pending_rewards: {};
};
export interface ReferralInfoResponse {
address: string;
referral_rewards: Uint128;
referrals_count: number;
}
export interface ReferrerOfResponse {
miner: string;
referrer?: string | null;
}
export interface TotalPendingRewardsResponse {
total_pending_rewards: Uint128;
}