Thanks @fepvenancio, good to see the policy side being worked on.
On your two readings:
-
Yes, mostly. `canTransfer` is what public transfers have to respect, and permissionless mints and burns go through it as well. Forced transfers sit outside it on purpose: `forcedTransfer` may bypass it and only needs a `canReceive` on to. Executor-settled moves aren’t covered by 7943 at all, so having them separate in the policy layer makes sense. One caveat: permissioned mints and burns are also allowed to bypass parts of it (a permissioned mint SHOULD check `canReceive` but MAY skip it, and a permissioned burn can go ahead even when `canSend` is false). So it doesn’t predict every mint or burn, only the ones that can’t use those exceptions.
-
Agreed on the reading, with one nuance: 7943 still requires `canTransfer` to run `canSend` on `from` and `canReceive` on to, zero included. The way to get the mint/burn behaviour is for the zero address to always pass those checks, as the mint source and the burn sink, so a mint effectively depends only on `canReceive(to)` and a burn only on `canSend(from)`. A plain transfer to the zero address is still rejected by the base standard. It would be worth phrasing the policy draft that way too, rather than as skipping the check, so it doesn’t read as conflicting with the MUST. The reference implementation now works this way.
Your update on the unfrozen check is right too: the frozen-balance error is only for amounts up to the balance, and a plain shortfall belongs to the base standard.
Keeping EXECUTED in the base set gets a +1 from me. In ERC-8226, an agent can act for a holder through an approved executor. The mandate decides whether the agent is authorised, but the transfer itself should still go through the same 7943 policy as any other movement. If EXECUTED were optional, agent-settled transfers could end up mislabelled and skip checks like the holder cap or pause, which is the same problem you hit with FORCED.
@vupemewa agreed, shared tests are what actually show whether two implementations behave the same. The reference implementation at GitHub - xaler5/uRWA · GitHub is now up to date with the Final spec, and there’s an open PR with conformance suites for ERC-20, 721 and 1155 ( ERC-7943 conformance suites (open for contributions) by xaler5 · Pull Request #11 · xaler5/uRWA · GitHub ): operator transfers, one-way restrictions, frozen vs plain shortfalls, mint/burn pre-flights, permissioned exceptions, forced transfers, and fuzzed checks that canTransfer matches the real outcome. The PR lists the cases still missing, and contributions are very welcome, whether that’s new cases or porting them to your own implementation. @fepvenancio the executor-settled cases would be a natural fit for your policy work.