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

Migrate udc #610

Closed
wants to merge 40 commits into from
Closed

Conversation

andrew-fleming
Copy link
Collaborator

@andrew-fleming andrew-fleming commented Apr 18, 2023

Fixes (partial) #552.

WIP. Still needs tests.

Note: the cairo submodule is bumped to starkware-libs/cairo@3eb7c83 (above alpha7) in order to include a bug fix for inconsistent references annotations. Otherwise, the runner won't set up properly.

PR Checklist

  • Tests
  • Tried the feature on a public network
  • Documentation

// TODO: Fix trait impl errors in abi
// #[abi]
trait IUniversalDeployerContract {
#[event]
Copy link
Contributor

Choose a reason for hiding this comment

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

can you do these modifiers on traits like this?
i haven't seen that anywhere else yet.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah, you can and the contracts compile. The external and view macros might be redundant, but I assume we'll need to include it for event (so other contracts aren't required to reimplement the event in an impl). Here's a test data example from the Cairo repo: https://github.com/starkware-libs/cairo/blob/main/crates/cairo-lang-starknet/src/plugin/plugin_test_data/dispatcher#L6-L17

@martriay martriay linked an issue Apr 28, 2023 that may be closed by this pull request
Copy link
Contributor

@martriay martriay left a comment

Choose a reason for hiding this comment

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

looking good! let's wait for the tests

src/openzeppelin/utils.cairo Outdated Show resolved Hide resolved
src/openzeppelin/utils/udc.cairo Outdated Show resolved Hide resolved
@martriay martriay deleted the branch OpenZeppelin:cairo-1 November 22, 2023 04:54
@martriay martriay closed this Nov 22, 2023
@martriay
Copy link
Contributor

This PR got closed by mistake automatically after deleting the cairo-1 branch. It should be eventually reopened targeting main instead.

@FabijanC FabijanC mentioned this pull request Jan 24, 2024
@andrew-fleming andrew-fleming deleted the cairo1-udc branch August 6, 2024 01:28
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.

Migrate UDC to Cairo 1+
3 participants