interchainjs
Version:
InterchainJS is a JavaScript library for interacting with Cosmos SDK based blockchains.
145 lines (144 loc) • 4.12 kB
TypeScript
import { BinaryReader, BinaryWriter } from "../../../binary";
import { DeepPartial } from "../../../helpers";
/**
* EventGrant is emitted on Msg/Grant
* @name EventGrant
* @package cosmos.authz.v1beta1
* @see proto type: cosmos.authz.v1beta1.EventGrant
*/
export interface EventGrant {
/**
* Msg type URL for which an autorization is granted
*/
msgTypeUrl: string;
/**
* Granter account address
*/
granter: string;
/**
* Grantee account address
*/
grantee: string;
}
export interface EventGrantProtoMsg {
typeUrl: "/cosmos.authz.v1beta1.EventGrant";
value: Uint8Array;
}
/**
* EventGrant is emitted on Msg/Grant
* @name EventGrantAmino
* @package cosmos.authz.v1beta1
* @see proto type: cosmos.authz.v1beta1.EventGrant
*/
export interface EventGrantAmino {
/**
* Msg type URL for which an autorization is granted
*/
msg_type_url: string;
/**
* Granter account address
*/
granter: string;
/**
* Grantee account address
*/
grantee: string;
}
export interface EventGrantAminoMsg {
type: "cosmos-sdk/EventGrant";
value: EventGrantAmino;
}
/**
* EventRevoke is emitted on Msg/Revoke
* @name EventRevoke
* @package cosmos.authz.v1beta1
* @see proto type: cosmos.authz.v1beta1.EventRevoke
*/
export interface EventRevoke {
/**
* Msg type URL for which an autorization is revoked
*/
msgTypeUrl: string;
/**
* Granter account address
*/
granter: string;
/**
* Grantee account address
*/
grantee: string;
}
export interface EventRevokeProtoMsg {
typeUrl: "/cosmos.authz.v1beta1.EventRevoke";
value: Uint8Array;
}
/**
* EventRevoke is emitted on Msg/Revoke
* @name EventRevokeAmino
* @package cosmos.authz.v1beta1
* @see proto type: cosmos.authz.v1beta1.EventRevoke
*/
export interface EventRevokeAmino {
/**
* Msg type URL for which an autorization is revoked
*/
msg_type_url: string;
/**
* Granter account address
*/
granter: string;
/**
* Grantee account address
*/
grantee: string;
}
export interface EventRevokeAminoMsg {
type: "cosmos-sdk/EventRevoke";
value: EventRevokeAmino;
}
/**
* EventGrant is emitted on Msg/Grant
* @name EventGrant
* @package cosmos.authz.v1beta1
* @see proto type: cosmos.authz.v1beta1.EventGrant
*/
export declare const EventGrant: {
typeUrl: string;
aminoType: string;
is(o: any): o is EventGrant;
isAmino(o: any): o is EventGrantAmino;
encode(message: EventGrant, writer?: BinaryWriter): BinaryWriter;
decode(input: BinaryReader | Uint8Array, length?: number): EventGrant;
fromPartial(object: DeepPartial<EventGrant>): EventGrant;
fromAmino(object: EventGrantAmino): EventGrant;
toAmino(message: EventGrant): EventGrantAmino;
fromAminoMsg(object: EventGrantAminoMsg): EventGrant;
toAminoMsg(message: EventGrant): EventGrantAminoMsg;
fromProtoMsg(message: EventGrantProtoMsg): EventGrant;
toProto(message: EventGrant): Uint8Array;
toProtoMsg(message: EventGrant): EventGrantProtoMsg;
registerTypeUrl(): void;
};
/**
* EventRevoke is emitted on Msg/Revoke
* @name EventRevoke
* @package cosmos.authz.v1beta1
* @see proto type: cosmos.authz.v1beta1.EventRevoke
*/
export declare const EventRevoke: {
typeUrl: string;
aminoType: string;
is(o: any): o is EventRevoke;
isAmino(o: any): o is EventRevokeAmino;
encode(message: EventRevoke, writer?: BinaryWriter): BinaryWriter;
decode(input: BinaryReader | Uint8Array, length?: number): EventRevoke;
fromPartial(object: DeepPartial<EventRevoke>): EventRevoke;
fromAmino(object: EventRevokeAmino): EventRevoke;
toAmino(message: EventRevoke): EventRevokeAmino;
fromAminoMsg(object: EventRevokeAminoMsg): EventRevoke;
toAminoMsg(message: EventRevoke): EventRevokeAminoMsg;
fromProtoMsg(message: EventRevokeProtoMsg): EventRevoke;
toProto(message: EventRevoke): Uint8Array;
toProtoMsg(message: EventRevoke): EventRevokeProtoMsg;
registerTypeUrl(): void;
};