-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding fellowfund contract to ERC7730
- Loading branch information
1 parent
5f4bed3
commit 76ddf61
Showing
1 changed file
with
186 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,186 @@ | ||
{ | ||
Check warning on line 1 in registry/fellow-fund/eip712-fellow-fund.json GitHub Actions / 🔎 validate descriptorsCould not fetch ABI
Check warning on line 1 in registry/fellow-fund/eip712-fellow-fund.json GitHub Actions / 🔎 validate descriptorsMissing Display field
|
||
"$schema": "../../specs/erc7730-v1.schema.json", | ||
"context": { | ||
"$id": "FellowFund", | ||
"contract": { | ||
"abi": [ | ||
{ | ||
"inputs": [ | ||
{ | ||
"name": "_metadata", | ||
"type": "string" | ||
}, | ||
{ | ||
"name": "_funds", | ||
"type": "uint256" | ||
}, | ||
{ | ||
"name": "_applicationDeadline", | ||
"type": "uint256" | ||
}, | ||
{ | ||
"name": "_marketDeadline", | ||
"type": "uint256" | ||
}, | ||
{ | ||
"name": "_epochDeadline", | ||
"type": "uint256" | ||
} | ||
], | ||
"name": "createFellowship", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ | ||
"name": "fellowshipId", | ||
"type": "uint256" | ||
}, | ||
{ | ||
"name": "metadata", | ||
"type": "string" | ||
} | ||
], | ||
"name": "applyToFellowship", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ | ||
"name": "fellowshipId", | ||
"type": "uint256" | ||
}, | ||
{ | ||
"name": "applicationId", | ||
"type": "uint256" | ||
}, | ||
{ | ||
"name": "achieved", | ||
"type": "bool" | ||
}, | ||
{ | ||
"name": "proof", | ||
"type": "bytes" | ||
} | ||
], | ||
"name": "setApplicantImpact", | ||
"type": "function" | ||
} | ||
], | ||
"deployments": [ | ||
{ | ||
"chainId": 1, | ||
"address": "0x25d598CBB74fa73290e74697616DE2740d280745" | ||
} | ||
] | ||
} | ||
}, | ||
"metadata": { | ||
"owner": "FellowFund", | ||
"info": { | ||
"legalName": "FellowFund", | ||
"url": "https://fellow-fund.vercel.app", | ||
"lastUpdate": "2024-03-14T00:00:00Z" | ||
} | ||
}, | ||
"display": { | ||
"formats": { | ||
"createFellowship(string _metadata,uint256 _funds,uint256 _applicationDeadline,uint256 _marketDeadline,uint256 _epochDeadline)": { | ||
"intent": "Create Fellowship Program", | ||
"fields": [ | ||
{ | ||
"path": "_metadata", | ||
"label": "Program Details", | ||
"format": "raw" | ||
}, | ||
{ | ||
"path": "_funds", | ||
"label": "Total Funding", | ||
"format": "amount" | ||
}, | ||
{ | ||
"path": "_applicationDeadline", | ||
"label": "Application Deadline", | ||
"format": "date", | ||
"params": { | ||
"encoding": "timestamp" | ||
} | ||
}, | ||
{ | ||
"path": "_marketDeadline", | ||
"label": "Market Phase Deadline", | ||
"format": "date", | ||
"params": { | ||
"encoding": "timestamp" | ||
} | ||
}, | ||
{ | ||
"path": "_epochDeadline", | ||
"label": "Program End Date", | ||
"format": "date", | ||
"params": { | ||
"encoding": "timestamp" | ||
} | ||
} | ||
], | ||
"required": [ | ||
"_metadata", | ||
"_funds", | ||
"_applicationDeadline", | ||
"_marketDeadline", | ||
"_epochDeadline" | ||
] | ||
}, | ||
"applyToFellowship(uint256 fellowshipId,string metadata)": { | ||
"intent": "Apply to Fellowship Program", | ||
"fields": [ | ||
{ | ||
"path": "fellowshipId", | ||
"label": "Fellowship Program ID", | ||
"format": "raw" | ||
}, | ||
{ | ||
"path": "metadata", | ||
"label": "Application Details", | ||
"format": "raw" | ||
} | ||
], | ||
"required": [ | ||
"fellowshipId", | ||
"metadata" | ||
] | ||
}, | ||
"setApplicantImpact(uint256 fellowshipId,uint256 applicationId,bool achieved,bytes proof)": { | ||
"intent": "Verify Fellowship Impact", | ||
"fields": [ | ||
{ | ||
"path": "fellowshipId", | ||
"label": "Fellowship Program ID", | ||
"format": "raw" | ||
}, | ||
{ | ||
"path": "applicationId", | ||
"label": "Application ID", | ||
"format": "raw" | ||
}, | ||
{ | ||
"path": "achieved", | ||
"label": "Impact Achieved", | ||
"format": "raw" | ||
}, | ||
{ | ||
"path": "proof", | ||
"label": "Verification Proof", | ||
"format": "raw" | ||
} | ||
], | ||
"required": [ | ||
"fellowshipId", | ||
"applicationId", | ||
"achieved", | ||
"proof" | ||
] | ||
} | ||
} | ||
} | ||
} |