Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into entrykit
Browse files Browse the repository at this point in the history
  • Loading branch information
holic committed Oct 23, 2024
2 parents be51fef + 4e92fde commit 0124fe7
Show file tree
Hide file tree
Showing 157 changed files with 5,825 additions and 846 deletions.
5 changes: 5 additions & 0 deletions .changeset/brown-panthers-melt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@latticexyz/gas-report": patch
---

Gas report output now include contract name as part of the `file` to help with stable ordering when sorting output.
5 changes: 0 additions & 5 deletions .changeset/brown-sheep-confess.md

This file was deleted.

14 changes: 0 additions & 14 deletions .changeset/eighty-humans-divide.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/five-tomatoes-guess.md

This file was deleted.

16 changes: 16 additions & 0 deletions .changeset/giant-birds-argue.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
"@latticexyz/world-module-erc20": patch
---

The new ERC20 World Module provides a simpler alternative to the ERC20 Puppet Module, while also being structured in a more extendable way so users can create tokens with custom functionality.

To install this module, you can import and define the module configuration from the NPM package:

```typescript
import { defineERC20Config } from "@latticexyz/world-module-erc20";

// Add the output of this function to your World's modules
const config = defineERC20Config({ namespace: "erc20Namespace", name: "MyToken", symbol: "MTK" });
```

