1 |
|
2 | import { BinaryWriter, ECPoint, EnrollmentTransactionJSON, TransactionBaseModel, UInt160Hex } from '@neo-one/client-common';
|
3 | import { Constructor } from '@neo-one/utils';
|
4 | import { DeserializeWireBaseOptions, SerializeJSONContext } from '../Serializable';
|
5 | import { VerifyScriptResult } from '../vm';
|
6 | import { Witness } from '../Witness';
|
7 | import { Attribute } from './attribute';
|
8 | import { Input } from './Input';
|
9 | import { Output } from './Output';
|
10 | import { TransactionBaseAdd, TransactionGetScriptHashesForVerifyingOptions, TransactionVerifyOptions } from './TransactionBase';
|
11 | import { TransactionType } from './TransactionType';
|
12 | export interface EnrollmentTransactionAdd extends TransactionBaseAdd {
|
13 | readonly publicKey: ECPoint;
|
14 | }
|
15 | declare const EnrollmentTransaction_base: {
|
16 | new (...args: any[]): {
|
17 | readonly equals: import("..").Equals;
|
18 | readonly toKeyString: () => string;
|
19 | readonly getSortedScriptHashesForVerifying: (input: TransactionGetScriptHashesForVerifyingOptions) => Promise<string[]>;
|
20 | readonly sizeInternal: () => number;
|
21 | readonly networkFee: (input: import("./TransactionBase").FeeContext) => Promise<import("bn.js")>;
|
22 | readonly getReferencesInternal: (input: import("./TransactionBase").GetReferencesOptions) => Promise<Output[]>;
|
23 | readonly getTransactionResultsInternal: (input: import("./TransactionBase").GetTransactionResultsOptions) => Promise<{
|
24 | readonly [x: string]: import("bn.js") | undefined;
|
25 | }>;
|
26 | readonly baseGetScriptHashesForVerifyingInternal: (input: TransactionGetScriptHashesForVerifyingOptions) => Promise<Set<string>>;
|
27 | readonly size: number;
|
28 | serializeTransactionBaseJSON(context: SerializeJSONContext): Promise<import("@neo-one/client-common").TransactionBaseJSON>;
|
29 | serializeJSON(_context: SerializeJSONContext): Promise<EnrollmentTransactionJSON>;
|
30 | getNetworkFee(context: import("./TransactionBase").FeeContext): Promise<import("bn.js")>;
|
31 | getSystemFee({ fees }: import("./TransactionBase").FeeContext): import("bn.js");
|
32 | getReferences(options: import("./TransactionBase").GetReferencesOptions): Promise<readonly Output[]>;
|
33 | getTransactionResults(options: import("./TransactionBase").GetTransactionResultsOptions): Promise<{
|
34 | readonly [key: string]: import("bn.js");
|
35 | }>;
|
36 | getScriptHashesForVerifying(options: TransactionGetScriptHashesForVerifyingOptions): Promise<Set<string>>;
|
37 | verify(options: TransactionVerifyOptions): Promise<readonly VerifyScriptResult[]>;
|
38 | readonly sizeExclusive: () => number;
|
39 | verifyDoubleSpend({ isSpent }: TransactionVerifyOptions): Promise<void>;
|
40 | verifyOutputs({ getAsset, currentHeight }: TransactionVerifyOptions): Promise<void>;
|
41 | verifyTransactionResults({ getOutput, utilityToken, governingToken, fees, registerValidatorFee, }: TransactionVerifyOptions): Promise<void>;
|
42 | verifyScripts({ getAsset, getOutput, verifyScript, }: TransactionVerifyOptions): Promise<readonly VerifyScriptResult[]>;
|
43 | readonly type: TransactionType.Enrollment;
|
44 | readonly version: number;
|
45 | readonly attributes: readonly Attribute[];
|
46 | readonly inputs: readonly Input[];
|
47 | readonly outputs: readonly Output[];
|
48 | readonly scripts: readonly Witness[];
|
49 | readonly serializeWire: import("@neo-one/client-common").SerializeWire;
|
50 | readonly serializeUnsigned: import("@neo-one/client-common").SerializeWire;
|
51 | readonly hashInternal: any;
|
52 | readonly hashHexInternal: any;
|
53 | readonly messageInternal: any;
|
54 | clone(options: {
|
55 | readonly scripts?: readonly Witness[] | undefined;
|
56 | readonly attributes?: readonly Attribute[] | undefined;
|
57 | readonly inputs?: readonly Input[] | undefined;
|
58 | readonly outputs?: readonly Output[] | undefined;
|
59 | }): any;
|
60 | readonly hash: import("@neo-one/client-common").UInt256;
|
61 | readonly hashHex: string;
|
62 | readonly message: Buffer;
|
63 | sign(key: import("@neo-one/client-common").PrivateKey): any;
|
64 | signWithSignature(signature: Buffer, publicKey: ECPoint): any;
|
65 | serializeExclusiveBase(_writer: BinaryWriter): void;
|
66 | serializeUnsignedBase(writer: BinaryWriter): void;
|
67 | serializeWireBase(writer: BinaryWriter): void;
|
68 | };
|
69 | deserializeTransactionBaseStartWireBase({ reader, }: DeserializeWireBaseOptions): {
|
70 | readonly type: TransactionType;
|
71 | readonly version: number;
|
72 | };
|
73 | deserializeTransactionBaseEndWireBase(options: DeserializeWireBaseOptions): {
|
74 | readonly attributes: readonly Attribute[];
|
75 | readonly inputs: readonly Input[];
|
76 | readonly outputs: readonly Output[];
|
77 | readonly scripts: readonly Witness[];
|
78 | };
|
79 | deserializeWireBase(_options: DeserializeWireBaseOptions): any;
|
80 | deserializeWire(options: import("../Serializable").DeserializeWireOptions): any;
|
81 | readonly WitnessConstructor: Constructor<Witness>;
|
82 | } & Constructor<TransactionBaseModel<TransactionType.Enrollment, Attribute, Input, Output, Witness>>;
|
83 | export declare class EnrollmentTransaction extends EnrollmentTransaction_base {
|
84 | static deserializeWireBase(options: DeserializeWireBaseOptions): EnrollmentTransaction;
|
85 | readonly publicKey: ECPoint;
|
86 | protected readonly sizeExclusive: () => number;
|
87 | private readonly enrollmentGetScriptHashesForVerifyingInternal;
|
88 | constructor({ version, attributes, inputs, outputs, scripts, hash, publicKey }: EnrollmentTransactionAdd);
|
89 | clone({ scripts, attributes, inputs, outputs, }: {
|
90 | readonly scripts?: readonly Witness[];
|
91 | readonly attributes?: readonly Attribute[];
|
92 | readonly inputs?: readonly Input[];
|
93 | readonly outputs?: readonly Output[];
|
94 | }): this;
|
95 | serializeExclusiveBase(writer: BinaryWriter): void;
|
96 | serializeJSON(context: SerializeJSONContext): Promise<EnrollmentTransactionJSON>;
|
97 | getScriptHashesForVerifying(options: TransactionGetScriptHashesForVerifyingOptions): Promise<Set<UInt160Hex>>;
|
98 | verify(_options: TransactionVerifyOptions): Promise<readonly VerifyScriptResult[]>;
|
99 | }
|
100 | export {};
|