Skip to content

Commit

Permalink
Add more metadata fields (#316)
Browse files Browse the repository at this point in the history
Add a handful of new metadata fields that are needed in the near future.
  • Loading branch information
FrederikBolding authored Dec 7, 2023
1 parent df99180 commit 323c2cc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,19 @@ export const VerifiedSnapStruct = object({
description: optional(string()),
audits: optional(array(AuditStruct)),
category: optional(
enums(['interoperability', 'notifications', 'transaction insights']),
enums([
'interoperability',
'notifications',
'transaction insights',
'account management',
]),
),
tags: optional(array(string())),
support: optional(SupportStruct),
sourceCode: optional(string()),
hidden: optional(boolean()),
privateCode: optional(boolean()),
privacyPolicy: optional(string()),
}),
versions: record(VersionStruct, VerifiedSnapVersionStruct),
});
Expand Down
2 changes: 2 additions & 0 deletions src/registry.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ describe('Snaps Registry', () => {
sourceCode: 'https://metamask.io/example/source-code',
category: 'interoperability',
tags: ['accounts', 'example'],
privacyPolicy: 'https://metamask.io/example/privacy',
privateCode: true,
},
versions: {
['0.1.0' as SemVerVersion]: {
Expand Down

0 comments on commit 323c2cc

Please sign in to comment.