Git Product home page Git Product logo

upward's Introduction

Introduction

Enable subscription based token-gating for your content powered by Superfluid.

Deployments

Chain Names
Polygon Mainnet WatcherFactory: 0x5bbf63bA91D8a0E0C90f1535506F385b2DaBAAC6
Watcher (implementation): 0xFC7be25d818380cf551eD3dac0a45E2471BB0e3d

To deploy the contracts and verify them, use the following line of command:

forge script script/DeployWatcher.s.sol:DeployWatcherScript --rpc-url $POLYGON_RPC_URL --broadcast -vvvv --verify --etherscan-api-key $POLYGONSCAN_API_KEY --slow --with-gas-price 50000000000

Somehow, using the following line of code doesn't work:

forge script script/DeployWatcher.s.sol:DeployWatcherScript --rpc-url $POLYGON_RPC_URL --broadcast -vvvv --verify --etherscan-api-key $POLYGONSCAN_API_KEY

It throws the following error:

(code: -32000, message: insufficient funds for gas * price + value, data: None)

How To Use The Contracts

As a creator, call the initWatcher method in the WatcherFactory contract and create a Watcher clone for yourself. Subscribers can start a stream directly to the CREATOR of the clone and make sure that the payment flowrate at least matches the one specified in that contract by the creator. Failing to match the paymentFlowrate will cause the balanceOf function in the watcher clone contract return 0 which would mean that the subscriber doesn't have the access to the token-gated content.

If you have any more queries, please contact me on Discord (rashtrakoff#2547).

upward's People

Contributors

rashtrakoff avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

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.