mirror of
				https://github.com/Instadapp/Swap-Aggregator-Subgraph.git
				synced 2024-07-29 21:57:12 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			78 lines
		
	
	
		
			3.3 KiB
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			78 lines
		
	
	
		
			3.3 KiB
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| import { BigNumber, BigNumberish } from "@ethersproject/bignumber";
 | |
| import { BytesLike } from "@ethersproject/bytes";
 | |
| import { Description } from "@ethersproject/properties";
 | |
| import { AbiCoder } from "./abi-coder";
 | |
| import { checkResultErrors, Result } from "./coders/abstract-coder";
 | |
| import { ConstructorFragment, EventFragment, Fragment, FunctionFragment, JsonFragment, ParamType } from "./fragments";
 | |
| export { checkResultErrors, Result };
 | |
| export declare class LogDescription extends Description<LogDescription> {
 | |
|     readonly eventFragment: EventFragment;
 | |
|     readonly name: string;
 | |
|     readonly signature: string;
 | |
|     readonly topic: string;
 | |
|     readonly args: Result;
 | |
| }
 | |
| export declare class TransactionDescription extends Description<TransactionDescription> {
 | |
|     readonly functionFragment: FunctionFragment;
 | |
|     readonly name: string;
 | |
|     readonly args: Result;
 | |
|     readonly signature: string;
 | |
|     readonly sighash: string;
 | |
|     readonly value: BigNumber;
 | |
| }
 | |
| export declare class Indexed extends Description<Indexed> {
 | |
|     readonly hash: string;
 | |
|     readonly _isIndexed: boolean;
 | |
|     static isIndexed(value: any): value is Indexed;
 | |
| }
 | |
| export declare class Interface {
 | |
|     readonly fragments: Array<Fragment>;
 | |
|     readonly errors: {
 | |
|         [name: string]: any;
 | |
|     };
 | |
|     readonly events: {
 | |
|         [name: string]: EventFragment;
 | |
|     };
 | |
|     readonly functions: {
 | |
|         [name: string]: FunctionFragment;
 | |
|     };
 | |
|     readonly structs: {
 | |
|         [name: string]: any;
 | |
|     };
 | |
|     readonly deploy: ConstructorFragment;
 | |
|     readonly _abiCoder: AbiCoder;
 | |
|     readonly _isInterface: boolean;
 | |
|     constructor(fragments: string | Array<Fragment | JsonFragment | string>);
 | |
|     format(format?: string): string | Array<string>;
 | |
|     static getAbiCoder(): AbiCoder;
 | |
|     static getAddress(address: string): string;
 | |
|     static getSighash(functionFragment: FunctionFragment): string;
 | |
|     static getEventTopic(eventFragment: EventFragment): string;
 | |
|     getFunction(nameOrSignatureOrSighash: string): FunctionFragment;
 | |
|     getEvent(nameOrSignatureOrTopic: string): EventFragment;
 | |
|     getSighash(functionFragment: FunctionFragment | string): string;
 | |
|     getEventTopic(eventFragment: EventFragment | string): string;
 | |
|     _decodeParams(params: Array<ParamType>, data: BytesLike): Result;
 | |
|     _encodeParams(params: Array<ParamType>, values: Array<any>): string;
 | |
|     encodeDeploy(values?: Array<any>): string;
 | |
|     decodeFunctionData(functionFragment: FunctionFragment | string, data: BytesLike): Result;
 | |
|     encodeFunctionData(functionFragment: FunctionFragment | string, values?: Array<any>): string;
 | |
|     decodeFunctionResult(functionFragment: FunctionFragment | string, data: BytesLike): Result;
 | |
|     encodeFunctionResult(functionFragment: FunctionFragment | string, values?: Array<any>): string;
 | |
|     encodeFilterTopics(eventFragment: EventFragment, values: Array<any>): Array<string | Array<string>>;
 | |
|     encodeEventLog(eventFragment: EventFragment, values: Array<any>): {
 | |
|         data: string;
 | |
|         topics: Array<string>;
 | |
|     };
 | |
|     decodeEventLog(eventFragment: EventFragment | string, data: BytesLike, topics?: Array<string>): Result;
 | |
|     parseTransaction(tx: {
 | |
|         data: string;
 | |
|         value?: BigNumberish;
 | |
|     }): TransactionDescription;
 | |
|     parseLog(log: {
 | |
|         topics: Array<string>;
 | |
|         data: string;
 | |
|     }): LogDescription;
 | |
|     static isInterface(value: any): value is Interface;
 | |
| }
 | 
