Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gsn-sponsor

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gsn-sponsor

GSN2 - Sponsor, Identity above basic tabookey-gasless.

  • 0.0.3-beta.3
  • npm
  • Socket score

Version published
Weekly downloads
6
increased by200%
Maintainers
1
Weekly downloads
 
Created
Source

gsn-sponsor

GSN2 - Sponsor, Identity above basic tabookey-gasless.

to test:

yarn
yarn gsn-relay  #(in another window)
yarn test

run UI:

yarn sample-server

Will open http://localhost:8080/index.html

Working with account

  • the keypair in use is hard-coded into the sample page.
  • a single key-pair can work with multiple addresses, depending on the salt value.
  • The test uses salt=100, so if you use it and do "get identity address" it will loaded up with some tokens.
  • set salt to another value (e.g. in another window), and do "get address" to see what address the identity would have (you can't create it yet, since you don't have tokens.
  • copy the address, and switch to the "salt=100" address. now you can transfer tokens to it
  • (NOTE: if you check the "use decimals", it will also affect the value you put into the "transfer" or "mint" dialogs)
  • once you transfer to your new address some token, you can create it - and it will pay for its creation...
  • now you can transfer or mint more (mint requires tokens for gas fee, just like other operations)

metamask account

  • click the button to open metamask-based account.
  • metamask is used only as the "identity owner" . you have to approve each signed operation, but actual metamask account is untouched (the UI doesn't show it, since its an owner account only. you can see its balance in metamask itself)
  • this account can be used just like the ephemeral-based account.

FAQs

Package last updated on 25 Nov 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc