Conversation
📝 WalkthroughWalkthroughAdds Title Escrow CLI commands (change-holder, endorse-change-owner, endorse-transfer-owner, nominate-change-of-owner), helper utilities, dry-run fee analysis, type migrations (BigNumber → BigNumberish/bigint), refactors token-registry mint flow, adds ethers v6 dependency, and extensive tests for escrow flows. Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant CLI
participant Prompts
participant WalletUtils as Wallet Utils
participant Provider
participant TitleEscrow as TitleEscrow Contract
User->>CLI: run title-escrow command (e.g., change-holder)
CLI->>Prompts: promptForInputs()
Prompts-->>CLI: command payload
CLI->>WalletUtils: getWalletOrSigner(walletOpts)
WalletUtils->>Provider: connect signer
Provider-->>WalletUtils: connected signer
CLI->>Provider: getFeeData / network info
Provider-->>CLI: fee data
CLI->>TitleEscrow: call contract method (transfer/nominate/endorse) with gas options
TitleEscrow->>Provider: submit transaction
Provider-->>TitleEscrow: tx mined (receipt)
TitleEscrow-->>CLI: receipt
CLI->>User: display price, tx hash, etherscan link
sequenceDiagram
participant User
participant DryRun
participant Provider
participant PriceAPI as Price Feed
User->>DryRun: dryRunMode({transaction, estimatedGas?, network})
DryRun->>Provider: get block & fee data / estimateGas if needed
Provider-->>DryRun: feeData / estimatedGas
DryRun->>PriceAPI: fetch exchange rates
PriceAPI-->>DryRun: rates
DryRun->>User: show gas costs and fiat estimates
Estimated code review effort🎯 4 (Complex) | ⏱️ ~45 minutes Poem
📜 Recent review detailsConfiguration used: defaults Review profile: CHILL Plan: Free 📒 Files selected for processing (4)
💤 Files with no reviewable changes (1)
✏️ Tip: You can disable this entire section by setting Note 🎁 Summarized by CodeRabbit FreeYour organization is on the Free plan. CodeRabbit will generate a high-level summary and a walkthrough for each pull request. For a comprehensive line-by-line review, please upgrade your subscription to CodeRabbit Pro by visiting https://app.coderabbit.ai/login. Comment |
# 1.0.0 (2026-03-10) ### Bug Fixes * add tamper check for all blockchain functions ([#21](#21)) ([ea64760](ea64760)) * base64 file format removal ([514f18b](514f18b)) * ether signer compatibility ([a3c36de](a3c36de)) * handle network selection and add new fixtures ([#15](#15)) ([62b2031](62b2031)) * one line command and interactive terminal fix ([23fb955](23fb955)) * package lock ([2e40722](2e40722)) * remove test output files ([f63a4b3](f63a4b3)) * remove the base64 encoding for the file encryption ([#23](#23)) ([d4600e4](d4600e4)) * remove unnecessary details in the readme ([6a9b8a2](6a9b8a2)) * update cli process ([#8](#8)) ([472a9e6](472a9e6)) * updated the file handling error and folder creation for outputs ([a07c6a3](a07c6a3)) * wallet creation ([#14](#14)) ([6499276](6499276)) ### Features * add mint function command ([#1](#1)) ([22ea11f](22ea11f)) * add verify command ([#7](#7)) ([da85177](da85177)) * add w3c sign function ([#4](#4)) ([ea31015](ea31015)) * added encrypt/decrypt functions to the OA feature ([6dab3e7](6dab3e7)) * added functionality for transaction cancel ([33d73f2](33d73f2)) * added husky for lint checks ([70f3ea5](70f3ea5)) * added the gracefull error handling ([27ef0cf](27ef0cf)) * credential status command ([fb83698](fb83698)) * deploy document store command ([#16](#16)) ([bee4e7a](bee4e7a)) * document store ownership ([#20](#20)) ([a3906da](a3906da)) * fixed the prettier formats ([661c27e](661c27e)) * issue and revoke command ([#17](#17)) ([1df37ff](1df37ff)) * oa sign command ([6fc14cb](6fc14cb)) * reject commands ([#5](#5)) ([f50ce1b](f50ce1b)) * remove example files ([eecf1fb](eecf1fb)) * return commands ([#6](#6)) ([d999e6c](d999e6c)) * token registry command ([#19](#19)) ([0f5c523](0f5c523)) * transfer commands ([#3](#3)) ([8414130](8414130)) * update command process and tests ([#12](#12)) ([97986f5](97986f5)) * update the transfer commands with new input process ([#10](#10)) ([603e534](603e534)) * updated package version for trustvc ([995b43f](995b43f)) * updated packages ([7f9712c](7f9712c)) * updated the readme ([8fa493a](8fa493a)) * wallet creation encryption ([#13](#13)) ([e4d368c](e4d368c)) * wrap unwrap oa command ([#9](#9)) ([4ca75f0](4ca75f0))
|
🎉 This PR is included in version 1.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
🚀 Feature: Transfer Commands
Commit: d2205e1 — feat: transfer commands
Branch: feat/transfer-commands
Author: Rishabh Singh
Date: January 12, 2026
📋 Overview
This PR introduces comprehensive Title Escrow transfer functionality to the TrustVC CLI, enabling users to manage transferable records (electronic Bills of Lading) directly via command-line operations.
The feature set covers holder transfers, beneficiary nominations, endorsements, and full ownership transfers, with strong validation, encryption support, gas estimation, and dry-run capabilities.
✨ Key Features
🔄 Title Escrow Transfer Operations
📁 New CLI Commands
src/commands/title-escrow/change-holder.ts— Transfer holder commandnominate-change-of-owner.ts— Nominate beneficiary commandendorse-transfer-of-owner.ts— Endorse beneficiary nominationendorse-change-of-owner.ts— Complete ownership transfertitle-escrow.ts— Main title escrow command router🔧 Implementation Layer
src/implementations/title-escrow/transferHolder.ts– Holder transfer implementation (gas estimation support)nominateBeneficiary.ts– Beneficiary nomination logicendorseNominatedBeneficiary.ts– Nomination endorsement logictransferOwners.ts– Complete ownership transfer logichelpers.ts(shared utilities) – Title escrow contract connection, validation helpers (previous holder/beneficiary, address checks), remark encryption & validation🏭 Token Registry Enhancements
mint.ts🛠️ Utility Improvements
dryRun.ts– New dry-run mode for gas estimation without executioncli-options.ts– Reusable interactive prompts:promptNetworkSelection()promptWalletSelection()promptRemarkAndEncryptionKey()wallet.ts– Improved wallet and signer initializationgas-station.ts– Enhanced gas fee calculationstransaction.ts– Improved transaction output & displaynetworks.ts– Updated network configurations📦 Type Definitions
src/types.tsBaseTitleEscrowCommandTitleEscrowTransferHolderCommandTitleEscrowNominateBeneficiaryCommandTitleEscrowEndorseTransferOfOwnersCommand✅ Test Coverage
Added 12+ new test files, covering:
🌌 Astron Network
🧪 General Coverage
📊 Change Statistics
🔐 Security & Validation
🌐 Supported Networks
All commands support:
🎯 Developer Experience
Summary by CodeRabbit
New Features
Improvements
Tests
Chores
✏️ Tip: You can customize this high-level summary in your review settings.