import { StorageAccessor, StorageMapKeyType } from '../model'; import { EthqlContext } from '@ethql/base'; /** * Adds the previous type of storage and the current query to path. * The algorithm for finding the new base is: toHex(base added (not concatenated) to query). */ declare function solidityFixedArray(obj: StorageAccessor, { at: selector }: { at: any; }): StorageAccessor; /** * Adds the previous type of storage and the current query to path. * The algorithm for finding the new base is: toHex(sha3('0x' + pad(base))) added (not concatenated) to query). */ declare function solidityDynamicArray(obj: StorageAccessor, { at: selector }: { at: any; }): StorageAccessor; /** * Adds the previous type of storage and the current query to path. * The previous type of storage is used as the query always refers to a storage location in the storage above it. * At a value call, the cumulative query is calculated using a different algorithm for each storage type: * For a number or address map, the algorithm is: sha3('0x' + pad(query) + pad(base)). * For a string map, the algorithm is: sha3(toHex(query) + pad(base)). */ declare function solidityMap(obj: StorageAccessor, { keyType, at: selector }: { keyType: StorageMapKeyType; at: string; }): StorageAccessor; /** * Compiles the cumulative query from the path and value query and returns the contract's storage at that location. */ declare function value({ address, path }: StorageAccessor, { at: selector }: { at: any; }, { services }: EthqlContext): Promise; declare const _default: { Storage: { value: typeof value; solidityFixedArray: typeof solidityFixedArray; solidityDynamicArray: typeof solidityDynamicArray; solidityMap: typeof solidityMap; }; SolidityFixedArray: { value: typeof value; solidityFixedArray: typeof solidityFixedArray; solidityDynamicArray: typeof solidityDynamicArray; solidityMap: typeof solidityMap; }; SolidityDynamicArray: { value: typeof value; solidityFixedArray: typeof solidityFixedArray; solidityDynamicArray: typeof solidityDynamicArray; solidityMap: typeof solidityMap; }; SolidityMap: { value: typeof value; solidityFixedArray: typeof solidityFixedArray; solidityDynamicArray: typeof solidityDynamicArray; solidityMap: typeof solidityMap; }; }; export default _default; //# sourceMappingURL=storage.d.ts.map