Skip to content

Implement Server-Side Transaction Verification #50

@grantfox-oss

Description

@grantfox-oss

Description:
Verify that a submitted transaction hash is valid and matches the expected donation details.

Tasks:

  • Create src/services/donation_verifier.rs
  • Implement verify_donation_tx(tx_hash: &str, campaign_id: u64, expected_amount: i128) -> Result<VerificationResult, StellarAidError>
  • Fetch the transaction from Horizon using HorizonClient::get_transaction()
  • Parse transaction envelope XDR to extract the Soroban invocation details
  • Check that the invoked contract function is donate with correct arguments

Acceptance Criteria:
Verification returns true only for valid donate invocations on the correct campaign with the correct amount.


Metadata

Metadata

Assignees

Labels

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

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions