MUD is a framework for building ambitious onchain applications
MIT License
Bot releases are visible (Hide)
Published by github-actions[bot] about 1 year ago
Published by github-actions[bot] about 1 year ago
#1278 48c51b52
Thanks @holic! - RECS components are now dynamically created and inferred from your MUD config when using syncToRecs
.
To migrate existing projects after upgrading to this MUD version:
Remove contractComponents.ts
from client/src/mud
Remove components
argument from syncToRecs
Update build:mud
and dev
scripts in contracts/package.json
to remove tsgen
- "build:mud": "mud tablegen && mud worldgen && mud tsgen --configPath mud.config.ts --out ../client/src/mud",
+ "build:mud": "mud tablegen && mud worldgen",
- "dev": "pnpm mud dev-contracts --tsgenOutput ../client/src/mud",
+ "dev": "pnpm mud dev-contracts",
#1240 753bdce4
Thanks @holic! - Store sync logic is now consolidated into a createStoreSync
function exported from @latticexyz/store-sync
. This simplifies each storage sync strategy to just a simple wrapper around the storage adapter. You can now sync to RECS with syncToRecs
or SQLite with syncToSqlite
and PostgreSQL support coming soon.
There are no breaking changes if you were just using syncToRecs
from @latticexyz/store-sync
or running the sqlite-indexer
binary from @latticexyz/store-indexer
.
#1302 5294a7d5
Thanks @holic! - Improves support for internal/client-only RECS components
#1308 b8a6158d
Thanks @holic! - remove usages of isNonPendingBlock
and isNonPendingLog
(fixed with more specific viem types)
Updated dependencies [a2588116
, 939916bc
, b8a6158d
, 48c51b52
, b8a6158d
, b8a6158d
]:
Published by github-actions[bot] about 1 year ago
#1232 b621fb97
Thanks @holic! - Adds a Fastify server in front of tRPC and puts tRPC endpoints under /trpc
to make way for other top-level endpoints (e.g. tRPC panel or other API frontends like REST or gRPC).
If you're using @latticexyz/store-sync
packages with an indexer (either createIndexerClient
or indexerUrl
argument of syncToRecs
), then you'll want to update your indexer URL:
createIndexerClient({
- url: "https://indexer.dev.linfra.xyz",
+ url: "https://indexer.dev.linfra.xyz/trpc",
});
syncToRecs({
...
- indexerUrl: "https://indexer.dev.linfra.xyz",
+ indexerUrl: "https://indexer.dev.linfra.xyz/trpc",
});
#1240 753bdce4
Thanks @holic! - Store sync logic is now consolidated into a createStoreSync
function exported from @latticexyz/store-sync
. This simplifies each storage sync strategy to just a simple wrapper around the storage adapter. You can now sync to RECS with syncToRecs
or SQLite with syncToSqlite
and PostgreSQL support coming soon.
There are no breaking changes if you were just using syncToRecs
from @latticexyz/store-sync
or running the sqlite-indexer
binary from @latticexyz/store-indexer
.
Updated dependencies [a2588116
, 939916bc
, b8a6158d
, 48c51b52
, b8a6158d
, b8a6158d
, 753bdce4
, 5294a7d5
, b8a6158d
]:
Published by github-actions[bot] about 1 year ago
a2588116
, 939916bc
, b8a6158d
, 48c51b52
, b8a6158d
]:
Published by github-actions[bot] about 1 year ago
#1278 48c51b52
Thanks @holic! - RECS components are now dynamically created and inferred from your MUD config when using syncToRecs
.
To migrate existing projects after upgrading to this MUD version:
Remove contractComponents.ts
from client/src/mud
Remove components
argument from syncToRecs
Update build:mud
and dev
scripts in contracts/package.json
to remove tsgen
- "build:mud": "mud tablegen && mud worldgen && mud tsgen --configPath mud.config.ts --out ../client/src/mud",
+ "build:mud": "mud tablegen && mud worldgen",
- "dev": "pnpm mud dev-contracts --tsgenOutput ../client/src/mud",
+ "dev": "pnpm mud dev-contracts",
Updated dependencies [939916bc
, b8a6158d
, b8a6158d
]:
Published by github-actions[bot] about 1 year ago
Published by github-actions[bot] about 1 year ago
#1278 48c51b52
Thanks @holic! - RECS components are now dynamically created and inferred from your MUD config when using syncToRecs
.
To migrate existing projects after upgrading to this MUD version:
Remove contractComponents.ts
from client/src/mud
Remove components
argument from syncToRecs
Update build:mud
and dev
scripts in contracts/package.json
to remove tsgen
- "build:mud": "mud tablegen && mud worldgen && mud tsgen --configPath mud.config.ts --out ../client/src/mud",
+ "build:mud": "mud tablegen && mud worldgen",
- "dev": "pnpm mud dev-contracts --tsgenOutput ../client/src/mud",
+ "dev": "pnpm mud dev-contracts",
Updated dependencies [a2588116
, 939916bc
, b8a6158d
, 48c51b52
, b8a6158d
]:
Published by github-actions[bot] about 1 year ago
Published by github-actions[bot] about 1 year ago
Published by github-actions[bot] about 1 year ago
Published by github-actions[bot] about 1 year ago
Published by github-actions[bot] about 1 year ago
Published by github-actions[bot] about 1 year ago
b8a6158d
]:
Published by github-actions[bot] about 1 year ago
#1284 939916bc
Thanks @holic! - Adds a usePromise
hook that returns a native PromiseSettledResult
object.
const promise = fetch(url);
const result = usePromise(promise);
if (result.status === "idle" || result.status === "pending") {
return <>fetching</>;
}
if (result.status === "rejected") {
return <>error fetching: {String(result.reason)}</>;
}
if (result.status === "fulfilled") {
return <>fetch status: {result.value.status}</>;
}
a2588116
, 48c51b52
]:
Published by github-actions[bot] about 1 year ago
Updated dependencies [939916bc
, b8a6158d
, b8a6158d
]:
Published by github-actions[bot] about 1 year ago
Published by github-actions[bot] about 1 year ago
Published by github-actions[bot] about 1 year ago
Updated dependencies [a2588116
, 939916bc
, b8a6158d
, 48c51b52
, b8a6158d
]:
Published by github-actions[bot] about 1 year ago
Published by github-actions[bot] about 1 year ago
48c51b52
, b8a6158d
]: