Skip to content

Commit

Permalink
Add category enum to metadata (#82)
Browse files Browse the repository at this point in the history
* Add category enum to metadata

* Update tests
  • Loading branch information
Mrtenz authored Sep 5, 2023
1 parent f58ed81 commit 6ad6342
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ export const VerifiedSnapStruct = object({
summary: optional(string()),
description: optional(string()),
audits: optional(array(AuditStruct)),
category: optional(
enums(['interoperability', 'notifications', 'transaction insights']),
),
tags: optional(array(string())),
support: optional(string()),
sourceCode: optional(string()),
Expand Down
1 change: 1 addition & 0 deletions src/registry.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ describe('Snaps Registry', () => {
],
support: 'https://metamask.io/example/support',
sourceCode: 'https://metamask.io/example/source-code',
category: 'interoperability',
tags: ['accounts', 'example'],
},
versions: {
Expand Down

0 comments on commit 6ad6342

Please sign in to comment.