Comments (3)
Is the Grant Metadata storage part of the convenience layer that @phutchins talks about, or is it the convenience layer itself?
from dgrants.
Question: should we publish only the CID, and let the frontend presume this is an IPFS hash and fetch it from whichever gateway it chooses, or should we publish a full URL, specifically the URL to this IPFS data via a particular IPFS gateway that we choose
Does the dgrants spec require that IPFS is used for metadata, or is that just a detail of our implementation here?
- If IPFS is required, then just a hash is sufficient. It will be cheaper to set, the contract can verify the length +
Qm
prefix, and frontends can resolve it with the gateway of their choice - If IPFS is not required, then a fully qualified URL might be preferable. However a good frontend should still be able to check if the URL contains an IPFS CID so it can try a different one if the specified one is down
from dgrants.
After some discussion, the decision was:
- Store a gateway URL, rather than just a CID, to keep the contract generalized
- At the same time, in the app itself, verify that the URL provided is the Gateway we expect before executing an HTTP request, for security, privacy, and data integrity reasons. If the URL is not to the Gateway we expect, we can skip the Grant, and/or show a message like "unsupported grant metadata source".
from dgrants.
Related Issues (20)
- Trust Bonus Fetch Performance Issues
- Clearing cache (and IndexDB) is required when switching networks/contracts
- meta: registry scope and ideas HOT 1
- Make the payout process easier
- Permissioned Contract Upgradeability
- NFT grant ownership model (ERC721 or ERC1155)
- Alternative to explore: grant contributions made to registry contract (or separate contributions collector contract) w/ claim methods rather than via proxy wallet transfers
- Proxy wallet contract for grants see here
- Interface for enumerating non-incrementing integer grant IDs (with possibility for on chain enumeration as well)
- Unified registry/curation interface (registry is a curator that returns all grants)
- MVP curator implementation
- Interface specification for on-chain metadata validation HOT 1
- Metadata schema
- Metadata versioning (store timestamp of last update on-chain? hash of metadata somewhere? move to curation layer somehow? TBD)
- Specification/implementation of an additional metadata storage provider other than IPFS (e.g. Filecoin, Arweave, ICP, etc...)
- registry: decide on architecture for grant creation + flow of donation funds
- registry: compare ERC-721 and ERC-1155 in the context of grant creation HOT 1
- registry: grant metadata
- Site not working HOT 1
- Protocol Jon {
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dgrants.