Skip to content

Commit

Permalink
Merge pull request #105 from kkomelin/patch-1
Browse files Browse the repository at this point in the history
(docs) Updated integration.md: Added Walrus & Walrus Site Builder section
  • Loading branch information
mario4tier committed Jun 21, 2024
2 parents 583e925 + 6a5c129 commit 500859d
Showing 1 changed file with 32 additions and 2 deletions.
34 changes: 32 additions & 2 deletions docs/src/how-to/integration.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,35 @@ contributors: true
editLink: true
---

## Walrus
TBD
## Walrus & Walrus Site Builder

Suibase has its own environement configuration for every network (localnet, devnet, testnet, mainnet).

To be able to use Walrus or Walrus Site Builder with Suibase, you first need to activate a particular Suibase network environment like this:

```bash
testnet start
```

_Currently Walrus is only avaiable on Testnet, so the examples here a for Testnet only, but feel free to adjust the commands and paths according to your target environment._

Next step is to supply Suibase wallet configuration to Walrus or Walrus Site Builder this way:

```bash
walrus --wallet ~/suibase/workdirs/[network]/config/client.yaml <cmd>
#or
site-builder --wallet ~/suibase/workdirs/[network]/config/client.yaml <cmd>
```
where `[network]` is either localnet, devnet, testnet or mainnet.


For example, to deploy a web app to Walrus Sites on testnet, you need to do the following:

```bash
site-builder --config ./walrus.yaml --wallet ~/suibase/workdirs/testnet/config/client.yaml publish ./dist
```
where `walrus.yaml` is a Walrus Site Builder config file.

Normally Suibase creates necessary Gas objects on first environment start, which will be used to perform the required transactions on-chain.

Please refer to the [Walrus documentation](https://docs.walrus.site/) to learn more about its config files and commands.

0 comments on commit 500859d

Please sign in to comment.