forked from LaconicNetwork/cosmos-explorer
89 lines
2.6 KiB
TypeScript
89 lines
2.6 KiB
TypeScript
/// <reference types="long" />
|
|
import { Long, DeepPartial } from "../../helpers";
|
|
import * as _m0 from "protobufjs/minimal";
|
|
export interface Proof {
|
|
total: Long;
|
|
index: Long;
|
|
leafHash: Uint8Array;
|
|
aunts: Uint8Array[];
|
|
}
|
|
export interface ProofSDKType {
|
|
total: Long;
|
|
index: Long;
|
|
leaf_hash: Uint8Array;
|
|
aunts: Uint8Array[];
|
|
}
|
|
export interface ValueOp {
|
|
/** Encoded in ProofOp.Key. */
|
|
key: Uint8Array;
|
|
/** To encode in ProofOp.Data */
|
|
proof?: Proof;
|
|
}
|
|
export interface ValueOpSDKType {
|
|
key: Uint8Array;
|
|
proof?: ProofSDKType;
|
|
}
|
|
export interface DominoOp {
|
|
key: string;
|
|
input: string;
|
|
output: string;
|
|
}
|
|
export interface DominoOpSDKType {
|
|
key: string;
|
|
input: string;
|
|
output: string;
|
|
}
|
|
/**
|
|
* ProofOp defines an operation used for calculating Merkle root
|
|
* The data could be arbitrary format, providing nessecary data
|
|
* for example neighbouring node hash
|
|
*/
|
|
export interface ProofOp {
|
|
type: string;
|
|
key: Uint8Array;
|
|
data: Uint8Array;
|
|
}
|
|
/**
|
|
* ProofOp defines an operation used for calculating Merkle root
|
|
* The data could be arbitrary format, providing nessecary data
|
|
* for example neighbouring node hash
|
|
*/
|
|
export interface ProofOpSDKType {
|
|
type: string;
|
|
key: Uint8Array;
|
|
data: Uint8Array;
|
|
}
|
|
/** ProofOps is Merkle proof defined by the list of ProofOps */
|
|
export interface ProofOps {
|
|
ops: ProofOp[];
|
|
}
|
|
/** ProofOps is Merkle proof defined by the list of ProofOps */
|
|
export interface ProofOpsSDKType {
|
|
ops: ProofOpSDKType[];
|
|
}
|
|
export declare const Proof: {
|
|
encode(message: Proof, writer?: _m0.Writer): _m0.Writer;
|
|
decode(input: _m0.Reader | Uint8Array, length?: number): Proof;
|
|
fromPartial(object: DeepPartial<Proof>): Proof;
|
|
};
|
|
export declare const ValueOp: {
|
|
encode(message: ValueOp, writer?: _m0.Writer): _m0.Writer;
|
|
decode(input: _m0.Reader | Uint8Array, length?: number): ValueOp;
|
|
fromPartial(object: DeepPartial<ValueOp>): ValueOp;
|
|
};
|
|
export declare const DominoOp: {
|
|
encode(message: DominoOp, writer?: _m0.Writer): _m0.Writer;
|
|
decode(input: _m0.Reader | Uint8Array, length?: number): DominoOp;
|
|
fromPartial(object: DeepPartial<DominoOp>): DominoOp;
|
|
};
|
|
export declare const ProofOp: {
|
|
encode(message: ProofOp, writer?: _m0.Writer): _m0.Writer;
|
|
decode(input: _m0.Reader | Uint8Array, length?: number): ProofOp;
|
|
fromPartial(object: DeepPartial<ProofOp>): ProofOp;
|
|
};
|
|
export declare const ProofOps: {
|
|
encode(message: ProofOps, writer?: _m0.Writer): _m0.Writer;
|
|
decode(input: _m0.Reader | Uint8Array, length?: number): ProofOps;
|
|
fromPartial(object: DeepPartial<ProofOps>): ProofOps;
|
|
};
|