sunspot-0.1.2 is not a library.
Sunspot Proxy
Sunspot is a proxy server that enables custom RPC urls and custom token metadata lists for the Solflare Solana wallet.
Installation
Setting up Local Certificate Authority
Generating Certificates
From repo root
From anywhere
Adding CA to Chrome
- Go to chrome://settings/certificates in your Chrome browser
- Go to the
Authoritiestab and thenImport - Select the
sunspot.pemfile from thecertsdirectory - Select
Trust this certificate for identifying websitesand clickOK
Adding CA to Firefox
- Go to about:preferences#privacy in your Firefox browser and scroll down to
Certificates - Click
View Certificates, go to theAuthoritiestab, and then clickImport - Select the
sunspot.pemfile from thecertsdirectory - Select
Trust this CA to identify websites.and clickOK
Setting up SwitchyOmega Proxy
- Install from the Chrome Web Store or Firefox Add-ons
- In the SwitchyOmega options, go to Import/Export and click
Restore from file - Select the
OmegaOptions.bakfile from theswitchy-omega-proxydirectory - Click
Apply Changesand enable theauto switchoption through the extension icon
Usage
Using a Custom Token List File
Sunspot allows you to provide a custom token-list JSON file, which is used to add custom names, symbols, and imageURIs to tokens in both the wallet view and during simulations.
You can pass this file to Sunspot using the --token-list (-t) flag.
Thanks
Special thanks to the Hudsucker crate for the MITM HTTP/S proxy implementation