Skip to content

feat: add tempo charge parity flow#4

Open
brendanjryan wants to merge 4 commits intomainfrom
ci-setup
Open

feat: add tempo charge parity flow#4
brendanjryan wants to merge 4 commits intomainfrom
ci-setup

Conversation

@brendanjryan
Copy link
Copy Markdown
Contributor

Summary

  • reorganize the SDK into the method-first pkg/* layout used by the Tempo SDKs
  • add Tempo charge request/client/server support for transaction and hash credentials, fee-payer signing, attribution memos, replay protection, and upstream TODO seams
  • add local-node integration coverage plus a devnet funding fallback that matches the tempo-go/pympp pattern when tempo_fundAddress is not usable

Testing

  • go test ./...
  • make integration

@socket-security
Copy link
Copy Markdown

socket-security bot commented Apr 15, 2026

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addedgithub.com/​ethereum/​go-ethereum@​v1.17.07610010010070
Addedgithub.com/​tempoxyz/​tempo-go@​v0.4.099100100100100

View full report

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 418480525d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

go.mod Outdated
golang.org/x/sys v0.36.0 // indirect
)

replace github.com/tempoxyz/tempo-go => ../tempo-go
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Remove local module replace before merge

The committed replace github.com/tempoxyz/tempo-go => ../tempo-go hard-codes a sibling path that is not present in a normal checkout, so go build/go test fail with a missing replacement directory unless developers recreate your local folder layout. This blocks CI and external consumers running the repo directly, making the change non-portable.

Useful? React with 👍 / 👎.

Comment on lines +250 to +252
if len(fracPart) > decimals {
for _, ch := range fracPart[decimals:] {
if ch != '0' {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Validate decimals before slicing fractional amount

If decimals is negative, the len(fracPart) > decimals branch always executes and fracPart[decimals:] uses a negative index, which panics at runtime instead of returning an error. Because Decimals is an exported input (ChargeRequestParams / method config), a misconfiguration like -1 can crash request normalization and bring down charge handling.

Useful? React with 👍 / 👎.

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