For detailed installation instructions, please check out the [`@latticexyz/world-module-erc20` README.md](https://github.com/latticexyz/mud/blob/main/packages/world-module-erc20/README.md).
25 changes: 0 additions & 25 deletions .changeset/hip-jokes-compare.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/hip-rings-rule.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/hip-turkeys-cheat.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/hot-buckets-draw.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/lucky-bulldogs-taste.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/mean-squids-buy.md

This file was deleted.

5 changes: 5 additions & 0 deletions .changeset/nine-numbers-yell.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@latticexyz/abi-ts": patch
---

Added an `--extension` option to customize the resulting TS or DTS output. It defaults to the previous behavior of `.json.d.ts`, but can now be set to `.d.json.ts` for compatibility with newer TS versions and `.json.ts` or just `.ts` for a pure TS file.
7 changes: 0 additions & 7 deletions .changeset/spotty-crabs-prove.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/tall-penguins-promise.md

This file was deleted.

87 changes: 87 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,90 @@
## Version 2.2.12

Release date: Fri Oct 18 2024

### Patch changes

**[feat(explorer): add functions filter to query state (#3268)](https://github.com/latticexyz/mud/commit/3d8db6f76f3634d532d39cf4091f22fee0a32b68)** (@latticexyz/explorer)

Function filters in `Interact` tab are now included as part of the URL.

**[feat(explorer): transaction timings (#3274)](https://github.com/latticexyz/mud/commit/1b0ffcf7a1a7daa2a87efe26059d6a142d257588)** (@latticexyz/explorer)

Transactions in Observe tab are now populated with timing metrics when using the `observer` Viem decorator in local projects.

You can wire up your local project to use transaction timings with:

```
import { observer } from "@latticexyz/explorer/observer";
// Extend the Viem client that is performing writes
walletClient.extend(observer());
```

**[fix(faucet,store-indexer): add bin wrappers (#3296)](https://github.com/latticexyz/mud/commit/20f44fbf733ff876d64a544c68a3cb1a4dc307a9)** (@latticexyz/faucet, @latticexyz/store-indexer)

Added bin wrappers to resolve issues when installing the package locally as a dependency of another package.

**[feat(explorer): show ABI errors in interact page (#3303)](https://github.com/latticexyz/mud/commit/d4c10c18ad853bed21c55fe92e2ba09c2382316d)** (@latticexyz/explorer)

Interact tab now displays decoded ABI errors for failed transactions.

**[chore: bump viem (#3273)](https://github.com/latticexyz/mud/commit/ea18f270c9a43dbe489b25f11b8379ccd969c02a)** (@latticexyz/block-logs-stream, @latticexyz/cli, @latticexyz/common, @latticexyz/config, @latticexyz/dev-tools, @latticexyz/explorer, @latticexyz/faucet, @latticexyz/protocol-parser, @latticexyz/schema-type, @latticexyz/stash, @latticexyz/store-indexer, @latticexyz/store-sync, @latticexyz/store, @latticexyz/world, create-mud)

Bumped viem to v2.21.19.

MUD projects using these packages should do the same to ensure no type errors due to mismatched versions:

```
pnpm recursive up [email protected]
```

**[fix(explorer): display nested inputs (#3266)](https://github.com/latticexyz/mud/commit/2c9240111ae11e6727d3581453fba2b866f4b4a0)** (@latticexyz/explorer)

Fixed inputs display in the transactions table row.

**[feat(common): add rhodolite chain (#3295)](https://github.com/latticexyz/mud/commit/41a6e2f83ac4d48a9dccf52d933c15074b9a724e)** (@latticexyz/common)

Added Rhodolite devnet chain config and removed the old and now-defunct Lattice testnet chain config.

**[feat(explorer): show explore table error message (#3286)](https://github.com/latticexyz/mud/commit/af725304e133f95b0b0eb827fdf7283e54ac8342)** (@latticexyz/explorer)

Display error messages for failed queries within the Explore tab's table viewer.

**[feat(explorer): sql editor (#3276)](https://github.com/latticexyz/mud/commit/3a80bed31b97d439025f68b8e4ded27354e102f1)** (@latticexyz/explorer)

Explore page now has a full-featured SQL editor with syntax highlighting, autocomplete, and query validation.

**[feat(explorer): front page (#3255)](https://github.com/latticexyz/mud/commit/6476dec94cf32275631d49c7e8fe8fe5a0708040)** (@latticexyz/explorer)

Each chain's home page now lets you find and pick a world to explore.

**[feat(store-sync): add support for watching pending logs (#3287)](https://github.com/latticexyz/mud/commit/84ae33b8af3ebeb90749c6e82250869b15d17ed1)** (@latticexyz/store-sync)

Added experimental support for syncing state from pending logs.

**[fix(explorer): various fixes (#3299)](https://github.com/latticexyz/mud/commit/9a43e87db302ec599fd1e97d8b77e2e68831017f)** (@latticexyz/explorer)

- Not found page if invalid chain name.
- Only show selector for worlds if options exist.
- Remove "future time" from transactions table.
- Improved layout for Interact tab.
- Wrap long args in transactions table.
- New tables polling.
- Add logs (regression).

**[fix(common): allow overriding fees in writeContract and sendTransaction (#3288)](https://github.com/latticexyz/mud/commit/fe98442d7ee82f0d41ba10f05a4ee1bafea69d48)** (@latticexyz/common)

The `transactionQueue` decorator internally keeps an updated reference for the recommended `baseFeePerGas` and `maxPriorityFeePerGas` from the connected chain to avoid having to fetch it right before sending a transaction.
However, due to the way the fee values were overridden, it wasn't possible for users to explicitly pass in custom fee values.
Now explicitly provided fee values have precedence over the internally estimated fee values.

**[feat(explorer): global transactions listener (#3285)](https://github.com/latticexyz/mud/commit/4b4640913d014fb3a0a5a417b84c91b247e08ffc)** (@latticexyz/explorer)

Transactions are now monitored across all tabs while the World Explorer is open.

---

## Version 2.2.11

Release date: Mon Oct 07 2024
Expand Down
87 changes: 87 additions & 0 deletions docs/pages/changelog.mdx
Original file line number Diff line number Diff line change
@@ -1,3 +1,90 @@
## Version 2.2.12

Release date: Fri Oct 18 2024

### Patch changes

**[feat(explorer): add functions filter to query state (#3268)](https://github.com/latticexyz/mud/commit/3d8db6f76f3634d532d39cf4091f22fee0a32b68)** (@latticexyz/explorer)

Function filters in `Interact` tab are now included as part of the URL.

**[feat(explorer): transaction timings (#3274)](https://github.com/latticexyz/mud/commit/1b0ffcf7a1a7daa2a87efe26059d6a142d257588)** (@latticexyz/explorer)

Transactions in Observe tab are now populated with timing metrics when using the `observer` Viem decorator in local projects.

You can wire up your local project to use transaction timings with:

```
import { observer } from "@latticexyz/explorer/observer";
// Extend the Viem client that is performing writes
walletClient.extend(observer());
```

**[fix(faucet,store-indexer): add bin wrappers (#3296)](https://github.com/latticexyz/mud/commit/20f44fbf733ff876d64a544c68a3cb1a4dc307a9)** (@latticexyz/faucet, @latticexyz/store-indexer)

Added bin wrappers to resolve issues when installing the package locally as a dependency of another package.

**[feat(explorer): show ABI errors in interact page (#3303)](https://github.com/latticexyz/mud/commit/d4c10c18ad853bed21c55fe92e2ba09c2382316d)** (@latticexyz/explorer)

Interact tab now displays decoded ABI errors for failed transactions.

**[chore: bump viem (#3273)](https://github.com/latticexyz/mud/commit/ea18f270c9a43dbe489b25f11b8379ccd969c02a)** (@latticexyz/block-logs-stream, @latticexyz/cli, @latticexyz/common, @latticexyz/config, @latticexyz/dev-tools, @latticexyz/explorer, @latticexyz/faucet, @latticexyz/protocol-parser, @latticexyz/schema-type, @latticexyz/stash, @latticexyz/store-indexer, @latticexyz/store-sync, @latticexyz/store, @latticexyz/world, create-mud)

Bumped viem to v2.21.19.

MUD projects using these packages should do the same to ensure no type errors due to mismatched versions:

```
pnpm recursive up [email protected]
```

**[fix(explorer): display nested inputs (#3266)](https://github.com/latticexyz/mud/commit/2c9240111ae11e6727d3581453fba2b866f4b4a0)** (@latticexyz/explorer)

Fixed inputs display in the transactions table row.

**[feat(common): add rhodolite chain (#3295)](https://github.com/latticexyz/mud/commit/41a6e2f83ac4d48a9dccf52d933c15074b9a724e)** (@latticexyz/common)

Added Rhodolite devnet chain config and removed the old and now-defunct Lattice testnet chain config.

**[feat(explorer): show explore table error message (#3286)](https://github.com/latticexyz/mud/commit/af725304e133f95b0b0eb827fdf7283e54ac8342)** (@latticexyz/explorer)

Display error messages for failed queries within the Explore tab's table viewer.

**[feat(explorer): sql editor (#3276)](https://github.com/latticexyz/mud/commit/3a80bed31b97d439025f68b8e4ded27354e102f1)** (@latticexyz/explorer)

Explore page now has a full-featured SQL editor with syntax highlighting, autocomplete, and query validation.

**[feat(explorer): front page (#3255)](https://github.com/latticexyz/mud/commit/6476dec94cf32275631d49c7e8fe8fe5a0708040)** (@latticexyz/explorer)

Each chain's home page now lets you find and pick a world to explore.

**[feat(store-sync): add support for watching pending logs (#3287)](https://github.com/latticexyz/mud/commit/84ae33b8af3ebeb90749c6e82250869b15d17ed1)** (@latticexyz/store-sync)

Added experimental support for syncing state from pending logs.

**[fix(explorer): various fixes (#3299)](https://github.com/latticexyz/mud/commit/9a43e87db302ec599fd1e97d8b77e2e68831017f)** (@latticexyz/explorer)

- Not found page if invalid chain name.
- Only show selector for worlds if options exist.
- Remove "future time" from transactions table.
- Improved layout for Interact tab.
- Wrap long args in transactions table.
- New tables polling.
- Add logs (regression).

**[fix(common): allow overriding fees in writeContract and sendTransaction (#3288)](https://github.com/latticexyz/mud/commit/fe98442d7ee82f0d41ba10f05a4ee1bafea69d48)** (@latticexyz/common)

The `transactionQueue` decorator internally keeps an updated reference for the recommended `baseFeePerGas` and `maxPriorityFeePerGas` from the connected chain to avoid having to fetch it right before sending a transaction.
However, due to the way the fee values were overridden, it wasn't possible for users to explicitly pass in custom fee values.
Now explicitly provided fee values have precedence over the internally estimated fee values.

**[feat(explorer): global transactions listener (#3285)](https://github.com/latticexyz/mud/commit/4b4640913d014fb3a0a5a417b84c91b247e08ffc)** (@latticexyz/explorer)

Transactions are now monitored across all tabs while the World Explorer is open.

---

## Version 2.2.11

Release date: Mon Oct 07 2024
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/guides/emojimon/2-getting-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Most projects in MUD are started by running `pnpm create mud@latest <project nam
1. Now that you've seen our end goal, reset the repository to [the starting snapshot](https://github.com/latticexyz/emojimon/tree/d6297320d7d1c378f3a3f30456d65a36d0323266).
```sh copy
git reset --hard start
git reset --hard origin/start
```
After you do this, the game is just a green area where the map is going to be.
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/guides/emojimon/3-players-and-movement.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,7 @@ For `spawn`, we do a similar approach, except we need to add overrides for both
You can run this command to update all the files to this point in the game's development.
```sh copy
git reset --hard step-1
git reset --hard origin/step-1
```
Now that we have players, movement, and a basic map, let's start making improvements to the map itself.
2 changes: 1 addition & 1 deletion docs/pages/guides/emojimon/4-map-and-terrain.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -765,5 +765,5 @@ export function createSystemCalls(
You can run this command to update all the files to this point in the game's development.

```sh copy
git reset --hard step-2
git reset --hard origin/step-2
```
2 changes: 1 addition & 1 deletion docs/pages/guides/emojimon/5-a-wild-emojimon-appears.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -1246,5 +1246,5 @@ export function createSystemCalls(
You can run this command to update all the files to this point in the game's development.

```sh copy
git reset --hard step-3
git reset --hard origin/step-3
```
2 changes: 1 addition & 1 deletion docs/pages/guides/emojimon/6-advanced.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export const GameBoard = () => {
You can run this command to update all the files to this point in the game's development.

```sh copy
git reset --hard step-4
git reset --hard origin/step-4
```

All you have to do now is deploy to testnet!
Expand Down
2 changes: 2 additions & 0 deletions packages/abi-ts/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# @latticexyz/abi-ts

## 2.2.12

## 2.2.11

## 2.2.10
Expand Down
2 changes: 1 addition & 1 deletion packages/abi-ts/bin/abi-ts.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env node

// workaround for https://github.com/pnpm/pnpm/issues/1801
import "../dist/abi-ts.js";
import "../dist/bin/abi-ts.js";
8 changes: 4 additions & 4 deletions packages/abi-ts/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@latticexyz/abi-ts",
"version": "2.2.11",
"version": "2.2.12",
"description": "Create TypeScript type declaration files (`.d.ts`) for your ABI JSON files.",
"repository": {
"type": "git",
Expand All @@ -10,12 +10,12 @@
"license": "MIT",
"type": "module",
"exports": {
".": "./dist/index.js"
"./internal": "./dist/exports/internal.js"
},
"typesVersions": {
"*": {
"index": [
"./dist/index.d.ts"
"internal": [
"./dist/exports/internal.d.ts"
]
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import yargs from "yargs";
import { hideBin } from "yargs/helpers";
import abiTsCommand from ".";
import { command as abiTsCommand } from "../command";
import chalk from "chalk";

// $0 makes this a default command (as opposed to a sub-command),
Expand Down
Loading

0 comments on commit 0124fe7

Please sign in to comment.