Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface AssetManagerConfig

Configuration that can be passed to set the canister id of the assets canister to be managed, inherits actor configuration and has additional asset manager specific configuration options.

Hierarchy

  • ActorConfig
    • AssetManagerConfig

Index

Properties

agent?: Agent

An agent to use in this call, otherwise the actor or call will try to discover the agent to use.

blsVerify?: VerifyFunc

Polyfill for BLS Certificate verification in case wasm is not supported

canisterId: string | Principal

The Canister ID of this Actor. This is required for an Actor.

concurrency?: number

Max number of concurrent requests to the Internet Computer

default

16

effectiveCanisterId?: Principal

The effective canister ID. This should almost always be ignored.

maxChunkSize?: number

Size of each chunk in bytes when the asset manager has to chunk a file

default

1900000

maxSingleFileSize?: number

Max file size in bytes that the asset manager shouldn't chunk

default

1900000

pollingStrategyFactory?: PollStrategyFactory

A polling strategy factory that dictates how much and often we should poll the read_state endpoint to get the result of an update call.

Methods

  • callTransform(methodName: string, args: unknown[], callConfig: CallConfig): void | Partial<CallConfig>
  • An override function for update calls' CallConfig. This will be called on every calls.

    Parameters

    • methodName: string
    • args: unknown[]
    • callConfig: CallConfig

    Returns void | Partial<CallConfig>

  • queryTransform(methodName: string, args: unknown[], callConfig: CallConfig): void | Partial<CallConfig>
  • An override function for query calls' CallConfig. This will be called on every query.

    Parameters

    • methodName: string
    • args: unknown[]
    • callConfig: CallConfig

    Returns void | Partial<CallConfig>

Generated using TypeDoc