Skip to content

feat(tron): add TRC20 approval resource sponsoring extension - #84

Open
boboliu-1010 wants to merge 19 commits into
mainfrom
feat/trc20-approval-resource-sponsoring-v1.2.0
Open

feat(tron): add TRC20 approval resource sponsoring extension#84
boboliu-1010 wants to merge 19 commits into
mainfrom
feat/trc20-approval-resource-sponsoring-v1.2.0

Conversation

@boboliu-1010

Copy link
Copy Markdown
Collaborator

Description

Adds the TRC20 Approval Resource Sponsoring extension on top of the released v1.1.0 baseline, targeting the v1.2.0 release of the TypeScript Extensions and TRON packages.

This PR:

  • carries forward the x402 v2 specification migration from docs: migrate and update x402 v2 specifications #81;
  • defines the TRC20 approval resource sponsoring protocol and wire format;
  • implements client, server, and facilitator extension hooks;
  • validates sponsored approval transactions before broadcast;
  • delegates and revokes TRON Energy around settlement;
  • adds unit, integration, and repeatable Nile end-to-end examples;
  • adds changesets for minor releases of @bankofai/x402-extensions and @bankofai/x402-tron.

Tests

  • Core: 649 tests passed
  • Extensions: 531 tests passed
  • TRON: 185 tests passed
  • Core, Extensions, and TRON CJS/ESM/DTS builds passed
  • Extensions and TRON lint and formatting checks passed
  • Nile fresh-wallet end-to-end flow passed: activation, funding, verification, resource delegation, approval settlement, payment, and delegation cleanup
  • Nile settlement transaction: cc54ec9c00bdfb0d7a8ebb7cbabdd833a06108bd84c3edc86e018bfa2bd93a74

Checklist

  • I have formatted and linted my code
  • All new and existing tests pass
  • My commits are signed (required for merge)

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.

2 participants