Skip to content

Rework signature args#4625

Merged
mergify[bot] merged 16 commits intomainfrom
grarco/offline-sig-args
May 26, 2025
Merged

Rework signature args#4625
mergify[bot] merged 16 commits intomainfrom
grarco/offline-sig-args

Conversation

@grarco
Copy link
Copy Markdown
Collaborator

@grarco grarco commented May 6, 2025

Describe your changes

Depends-On: #4619 (diffs: https://github.com/anoma/namada/pull/4625/files/e003b6a990ce67d6545da04651f29effd81fb4db..7734ce0563c101583bd8d81a8c2f5ccd7d12e50c).
Closes #4620.
Partially addresses #3901.

Makes the signatures and gas-signature argument reserved for loading a serialized transaction since they don't make sense when we want to construct a new transaction.

It also reworks SigningTxData to contain these two arguments and improves the wrapper signer part and disposable gas payer flag by joining everything into a single fee_payer field.

Slightly improves the conflicts and requirements of TxCustom.

Checklist before merging

  • If this PR has some consensus breaking changes, I added the corresponding breaking:: labels
    • This will require 2 reviewers to approve the changes
  • If this PR requires changes to the docs or specs, a corresponding PR is opened in the namada-docs repo
    • Relevant PR if applies:
  • If this PR affects services such as namada-indexer or namada-masp-indexer, a corresponding PR is opened in that repo
    • Relevant PR if applies:

@grarco grarco force-pushed the grarco/offline-sig-args branch from bd016c2 to 73501a3 Compare May 6, 2025 16:02
@grarco grarco marked this pull request as ready for review May 6, 2025 16:02
@github-actions github-actions bot added the breaking:api public API breaking change label May 6, 2025
@grarco grarco added cli SDK breaking:SDK SDK breaking change labels May 7, 2025
@grarco grarco requested a review from tzemanovic May 7, 2025 10:30
@grarco
Copy link
Copy Markdown
Collaborator Author

grarco commented May 9, 2025

@tzemanovic I've changed the based on of this pr to a depends-on: it doesn't really depends on 4619 but I want to avoid us merging this one before its base

@grarco grarco added the merge Ready to merge - mergifyio bot will add the PR to merge queue when all checks pass label May 26, 2025
@codecov
Copy link
Copy Markdown

codecov bot commented May 26, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 0.00%. Comparing base (c2cddf3) to head (7734ce0).
Report is 38 commits behind head on main.

Additional details and impacted files
@@     Coverage Diff      @@
##   main   #4625   +/-   ##
============================
============================

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

mergify bot added a commit that referenced this pull request May 26, 2025
@mergify mergify bot merged commit e487b7b into main May 26, 2025
28 checks passed
@mergify mergify bot deleted the grarco/offline-sig-args branch May 26, 2025 11:30
tzemanovic added a commit that referenced this pull request Jun 4, 2025
Namada libs-v0.150.0

* tag 'libs-v0.150.0':
  Changelog: Release libs 0.150.0
  Namada libs 0.150.0
  changelog: add #4666
  added changelog
  add more tests
  fixes from reviews
  fixes from reviews
  test/pos: claim optimizations
  PoS: optimize claim rewards
  add pgf test
  add governance test
  pgf/governance disallow non-native transfers
  Changelog for #4659
  Change nomenclature of transfer in/out validation fn
  Soft limit the number of wasm transfer targets
  Adds masp integration test for multi-input notes
  Dont construct a shielded component when the transfer data is completely transparent.
  Added a changelog entry.
  Renamed structures to increase clarity.
  Combined transfer inputs and outputs.
  Refactors extraction of fee payer from `SigingTxData`
  Also write epoch migrations directly into memory.
  Added a changelog entry.
  Added a changelog entry.
  Demonstrate accelerating epochs.
  Added a migration that sets the shielded reward parameters of specified tokens.
  Added a changelog entry.
  Slow down the epochs in tricky_masp_txs.
  Increased the usage of constants in migrations.
  Allow denomination to be specified separately for each token.
  Fixes handling of serialized signatures
  Changelog #4625
  Merges the disposable gas payer flag into `fee_payer`
  Improves conflicts and requirements in cli args for `TxCustom`
  Merges fee payer and wrapper signature into a single field of `SigningTxData`
  Moves signatures and wrapper signature into `SigningTxData`
  Moves `signatures` and `wrapper_signature` args from `Tx` to `TxCustom`
  Improves cli help messages for signers/fee payers
  Changelog #4619
  Defers saving disposable gas payer to the wallet right before tx submission
  Removes `--disposable-gas-payer` arg
  Adds warning messages for transparent fee payment in masp transaction. Adds conflict between the disposable gas payer argument and the signing keys one.
  Updates help message for `gas-spending-key`
  Mandatory source in `MaspTargetTransferData`
  Implied gas spending key
  Changelog #4579
  Derive `PartialEq` for `SigningTxData`
  Makes the public keys for signing unique
  Tests expected commtiment tree in masp event test
  ci/can-backport: set semver baseline-root to current maint branch
  Changelog for #4582
  Fix shielded swaps SQS queries
  Improve docstr
  fix: use correct denom calc for osmosis swaps
  Changelog for #4594
  Delete IBC signer parsing as gov addr dead code
  ci: use nextest to run hardwallet e2e tests
  ci: use nextest to run hardwallet e2e tests
  changelog
  update hermes
  test/e2e: auto cleanup speculos process
  Changelog for #4580
  Change ABI to C-unwind in vm_env when running natively
  test/e2e: hw-wallet-automation - try to disable speculos REST API
  Changelog #4566
  Adds failing atomic batch fee payment integration test
  Filters only tx result events in integration tests
  Extends masp events integration test
  Adds masp events integration test
  fix core release by symlinking CONSENSUS_VERSION
  CI: bump maint version libs-v0.49 and apps-101.0
  Refactors masp event lookup
  Fixed top-level comments.
  Changelog #4544
  Masp fee payment msg in `display_batch_resp`
  Added a changelog entry.
  Allow migrations to reset the conversions for arbitrary Namada addresses.
  Added a changelog entry.
  Implemented logic to update transaction WASMs in hard-fork migration.
  Changelog for #4541
  Improve MASP fee payment VP errors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking:api public API breaking change breaking:SDK SDK breaking change cli merge Ready to merge - mergifyio bot will add the PR to merge queue when all checks pass SDK

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Move offline signature args

2 participants