Skip to content

feat: add holding address to payment authorization#88

Merged
cusma merged 4 commits intomainfrom
feat/auth-holding-payment
Mar 5, 2026
Merged

feat: add holding address to payment authorization#88
cusma merged 4 commits intomainfrom
feat/auth-holding-payment

Conversation

@cusma
Copy link
Owner

@cusma cusma commented Mar 5, 2026

No description provided.

@cusma cusma requested a review from Copilot March 5, 2026 08:48
@cusma cusma self-assigned this Mar 5, 2026
@cusma cusma added the enhancement New feature or request label Mar 5, 2026
Copy link

@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: fb3ea84500

ℹ️ 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".

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR expands payment authorization to allow the holding_address itself to initiate authorized payments (in addition to op_daemon and the configured payment_address), and updates compiled TEAL artifacts accordingly.

Changes:

  • Extend assert_payment_authorization to authorize when Txn.sender == holding_address.
  • Regenerate TEAL artifacts to reflect the new authorization logic.
  • Adjust test helper repository path resolution and improve scratch directory cleanup.

Reviewed changes

Copilot reviewed 5 out of 14 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
tests/shared/test_mixin_composition_guards.py Updates repo root resolution and adds scratch directory cleanup after validation.
modules/payment_agent/common.py Allows holding_address as an authorized caller for payment operations.
smart_contracts/artifacts/zero_coupon_bond/ZeroCouponBond.approval.teal Regenerated TEAL reflecting new authorization path.
smart_contracts/artifacts/perpetual_bond/PerpetualBond.approval.teal Regenerated TEAL reflecting new authorization path.
smart_contracts/artifacts/fixed_coupon_bond/FixedCouponBond.approval.teal Regenerated TEAL reflecting new authorization path.
smart_contracts/artifacts/fixed_coupon_bond/FixedCouponBond.approval.puya.map Regenerated source map to match the updated TEAL.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@cusma cusma merged commit 9ae21c1 into main Mar 5, 2026
8 checks passed
@cusma cusma deleted the feat/auth-holding-payment branch March 5, 2026 09:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants