Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
TAdev0 committed Feb 26, 2024
1 parent 1a38c1e commit 0fc5d94
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/config/component.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
mod errors {
const INVALID_CALLER: felt252 = 'Config: not owner or operator';
const ALREADY_REGISTERED: felt252 = 'Config: already operator';
const NOT_OPERATOR: felt252 = 'Config: not an operator';
const NOT_OPERATOR: felt252 = 'Config: not operator';
}

/// Configuration component.
Expand Down
10 changes: 7 additions & 3 deletions src/config/interface.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,17 @@ use starknet::ContractAddress;

#[starknet::interface]
trait IConfig<T> {
/// Sets the operator that is in charge to push state updates.
/// Multiple operators can be set.
/// Registers an operator that is in charge to push state updates.
/// Multiple operators can be registered.
/// # Arguments
///
/// * `address` - The operator account address.
/// * `address` - The account address to register as an operator.
fn register_operator(ref self: T, address: ContractAddress);

/// Unregisters an operator.
/// # Arguments
///
/// * `address` - The operator account address to unregister.
fn unregister_operator(ref self: T, address: ContractAddress);

/// Verifies if the given address is an operator.
Expand Down

0 comments on commit 0fc5d94

Please sign in to comment.