sanction/

directory
v3.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 21, 2025 License: MPL-2.0

README

x/sanction

Abstract

This document specifies the sanction module of mantrachain.

The sanction module is to blacklist accounts preventing them from doing any transactions on the chain.

Contents

AnteHandler

The custom AnteHandler checks if the signer of a transaction is blacklisted. If the signer is blacklisted, the transaction is rejected.

State

The x/sanction module keeps state of the following primary objects:

  1. Blacklist Accounts

In addition, the x/sanction module keeps a set of accounts to manage the aforementioned state:

  • Denomination Multipliers: 0x1 | byte(account)

Messages

MsgAddBlacklistAccount

Add a blacklist account.

https://github.com/MANTRA-Chain/mantrachain/tree/main/proto/mantrachain/sanction/v1/tx.proto#L24-L30

The message handling can fail if:

  • signer is not the authority module address, usually it is the gov module account address.
  • blacklist account is not an account in Bech32 string.
MsgRemoveBlacklistAccount

Remove a blacklist account.

https://github.com/MANTRA-Chain/mantrachain/tree/main/proto/mantrachain/sanction/v1/tx.proto#L35-L41

The message handling can fail if:

  • signer is not the authority module address, usually it is the gov module account address.
  • blacklist account is not an account in Bech32 string.

Directories

Path Synopsis
client
cli
Package types is a reverse proxy.
Package types is a reverse proxy.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL