Skip to content

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

Open
cawthorne wants to merge 36 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 36 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 cawthorne force-pushed the feature/aptos-local-cre-minimal branch from 76474ca to 3a4adef Compare March 10, 2026 15:57
Fletch153
Fletch153 previously approved these changes Mar 10, 2026
if err != nil {
return nil, err
}
if tx == nil {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this similar to how aptos handles txs that are not found? Should this be an error?


out := &typeaptos.AccountTransactionsReply{Transactions: make([]*typeaptos.Transaction, 0, len(txs))}
for _, tx := range txs {
if tx == nil {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it okay to just skip txs, similar question to txByHash

@cawthorne cawthorne marked this pull request as draft March 11, 2026 13:56
@cawthorne cawthorne force-pushed the feature/aptos-local-cre-minimal branch from 1d65259 to 6158e7a Compare March 11, 2026 14:05
@cawthorne cawthorne force-pushed the feature/aptos-local-cre-minimal branch from 6158e7a to ba0f696 Compare March 11, 2026 14:14
@cawthorne cawthorne force-pushed the feature/aptos-local-cre-minimal branch from 4abb80d to c1ca0d7 Compare March 11, 2026 14:49
@cawthorne cawthorne marked this pull request as ready for review March 11, 2026 19:14
Copy link
Contributor

@yashnevatia yashnevatia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please rebase once this is merged in
#340

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.

4 participants