Skip to content

Releases: dojoengine/dojo

sozo/v1.8.5

19 Dec 18:06
c849584

Choose a tag to compare

Important changes

This release includes a change to manipulate the ABI format in the manifest.

The migration (`sozo migrate) outputs a manifest file, which is a JSON file that contains information about deployed contracts and resources.

By default, the manifest will contain all the ABIs merged in only one entry "abis", where Sozo deduplicates the ABIs and makes the manifest easier to read/track diffs (this is called the all_in_one format). There is a second per contract (per_contract format), where the ABIs are separated by contract.

The per_contract format is currently required in one specific case: if you are using dojo.js and if you have the same function name in multiple contracts.

You can toggle the abi format mode by using --manifest-abi-format all_in_one/per_contract directly from the command line when running the sozo migrate command.

sozo migrate --manifest-abi-format per_contract

You can also set the default abi format mode in your dojo_<profile>.toml file by setting the manifest_abi_format key to all_in_one or per_contract.

[migration]
manifest_abi_format = "per_contract"

What's Changed

  • feat(sozo): add parameter to control abi format in manifest by @glihm in #3387
  • release-sozo(prepare): v1.8.5 by @tarrencev in #3388

Full Changelog: sozo/v1.8.4...sozo/v1.8.5

sozo/v1.8.4

10 Dec 23:18
7c52a41

Choose a tag to compare

Important changes

This release adds auto-detection for blake2s for mainnet which is now using blake2s.

What's Changed

Full Changelog: sozo/v1.8.3...sozo/v1.8.4

sozo/v1.8.3

28 Nov 00:18

Choose a tag to compare

Important changes

This release provides an invoke command to Sozo in order to send invoke transaction on contracts without the dojo context being required. Use execute if you want to use contract names in the dojo context.

What's Changed

Full Changelog: sozo/v1.8.2...sozo/v1.8.3

sozo/v1.8.2

26 Nov 23:18
9b36053

Choose a tag to compare

Important changes

This release add capabilities to sozo to declare and deploy standalone contracts using sozo declare and sozo deploy. Independently of a dojo project.

However, those commands are only compatible with latest version of Cairo, it is not intended to support old versions of the compiler.

What's Changed

Full Changelog: sozo/v1.8.1...sozo/v1.8.2

sozo/v1.8.1

25 Nov 22:47
2bb9d20

Choose a tag to compare

Important changes

This version of Sozo supports blake2s hashing on Sepolia.

Sozo will attempt to detect the network you are using to use blake2s on sepolia or Poseidon on mainnet.
In case that your RPC URL doesn't contain "sepolia" or "testnet", you can use the flag --use-blake2s-casm-class-hash.

What's Changed

  • feat(sozo): add support for blake2s casm class hashing by @glihm in #3377
  • release-sozo(prepare): v1.8.1 by @tarrencev in #3380
  • feat(ci): separate sozo releases from dojo by @glihm in #3381

Full Changelog: v1.8.0...sozo/v1.8.1

v1.8.0

31 Oct 22:04
843d276

Choose a tag to compare

Important changes

  • Cairo 2.13 and Starknet Foundry 0.51 are now used for the world and resources contracts to benefit Cairo compiler and scarb optimizations.
  • The world has a new constructor to simplify its deployment. Nothing else has changed in the world's API, so it is safe to upgrade existing worlds.
  • New manifest format with an abis key that regroup deduplicated ABI entries for all the contracts in the project. The members are now correctly set for events and models, which eases the parsing and ABI matching.

What's Changed

  • feat(dojo-world): change manifest format including members for events and models by @glihm in #3370
  • chore: bump to cairo 2.13 and update world constructor by @glihm in #3372
  • release-macros(prepare): v1.8.0 by @tarrencev in #3373
  • release(prepare): v1.8.0 by @tarrencev in #3374

Full Changelog: v1.7.2...v1.8.0

v1.7.2

28 Oct 14:51
d6e97ff

Choose a tag to compare

Important changes

  • Sozo will now use ACCEPTED_ON_L2 as the default transaction finality status to ensure more robust migrations.
  • Sozo now correctly handles all type of gas settings to setup fee configuration for transactions.
  • Update support for walnut debugger.
  • Starknet Foundry 0.50+ is now used by dojo_snf_test.

What's Changed

Full Changelog: v1.7.1...v1.7.2

v1.7.1

25 Sep 14:34

Choose a tag to compare

Important changes

Dojo

Proc macros are now precompiled and reexported. Your Scarb.toml manifest should import dojo as following:

[dependencies]
dojo = "1.7.1"

[dev-dependencies]
cairo_test = "2.12.2"
dojo_cairo_test = "1.7.1"

[tool.scarb]
allow-prebuilt-plugins = ["dojo_cairo_macros"]

The allow-prebuilt-plugins will use the pre-built proc macros instead of re-compiling them locally, which remove the need of maintaining a local rust installation.

You also don't have to care about the versions of dojo_cairo_macros, it will be handled automatically.

Additionally to that, the Scarb warning about the name not matching has been removed by renaming the rust crate to dojo_cairo_macros.

Sozo

Sozo now limits by default to 10 calls the number of calls in a multi call to avoid timeouts while deploying your world.
You can always adapt this value with the --max-calls option, since it depends on the size of your resources name.

What's Changed

New Contributors

Full Changelog: v1.7.0...v1.7.1

v1.7.0

22 Sep 18:39

Choose a tag to compare

Important changes

This release stabilizes the support for:

  • Stakrnet 0.14.
  • RPC 0.9.
  • Cairo proc macros for Dojo (instead of built-in compiler).

On the Sozo side:

  • New CLI with better output for CI.
  • Several level of verbosity with -v, -vv and -vvv depending on your needs.
  • Sozo now uses stable scarb under the hood (2.12.2). You can still use sozo build and sozo test for extended functionalities.

For the Dojo core contracts:

  • New DojoStore trait to avoid uninitialized storage access.
  • Gas optimizations for world's operation.
  • Please consult the migration guide in the book for more information.

What's Changed

New Contributors

Read more

v1.7.0-alpha.4

16 Sep 05:04
7b78108

Choose a tag to compare

v1.7.0-alpha.4 Pre-release
Pre-release

Important changes

This release is using a new stable version of Scarb: 2.12.2. Please update your .tools-version to use this stable version of Scarb that comes with several fixes required for bigger projects to compile.

At the Dojo level:

  1. Issues with enums used a keys have been solved.
  2. The layout equal to 0 is now fixed.
  3. DojoStore and DojoLegacyStore had some edge cases fixed in this PR to ensure backward compatibility of models.

What's Changed

Full Changelog: v1.7.0-alpha.3...v1.7.0-alpha.4