Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Status: Most interesting and extensible use of our JS API #34

Open
andytudhope opened this issue Sep 6, 2018 · 3 comments
Open

Status: Most interesting and extensible use of our JS API #34

andytudhope opened this issue Sep 6, 2018 · 3 comments

Comments

@andytudhope
Copy link

andytudhope commented Sep 6, 2018

Status

This issue is a placeholder for the award of the most interesting and extensible use of our JS API in preparation for the new web3 opt-in patterns being worked on across the ecosystem.

The Status JS API allows you to request specific details from Status users (example use here, their contact code, or whisper key) and then use that to perform specific actions. In our T-Shirt app (which you can access by going to https://tshirts.status.im in Status or scanning the below QR code), you can see what this looks like.

image from ios 1

In that DApp, we are using the contact code in order to limit in the UI how many times each account can vote on a shirt - and we'd like to award the team who comes up with the most innovative use of this new capability Status provides.

Our JS API will soon work together with the new opt-in pattern for web3 providers which form a part of EIP 1102 in order to promote best practices across the ecosystem.

Team

We've setup an extended team for helping you during this event

Embark team - @iurimatias @alaibe @andremedeiros @emizzle @jrainville @michaelsbradleyjr @richard-ramos
Status team - @jeluard @flexsurfer @mandrigin @lukaszfryc @corpetty @rachelhamlin

Be sure to contact us at any time online or grab us directly at the event.

Skills wanted

JavaScript / Ethereum

Communication

We will be around giving advice and helping if needed.
And in any case just drop your thoughts there ;)

https://chat.status.im

How to get started:

If you're building a DApp, it's easiest to use the most powerful framework currently out there, Embark:

npm i -g embark

There's a really great React template for a Decentralised Twitter and Reddit also available.

The code you need is here too:

window.addEventListener('statusapi', function (event) {
        if (!event.detail || !event.detail.permissions) { return; }
        if(event.detail.permissions.includes("CONTACT_CODE")){
          this.setState({account: event.detail.data["CONTACT_CODE"]});
          this._loadVotes();
          this._isManager();
        }
      });
      // request status API
      setTimeout(
        () => { 
          window.postMessage({type: 'STATUS_API_REQUEST', permissions: ["CONTACT_CODE"]}, '*');
        }, 500
      );
@gitcoinbot
Copy link

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


This issue now has a funding of 27900.0 SNT (1011.93 USD @ $0.04/SNT) attached to it.

@StatusSceptre
Copy link

The bounty amount in SNT was set at 16:00 on 06/09/2018 - 1 day before ETHBerlin to try and account as best as we currently can for volatility.

@andytudhope andytudhope changed the title Status: Most interesting and extensible use of our JS API and the new web3 opt-in patterns (EIP 1102) Status: Most interesting and extensible use of our JS API Sep 6, 2018
@gitcoinbot
Copy link

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


The funding of 27900.0 SNT (940.79 USD @ $0.03/SNT) attached to this issue has been approved & issued.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants