• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

creaton-io/creaton: Decentralized content sharing platform.

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

creaton-io/creaton

开源软件地址:

https://github.com/creaton-io/creaton

开源编程语言:

TypeScript 47.5%

开源软件介绍:

Creaton

Creaton is a decentralized content sharing platform. Powered by Ethereum, IPFS, Superfluid and Textile, Creaton allows a streaming based subscription system where subscribers support their favorite creators with stablecoins in real-time. Utilizing p2p encryption, Creaton makes sure of exclusive permission-less content delivery to subscribers and eliminates the need for unnecessary middlemen or centralized services. Check out our DApp here:

Creaton live dev build

Demo video

Setup

requirements :

docker and docker-compose

docker and docker-compose are used to setup the external services (an ipfs node and a subgraph node)

If you prefer (or do not have access to docker/docker-compose) you can run them independently.

node

This app requires node.js (tested on v12+)

install dependencies :

npm install
cd contracts
npm install
cd ../react-app/
npm install
cd ../subgraph/
npm install

Development

Set environment variables

Create a .env file and set the following env variables in:

  • INFURA_TOKEN=<infura token to talk to a network>
  • MNEMONIC=<mnemonic of the account that will deploy the contract>
  • ALCHEMY_TOKEN=<alchemy token to talk to a network>
  • Superfluid Contracts:
# Checkout Superfluid Network Directory: https://docs.superfluid.finance/superfluid/networks/networks
# MUMBAI
SUPERFLUID_HOST = 0xEB796bdb90fFA0f28255275e16936D25d3418603
SUPERFLUID_CFA = 0x49e565Ed1bdc17F3d220f72DF0857C26FA83F873
SUPERFLUID_SUPERTOKENFACTORY = 0x200657E2f123761662567A1744f9ACAe50dF47E6
SUPERFLUID_RESOLVER = 0x8C54C83FbDe3C59e59dd6E324531FB93d4F504d3
SUPERFLUID_VERSION = v1

Deploy the contracts

Run ./command.py and choose deploy contracts. After deployment choose to update the contracts as well.

Run subgraph docker

First edit subgraph/docker-compose.yml end edit the etherum env variable to an api url in this format:

mumbai:https://polygon-mumbai.infura.io/v3/<YOUR_TOKEN>

Then run ./command.py and choose run subgraph docker.

Run react app

cd react-app
npm run start



鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap