Skip to content

Instantly share code, notes, and snippets.

@gessichen
Created October 27, 2020 05:04
Show Gist options
  • Save gessichen/f0b9d57f7ce24f9b52b4dd74854daf7d to your computer and use it in GitHub Desktop.
Save gessichen/f0b9d57f7ce24f9b52b4dd74854daf7d to your computer and use it in GitHub Desktop.

Solong Extension is like Metamask to Solana, where you can manage all your Solana crypro assets and interact with Solana dapps.

Install(preview version)

The official version of Solong extension will be avaiable in chrome extension store soon, now you try it by directly loading the Extention package, the file structure looks like this:

x solong_v0.1.0_preview/
x solong_v0.1.0_preview/icon-16.png
x solong_v0.1.0_preview/js/
x solong_v0.1.0_preview/popup.html
x solong_v0.1.0_preview/icon-48.png
x solong_v0.1.0_preview/manifest.json
x solong_v0.1.0_preview/icon-128.png
x solong_v0.1.0_preview/js/popup.js
x solong_v0.1.0_preview/js/backgroundPage.js
x solong_v0.1.0_preview/js/inpage.js
x solong_v0.1.0_preview/js/content.js

Open Chrome explorer,input: chrome://extensions in the address bar

Click "Developer mode" to enable developer mode:

There will be three buttons showing on the top left。Click "Load Unpacked",and choose our extension folder in the file selector, then you will see Solong in the extension list.

For convenience,you can pin Solong extension from the list for futher use:

Click "pin",then it will always show in the extension bar:

Create account

After installation,Click the slong extension to pop it up, you will see this page

After set your password,you will need to choose create an account or import an existed one. If you choose to create an account,Solong will generate the mnemonic words and you should note them down and keep in safe place

You can also import your account by input the mnemonic words:

Now you are done with initializing your account.

Transfer

For assets transfer,if SOL,you can just click "Send" button in the main page, for other SPL tokens,you click the token in the assets list and click "Send":

then input the receiver's address and the amount you wanna transfer

If you want to receive assets,Click "Receive" and choose the assets you want to receive:

Then you can either use the QR code or copy the depoist address

Play with dapps

With Solong Extension,we can use it to interact with any Solana dapps smoothly. Let's take Serum.today for example to explore how we use it.

Once you have done with the install,openSerum.today then click "Connect" button on the top right corner, then you authorize your current account:

Now you have authorized/logged with your account

then we try to place an order,after you click "BUY" or "SELL",a pop up will ask for your confirmation to sign these transactions:

Click "Confirm" to confirm or reject to deny

The same process apply to other actions like cancel, settle, etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment