Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update to katana-compatible snos #6

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
Open

chore: update to katana-compatible snos #6

wants to merge 11 commits into from

Conversation

kariy
Copy link
Member

@kariy kariy commented Jan 29, 2025

Update to our fork of snos. This version only works with the latest provable version of katana.

@kariy kariy marked this pull request as draft January 29, 2025 23:40
@glihm glihm changed the title Update to katana-compatible snos (don't merge yet) chore: update to katana-compatible snos Feb 1, 2025
@glihm glihm marked this pull request as ready for review February 1, 2025 22:14
@glihm
Copy link
Contributor

glihm commented Feb 1, 2025

To have this revision of SNOS working, Katana must be started by doing the following:

  1. katana init
  2. follow the CLI instructions
  3. then start Katana with the id given: katana --chain <ID>

@glihm glihm requested a review from xJonathanLEI February 7, 2025 19:03
// Since the `Felt` type is wrapping (`Felt::MAX + 1 = 0`), there is not
// need for a special case for the genesis block, and `+1` works as expected.
//
// TODO: should we change to `settlement.next_block_number()` instead to always return `u64`?
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@xJonathanLEI I would tend to add the new method, or always manipulating the block number as a Felt, wdyt?

@glihm
Copy link
Contributor

glihm commented Feb 7, 2025

Tested on Katana dojoengine/dojo#2980 with verification on Sepolia (layout bridge mocked).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants