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