Skip to content

Aptos local CRE minimal: expose Aptos service APIs and harden TXM submission#380

Open
cawthorne wants to merge 28 commits intodevelopfrom
feature/aptos-local-cre-minimal
Open

Aptos local CRE minimal: expose Aptos service APIs and harden TXM submission#380
cawthorne wants to merge 28 commits intodevelopfrom
feature/aptos-local-cre-minimal

Conversation

@cawthorne
Copy link
Collaborator

@cawthorne cawthorne commented Mar 10, 2026

Summary

This PR upstreams the minimal Aptos work needed to run local CRE read-capability flows, while keeping the patch focused and reviewable.

What changed

Relayer Aptos service surface

  • Implemented Aptos service support on the relayer:
    • Aptos()
    • AccountAPTBalance
    • LedgerVersion
    • View
    • TransactionByHash
    • AccountTransactions
  • Added Aptos type-tag/view payload conversion helpers and transaction conversion helpers.

ChainReader head data support

  • Added GetLatestValueWithHeadData for Aptos chainreader.
  • Returns head metadata (height + timestamp) from node ledger info after read execution.

Relayer/chain wiring cleanup

  • Exposed chain keystore via KeyStore().
  • Refactored GetChainInfo() to use shared chain info helper.

Dependency alignment

  • Root module updated to a chainlink-common commit on upstream main.

Notes / scope

  • This PR is focused on local CRE + Aptos read-path enablement with minimal upstream scope.
  • Historical View reads by explicit ledger_version are intentionally not included in this minimal patch and can be reintroduced in a follow-up once dependency stack alignment is complete.

Validation

  • go test ./relayer/...
  • cd integration-tests && go test ./smoke -run '^TestDoesNotExist$' -count=1 (compile validation)
  • Full PR CI

@cawthorne cawthorne changed the title Feature/aptos local cre minimal Aptos local CRE minimal: expose Aptos service APIs and harden TXM submission Mar 10, 2026
@cawthorne
Copy link
Collaborator Author

cawthorne commented Mar 10, 2026

This PR depends on smartcontractkit/chainlink-common#1885
And once smartcontractkit/chainlink-common#1885 is merged in, we should update this PR to point to the upstreamed commit.

@cawthorne cawthorne marked this pull request as ready for review March 10, 2026 13:53
@cawthorne cawthorne requested a review from a team as a code owner March 10, 2026 13:53
@cawthorne cawthorne deployed to integration March 10, 2026 15:20 — with GitHub Actions Active
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