UNPKG

@1hive/connect-core

Version:

Access and interact with Aragon Organizations and their apps.

29 lines 1.4 kB
import { AppMethod } from '../types'; import App from '../entities/App'; export declare const apmAppId: (appName: string) => string; /** * Find the method descriptor corresponding to the data component of a * transaction sent to `app`. * * @param {Object} app App artifact * @param {Object} data Data component of a transaction to app * @param {Object} options Options * @param {boolean} [options.allowDeprecated] Allow deprecated functions to be returned. Defaults to true. * @return {Object|void} Method with radspec notice and function signature, or undefined if none was found */ export declare function findAppMethodFromData(app: App, data: string, { allowDeprecated }?: { allowDeprecated?: boolean | undefined; }): AppMethod | undefined; /** * Find the method descriptor corresponding to an app's method signature. * * @param {Object} app App * @param {string} methodSignature Method signature to be called * @param {Object} options Options * @param {boolean} [options.allowDeprecated] Allow deprecated functions to be returned. Defaults to true. * @return {Object|void} Method with radspec notice and function signature, or undefined if none was found */ export declare function findAppMethodFromSignature(app: App, methodSignature: string, { allowDeprecated }?: { allowDeprecated?: boolean | undefined; }): AppMethod | undefined; //# sourceMappingURL=app.d.ts.map