-
Notifications
You must be signed in to change notification settings - Fork 196
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0c4f9fe
commit b112ac5
Showing
53 changed files
with
551 additions
and
30 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
{ | ||
"mode": "pre", | ||
"tag": "next", | ||
"initialVersions": { | ||
"@latticexyz/block-logs-stream": "1.42.0", | ||
"@latticexyz/cli": "1.42.0", | ||
"@latticexyz/common": "1.42.0", | ||
"@latticexyz/config": "1.42.0", | ||
"create-mud": "1.42.0", | ||
"@latticexyz/dev-tools": "1.42.0", | ||
"@latticexyz/ecs-browser": "1.42.0", | ||
"@latticexyz/gas-report": "1.42.0", | ||
"@latticexyz/network": "1.42.0", | ||
"@latticexyz/noise": "1.42.0", | ||
"@latticexyz/phaserx": "1.42.0", | ||
"@latticexyz/protocol-parser": "1.42.0", | ||
"@latticexyz/react": "1.42.0", | ||
"@latticexyz/recs": "1.42.0", | ||
"@latticexyz/schema-type": "1.42.0", | ||
"@latticexyz/services": "1.42.0", | ||
"@latticexyz/solecs": "1.42.0", | ||
"solhint-config-mud": "1.42.0", | ||
"solhint-plugin-mud": "1.42.0", | ||
"@latticexyz/std-client": "1.42.0", | ||
"@latticexyz/std-contracts": "1.42.0", | ||
"@latticexyz/store": "1.42.0", | ||
"@latticexyz/store-cache": "1.42.0", | ||
"@latticexyz/store-sync": "1.42.0", | ||
"@latticexyz/utils": "1.42.0", | ||
"@latticexyz/world": "1.42.0" | ||
}, | ||
"changesets": [ | ||
"eighty-tigers-argue", | ||
"fast-ears-hug", | ||
"itchy-kids-relax", | ||
"many-phones-study", | ||
"nasty-waves-divide", | ||
"nice-pandas-knock", | ||
"olive-parrots-move", | ||
"perfect-mangos-cry", | ||
"quick-numbers-flash", | ||
"rare-planes-draw", | ||
"selfish-cycles-retire", | ||
"spotty-sheep-warn", | ||
"stale-cooks-reflect", | ||
"strange-candles-shout", | ||
"strange-ducks-float", | ||
"thin-buses-reply", | ||
"tricky-frogs-beam" | ||
] | ||
} |
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,60 @@ | ||
# @latticexyz/block-logs-stream | ||
|
||
## 2.0.0-next.0 | ||
|
||
### Minor Changes | ||
|
||
- [#1070](https://github.com/latticexyz/mud/pull/1070) [`72b80697`](https://github.com/latticexyz/mud/commit/72b806979db6eb2880772193898351d657b94f75) Thanks [@holic](https://github.com/holic)! - Add block logs stream package | ||
|
||
```ts | ||
import { filter, map, mergeMap } from "rxjs"; | ||
import { createPublicClient, parseAbi } from "viem"; | ||
import { | ||
createBlockStream, | ||
isNonPendingBlock, | ||
groupLogsByBlockNumber, | ||
blockRangeToLogs, | ||
} from "@latticexyz/block-logs-stream"; | ||
|
||
const publicClient = createPublicClient({ | ||
// your viem public client config here | ||
}); | ||
|
||
const latestBlock$ = await createBlockStream({ publicClient, blockTag: "latest" }); | ||
|
||
const latestBlockNumber$ = latestBlock$.pipe( | ||
filter(isNonPendingBlock), | ||
map((block) => block.number) | ||
); | ||
|
||
latestBlockNumber$ | ||
.pipe( | ||
map((latestBlockNumber) => ({ startBlock: 0n, endBlock: latestBlockNumber })), | ||
blockRangeToLogs({ | ||
publicClient, | ||
address, | ||
events: parseAbi([ | ||
"event StoreDeleteRecord(bytes32 table, bytes32[] key)", | ||
"event StoreSetField(bytes32 table, bytes32[] key, uint8 schemaIndex, bytes data)", | ||
"event StoreSetRecord(bytes32 table, bytes32[] key, bytes data)", | ||
"event StoreEphemeralRecord(bytes32 table, bytes32[] key, bytes data)", | ||
]), | ||
}), | ||
mergeMap(({ logs }) => from(groupLogsByBlockNumber(logs))) | ||
) | ||
.subscribe((block) => { | ||
console.log("got events for block", block); | ||
}); | ||
``` | ||
|
||
### Patch Changes | ||
|
||
- [#1075](https://github.com/latticexyz/mud/pull/1075) [`904fd7d4`](https://github.com/latticexyz/mud/commit/904fd7d4ee06a86e481e3e02fd5744224376d0c9) Thanks [@holic](https://github.com/holic)! - Add store sync package | ||
|
||
- [#1179](https://github.com/latticexyz/mud/pull/1179) [`53522998`](https://github.com/latticexyz/mud/commit/535229984565539e6168042150b45fe0f9b48b0f) Thanks [@holic](https://github.com/holic)! - - bump to viem 1.3.0 and abitype 0.9.3 | ||
- move `@wagmi/chains` imports to `viem/chains` | ||
- refine a few types | ||
- Updated dependencies [[`8d51a034`](https://github.com/latticexyz/mud/commit/8d51a03486bc20006d8cc982f798dfdfe16f169f), [`48909d15`](https://github.com/latticexyz/mud/commit/48909d151b3dfceab128c120bc6bb77de53c456b), [`f03531d9`](https://github.com/latticexyz/mud/commit/f03531d97c999954a626ef63bc5bbae51a7b90f3), [`53522998`](https://github.com/latticexyz/mud/commit/535229984565539e6168042150b45fe0f9b48b0f), [`0c4f9fea`](https://github.com/latticexyz/mud/commit/0c4f9fea9e38ba122316cdd52c3d158c62f8cfee)]: | ||
- @latticexyz/common@2.0.0-next.0 | ||
- @latticexyz/schema-type@2.0.0-next.0 | ||
- @latticexyz/config@2.0.0-next.0 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,28 @@ | ||
# Change Log | ||
|
||
## 2.0.0-next.0 | ||
|
||
### Minor Changes | ||
|
||
- [#1173](https://github.com/latticexyz/mud/pull/1173) [`0c4f9fea`](https://github.com/latticexyz/mud/commit/0c4f9fea9e38ba122316cdd52c3d158c62f8cfee) Thanks [@holic](https://github.com/holic)! - `TableId.toHex()` now truncates name/namespace to 16 bytes each, to properly fit into a `bytes32` hex string. | ||
|
||
Also adds a few utils we'll need in the indexer: | ||
|
||
- `bigIntMin` is similar to `Math.min` but for `bigint`s | ||
- `bigIntMax` is similar to `Math.max` but for `bigint`s | ||
- `bigIntSort` for sorting an array of `bigint`s | ||
- `chunk` to split an array into chunks | ||
- `wait` returns a `Promise` that resolves after specified number of milliseconds | ||
|
||
### Patch Changes | ||
|
||
- [#1153](https://github.com/latticexyz/mud/pull/1153) [`8d51a034`](https://github.com/latticexyz/mud/commit/8d51a03486bc20006d8cc982f798dfdfe16f169f) Thanks [@dk1a](https://github.com/dk1a)! - Clean up Memory.sol, make mcopy pure | ||
|
||
- [#1179](https://github.com/latticexyz/mud/pull/1179) [`53522998`](https://github.com/latticexyz/mud/commit/535229984565539e6168042150b45fe0f9b48b0f) Thanks [@holic](https://github.com/holic)! - - bump to viem 1.3.0 and abitype 0.9.3 | ||
- move `@wagmi/chains` imports to `viem/chains` | ||
- refine a few types | ||
- Updated dependencies [[`48909d15`](https://github.com/latticexyz/mud/commit/48909d151b3dfceab128c120bc6bb77de53c456b), [`f03531d9`](https://github.com/latticexyz/mud/commit/f03531d97c999954a626ef63bc5bbae51a7b90f3), [`53522998`](https://github.com/latticexyz/mud/commit/535229984565539e6168042150b45fe0f9b48b0f)]: | ||
- @latticexyz/schema-type@2.0.0-next.0 | ||
|
||
All notable changes to this project will be documented in this file. | ||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. |
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
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "create-mud", | ||
"version": "1.42.0", | ||
"version": "2.0.0-next.0", | ||
"description": "Create a new MUD project", | ||
"license": "MIT", | ||
"author": "Lattice <[email protected]>", | ||
|
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,16 @@ | ||
# @latticexyz/dev-tools | ||
|
||
## 2.0.0-next.0 | ||
|
||
### Patch Changes | ||
|
||
- [#1179](https://github.com/latticexyz/mud/pull/1179) [`53522998`](https://github.com/latticexyz/mud/commit/535229984565539e6168042150b45fe0f9b48b0f) Thanks [@holic](https://github.com/holic)! - - bump to viem 1.3.0 and abitype 0.9.3 | ||
- move `@wagmi/chains` imports to `viem/chains` | ||
- refine a few types | ||
- Updated dependencies [[`8d51a034`](https://github.com/latticexyz/mud/commit/8d51a03486bc20006d8cc982f798dfdfe16f169f), [`48909d15`](https://github.com/latticexyz/mud/commit/48909d151b3dfceab128c120bc6bb77de53c456b), [`a7b30c79`](https://github.com/latticexyz/mud/commit/a7b30c79bcc78530d2d01858de46a0fb87954fda), [`4e4a3415`](https://github.com/latticexyz/mud/commit/4e4a34150aeae988c8e61e25d55c227afb6c2d4b), [`53522998`](https://github.com/latticexyz/mud/commit/535229984565539e6168042150b45fe0f9b48b0f), [`0c4f9fea`](https://github.com/latticexyz/mud/commit/0c4f9fea9e38ba122316cdd52c3d158c62f8cfee), [`e019c776`](https://github.com/latticexyz/mud/commit/e019c77619f0ace6b7ee01f6ce96498446895934)]: | ||
- @latticexyz/common@2.0.0-next.0 | ||
- @latticexyz/world@2.0.0-next.0 | ||
- @latticexyz/utils@2.0.0-next.0 | ||
- @latticexyz/network@2.0.0-next.0 | ||
- @latticexyz/std-client@2.0.0-next.0 | ||
- @latticexyz/react@2.0.0-next.0 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,14 @@ | ||
# Change Log | ||
|
||
## 2.0.0-next.0 | ||
|
||
### Minor Changes | ||
|
||
- [#1147](https://github.com/latticexyz/mud/pull/1147) [`66cc35a8`](https://github.com/latticexyz/mud/commit/66cc35a8ccb21c50a1882d6c741dd045acd8bc11) Thanks [@dk1a](https://github.com/dk1a)! - Create gas-report package, move gas-report cli command and GasReporter contract to it | ||
|
||
### Patch Changes | ||
|
||
- [#1168](https://github.com/latticexyz/mud/pull/1168) [`48909d15`](https://github.com/latticexyz/mud/commit/48909d151b3dfceab128c120bc6bb77de53c456b) Thanks [@dk1a](https://github.com/dk1a)! - bump forge-std and ds-test dependencies | ||
|
||
All notable changes to this project will be documented in this file. | ||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. |
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.