Skip to content

Write the Aid Escrow Contract Interface Reference #1000

Description

@Cedarich

Complexity: Hard (200)

Description
app/onchain/contracts/aid_escrow/src/lib.rs exposes more than forty public entry points
covering admin transfer, versioning and migration, distributors, configuration, layered pausing,
funding, package lifecycle, Merkle proof claims, surplus withdrawal, aggregates, and delegates. The
existing contract documents cover events, gas profiling, reconciliation, and boundary validation, but
no document describes the callable interface itself, so integrators must read Rust source to learn
what a function does or who may call it.

Acceptance Criteria

  • Every public entry point is documented with parameters, return type, and errors
  • Authorization requirements are stated per function, including admin and distributor roles
  • Interactions with global, action, and campaign pause state are described
  • The two overlapping expiry extension functions are documented with guidance on which to use
  • Events emitted by each state-changing function are cross-referenced to EVENTS.md

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions