Skip to content

Add Tenbin EA - #5362

Merged
dskloetc merged 6 commits into
mainfrom
kloet/tenbin
Sep 4, 2026
Merged

Add Tenbin EA#5362
dskloetc merged 6 commits into
mainfrom
kloet/tenbin

Conversation

@dskloetc

@dskloetc dskloetc commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

https://smartcontract-it.atlassian.net/browse/OPDATA-8022?actionerId=712020%3A321ba373-a1ab-4dc7-83d7-3dbb7f331368&sourceType=assign

Description

Add Tenbin EA which returns the aggregated balance after verifying its authenticity.

Changes

  1. yarn new in a separate commit.
  2. Implement verification instructions from the ticket.
  3. Download test fixtures:
    curl -sSLf https://github.com/tenbinlabs/verification-service-releases/releases/latest/download/build.json > packages/sources/tenbin/test/unit/github-build-2026-09-03.json
    curl -sSfL -X GET 'https://public-api.tenbin.xyz/v1/verifier/attest' -H "Authorization: Bearer $API_KEY" > packages/sources/tenbin/test/unit/attest-response-2026-09-01.json
    

Steps to Test

curl --silent -S -X POST http://localhost:8080 -H 'Content-Type: application/json' -d '{
  "data": {
    "endpoint": "verified-balance"
  }
}'

{
  "data": {
    "result": "398016.04503100860192553965510"
  },
  "statusCode": 200,
  "result": "398016.04503100860192553965510",
  "timestamps": {
    "providerDataRequestedUnixMs": 1788510033149,
    "providerDataReceivedUnixMs": 1788510034595
  },
  "meta": {
    "adapterName": "TENBIN",
    "transportName": "default_single_transport",
    "metrics": {
      "feedId": "N/A"
    }
  }
}

Quality Assurance

  • If a new adapter was made, or an existing one was modified so that its environment variables have changed, update the relevant infra-k8s configuration file.
  • If a new adapter was made, or an existing one was modified so that its environment variables have changed, update the relevant adapter-secrets configuration file.
  • If a new adapter was made, or a new endpoint was added, update the test-payload.json file with relevant requests.
  • The branch naming follows git flow (feature/x, chore/x, release/x, hotfix/x, fix/x) or is created from Jira.
  • This is related to a maximum of one Jira story or GitHub issue.
  • Types are safe (avoid TypeScript/TSLint features like any and disable, instead use more specific types).
  • All code changes have 100% unit and integration test coverage. If testing is not applicable or too difficult to justify doing, the reasoning should be documented explicitly in the PR.

@changeset-bot

changeset-bot Bot commented Sep 4, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 7787f54

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@chainlink/tenbin-adapter Major

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@dskloetc
dskloetc marked this pull request as ready for review September 4, 2026 09:19
@dskloetc
dskloetc requested a review from a team September 4, 2026 11:48
mxiao-cll
mxiao-cll previously approved these changes Sep 4, 2026
Comment thread packages/sources/tenbin/src/config/overrides.json Outdated
@dskloetc
dskloetc merged commit e20cf86 into main Sep 4, 2026
23 checks passed
@dskloetc
dskloetc deleted the kloet/tenbin branch September 4, 2026 14:08
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