基于区块链的毕业设计Podcast Pools – 播客池

本文提供基于区块链的毕业设计国外最新区块链项目源码下载,包括solidity,eth,fabric等blockchain区块链,基于区块链的毕业设计Podcast Pools – 播客池 是一篇很好的国外资料

Podcast Pools

Win NFT episodes from your favorite Podcasts

Description

Podcast Pools allows for podcast creators to capture value by having their fans lock up stablecoins into a no loss lottery where the prize is an NFT that represents that week’s episode. Similar to Patreon, people can contribute to creators they support, but instead of directly donating money, they are instead giving the interest earned by their assets for a chance to win a tokenized episode.

Project Highlights

  • PoolTogether v3 Contracts
  • ERC721 Standard for NFTs
  • IPFS for NFT metadata storage
  • Ethers.js
  • Portis Login
  • Server’s Web3 Provider is powered by Pocket Network
  • Node/Express Server
  • React Frontend
  • Mobile Responsive

System Overview

Podcast Pools - 播客池

a. The server is listening to a Podcast’s RSS feed and sees that a new episode has been added.

b. The serves then formats the recent episode data and uploads the metadata to IPFS.

c. The server uses it’s private key to mint a new NFT episode to the pool contract’s address. When the server creates the NFT, it points the token’s metadata URI to the IPFS hash of the metadata for the new episode.

d. The NFT contract mints and assigns ownership to the pool contract.

e. Lastly, the server then calls a function on the strategy contract to let it know that an NFT episode needs to be added to the next prize round.

Contract Overview

ERC721 Contract: Contract that stores all the state and metadata pointers for the NFTs that have been created.

Pool Contract: Users deposit stablecoins to this contract and are given ticket tokens in return in a one to one ratio. This contract is in charge of maintaing user’s balances and added them to yield earing protocols (Compound in this case). Lastly, this contract holds the NTF episodes as well and is the one that sends them to the winner.

Strategy Contract: Controls where the interest from the deposited stablecoins is awarded to as well as the NFT epsidoes. However, the strategy contract is not able to touch a user’s inital deposit, only the interest earned. The interest earned is given to the podcast creator and the NFT is given to the person that is drawn as the winner.

Application Views

Mobile

Podcast Pools - 播客池

Desktop

Podcast Pools - 播客池

Token URI Format

URIs are formatted as ipfs://ipfs/[ipfsHash]

For example: Querying IPFS with the hash QmQMZA7WZiZUVJqujJX2kbtUu53VmWaF7PhkwqatF9uF8j returns:

{     name:"EthHub Weekly #130",      description:"SushiSwap drama, crypto market volatility...",      image:"ipfs://ipfs/QmNfNa7M9tQbRieAbsEnLKKa8UcyHffjMjBaBB1wJGC7hu",      external_url:"https://podcast.ethhub.io/",      attributes:[         {trait_type:"Date", value:"Tue, 08 Sep 2020"},         {trait_type:"Duration", value:"49:28"}     ] }

You can view this asset here on OpenSea.

Contract URI

The URI for the contract can be found at the IPFS hash below

contractURI = "ipfs://ipfs/QmdyQRNEFnjSX1VivhokGqnLgpq3oBxeStv6VJNdo3owZt";

Contract Addresses (Rinkeby)

PRIZE_STRAT_ADDRESS = 0xdf577189ad9659070d903d1a7a22d0fb9e07f2f8; PRIZE_POOL_ADDRESS = 0x65d16e7c4a7cb9d8fa2d8bbe55916ffb6efe87fd; INTO_ETH_TOKEN_ADDRESS = 0x6325764783626e233f5ff4f2d8d1f2bccd9d6105; DAI_TOKEN_ADDRESS = 0x5592ec0cfb4dbc12d3ab100b257153436a1f0fea; TICKET_TOKEN_ADDRESS = 0x8bea329655c9809355922ac70fd4b0e51ce3fbd8;

We use optional third-party analytics cookies to understand how you use GitHub.com so we can build better products. Learn more.


播客池

从您最喜爱的播客中赢取NFT节目

说明

