Giter Site home page Giter Site logo

samwarwick / token-negotiator-on-chain-poc-example Goto Github PK

View Code? Open in Web Editor NEW

This project forked from smarttokenlabs/token-negotiator-on-chain-poc-example

0.0 1.0 0.0 5.68 MB

A proof of concept to demonstrate the use of on chain tokens in various scenarios

CSS 0.30% HTML 5.73% JavaScript 93.96%

token-negotiator-on-chain-poc-example's Introduction

token-negotiator-on-chain-poc-example

A proof of concept to demonstrate the use of on chain tokens in various scenarios

See: https://tokenscript.github.io/token-negotiator-on-chain-poc-example/

List of offers:

  • Offer A: Tickets to Studio54 offered to BAYC Derivative Holders
  • Offer B: Free T-shirt for Expansion Punk Holders
  • Offer C: Exclusive Subscription to Vogue for BAYC Derivative + Woman tribe
  • Offer D: Car Hire Discount for Riot Racers
  • Offer E: Car Hire Demo for Riot Racers
  • Offer F: 20% Off for your next VIP experienceto BAYC Derivative Holders
  • Offer G: Free T-shirt for Zed Holders

Activating the offers

From the Token overlay connect to the issuers then select the desired tokens. Once selecting the NFT/s the page will update with the available offers.

Deploy to github pages

merge code to main branch

Run locally (npm pacakge install required http-server)

http-server

development

To extend the example with new offers, see:

  • offers: {} which contains the offers and notification copy.
  • negotiator.on("tokens-selected", (tokens) => { ... } which triggers the offer validation when tokens are added / removed.

token-negotiator-on-chain-poc-example's People

Contributors

nicktaras avatar

Watchers

James Cloos 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.