/// /// import { BinaryWriter, ECPoint, EnrollmentTransactionJSON, TransactionBaseModel, UInt160Hex } from '@neo-one/client-common'; import { Constructor } from '@neo-one/utils'; import { DeserializeWireBaseOptions, SerializeJSONContext } from '../Serializable'; import { VerifyScriptResult } from '../vm'; import { Witness } from '../Witness'; import { Attribute } from './attribute'; import { Input } from './Input'; import { Output } from './Output'; import { TransactionBaseAdd, TransactionGetScriptHashesForVerifyingOptions, TransactionVerifyOptions } from './TransactionBase'; import { TransactionType } from './TransactionType'; export interface EnrollmentTransactionAdd extends TransactionBaseAdd { readonly publicKey: ECPoint; } declare const EnrollmentTransaction_base: { new (...args: any[]): { readonly equals: import("..").Equals; readonly toKeyString: () => string; readonly getSortedScriptHashesForVerifying: (input: TransactionGetScriptHashesForVerifyingOptions) => Promise; readonly sizeInternal: () => number; readonly networkFee: (input: import("./TransactionBase").FeeContext) => Promise; readonly getReferencesInternal: (input: import("./TransactionBase").GetReferencesOptions) => Promise; readonly getTransactionResultsInternal: (input: import("./TransactionBase").GetTransactionResultsOptions) => Promise<{ readonly [x: string]: import("bn.js") | undefined; }>; readonly baseGetScriptHashesForVerifyingInternal: (input: TransactionGetScriptHashesForVerifyingOptions) => Promise>; readonly size: number; serializeTransactionBaseJSON(context: SerializeJSONContext): Promise; serializeJSON(_context: SerializeJSONContext): Promise; getNetworkFee(context: import("./TransactionBase").FeeContext): Promise; getSystemFee({ fees }: import("./TransactionBase").FeeContext): import("bn.js"); getReferences(options: import("./TransactionBase").GetReferencesOptions): Promise; getTransactionResults(options: import("./TransactionBase").GetTransactionResultsOptions): Promise<{ readonly [key: string]: import("bn.js"); }>; getScriptHashesForVerifying(options: TransactionGetScriptHashesForVerifyingOptions): Promise>; verify(options: TransactionVerifyOptions): Promise; readonly sizeExclusive: () => number; verifyDoubleSpend({ isSpent }: TransactionVerifyOptions): Promise; verifyOutputs({ getAsset, currentHeight }: TransactionVerifyOptions): Promise; verifyTransactionResults({ getOutput, utilityToken, governingToken, fees, registerValidatorFee, }: TransactionVerifyOptions): Promise; verifyScripts({ getAsset, getOutput, verifyScript, }: TransactionVerifyOptions): Promise; readonly type: TransactionType.Enrollment; readonly version: number; readonly attributes: readonly Attribute[]; readonly inputs: readonly Input[]; readonly outputs: readonly Output[]; readonly scripts: readonly Witness[]; readonly serializeWire: import("../Serializable").SerializeWire; readonly serializeUnsigned: import("../Serializable").SerializeWire; readonly hashInternal: () => import("@neo-one/client-common").UInt256; readonly hashHexInternal: () => string; readonly messageInternal: () => Buffer; clone(options: { readonly scripts?: readonly Witness[] | undefined; readonly attributes?: readonly Attribute[] | undefined; readonly inputs?: readonly Input[] | undefined; readonly outputs?: readonly Output[] | undefined; }): any; readonly hash: import("@neo-one/client-common").UInt256; readonly hashHex: string; readonly message: Buffer; sign(key: import("@neo-one/client-common").PrivateKey): any; signWithSignature(signature: Buffer, publicKey: ECPoint): any; serializeExclusiveBase(_writer: BinaryWriter): void; serializeUnsignedBase(writer: BinaryWriter): void; serializeWireBase(writer: BinaryWriter): void; }; deserializeTransactionBaseStartWireBase({ reader, }: DeserializeWireBaseOptions): { readonly type: TransactionType; readonly version: number; }; deserializeTransactionBaseEndWireBase(options: DeserializeWireBaseOptions): { readonly attributes: readonly Attribute[]; readonly inputs: readonly Input[]; readonly outputs: readonly Output[]; readonly scripts: readonly Witness[]; }; deserializeWireBase(_options: DeserializeWireBaseOptions): any; deserializeWire(options: import("../Serializable").DeserializeWireOptions): any; readonly WitnessConstructor: Constructor; } & Constructor>; export declare class EnrollmentTransaction extends EnrollmentTransaction_base { static deserializeWireBase(options: DeserializeWireBaseOptions): EnrollmentTransaction; readonly publicKey: ECPoint; protected readonly sizeExclusive: () => number; private readonly enrollmentGetScriptHashesForVerifyingInternal; constructor({ version, attributes, inputs, outputs, scripts, hash, publicKey }: EnrollmentTransactionAdd); clone({ scripts, attributes, inputs, outputs, }: { readonly scripts?: readonly Witness[]; readonly attributes?: readonly Attribute[]; readonly inputs?: readonly Input[]; readonly outputs?: readonly Output[]; }): this; serializeExclusiveBase(writer: BinaryWriter): void; serializeJSON(context: SerializeJSONContext): Promise; getScriptHashesForVerifying(options: TransactionGetScriptHashesForVerifyingOptions): Promise>; verify(_options: TransactionVerifyOptions): Promise; } export {};