Skip to content

Moliholy/pallet-blacklist

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Blacklist pallet

Rust check

Allow some configurable origin to blacklist some accounts. Blacklisted accounts are not allowed to perform certain actions.

Configuration

Types

  • RuntimeEvent – The overarching event type.
  • BlacklistingOrigin – The origin allowed to blacklist accounts. It should be Root.
  • WeightInfo – Information on runtime weights.

Extrinsics

blacklist_account

Adds an account to the blacklist. Emits the AccountBlacklisted event on success.

Parameters:

  • origin – Origin for the call. It should be Root.
  • account - The account to blacklist.

Errors:

  • AccountAlreadyBlacklisted - The accountId was already blacklisted.

remove_blacklisted_account

Adds an account to the blacklist. Emits the BlacklistedAccountRemoved event on success.

Parameters:

  • origin – Origin for the call. It should be Root.
  • account - The account to remove from the blacklist.

Errors:

  • AccountIsNotBlacklisted - The AccountId was not previously blacklisted.

Once configured, this pallet should be used as a valid origin so that any account that is not on the blacklist has a valid origin.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages