UNPKG

786 BTypeScriptView Raw
1import { OutputJSON, OutputModel, UInt256 } from '@neo-one/client-common';
2import BN from 'bn.js';
3import { Equals, EquatableKey } from '../Equatable';
4import { DeserializeWireBaseOptions, DeserializeWireOptions, SerializeJSONContext } from '../Serializable';
5export interface OutputKey {
6 readonly hash: UInt256;
7 readonly index: number;
8}
9export declare class Output extends OutputModel implements EquatableKey {
10 static deserializeWireBase({ reader }: DeserializeWireBaseOptions): Output;
11 static deserializeWire(options: DeserializeWireOptions): Output;
12 readonly equals: Equals;
13 readonly toKeyString: () => string;
14 clone({ value }: {
15 readonly value?: BN;
16 }): Output;
17 serializeJSON(context: SerializeJSONContext, index: number): OutputJSON;
18}