@bandprotocol/bandchain.js
Version:
Library for interacting with BandChain in browser and Node.js environments
37 lines (36 loc) • 1.94 kB
TypeScript
import { Any } from 'google-protobuf/google/protobuf/any_pb';
import { CommunityPoolSpendProposal as CommunityPoolSpendProposalPb } from '../codegen/cosmos/distribution/v1beta1/distribution_pb';
import { TextProposal as TextProposalPb } from '../codegen/cosmos/gov/v1beta1/gov_pb';
import { ParamChange, ParameterChangeProposal as ParameterChangeProposalPb } from '../codegen/cosmos/params/v1beta1/params_pb';
import { CancelSoftwareUpgradeProposal as CancelSoftwareUpgradeProposalPb, Plan, SoftwareUpgradeProposal as SoftwareUpgradeProposalPb } from '../codegen/cosmos/upgrade/v1beta1/upgrade_pb';
import { Coin } from '../codegen/cosmos/base/v1beta1/coin_pb';
import { BaseMsg } from 'message';
export declare class TextProposal extends TextProposalPb implements BaseMsg {
constructor(title: string, description: string);
toAny(): Any;
toJSON(): object;
}
export declare class CommunityPoolSpendProposal extends CommunityPoolSpendProposalPb implements BaseMsg {
constructor(title: string, description: string, recipient: string, amount: Coin[]);
toAny(): Any;
toJSON(): object;
}
export declare class ParameterChangeProposal extends ParameterChangeProposalPb implements BaseMsg {
constructor(title: string, description: string, changes: ParamChange[]);
toAny(): Any;
toJSON(): object;
}
export declare class SoftwareUpgradeProposal extends SoftwareUpgradeProposalPb implements BaseMsg {
plan: Plan;
constructor(title: string, description: string, plan: Plan);
toAny(): Any;
toJSON(): object;
}
export declare class CancelSoftwareUpgradeProposal extends CancelSoftwareUpgradeProposalPb implements BaseMsg {
constructor(title: string, description: string);
toAny(): Any;
toJSON(): object;
}
export declare namespace Proposal {
type Content = TextProposal | CommunityPoolSpendProposal | ParameterChangeProposal | SoftwareUpgradeProposal | CancelSoftwareUpgradeProposal;
}