From 58985acf524db7a119c980a92edbc92a6e0642f4 Mon Sep 17 00:00:00 2001 From: plondon Date: Tue, 14 Mar 2023 11:20:31 -0400 Subject: [PATCH] Add networkName to search object --- src/model/ChainObject.ts | 1 + src/releaser/algolia/index.ts | 3 +++ 2 files changed, 4 insertions(+) diff --git a/src/model/ChainObject.ts b/src/model/ChainObject.ts index 6f42173..e58865d 100644 --- a/src/model/ChainObject.ts +++ b/src/model/ChainObject.ts @@ -11,6 +11,7 @@ export type ObjectType = 'network' | 'asset'; export abstract class ChainObject extends RepoObject { id: string; networkCode: string; + networkName: string; active: boolean; color: string | null; config: Config | null; diff --git a/src/releaser/algolia/index.ts b/src/releaser/algolia/index.ts index c5211a8..f757aec 100644 --- a/src/releaser/algolia/index.ts +++ b/src/releaser/algolia/index.ts @@ -10,6 +10,7 @@ declare interface IndexedAsset { objectID: string; address?: string; networkCode: string; + networkName: string; type: ObjectType; name: string; symbol: string; @@ -20,6 +21,7 @@ declare interface IndexedAsset { function transform({ id: objectID, networkCode, + networkName, type, name, symbol, @@ -33,6 +35,7 @@ function transform({ return { objectID, networkCode, + networkName, type, name, symbol,