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

feat: ProtocolHandler #1524

Draft
wants to merge 9 commits into
base: main
Choose a base branch
from
Draft

Conversation

obatirou
Copy link
Collaborator

@obatirou obatirou commented Oct 21, 2024

Part of #1515
The owner of the Kakarot contract will be an intermediary contract: the ProtocolHandler.

This PR introduce the structure of the contract and implements the Admin functions:

fn emergency_execution(ref self: TContractState, call: Call);
fn upgrade(ref self: TContractState, new_class_hash: ClassHash);
fn transfer_ownership(ref self: TContractState, new_owner: ContractAddress);
fn soft_pause(ref self: TContractState);
fn hard_pause(ref self: TContractState);
fn unpause(ref self: TContractState);

Time spent on this PR:

Pull request type

Please check the type of change your PR introduces:

  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation content changes
  • Other (please describe):

What is the current behavior?

Resolves #

What is the new behavior?

ProtocolHandler contract


This change is Reviewable

matthieuauger pushed a commit to matthieuauger/kakarot that referenced this pull request Nov 9, 2024
* add starknet transaction hash to transaction_by_hash

* clippy

* clean up
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.

1 participant