Skip to content

A repo full of signed TokenScript files which are served to AlphaWallet

Notifications You must be signed in to change notification settings

AlphaWallet/TokenScript-Repo

Repository files navigation

TokenScript repo

Update instruction for sysop

If the TokenScript files in the repo is updated, the sysop should recreate the .htaccess file by:

$ make .htaccess

This would generate a new .htaccess file based on the contract addresses mentioned in the TokenScript files.

Then, run this to upload the files. This will only work if you already configured SSH access:

$ make upload

Configure SSH access

This is tricky. You need 2 things:

  1. Adding your IP address to the whitelist. Official document
  2. Adding your key to the cPanel.

Note that the whitelist is not in the cPanel.

In reality, both are ticky.

  1. Adding your IP address to the whitelist - the whitelist only allows 3 entries, you need to delete an old one to add a new one.
  2. Adding SSH public key: It's better to add your SSH public key by asking a colleague to do the following, avoid using cPanel at all, since cPanel requires you to share your private key, which should not be shared in any case.
$ ssh -p 2683 [email protected]
$ cat >> .ssh/authorized_keys

How the .htaccess file works

The Makfile generates a list of rewrite rules for accessing TokenScript files based on their token contract addresses. See more in how_it_works.md

Background: how user agents get tokenscripts

See how user agents get tokenscripts.

About

A repo full of signed TokenScript files which are served to AlphaWallet

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •