GithubHelp home page GithubHelp logo

isabella232 / renewal-widget Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ensdomains/renewal-widget

0.0 0.0 0.0 4.35 MB

ENS Renewal widget displays a popup window if there are any expiring ENS names.

License: BSD 2-Clause "Simplified" License

JavaScript 65.74% CSS 13.12% HTML 21.14%

renewal-widget's Introduction

ENS Renewal widget

ENS Renewal widget displays a popup window if there are any expiring ENS names.

NOTE: We will be whitelisting the rererral partners. To apply, please read FAQ.

Install

npm install @ensdomains/renewal-widget

Initialising

import RenewalWidget from '@ensdomains/renewal-widget'
RenewalWidget({
    userAddress,
    queryParams:{"utm_source": "YOURSITE"},
    days: 30 // optional. The default is set to 30 days beore expiry date.
})

CDN

<script
    async
    src="https://cdn.jsdelivr.net/npm/@ensdomains/renewal-widget@latest/build/renewal-widget.js"
></script>

<script>
RenewalWidget({
    userAddress,
    queryParams:{"utm_source": "YOURSITE"},
    days: 30 // optional. The default is set to 30 days beore expiry date.
})
</script>

Trying out locally

NOTE: Currently hard coding userAddress as 0xfFD1Ac3e8818AdCbe5C597ea076E8D3210B45df5

git clone https://github.com/ensdomains/renewal-widget.git
cd renewal-widget
npm install
npm run dev

And open the demo page on http://localhost:8080

Live demo page

If you connect with the address which owns expiring/expired ENS names, it should popup the widget when your app connects to your wallet.

If you don't connect with such addresses, you can still see the demo by passing the address of an ENS whale

FAQ

How do you track the referral code?

We will be using Google Analytics ecommerce plugin on ENS App.

How much is the referral fee?

5% to begin with (at least until August 2020). We will revise the rate periodically.

How do I become the referral partner?

Please apply via google form

I want to customise the widget.

If you want to have full control of how to show ENS referral, I suggest using our renewal library wchich this widget uses underneath.

What if our app/site has our own way of renewing ENS withing going to app.ens.domains?

Please contact [email protected]. We can discuss separately.

renewal-widget's People

Contributors

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