Git Product home page Git Product logo

bls-wallet-billboard's Introduction

BLS Wallet Billboard

Example dApp for bls-wallet which pays for user transactions¹.

¹It's just a vanilla dApp and doesn't pay for user transactions yet.

Prerequisites

  • Nodejs
  • Yarn
  • Metamask

Development Instructions

git clone [email protected]:voltrevo/bls-wallet-billboard
cd bls-wallet-billboard
yarn
yarn hardhat node
yarn hardhat run scripts/deploy.ts --network gethDev # note deployed address (the hex string)
cp frontend/config.example.json frontend/config.json
# Change billboardAddress in config.json to the address from running deploy.ts
yarn webpack serve

Then open http://localhost:9000.

If needed, change the metamask network to localhost and refresh.

It should look like this:

Initial screen

Import one of the test accounts that's initially displayed when running yarn hardhat node.

Fill in these values:

Send ETH:  0.0005
Billboard: 0x1d85c73c13ff284beab6c81f06dff8197093b29927fe1ab8394b6ac66eeb0460
(Or copy and paste your billboard of choice from the available billboards.)

Important: I'm about to tell you to send a transaction through metamask. Please be wary of following instructions like this. It's up to you to ensure you only authorize metamask to do something you want to do.

Click Rent and follow the prompts from metamask.

It should say 'Confirmed' and provide a transaction hash. If so, reload and you should get something like this:

Dogs screen

If you reload again after the listed expiry time, it'll revert back to 'your ad here'. You may then wish to try the other billboard, and get a result like this:

Cats screen

bls-wallet-billboard's People

Contributors

voltrevo 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.