播客池允许播客创作者通过让他们的粉丝锁定稳定的彩票来获取价值,其中奖品是代表该周节目的NFT。与Patreon类似,人们可以为他们支持的创作者捐款,但他们不是直接捐款,而是将资产所赚取的利息用于赢得象征性的一集。

系统概述

  • Portis Login
  • 服务器的Web3提供程序由Pocket Network提供支持前端
  • 移动响应
  • Ethers.js
  • Portis Login
  • Server’s Web3 Provider is powered by Pocket Network
  • Node/Express Server
  • React Frontend
  • Mobile Responsive

移动

Podcast Pools - 播客池

<Podcast Pools>

a。服务器正在收听播客的RSS提要,并发现已添加新的一集。

b。服务然后格式化最近的事件数据,并将元数据上载到IPFS。

c。服务器使用它的私钥将新的NFT集生成到池合约的地址。当服务器创建NFT时,它将令牌的元数据URI指向新事件元数据的IPFS哈希。

d.NFT合同铸造并分配池合同的所有权。

桌面

e。最后,服务器调用策略契约上的一个函数,让它知道需要将一个NFT片段添加到下一轮奖励中。

ERC721 Contract:存储已创建的nft的所有状态和元数据指针的协定。

池合约:用户将stablecon存入该合约,并以一比一的比例获得票券令牌。该合同负责维护用户的余额,并将其添加到生成earing协议(本例中为复合协议)中。最后,这个合同还保存着NTF剧集,并且是将它们发送给赢家的合同。

令牌URI格式

合同URI

策略合约:控制存款稳定收益的利息授予NFT epsidoes的地点。然而,策略契约并不能触及用户的初始存款,只有利息。所获得的利息将给予播客创作者,NFT将给予抽签成为赢家的人。

合同地址(Rinkeby)

Podcast Pools - 播客池

Cookie始终处于活动状态以太网.js
  • Portis Login
  • 服务器的Web3提供程序由Pocket Network提供支持前端
  • 移动响应
  • <Podcast Pools>

    uri的格式为ipfs://ipfs/[ipfsHash]

    {     name:"EthHub Weekly #130",      description:"SushiSwap drama, crypto market volatility...",      image:"ipfs://ipfs/QmNfNa7M9tQbRieAbsEnLKKa8UcyHffjMjBaBB1wJGC7hu",      external_url:"https://podcast.ethhub.io/",      attributes:[         {trait_type:"Date", value:"Tue, 08 Sep 2020"},         {trait_type:"Duration", value:"49:28"}     ] }

    例如:使用散列QmQMZA7WZiZUVJqujJX2kbtUu53VmWaF7PhkwqatF9uF8j查询IPFS返回:

    Contract URI

    您可以在OpenSea的此处查看此资产。

    contractURI = "ipfs://ipfs/QmdyQRNEFnjSX1VivhokGqnLgpq3oBxeStv6VJNdo3owZt";

    Contract Addresses (Rinkeby)

    PRIZE_STRAT_ADDRESS = 0xdf577189ad9659070d903d1a7a22d0fb9e07f2f8; PRIZE_POOL_ADDRESS = 0x65d16e7c4a7cb9d8fa2d8bbe55916ffb6efe87fd; INTO_ETH_TOKEN_ADDRESS = 0x6325764783626e233f5ff4f2d8d1f2bccd9d6105; DAI_TOKEN_ADDRESS = 0x5592ec0cfb4dbc12d3ab100b257153436a1f0fea; TICKET_TOKEN_ADDRESS = 0x8bea329655c9809355922ac70fd4b0e51ce3fbd8;

    合同的URI可以在下面的IPFS哈希中找到

    部分转自网络,侵权联系删除区块链源码网

    www.interchains.cc

    https://www.interchains.cc/18007.html

    区块链毕设网(www.interchains.cc)全网最靠谱的原创区块链毕设代做网站 部分资料来自网络,侵权联系删除! 最全最大的区块链源码站 !
    区块链知识分享网, 以太坊dapp资源网, 区块链教程, fabric教程下载, 区块链书籍下载, 区块链资料下载, 区块链视频教程下载, 区块链基础教程, 区块链入门教程, 区块链资源 » 基于区块链的毕业设计Podcast Pools – 播客池

    提供最优质的资源集合

    立即查看 了解详情