@archwayhq/arch3-proto
Version:
Protobuf definitions and RPC clients for the Archway Network
37 lines (36 loc) • 1.86 kB
TypeScript
import { TxRpc } from "../../../types";
import { MsgSetContractMetadata, MsgSetContractMetadataResponse, MsgWithdrawRewards, MsgWithdrawRewardsResponse, MsgSetFlatFee, MsgSetFlatFeeResponse, MsgUpdateParams, MsgUpdateParamsResponse } from "./tx";
/** Msg defines the module messaging service. */
export interface Msg {
/**
* SetContractMetadata creates or updates an existing contract metadata.
* Method is authorized to the contract owner (admin if no metadata exists).
*/
setContractMetadata(request: MsgSetContractMetadata): Promise<MsgSetContractMetadataResponse>;
/**
* WithdrawRewards performs collected rewards distribution.
* Rewards might be credited from multiple contracts (rewards_address must be
* set in the corresponding contract metadata).
*/
withdrawRewards(request: MsgWithdrawRewards): Promise<MsgWithdrawRewardsResponse>;
/**
* SetFlatFee sets or updates or removes the flat fee to interact with the
* contract Method is authorized to the contract owner.
*/
setFlatFee(request: MsgSetFlatFee): Promise<MsgSetFlatFeeResponse>;
/**
* UpdateParams defines a governance operation for updating the x/rewards
* module parameters. The authority is defined in the keeper.
*
* Since: archway v5 && cosmos-sdk 0.47
*/
updateParams(request: MsgUpdateParams): Promise<MsgUpdateParamsResponse>;
}
export declare class MsgClientImpl implements Msg {
private readonly rpc;
constructor(rpc: TxRpc);
setContractMetadata(request: MsgSetContractMetadata): Promise<MsgSetContractMetadataResponse>;
withdrawRewards(request: MsgWithdrawRewards): Promise<MsgWithdrawRewardsResponse>;
setFlatFee(request: MsgSetFlatFee): Promise<MsgSetFlatFeeResponse>;
updateParams(request: MsgUpdateParams): Promise<MsgUpdateParamsResponse>;
}