XYO Platform SDK - v3.10.6
    Preparing search index...

    Variable asWitnessInstanceConst

    asWitnessInstance: {
        <
            TType extends
                WitnessInstance<
                    BaseParamsFields & {
                        account?: AccountInstance
                        | "random";
                        additionalSigners?: AccountInstance[];
                        addToResolvers?: boolean;
                        allowNameResolution?: boolean;
                        config: AnyConfigSchema;
                        ephemeralQueryAccountEnabled?: boolean;
                        moduleIdentifierTransformers?: ModuleIdentifierTransformer[];
                        privateChildren?: ModuleInstance[];
                        publicChildren?: ModuleInstance[];
                    },
                    Payload<void, void>,
                    Payload<void, void>,
                    WitnessModuleEventData<
                        ModuleInstance<
                            BaseParamsFields & {
                                account?: AccountInstance
                                | "random";
                                additionalSigners?: AccountInstance[];
                                addToResolvers?: boolean;
                                allowNameResolution?: boolean;
                                config: TConfig extends AnyConfigSchema<ModuleConfig>
                                    ? TConfig
                                    : AnyConfigSchema<ModuleConfig>;
                                ephemeralQueryAccountEnabled?: boolean;
                                moduleIdentifierTransformers?: ModuleIdentifierTransformer[];
                                privateChildren?: ModuleInstance[];
                                publicChildren?: ModuleInstance[];
                            },
                            ModuleEventData<object>,
                        >,
                        Payload,
                        Payload,
                    >,
                >,
        >(
            value: AnyNonPromise,
            config?: TypeCheckConfig,
        ): undefined | TType;
        <
            TType extends
                WitnessInstance<
                    BaseParamsFields & {
                        account?: AccountInstance
                        | "random";
                        additionalSigners?: AccountInstance[];
                        addToResolvers?: boolean;
                        allowNameResolution?: boolean;
                        config: AnyConfigSchema;
                        ephemeralQueryAccountEnabled?: boolean;
                        moduleIdentifierTransformers?: ModuleIdentifierTransformer[];
                        privateChildren?: ModuleInstance[];
                        publicChildren?: ModuleInstance[];
                    },
                    Payload<void, void>,
                    Payload<void, void>,
                    WitnessModuleEventData<
                        ModuleInstance<
                            BaseParamsFields & {
                                account?: AccountInstance
                                | "random";
                                additionalSigners?: AccountInstance[];
                                addToResolvers?: boolean;
                                allowNameResolution?: boolean;
                                config: TConfig extends AnyConfigSchema<ModuleConfig>
                                    ? TConfig
                                    : AnyConfigSchema<ModuleConfig>;
                                ephemeralQueryAccountEnabled?: boolean;
                                moduleIdentifierTransformers?: ModuleIdentifierTransformer[];
                                privateChildren?: ModuleInstance[];
                                publicChildren?: ModuleInstance[];
                            },
                            ModuleEventData<object>,
                        >,
                        Payload,
                        Payload,
                    >,
                >,
        >(
            value: AnyNonPromise,
            assert: StringOrAlertFunction<
                WitnessInstance<
                    BaseParamsFields & {
                        account?: AccountInstance
                        | "random";
                        additionalSigners?: AccountInstance[];
                        addToResolvers?: boolean;
                        allowNameResolution?: boolean;
                        config: AnyConfigSchema;
                        ephemeralQueryAccountEnabled?: boolean;
                        moduleIdentifierTransformers?: ModuleIdentifierTransformer[];
                        privateChildren?: ModuleInstance[];
                        publicChildren?: ModuleInstance[];
                    },
                    Payload<void, void>,
                    Payload<void, void>,
                    WitnessModuleEventData<
                        ModuleInstance<
                            BaseParamsFields & {
                                account?: AccountInstance
                                | "random";
                                additionalSigners?: AccountInstance[];
                                addToResolvers?: boolean;
                                allowNameResolution?: boolean;
                                config: TConfig extends AnyConfigSchema<ModuleConfig>
                                    ? TConfig
                                    : AnyConfigSchema<ModuleConfig>;
                                ephemeralQueryAccountEnabled?: boolean;
                                moduleIdentifierTransformers?: ModuleIdentifierTransformer[];
                                privateChildren?: ModuleInstance[];
                                publicChildren?: ModuleInstance[];
                            },
                            ModuleEventData<object>,
                        >,
                        Payload,
                        Payload,
                    >,
                >,
            >,
            config?: TypeCheckConfig,
        ): TType;
    }

    Type declaration

      • <
            TType extends
                WitnessInstance<
                    BaseParamsFields & {
                        account?: AccountInstance
                        | "random";
                        additionalSigners?: AccountInstance[];
                        addToResolvers?: boolean;
                        allowNameResolution?: boolean;
                        config: AnyConfigSchema;
                        ephemeralQueryAccountEnabled?: boolean;
                        moduleIdentifierTransformers?: ModuleIdentifierTransformer[];
                        privateChildren?: ModuleInstance[];
                        publicChildren?: ModuleInstance[];
                    },
                    Payload<void, void>,
                    Payload<void, void>,
                    WitnessModuleEventData<
                        ModuleInstance<
                            BaseParamsFields & {
                                account?: AccountInstance
                                | "random";
                                additionalSigners?: AccountInstance[];
                                addToResolvers?: boolean;
                                allowNameResolution?: boolean;
                                config: TConfig extends AnyConfigSchema<ModuleConfig>
                                    ? TConfig
                                    : AnyConfigSchema<ModuleConfig>;
                                ephemeralQueryAccountEnabled?: boolean;
                                moduleIdentifierTransformers?: ModuleIdentifierTransformer[];
                                privateChildren?: ModuleInstance[];
                                publicChildren?: ModuleInstance[];
                            },
                            ModuleEventData<object>,
                        >,
                        Payload,
                        Payload,
                    >,
                >,
        >(
            value: AnyNonPromise,
            config?: TypeCheckConfig,
        ): undefined | TType
      • Type Parameters

        Parameters

        Returns undefined | TType

      • <
            TType extends
                WitnessInstance<
                    BaseParamsFields & {
                        account?: AccountInstance
                        | "random";
                        additionalSigners?: AccountInstance[];
                        addToResolvers?: boolean;
                        allowNameResolution?: boolean;
                        config: AnyConfigSchema;
                        ephemeralQueryAccountEnabled?: boolean;
                        moduleIdentifierTransformers?: ModuleIdentifierTransformer[];
                        privateChildren?: ModuleInstance[];
                        publicChildren?: ModuleInstance[];
                    },
                    Payload<void, void>,
                    Payload<void, void>,
                    WitnessModuleEventData<
                        ModuleInstance<
                            BaseParamsFields & {
                                account?: AccountInstance
                                | "random";
                                additionalSigners?: AccountInstance[];
                                addToResolvers?: boolean;
                                allowNameResolution?: boolean;
                                config: TConfig extends AnyConfigSchema<ModuleConfig>
                                    ? TConfig
                                    : AnyConfigSchema<ModuleConfig>;
                                ephemeralQueryAccountEnabled?: boolean;
                                moduleIdentifierTransformers?: ModuleIdentifierTransformer[];
                                privateChildren?: ModuleInstance[];
                                publicChildren?: ModuleInstance[];
                            },
                            ModuleEventData<object>,
                        >,
                        Payload,
                        Payload,
                    >,
                >,
        >(
            value: AnyNonPromise,
            assert: StringOrAlertFunction<
                WitnessInstance<
                    BaseParamsFields & {
                        account?: AccountInstance
                        | "random";
                        additionalSigners?: AccountInstance[];
                        addToResolvers?: boolean;
                        allowNameResolution?: boolean;
                        config: AnyConfigSchema;
                        ephemeralQueryAccountEnabled?: boolean;
                        moduleIdentifierTransformers?: ModuleIdentifierTransformer[];
                        privateChildren?: ModuleInstance[];
                        publicChildren?: ModuleInstance[];
                    },
                    Payload<void, void>,
                    Payload<void, void>,
                    WitnessModuleEventData<
                        ModuleInstance<
                            BaseParamsFields & {
                                account?: AccountInstance
                                | "random";
                                additionalSigners?: AccountInstance[];
                                addToResolvers?: boolean;
                                allowNameResolution?: boolean;
                                config: TConfig extends AnyConfigSchema<ModuleConfig>
                                    ? TConfig
                                    : AnyConfigSchema<ModuleConfig>;
                                ephemeralQueryAccountEnabled?: boolean;
                                moduleIdentifierTransformers?: ModuleIdentifierTransformer[];
                                privateChildren?: ModuleInstance[];
                                publicChildren?: ModuleInstance[];
                            },
                            ModuleEventData<object>,
                        >,
                        Payload,
                        Payload,
                    >,
                >,
            >,
            config?: TypeCheckConfig,
        ): TType
      • Type Parameters

        Parameters

        Returns TType