Description
Document and guard the coupling between SDK types and the on-chain contract.
Problem Statement
src/types/index.ts mirrors DataKey from vero-core-contracts/src/contracts/storage_layout.rs. Nothing currently detects drift between them. If the contract renames a key, the SDK keeps writing the old one and silently orphans on-chain entries — a failure with no error message anywhere.
Proposed Changes
Technical Implementation Scaffolding
- Target Repository: vero-sdk
- Target Path: src/types/index.ts
- Branch Naming: chore/issue--datakey-sync-guard
- Authority Context: Correctness — on-chain data compatibility
Acceptance Criteria
Definition of Done
Description
Document and guard the coupling between SDK types and the on-chain contract.
Problem Statement
src/types/index.tsmirrorsDataKeyfromvero-core-contracts/src/contracts/storage_layout.rs. Nothing currently detects drift between them. If the contract renames a key, the SDK keeps writing the old one and silently orphans on-chain entries — a failure with no error message anywhere.Proposed Changes
src/types/index.ts, naming the source fileCONTRIBUTING.mdTechnical Implementation Scaffolding
Acceptance Criteria
npm test,npm run typecheck,npm run lint, andnpm run buildall passDefinition of Done