Documentation
    Preparing search index...
    ArtifactMapper: {
        assetArtifactCategoryFromApi: (
            artifact: Pick<AssetArtifactFragment, "dataCategory" | "addresses">,
        ) => undefined | AssetArtifactCategory;
        assetArtifactCategoryToApi: (
            dataCategory: AssetArtifactCategory,
        ) => DataCategoryEnum;
    } = ...

    Type declaration

    • assetArtifactCategoryFromApi: (
          artifact: Pick<AssetArtifactFragment, "dataCategory" | "addresses">,
      ) => undefined | AssetArtifactCategory

      Translate the artifact type from the API into something we can use, ignore the rest.

    • assetArtifactCategoryToApi: (dataCategory: AssetArtifactCategory) => DataCategoryEnum