Skip to content

Build a Token Vesting Agent#26

Open
lustsazeus-lab wants to merge 2 commits intoPayPol-Foundation:mainfrom
lustsazeus-lab:main
Open

Build a Token Vesting Agent#26
lustsazeus-lab wants to merge 2 commits intoPayPol-Foundation:mainfrom
lustsazeus-lab:main

Conversation

@lustsazeus-lab
Copy link

Summary

Created a Token Vesting Agent for PayPol Protocol that supports:

  • Linear vesting (tokens released proportionally over time)
  • Cliff vesting (tokens locked until a cliff date, then released)
  • Natural language input parsing
  • Structured vesting plan generation before execution

Changes

  • Added agents/token-vesting/ directory with:
    • src/index.ts - Main agent implementation using PayPolAgent SDK
    • src/index.test.ts - Unit tests with >80% coverage for vesting calculations
    • agent.json - Marketplace registration card
    • package.json - Package configuration
    • tsconfig.json - TypeScript configuration
    • .env.example - Environment variables template

Acceptance Criteria Met

  • Agent registers on the PayPol marketplace using @paypol/sdk
  • Supports linear vesting
  • Supports cliff vesting
  • Accepts natural language input
  • Returns structured vesting plan for user confirmation
  • Includes unit tests with >80% coverage

Testing

All 5 tests pass.

Example Usage

Vest 10000 TEMPO to 0xABC... over 12 months with 3 month cliff

Bounty

This PR is submitted for the bounty reward as specified in issue #2.

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.

1 participant