Skip to content

Latest commit

 

History

History
48 lines (41 loc) · 1.9 KB

SCHEMA.md

File metadata and controls

48 lines (41 loc) · 1.9 KB

Donation Attestation Schema

The schema captures a snapshot of the checkout of all donations made to projects taking part across rounds across chains on allo protocol. The schema is generated by a gitcoin backend server and then the donor signs the delegated attesation onto an EAS supported chain

This schema works across any EAS-supported blockchain network, making it future-proof. Attestations are network-agnostic, so as Gitcoin expands to more chains, an aggregator can easily gather them across networks.

Schema Details

{
    "projectsContributed"   : "uint64" // networks where the round reside
    "roundsContributed"     : "uint64", // rounds contributed to
    "chainIdsContributed"   : "uint64", // chainIds contributed to
    "totalUSDAmount"        : "uint128", // total contribution
    "timestamp"             : "uint64", // time of donation
    "metadataCid"           : "string", // Link to details about contribution (eg: IPFS)
}

Note:

  • donor can be obtained from attesation.recipient

  • refUID would be used to chain/link all your attestation

  • MetadataPtr

[
    {
        "chainId" : number,
        "txnHash" : string,
        "impactImage": string,       // optional base64 img
        "projects": [
            "id"           : string, // registry profile id
            "title"        : string  // registry profile title
            "anchor"       : string, // registry profile anchor
            "applicationId": string, // application id in pool
            "applicationCId": string, // application metadata
            "payoutAddress": string, // payout address
            "roundId"      : number, // allo poolId
            "strategy"     : string, // allo strategy name
            "amountInUSD"  : bigint, // total usd amount
            "amount"       : bigint, // total tokens
            "token"        : string  // token address  
        ]
    }
]