Skip to content

feat: Add token locking mechanism and SDK retry logic (#191, #170) - #329

Merged
LaGodxy merged 3 commits into
MettaChain:mainfrom
midexol:feature/token-locking-sdk-retry
Apr 28, 2026
Merged

feat: Add token locking mechanism and SDK retry logic (#191, #170)#329
LaGodxy merged 3 commits into
MettaChain:mainfrom
midexol:feature/token-locking-sdk-retry

Conversation

@midexol

@midexol midexol commented Apr 22, 2026

Copy link
Copy Markdown
Contributor

Description

This PR introduces two critical features across the smart contracts and the SDK:

  1. Property Token Vesting (Property Token: Add token locking mechanism #191): Added a time-based token locking mechanism for vesting schedules inside the PropertyToken smart contract. Admin accounts can now assign unlock timestamps for fractional shares to prevent unauthorized transfers.
  2. SDK Retry Logic (SDK: Add retry logic with exponential backoff #170): Implemented an intelligent exponential backoff retry mechanism inside PropChainClient wrapper to handle transient RPC failures.

Changes Made

  • Smart Contracts: Updated PropertyToken struct, added VestingScheduleSet event, and TokenLocked error code. Modified transfer_from and safe_batch_transfer_from to enforce vesting timestamps.
  • SDK: Added withExponentialBackoff in utils/connection.ts and wrapped network reads/writes in PropertyTokenClient.ts.

Closes #191
Closes #170

@drips-wave

drips-wave Bot commented Apr 22, 2026

Copy link
Copy Markdown

@midexol Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@LaGodxy

LaGodxy commented Apr 23, 2026

Copy link
Copy Markdown
Contributor

@midexol resolve conflicts.

@midexol

midexol commented Apr 23, 2026

Copy link
Copy Markdown
Contributor Author

@LaGodxy conflict resolved, review.

@LaGodxy
LaGodxy merged commit 3d271ce into MettaChain:main Apr 28, 2026
10 of 11 checks passed
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.

Property Token: Add token locking mechanism SDK: Add retry logic with exponential backoff

2 participants