1 | import { DataItem, MethodAbi } from 'ethereum-types';
|
2 | import { DataType } from './abstract_data_types/data_type';
|
3 | import { DataTypeFactory } from './abstract_data_types/interfaces';
|
4 | import { AddressDataType } from './evm_data_types/address';
|
5 | import { ArrayDataType } from './evm_data_types/array';
|
6 | import { BoolDataType } from './evm_data_types/bool';
|
7 | import { DynamicBytesDataType } from './evm_data_types/dynamic_bytes';
|
8 | import { IntDataType } from './evm_data_types/int';
|
9 | import { MethodDataType } from './evm_data_types/method';
|
10 | import { PointerDataType } from './evm_data_types/pointer';
|
11 | import { StaticBytesDataType } from './evm_data_types/static_bytes';
|
12 | import { StringDataType } from './evm_data_types/string';
|
13 | import { TupleDataType } from './evm_data_types/tuple';
|
14 | import { UIntDataType } from './evm_data_types/uint';
|
15 | export declare class Address extends AddressDataType {
|
16 | constructor(dataItem: DataItem);
|
17 | }
|
18 | export declare class Bool extends BoolDataType {
|
19 | constructor(dataItem: DataItem);
|
20 | }
|
21 | export declare class Int extends IntDataType {
|
22 | constructor(dataItem: DataItem);
|
23 | }
|
24 | export declare class UInt extends UIntDataType {
|
25 | constructor(dataItem: DataItem);
|
26 | }
|
27 | export declare class StaticBytes extends StaticBytesDataType {
|
28 | constructor(dataItem: DataItem);
|
29 | }
|
30 | export declare class DynamicBytes extends DynamicBytesDataType {
|
31 | constructor(dataItem: DataItem);
|
32 | }
|
33 | export declare class String extends StringDataType {
|
34 | constructor(dataItem: DataItem);
|
35 | }
|
36 | export declare class Pointer extends PointerDataType {
|
37 | constructor(destDataType: DataType, parentDataType: DataType);
|
38 | }
|
39 | export declare class Tuple extends TupleDataType {
|
40 | constructor(dataItem: DataItem);
|
41 | }
|
42 | export declare class Array extends ArrayDataType {
|
43 | constructor(dataItem: DataItem);
|
44 | }
|
45 | export declare class Method extends MethodDataType {
|
46 | constructor(abi: MethodAbi);
|
47 | }
|
48 | export declare class EvmDataTypeFactory implements DataTypeFactory {
|
49 | private static _instance;
|
50 | static getInstance(): DataTypeFactory;
|
51 | create(dataItem: DataItem, parentDataType?: DataType): DataType;
|
52 | private constructor();
|
53 | }
|
54 | /**
|
55 | * Convenience function for creating a DataType from different inputs.
|
56 | * @param input A single or set of DataItem or a signature for an EVM data type.
|
57 | * @return DataType corresponding to input.
|
58 | */
|
59 | export declare function create(input: DataItem | DataItem[] | string, nestedDataItems?: DataItem[]): DataType;
|
60 | /**
|
61 | * Convenience function for creating a Method encoder from different inputs.
|
62 | * @param methodName name of method.
|
63 | * @param input A single data item; a set of data items; a signature; or an array of signatures (optional).
|
64 | * @param output A single data item; a set of data items; a signature; or an array of signatures (optional).
|
65 | * @return Method corresponding to input.
|
66 | */
|
67 | export declare function createMethod(methodName: string, input?: DataItem | DataItem[] | string | string[], output?: DataItem | DataItem[] | string | string[]): Method;
|
68 | //# sourceMappingURL=evm_data_type_factory.d.ts.map |
\ | No newline at end of file |