interface BridgeParams<
    TConfig extends
        AnyConfigSchema<BridgeConfig> = AnyConfigSchema<BridgeConfig>,
> {
    account?: AccountInstance
    | "random";
    additionalSigners?: AccountInstance[];
    addToResolvers?: boolean;
    allowNameResolution?: boolean;
    config: TConfig extends DeepRestrictToStringKeys<
        {
            allowedQueries?: string[];
            archiving?: { archivists?: string[]; queries?: string[] };
            archivist?: string;
            consoleLogger?: LogLevel;
            labels?: { [key: string]: undefined | string };
            name?: string;
            paging?: { [key: string]: { size?: number } };
            retry?: { backoff?: number; interval?: number; retries?: number };
            schema: string;
            security?: {
                allowAnonymous?: boolean;
                allowed?: { [key: string]: (Lowercase<string> | Lowercase<(...)>[])[] };
                disallowed?: { [key: string]: Lowercase<string>[] };
            };
            sign?: boolean;
            storeQueries?: boolean;
            timestamp?: boolean;
        },
    >
        ? TConfig<TConfig>
        : DeepRestrictToStringKeys<
            {
                allowedQueries?: string[];
                archiving?: { archivists?: string[]; queries?: string[] };
                archivist?: string;
                consoleLogger?: LogLevel;
                labels?: { [key: string]: undefined | string };
                name?: string;
                paging?: { [key: string]: { size?: number } };
                retry?: { backoff?: number; interval?: number; retries?: number };
                schema: string;
                security?: {
                    allowAnonymous?: boolean;
                    allowed?: { [key: string]: (Lowercase<string> | Lowercase<(...)>[])[] };
                    disallowed?: { [key: string]: Lowercase<string>[] };
                };
                sign?: boolean;
                storeQueries?: boolean;
                timestamp?: boolean;
            },
        >;
    ephemeralQueryAccountEnabled?: boolean;
    logger?: Logger;
    moduleIdentifierTransformers?: ModuleIdentifierTransformer[];
    resolver?: ModuleResolverInstance;
}

Type Parameters

Hierarchy (View Summary)

Properties

account?: AccountInstance | "random"
additionalSigners?: AccountInstance[]
addToResolvers?: boolean
allowNameResolution?: boolean
config: TConfig extends DeepRestrictToStringKeys<
    {
        allowedQueries?: string[];
        archiving?: { archivists?: string[]; queries?: string[] };
        archivist?: string;
        consoleLogger?: LogLevel;
        labels?: { [key: string]: undefined | string };
        name?: string;
        paging?: { [key: string]: { size?: number } };
        retry?: { backoff?: number; interval?: number; retries?: number };
        schema: string;
        security?: {
            allowAnonymous?: boolean;
            allowed?: { [key: string]: (Lowercase<string> | Lowercase<(...)>[])[] };
            disallowed?: { [key: string]: Lowercase<string>[] };
        };
        sign?: boolean;
        storeQueries?: boolean;
        timestamp?: boolean;
    },
>
    ? TConfig<TConfig>
    : DeepRestrictToStringKeys<
        {
            allowedQueries?: string[];
            archiving?: { archivists?: string[]; queries?: string[] };
            archivist?: string;
            consoleLogger?: LogLevel;
            labels?: { [key: string]: undefined | string };
            name?: string;
            paging?: { [key: string]: { size?: number } };
            retry?: { backoff?: number; interval?: number; retries?: number };
            schema: string;
            security?: {
                allowAnonymous?: boolean;
                allowed?: { [key: string]: (Lowercase<string> | Lowercase<(...)>[])[] };
                disallowed?: { [key: string]: Lowercase<string>[] };
            };
            sign?: boolean;
            storeQueries?: boolean;
            timestamp?: boolean;
        },
    >
ephemeralQueryAccountEnabled?: boolean
logger?: Logger
moduleIdentifierTransformers?: ModuleIdentifierTransformer[]