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

Add libfunc validation #306

Merged
merged 2 commits into from
Jun 20, 2023
Merged

Add libfunc validation #306

merged 2 commits into from
Jun 20, 2023

Conversation

calvwang9
Copy link
Contributor

@calvwang9 calvwang9 commented Jun 19, 2023

https://smartcontract-it.atlassian.net/browse/BCI-1424

Note: this uses Scarb v0.4.0 (Cairo v1.1.0), however, there is no way to specify the Scarb version in the toml config file. The Scarb version is only defined in the CI.

For the latest Cairo version running on testnet (v1.1.0), we currently use some disallowed Sierra libfuncs in our contracts, namely upcast, downcast, ec_point_from_x_nz. These libfuncs are missing from the current testnet allowlist but are in the audited allowlist in the latest Cairo release candidate v2.0.0-rc2.

This means that our Starknet contracts are not deployable until Cairo v2 is released, and a todo has been left to update the allowlist being used after the Cairo v2 release

@calvwang9 calvwang9 temporarily deployed to integration June 19, 2023 05:45 — with GitHub Actions Inactive
@calvwang9 calvwang9 temporarily deployed to integration June 19, 2023 05:45 — with GitHub Actions Inactive
@archseer
Copy link
Collaborator

Scarb needs bumping here

scarb_version:
description: Scarb release version
default: "v0.3.0"
required: false

@calvwang9 calvwang9 temporarily deployed to integration June 19, 2023 05:57 — with GitHub Actions Inactive
@calvwang9 calvwang9 temporarily deployed to integration June 19, 2023 05:57 — with GitHub Actions Inactive
@calvwang9 calvwang9 temporarily deployed to integration June 19, 2023 05:57 — with GitHub Actions Inactive
@calvwang9 calvwang9 merged commit 2be4027 into develop Jun 20, 2023
@calvwang9 calvwang9 deleted the BCI-1424/libfunc-validation branch June 20, 2023 14:11
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