MUD is a framework for building ambitious onchain applications
MIT License
Bot releases are visible (Hide)
Published by github-actions[bot] over 1 year ago
All notable changes to this project will be documented in this file.
See Conventional Commits for commit guidelines.
Published by github-actions[bot] over 1 year ago
All notable changes to this project will be documented in this file.
See Conventional Commits for commit guidelines.
Published by github-actions[bot] over 1 year ago
All notable changes to this project will be documented in this file.
See Conventional Commits for commit guidelines.
Note: Version bump only for package @latticexyz/solecs
Note: Version bump only for package @latticexyz/solecs
Note: Version bump only for package @latticexyz/solecs
Note: Version bump only for package @latticexyz/solecs
Published by github-actions[bot] over 1 year ago
All notable changes to this project will be documented in this file.
See Conventional Commits for commit guidelines.
mud deploy
CLI command. Use mud deploy-contracts
instead.Note: Version bump only for package @latticexyz/services
Note: Version bump only for package @latticexyz/services
Published by github-actions[bot] over 1 year ago
#1168 48909d15
Thanks @dk1a! - bump forge-std and ds-test dependencies
#1175 f03531d9
Thanks @holic! - Fix byte lengths for uint64
and int64
.
#1179 53522998
Thanks @holic! - - bump to viem 1.3.0 and abitype 0.9.3
@wagmi/chains
imports to viem/chains
All notable changes to this project will be documented in this file.
See Conventional Commits for commit guidelines.
mud deploy
CLI command. Use mud deploy-contracts
instead.Published by github-actions[bot] over 1 year ago
#1167 1e2ad78e
Thanks @holic! - improve RECS error messages for v2 components
Updated dependencies [48909d15
, f03531d9
, 4e4a3415
, 53522998
]:
All notable changes to this project will be documented in this file.
See Conventional Commits for commit guidelines.
Note: Version bump only for package @latticexyz/recs
Note: Version bump only for package @latticexyz/recs
Note: Version bump only for package @latticexyz/recs
Note: Version bump only for package @latticexyz/recs
Published by github-actions[bot] over 1 year ago
904fd7d4
, 8d51a034
, 1e2ad78e
, 48909d15
, 66cc35a8
, a7b30c79
, 53522998
]:
All notable changes to this project will be documented in this file.
See Conventional Commits for commit guidelines.
Note: Version bump only for package @latticexyz/react
Note: Version bump only for package @latticexyz/react
Note: Version bump only for package @latticexyz/react
Published by github-actions[bot] over 1 year ago
#1100 b98e5180
Thanks @alvrs! - feat: add abiTypesToSchema, a util to turn a list of abi types into a Schema by separating static and dynamic types
#1111 ca50fef8
Thanks @alvrs! - feat: add encodeKeyTuple
, a util to encode key tuples in Typescript (equivalent to key tuple encoding in Solidity and inverse of decodeKeyTuple
).
Example:
encodeKeyTuple({ staticFields: ["uint256", "int32", "bytes16", "address", "bool", "int8"], dynamicFields: [] }, [
42n,
-42,
"0x12340000000000000000000000000000",
"0xFFfFfFffFFfffFFfFFfFFFFFffFFFffffFfFFFfF",
true,
3,
]);
// [
// "0x000000000000000000000000000000000000000000000000000000000000002a",
// "0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffd6",
// "0x1234000000000000000000000000000000000000000000000000000000000000",
// "0x000000000000000000000000ffffffffffffffffffffffffffffffffffffffff",
// "0x0000000000000000000000000000000000000000000000000000000000000001",
// "0x0000000000000000000000000000000000000000000000000000000000000003",
// ]
#1177 4bb7e8cb
Thanks @holic! - decodeRecord
now properly decodes empty records
#1179 53522998
Thanks @holic! - - bump to viem 1.3.0 and abitype 0.9.3
@wagmi/chains
imports to viem/chains
Updated dependencies [8d51a034
, 48909d15
, f03531d9
, 53522998
, 0c4f9fea
]:
Published by github-actions[bot] over 1 year ago
4e4a3415
]:
All notable changes to this project will be documented in this file.
See Conventional Commits for commit guidelines.
Note: Version bump only for package @latticexyz/phaserx
Note: Version bump only for package @latticexyz/phaserx
Note: Version bump only for package @latticexyz/phaserx
Published by github-actions[bot] over 1 year ago
All notable changes to this project will be documented in this file.
See Conventional Commits for commit guidelines.
Note: Version bump only for package @latticexyz/noise
Note: Version bump only for package @latticexyz/noise
Note: Version bump only for package @latticexyz/noise
Note: Version bump only for package @latticexyz/noise
Published by github-actions[bot] over 1 year ago
#1179 53522998
Thanks @holic! - - bump to viem 1.3.0 and abitype 0.9.3
@wagmi/chains
imports to viem/chains
#1109 e019c776
Thanks @Kooshaba! - Remove devEmit function when sending network events from SyncWorker because they can't be serialized across the web worker boundary.
Updated dependencies [904fd7d4
, 8d51a034
, 1e2ad78e
, 48909d15
, 66cc35a8
, f03531d9
, a7b30c79
, 4e4a3415
, 53522998
, 086be4ef
, 0c4f9fea
]:
All notable changes to this project will be documented in this file.
See Conventional Commits for commit guidelines.
Note: Version bump only for package @latticexyz/network
Note: Version bump only for package @latticexyz/network
Note: Version bump only for package @latticexyz/network
Note: Version bump only for package @latticexyz/network
Published by github-actions[bot] over 1 year ago
66cc35a8
Thanks @dk1a! - Create gas-report package, move gas-report cli command and GasReporter contract to itAll notable changes to this project will be documented in this file.
See Conventional Commits for commit guidelines.
Published by github-actions[bot] over 1 year ago
1e2ad78e
, 4e4a3415
, 53522998
]:
All notable changes to this project will be documented in this file.
See Conventional Commits for commit guidelines.
Note: Version bump only for package @latticexyz/ecs-browser
Note: Version bump only for package @latticexyz/ecs-browser
Note: Version bump only for package @latticexyz/ecs-browser
Published by github-actions[bot] over 1 year ago
53522998
Thanks @holic! - - bump to viem 1.3.0 and abitype 0.9.3
@wagmi/chains
imports to viem/chains
8d51a034
, 48909d15
, a7b30c79
, 4e4a3415
, 53522998
, 0c4f9fea
, e019c776
]:
Published by github-actions[bot] over 1 year ago
#1168 48909d15
Thanks @dk1a! - bump forge-std and ds-test dependencies
#1165 4e4a3415
Thanks @holic! - bump to latest TS version (5.1.6)
#1179 53522998
Thanks @holic! - - bump to viem 1.3.0 and abitype 0.9.3
@wagmi/chains
imports to viem/chains
All notable changes to this project will be documented in this file.
See Conventional Commits for commit guidelines.
Note: Version bump only for package create-mud
mud deploy
CLI command. Use mud deploy-contracts
instead.Published by github-actions[bot] over 1 year ago
8d51a034
, 48909d15
, f03531d9
, 53522998
, 0c4f9fea
]:
All notable changes to this project will be documented in this file.
See Conventional Commits for commit guidelines.
Published by github-actions[bot] over 1 year ago
#1173 0c4f9fea
Thanks @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
sbigIntMax
is similar to Math.max
but for bigint
sbigIntSort
for sorting an array of bigint
schunk
to split an array into chunkswait
returns a Promise
that resolves after specified number of milliseconds#1153 8d51a034
Thanks @dk1a! - Clean up Memory.sol, make mcopy pure
#1179 53522998
Thanks @holic! - - bump to viem 1.3.0 and abitype 0.9.3
@wagmi/chains
imports to viem/chains
Updated dependencies [48909d15
, f03531d9
, 53522998
]:
All notable changes to this project will be documented in this file.
See Conventional Commits for commit guidelines.
Published by github-actions[bot] over 1 year ago
#1147 66cc35a8
Thanks @dk1a! - Create gas-report package, move gas-report cli command and GasReporter contract to it
#1157 c36ffd13
Thanks @alvrs! - - update the set-version
cli command to work with the new release process by adding two new options:
--tag
: install the latest version of the given tag. For snapshot releases tags correspond to the branch name, commits to main
result in an automatic snapshot release, so --tag main
is equivalent to what used to be -v canary
--commit
: install a version based on a given commit hash. Since commits from main
result in an automatic snapshot release it works for all commits on main, and it works for manual snapshot releases from branches other than mainset-version
now updates all package.json
nested below the current working directory (expect node_modules
), so no need for running it each workspace of a monorepo separately.Example:
pnpm mud set-version --tag main && pnpm install
pnpm mud set-version --commit db19ea39 && pnpm install
#1153 8d51a034
Thanks @dk1a! - Clean up Memory.sol, make mcopy pure
#1168 48909d15
Thanks @dk1a! - bump forge-std and ds-test dependencies
#1165 4e4a3415
Thanks @holic! - bump to latest TS version (5.1.6)
#1179 53522998
Thanks @holic! - - bump to viem 1.3.0 and abitype 0.9.3
@wagmi/chains
imports to viem/chains
Updated dependencies [904fd7d4
, 8d51a034
, 48909d15
, 66cc35a8
, f03531d9
, a7b30c79
, 4e4a3415
, 53522998
, 086be4ef
, 0c4f9fea
]:
All notable changes to this project will be documented in this file.
See Conventional Commits for commit guidelines.
mud test-v2
command (#554) (d6be8b0)set-version
to upgrade all MUD dependencies in a project (#527) (89731a6)world/IWorld
to world/IBaseWorld
(#545) (38b355c)mud deploy
CLI command. Use mud deploy-contracts
instead.Note: Version bump only for package @latticexyz/cli
Published by github-actions[bot] over 1 year ago
#1176 eeb15cc0
Thanks @holic! - - Replace blockEventsToStorage
with blockLogsToStorage
that exposes a storeOperations
callback to perform database writes from store operations. This helps encapsulates database adapters into a single wrapper/instance of blockLogsToStorage
and allows for wrapping a block of store operations in a database transaction.
toBlock
option to groupLogsByBlockNumber
and remove blockHash
from results. This helps track the last block number for a given set of logs when used in the context of RxJS streams.#1070 72b80697
Thanks @holic! - Add block logs stream package
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);
});
#1179 53522998
Thanks @holic! - - bump to viem 1.3.0 and abitype 0.9.3
@wagmi/chains
imports to viem/chains
Updated dependencies [8d51a034
, 48909d15
, f03531d9
, 53522998
, 0c4f9fea
]:
Published by github-actions[bot] over 1 year ago
All notable changes to this project will be documented in this file.
See Conventional Commits for commit guidelines.