gsn-sponsor

0.0.3-beta.1 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i gsn-sponsor

Weekly Downloads

1

Version

0.0.3-beta.1

License

ISC

Unpacked Size

14 kB

Total Files

8

Last publish

Collaborators

  • drortirosh