Skip to content

Cross-Contract Authorization Setup #13

Description

@Mkalbani

Description

Implement the cross-contract authorization pattern so that settlement can call escrow.release() and registry.record_contribution() securely. Contract addresses must be set at deploy time and enforced at runtime.

Acceptance Criteria

  • Each contract stores the address of its authorized caller in persistent storage at initialization
  • Runtime checks verify env.invoker() matches stored authorized address
  • Admin can update authorized addresses post-deploy via a guarded function
  • Tests simulate cross-contract calls using soroban-sdk test environment
  • Document the deploy order and address wiring in scripts/deploy.sh

Technical Notes

Metadata

Metadata

Assignees

No one assigned

    Labels

    GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardOfficial CampaignCampaign: Official Campaign

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions