Skip to content

Commit

Permalink
Change Crate Name to Helius
Browse files Browse the repository at this point in the history
  • Loading branch information
0xIchigo committed May 8, 2024
1 parent 9b226a4 commit 24fa4c2
Show file tree
Hide file tree
Showing 32 changed files with 131 additions and 131 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "helius_sdk"
name = "helius"
version = "0.1.0"
edition = "2021"
description ="An asynchronous Helius Rust SDK for building the future of Solana"
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ Remember to run `cargo update` regularly to fetch the latest version of the SDK.
## Usage
The SDK needs to be configured with your account's API key, which can be found on the [Helius Developer Dashboard](https://dev.helius.xyz/dashboard/app). The following code is an example of how to use the SDK to fetch info on [Mad Lad #8420](https://xray.helius.xyz/token/F9Lw3ki3hJ7PF9HQXsBzoY8GyE6sPoEZZdXJBsTTD2rk?network=mainnet):
```rust
use helius_sdk::config::Config;
use helius_sdk::error::HeliusError;
use helius_sdk::rpc_client::RpcClient;
use helius_sdk::types::types::{GetAssetResponseForAsset, DisplayOptions};
use helius_sdk::types::{Cluster, GetAssetRequest};
use helius::config::Config;
use helius::error::HeliusError;
use helius::rpc_client::RpcClient;
use helius::types::types::{GetAssetResponseForAsset, DisplayOptions};
use helius::types::{Cluster, GetAssetRequest};

use reqwest::Client;
use std::sync::Arc;
Expand Down Expand Up @@ -84,7 +84,7 @@ If you encounter any of these errors:
- Refer to the [Helius documentation](https://docs.helius.dev/) for further guidance
- Reach out to the Helius support team for more detailed assistance

## Using the Helius SDK
## Methods
Our SDK is designed to provide a seamless developer experience when building on Solana. We've separated the core functionality into various segments:

### DAS API
Expand Down
10 changes: 5 additions & 5 deletions examples/get_asset_batch.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
use helius_sdk::config::Config;
use helius_sdk::error::HeliusError;
use helius_sdk::rpc_client::RpcClient;
use helius_sdk::types::{Asset, Cluster, GetAssetBatch, GetAssetOptions};
use helius_sdk::Helius;
use helius::config::Config;
use helius::error::HeliusError;
use helius::rpc_client::RpcClient;
use helius::types::{Asset, Cluster, GetAssetBatch, GetAssetOptions};
use helius::Helius;

use reqwest::Client;
use std::sync::Arc;
Expand Down
10 changes: 5 additions & 5 deletions examples/get_asset_proof_batch.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
use helius_sdk::config::Config;
use helius_sdk::error::HeliusError;
use helius_sdk::rpc_client::RpcClient;
use helius_sdk::types::{AssetProof, Cluster, GetAssetProofBatch};
use helius_sdk::Helius;
use helius::config::Config;
use helius::error::HeliusError;
use helius::rpc_client::RpcClient;
use helius::types::{AssetProof, Cluster, GetAssetProofBatch};
use helius::Helius;

use reqwest::Client;
use std::collections::HashMap;
Expand Down
10 changes: 5 additions & 5 deletions examples/get_latest_blockhash.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
use helius_sdk::config::Config;
use helius_sdk::error::HeliusError;
use helius_sdk::rpc_client::RpcClient;
use helius_sdk::types::*;
use helius_sdk::Helius;
use helius::config::Config;
use helius::error::HeliusError;
use helius::rpc_client::RpcClient;
use helius::types::*;
use helius::Helius;

use reqwest::Client;
use solana_client::client_error::ClientError;
Expand Down
10 changes: 5 additions & 5 deletions examples/get_parse_transactions.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
use helius_sdk::config::Config;
use helius_sdk::error::HeliusError;
use helius_sdk::rpc_client::RpcClient;
use helius_sdk::types::*;
use helius_sdk::Helius;
use helius::config::Config;
use helius::error::HeliusError;
use helius::rpc_client::RpcClient;
use helius::types::*;
use helius::Helius;

use reqwest::Client;
use std::sync::Arc;
Expand Down
10 changes: 5 additions & 5 deletions examples/get_parsed_transaction_history.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
use helius_sdk::config::Config;
use helius_sdk::error::HeliusError;
use helius_sdk::rpc_client::RpcClient;
use helius_sdk::types::*;
use helius_sdk::Helius;
use helius::config::Config;
use helius::error::HeliusError;
use helius::rpc_client::RpcClient;
use helius::types::*;
use helius::Helius;
use std::sync::Arc;

#[tokio::main]
Expand Down
10 changes: 5 additions & 5 deletions examples/get_priority_fee_estimate.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
use helius_sdk::config::Config;
use helius_sdk::error::HeliusError;
use helius_sdk::rpc_client::RpcClient;
use helius_sdk::types::*;
use helius_sdk::Helius;
use helius::config::Config;
use helius::error::HeliusError;
use helius::rpc_client::RpcClient;
use helius::types::*;
use helius::Helius;
use std::sync::Arc;

#[tokio::main]
Expand Down
10 changes: 5 additions & 5 deletions examples/mint_cnft.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
use helius_sdk::config::Config;
use helius_sdk::error::HeliusError;
use helius_sdk::rpc_client::RpcClient;
use helius_sdk::types::*;
use helius_sdk::Helius;
use helius::config::Config;
use helius::error::HeliusError;
use helius::rpc_client::RpcClient;
use helius::types::*;
use helius::Helius;
use serde_json::Value;
use std::sync::Arc;

Expand Down
10 changes: 5 additions & 5 deletions tests/rpc/test_get_asset.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
use std::sync::Arc;

use helius_sdk::client::Helius;
use helius_sdk::config::Config;
use helius_sdk::error::HeliusError;
use helius_sdk::rpc_client::RpcClient;
use helius_sdk::types::*;
use helius::client::Helius;
use helius::config::Config;
use helius::error::HeliusError;
use helius::rpc_client::RpcClient;
use helius::types::*;

use mockito::{self, Server};
use reqwest::Client;
Expand Down
10 changes: 5 additions & 5 deletions tests/rpc/test_get_asset_batch.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
use std::sync::Arc;

use helius_sdk::client::Helius;
use helius_sdk::config::Config;
use helius_sdk::error::HeliusError;
use helius_sdk::rpc_client::RpcClient;
use helius_sdk::types::{
use helius::client::Helius;
use helius::config::Config;
use helius::error::HeliusError;
use helius::rpc_client::RpcClient;
use helius::types::{
ApiResponse, Asset, Attribute, Authorities, Cluster, CollectionMetadata, Compression, Content, Creator, File,
GetAssetBatch, GetAssetOptions, Group, HeliusEndpoints, Interface, Links, Metadata, Ownership, OwnershipModel,
Royalty, RoyaltyModel, Scope, Supply,
Expand Down
10 changes: 5 additions & 5 deletions tests/rpc/test_get_asset_proof.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
use std::sync::Arc;

use helius_sdk::client::Helius;
use helius_sdk::config::Config;
use helius_sdk::error::HeliusError;
use helius_sdk::rpc_client::RpcClient;
use helius_sdk::types::*;
use helius::client::Helius;
use helius::config::Config;
use helius::error::HeliusError;
use helius::rpc_client::RpcClient;
use helius::types::*;

use mockito::{self, Server};
use reqwest::Client;
Expand Down
10 changes: 5 additions & 5 deletions tests/rpc/test_get_asset_proof_batch.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
use std::collections::HashMap;
use std::sync::Arc;

use helius_sdk::client::Helius;
use helius_sdk::config::Config;
use helius_sdk::error::HeliusError;
use helius_sdk::rpc_client::RpcClient;
use helius_sdk::types::*;
use helius::client::Helius;
use helius::config::Config;
use helius::error::HeliusError;
use helius::rpc_client::RpcClient;
use helius::types::*;

use mockito::{self, Server};
use reqwest::Client;
Expand Down
10 changes: 5 additions & 5 deletions tests/rpc/test_get_assets_by_authority.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
use helius_sdk::config::Config;
use helius_sdk::error::Result;
use helius_sdk::rpc_client::RpcClient;
use helius_sdk::types::{
use helius::config::Config;
use helius::error::Result;
use helius::rpc_client::RpcClient;
use helius::types::{
ApiResponse, Asset, AssetList, Attribute, Authorities, Cluster, Compression, Content, Creator, File,
GetAssetsByAuthority, Group, HeliusEndpoints, Interface, Links, Metadata, Ownership, OwnershipModel, Royalty,
RoyaltyModel, Scope, Supply,
};
use helius_sdk::Helius;
use helius::Helius;

use mockito::{self, Server};
use reqwest::Client;
Expand Down
10 changes: 5 additions & 5 deletions tests/rpc/test_get_assets_by_creator.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
use helius_sdk::config::Config;
use helius_sdk::error::Result;
use helius_sdk::rpc_client::RpcClient;
use helius_sdk::types::{
use helius::config::Config;
use helius::error::Result;
use helius::rpc_client::RpcClient;
use helius::types::{
ApiResponse, Asset, AssetList, Attribute, Authorities, Cluster, Compression, Content, Creator, File,
GetAssetsByCreator, Group, HeliusEndpoints, Interface, Links, Metadata, Ownership, OwnershipModel, Royalty,
RoyaltyModel, Scope, Supply,
};
use helius_sdk::Helius;
use helius::Helius;

use mockito::{self, Server};
use reqwest::Client;
Expand Down
10 changes: 5 additions & 5 deletions tests/rpc/test_get_assets_by_group.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
use std::sync::Arc;

use helius_sdk::client::Helius;
use helius_sdk::config::Config;
use helius_sdk::error::HeliusError;
use helius_sdk::rpc_client::RpcClient;
use helius_sdk::types::*;
use helius::client::Helius;
use helius::config::Config;
use helius::error::HeliusError;
use helius::rpc_client::RpcClient;
use helius::types::*;

use mockito::{self, Server};
use reqwest::Client;
Expand Down
10 changes: 5 additions & 5 deletions tests/rpc/test_get_assets_by_owner.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
use helius_sdk::config::Config;
use helius_sdk::error::HeliusError;
use helius_sdk::rpc_client::RpcClient;
use helius_sdk::types::{
use helius::config::Config;
use helius::error::HeliusError;
use helius::rpc_client::RpcClient;
use helius::types::{
ApiResponse, Asset, AssetList, Attribute, Authorities, Cluster, Compression, Content, Creator, File,
GetAssetsByOwner, Group, HeliusEndpoints, Interface, Links, Metadata, Ownership, OwnershipModel, Royalty,
RoyaltyModel, Scope, Supply,
};
use helius_sdk::Helius;
use helius::Helius;

use mockito::{self, Server};
use reqwest::Client;
Expand Down
10 changes: 5 additions & 5 deletions tests/rpc/test_get_nft_editions.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
use std::sync::Arc;

use helius_sdk::client::Helius;
use helius_sdk::config::Config;
use helius_sdk::error::HeliusError;
use helius_sdk::rpc_client::RpcClient;
use helius_sdk::types::*;
use helius::client::Helius;
use helius::config::Config;
use helius::error::HeliusError;
use helius::rpc_client::RpcClient;
use helius::types::*;

use mockito::{self, Server};
use reqwest::Client;
Expand Down
10 changes: 5 additions & 5 deletions tests/rpc/test_get_priority_fee_estimate.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
use std::sync::Arc;

use helius_sdk::client::Helius;
use helius_sdk::config::Config;
use helius_sdk::error::HeliusError;
use helius_sdk::rpc_client::RpcClient;
use helius_sdk::types::*;
use helius::client::Helius;
use helius::config::Config;
use helius::error::HeliusError;
use helius::rpc_client::RpcClient;
use helius::types::*;

use mockito::{self, Server};
use reqwest::Client;
Expand Down
10 changes: 5 additions & 5 deletions tests/rpc/test_get_rwa_asset.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
use std::sync::Arc;

use helius_sdk::client::Helius;
use helius_sdk::config::Config;
use helius_sdk::error::HeliusError;
use helius_sdk::rpc_client::RpcClient;
use helius_sdk::types::*;
use helius::client::Helius;
use helius::config::Config;
use helius::error::HeliusError;
use helius::rpc_client::RpcClient;
use helius::types::*;

use mockito::{self, Server};
use reqwest::Client;
Expand Down
10 changes: 5 additions & 5 deletions tests/rpc/test_get_signatures_for_asset.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
use std::sync::Arc;

use helius_sdk::client::Helius;
use helius_sdk::config::Config;
use helius_sdk::error::HeliusError;
use helius_sdk::rpc_client::RpcClient;
use helius_sdk::types::*;
use helius::client::Helius;
use helius::config::Config;
use helius::error::HeliusError;
use helius::rpc_client::RpcClient;
use helius::types::*;

use mockito::{self, Server};
use reqwest::Client;
Expand Down
10 changes: 5 additions & 5 deletions tests/rpc/test_get_token_accounts.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
use std::sync::Arc;

use helius_sdk::client::Helius;
use helius_sdk::config::Config;
use helius_sdk::error::HeliusError;
use helius_sdk::rpc_client::RpcClient;
use helius_sdk::types::*;
use helius::client::Helius;
use helius::config::Config;
use helius::error::HeliusError;
use helius::rpc_client::RpcClient;
use helius::types::*;

use mockito::{self, Server};
use reqwest::Client;
Expand Down
10 changes: 5 additions & 5 deletions tests/rpc/test_search_assets.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
use helius_sdk::config::Config;
use helius_sdk::error::HeliusError;
use helius_sdk::rpc_client::RpcClient;
use helius_sdk::types::{
use helius::config::Config;
use helius::error::HeliusError;
use helius::rpc_client::RpcClient;
use helius::types::{
ApiResponse, Asset, AssetList, Attribute, Authorities, Cluster, Compression, Content, Creator, File, Group,
HeliusEndpoints, Interface, Links, Metadata, Ownership, OwnershipModel, Royalty, RoyaltyModel, Scope, SearchAssets,
Supply,
};
use helius_sdk::Helius;
use helius::Helius;

use mockito::{self, Server};
use reqwest::Client;
Expand Down
6 changes: 3 additions & 3 deletions tests/test_client.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use helius_sdk::client::Helius;
use helius_sdk::error::Result;
use helius_sdk::types::Cluster;
use helius::client::Helius;
use helius::error::Result;
use helius::types::Cluster;

#[test]
fn test_creating_new_client_success() {
Expand Down
6 changes: 3 additions & 3 deletions tests/test_config.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use helius_sdk::config::Config;
use helius_sdk::error::HeliusError;
use helius_sdk::types::Cluster;
use helius::config::Config;
use helius::error::HeliusError;
use helius::types::Cluster;

#[test]
fn test_config_new_with_empty_api_key() {
Expand Down
Loading

0 comments on commit 24fa4c2

Please sign in to comment.