File tree Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Original file line number Diff line number Diff line change 13
13
from .ratelimit import RateLimit
14
14
from . import config
15
15
16
- SOLANA_DEVNET_HTTP_ENDPOINT = "https://api.devnet.solana.com"
17
- SOLANA_DEVNET_WS_ENDPOINT = "wss://api.devnet.solana.com"
16
+ WS_PREFIX = "wss"
17
+ HTTP_PREFIX = "https"
18
+
19
+ DEVNET_ENDPOINT = "api.devnet.solana.com"
20
+ TESTNET_ENDPOINT = "api.testnet.solana.com"
21
+ MAINNET_ENDPOINT = "api.mainnet-beta.solana.com"
22
+
23
+ SOLANA_DEVNET_WS_ENDPOINT = WS_PREFIX + "://" + DEVNET_ENDPOINT
24
+ SOLANA_DEVNET_HTTP_ENDPOINT = HTTP_PREFIX + "://" + DEVNET_ENDPOINT
25
+
26
+ SOLANA_TESTNET_WS_ENDPOINT = WS_PREFIX + "://" + TESTNET_ENDPOINT
27
+ SOLANA_TESTNET_HTTP_ENDPOINT = HTTP_PREFIX + "://" + TESTNET_ENDPOINT
28
+
29
+ SOLANA_MAINNET_WS_ENDPOINT = WS_PREFIX + "://" + MAINNET_ENDPOINT
30
+ SOLANA_MAINNET_HTTP_ENDPOINT = HTTP_PREFIX + "://" + MAINNET_ENDPOINT
18
31
19
32
20
33
class SolanaPublicKey :
You can’t perform that action at this time.
0 commit comments