-
Notifications
You must be signed in to change notification settings - Fork 0
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 #2704 from build-5/how-tos
Add How-tos
- Loading branch information
Showing
18 changed files
with
243 additions
and
39 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
8 changes: 8 additions & 0 deletions
8
docs/docs/products/dao_management/member/how-to/create-member.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
title: Create Member | ||
--- | ||
|
||
To create a member, you need to call `createMember`. | ||
|
||
```tsx file=../../../../../../packages/sdk/examples/member/create.ts#L6-L12 | ||
``` |
13 changes: 13 additions & 0 deletions
13
docs/docs/products/dao_management/member/how-to/update-member.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
title: Update Member | ||
--- | ||
|
||
To update a member, we first get the member with their ID, which, in this case, is the member's address. | ||
|
||
```tsx file=../../../../../../packages/sdk/examples/member/update.ts#L8-L12 | ||
``` | ||
|
||
With the member, we can create a signature and update, for example, the name by calling `update` on `dataset(Dataset.MEMBER)` and passing the new name in the body. | ||
|
||
```tsx file=../../../../../../packages/sdk/examples/member/update.ts#L16-L29 | ||
``` |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
title: Member Management | ||
--- | ||
|
||
Spaces can have multiple members. Members can be added and removed from a space. Members can be assigned different roles. | ||
The following How-To's will help you manage your members. |
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
8 changes: 8 additions & 0 deletions
8
docs/docs/products/dao_management/space/how-to/create-space.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
title: Create Space | ||
--- | ||
|
||
To create a space, you must call `create` on `dataset(Dataset.SPACE)`. In the body, you can specify the name of the space. | ||
|
||
```tsx file=../../../../../../packages/sdk/examples/create_space.ts#L11-L26 | ||
``` |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
title: Space Management | ||
--- | ||
|
||
Spaces are a way to organize members, tokens, and more around a specific topic/project. Spaces can create their tokens, NFT collections, staking events, and many other things. Spaces can have different types of members, each with additional permissions. |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
title: Create NFT Collection | ||
--- | ||
|
||
To create a NFT collection, you must call `create` on `dataset(Dataset.NFT_COLLECTION)`. In the body, you can specify the collection's name, the symbol, the base URI, and more. | ||
|
||
```tsx file=../../../../../packages/sdk/examples/create_nft_collection.ts#L19-L44 | ||
``` | ||
|
||
After that, you should create a list of objects that describe the single NFTs, their name, description and image, price, and so on. | ||
|
||
```tsx file=../../../../../packages/sdk/examples/create_nft_collection.ts#L49-L65 | ||
``` | ||
|
||
As a last step, you can mint the batch of NFTs by calling `createBatch` on `dataset(Dataset.NFT)` and passing the list of NFTs in the body. | ||
|
||
```tsx file=../../../../../packages/sdk/examples/create_nft_collection.ts#L67-L78 | ||
``` |
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
title: Create Project | ||
description: How to create a project | ||
keywords: | ||
- project | ||
- client | ||
--- | ||
|
||
Before creating NFT collections, tokens, and more, the first thing to do should be to create a project with the `createProject` function. | ||
|
||
:::info | ||
|
||
In the following examples, we will connect to the soonaverse project (its API keys are part of the SDK for ease of use). You can also create your own project to give you your API key. | ||
|
||
::: | ||
|
||
```tsx file=../../../../../packages/sdk/examples/create_project.ts#L11-L24 | ||
``` |
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
title: Create a Stamp | ||
--- | ||
|
||
To create a stamp, you must call `create` on `dataset(Dataset.STAMP)`. In the body, you can specify the file you want to stamp. | ||
|
||
```tsx file=../../../../../packages/sdk/examples/create_stamp.ts#L13-L27 | ||
``` |
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
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
Oops, something went wrong.