@latticexyz/protocol-parser@2.0.0-next.0
Pre-release
Pre-release
github-actions
released this
21 Jul 14:48
·
1136 commits
to main
since this release
Minor Changes
-
#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: addencodeKeyTuple
, a util to encode key tuples in Typescript (equivalent to key tuple encoding in Solidity and inverse ofdecodeKeyTuple
).
Example:encodeKeyTuple({ staticFields: ["uint256", "int32", "bytes16", "address", "bool", "int8"], dynamicFields: [] }, [ 42n, -42, "0x12340000000000000000000000000000", "0xFFfFfFffFFfffFFfFFfFFFFFffFFFffffFfFFFfF", true, 3, ]); // [ // "0x000000000000000000000000000000000000000000000000000000000000002a", // "0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffd6", // "0x1234000000000000000000000000000000000000000000000000000000000000", // "0x000000000000000000000000ffffffffffffffffffffffffffffffffffffffff", // "0x0000000000000000000000000000000000000000000000000000000000000001", // "0x0000000000000000000000000000000000000000000000000000000000000003", // ]
Patch Changes
-
#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- move
@wagmi/chains
imports toviem/chains
- refine a few types
- move
-
Updated dependencies [
8d51a034
,48909d15
,f03531d9
,53522998
,0c4f9fea
]:- @latticexyz/common@2.0.0-next.0
- @latticexyz/schema-type@2.0.0-next.0