LensConfig: {
    bindings: IBindings;
    debug?: boolean;
    environment: EnvironmentConfig;
    logger?: ILogger;
    params?: QueryParams;
    sponsored?: boolean;
    storage?: IStorageProvider | IObservableStorageProvider;
}

<LensProvider> configuration

Type declaration

  • bindings: IBindings

    Provides integration with the ethers.js Signer and Provider

  • Optional debug?: boolean

    Enable debug mode. Disable gas estimation on self-funded transactions.

    Default Value

    false

  • environment: EnvironmentConfig

    The environment to use. See production or development.

  • Optional logger?: ILogger

    The logger interface to use when something worth logging happens

    Default Value

    ConsoleLogger, an internal implementation of ILogger interface that logs to the console

  • Optional params?: QueryParams

    The common query params allow you to customize some aspect of the returned data.

  • Optional sponsored?: boolean

    Overwrite all onchain transactions to be self-funded if set to false.

    Default Value

    true

  • Optional storage?: IStorageProvider | IObservableStorageProvider

    The storage provider to use.

    If an implementation of IObservableStorageProvider is provided, the provider will be used to subscribe to changes in the storage.

    Default Value

    an implementation based on window.localStorage and StorageEvent.