UNPKG

976 BTypeScriptView Raw
1/// <reference types="node" />
2/// <reference types="pouchdb-core" />
3import { BinaryWriter, ByteArrayContractParameterJSON } from '@neo-one/client-common';
4import { DeserializeWireBaseOptions, SerializeJSONContext } from '../Serializable';
5import { ContractParameterBase } from './ContractParameterBase';
6import { ContractParameterType } from './ContractParameterType';
7export declare class ByteArrayContractParameter extends ContractParameterBase<ByteArrayContractParameter, ByteArrayContractParameterJSON, ContractParameterType.ByteArray> {
8 static deserializeWireBase(options: DeserializeWireBaseOptions): ByteArrayContractParameter;
9 readonly type = ContractParameterType.ByteArray;
10 readonly value: Buffer;
11 private readonly sizeInternal;
12 constructor(value: Buffer);
13 readonly size: number;
14 asBuffer(): Buffer;
15 serializeWireBase(writer: BinaryWriter): void;
16 serializeJSON(_context: SerializeJSONContext): ByteArrayContractParameterJSON;
17}