Zilliqa / marketplace-contracts

GNU General Public License v3.0
2 stars 4 forks source link

[RIAL-1134] BatchCancelOrder Transition added #63

Closed razill closed 2 years ago

razill commented 2 years ago

The idea of this PR is to add BatchCancelOrders transition.

There is a new role introduced called Operator (In the case of Multi-Sig wallet, Admin can't call BatchCancelOrder transition due to various reasons, hence created a new role), BatchCancel can be done by the seller (for sell orders), the buyer (for buy orders), the admin & operator (for buy/sell orders).

While the seller/ buyer is trying to execute the BatchCancel transition, the contract should be in unpause status and should be in pause status while admin/operating is performing the same.

Admin can manage the operator address.