1 | import { BinaryWriter, VMState } from '@neo-one/client-common';
|
2 | import BN from 'bn.js';
|
3 | import { ContractParameter } from '../contractParameter';
|
4 | import { DeserializeWireBaseOptions, DeserializeWireOptions, SerializableWire, SerializeWire } from '../Serializable';
|
5 | import { InvocationResult } from './InvocationResult';
|
6 | export interface InvocationResultBaseAdd<T extends VMState> {
|
7 | readonly state: T;
|
8 | readonly gasConsumed: BN;
|
9 | readonly gasCost: BN;
|
10 | readonly stack: readonly ContractParameter[];
|
11 | }
|
12 | export declare abstract class InvocationResultBase<T extends VMState = VMState> implements SerializableWire<InvocationResult> {
|
13 | static deserializeInvocationResultWireBase(options: DeserializeWireBaseOptions): {
|
14 | readonly state: VMState;
|
15 | readonly gasConsumed: BN;
|
16 | readonly gasCost: BN;
|
17 | readonly stack: readonly ContractParameter[];
|
18 | };
|
19 | static deserializeWireBase(_options: DeserializeWireBaseOptions): InvocationResultBase;
|
20 | static deserializeWire(options: DeserializeWireOptions): InvocationResultBase;
|
21 | readonly state: T;
|
22 | readonly gasConsumed: BN;
|
23 | readonly gasCost: BN;
|
24 | readonly stack: readonly ContractParameter[];
|
25 | readonly serializeWire: SerializeWire;
|
26 | protected readonly sizeExclusive: () => number;
|
27 | private readonly sizeInternal;
|
28 | constructor({ state, gasConsumed, gasCost, stack }: InvocationResultBaseAdd<T>);
|
29 | readonly size: number;
|
30 | serializeWireBase(writer: BinaryWriter): void;
|
31 | }
|