UNPKG

@1hive/connect-core

Version:

Access and interact with Aragon Organizations and their apps.

26 lines 993 B
import { Result } from '@ethersproject/abi'; import { StepDecoded } from '../types'; import App from '../entities/App'; interface KernelNamespace { name: string; hash: string; } export declare function getKernelNamespace(hash: string): KernelNamespace | null; /** * Decode `Kernel.setApp()` parameters based on transaction data. * * @param {Object} data Transaction data * @return {Object} Decoded parameters for `setApp()` (namespace, appId, appAddress) */ export declare function decodeKernelSetAppParameters(data: string): Result; export declare function isKernelAppCodeNamespace(namespaceHash: string): boolean; /** * Is the transaction intent for `Kernel.setApp()`? * * @param {Object} kernelApp App artifact for Kernel * @param {Object} intent Transaction intent * @return {Boolean} Whether the intent is `Kernel.setApp()` */ export declare function isKernelSetAppIntent(kernelApp: App, intent: StepDecoded): boolean; export {}; //# sourceMappingURL=kernel.d.ts.map