1 | export type EvmType = BooleanType | IntegerType | UnsignedIntegerType | StringType | BytesType | DynamicBytesType | AddressType | ArrayType | TupleType | UnknownType;
|
2 |
|
3 |
|
4 |
|
5 | export type EvmOutputType = EvmType | VoidType;
|
6 | export type StructType = ArrayType | TupleType;
|
7 | export type BooleanType = {
|
8 | type: 'boolean';
|
9 | originalType: string;
|
10 | };
|
11 | export type IntegerType = {
|
12 | type: 'integer';
|
13 | bits: number;
|
14 | originalType: string;
|
15 | };
|
16 | export type UnsignedIntegerType = {
|
17 | type: 'uinteger';
|
18 | bits: number;
|
19 | originalType: string;
|
20 | };
|
21 | export type StringType = {
|
22 | type: 'string';
|
23 | originalType: string;
|
24 | };
|
25 | export type BytesType = {
|
26 | type: 'bytes';
|
27 | size: number;
|
28 | originalType: string;
|
29 | };
|
30 | export type DynamicBytesType = {
|
31 | type: 'dynamic-bytes';
|
32 | originalType: string;
|
33 | };
|
34 | export type AddressType = {
|
35 | type: 'address';
|
36 | originalType: string;
|
37 | };
|
38 | export type ArrayType = {
|
39 | type: 'array';
|
40 | itemType: EvmType;
|
41 | size?: number;
|
42 | originalType: string;
|
43 | structName?: StructName;
|
44 | };
|
45 | export type TupleType = {
|
46 | type: 'tuple';
|
47 | components: EvmSymbol[];
|
48 | originalType: string;
|
49 | structName?: StructName;
|
50 | };
|
51 | export type VoidType = {
|
52 | type: 'void';
|
53 | };
|
54 | export type UnknownType = {
|
55 | type: 'unknown';
|
56 | originalType: string;
|
57 | };
|
58 | export declare class StructName {
|
59 | readonly identifier: string;
|
60 | readonly namespace?: string;
|
61 | constructor(_identifier: string, _namespace?: string);
|
62 | toString(): string;
|
63 | merge(other: Partial<StructName>): StructName;
|
64 | }
|
65 | export type EvmSymbol = {
|
66 | type: EvmType;
|
67 | name: string;
|
68 | };
|
69 | export declare function parseEvmType(rawType: string, components?: EvmSymbol[], internalType?: string): EvmType;
|
70 |
|
71 | export declare function extractStructNameIfAvailable(internalType: string | undefined): StructName | undefined;
|