UNPKG

1.22 kBTypeScriptView Raw
1/**
2 * Computes the [[link-solc-packed]] representation of %%values%%
3 * respectively to their %%types%%.
4 *
5 * @example:
6 * addr = "0x8ba1f109551bd432803012645ac136ddd64dba72"
7 * solidityPacked([ "address", "uint" ], [ addr, 45 ]);
8 * //_result:
9 */
10export declare function solidityPacked(types: ReadonlyArray<string>, values: ReadonlyArray<any>): string;
11/**
12 * Computes the [[link-solc-packed]] [[keccak256]] hash of %%values%%
13 * respectively to their %%types%%.
14 *
15 * @example:
16 * addr = "0x8ba1f109551bd432803012645ac136ddd64dba72"
17 * solidityPackedKeccak256([ "address", "uint" ], [ addr, 45 ]);
18 * //_result:
19 */
20export declare function solidityPackedKeccak256(types: ReadonlyArray<string>, values: ReadonlyArray<any>): string;
21/**
22 * Computes the [[link-solc-packed]] [[sha256]] hash of %%values%%
23 * respectively to their %%types%%.
24 *
25 * @example:
26 * addr = "0x8ba1f109551bd432803012645ac136ddd64dba72"
27 * solidityPackedSha256([ "address", "uint" ], [ addr, 45 ]);
28 * //_result:
29 */
30export declare function solidityPackedSha256(types: ReadonlyArray<string>, values: ReadonlyArray<any>): string;
31//# sourceMappingURL=solidity.d.ts.map
\No newline at end of file