Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,8 @@
"printWidth": 80,
"tabWidth": 2,
"singleQuote": false,
"trailingComma": "all"
"trailingComma": "all",
"proseWrap": "preserve",
"embeddedLanguageFormatting": "auto",
"endOfLine": "lf"
}
5 changes: 4 additions & 1 deletion docs/src/web-client/.prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,8 @@
"printWidth": 80,
"tabWidth": 2,
"singleQuote": true,
"trailingComma": "all"
"trailingComma": "all",
"proseWrap": "preserve",
"embeddedLanguageFormatting": "auto",
"endOfLine": "lf"
}
10 changes: 4 additions & 6 deletions docs/src/web-client/create_deploy_tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,8 @@ export async function createMintConsume(): Promise<void> {
}

// dynamic import → only in the browser, so WASM is loaded client‑side
const { WebClient, AccountStorageMode, AccountId, NoteType } = await import(
'@demox-labs/miden-sdk'
);
const { WebClient, AccountStorageMode, AccountId, NoteType } =
await import('@demox-labs/miden-sdk');

// Connect to Miden testnet RPC endpoint
const nodeEndpoint = 'https://rpc.testnet.miden.io';
Expand Down Expand Up @@ -244,9 +243,8 @@ export async function createMintConsume(): Promise<void> {
}

// dynamic import → only in the browser, so WASM is loaded client‑side
const { WebClient, AccountStorageMode, NoteType, Address } = await import(
'@demox-labs/miden-sdk'
);
const { WebClient, AccountStorageMode, NoteType, Address } =
await import('@demox-labs/miden-sdk');

const nodeEndpoint = 'https://rpc.testnet.miden.io';
const client = await WebClient.createClient(nodeEndpoint);
Expand Down
2 changes: 0 additions & 2 deletions docs/src/web-client/about.md → docs/src/web-client/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ title: 'Web Client'
sidebar_position: 1
---

# WebClient

TypeScript library, which can be used to programmatically interact with the Miden rollup.

The Miden WebClient can be used for a variety of things, including:
Expand Down
5 changes: 2 additions & 3 deletions docs/src/web-client/mint_consume_create_tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,8 @@ export async function createMintConsume(): Promise<void> {
}

// dynamic import → only in the browser, so WASM is loaded client‑side
const { WebClient, AccountStorageMode, NoteType, Address } = await import(
'@demox-labs/miden-sdk'
);
const { WebClient, AccountStorageMode, NoteType, Address } =
await import('@demox-labs/miden-sdk');

const nodeEndpoint = 'https://rpc.testnet.miden.io';
const client = await WebClient.createClient(nodeEndpoint);
Expand Down