def METHOD_NAME(
    w: Writer, msg: EosActionUndelegate | EosActionDelegate
) -> None:
    write_uint64_le(w, msg.sender)
    write_uint64_le(w, msg.receiver)
    write_asset(w, msg.net_quantity)
    write_asset(w, msg.cpu_quantity)