mirror of https://gitlab.com/ecentrics/drizzle
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
83 lines
1.4 KiB
83 lines
1.4 KiB
4 years ago
|
export interface ABI {
|
||
|
constant?: boolean;
|
||
|
inputs: {
|
||
|
name: string;
|
||
|
type: string;
|
||
|
indexed?: boolean;
|
||
|
}[];
|
||
|
name?: string;
|
||
|
outputs?: {
|
||
|
name: string;
|
||
|
type: string;
|
||
|
}[];
|
||
|
payable: boolean;
|
||
|
stateMutability: string;
|
||
|
type: string;
|
||
|
anonymous?: boolean;
|
||
|
}
|
||
|
|
||
|
export interface AST {
|
||
|
absolutePath: string;
|
||
|
exportedSymbols: {
|
||
|
[name: string]: number[];
|
||
|
};
|
||
|
id: number;
|
||
|
nodeType: string;
|
||
|
nodes: INode[];
|
||
|
src: string;
|
||
|
}
|
||
|
|
||
|
export interface INetwork {
|
||
|
events: any;
|
||
|
links: any;
|
||
|
address: string;
|
||
|
transactionHash: string;
|
||
|
}
|
||
|
|
||
|
export interface INetworks {
|
||
|
[key: number]: INetwork;
|
||
|
[key: string]: INetwork;
|
||
|
}
|
||
|
|
||
|
export interface INode {
|
||
|
id: number;
|
||
|
literals: string[];
|
||
|
nodeType: string;
|
||
|
src: string;
|
||
|
baseContracts: any[];
|
||
|
contractDependencies: any[];
|
||
|
contractKind: string;
|
||
|
documentation?: any;
|
||
|
fullyImplemented?: boolean;
|
||
|
linearizedBaseContracts: number[];
|
||
|
name: string;
|
||
|
nodes: any[];
|
||
|
scope?: number;
|
||
|
}
|
||
|
|
||
|
export interface IContract {
|
||
|
contractName: string;
|
||
|
abi: ABI[];
|
||
|
metadata: string;
|
||
|
bytecode: string;
|
||
|
deployedBytecode: string;
|
||
|
sourceMap: string;
|
||
|
deployedSourceMap: string;
|
||
|
source: string;
|
||
|
sourcePath: string;
|
||
|
ast: AST;
|
||
|
legacyAST: AST;
|
||
|
compiler: {
|
||
|
name: string;
|
||
|
version: string;
|
||
|
};
|
||
|
networks: INetworks;
|
||
|
schemaVersion: string;
|
||
|
updatedAt: Date;
|
||
|
devdoc: {
|
||
|
methods: any;
|
||
|
};
|
||
|
userdoc: {
|
||
|
methods: any;
|
||
|
};
|
||
|
}
|