interchainjs
Version:
InterchainJS is a JavaScript library for interacting with Cosmos SDK based blockchains.
103 lines (102 loc) • 3.7 kB
TypeScript
import { BinaryReader, BinaryWriter } from "../../../binary";
import { DeepPartial } from "../../../helpers";
/**
* EventEpochEnd is an event emitted when an epoch end.
* @name EventEpochEnd
* @package cosmos.epochs.v1beta1
* @see proto type: cosmos.epochs.v1beta1.EventEpochEnd
*/
export interface EventEpochEnd {
epochNumber: bigint;
}
export interface EventEpochEndProtoMsg {
typeUrl: "/cosmos.epochs.v1beta1.EventEpochEnd";
value: Uint8Array;
}
/**
* EventEpochEnd is an event emitted when an epoch end.
* @name EventEpochEndAmino
* @package cosmos.epochs.v1beta1
* @see proto type: cosmos.epochs.v1beta1.EventEpochEnd
*/
export interface EventEpochEndAmino {
epoch_number: string;
}
export interface EventEpochEndAminoMsg {
type: "cosmos-sdk/EventEpochEnd";
value: EventEpochEndAmino;
}
/**
* EventEpochStart is an event emitted when an epoch start.
* @name EventEpochStart
* @package cosmos.epochs.v1beta1
* @see proto type: cosmos.epochs.v1beta1.EventEpochStart
*/
export interface EventEpochStart {
epochNumber: bigint;
epochStartTime: bigint;
}
export interface EventEpochStartProtoMsg {
typeUrl: "/cosmos.epochs.v1beta1.EventEpochStart";
value: Uint8Array;
}
/**
* EventEpochStart is an event emitted when an epoch start.
* @name EventEpochStartAmino
* @package cosmos.epochs.v1beta1
* @see proto type: cosmos.epochs.v1beta1.EventEpochStart
*/
export interface EventEpochStartAmino {
epoch_number: string;
epoch_start_time: string;
}
export interface EventEpochStartAminoMsg {
type: "cosmos-sdk/EventEpochStart";
value: EventEpochStartAmino;
}
/**
* EventEpochEnd is an event emitted when an epoch end.
* @name EventEpochEnd
* @package cosmos.epochs.v1beta1
* @see proto type: cosmos.epochs.v1beta1.EventEpochEnd
*/
export declare const EventEpochEnd: {
typeUrl: string;
aminoType: string;
is(o: any): o is EventEpochEnd;
isAmino(o: any): o is EventEpochEndAmino;
encode(message: EventEpochEnd, writer?: BinaryWriter): BinaryWriter;
decode(input: BinaryReader | Uint8Array, length?: number): EventEpochEnd;
fromPartial(object: DeepPartial<EventEpochEnd>): EventEpochEnd;
fromAmino(object: EventEpochEndAmino): EventEpochEnd;
toAmino(message: EventEpochEnd): EventEpochEndAmino;
fromAminoMsg(object: EventEpochEndAminoMsg): EventEpochEnd;
toAminoMsg(message: EventEpochEnd): EventEpochEndAminoMsg;
fromProtoMsg(message: EventEpochEndProtoMsg): EventEpochEnd;
toProto(message: EventEpochEnd): Uint8Array;
toProtoMsg(message: EventEpochEnd): EventEpochEndProtoMsg;
registerTypeUrl(): void;
};
/**
* EventEpochStart is an event emitted when an epoch start.
* @name EventEpochStart
* @package cosmos.epochs.v1beta1
* @see proto type: cosmos.epochs.v1beta1.EventEpochStart
*/
export declare const EventEpochStart: {
typeUrl: string;
aminoType: string;
is(o: any): o is EventEpochStart;
isAmino(o: any): o is EventEpochStartAmino;
encode(message: EventEpochStart, writer?: BinaryWriter): BinaryWriter;
decode(input: BinaryReader | Uint8Array, length?: number): EventEpochStart;
fromPartial(object: DeepPartial<EventEpochStart>): EventEpochStart;
fromAmino(object: EventEpochStartAmino): EventEpochStart;
toAmino(message: EventEpochStart): EventEpochStartAmino;
fromAminoMsg(object: EventEpochStartAminoMsg): EventEpochStart;
toAminoMsg(message: EventEpochStart): EventEpochStartAminoMsg;
fromProtoMsg(message: EventEpochStartProtoMsg): EventEpochStart;
toProto(message: EventEpochStart): Uint8Array;
toProtoMsg(message: EventEpochStart): EventEpochStartProtoMsg;
registerTypeUrl(): void;
};