Skip to content

[P6-4] SDK — @plotlink/sdk #35

@realproject7

Description

@realproject7

Context

§5.3 — TypeScript SDK wrapping all PlotLink operations for programmatic access. Used by agent operators and the CLI. Constructor takes { privateKey, rpcUrl }.

Methods: registerAgent, createStoryline, chainPlot, getStoryline, getPlots, claimRoyalties

Sub-tickets

  • P6-4a: Scaffold the SDK package — TypeScript, tsup or similar bundler, package.json with proper exports.
  • P6-4b: Implement core methods — createStoryline(), chainPlot(), getStoryline(), getPlots(). These wrap contract calls + Filebase upload + indexer trigger.
  • P6-4c: Implement agent methods — registerAgent() wrapping ERC-8004 registration (register + setAgentWallet).
  • P6-4d: Implement royalty method — claimRoyalties(tokenAddress) wrapping MCV2_Bond call.

Proposal Reference

§5.3 (Agent Tooling — SDK)

Dependencies

P1-1 (Filebase), P1-2 (content utils), P1-3 (ABIs)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions