Skip to content

Commit

Permalink
v9.4.0: add 3rd solana sockets provider
Browse files Browse the repository at this point in the history
  • Loading branch information
0xNe0x1 committed Jun 9, 2024
1 parent 56c88d2 commit 0646afb
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 4 deletions.
3 changes: 2 additions & 1 deletion dist/esm/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion dist/umd/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@depay/web3-blockchains",
"moduleName": "Web3Blockchains",
"version": "9.3.6",
"version": "9.4.0",
"description": "JavaScript library containing aggregated information and abstractions for web3 blockchains.",
"main": "dist/umd/index.js",
"module": "dist/esm/index.js",
Expand Down
3 changes: 2 additions & 1 deletion src/blockchains/solana.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ export default {
],
sockets: [
'wss://solana.drpc.org',
'wss://mainnet-beta.solflare.network'
'wss://mainnet-beta.solflare.network',
'wss://solana.a.exodus.io'
],
tokens: [ // only major tokens
{"address": "11111111111111111111111111111111", "symbol": "SOL", "name": "Solana", "decimals": 9, "logo": currencyLogo, "type": "NATIVE"},
Expand Down
5 changes: 5 additions & 0 deletions tests/units/blockchains/solana.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ describe('solana', () => {
'https://mainnet-beta.solflare.network',
'https://swr.xnftdata.com/rpc-proxy'
]);
expect(blockchain.sockets).toEqual([
'wss://solana.drpc.org',
'wss://mainnet-beta.solflare.network',
'wss://solana.a.exodus.io'
]);
expect(blockchain.explorerUrlFor({
transaction: { id: '3Hk7wbH6aEoiW5NA9d4HFBNDnPqFB8aeAnNpJhHg9VJ4g9aqQZfcX5gj2orN4wksY8kRkToD2viZiiRrXjnt78BC' }
})).toEqual('https://solscan.io/tx/3Hk7wbH6aEoiW5NA9d4HFBNDnPqFB8aeAnNpJhHg9VJ4g9aqQZfcX5gj2orN4wksY8kRkToD2viZiiRrXjnt78BC')
Expand Down

0 comments on commit 0646afb

Please sign in to comment.