Skip to content
This repository has been archived by the owner on Jan 9, 2025. It is now read-only.

feat: ProtocolHandler #1524

Closed
wants to merge 9 commits into from
Closed

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
@obatirou obatirou closed this Nov 26, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant