-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #146 from dojoengine/torii-client
Torii client
- Loading branch information
Showing
7 changed files
with
54 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,41 @@ | ||
## Deploying Locally to Katana | ||
## Local Deployment with Katana | ||
|
||
Dojo is engineered for rapid development, boasting a lightning-fast local development sequencer, [Katana](../toolchain/katana/overview.md). Katana serves as an on-device Starknet blockchain, allowing you to rigorously test your smart contracts before transitioning them to the remote testnet. | ||
Experience the power of rapid development with Dojo, featuring the ultra-fast local development sequencer, [Katana](../toolchain/katana/overview.md). Katana acts as an on-device Starknet, enabling thorough testing of your dojo world in a controlled environment before migrating them to the remote testnet. | ||
|
||
### Katana Deployments | ||
### Easy Katana Deployments | ||
|
||
Deploying to Katana could not be easier. | ||
Deploying to Katana is straightforward and efficient. | ||
|
||
> This assumes you have followed the [Quick Start](../getting-started/quick-start.md) guide and have a project initialized. | ||
> **Pre-requisite:** Ensure you've completed the [Quick Start](../getting-started/quick-start.md) guide and have your project set up. | ||
From your project directory, run: | ||
To initiate Katana from your project directory, execute: | ||
|
||
```bash | ||
katana --disable-fee | ||
``` | ||
|
||
This has started a local Katana which you can now deploy on! | ||
This command launches a local instance of Katana, setting the stage for your deployment. | ||
|
||
### Deploying to Katana | ||
### Step-by-Step Guide to Deploy on Katana | ||
|
||
To deploy your project to Katana, run: | ||
Deploying your project to Katana involves a few simple steps.\ | ||
|
||
```bash | ||
sozo migrate --name test | ||
``` | ||
1. **Compile Your Contracts:** | ||
|
||
Note - this will only work if you have compiled your contracts. If you have not, run: | ||
If you haven't compiled your contracts yet, run: | ||
|
||
```bash | ||
sozo build | ||
``` | ||
```bash | ||
sozo build | ||
``` | ||
|
||
Compiling ensures that your contracts are ready for deployment. | ||
|
||
2. **Migrate your Project:** | ||
|
||
To migrate, run: | ||
|
||
```bash | ||
sozo migrate | ||
``` | ||
|
||
Success! You have now migrated your world. You will be able to interact with the world using [sozo](../toolchain/sozo/overview.md). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,9 @@ | ||
# Graphql | ||
## gRPC | ||
|
||
_TL;DR_ | ||
|
||
- gRPC is an efficient way to fetch your data | ||
- You can subscribe to entity and model events via the gRPC | ||
- Read more - [gRPC](https://grpc.io/docs/what-is-grpc/introduction/) | ||
|
||
You can use the gRPC directly or you can use it through a developed client. A great way to use it is via [dojo.js](../../client/dojojs.md) torii-client package. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters