Skip to content
This repository has been archived by the owner on May 16, 2024. It is now read-only.

CORE-2033 Add RegistrationV4 contract #422

Merged
merged 54 commits into from
Feb 27, 2024

Conversation

kaihirota
Copy link
Contributor

Summary

Why the changes

Things worth calling out

Before merging

  • For Immutable developers: Do the changes in this PR require documentation updates? Please refer to this SDK documentation guide and list links to documentation update PRs (they don't have to be merged) below (or write N/A):
    • Add documentation update 1
    • Add documentation update 2

@kaihirota kaihirota self-assigned this Feb 26, 2024
@kaihirota kaihirota marked this pull request as ready for review February 26, 2024 04:33
@kaihirota kaihirota requested a review from a team as a code owner February 26, 2024 04:33
OnEvent,
} from "../common";

export interface RegistrationV2Interface extends utils.Interface {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we please rename it to RegistrationV4 as the contract name deployed on-chain is now called RegistrationV4?

Base automatically changed from CORE-1952-add-v2-complete-withdrawal-flow to main February 27, 2024 01:49
@brayansdt brayansdt changed the title CORE-2033 Add v2 registration contract CORE-2033 Add RegistrationV4 contract Feb 27, 2024
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.19;

interface Core {
Copy link
Contributor

Choose a reason for hiding this comment

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

this is outdated, can you please have a look at https://github.com/immutable/contracts/tree/main/contracts/bridge/x/v4


import {Core} from "./Core.sol";

contract Registration {
Copy link
Contributor

Choose a reason for hiding this comment

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

this is outdated, can you please have a look at https://github.com/immutable/contracts/tree/main/contracts/bridge/x/v4

event ImplementationActivationRescheduled(address indexed implementation, uint256 updatedActivationTime);

function updateImplementationActivationTime(address implementation, bytes memory data, bool finalize) external;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
}
}

function isRegistered(uint256 starkKey) public view returns (bool) {
return imx.getEthKey(starkKey) != address(0);
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
}
}

overrides?: Overrides & { from?: string }
): Promise<PopulatedTransaction>;
};
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
}
}

): RegistrationV4 {
return new Contract(address, _abi, signerOrProvider) as RegistrationV4;
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
}
}

@kaihirota kaihirota merged commit 0a60a44 into main Feb 27, 2024
3 checks passed
@kaihirota kaihirota deleted the CORE-2033-add-v2-registration-contract branch February 27, 2024 05:29
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants