Skip to content

Commit

Permalink
Add types.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
0xIchigo committed Apr 17, 2024
1 parent 7d509e0 commit f365aa2
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/types.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/// Defines the available clusters supported by Helius
#[derive(Debug, Clone, PartialEq)]
pub enum Cluster {
Devnet,
MainnetBeta,
}

/// Stores the API and RPC endpoint URLs for a specific Helius cluster
#[derive(Debug, Clone)]
pub struct HeliusEndpoints {
pub api: String,
pub rpc: String,
}

0 comments on commit f365aa2

Please sign in to comment.