Skip to content

Commit

Permalink
Merge branch main into dojo-client
Browse files Browse the repository at this point in the history
  • Loading branch information
kariy committed Aug 1, 2023
1 parent c45abd1 commit d88b72f
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 146 deletions.
1 change: 0 additions & 1 deletion Cargo.lock

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

85 changes: 0 additions & 85 deletions crates/dojo-client/src/api.rs

This file was deleted.

47 changes: 0 additions & 47 deletions crates/dojo-client/src/local/storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,57 +6,10 @@ use starknet::core::types::FieldElement;
/// [`StorageWriter`] defines a mutable interface to the storage.
pub trait StorageWriter {
type Error;

// /// Register a component.
// fn register_component(&mut self, component: Component) -> Result<(), Self::Error>;

// /// Register a system.
// fn register_system(&mut self, system: System) -> Result<(), Self::Error>;

// /// Set the executor contract address.
// fn set_executor(&mut self, executor: FieldElement) -> Result<(), Self::Error>;

// /// Set the component value for an entity.
// fn set_entity(
// &mut self,
// component: String,
// partition: FieldElement,
// keys: Vec<FieldElement>,
// values: Vec<FieldElement>,
// ) -> Result<(), Self::Error>;

// /// Delete a component from an entity.
// fn delete_entity(
// &mut self,
// component: String,
// partition: FieldElement,
// key: FieldElement,
// ) -> Result<(), Self::Error>;
}

/// [`StorageReader`] defines a immutable interface or a reference to the storage. It provides
/// more granular access to the World state.
pub trait StorageReader {
type Error;

// /// Get the component by its name
// fn component(&self, component: String) -> Result<Component, Self::Error>;

// /// Get the system by its name
// fn system(&self, system: String) -> Result<System, Self::Error>;

// /// Get the component value for an entity
// fn entity(
// &self,
// component: String,
// partition: FieldElement,
// key: FieldElement,
// ) -> Result<Vec<FieldElement>, Self::Error>;

// /// Get the entity IDs and entities that contain the component state
// fn entities(
// &self,
// component: String,
// partition: FieldElement,
// ) -> Result<Vec<Vec<FieldElement>>, Self::Error>;
}
13 changes: 0 additions & 13 deletions crates/dojo-client/src/provider/jsonrpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,3 @@ where
Self { provider, world_address }
}
}

// #[cfg_attr(not(target_arch = "wasm32"), async_trait)]
// #[cfg_attr(target_arch = "wasm32", async_trait(?Send))]
// impl<P> Provider for WorldProvider<P>
// where
// P: starknet::providers::Provider + Send + Sync,
// {
// type Error = P::Error;

// async fn world_address(&self) -> Result<FieldElement, Self::Error> {
// Ok(self.world_address)
// }
// }
Empty file.

0 comments on commit d88b72f

Please sign in to comment.