Skip to content

Commit

Permalink
docs(template/contract): update to new mud.config.ts 🚗 (#2911)
Browse files Browse the repository at this point in the history
  • Loading branch information
qbzzt authored Jun 25, 2024
1 parent e5c28df commit 80e700a
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions docs/pages/templates/typescript/contracts.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,21 @@ The onchain components can be divided into two types of functionality:
#### `mud.config.ts`

The table schema is declared in `packages/contracts/mud.config.ts`.
[Read more details about the schema definition here](/cli/config).
[Read more details about the schema definition here](/config).

The table schema provided in the example is extremely simple (one singleton).

```ts filename="mud.config.ts" copy
import { mudConfig } from "@latticexyz/world/register";
import { defineWorld } from "@latticexyz/world";

export default mudConfig({
export default defineWorld({
namespace: "app",
tables: {
Counter: {
keySchema: {},
valueSchema: "uint32",
schema: {
value: "uint32",
},
key: [],
},
},
});
Expand Down

0 comments on commit 80e700a

Please sign in to comment.