Skip to content

Commit 29acc98

Browse files
docs: Add EIP1193 extension documentation (#5600)
1 parent 46bf321 commit 29acc98

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

packages/thirdweb/scripts/typedoc.mjs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@ import { Application } from "typedoc";
44
const jsonOut = "typedoc/documentation.json";
55

66
const app = await Application.bootstrapWithPlugins({
7-
entryPoints: ["src/exports/**/*.ts", "src/extensions/modules/**/index.ts"],
7+
entryPoints: [
8+
"src/exports/**/*.ts",
9+
"src/extensions/modules/**/index.ts",
10+
"src/adapters/eip1193/index.ts",
11+
],
812
exclude: [
913
"src/exports/*.native.ts",
1014
"src/exports/**/*.native.ts",

packages/thirdweb/src/adapters/eip1193/from-eip1193.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ export type FromEip1193AdapterOptions = {
5454
* value: 1000000000000000000n
5555
* });
5656
* ```
57+
*
58+
* @extension EIP1193
5759
*/
5860
export function fromProvider(options: FromEip1193AdapterOptions): Wallet {
5961
const id: WalletId = options.walletId ?? "adapter";

packages/thirdweb/src/adapters/eip1193/to-eip1193.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ export type ToEip1193ProviderOptions = {
5050
* console.log("Active accounts:", accounts);
5151
* });
5252
* ```
53+
*
54+
* @extension EIP1193
5355
*/
5456
export function toProvider(options: ToEip1193ProviderOptions): EIP1193Provider {
5557
const { chain, client, wallet, connectOverride } = options;

0 commit comments

Comments
 (0)