Coda by Ian Macalinao
    Preparing search index...

    Type Alias LifecycleHookInitInfo

    Initialization data for the LifecycleHook external plugin adapter.

    type LifecycleHookInitInfo = {
        dataAuthority: Option<Authority>;
        extraAccounts: Option<ExtraAccount[]>;
        hookedProgram: Address;
        initPluginAuthority: Option<Authority>;
        lifecycleChecks: (readonly [HookableLifecycleEvent, ExternalCheckResult])[];
        schema: Option<ExternalPluginAdapterSchema>;
    }
    Index

    Properties

    dataAuthority: Option<Authority>

    The authority allowed to write data returned by the hook, if any.

    extraAccounts: Option<ExtraAccount[]>

    Additional accounts to forward to the hooked program.

    hookedProgram: Address

    The program to invoke via CPI at the configured lifecycle events.

    initPluginAuthority: Option<Authority>

    The authority to manage this adapter; defaults to the adapter type's standard authority if omitted.

    lifecycleChecks: (readonly [HookableLifecycleEvent, ExternalCheckResult])[]

    The lifecycle events that should trigger the hook, and how its result should be interpreted.

    The serialization format to use for data returned by the hook.