/** * build the transaction data * * @param {Object} function abi * @param {Object} values to encode * @param {String} contractbyteCode */ export declare function encodeData(funABI: any, values: any, contractbyteCode: any): { error: string; data?: undefined; } | { data: string; error?: undefined; }; /** * encode function / constructor parameters * * @param {Object} params - input parameter of the function to call * @param {Object} funAbi - abi definition of the function to call. null if building data for the ctor. * @param {Function} callback - callback */ export declare function encodeParams(params: any, funAbi: any): { data: string | Buffer; dataHex: string; funArgs: any[]; }; /** * encode function call (function id + encoded parameters) * * @param {Object} params - input parameter of the function to call * @param {Object} funAbi - abi definition of the function to call. null if building data for the ctor. * @param {Function} callback - callback */ export declare function encodeFunctionCall(params: any, funAbi: any): { dataHex: string; funAbi: any; funArgs: any[]; }; /** * encode constructor creation and link with provided libraries if needed * * @param {Object} contract - input parameter of the function to call * @param {Object} params - input parameter of the function to call * @param {Object} funAbi - abi definition of the function to call. null if building data for the ctor. * @param {Object} linkLibraries - contains {linkReferences} object which list all the addresses to be linked * @param {Object} linkReferences - given by the compiler, contains the proper linkReferences * @param {Function} callback - callback */ export declare function encodeConstructorCallAndLinkLibraries(contract: any, params: any, funAbi: any, linkLibrariesAddresses: any, linkReferences: any): { dataHex: string; funAbi: any; funArgs: any[]; contractBytecode: any; }; /** * link with provided libraries if needed * * @param {Object} contract - input parameter of the function to call * @param {Object} linkLibraries - contains {linkReferences} object which list all the addresses to be linked * @param {Object} linkReferences - given by the compiler, contains the proper linkReferences * @param {Function} callback - callback */ export declare function linkLibraries(contract: any, linkLibraries: any, linkReferences: any): any; /** * encode constructor creation and deploy libraries if needed * * @param {String} contractName - current contract name * @param {Object} contract - input parameter of the function to call * @param {Object} contracts - map of all compiled contracts. * @param {Object} params - input parameter of the function to call * @param {Object} funAbi - abi definition of the function to call. null if building data for the ctor. * @param {Function} callback - callback * @param {Function} callbackStep - callbackStep * @param {Function} callbackDeployLibrary - callbackDeployLibrary * @param {Function} callback - callback */ export declare function encodeConstructorCallAndDeployLibraries(contractName: any, contract: any, contracts: any, params: any, funAbi: any, callbackDeployLibrary?: any): Promise<{ dataHex: any; funAbi: any; funArgs: any[]; contractBytecode: any; contractName: any; }>; /** * (DEPRECATED) build the transaction data * * @param {String} contractName * @param {Object} contract - abi definition of the current contract. * @param {Object} contracts - map of all compiled contracts. * @param {Bool} isConstructor - isConstructor. * @param {Object} funAbi - abi definition of the function to call. null if building data for the ctor. * @param {Object} params - input parameter of the function to call * @param {Function} callback - callback * @param {Function} callbackStep - callbackStep * @param {Function} callbackDeployLibrary - callbackDeployLibrary */ export declare function buildData(contractName: any, contract: any, contracts: any, isConstructor: any, funAbi: any, params: any, callbackDeployLibrary?: any): Promise<{ dataHex: any; funAbi: any; funArgs: any[]; contractBytecode: any; contractName: any; contractDeployedBytecode?: undefined; } | { dataHex: string; funAbi: any; funArgs: any[]; contractBytecode: any; contractDeployedBytecode: any; contractName: any; }>; export declare function atAddress(): void; export declare function linkBytecodeStandard(contract: any, contracts: any, callbackDeployLibrary?: any): Promise; export declare function linkBytecodeLegacy(contract: any, contracts: any, callbackDeployLibrary?: any): any; export declare function linkBytecode(contract: any, contracts: any, callbackDeployLibrary?: any): any; export declare function deployLibrary(libraryName: any, libraryShortName: any, library: any, contracts: any, callbackDeployLibrary?: any): Promise; export declare function linkLibraryStandardFromlinkReferences(libraryName: any, address: any, bytecode: any, linkReferences: any): any; export declare function linkLibraryStandard(libraryName: any, address: any, bytecode: any, contract: any): any; export declare function setLibraryAddress(address: any, bytecodeToLink: any, positions: any): any; export declare function linkLibrary(libraryName: any, address: any, bytecodeToLink: any): any; export declare function decodeResponse(response: any, fnabi: any): {}; export declare function parseFunctionParams(params: any): any[]; export declare const normalizeParam: (param: any) => any; export declare const REGEX_SCIENTIFIC: RegExp; export declare const REGEX_DECIMAL: RegExp; export declare function isArrayOrStringStart(str: any, index: any): boolean;