Skip to content

Photos prototype#152

Draft
franciscoaguirre wants to merge 1 commit into
devfrom
dapp-example
Draft

Photos prototype#152
franciscoaguirre wants to merge 1 commit into
devfrom
dapp-example

Conversation

@franciscoaguirre

Copy link
Copy Markdown
Collaborator

I've created an example photos dapp to showcase how a dapp could be built with web3-storage.

Comment thread docs/design/photos.md
```

Origin model (from [`smart-contracts.md`](./smart-contracts.md)): precompile calls dispatch as
`RawOrigin::Signed(contract_account)`, so the **contract** owns every user's bucket. Per-user

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we want this to change? We could make the actual user account own the bucket

Comment thread docs/design/photos.md
```json
{ "version": 1,
"photos": [
{ "cid": "0x…", "name": "beach.jpg", "mime": "image/jpeg", "size": 1843200, "time": 1700000000 }

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could add a thumbnail cid here

Comment thread docs/design/photos.md
- **What drops out under #97**: the async-accept polling step, and the `createBucket` selector.

This keeps the prototype shippable now while making the #97 cutover a small, well-located edit. It does
**not** change the Layer 0 decision — #97 alters agreement *mechanics*, not the drive registry's

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We want to remove this auto-selection so this will change in the future

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant