ArkProjectNFTs / ark-project

ArkProject is a liquidity layer for digital assets, uniting markets, empowering creators, and bridging the gap to mass adoption. Built on top of Starknet, ArkProject is designed to provide a fully decentralized and trustless orderbook on-chain.
https://arkproject.dev
Apache License 2.0
27 stars 26 forks source link

feat(starknet): add support for maintenance mode #424

Closed ptisserand closed 3 months ago

ptisserand commented 3 months ago

Description

Add support for maintenance mode, when executor is disabled, the following functions will revert:

Here is the interface for maintenance mode:

#[starknet::interface]
trait IMaintenance<T> {
    fn is_enabled(self: @T) -> bool;
    fn enable(ref self: T, enable: bool);
}

IMaintenance::enable can only be invoked by admin

What type of PR is this? (check all applicable)

Related Tickets & Documents

Added tests?

Added to documentation?

[optional] Are there any post-deployment tasks we need to perform?

[optional] What gif best describes this PR or how it makes you feel?

PR Title and Description Guidelines:

Closing Issues

vercel[bot] commented 3 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
ark-project-sdk-demo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 22, 2024 2:54pm
changeset-bot[bot] commented 3 months ago

⚠️ No Changeset found

Latest commit: 0567cfbb3d0515ca307f9e6b7625500eeb4617fc

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

linear[bot] commented 3 months ago

DEV-720 Executor maintenance mode