Skip to content

feat: add TRDEFI action provider (read-only stablecoin liquidity) - #1524

Open
TRDEFI wants to merge 1 commit into
coinbase:mainfrom
TRDEFI:add-trdefi-provider
Open

TRDEFI wants to merge 1 commit into
coinbase:mainfrom
TRDEFI:add-trdefi-provider

Conversation

@TRDEFI

@TRDEFI TRDEFI commented Sep 28, 2026

Copy link
Copy Markdown

What

New TRDEFI action provider (typescript/agentkit/src/action-providers/trdefi): read-only access to TRDEFI, a non-custodial stablecoin liquidity venue.

Actions

  • list_chains ? blockchains in the TRDEFI catalogue
  • get_stats ? aggregate strategy/maker/pair totals and volume
  • list_strategies ? open liquidity strategies on a chain (optional text/pair filters)
  • get_strategy ? one strategy by hash
  • get_quote ? read-only swap simulation at the current block (structured unavailability reasons for gated/unverified strategies)

Notes

  • All actions only GET the public TRDEFI API (https://yield.trdefi.com/api/*); no funds move, no keys needed. Mirrors the defillama provider pattern (fetch + prune-free passthrough, mocked in tests).
  • supportsNetwork() returns true (network-agnostic, like defillama).
  • Tests: trdefiActionProvider.test.ts (13 cases, fetch-mocked). Full suite green (63 suites / 917 tests), eslint + prettier + tsc --noEmit clean.
  • Changeset included (minor).

@TRDEFI
TRDEFI requested a review from murrlincoln as a code owner September 28, 2026 16:54
@cb-heimdall

cb-heimdall commented Sep 28, 2026 •

Copy link
Copy Markdown

🟡 Heimdall Review Status

Requirement Status More Info
Reviews 🟡 0/1
Denominator calculation
Show calculation
1 if user is bot 0
1 if user is external 0
2 if repo is sensitive 0
From .codeflow.yml 1
Additional review requirements
Show calculation
Max 0
0
From CODEOWNERS 0
Global minimum 0
Max 1
1
1 if commit is unverified 0
Sum 1

@github-actions github-actions Bot added documentation Improvements or additions to documentation action provider New action provider typescript labels Sep 28, 2026
@TRDEFI
TRDEFI force-pushed the add-trdefi-provider branch from 8c0ee60 to 3d75ab7 Compare September 29, 2026 18:37

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

action provider New action provider documentation Improvements or additions to documentation typescript

Development

Successfully merging this pull request may close these issues.

2 participants