interchainjs
Version:
InterchainJS is a JavaScript library for interacting with Cosmos SDK based blockchains.
64 lines (63 loc) • 1.7 kB
TypeScript
import { BinaryReader, BinaryWriter } from "../../../binary";
import { DeepPartial } from "../../../helpers";
/**
* Op is a message describing a benchmark operation.
* @name Op
* @package cosmos.benchmark.v1
* @see proto type: cosmos.benchmark.v1.Op
*/
export interface Op {
seed: bigint;
actor: string;
keyLength: bigint;
valueLength: bigint;
iterations: number;
delete: boolean;
exists: boolean;
}
export interface OpProtoMsg {
typeUrl: "/cosmos.benchmark.v1.Op";
value: Uint8Array;
}
/**
* Op is a message describing a benchmark operation.
* @name OpAmino
* @package cosmos.benchmark.v1
* @see proto type: cosmos.benchmark.v1.Op
*/
export interface OpAmino {
seed: string;
actor: string;
key_length: string;
value_length: string;
iterations: number;
delete: boolean;
exists: boolean;
}
export interface OpAminoMsg {
type: "cosmos-sdk/Op";
value: OpAmino;
}
/**
* Op is a message describing a benchmark operation.
* @name Op
* @package cosmos.benchmark.v1
* @see proto type: cosmos.benchmark.v1.Op
*/
export declare const Op: {
typeUrl: string;
aminoType: string;
is(o: any): o is Op;
isAmino(o: any): o is OpAmino;
encode(message: Op, writer?: BinaryWriter): BinaryWriter;
decode(input: BinaryReader | Uint8Array, length?: number): Op;
fromPartial(object: DeepPartial<Op>): Op;
fromAmino(object: OpAmino): Op;
toAmino(message: Op): OpAmino;
fromAminoMsg(object: OpAminoMsg): Op;
toAminoMsg(message: Op): OpAminoMsg;
fromProtoMsg(message: OpProtoMsg): Op;
toProto(message: Op): Uint8Array;
toProtoMsg(message: Op): OpProtoMsg;
registerTypeUrl(): void;
};