v1.1.0
Important changes
- Cairo
2.9.2
is now supported for smart contract development and used bysozo
. - Torii has several optimizations to parallelize the processing of events, which should result in faster syncing to reach the head of the chain.
- The
world.dns
has been fixed to return the actual class hash of the contract. - A new macro
bytearray_hash!
has been added, to reduce hash computation overhead and usage of constants when namespaces/contract names are fixed. - A new
world.read_schema
API is available to more efficiently read multiple members of a model from the storage, more details in the doc here.write_schema
will come in a future release. Schemas are more efficient if you need to read more than one member. - Sozo now supports arrays in calldata with a new prefix
arr
for dynamic arrays andfarr
for fixed-size arrays. Those prefix will work for any type that is one felt long when serialized. Foru256
, you will need to useu256arr
andu256farr
. Arrays of custom structure is not yet supported.
# No need to prefix the length.
sozo execute actions system1 arr:1,2,3,4
# If you have a fixed array, use the `farr` instead.
sozo execute actions system2 farr:88,99
- Katana adjustments to prepare for appchains release.
What's Changed
- chore(devcontainer): update image: v1.0.12 by @tarrencev in #2916
- feat: bump to cairo 2.9.2 by @glihm in #2879
- chore(devcontainer): update image: b37b325 by @tarrencev in #2924
- feat(sozo): support arrays in calldata arguments by @remybar in #2917
- fix(sozo): return error if inspect doesn't find resource by @glihm in #2920
- feat(katana): settlement layer initialization flow improvement by @kariy in #2926
- feat(katana): remove support for initializing custom settlement chain by @kariy in #2927
- feat(sozo-bindgen): add i8,i16,i32,i64 support by @MartianGreed in #2934
- chore: fix some typos in comment by @linchizhen in #2922
- fix(dojo-lang): ensure the dns returns the actual
ClassHash
. by @glihm in #2935 - fix(torii-sqlite): executor broker messages & ipfs logging by @Larkooo in #2923
- fix(sozo): ensure correct event fetching + namespace whitelisting + guest mode by @glihm in #2937
- fix(katana-cli): use messaging in config file by @broody in #2941
- docs(katana): update monitoring example by @kariy in #2942
- feat(torii-indexer): task manager & parallelize erc transfers by @Larkooo in #2913
- fix(dojo-lang): verify constructor args to follow dojo rules by @glihm in #2944
- Merge
katana/chainspec
by @kariy in #2947 - feat(dojo-core): add support for making multiple model pointers by @bengineer42 in #2940
- feat(dojo-lang): add
bytearray_hash
macro by @bengineer42 in #2946 - refactor(katana): use the exact same UDC class as Starknet by @kariy in #2949
- feat(katana): simplify genesis class by @kariy in #2948
- chore: rm
saya
by @kariy in #2951 - feat(katana): start block timer only if there txs by @kariy in #2950
- feat(dojo-core): add support to read/write the same member from multiple models by @bengineer42 in #2939
- feat(dojo-core): add read schema support by @bengineer42 in #2932
- feat(blockifier): use same versioned constant as
snos
by @kariy in #2956 - Prepare release: v1.1.0 by @tarrencev in #2958
New Contributors
- @linchizhen made their first contribution in #2922
Full Changelog: v1.0.12...v1.1.0