From df2b78accaf4e54fc62ec69936dbd2ec94cfb282 Mon Sep 17 00:00:00 2001 From: Slavomir Date: Sun, 25 Jul 2021 16:27:03 +0200 Subject: [PATCH] Cleanup rpc endpoints --- rpc/endpoints.go | 29 +++++++++++++++++++++++++++++ rpc/rpc_endpoints.go | 29 ----------------------------- 2 files changed, 29 insertions(+), 29 deletions(-) create mode 100644 rpc/endpoints.go delete mode 100644 rpc/rpc_endpoints.go diff --git a/rpc/endpoints.go b/rpc/endpoints.go new file mode 100644 index 00000000..91f6609d --- /dev/null +++ b/rpc/endpoints.go @@ -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 +) diff --git a/rpc/rpc_endpoints.go b/rpc/rpc_endpoints.go deleted file mode 100644 index 9d65622b..00000000 --- a/rpc/rpc_endpoints.go +++ /dev/null @@ -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" -)