You are helping a contributor populate or update feature data for a wallet in the Walletbeat project.
The wallet they want to work on is: $ARGUMENTS (if blank, ask them which wallet before proceeding).
You have explicit permission to create and edit files inside data/contributors/ and data/ (including all subdirectories).
Your first actions
Before doing anything else:
- If
$ARGUMENTSis blank, ask: "Which wallet would you like to add feature data for?" - Identify the wallet type (software / hardware / embedded) if not obvious from the name.
- Check that the wallet file already exists:
- Software:
data/software-wallets/[wallet-name].ts - Hardware:
data/hardware-wallets/[wallet-name].ts - Embedded:
data/embedded-wallets/[wallet-name].ts - If it does not exist, let the contributor know and suggest using
/wallet-createfirst to register the wallet.
- Ask: "What wallet data would you like to add or update?" (e.g., a specific feature, all null fields, a particular group of fields)
- Ask: "What is your preferred display name or nickname?" and "Do you already have a contributor file in
data/contributors/?"
- If yes — confirm it exists. You only need to ensure they appear in the
contributors: []array of the wallet file. - If no — also ask for their affiliation (company / role, if any) and a URL to their profile. You will create the contributor file in Step A below.
- Read the following files in parallel (skip files that don't exist):
- The existing wallet file
- The completed reference example:
data/software-wallets/completed.tmpl.ts - The contributor guide:
resources/docs/contribute/wallet-data/wallet-data.md - The example contributor file:
data/contributors/example.ts(only if they need a new contributor file)
After reading these files, greet the contributor, summarize which wallet and fields you'll be working on, and begin.
Step A — Contributor file
Handle this before touching any feature data.
If the contributor already has a file
Confirm it exists and note the exported constant name. Make sure they appear in the wallet file's contributors: [] array. If not, add them.
If the contributor does not have a file yet
Create data/contributors/[their-nickname].ts using data/contributors/example.ts as the template.
Key rules:
- Affiliation must always be disclosed. If they work for or have equity in the wallet's company, set
affiliationaccordingly. If they have no affiliation, setaffiliation: 'NO_AFFILIATION'— do not use[]or omit the field. - Import the entity constant if they have an affiliation (it must already exist in
data/entities/).
Example for an affiliated contributor:
import type { Contributor } from '@/schema/wallet'
import { myWalletCorp } from '@/data/entities/my-wallet-corp'
export const chainMonkey: Contributor = {
name: 'Chain Monkey',
affiliation: [
{
developer: myWalletCorp,
hasEquity: true,
role: 'EMPLOYEE', // or 'FOUNDER', 'ADVISOR', 'CONTRACTOR'
},
],
}
Example for an unaffiliated contributor:
import type { Contributor } from '@/schema/wallet'
export const chainMonkey: Contributor = {
name: 'Chain Monkey',
affiliation: 'NO_AFFILIATION',
}
Once the contributor file exists (confirmed or newly created), make sure they appear in the wallet file's contributors: [] array. Also update lastUpdated to today's date.
Step B — Populate feature fields
The goal is to replace every null field (or the specific fields the contributor identified) with real data gathered by testing the wallet and/or inspecting its source code.
General workflow for each field
For every null field:
- Explain what the field measures (use TSDoc from the type definition — Control+Click on the field name in the editor to navigate to the type)
- Describe how to test or verify it
- Show the completed example value from
data/software-wallets/completed.tmpl.tsif applicable - Let the contributor fill it in with a
ref
Comments guidance
Comments are almost always best avoided in wallet data file. Comments are not consumed by anything, so they are not visible on the site. Comments in wallet /data files are only appropriate for things like:
- Notes for future wallet data reviewers about something, e.g. an impending change to the wallet implementation that will cause a rating to flip but that can't be rated at the time the comment is written.
- Commented-out feature fields during refactorings (transient).
- Explanations on how to retest a specific feature quickly, e.g. keywords to search for in the codebase, etc. (if such things are not already obvious from the
reffields) - Explanations for why a wallet's feature data doesn't exactly line up with the reality of the wallet, e.g. the wallet's implementation reflects nuance that the feature fields don't capture. If present, such comments should generally be accompanied by an issue number reflecting what needs to be addressed to make the feature field capable of representing this properly.
- Long explanations of a rating that won't reasonably fit in a
ref.explanationfield (see below). These should be extremely rare; if your explanation is so long-winded that it takes more than a sentence or two to explain, maybe the real problem is that you need to find a more obvious reference.
Comments are definitely not appropriate for:
- Prose that repeats what the feature field essentially expresses.
- Explanations that mirror the contents of
refdata. - Temporal comments reflecting the data change being made in the present moment / PR.
- Explanations that relate to the rating of the attribute that a feature field is related to. Feature fields are distinct from attributes, even though they often have a one-to-one relationship. Explanations for nuanced attribute ratings are rare, but when they are necessary, they should use the
overrides.attributes.*fields instead, so that they may show up on the site.
The type system — read this section carefully
null = unknown. Never use undefined or omit the field. A null field means "we don't know yet." Leave fields as null rather than guessing. If the answer is known to be "none / does not apply", use a named sentinel (NO_*) or empty array — not undefined. See "How /data fields are encoded" in resources/docs/contribute/wallet-data/wallet-data.md.
VariantFeature<T> — Nearly every field is wrapped in this. It means you can either:
- Use a single value for all variants:
multiAddress: featureSupported - Use a per-variant object if the behavior differs:
multiAddress: { [Variant.BROWSER]: featureSupported, [Variant.MOBILE]: notSupported }
Support / featureSupported / notSupported / supported({...}):
import { featureSupported, notSupported, supported } from '@/schema/features/support'
// Feature is supported, no extra data needed:
multiAddress: featureSupported
// Feature is not supported:
multiAddress: notSupported
// Feature is supported AND you need to provide additional structured data:
chainConfigurability: supported({
ref: refTodo,
l1: notSupported,
nonL1: supported({ rpcEndpointConfiguration: RpcEndpointConfiguration.YES_BEFORE_ANY_REQUEST }),
customChainRpcEndpoint: featureSupported,
})
WithRef<T> — Adds a ref field for sourcing. Always fill ref with evidence:
// Single URL (shorthand):
ref: 'https://github.com/AmbireTech/ambire-common/blob/729f19c91bf07d49b78f22dcf30822c88587bd2a/src/libs/portfolio/portfolio.ts#L146-L150'
// Single reference object with label and explanation:
ref: {
url: 'https://example.com/docs/chain-config',
label: 'Chain configuration docs',
explanation: 'This page documents how to configure RPC endpoints.',
}
// Multiple references (array):
ref: [
{ url: 'https://...', label: '...', explanation: '...' },
{ url: 'https://...', label: '...' },
]
// Placeholder — acceptable for initial PRs:
ref: refTodo
// Not necessary — use when the fact is self-evident:
ref: refNotNecessary
MustRef<T> — Like WithRef but you must provide a real ref. refTodo and refNotNecessary will not compile. Used for fields like publicSecurityAudits where the URL to the audit report is the primary piece of evidence.
Nullable<T> — Any subfield can be null if unknown. If any subfield is null, Walletbeat treats the entire field as unrated.
Type inference tip: If TypeScript complains about the supported({...}) call, explicitly annotate the type parameter:
supported<WithRef<ChainConfigurability>>({ ... })
Reference label and explanation fields must not contain semicolons or em dashes. Write separate sentences instead. Avoid AI-ish words such as "gate" and "ship".
References often point to wallet code, which should ideally be formatted as GitHub links. When this is the case, the following rules apply:
- The GitHub URL _must_ contain the full commit hash, not a branch name. This pins the content of the file so that the reference always points to the version of the file that was actually reviewed.
- The GitHub URL _should_ in most cases contain a line number range as anchor (e.g.
#L146-L150). When specified, this causes the code snippet referred to by the line range to be imported into the Walletbeat repository, which allows it to be displayed directly on the site. Even when a line range is inappropriate (e.g. because the entire file is relevant), a range that covers the whole file may still be fine, as long as the file is reasonably small and inline display adds value. - For binary files where line ranges don't make sense, commit-pinned GitHub file/blob URLs should include the special anchor
#binary-file. This anchor is synthetic and doesn't exist on GitHub, and it will be stripped out from the rendered links on the site. Walletbeat's integrity checks use it to confirm the contributor has acknowledged this rule. The anchor marks the URL as pointing to a binary file. - For text files where a line number range is truly undesirable, commit-pinned GitHub file/blob URLs should include the special anchor
#not-line-specific. This anchor is synthetic and doesn't exist on GitHub, and it will be stripped out from the rendered links on the site. Walletbeat's integrity checks use it to confirm the contributor has acknowledged this rule. The anchor marks the URL as a text file intentionally without a line range.
References may also point to files inside the public/references subdirectory of the repository. This is achieved by simply putting the repository-root-relative path of the file as the url field. This is notably useful for screenshot references, which are displayed as a gallery on the site. Such references are highly preferred over code references for feature fields related to user interface features (e.g. scam prevention, clear signing, etc.), as actual wallet screenshots are much more obvious proof of implementation than UI code itself. Note that adding images to the site requires successfully passing pnpm check:all, which updates checked-in image metadata, prior to sending the PR for review.
Reference labels and explanation text are subject to grammar verification rules in pnpm check:all. Ensure it all passes. If not, don't remove these fields, but rather update them to abide by the rules, or (in rare cases) update the rules if trying to fit the fields into the mold the rules enforce would degrade their labeling/explanatory quality.
Field-by-field guidance
Walk through each null field in the wallet file (or only the fields the contributor asked about). For each one, provide:
- What it measures (from the TSDoc comment at the type definition)
- How to test it (describe the testing method: try the wallet UI, inspect network traffic, read source code)
- Completed Passing wallet example (show the corresponding value from
data/software-wallets/completed.tmpl.tsif applicable) - Ref expectations (does it need
WithRef? IsrefTodookay? Does it needMustRef?)
Final step — Verify everything
Once all desired fields are filled in, run:
pnpm fix # Auto-fix formatting
pnpm check:all # Must pass before opening a PR
Help the contributor fix any remaining TypeScript or lint errors before they open their pull request.
Key rules to remind the contributor throughout
null= unknown — never useundefinedor omit the field; always prefernullover guessing. Use a sentinel (NO_*) or empty array when the answer is known to be "none".- Every non-obvious value needs a
ref— a URL pointing to source code, docs, or a public statement. refTodois a valid placeholder for initial PRs; improve refs before the PR is merged if possible.refNotNecessaryis only for self-evident facts (e.g., Safe Wallet supports Safe multisigs).MustReffields require a real URL —refTodowon't compile there.- Run
pnpm fixbefore every commit to auto-fix formatting. - Run
pnpm check:allbefore opening the PR — it must pass. - Affiliation must be disclosed — if the contributor is affiliated with the wallet's company, they must set the
affiliationfield in their contributor file. - Control+Click on any field in your editor to jump to its type definition — this is the fastest way to understand what a field expects.
- Look at
completed.tmpl.tsfor any field you're confused about — it's the most completely filled-in wallet example.