@bandprotocol/bandchain.js
Version:
TypeScript library for Cosmos SDK and BandChain
328 lines (327 loc) • 14.3 kB
TypeScript
import { ProposalExecutorResult } from "./types";
import { BinaryReader, BinaryWriter } from "../../../binary";
/** EventCreateGroup is an event emitted when a group is created. */
export interface EventCreateGroup {
/** group_id is the unique ID of the group. */
groupId: bigint;
}
export interface EventCreateGroupProtoMsg {
typeUrl: "/cosmos.group.v1.EventCreateGroup";
value: Uint8Array;
}
/** EventCreateGroup is an event emitted when a group is created. */
export interface EventCreateGroupAmino {
/** group_id is the unique ID of the group. */
group_id?: string;
}
export interface EventCreateGroupAminoMsg {
type: "cosmos-sdk/EventCreateGroup";
value: EventCreateGroupAmino;
}
/** EventCreateGroup is an event emitted when a group is created. */
export interface EventCreateGroupSDKType {
group_id: bigint;
}
/** EventUpdateGroup is an event emitted when a group is updated. */
export interface EventUpdateGroup {
/** group_id is the unique ID of the group. */
groupId: bigint;
}
export interface EventUpdateGroupProtoMsg {
typeUrl: "/cosmos.group.v1.EventUpdateGroup";
value: Uint8Array;
}
/** EventUpdateGroup is an event emitted when a group is updated. */
export interface EventUpdateGroupAmino {
/** group_id is the unique ID of the group. */
group_id?: string;
}
export interface EventUpdateGroupAminoMsg {
type: "cosmos-sdk/EventUpdateGroup";
value: EventUpdateGroupAmino;
}
/** EventUpdateGroup is an event emitted when a group is updated. */
export interface EventUpdateGroupSDKType {
group_id: bigint;
}
/** EventCreateGroupPolicy is an event emitted when a group policy is created. */
export interface EventCreateGroupPolicy {
/** address is the account address of the group policy. */
address: string;
}
export interface EventCreateGroupPolicyProtoMsg {
typeUrl: "/cosmos.group.v1.EventCreateGroupPolicy";
value: Uint8Array;
}
/** EventCreateGroupPolicy is an event emitted when a group policy is created. */
export interface EventCreateGroupPolicyAmino {
/** address is the account address of the group policy. */
address?: string;
}
export interface EventCreateGroupPolicyAminoMsg {
type: "cosmos-sdk/EventCreateGroupPolicy";
value: EventCreateGroupPolicyAmino;
}
/** EventCreateGroupPolicy is an event emitted when a group policy is created. */
export interface EventCreateGroupPolicySDKType {
address: string;
}
/** EventUpdateGroupPolicy is an event emitted when a group policy is updated. */
export interface EventUpdateGroupPolicy {
/** address is the account address of the group policy. */
address: string;
}
export interface EventUpdateGroupPolicyProtoMsg {
typeUrl: "/cosmos.group.v1.EventUpdateGroupPolicy";
value: Uint8Array;
}
/** EventUpdateGroupPolicy is an event emitted when a group policy is updated. */
export interface EventUpdateGroupPolicyAmino {
/** address is the account address of the group policy. */
address?: string;
}
export interface EventUpdateGroupPolicyAminoMsg {
type: "cosmos-sdk/EventUpdateGroupPolicy";
value: EventUpdateGroupPolicyAmino;
}
/** EventUpdateGroupPolicy is an event emitted when a group policy is updated. */
export interface EventUpdateGroupPolicySDKType {
address: string;
}
/** EventSubmitProposal is an event emitted when a proposal is created. */
export interface EventSubmitProposal {
/** proposal_id is the unique ID of the proposal. */
proposalId: bigint;
}
export interface EventSubmitProposalProtoMsg {
typeUrl: "/cosmos.group.v1.EventSubmitProposal";
value: Uint8Array;
}
/** EventSubmitProposal is an event emitted when a proposal is created. */
export interface EventSubmitProposalAmino {
/** proposal_id is the unique ID of the proposal. */
proposal_id?: string;
}
export interface EventSubmitProposalAminoMsg {
type: "cosmos-sdk/EventSubmitProposal";
value: EventSubmitProposalAmino;
}
/** EventSubmitProposal is an event emitted when a proposal is created. */
export interface EventSubmitProposalSDKType {
proposal_id: bigint;
}
/** EventWithdrawProposal is an event emitted when a proposal is withdrawn. */
export interface EventWithdrawProposal {
/** proposal_id is the unique ID of the proposal. */
proposalId: bigint;
}
export interface EventWithdrawProposalProtoMsg {
typeUrl: "/cosmos.group.v1.EventWithdrawProposal";
value: Uint8Array;
}
/** EventWithdrawProposal is an event emitted when a proposal is withdrawn. */
export interface EventWithdrawProposalAmino {
/** proposal_id is the unique ID of the proposal. */
proposal_id?: string;
}
export interface EventWithdrawProposalAminoMsg {
type: "cosmos-sdk/EventWithdrawProposal";
value: EventWithdrawProposalAmino;
}
/** EventWithdrawProposal is an event emitted when a proposal is withdrawn. */
export interface EventWithdrawProposalSDKType {
proposal_id: bigint;
}
/** EventVote is an event emitted when a voter votes on a proposal. */
export interface EventVote {
/** proposal_id is the unique ID of the proposal. */
proposalId: bigint;
}
export interface EventVoteProtoMsg {
typeUrl: "/cosmos.group.v1.EventVote";
value: Uint8Array;
}
/** EventVote is an event emitted when a voter votes on a proposal. */
export interface EventVoteAmino {
/** proposal_id is the unique ID of the proposal. */
proposal_id?: string;
}
export interface EventVoteAminoMsg {
type: "cosmos-sdk/EventVote";
value: EventVoteAmino;
}
/** EventVote is an event emitted when a voter votes on a proposal. */
export interface EventVoteSDKType {
proposal_id: bigint;
}
/** EventExec is an event emitted when a proposal is executed. */
export interface EventExec {
/** proposal_id is the unique ID of the proposal. */
proposalId: bigint;
/** result is the proposal execution result. */
result: ProposalExecutorResult;
}
export interface EventExecProtoMsg {
typeUrl: "/cosmos.group.v1.EventExec";
value: Uint8Array;
}
/** EventExec is an event emitted when a proposal is executed. */
export interface EventExecAmino {
/** proposal_id is the unique ID of the proposal. */
proposal_id?: string;
/** result is the proposal execution result. */
result?: ProposalExecutorResult;
}
export interface EventExecAminoMsg {
type: "cosmos-sdk/EventExec";
value: EventExecAmino;
}
/** EventExec is an event emitted when a proposal is executed. */
export interface EventExecSDKType {
proposal_id: bigint;
result: ProposalExecutorResult;
}
/** EventLeaveGroup is an event emitted when group member leaves the group. */
export interface EventLeaveGroup {
/** group_id is the unique ID of the group. */
groupId: bigint;
/** address is the account address of the group member. */
address: string;
}
export interface EventLeaveGroupProtoMsg {
typeUrl: "/cosmos.group.v1.EventLeaveGroup";
value: Uint8Array;
}
/** EventLeaveGroup is an event emitted when group member leaves the group. */
export interface EventLeaveGroupAmino {
/** group_id is the unique ID of the group. */
group_id?: string;
/** address is the account address of the group member. */
address?: string;
}
export interface EventLeaveGroupAminoMsg {
type: "cosmos-sdk/EventLeaveGroup";
value: EventLeaveGroupAmino;
}
/** EventLeaveGroup is an event emitted when group member leaves the group. */
export interface EventLeaveGroupSDKType {
group_id: bigint;
address: string;
}
export declare const EventCreateGroup: {
typeUrl: string;
encode(message: EventCreateGroup, writer?: BinaryWriter): BinaryWriter;
decode(input: BinaryReader | Uint8Array, length?: number): EventCreateGroup;
fromPartial(object: Partial<EventCreateGroup>): EventCreateGroup;
fromAmino(object: EventCreateGroupAmino): EventCreateGroup;
toAmino(message: EventCreateGroup): EventCreateGroupAmino;
fromAminoMsg(object: EventCreateGroupAminoMsg): EventCreateGroup;
toAminoMsg(message: EventCreateGroup): EventCreateGroupAminoMsg;
fromProtoMsg(message: EventCreateGroupProtoMsg): EventCreateGroup;
toProto(message: EventCreateGroup): Uint8Array;
toProtoMsg(message: EventCreateGroup): EventCreateGroupProtoMsg;
};
export declare const EventUpdateGroup: {
typeUrl: string;
encode(message: EventUpdateGroup, writer?: BinaryWriter): BinaryWriter;
decode(input: BinaryReader | Uint8Array, length?: number): EventUpdateGroup;
fromPartial(object: Partial<EventUpdateGroup>): EventUpdateGroup;
fromAmino(object: EventUpdateGroupAmino): EventUpdateGroup;
toAmino(message: EventUpdateGroup): EventUpdateGroupAmino;
fromAminoMsg(object: EventUpdateGroupAminoMsg): EventUpdateGroup;
toAminoMsg(message: EventUpdateGroup): EventUpdateGroupAminoMsg;
fromProtoMsg(message: EventUpdateGroupProtoMsg): EventUpdateGroup;
toProto(message: EventUpdateGroup): Uint8Array;
toProtoMsg(message: EventUpdateGroup): EventUpdateGroupProtoMsg;
};
export declare const EventCreateGroupPolicy: {
typeUrl: string;
encode(message: EventCreateGroupPolicy, writer?: BinaryWriter): BinaryWriter;
decode(input: BinaryReader | Uint8Array, length?: number): EventCreateGroupPolicy;
fromPartial(object: Partial<EventCreateGroupPolicy>): EventCreateGroupPolicy;
fromAmino(object: EventCreateGroupPolicyAmino): EventCreateGroupPolicy;
toAmino(message: EventCreateGroupPolicy): EventCreateGroupPolicyAmino;
fromAminoMsg(object: EventCreateGroupPolicyAminoMsg): EventCreateGroupPolicy;
toAminoMsg(message: EventCreateGroupPolicy): EventCreateGroupPolicyAminoMsg;
fromProtoMsg(message: EventCreateGroupPolicyProtoMsg): EventCreateGroupPolicy;
toProto(message: EventCreateGroupPolicy): Uint8Array;
toProtoMsg(message: EventCreateGroupPolicy): EventCreateGroupPolicyProtoMsg;
};
export declare const EventUpdateGroupPolicy: {
typeUrl: string;
encode(message: EventUpdateGroupPolicy, writer?: BinaryWriter): BinaryWriter;
decode(input: BinaryReader | Uint8Array, length?: number): EventUpdateGroupPolicy;
fromPartial(object: Partial<EventUpdateGroupPolicy>): EventUpdateGroupPolicy;
fromAmino(object: EventUpdateGroupPolicyAmino): EventUpdateGroupPolicy;
toAmino(message: EventUpdateGroupPolicy): EventUpdateGroupPolicyAmino;
fromAminoMsg(object: EventUpdateGroupPolicyAminoMsg): EventUpdateGroupPolicy;
toAminoMsg(message: EventUpdateGroupPolicy): EventUpdateGroupPolicyAminoMsg;
fromProtoMsg(message: EventUpdateGroupPolicyProtoMsg): EventUpdateGroupPolicy;
toProto(message: EventUpdateGroupPolicy): Uint8Array;
toProtoMsg(message: EventUpdateGroupPolicy): EventUpdateGroupPolicyProtoMsg;
};
export declare const EventSubmitProposal: {
typeUrl: string;
encode(message: EventSubmitProposal, writer?: BinaryWriter): BinaryWriter;
decode(input: BinaryReader | Uint8Array, length?: number): EventSubmitProposal;
fromPartial(object: Partial<EventSubmitProposal>): EventSubmitProposal;
fromAmino(object: EventSubmitProposalAmino): EventSubmitProposal;
toAmino(message: EventSubmitProposal): EventSubmitProposalAmino;
fromAminoMsg(object: EventSubmitProposalAminoMsg): EventSubmitProposal;
toAminoMsg(message: EventSubmitProposal): EventSubmitProposalAminoMsg;
fromProtoMsg(message: EventSubmitProposalProtoMsg): EventSubmitProposal;
toProto(message: EventSubmitProposal): Uint8Array;
toProtoMsg(message: EventSubmitProposal): EventSubmitProposalProtoMsg;
};
export declare const EventWithdrawProposal: {
typeUrl: string;
encode(message: EventWithdrawProposal, writer?: BinaryWriter): BinaryWriter;
decode(input: BinaryReader | Uint8Array, length?: number): EventWithdrawProposal;
fromPartial(object: Partial<EventWithdrawProposal>): EventWithdrawProposal;
fromAmino(object: EventWithdrawProposalAmino): EventWithdrawProposal;
toAmino(message: EventWithdrawProposal): EventWithdrawProposalAmino;
fromAminoMsg(object: EventWithdrawProposalAminoMsg): EventWithdrawProposal;
toAminoMsg(message: EventWithdrawProposal): EventWithdrawProposalAminoMsg;
fromProtoMsg(message: EventWithdrawProposalProtoMsg): EventWithdrawProposal;
toProto(message: EventWithdrawProposal): Uint8Array;
toProtoMsg(message: EventWithdrawProposal): EventWithdrawProposalProtoMsg;
};
export declare const EventVote: {
typeUrl: string;
encode(message: EventVote, writer?: BinaryWriter): BinaryWriter;
decode(input: BinaryReader | Uint8Array, length?: number): EventVote;
fromPartial(object: Partial<EventVote>): EventVote;
fromAmino(object: EventVoteAmino): EventVote;
toAmino(message: EventVote): EventVoteAmino;
fromAminoMsg(object: EventVoteAminoMsg): EventVote;
toAminoMsg(message: EventVote): EventVoteAminoMsg;
fromProtoMsg(message: EventVoteProtoMsg): EventVote;
toProto(message: EventVote): Uint8Array;
toProtoMsg(message: EventVote): EventVoteProtoMsg;
};
export declare const EventExec: {
typeUrl: string;
encode(message: EventExec, writer?: BinaryWriter): BinaryWriter;
decode(input: BinaryReader | Uint8Array, length?: number): EventExec;
fromPartial(object: Partial<EventExec>): EventExec;
fromAmino(object: EventExecAmino): EventExec;
toAmino(message: EventExec): EventExecAmino;
fromAminoMsg(object: EventExecAminoMsg): EventExec;
toAminoMsg(message: EventExec): EventExecAminoMsg;
fromProtoMsg(message: EventExecProtoMsg): EventExec;
toProto(message: EventExec): Uint8Array;
toProtoMsg(message: EventExec): EventExecProtoMsg;
};
export declare const EventLeaveGroup: {
typeUrl: string;
encode(message: EventLeaveGroup, writer?: BinaryWriter): BinaryWriter;
decode(input: BinaryReader | Uint8Array, length?: number): EventLeaveGroup;
fromPartial(object: Partial<EventLeaveGroup>): EventLeaveGroup;
fromAmino(object: EventLeaveGroupAmino): EventLeaveGroup;
toAmino(message: EventLeaveGroup): EventLeaveGroupAmino;
fromAminoMsg(object: EventLeaveGroupAminoMsg): EventLeaveGroup;
toAminoMsg(message: EventLeaveGroup): EventLeaveGroupAminoMsg;
fromProtoMsg(message: EventLeaveGroupProtoMsg): EventLeaveGroup;
toProto(message: EventLeaveGroup): Uint8Array;
toProtoMsg(message: EventLeaveGroup): EventLeaveGroupProtoMsg;
};