Cleanup rpc endpoints

This commit is contained in:
Slavomir 2021-07-25 16:27:03 +02:00
parent 43ee240b17
commit df2b78acca
2 changed files with 29 additions and 29 deletions

29
rpc/endpoints.go Normal file
View File

@ -0,0 +1,29 @@
package rpc
// See more: https://docs.solana.com/cluster/rpc-endpoints
const (
protocolHTTPS = "https://"
protocolWSS = "wss://"
)
const (
hostDevNet = "api.devnet.solana.com"
hostTestNet = "api.testnet.solana.com"
hostMainNetBeta = "api.mainnet-beta.solana.com"
hostMainNetBetaSerum = "solana-api.projectserum.com"
)
const (
EndpointRPCDevNet = protocolHTTPS + hostDevNet
EndpointRPCTestNet = protocolHTTPS + hostTestNet
EndpointRPCMainNetBeta = protocolHTTPS + hostMainNetBeta
EndpointRPCMainNetBetaSerum = protocolHTTPS + hostMainNetBetaSerum
)
const (
EndpointWSDevNet = protocolWSS + hostDevNet
EndpointWSTestNet = protocolWSS + hostTestNet
EndpointWSMainNetBeta = protocolWSS + hostMainNetBeta
EndpointWSMainNetBetaSerum = protocolWSS + hostMainNetBetaSerum
)

View File

@ -1,29 +0,0 @@
package rpc
// See more: https://docs.solana.com/cluster/rpc-endpoints
const (
protocolHTTPS = "https://"
protocolWSS = "wss://"
)
const (
hostDevNet = "api.devnet.solana.com"
hostTestNet = "api.testnet.solana.com"
hostMainNetBeta = "api.mainnet-beta.solana.com"
hostMainNetBetaSerum = "solana-api.projectserum.com"
)
const (
EndpointRPCDevNet = protocolHTTPS + "api.devnet.solana.com"
EndpointRPCTestNet = protocolHTTPS + "api.testnet.solana.com"
EndpointRPCMainNetBeta = protocolHTTPS + "api.mainnet-beta.solana.com"
EndpointRPCMainNetBetaSerum = protocolHTTPS + "solana-api.projectserum.com"
)
const (
EndpointWSDevNet = protocolWSS + "api.devnet.solana.com"
EndpointWSTestNet = protocolWSS + "api.testnet.solana.com"
EndpointWSMainNetBeta = protocolWSS + "api.mainnet-beta.solana.com"
EndpointWSMainNetBetaSerum = protocolWSS + "solana-api.projectserum.com"
)