Skip to content

Commit

Permalink
hotfix: change ws provider (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
b-avb authored Jun 14, 2024
1 parent 3ee77f2 commit 222a125
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/services/kreivo/balances.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ pub struct AccountData {
}

pub async fn account(account: &str) -> Result<AccountInfo, ChainStateError> {
let query = format!("wss://kreivo.kippu.rocks/system/account/{}", account);
let query = format!("wss://kreivo.io/system/account/{}", account);

log::info!("query: {:#?}", query);
let response = sube!(&query).await.map_err(|_| {
Expand Down
4 changes: 2 additions & 2 deletions src/services/kreivo/community_memberships.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ pub struct CollectionDetails {

pub async fn collection(collection: u16) -> Result<CollectionDetails, ChainStateError> {
let query = format!(
"wss://kreivo.kippu.rocks/communityMemberships/collection/{}",
"wss://kreivo.io/communityMemberships/collection/{}",
collection
);

Expand All @@ -33,7 +33,7 @@ pub async fn collection(collection: u16) -> Result<CollectionDetails, ChainState

pub async fn item(item: u16, member: Option<u16>) -> Result<u16, ChainStateError> {
let query = format!(
"wss://kreivo.kippu.rocks/communityMemberships/item/{}",
"wss://kreivo.io/communityMemberships/item/{}",
item
);

Expand Down
4 changes: 2 additions & 2 deletions src/services/kreivo/community_track.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ pub enum ChainStateError {
}

pub async fn tracksIds() -> Result<CommunityTracks, ChainStateError> {
let query = format!("wss://kreivo.kippu.rocks/communityTracks/tracksIds");
let query = format!("wss://kreivo.io/communityTracks/tracksIds");

let response = sube!(&query)
.await
Expand All @@ -41,7 +41,7 @@ pub struct TrackInfo {
}

pub async fn tracks(track: u16) -> Result<TrackInfo, ChainStateError> {
let query = format!("wss://kreivo.kippu.rocks/communityTracks/tracks/{}", track);
let query = format!("wss://kreivo.io/communityTracks/tracks/{}", track);

let response = sube!(&query).await.map_err(|e| {
log::info!("{}", e);
Expand Down

0 comments on commit 222a125

Please sign in to comment.