Giter Site home page Giter Site logo

sponsorship-subscriptions-smartcontracts's Introduction

Unique Human Identity

BrightID allows you to prove to applications that you're only using one account.

Decentralized & Nonintrusive

The network consists of volunteers running nodes. Nodes host the social graph used for verification, but there's no personal information stored there.

Mobile App

ID creation and connections to people and apps are managed through the BrightID mobile app.

Contribute

Contributions to translations are welcome through weblate.

Integrating BrightID in your Project

sponsorship-subscriptions-smartcontracts's People

Contributors

adamstallard avatar siftal avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

sponsorship-subscriptions-smartcontracts's Issues

SubscriptionsActivated Event

If we make Subscriptions transferable, we should add an event like this:

event SubscriptionsActivated(address account, uint256 amount);

See also #3

Can't filter SponsorshipsAssigned events

To be able to find out how many sponsorships you personally have assigned to a context, you have to download all SponsorshipAssigned events--including those from all people and for all contexts (not just the relevant ones)--because we didn't add an indexed keyword after the contextName and account parameters to the SponsorshipAssigned event.

Soon there will be too many SponsorshipAssigned events, and there this will become too large to download.

Checking the number of sponsorships assigned to a context by all accounts can still be done using the totalContextBalance() function.

Subscriptions shouldn't inherit from ERC20Capped

Let's enforce the cap in the SubscriptionsMinter only.

Unless BMAIN DAO gives up all minter roles, they can always bypass the cap by simply creating a new kind of Subscriptions with a different cap.

We don't want to give up all minter roles (because we want to be able to upgrade or replace minters), so having an overall cap is meaningless.

The cap is for this sale only.

This also allows us to maintain only one cap variable instead of trying to have two that are in sync.

This also allows us to not care about the overall supply going down when a subscription is activated (burned) if we choose to make subscriptions transferable.

Can't filter SubscriptionsActivated events

To be able to find out how many "active" subscriptions you have, you have to download everyone's SubscriptionsActivated events (not just yours) because we didn't add an indexed keyword after the account parameter to the SubscriptionsActivated event.

If there are many SubscriptionsActivated events, this may become too large to download.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.