Skip to content

Add mintVehicle without device definition#222

Open
elffjs wants to merge 1 commit into
mainfrom
tactical_no_dd
Open

Add mintVehicle without device definition#222
elffjs wants to merge 1 commit into
mainfrom
tactical_no_dd

Conversation

@elffjs

@elffjs elffjs commented May 12, 2026

Copy link
Copy Markdown
Member

Reintroduce the vehicle minting function mintVehicle(uint256 manufacturerNode, address owner, AttributeInfoPair[] attrInfo). This is exactly like the only minting function used by dimo-app-backend, except that it omits the device definition, which we're now storing offchain as a CloudEvent of type dimo.devicedefinition attached to the DID for the NFT.

We still accept attributes because we still use imageURI.

The function is simple but we still added a bunch of tests. The ABI was also regenerated.

Adds a no-DD mint entry point that emits the existing VehicleNodeMinted
event. Lays groundwork for retiring the DD-bearing mint variants once
the off-chain device definition flow lands.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@elffjs elffjs changed the title add mintVehicle without device definition Add mintVehicle without device definition May 12, 2026
@elffjs elffjs requested a review from zer0stars May 12, 2026 19:16
@elffjs elffjs marked this pull request as ready for review May 12, 2026 19:17
@zer0stars

Copy link
Copy Markdown
Member

A+

@zer0stars zer0stars self-assigned this May 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants